1 /*** Autogenerated by WIDL 1.5.29 from /tmp/build-mingw64-toolchain-joshualang/src/mingw-w64-svn-r5861/mingw-w64-headers/direct-x/include/ddstream.idl - Do not edit ***/ 2 3 #ifndef __REQUIRED_RPCNDR_H_VERSION__ 4 #define __REQUIRED_RPCNDR_H_VERSION__ 475 5 #endif 6 7 #include <rpc.h> 8 #include <rpcndr.h> 9 10 #ifndef COM_NO_WINDOWS_H 11 #include <windows.h> 12 #include <ole2.h> 13 #endif 14 15 #ifndef __ddstream_h__ 16 #define __ddstream_h__ 17 18 /* Forward declarations */ 19 20 #ifndef __IDirectDrawMediaStream_FWD_DEFINED__ 21 #define __IDirectDrawMediaStream_FWD_DEFINED__ 22 typedef interface IDirectDrawMediaStream IDirectDrawMediaStream; 23 #endif 24 25 #ifndef __IDirectDrawStreamSample_FWD_DEFINED__ 26 #define __IDirectDrawStreamSample_FWD_DEFINED__ 27 typedef interface IDirectDrawStreamSample IDirectDrawStreamSample; 28 #endif 29 30 /* Headers for imported files */ 31 32 #include <unknwn.h> 33 #include <mmstream.h> 34 35 #ifdef __cplusplus 36 extern "C" { 37 #endif 38 39 #ifndef __DDRAW_INCLUDED__ 40 typedef void *LPDDSURFACEDESC; 41 typedef struct tDDSURFACEDESC DDSURFACEDESC; 42 #ifndef __IDirectDraw_FWD_DEFINED__ 43 #define __IDirectDraw_FWD_DEFINED__ 44 typedef interface IDirectDraw IDirectDraw; 45 #endif 46 47 #ifndef __IDirectDrawSurface_FWD_DEFINED__ 48 #define __IDirectDrawSurface_FWD_DEFINED__ 49 typedef interface IDirectDrawSurface IDirectDrawSurface; 50 #endif 51 52 #ifndef __IDirectDrawPalette_FWD_DEFINED__ 53 #define __IDirectDrawPalette_FWD_DEFINED__ 54 typedef interface IDirectDrawPalette IDirectDrawPalette; 55 #endif 56 57 #endif 58 #include <ddraw.h> 59 enum { 60 DDSFF_PROGRESSIVERENDER = 0x1 61 }; 62 63 #ifndef __IDirectDrawMediaStream_FWD_DEFINED__ 64 #define __IDirectDrawMediaStream_FWD_DEFINED__ 65 typedef interface IDirectDrawMediaStream IDirectDrawMediaStream; 66 #endif 67 68 #ifndef __IDirectDrawStreamSample_FWD_DEFINED__ 69 #define __IDirectDrawStreamSample_FWD_DEFINED__ 70 typedef interface IDirectDrawStreamSample IDirectDrawStreamSample; 71 #endif 72 73 /***************************************************************************** 74 * IDirectDrawMediaStream interface 75 */ 76 #ifndef __IDirectDrawMediaStream_INTERFACE_DEFINED__ 77 #define __IDirectDrawMediaStream_INTERFACE_DEFINED__ 78 79 DEFINE_GUID(IID_IDirectDrawMediaStream, 0xf4104fce, 0x9a70, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); 80 #if defined(__cplusplus) && !defined(CINTERFACE) 81 MIDL_INTERFACE("f4104fce-9a70-11d0-8fde-00c04fd9189d") 82 IDirectDrawMediaStream : public IMediaStream 83 { 84 virtual HRESULT STDMETHODCALLTYPE GetFormat( 85 DDSURFACEDESC *pDDSDCurrent, 86 IDirectDrawPalette **ppDirectDrawPalette, 87 DDSURFACEDESC *pDDSDDesired, 88 DWORD *pdwFlags) = 0; 89 90 virtual HRESULT STDMETHODCALLTYPE SetFormat( 91 const DDSURFACEDESC *pDDSurfaceDesc, 92 IDirectDrawPalette *pDirectDrawPalette) = 0; 93 94 virtual HRESULT STDMETHODCALLTYPE GetDirectDraw( 95 IDirectDraw **ppDirectDraw) = 0; 96 97 virtual HRESULT STDMETHODCALLTYPE SetDirectDraw( 98 IDirectDraw *pDirectDraw) = 0; 99 100 virtual HRESULT STDMETHODCALLTYPE CreateSample( 101 IDirectDrawSurface *pSurface, 102 const RECT *pRect, 103 DWORD dwFlags, 104 IDirectDrawStreamSample **ppSample) = 0; 105 106 virtual HRESULT STDMETHODCALLTYPE GetTimePerFrame( 107 STREAM_TIME *pFrameTime) = 0; 108 109 }; 110 #ifdef __CRT_UUID_DECL 111 __CRT_UUID_DECL(IDirectDrawMediaStream, 0xf4104fce, 0x9a70, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d) 112 #endif 113 #else 114 typedef struct IDirectDrawMediaStreamVtbl { 115 BEGIN_INTERFACE 116 117 /*** IUnknown methods ***/ 118 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 119 IDirectDrawMediaStream* This, 120 REFIID riid, 121 void **ppvObject); 122 123 ULONG (STDMETHODCALLTYPE *AddRef)( 124 IDirectDrawMediaStream* This); 125 126 ULONG (STDMETHODCALLTYPE *Release)( 127 IDirectDrawMediaStream* This); 128 129 /*** IMediaStream methods ***/ 130 HRESULT (STDMETHODCALLTYPE *GetMultiMediaStream)( 131 IDirectDrawMediaStream* This, 132 IMultiMediaStream **ppMultiMediaStream); 133 134 HRESULT (STDMETHODCALLTYPE *GetInformation)( 135 IDirectDrawMediaStream* This, 136 MSPID *pPurposeId, 137 STREAM_TYPE *pType); 138 139 HRESULT (STDMETHODCALLTYPE *SetSameFormat)( 140 IDirectDrawMediaStream* This, 141 IMediaStream *pStreamThatHasDesiredFormat, 142 DWORD dwFlags); 143 144 HRESULT (STDMETHODCALLTYPE *AllocateSample)( 145 IDirectDrawMediaStream* This, 146 DWORD dwFlags, 147 IStreamSample **ppSample); 148 149 HRESULT (STDMETHODCALLTYPE *CreateSharedSample)( 150 IDirectDrawMediaStream* This, 151 IStreamSample *pExistingSample, 152 DWORD dwFlags, 153 IStreamSample **ppNewSample); 154 155 HRESULT (STDMETHODCALLTYPE *SendEndOfStream)( 156 IDirectDrawMediaStream* This, 157 DWORD dwFlags); 158 159 /*** IDirectDrawMediaStream methods ***/ 160 HRESULT (STDMETHODCALLTYPE *GetFormat)( 161 IDirectDrawMediaStream* This, 162 DDSURFACEDESC *pDDSDCurrent, 163 IDirectDrawPalette **ppDirectDrawPalette, 164 DDSURFACEDESC *pDDSDDesired, 165 DWORD *pdwFlags); 166 167 HRESULT (STDMETHODCALLTYPE *SetFormat)( 168 IDirectDrawMediaStream* This, 169 const DDSURFACEDESC *pDDSurfaceDesc, 170 IDirectDrawPalette *pDirectDrawPalette); 171 172 HRESULT (STDMETHODCALLTYPE *GetDirectDraw)( 173 IDirectDrawMediaStream* This, 174 IDirectDraw **ppDirectDraw); 175 176 HRESULT (STDMETHODCALLTYPE *SetDirectDraw)( 177 IDirectDrawMediaStream* This, 178 IDirectDraw *pDirectDraw); 179 180 HRESULT (STDMETHODCALLTYPE *CreateSample)( 181 IDirectDrawMediaStream* This, 182 IDirectDrawSurface *pSurface, 183 const RECT *pRect, 184 DWORD dwFlags, 185 IDirectDrawStreamSample **ppSample); 186 187 HRESULT (STDMETHODCALLTYPE *GetTimePerFrame)( 188 IDirectDrawMediaStream* This, 189 STREAM_TIME *pFrameTime); 190 191 END_INTERFACE 192 } IDirectDrawMediaStreamVtbl; 193 interface IDirectDrawMediaStream { 194 CONST_VTBL IDirectDrawMediaStreamVtbl* lpVtbl; 195 }; 196 197 #ifdef COBJMACROS 198 #ifndef WIDL_C_INLINE_WRAPPERS 199 /*** IUnknown methods ***/ 200 #define IDirectDrawMediaStream_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 201 #define IDirectDrawMediaStream_AddRef(This) (This)->lpVtbl->AddRef(This) 202 #define IDirectDrawMediaStream_Release(This) (This)->lpVtbl->Release(This) 203 /*** IMediaStream methods ***/ 204 #define IDirectDrawMediaStream_GetMultiMediaStream(This,ppMultiMediaStream) (This)->lpVtbl->GetMultiMediaStream(This,ppMultiMediaStream) 205 #define IDirectDrawMediaStream_GetInformation(This,pPurposeId,pType) (This)->lpVtbl->GetInformation(This,pPurposeId,pType) 206 #define IDirectDrawMediaStream_SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) (This)->lpVtbl->SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) 207 #define IDirectDrawMediaStream_AllocateSample(This,dwFlags,ppSample) (This)->lpVtbl->AllocateSample(This,dwFlags,ppSample) 208 #define IDirectDrawMediaStream_CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) (This)->lpVtbl->CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) 209 #define IDirectDrawMediaStream_SendEndOfStream(This,dwFlags) (This)->lpVtbl->SendEndOfStream(This,dwFlags) 210 /*** IDirectDrawMediaStream methods ***/ 211 #define IDirectDrawMediaStream_GetFormat(This,pDDSDCurrent,ppDirectDrawPalette,pDDSDDesired,pdwFlags) (This)->lpVtbl->GetFormat(This,pDDSDCurrent,ppDirectDrawPalette,pDDSDDesired,pdwFlags) 212 #define IDirectDrawMediaStream_SetFormat(This,pDDSurfaceDesc,pDirectDrawPalette) (This)->lpVtbl->SetFormat(This,pDDSurfaceDesc,pDirectDrawPalette) 213 #define IDirectDrawMediaStream_GetDirectDraw(This,ppDirectDraw) (This)->lpVtbl->GetDirectDraw(This,ppDirectDraw) 214 #define IDirectDrawMediaStream_SetDirectDraw(This,pDirectDraw) (This)->lpVtbl->SetDirectDraw(This,pDirectDraw) 215 #define IDirectDrawMediaStream_CreateSample(This,pSurface,pRect,dwFlags,ppSample) (This)->lpVtbl->CreateSample(This,pSurface,pRect,dwFlags,ppSample) 216 #define IDirectDrawMediaStream_GetTimePerFrame(This,pFrameTime) (This)->lpVtbl->GetTimePerFrame(This,pFrameTime) 217 #else 218 /*** IUnknown methods ***/ 219 static FORCEINLINE HRESULT IDirectDrawMediaStream_QueryInterface(IDirectDrawMediaStream* This,REFIID riid,void **ppvObject) { 220 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 221 } 222 static FORCEINLINE ULONG IDirectDrawMediaStream_AddRef(IDirectDrawMediaStream* This) { 223 return This->lpVtbl->AddRef(This); 224 } 225 static FORCEINLINE ULONG IDirectDrawMediaStream_Release(IDirectDrawMediaStream* This) { 226 return This->lpVtbl->Release(This); 227 } 228 /*** IMediaStream methods ***/ 229 static FORCEINLINE HRESULT IDirectDrawMediaStream_GetMultiMediaStream(IDirectDrawMediaStream* This,IMultiMediaStream **ppMultiMediaStream) { 230 return This->lpVtbl->GetMultiMediaStream(This,ppMultiMediaStream); 231 } 232 static FORCEINLINE HRESULT IDirectDrawMediaStream_GetInformation(IDirectDrawMediaStream* This,MSPID *pPurposeId,STREAM_TYPE *pType) { 233 return This->lpVtbl->GetInformation(This,pPurposeId,pType); 234 } 235 static FORCEINLINE HRESULT IDirectDrawMediaStream_SetSameFormat(IDirectDrawMediaStream* This,IMediaStream *pStreamThatHasDesiredFormat,DWORD dwFlags) { 236 return This->lpVtbl->SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags); 237 } 238 static FORCEINLINE HRESULT IDirectDrawMediaStream_AllocateSample(IDirectDrawMediaStream* This,DWORD dwFlags,IStreamSample **ppSample) { 239 return This->lpVtbl->AllocateSample(This,dwFlags,ppSample); 240 } 241 static FORCEINLINE HRESULT IDirectDrawMediaStream_CreateSharedSample(IDirectDrawMediaStream* This,IStreamSample *pExistingSample,DWORD dwFlags,IStreamSample **ppNewSample) { 242 return This->lpVtbl->CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample); 243 } 244 static FORCEINLINE HRESULT IDirectDrawMediaStream_SendEndOfStream(IDirectDrawMediaStream* This,DWORD dwFlags) { 245 return This->lpVtbl->SendEndOfStream(This,dwFlags); 246 } 247 /*** IDirectDrawMediaStream methods ***/ 248 static FORCEINLINE HRESULT IDirectDrawMediaStream_GetFormat(IDirectDrawMediaStream* This,DDSURFACEDESC *pDDSDCurrent,IDirectDrawPalette **ppDirectDrawPalette,DDSURFACEDESC *pDDSDDesired,DWORD *pdwFlags) { 249 return This->lpVtbl->GetFormat(This,pDDSDCurrent,ppDirectDrawPalette,pDDSDDesired,pdwFlags); 250 } 251 static FORCEINLINE HRESULT IDirectDrawMediaStream_SetFormat(IDirectDrawMediaStream* This,const DDSURFACEDESC *pDDSurfaceDesc,IDirectDrawPalette *pDirectDrawPalette) { 252 return This->lpVtbl->SetFormat(This,pDDSurfaceDesc,pDirectDrawPalette); 253 } 254 static FORCEINLINE HRESULT IDirectDrawMediaStream_GetDirectDraw(IDirectDrawMediaStream* This,IDirectDraw **ppDirectDraw) { 255 return This->lpVtbl->GetDirectDraw(This,ppDirectDraw); 256 } 257 static FORCEINLINE HRESULT IDirectDrawMediaStream_SetDirectDraw(IDirectDrawMediaStream* This,IDirectDraw *pDirectDraw) { 258 return This->lpVtbl->SetDirectDraw(This,pDirectDraw); 259 } 260 static FORCEINLINE HRESULT IDirectDrawMediaStream_CreateSample(IDirectDrawMediaStream* This,IDirectDrawSurface *pSurface,const RECT *pRect,DWORD dwFlags,IDirectDrawStreamSample **ppSample) { 261 return This->lpVtbl->CreateSample(This,pSurface,pRect,dwFlags,ppSample); 262 } 263 static FORCEINLINE HRESULT IDirectDrawMediaStream_GetTimePerFrame(IDirectDrawMediaStream* This,STREAM_TIME *pFrameTime) { 264 return This->lpVtbl->GetTimePerFrame(This,pFrameTime); 265 } 266 #endif 267 #endif 268 269 #endif 270 271 HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_GetFormat_Proxy( 272 IDirectDrawMediaStream* This, 273 DDSURFACEDESC *pDDSDCurrent, 274 IDirectDrawPalette **ppDirectDrawPalette, 275 DDSURFACEDESC *pDDSDDesired, 276 DWORD *pdwFlags); 277 void __RPC_STUB IDirectDrawMediaStream_GetFormat_Stub( 278 IRpcStubBuffer* This, 279 IRpcChannelBuffer* pRpcChannelBuffer, 280 PRPC_MESSAGE pRpcMessage, 281 DWORD* pdwStubPhase); 282 HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_SetFormat_Proxy( 283 IDirectDrawMediaStream* This, 284 const DDSURFACEDESC *pDDSurfaceDesc, 285 IDirectDrawPalette *pDirectDrawPalette); 286 void __RPC_STUB IDirectDrawMediaStream_SetFormat_Stub( 287 IRpcStubBuffer* This, 288 IRpcChannelBuffer* pRpcChannelBuffer, 289 PRPC_MESSAGE pRpcMessage, 290 DWORD* pdwStubPhase); 291 HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_GetDirectDraw_Proxy( 292 IDirectDrawMediaStream* This, 293 IDirectDraw **ppDirectDraw); 294 void __RPC_STUB IDirectDrawMediaStream_GetDirectDraw_Stub( 295 IRpcStubBuffer* This, 296 IRpcChannelBuffer* pRpcChannelBuffer, 297 PRPC_MESSAGE pRpcMessage, 298 DWORD* pdwStubPhase); 299 HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_SetDirectDraw_Proxy( 300 IDirectDrawMediaStream* This, 301 IDirectDraw *pDirectDraw); 302 void __RPC_STUB IDirectDrawMediaStream_SetDirectDraw_Stub( 303 IRpcStubBuffer* This, 304 IRpcChannelBuffer* pRpcChannelBuffer, 305 PRPC_MESSAGE pRpcMessage, 306 DWORD* pdwStubPhase); 307 HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_CreateSample_Proxy( 308 IDirectDrawMediaStream* This, 309 IDirectDrawSurface *pSurface, 310 const RECT *pRect, 311 DWORD dwFlags, 312 IDirectDrawStreamSample **ppSample); 313 void __RPC_STUB IDirectDrawMediaStream_CreateSample_Stub( 314 IRpcStubBuffer* This, 315 IRpcChannelBuffer* pRpcChannelBuffer, 316 PRPC_MESSAGE pRpcMessage, 317 DWORD* pdwStubPhase); 318 HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_GetTimePerFrame_Proxy( 319 IDirectDrawMediaStream* This, 320 STREAM_TIME *pFrameTime); 321 void __RPC_STUB IDirectDrawMediaStream_GetTimePerFrame_Stub( 322 IRpcStubBuffer* This, 323 IRpcChannelBuffer* pRpcChannelBuffer, 324 PRPC_MESSAGE pRpcMessage, 325 DWORD* pdwStubPhase); 326 327 #endif /* __IDirectDrawMediaStream_INTERFACE_DEFINED__ */ 328 329 /***************************************************************************** 330 * IDirectDrawStreamSample interface 331 */ 332 #ifndef __IDirectDrawStreamSample_INTERFACE_DEFINED__ 333 #define __IDirectDrawStreamSample_INTERFACE_DEFINED__ 334 335 DEFINE_GUID(IID_IDirectDrawStreamSample, 0xf4104fcf, 0x9a70, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); 336 #if defined(__cplusplus) && !defined(CINTERFACE) 337 MIDL_INTERFACE("f4104fcf-9a70-11d0-8fde-00c04fd9189d") 338 IDirectDrawStreamSample : public IStreamSample 339 { 340 virtual HRESULT STDMETHODCALLTYPE GetSurface( 341 IDirectDrawSurface **ppDirectDrawSurface, 342 RECT *pRect) = 0; 343 344 virtual HRESULT STDMETHODCALLTYPE SetRect( 345 const RECT *pRect) = 0; 346 347 }; 348 #ifdef __CRT_UUID_DECL 349 __CRT_UUID_DECL(IDirectDrawStreamSample, 0xf4104fcf, 0x9a70, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d) 350 #endif 351 #else 352 typedef struct IDirectDrawStreamSampleVtbl { 353 BEGIN_INTERFACE 354 355 /*** IUnknown methods ***/ 356 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 357 IDirectDrawStreamSample* This, 358 REFIID riid, 359 void **ppvObject); 360 361 ULONG (STDMETHODCALLTYPE *AddRef)( 362 IDirectDrawStreamSample* This); 363 364 ULONG (STDMETHODCALLTYPE *Release)( 365 IDirectDrawStreamSample* This); 366 367 /*** IStreamSample methods ***/ 368 HRESULT (STDMETHODCALLTYPE *GetMediaStream)( 369 IDirectDrawStreamSample* This, 370 IMediaStream **ppMediaStream); 371 372 HRESULT (STDMETHODCALLTYPE *GetSampleTimes)( 373 IDirectDrawStreamSample* This, 374 STREAM_TIME *pStartTime, 375 STREAM_TIME *pEndTime, 376 STREAM_TIME *pCurrentTime); 377 378 HRESULT (STDMETHODCALLTYPE *SetSampleTimes)( 379 IDirectDrawStreamSample* This, 380 const STREAM_TIME *pStartTime, 381 const STREAM_TIME *pEndTime); 382 383 HRESULT (STDMETHODCALLTYPE *Update)( 384 IDirectDrawStreamSample* This, 385 DWORD dwFlags, 386 HANDLE hEvent, 387 PAPCFUNC pfnAPC, 388 DWORD dwAPCData); 389 390 HRESULT (STDMETHODCALLTYPE *CompletionStatus)( 391 IDirectDrawStreamSample* This, 392 DWORD dwFlags, 393 DWORD dwMilliseconds); 394 395 /*** IDirectDrawStreamSample methods ***/ 396 HRESULT (STDMETHODCALLTYPE *GetSurface)( 397 IDirectDrawStreamSample* This, 398 IDirectDrawSurface **ppDirectDrawSurface, 399 RECT *pRect); 400 401 HRESULT (STDMETHODCALLTYPE *SetRect)( 402 IDirectDrawStreamSample* This, 403 const RECT *pRect); 404 405 END_INTERFACE 406 } IDirectDrawStreamSampleVtbl; 407 interface IDirectDrawStreamSample { 408 CONST_VTBL IDirectDrawStreamSampleVtbl* lpVtbl; 409 }; 410 411 #ifdef COBJMACROS 412 #ifndef WIDL_C_INLINE_WRAPPERS 413 /*** IUnknown methods ***/ 414 #define IDirectDrawStreamSample_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 415 #define IDirectDrawStreamSample_AddRef(This) (This)->lpVtbl->AddRef(This) 416 #define IDirectDrawStreamSample_Release(This) (This)->lpVtbl->Release(This) 417 /*** IStreamSample methods ***/ 418 #define IDirectDrawStreamSample_GetMediaStream(This,ppMediaStream) (This)->lpVtbl->GetMediaStream(This,ppMediaStream) 419 #define IDirectDrawStreamSample_GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime) (This)->lpVtbl->GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime) 420 #define IDirectDrawStreamSample_SetSampleTimes(This,pStartTime,pEndTime) (This)->lpVtbl->SetSampleTimes(This,pStartTime,pEndTime) 421 #define IDirectDrawStreamSample_Update(This,dwFlags,hEvent,pfnAPC,dwAPCData) (This)->lpVtbl->Update(This,dwFlags,hEvent,pfnAPC,dwAPCData) 422 #define IDirectDrawStreamSample_CompletionStatus(This,dwFlags,dwMilliseconds) (This)->lpVtbl->CompletionStatus(This,dwFlags,dwMilliseconds) 423 /*** IDirectDrawStreamSample methods ***/ 424 #define IDirectDrawStreamSample_GetSurface(This,ppDirectDrawSurface,pRect) (This)->lpVtbl->GetSurface(This,ppDirectDrawSurface,pRect) 425 #define IDirectDrawStreamSample_SetRect(This,pRect) (This)->lpVtbl->SetRect(This,pRect) 426 #else 427 /*** IUnknown methods ***/ 428 static FORCEINLINE HRESULT IDirectDrawStreamSample_QueryInterface(IDirectDrawStreamSample* This,REFIID riid,void **ppvObject) { 429 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 430 } 431 static FORCEINLINE ULONG IDirectDrawStreamSample_AddRef(IDirectDrawStreamSample* This) { 432 return This->lpVtbl->AddRef(This); 433 } 434 static FORCEINLINE ULONG IDirectDrawStreamSample_Release(IDirectDrawStreamSample* This) { 435 return This->lpVtbl->Release(This); 436 } 437 /*** IStreamSample methods ***/ 438 static FORCEINLINE HRESULT IDirectDrawStreamSample_GetMediaStream(IDirectDrawStreamSample* This,IMediaStream **ppMediaStream) { 439 return This->lpVtbl->GetMediaStream(This,ppMediaStream); 440 } 441 static FORCEINLINE HRESULT IDirectDrawStreamSample_GetSampleTimes(IDirectDrawStreamSample* This,STREAM_TIME *pStartTime,STREAM_TIME *pEndTime,STREAM_TIME *pCurrentTime) { 442 return This->lpVtbl->GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime); 443 } 444 static FORCEINLINE HRESULT IDirectDrawStreamSample_SetSampleTimes(IDirectDrawStreamSample* This,const STREAM_TIME *pStartTime,const STREAM_TIME *pEndTime) { 445 return This->lpVtbl->SetSampleTimes(This,pStartTime,pEndTime); 446 } 447 static FORCEINLINE HRESULT IDirectDrawStreamSample_Update(IDirectDrawStreamSample* This,DWORD dwFlags,HANDLE hEvent,PAPCFUNC pfnAPC,DWORD dwAPCData) { 448 return This->lpVtbl->Update(This,dwFlags,hEvent,pfnAPC,dwAPCData); 449 } 450 static FORCEINLINE HRESULT IDirectDrawStreamSample_CompletionStatus(IDirectDrawStreamSample* This,DWORD dwFlags,DWORD dwMilliseconds) { 451 return This->lpVtbl->CompletionStatus(This,dwFlags,dwMilliseconds); 452 } 453 /*** IDirectDrawStreamSample methods ***/ 454 static FORCEINLINE HRESULT IDirectDrawStreamSample_GetSurface(IDirectDrawStreamSample* This,IDirectDrawSurface **ppDirectDrawSurface,RECT *pRect) { 455 return This->lpVtbl->GetSurface(This,ppDirectDrawSurface,pRect); 456 } 457 static FORCEINLINE HRESULT IDirectDrawStreamSample_SetRect(IDirectDrawStreamSample* This,const RECT *pRect) { 458 return This->lpVtbl->SetRect(This,pRect); 459 } 460 #endif 461 #endif 462 463 #endif 464 465 HRESULT STDMETHODCALLTYPE IDirectDrawStreamSample_GetSurface_Proxy( 466 IDirectDrawStreamSample* This, 467 IDirectDrawSurface **ppDirectDrawSurface, 468 RECT *pRect); 469 void __RPC_STUB IDirectDrawStreamSample_GetSurface_Stub( 470 IRpcStubBuffer* This, 471 IRpcChannelBuffer* pRpcChannelBuffer, 472 PRPC_MESSAGE pRpcMessage, 473 DWORD* pdwStubPhase); 474 HRESULT STDMETHODCALLTYPE IDirectDrawStreamSample_SetRect_Proxy( 475 IDirectDrawStreamSample* This, 476 const RECT *pRect); 477 void __RPC_STUB IDirectDrawStreamSample_SetRect_Stub( 478 IRpcStubBuffer* This, 479 IRpcChannelBuffer* pRpcChannelBuffer, 480 PRPC_MESSAGE pRpcMessage, 481 DWORD* pdwStubPhase); 482 483 #endif /* __IDirectDrawStreamSample_INTERFACE_DEFINED__ */ 484 485 /* Begin additional prototypes for all interfaces */ 486 487 488 /* End additional prototypes */ 489 490 #ifdef __cplusplus 491 } 492 #endif 493 494 #endif /* __ddstream_h__ */ 495