21cpp_quote(
"#define MS_ERROR_CODE(x) MAKE_HRESULT(1, FACILITY_ITF, (x) + 0x400)")
22cpp_quote("
#define MS_SUCCESS_CODE(x) MAKE_HRESULT(0, FACILITY_ITF, x)")
23cpp_quote("#define MS_S_PENDING MS_SUCCESS_CODE(1)")
24cpp_quote("#define MS_S_NOUPDATE MS_SUCCESS_CODE(2)")
25cpp_quote("#define MS_S_ENDOFSTREAM MS_SUCCESS_CODE(3)")
27cpp_quote("#define MS_E_SAMPLEALLOC MS_ERROR_CODE(1)")
28cpp_quote("#define MS_E_PURPOSEID MS_ERROR_CODE(2)")
29cpp_quote("#define MS_E_NOSTREAM MS_ERROR_CODE(3)")
30cpp_quote("#define MS_E_NOSEEKING MS_ERROR_CODE(4)")
31cpp_quote("#define MS_E_INCOMPATIBLE MS_ERROR_CODE(5)")
32cpp_quote("#define MS_E_BUSY MS_ERROR_CODE(6)")
33cpp_quote("#define MS_E_NOTINIT MS_ERROR_CODE(7)")
34cpp_quote("#define MS_E_SOURCEALREADYDEFINED MS_ERROR_CODE(8)")
35cpp_quote("#define MS_E_INVALIDSTREAMTYPE MS_ERROR_CODE(9)")
36cpp_quote("#define MS_E_NOTRUNNING MS_ERROR_CODE(10)")
38cpp_quote("DEFINE_GUID(MSPID_PrimaryVideo, 0xa35ff56a, 0x9fda, 0x11d0, 0x8f, 0xdf, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);")
39cpp_quote("DEFINE_GUID(MSPID_PrimaryAudio, 0xa35ff56b, 0x9fda, 0x11d0, 0x8f, 0xdf, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);")
42typedef void* PAPCFUNC;
45typedef LONGLONG STREAM_TIME;
48typedef REFGUID REFMSPID;
53 STREAMTYPE_TRANSFORM = 2
63 COMPSTAT_NOUPDATEOK = 0x00000001,
64 COMPSTAT_WAIT = 0x00000002,
65 COMPSTAT_ABORT = 0x00000004
66} COMPLETION_STATUS_FLAGS;
69 MMSSF_HASCLOCK = 0x00000001,
70 MMSSF_SUPPORTSEEK = 0x00000002,
71 MMSSF_ASYNCHRONOUS = 0x00000004
75 SSUPDATE_ASYNC = 0x00000001,
76 SSUPDATE_CONTINUOUS = 0x00000002
79interface IMultiMediaStream;
80interface IMediaStream;
81interface IStreamSample;
87uuid(B502D1BC-9A57-11d0-8FDE-00C04FD9189D),
88pointer_default(unique)
90interface IMultiMediaStream : IUnknown {
92 HRESULT GetInformation(
93 [out, optional] DWORD *pdwFlags,
94 [out, optional] STREAM_TYPE *pStreamType);
96 HRESULT GetMediaStream(
97 [in] REFMSPID idPurpose,
98 [out] IMediaStream **ppMediaStream);
100 HRESULT EnumMediaStreams(
102 [out] IMediaStream **ppMediaStream);
105 [out] STREAM_STATE *pCurrentState);
108 [in] STREAM_STATE NewState);
111 [out] STREAM_TIME *pCurrentTime);
114 [out] STREAM_TIME *pDuration);
117 [in] STREAM_TIME SeekTime);
119 HRESULT GetEndOfStreamEventHandle(
120 [out] HANDLE *phEOS);
126uuid(B502D1BD-9A57-11d0-8FDE-00C04FD9189D),
127pointer_default(unique)
129interface IMediaStream : IUnknown {
131 HRESULT GetMultiMediaStream(
132 [out] IMultiMediaStream **ppMultiMediaStream);
134 HRESULT GetInformation(
135 [out, optional] MSPID *pPurposeId,
136 [out, optional] STREAM_TYPE *pType);
138 HRESULT SetSameFormat(
139 [in] IMediaStream *pStreamThatHasDesiredFormat,
142 HRESULT AllocateSample(
144 [out] IStreamSample **ppSample);
146 HRESULT CreateSharedSample(
147 [in] IStreamSample *pExistingSample,
149 [out] IStreamSample **ppNewSample);
151 HRESULT SendEndOfStream(DWORD dwFlags);
158uuid(B502D1BE-9A57-11d0-8FDE-00C04FD9189D),
159pointer_default(unique)
161interface IStreamSample : IUnknown {
163 HRESULT GetMediaStream(
164 [in] IMediaStream **ppMediaStream);
166 HRESULT GetSampleTimes(
167 [out, optional] STREAM_TIME * pStartTime,
168 [out, optional] STREAM_TIME * pEndTime,
169 [out, optional] STREAM_TIME * pCurrentTime);
171 HRESULT SetSampleTimes(
172 [in, optional] const STREAM_TIME *pStartTime,
173 [in, optional] const STREAM_TIME *pEndTime);
177 [in, optional] HANDLE hEvent,
178 [in, optional] PAPCFUNC pfnAPC,
179 [in, optional] DWORD dwAPCData);
181 HRESULT CompletionStatus(
183 [in, optional] DWORD dwMilliseconds);
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const