Mercurial > games > semicongine
comparison fuhtark_test/include/winapi/ddstream.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1499:1f58458b7ef7 | 1500:91c8c3b7cbf0 |
|---|---|
| 1 /*** Autogenerated by WIDL 0.9.14 from ../../wine-src/include/ddstream.idl - Do not edit ***/ | |
| 2 #include <rpc.h> | |
| 3 #include <rpcndr.h> | |
| 4 | |
| 5 #ifndef __WIDL_DDSTREAM_H | |
| 6 #define __WIDL_DDSTREAM_H | |
| 7 #ifdef __cplusplus | |
| 8 extern "C" { | |
| 9 #endif | |
| 10 #include <unknwn.h> | |
| 11 #include <mmstream.h> | |
| 12 #ifndef __WINE_DDRAW_H | |
| 13 typedef void *LPDDSURFACEDESC; | |
| 14 typedef struct tDDSURFACEDESC DDSURFACEDESC; | |
| 15 #ifndef __IDirectDraw_FWD_DEFINED__ | |
| 16 #define __IDirectDraw_FWD_DEFINED__ | |
| 17 typedef interface IDirectDraw IDirectDraw; | |
| 18 #endif | |
| 19 | |
| 20 #ifndef __IDirectDrawSurface_FWD_DEFINED__ | |
| 21 #define __IDirectDrawSurface_FWD_DEFINED__ | |
| 22 typedef interface IDirectDrawSurface IDirectDrawSurface; | |
| 23 #endif | |
| 24 | |
| 25 #ifndef __IDirectDrawPalette_FWD_DEFINED__ | |
| 26 #define __IDirectDrawPalette_FWD_DEFINED__ | |
| 27 typedef interface IDirectDrawPalette IDirectDrawPalette; | |
| 28 #endif | |
| 29 | |
| 30 #endif | |
| 31 #include <ddraw.h> | |
| 32 enum { | |
| 33 DDSFF_PROGRESSIVERENDER = 0x1 | |
| 34 }; | |
| 35 | |
| 36 #ifndef __IDirectDrawMediaStream_FWD_DEFINED__ | |
| 37 #define __IDirectDrawMediaStream_FWD_DEFINED__ | |
| 38 typedef interface IDirectDrawMediaStream IDirectDrawMediaStream; | |
| 39 #endif | |
| 40 | |
| 41 #ifndef __IDirectDrawStreamSample_FWD_DEFINED__ | |
| 42 #define __IDirectDrawStreamSample_FWD_DEFINED__ | |
| 43 typedef interface IDirectDrawStreamSample IDirectDrawStreamSample; | |
| 44 #endif | |
| 45 | |
| 46 /***************************************************************************** | |
| 47 * IDirectDrawMediaStream interface | |
| 48 */ | |
| 49 #ifndef __IDirectDrawMediaStream_INTERFACE_DEFINED__ | |
| 50 #define __IDirectDrawMediaStream_INTERFACE_DEFINED__ | |
| 51 | |
| 52 DEFINE_GUID(IID_IDirectDrawMediaStream, 0xf4104fce, 0x9a70, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); | |
| 53 #if defined(__cplusplus) && !defined(CINTERFACE) | |
| 54 interface IDirectDrawMediaStream : public IMediaStream | |
| 55 { | |
| 56 virtual HRESULT STDMETHODCALLTYPE GetFormat( | |
| 57 DDSURFACEDESC *pDDSDCurrent, | |
| 58 IDirectDrawPalette **ppDirectDrawPalette, | |
| 59 DDSURFACEDESC *pDDSDDesired, | |
| 60 DWORD *pdwFlags) = 0; | |
| 61 | |
| 62 virtual HRESULT STDMETHODCALLTYPE SetFormat( | |
| 63 const DDSURFACEDESC *pDDSurfaceDesc, | |
| 64 IDirectDrawPalette *pDirectDrawPalette) = 0; | |
| 65 | |
| 66 virtual HRESULT STDMETHODCALLTYPE GetDirectDraw( | |
| 67 IDirectDraw **ppDirectDraw) = 0; | |
| 68 | |
| 69 virtual HRESULT STDMETHODCALLTYPE SetDirectDraw( | |
| 70 IDirectDraw *pDirectDraw) = 0; | |
| 71 | |
| 72 virtual HRESULT STDMETHODCALLTYPE CreateSample( | |
| 73 IDirectDrawSurface *pSurface, | |
| 74 const RECT *pRect, | |
| 75 DWORD dwFlags, | |
| 76 IDirectDrawStreamSample **ppSample) = 0; | |
| 77 | |
| 78 virtual HRESULT STDMETHODCALLTYPE GetTimePerFrame( | |
| 79 STREAM_TIME *pFrameTime) = 0; | |
| 80 | |
| 81 }; | |
| 82 #else | |
| 83 typedef struct IDirectDrawMediaStreamVtbl { | |
| 84 BEGIN_INTERFACE | |
| 85 | |
| 86 /*** IUnknown methods ***/ | |
| 87 HRESULT (STDMETHODCALLTYPE *QueryInterface)( | |
| 88 IDirectDrawMediaStream* This, | |
| 89 REFIID riid, | |
| 90 void **ppvObject); | |
| 91 | |
| 92 ULONG (STDMETHODCALLTYPE *AddRef)( | |
| 93 IDirectDrawMediaStream* This); | |
| 94 | |
| 95 ULONG (STDMETHODCALLTYPE *Release)( | |
| 96 IDirectDrawMediaStream* This); | |
| 97 | |
| 98 /*** IMediaStream methods ***/ | |
| 99 HRESULT (STDMETHODCALLTYPE *GetMultiMediaStream)( | |
| 100 IDirectDrawMediaStream* This, | |
| 101 IMultiMediaStream **ppMultiMediaStream); | |
| 102 | |
| 103 HRESULT (STDMETHODCALLTYPE *GetInformation)( | |
| 104 IDirectDrawMediaStream* This, | |
| 105 MSPID *pPurposeId, | |
| 106 STREAM_TYPE *pType); | |
| 107 | |
| 108 HRESULT (STDMETHODCALLTYPE *SetSameFormat)( | |
| 109 IDirectDrawMediaStream* This, | |
| 110 IMediaStream *pStreamThatHasDesiredFormat, | |
| 111 DWORD dwFlags); | |
| 112 | |
| 113 HRESULT (STDMETHODCALLTYPE *AllocateSample)( | |
| 114 IDirectDrawMediaStream* This, | |
| 115 DWORD dwFlags, | |
| 116 IStreamSample **ppSample); | |
| 117 | |
| 118 HRESULT (STDMETHODCALLTYPE *CreateSharedSample)( | |
| 119 IDirectDrawMediaStream* This, | |
| 120 IStreamSample *pExistingSample, | |
| 121 DWORD dwFlags, | |
| 122 IStreamSample **ppNewSample); | |
| 123 | |
| 124 HRESULT (STDMETHODCALLTYPE *SendEndOfStream)( | |
| 125 IDirectDrawMediaStream* This, | |
| 126 DWORD dwFlags); | |
| 127 | |
| 128 /*** IDirectDrawMediaStream methods ***/ | |
| 129 HRESULT (STDMETHODCALLTYPE *GetFormat)( | |
| 130 IDirectDrawMediaStream* This, | |
| 131 DDSURFACEDESC *pDDSDCurrent, | |
| 132 IDirectDrawPalette **ppDirectDrawPalette, | |
| 133 DDSURFACEDESC *pDDSDDesired, | |
| 134 DWORD *pdwFlags); | |
| 135 | |
| 136 HRESULT (STDMETHODCALLTYPE *SetFormat)( | |
| 137 IDirectDrawMediaStream* This, | |
| 138 const DDSURFACEDESC *pDDSurfaceDesc, | |
| 139 IDirectDrawPalette *pDirectDrawPalette); | |
| 140 | |
| 141 HRESULT (STDMETHODCALLTYPE *GetDirectDraw)( | |
| 142 IDirectDrawMediaStream* This, | |
| 143 IDirectDraw **ppDirectDraw); | |
| 144 | |
| 145 HRESULT (STDMETHODCALLTYPE *SetDirectDraw)( | |
| 146 IDirectDrawMediaStream* This, | |
| 147 IDirectDraw *pDirectDraw); | |
| 148 | |
| 149 HRESULT (STDMETHODCALLTYPE *CreateSample)( | |
| 150 IDirectDrawMediaStream* This, | |
| 151 IDirectDrawSurface *pSurface, | |
| 152 const RECT *pRect, | |
| 153 DWORD dwFlags, | |
| 154 IDirectDrawStreamSample **ppSample); | |
| 155 | |
| 156 HRESULT (STDMETHODCALLTYPE *GetTimePerFrame)( | |
| 157 IDirectDrawMediaStream* This, | |
| 158 STREAM_TIME *pFrameTime); | |
| 159 | |
| 160 END_INTERFACE | |
| 161 } IDirectDrawMediaStreamVtbl; | |
| 162 interface IDirectDrawMediaStream { | |
| 163 const IDirectDrawMediaStreamVtbl* lpVtbl; | |
| 164 }; | |
| 165 | |
| 166 #ifdef COBJMACROS | |
| 167 /*** IUnknown methods ***/ | |
| 168 #define IDirectDrawMediaStream_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
| 169 #define IDirectDrawMediaStream_AddRef(p) (p)->lpVtbl->AddRef(p) | |
| 170 #define IDirectDrawMediaStream_Release(p) (p)->lpVtbl->Release(p) | |
| 171 /*** IMediaStream methods ***/ | |
| 172 #define IDirectDrawMediaStream_GetMultiMediaStream(p,a) (p)->lpVtbl->GetMultiMediaStream(p,a) | |
| 173 #define IDirectDrawMediaStream_GetInformation(p,a,b) (p)->lpVtbl->GetInformation(p,a,b) | |
| 174 #define IDirectDrawMediaStream_SetSameFormat(p,a,b) (p)->lpVtbl->SetSameFormat(p,a,b) | |
| 175 #define IDirectDrawMediaStream_AllocateSample(p,a,b) (p)->lpVtbl->AllocateSample(p,a,b) | |
| 176 #define IDirectDrawMediaStream_CreateSharedSample(p,a,b,c) (p)->lpVtbl->CreateSharedSample(p,a,b,c) | |
| 177 #define IDirectDrawMediaStream_SendEndOfStream(p,a) (p)->lpVtbl->SendEndOfStream(p,a) | |
| 178 /*** IDirectDrawMediaStream methods ***/ | |
| 179 #define IDirectDrawMediaStream_GetFormat(p,a,b,c,d) (p)->lpVtbl->GetFormat(p,a,b,c,d) | |
| 180 #define IDirectDrawMediaStream_SetFormat(p,a,b) (p)->lpVtbl->SetFormat(p,a,b) | |
| 181 #define IDirectDrawMediaStream_GetDirectDraw(p,a) (p)->lpVtbl->GetDirectDraw(p,a) | |
| 182 #define IDirectDrawMediaStream_SetDirectDraw(p,a) (p)->lpVtbl->SetDirectDraw(p,a) | |
| 183 #define IDirectDrawMediaStream_CreateSample(p,a,b,c,d) (p)->lpVtbl->CreateSample(p,a,b,c,d) | |
| 184 #define IDirectDrawMediaStream_GetTimePerFrame(p,a) (p)->lpVtbl->GetTimePerFrame(p,a) | |
| 185 #endif | |
| 186 | |
| 187 #endif | |
| 188 | |
| 189 HRESULT CALLBACK IDirectDrawMediaStream_GetFormat_Proxy( | |
| 190 IDirectDrawMediaStream* This, | |
| 191 DDSURFACEDESC *pDDSDCurrent, | |
| 192 IDirectDrawPalette **ppDirectDrawPalette, | |
| 193 DDSURFACEDESC *pDDSDDesired, | |
| 194 DWORD *pdwFlags); | |
| 195 void __RPC_STUB IDirectDrawMediaStream_GetFormat_Stub( | |
| 196 IRpcStubBuffer* This, | |
| 197 IRpcChannelBuffer* pRpcChannelBuffer, | |
| 198 PRPC_MESSAGE pRpcMessage, | |
| 199 DWORD* pdwStubPhase); | |
| 200 HRESULT CALLBACK IDirectDrawMediaStream_SetFormat_Proxy( | |
| 201 IDirectDrawMediaStream* This, | |
| 202 const DDSURFACEDESC *pDDSurfaceDesc, | |
| 203 IDirectDrawPalette *pDirectDrawPalette); | |
| 204 void __RPC_STUB IDirectDrawMediaStream_SetFormat_Stub( | |
| 205 IRpcStubBuffer* This, | |
| 206 IRpcChannelBuffer* pRpcChannelBuffer, | |
| 207 PRPC_MESSAGE pRpcMessage, | |
| 208 DWORD* pdwStubPhase); | |
| 209 HRESULT CALLBACK IDirectDrawMediaStream_GetDirectDraw_Proxy( | |
| 210 IDirectDrawMediaStream* This, | |
| 211 IDirectDraw **ppDirectDraw); | |
| 212 void __RPC_STUB IDirectDrawMediaStream_GetDirectDraw_Stub( | |
| 213 IRpcStubBuffer* This, | |
| 214 IRpcChannelBuffer* pRpcChannelBuffer, | |
| 215 PRPC_MESSAGE pRpcMessage, | |
| 216 DWORD* pdwStubPhase); | |
| 217 HRESULT CALLBACK IDirectDrawMediaStream_SetDirectDraw_Proxy( | |
| 218 IDirectDrawMediaStream* This, | |
| 219 IDirectDraw *pDirectDraw); | |
| 220 void __RPC_STUB IDirectDrawMediaStream_SetDirectDraw_Stub( | |
| 221 IRpcStubBuffer* This, | |
| 222 IRpcChannelBuffer* pRpcChannelBuffer, | |
| 223 PRPC_MESSAGE pRpcMessage, | |
| 224 DWORD* pdwStubPhase); | |
| 225 HRESULT CALLBACK IDirectDrawMediaStream_CreateSample_Proxy( | |
| 226 IDirectDrawMediaStream* This, | |
| 227 IDirectDrawSurface *pSurface, | |
| 228 const RECT *pRect, | |
| 229 DWORD dwFlags, | |
| 230 IDirectDrawStreamSample **ppSample); | |
| 231 void __RPC_STUB IDirectDrawMediaStream_CreateSample_Stub( | |
| 232 IRpcStubBuffer* This, | |
| 233 IRpcChannelBuffer* pRpcChannelBuffer, | |
| 234 PRPC_MESSAGE pRpcMessage, | |
| 235 DWORD* pdwStubPhase); | |
| 236 HRESULT CALLBACK IDirectDrawMediaStream_GetTimePerFrame_Proxy( | |
| 237 IDirectDrawMediaStream* This, | |
| 238 STREAM_TIME *pFrameTime); | |
| 239 void __RPC_STUB IDirectDrawMediaStream_GetTimePerFrame_Stub( | |
| 240 IRpcStubBuffer* This, | |
| 241 IRpcChannelBuffer* pRpcChannelBuffer, | |
| 242 PRPC_MESSAGE pRpcMessage, | |
| 243 DWORD* pdwStubPhase); | |
| 244 | |
| 245 #endif /* __IDirectDrawMediaStream_INTERFACE_DEFINED__ */ | |
| 246 | |
| 247 /***************************************************************************** | |
| 248 * IDirectDrawStreamSample interface | |
| 249 */ | |
| 250 #ifndef __IDirectDrawStreamSample_INTERFACE_DEFINED__ | |
| 251 #define __IDirectDrawStreamSample_INTERFACE_DEFINED__ | |
| 252 | |
| 253 DEFINE_GUID(IID_IDirectDrawStreamSample, 0xf4104fcf, 0x9a70, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); | |
| 254 #if defined(__cplusplus) && !defined(CINTERFACE) | |
| 255 interface IDirectDrawStreamSample : public IStreamSample | |
| 256 { | |
| 257 virtual HRESULT STDMETHODCALLTYPE GetSurface( | |
| 258 IDirectDrawSurface **ppDirectDrawSurface, | |
| 259 RECT *pRect) = 0; | |
| 260 | |
| 261 virtual HRESULT STDMETHODCALLTYPE SetRect( | |
| 262 const RECT *pRect) = 0; | |
| 263 | |
| 264 }; | |
| 265 #else | |
| 266 typedef struct IDirectDrawStreamSampleVtbl { | |
| 267 BEGIN_INTERFACE | |
| 268 | |
| 269 /*** IUnknown methods ***/ | |
| 270 HRESULT (STDMETHODCALLTYPE *QueryInterface)( | |
| 271 IDirectDrawStreamSample* This, | |
| 272 REFIID riid, | |
| 273 void **ppvObject); | |
| 274 | |
| 275 ULONG (STDMETHODCALLTYPE *AddRef)( | |
| 276 IDirectDrawStreamSample* This); | |
| 277 | |
| 278 ULONG (STDMETHODCALLTYPE *Release)( | |
| 279 IDirectDrawStreamSample* This); | |
| 280 | |
| 281 /*** IStreamSample methods ***/ | |
| 282 HRESULT (STDMETHODCALLTYPE *GetMediaStream)( | |
| 283 IDirectDrawStreamSample* This, | |
| 284 IMediaStream **ppMediaStream); | |
| 285 | |
| 286 HRESULT (STDMETHODCALLTYPE *GetSampleTimes)( | |
| 287 IDirectDrawStreamSample* This, | |
| 288 STREAM_TIME *pStartTime, | |
| 289 STREAM_TIME *pEndTime, | |
| 290 STREAM_TIME *pCurrentTime); | |
| 291 | |
| 292 HRESULT (STDMETHODCALLTYPE *SetSampleTimes)( | |
| 293 IDirectDrawStreamSample* This, | |
| 294 const STREAM_TIME *pStartTime, | |
| 295 const STREAM_TIME *pEndTime); | |
| 296 | |
| 297 HRESULT (STDMETHODCALLTYPE *Update)( | |
| 298 IDirectDrawStreamSample* This, | |
| 299 DWORD dwFlags, | |
| 300 HANDLE hEvent, | |
| 301 PAPCFUNC pfnAPC, | |
| 302 DWORD dwAPCData); | |
| 303 | |
| 304 HRESULT (STDMETHODCALLTYPE *CompletionStatus)( | |
| 305 IDirectDrawStreamSample* This, | |
| 306 DWORD dwFlags, | |
| 307 DWORD dwMilliseconds); | |
| 308 | |
| 309 /*** IDirectDrawStreamSample methods ***/ | |
| 310 HRESULT (STDMETHODCALLTYPE *GetSurface)( | |
| 311 IDirectDrawStreamSample* This, | |
| 312 IDirectDrawSurface **ppDirectDrawSurface, | |
| 313 RECT *pRect); | |
| 314 | |
| 315 HRESULT (STDMETHODCALLTYPE *SetRect)( | |
| 316 IDirectDrawStreamSample* This, | |
| 317 const RECT *pRect); | |
| 318 | |
| 319 END_INTERFACE | |
| 320 } IDirectDrawStreamSampleVtbl; | |
| 321 interface IDirectDrawStreamSample { | |
| 322 const IDirectDrawStreamSampleVtbl* lpVtbl; | |
| 323 }; | |
| 324 | |
| 325 #ifdef COBJMACROS | |
| 326 /*** IUnknown methods ***/ | |
| 327 #define IDirectDrawStreamSample_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
| 328 #define IDirectDrawStreamSample_AddRef(p) (p)->lpVtbl->AddRef(p) | |
| 329 #define IDirectDrawStreamSample_Release(p) (p)->lpVtbl->Release(p) | |
| 330 /*** IStreamSample methods ***/ | |
| 331 #define IDirectDrawStreamSample_GetMediaStream(p,a) (p)->lpVtbl->GetMediaStream(p,a) | |
| 332 #define IDirectDrawStreamSample_GetSampleTimes(p,a,b,c) (p)->lpVtbl->GetSampleTimes(p,a,b,c) | |
| 333 #define IDirectDrawStreamSample_SetSampleTimes(p,a,b) (p)->lpVtbl->SetSampleTimes(p,a,b) | |
| 334 #define IDirectDrawStreamSample_Update(p,a,b,c,d) (p)->lpVtbl->Update(p,a,b,c,d) | |
| 335 #define IDirectDrawStreamSample_CompletionStatus(p,a,b) (p)->lpVtbl->CompletionStatus(p,a,b) | |
| 336 /*** IDirectDrawStreamSample methods ***/ | |
| 337 #define IDirectDrawStreamSample_GetSurface(p,a,b) (p)->lpVtbl->GetSurface(p,a,b) | |
| 338 #define IDirectDrawStreamSample_SetRect(p,a) (p)->lpVtbl->SetRect(p,a) | |
| 339 #endif | |
| 340 | |
| 341 #endif | |
| 342 | |
| 343 HRESULT CALLBACK IDirectDrawStreamSample_GetSurface_Proxy( | |
| 344 IDirectDrawStreamSample* This, | |
| 345 IDirectDrawSurface **ppDirectDrawSurface, | |
| 346 RECT *pRect); | |
| 347 void __RPC_STUB IDirectDrawStreamSample_GetSurface_Stub( | |
| 348 IRpcStubBuffer* This, | |
| 349 IRpcChannelBuffer* pRpcChannelBuffer, | |
| 350 PRPC_MESSAGE pRpcMessage, | |
| 351 DWORD* pdwStubPhase); | |
| 352 HRESULT CALLBACK IDirectDrawStreamSample_SetRect_Proxy( | |
| 353 IDirectDrawStreamSample* This, | |
| 354 const RECT *pRect); | |
| 355 void __RPC_STUB IDirectDrawStreamSample_SetRect_Stub( | |
| 356 IRpcStubBuffer* This, | |
| 357 IRpcChannelBuffer* pRpcChannelBuffer, | |
| 358 PRPC_MESSAGE pRpcMessage, | |
| 359 DWORD* pdwStubPhase); | |
| 360 | |
| 361 #endif /* __IDirectDrawStreamSample_INTERFACE_DEFINED__ */ | |
| 362 | |
| 363 /* Begin additional prototypes for all interfaces */ | |
| 364 | |
| 365 | |
| 366 /* End additional prototypes */ | |
| 367 | |
| 368 #ifdef __cplusplus | |
| 369 } | |
| 370 #endif | |
| 371 #endif /* __WIDL_DDSTREAM_H */ |
