Changeset 6952 for trunk/include/win
- Timestamp:
- Oct 6, 2001, 10:56:18 AM (24 years ago)
- Location:
- trunk/include/win
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/strmif.h
r6715 r6952 12 12 13 13 #include "ole2.h" 14 #include "wine/obj_oleaut.h" 15 #include "wine/obj_property.h" 16 #include "wine/obj_ksproperty.h" 14 17 15 18 /* undef GetTimeFormat - FIXME? */ … … 251 254 252 255 typedef LONGLONG REFERENCE_TIME; 253 #ifdef __WIN32OS2__254 typedef DWORD HSEMAPHORE;255 typedef DWORD HEVENT;256 #else257 256 typedef DWORD_PTR HSEMAPHORE; 258 257 typedef DWORD_PTR HEVENT; 259 #endif260 258 261 259 /* enums. */ … … 287 285 REG_PINFLAG_B_OUTPUT = 0x8, 288 286 } REG_PINFLAG; 287 288 typedef enum 289 { 290 AM_SAMPLE_SPLICEPOINT = 0x1, 291 AM_SAMPLE_PREROLL = 0x2, 292 AM_SAMPLE_DATADISCONTINUITY = 0x4, 293 AM_SAMPLE_TYPECHANGED = 0x8, 294 AM_SAMPLE_TIMEVALID = 0x10, 295 AM_SAMPLE_TIMEDISCONTINUITY = 0x40, 296 AM_SAMPLE_FLUSH_ON_PAUSE = 0x80, 297 AM_SAMPLE_STOPVALID = 0x100, 298 AM_SAMPLE_ENDOFSTREAM = 0x200, 299 300 AM_STREAM_MEDIA = 0, 301 AM_STREAM_CONTROL = 1 302 } AM_SAMPLE_PROPERTY_FLAGS; 289 303 290 304 … … 403 417 } REGFILTER2; 404 418 419 typedef struct 420 { 421 DWORD cbData; 422 DWORD dwTypeSpecificFlags; 423 DWORD dwSampleFlags; 424 LONG lActual; 425 REFERENCE_TIME tStart; 426 REFERENCE_TIME tStop; 427 DWORD dwStreamId; 428 AM_MEDIA_TYPE* pMediaType; 429 BYTE* pbBuffer; 430 LONG cbBuffer; 431 } AM_SAMPLE2_PROPERTIES; 432 433 405 434 406 435 /* defines. */ … … 410 439 #define MAX_FILTER_NAME 128 411 440 441 #define AM_GBF_PREVFRAMESKIPPED 1 442 #define AM_GBF_NOTASYNCPOINT 2 443 #define AM_GBF_NOWAIT 4 444 412 445 413 446 /* interfaces. */ 447 448 /************************************************************************** 449 * 450 * IAsyncReader interface 451 * 452 */ 453 454 #define ICOM_INTERFACE IAsyncReader 455 #define IAsyncReader_METHODS \ 456 ICOM_METHOD3(HRESULT,RequestAllocator,IMemAllocator*,a1,ALLOCATOR_PROPERTIES*,a2,IMemAllocator**,a3) \ 457 ICOM_METHOD2(HRESULT,Request,IMediaSample*,a1,DWORD_PTR,a2) \ 458 ICOM_METHOD3(HRESULT,WaitForNext,DWORD,a1,IMediaSample**,a2,DWORD_PTR*,a3) \ 459 ICOM_METHOD1(HRESULT,SyncReadAligned,IMediaSample*,a1) \ 460 ICOM_METHOD3(HRESULT,SyncRead,LONGLONG,a1,LONG,a2,BYTE*,a3) \ 461 ICOM_METHOD2(HRESULT,Length,LONGLONG*,a1,LONGLONG*,a2) \ 462 ICOM_METHOD (HRESULT,BeginFlush) \ 463 ICOM_METHOD (HRESULT,EndFlush) 464 465 #define IAsyncReader_IMETHODS \ 466 IUnknown_IMETHODS \ 467 IAsyncReader_METHODS 468 469 ICOM_DEFINE(IAsyncReader,IUnknown) 470 #undef ICOM_INTERFACE 471 472 /*** IUnknown methods ***/ 473 #define IAsyncReader_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2) 474 #define IAsyncReader_AddRef(p) ICOM_CALL (AddRef,p) 475 #define IAsyncReader_Release(p) ICOM_CALL (Release,p) 476 /*** IAsyncReader methods ***/ 477 #define IAsyncReader_RequestAllocator(p,a1,a2,a3) ICOM_CALL3(RequestAllocator,p,a1,a2,a3) 478 #define IAsyncReader_Request(p,a1,a2) ICOM_CALL2(Request,p,a1,a2) 479 #define IAsyncReader_WaitForNext(p,a1,a2,a3) ICOM_CALL3(WaitForNext,p,a1,a2,a3) 480 #define IAsyncReader_SyncReadAligned(p,a1) ICOM_CALL1(SyncReadAligned,p,a1) 481 #define IAsyncReader_SyncRead(p,a1,a2,a3) ICOM_CALL3(SyncRead,p,a1,a2,a3) 482 #define IAsyncReader_Length(p,a1,a2) ICOM_CALL2(Length,p,a1,a2) 483 #define IAsyncReader_BeginFlush(p) ICOM_CALL (BeginFlush,p) 484 #define IAsyncReader_EndFlush(p) ICOM_CALL (EndFlush,p) 414 485 415 486 /************************************************************************** … … 492 563 /************************************************************************** 493 564 * 565 * ICaptureGraphBuilder interface 566 * 567 */ 568 569 #define ICOM_INTERFACE ICaptureGraphBuilder 570 #define ICaptureGraphBuilder_METHODS \ 571 ICOM_METHOD1(HRESULT,SetFiltergraph,IGraphBuilder*,a1) \ 572 ICOM_METHOD1(HRESULT,GetFiltergraph,IGraphBuilder**,a1) \ 573 ICOM_METHOD4(HRESULT,SetOutputFileName,const GUID*,a1,LPCOLESTR,a2,IBaseFilter**,a3,IFileSinkFilter**,a4) \ 574 ICOM_METHOD4(HRESULT,FindInterface,const GUID*,a1,IBaseFilter*,a2,REFIID,a3,void**,a4) \ 575 ICOM_METHOD4(HRESULT,RenderStream,const GUID*,a1,IUnknown*,a2,IBaseFilter*,a3,IBaseFilter*,a4) \ 576 ICOM_METHOD6(HRESULT,ControlStream,const GUID*,a1,IBaseFilter*,a2,REFERENCE_TIME*,a3,REFERENCE_TIME*,a4,WORD,a5,WORD,a6) \ 577 ICOM_METHOD2(HRESULT,AllocCapFile,LPCOLESTR,a1,DWORDLONG,a2) \ 578 ICOM_METHOD4(HRESULT,CopyCaptureFile,LPOLESTR,a1,LPOLESTR,a2,int,a3,IAMCopyCaptureFileProgress*,a4) 579 580 #define ICaptureGraphBuilder_IMETHODS \ 581 IUnknown_IMETHODS \ 582 ICaptureGraphBuilder_METHODS 583 584 ICOM_DEFINE(ICaptureGraphBuilder,IUnknown) 585 #undef ICOM_INTERFACE 586 587 /*** IUnknown methods ***/ 588 #define ICaptureGraphBuilder_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2) 589 #define ICaptureGraphBuilder_AddRef(p) ICOM_CALL (AddRef,p) 590 #define ICaptureGraphBuilder_Release(p) ICOM_CALL (Release,p) 591 /*** ICaptureGraphBuilder methods ***/ 592 #define ICaptureGraphBuilder_SetFiltergraph(p,a1) ICOM_CALL1(SetFiltergraph,p,a1) 593 #define ICaptureGraphBuilder_GetFiltergraph(p,a1) ICOM_CALL1(GetFiltergraph,p,a1) 594 #define ICaptureGraphBuilder_SetOutputFileName(p,a1,a2,a3,a4) ICOM_CALL4(SetOutputFileName,p,a1,a2,a3,a4) 595 #define ICaptureGraphBuilder_FindInterface(p,a1,a2,a3,a4) ICOM_CALL4(FindInterface,p,a1,a2,a3,a4) 596 #define ICaptureGraphBuilder_RenderStream(p,a1,a2,a3,a4) ICOM_CALL4(RenderStream,p,a1,a2,a3,a4) 597 #define ICaptureGraphBuilder_ControlStream(p,a1,a2,a3,a4,a5,a6) ICOM_CALL6(ControlStream,p,a1,a2,a3,a4,a5,a6) 598 #define ICaptureGraphBuilder_AllocCapFile(p,a1,a2) ICOM_CALL2(AllocCapFile,p,a1,a2) 599 #define ICaptureGraphBuilder_CopyCaptureFile(p,a1,a2,a3,a4) ICOM_CALL4(CopyCaptureFile,p,a1,a2,a3,a4) 600 601 /************************************************************************** 602 * 603 * ICaptureGraphBuilder2 interface 604 * 605 */ 606 607 #define ICOM_INTERFACE ICaptureGraphBuilder2 608 #define ICaptureGraphBuilder2_METHODS \ 609 ICOM_METHOD1(HRESULT,SetFiltergraph,IGraphBuilder*,a1) \ 610 ICOM_METHOD1(HRESULT,GetFiltergraph,IGraphBuilder**,a1) \ 611 ICOM_METHOD4(HRESULT,SetOutputFileName,const GUID*,a1,LPCOLESTR,a2,IBaseFilter**,a3,IFileSinkFilter**,a4) \ 612 ICOM_METHOD5(HRESULT,FindInterface,const GUID*,a1,const GUID*,a2,IBaseFilter*,a3,REFIID,a4,void**,a5) \ 613 ICOM_METHOD5(HRESULT,RenderStream,const GUID*,a1,const GUID*,a2,IUnknown*,a3,IBaseFilter*,a4,IBaseFilter*,a5) \ 614 ICOM_METHOD7(HRESULT,ControlStream,const GUID*,a1,const GUID*,a2,IBaseFilter*,a3,REFERENCE_TIME*,a4,REFERENCE_TIME*,a5,WORD,a6,WORD,a7) \ 615 ICOM_METHOD2(HRESULT,AllocCapFile,LPCOLESTR,a1,DWORDLONG,a2) \ 616 ICOM_METHOD4(HRESULT,CopyCaptureFile,LPOLESTR,a1,LPOLESTR,a2,int,a3,IAMCopyCaptureFileProgress*,a4) \ 617 ICOM_METHOD7(HRESULT,FindPin,IUnknown*,a1,PIN_DIRECTION,a2,const GUID*,a3,const GUID*,a4,BOOL,a5,int,a6,IPin**,a7) 618 619 #define ICaptureGraphBuilder2_IMETHODS \ 620 IUnknown_IMETHODS \ 621 ICaptureGraphBuilder2_METHODS 622 623 ICOM_DEFINE(ICaptureGraphBuilder2,IUnknown) 624 #undef ICOM_INTERFACE 625 626 /*** IUnknown methods ***/ 627 #define ICaptureGraphBuilder2_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2) 628 #define ICaptureGraphBuilder2_AddRef(p) ICOM_CALL (AddRef,p) 629 #define ICaptureGraphBuilder2_Release(p) ICOM_CALL (Release,p) 630 /*** ICaptureGraphBuilder2 methods ***/ 631 #define ICaptureGraphBuilder2_SetFiltergraph(p,a1) ICOM_CALL1(SetFiltergraph,p,a1) 632 #define ICaptureGraphBuilder2_GetFiltergraph(p,a1) ICOM_CALL1(GetFiltergraph,p,a1) 633 #define ICaptureGraphBuilder2_SetOutputFileName(p,a1,a2,a3,a4) ICOM_CALL4(SetOutputFileName,p,a1,a2,a3,a4) 634 #define ICaptureGraphBuilder2_FindInterface(p,a1,a2,a3,a4,a5) ICOM_CALL5(FindInterface,p,a1,a2,a3,a4,a5) 635 #define ICaptureGraphBuilder2_RenderStream(p,a1,a2,a3,a4,a5) ICOM_CALL5(RenderStream,p,a1,a2,a3,a4,a5) 636 #define ICaptureGraphBuilder2_ControlStream(p,a1,a2,a3,a4,a5,a6,a7) ICOM_CALL7(ControlStream,p,a1,a2,a3,a4,a5,a6,a7) 637 #define ICaptureGraphBuilder2_AllocCapFile(p,a1,a2) ICOM_CALL2(AllocCapFile,p,a1,a2) 638 #define ICaptureGraphBuilder2_CopyCaptureFile(p,a1,a2,a3,a4) ICOM_CALL4(CopyCaptureFile,p,a1,a2,a3,a4) 639 #define ICaptureGraphBuilder2_FindPin(p,a1,a2,a3,a4,a5,a6,a7) ICOM_CALL7(FindPin,p,a1,a2,a3,a4,a5,a6,a7) 640 641 /************************************************************************** 642 * 494 643 * ICreateDevEnum interface 495 644 * … … 513 662 /*** ICreateDevEnum methods ***/ 514 663 #define ICreateDevEnum_CreateClassEnumerator(p,a1,a2,a3) ICOM_CALL3(CreateClassEnumerator,p,a1,a2,a3) 664 665 /************************************************************************** 666 * 667 * IDistributorNotify interface 668 * 669 */ 670 671 #define ICOM_INTERFACE IDistributorNotify 672 #define IDistributorNotify_METHODS \ 673 ICOM_METHOD (HRESULT,Stop) \ 674 ICOM_METHOD (HRESULT,Pause) \ 675 ICOM_METHOD1(HRESULT,Run,REFERENCE_TIME,a1) \ 676 ICOM_METHOD1(HRESULT,SetSyncSource,IReferenceClock*,a1) \ 677 ICOM_METHOD (HRESULT,NotifyGraphChange) 678 679 #define IDistributorNotify_IMETHODS \ 680 IUnknown_IMETHODS \ 681 IDistributorNotify_METHODS 682 683 ICOM_DEFINE(IDistributorNotify,IUnknown) 684 #undef ICOM_INTERFACE 685 686 /*** IUnknown methods ***/ 687 #define IDistributorNotify_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2) 688 #define IDistributorNotify_AddRef(p) ICOM_CALL (AddRef,p) 689 #define IDistributorNotify_Release(p) ICOM_CALL (Release,p) 690 /*** IDistributorNotify methods ***/ 691 #define IDistributorNotify_Stop(p) ICOM_CALL (Stop,p) 692 #define IDistributorNotify_Pause(p) ICOM_CALL (Pause,p) 693 #define IDistributorNotify_Run(p,a1) ICOM_CALL1(Run,p,a1) 694 #define IDistributorNotify_SetSyncSource(p,a1) ICOM_CALL1(SetSyncSource,p,a1) 695 #define IDistributorNotify_NotifyGraphChange(p) ICOM_CALL (NotifyGraphChange,p) 696 697 /************************************************************************** 698 * 699 * IDVSplitter interface 700 * 701 */ 702 703 #define ICOM_INTERFACE IDVSplitter 704 #define IDVSplitter_METHODS \ 705 ICOM_METHOD1(HRESULT,DiscardAlternateVideoFrames,int,a1) 706 707 #define IDVSplitter_IMETHODS \ 708 IUnknown_IMETHODS \ 709 IDVSplitter_METHODS 710 711 ICOM_DEFINE(IDVSplitter,IUnknown) 712 #undef ICOM_INTERFACE 713 714 /*** IUnknown methods ***/ 715 #define IDVSplitter_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2) 716 #define IDVSplitter_AddRef(p) ICOM_CALL (AddRef,p) 717 #define IDVSplitter_Release(p) ICOM_CALL (Release,p) 718 /*** IDVSplitter methods ***/ 719 #define IDVSplitter_DiscardAlternateVideoFrames(p,a1) ICOM_CALL1(DiscardAlternateVideoFrames,p,a1) 515 720 516 721 /************************************************************************** … … 684 889 #define IFileSourceFilter_Load(p,a1,a2) ICOM_CALL2(Load,p,a1,a2) 685 890 #define IFileSourceFilter_GetCurFile(p,a1,a2) ICOM_CALL2(GetCurFile,p,a1,a2) 891 892 /************************************************************************** 893 * 894 * IFilterChain interface 895 * 896 */ 897 898 #define ICOM_INTERFACE IFilterChain 899 #define IFilterChain_METHODS \ 900 ICOM_METHOD2(HRESULT,StartChain,IBaseFilter*,a1,IBaseFilter*,a2) \ 901 ICOM_METHOD2(HRESULT,PauseChain,IBaseFilter*,a1,IBaseFilter*,a2) \ 902 ICOM_METHOD2(HRESULT,StopChain,IBaseFilter*,a1,IBaseFilter*,a2) \ 903 ICOM_METHOD2(HRESULT,RemoveChain,IBaseFilter*,a1,IBaseFilter*,a2) 904 905 #define IFilterChain_IMETHODS \ 906 IUnknown_IMETHODS \ 907 IFilterChain_METHODS 908 909 ICOM_DEFINE(IFilterChain,IUnknown) 910 #undef ICOM_INTERFACE 911 912 /*** IUnknown methods ***/ 913 #define IFilterChain_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2) 914 #define IFilterChain_AddRef(p) ICOM_CALL (AddRef,p) 915 #define IFilterChain_Release(p) ICOM_CALL (Release,p) 916 /*** IFilterChain methods ***/ 917 #define IFilterChain_StartChain(p,a1,a2) ICOM_CALL2(StartChain,p,a1,a2) 918 #define IFilterChain_PauseChain(p,a1,a2) ICOM_CALL2(PauseChain,p,a1,a2) 919 #define IFilterChain_StopChain(p,a1,a2) ICOM_CALL2(StopChain,p,a1,a2) 920 #define IFilterChain_RemoveChain(p,a1,a2) ICOM_CALL2(RemoveChain,p,a1,a2) 686 921 687 922 /************************************************************************** … … 912 1147 /************************************************************************** 913 1148 * 1149 * IGraphConfig interface 1150 * 1151 */ 1152 1153 #define ICOM_INTERFACE IGraphConfig 1154 #define IGraphConfig_METHODS \ 1155 ICOM_METHOD6(HRESULT,Reconnect,IPin*,a1,IPin*,a2,const AM_MEDIA_TYPE*,a3,IBaseFilter*,a4,HANDLE,a5,DWORD,a6) \ 1156 ICOM_METHOD4(HRESULT,Reconfigure,IGraphConfigCallback*,a1,PVOID,a2,DWORD,a3,HANDLE,a4) \ 1157 ICOM_METHOD1(HRESULT,AddFilterToCache,IBaseFilter*,a1) \ 1158 ICOM_METHOD1(HRESULT,EnumCacheFilter,IEnumFilters**,a1) \ 1159 ICOM_METHOD1(HRESULT,RemoveFilterFromCache,IBaseFilter*,a1) \ 1160 ICOM_METHOD1(HRESULT,GetStartTime,REFERENCE_TIME*,a1) \ 1161 ICOM_METHOD3(HRESULT,PushThroughData,IPin*,a1,IPinConnection*,a2,HANDLE,a3) \ 1162 ICOM_METHOD2(HRESULT,SetFilterFlags,IBaseFilter*,a1,DWORD,a2) \ 1163 ICOM_METHOD2(HRESULT,GetFilterFlags,IBaseFilter*,a1,DWORD*,a2) \ 1164 ICOM_METHOD2(HRESULT,RemoveFilterEx,IBaseFilter*,a1,DWORD,a2) 1165 1166 #define IGraphConfig_IMETHODS \ 1167 IUnknown_IMETHODS \ 1168 IGraphConfig_METHODS 1169 1170 ICOM_DEFINE(IGraphConfig,IUnknown) 1171 #undef ICOM_INTERFACE 1172 1173 /*** IUnknown methods ***/ 1174 #define IGraphConfig_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2) 1175 #define IGraphConfig_AddRef(p) ICOM_CALL (AddRef,p) 1176 #define IGraphConfig_Release(p) ICOM_CALL (Release,p) 1177 /*** IGraphConfig methods ***/ 1178 #define IGraphConfig_Reconnect(p,a1,a2,a3,a4,a5,a6) ICOM_CALL6(Reconnect,p,a1,a2,a3,a4,a5,a6) 1179 #define IGraphConfig_Reconfigure(p,a1,a2,a3,a4) ICOM_CALL4(Reconfigure,p,a1,a2,a3,a4) 1180 #define IGraphConfig_AddFilterToCache(p,a1) ICOM_CALL1(AddFilterToCache,p,a1) 1181 #define IGraphConfig_EnumCacheFilter(p,a1) ICOM_CALL1(EnumCacheFilter,p,a1) 1182 #define IGraphConfig_RemoveFilterFromCache(p,a1) ICOM_CALL1(RemoveFilterFromCache,p,a1) 1183 #define IGraphConfig_GetStartTime(p,a1) ICOM_CALL1(GetStartTime,p,a1) 1184 #define IGraphConfig_PushThroughData(p,a1,a2,a3) ICOM_CALL3(PushThroughData,p,a1,a2,a3) 1185 #define IGraphConfig_SetFilterFlags(p,a1,a2) ICOM_CALL2(SetFilterFlags,p,a1,a2) 1186 #define IGraphConfig_GetFilterFlags(p,a1,a2) ICOM_CALL2(GetFilterFlags,p,a1,a2) 1187 #define IGraphConfig_RemoveFilterEx(p,a1,a2) ICOM_CALL2(RemoveFilterEx,p,a1,a2) 1188 1189 /************************************************************************** 1190 * 1191 * IGraphConfigCallback interface 1192 * 1193 */ 1194 1195 #define ICOM_INTERFACE IGraphConfigCallback 1196 #define IGraphConfigCallback_METHODS \ 1197 ICOM_METHOD2(HRESULT,Reconfigure,PVOID,a1,DWORD,a2) 1198 1199 #define IGraphConfigCallback_IMETHODS \ 1200 IUnknown_IMETHODS \ 1201 IGraphConfigCallback_METHODS 1202 1203 ICOM_DEFINE(IGraphConfigCallback,IUnknown) 1204 #undef ICOM_INTERFACE 1205 1206 /*** IUnknown methods ***/ 1207 #define IGraphConfigCallback_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2) 1208 #define IGraphConfigCallback_AddRef(p) ICOM_CALL (AddRef,p) 1209 #define IGraphConfigCallback_Release(p) ICOM_CALL (Release,p) 1210 /*** IGraphConfigCallback methods ***/ 1211 #define IGraphConfigCallback_Reconfigure(p,a1,a2) ICOM_CALL2(Reconfigure,p,a1,a2) 1212 1213 /************************************************************************** 1214 * 914 1215 * IGraphVersion interface 915 1216 * … … 934 1235 #define IGraphVersion_QueryVersion(p,a1) ICOM_CALL1(QueryVersion,p,a1) 935 1236 1237 936 1238 /************************************************************************** 937 1239 * … … 957 1259 /*** IMediaEventSink methods ***/ 958 1260 #define IMediaEventSink_Notify(p,a1,a2,a3) ICOM_CALL3(Notify,p,a1,a2,a3) 1261 1262 /************************************************************************** 1263 * 1264 * IMediaPropertyBag interface 1265 * 1266 */ 1267 1268 #define ICOM_INTERFACE IMediaPropertyBag 1269 #define IMediaPropertyBag_METHODS \ 1270 ICOM_METHOD3(HRESULT,EnumProperty,ULONG,a1,VARIANT*,a2,VARIANT*,a3) 1271 1272 #define IMediaPropertyBag_IMETHODS \ 1273 IPropertyBag_IMETHODS \ 1274 IMediaPropertyBag_METHODS 1275 1276 ICOM_DEFINE(IMediaPropertyBag,IPropertyBag) 1277 #undef ICOM_INTERFACE 1278 1279 /*** IUnknown methods ***/ 1280 #define IMediaPropertyBag_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2) 1281 #define IMediaPropertyBag_AddRef(p) ICOM_CALL (AddRef,p) 1282 #define IMediaPropertyBag_Release(p) ICOM_CALL (Release,p) 1283 /*** IPropertyBag methods ***/ 1284 #define IMediaPropertyBag_Read(p,a1,a2,a3) ICOM_CALL3(Read,p,a1,a2,a3) 1285 #define IMediaPropertyBag_Write(p,a1,a2) ICOM_CALL2(Write,p,a1,a2) 1286 /*** IMediaPropertyBag methods ***/ 1287 #define IMediaPropertyBag_EnumProperty(p,a1,a2,a3) ICOM_CALL3(EnumProperty,p,a1,a2,a3) 959 1288 960 1289 /************************************************************************** … … 1003 1332 #define IMediaSample_IsPreroll(p) ICOM_CALL (IsPreroll,p) 1004 1333 #define IMediaSample_SetPreroll(p,a1) ICOM_CALL1(SetPreroll,p,a1) 1005 #define IMediaSample_GetActualDataLength(p ,a1) ICOM_CALL1(GetActualDataLength,p,a1)1334 #define IMediaSample_GetActualDataLength(p) ICOM_CALL (GetActualDataLength,p) 1006 1335 #define IMediaSample_SetActualDataLength(p,a1) ICOM_CALL1(SetActualDataLength,p,a1) 1007 1336 #define IMediaSample_GetMediaType(p,a1) ICOM_CALL1(GetMediaType,p,a1) … … 1238 1567 /************************************************************************** 1239 1568 * 1569 * IOverlay interface 1570 * 1571 */ 1572 1573 #define ICOM_INTERFACE IOverlay 1574 #define IOverlay_METHODS \ 1575 ICOM_METHOD2(HRESULT,GetPalette,DWORD*,a1,PALETTEENTRY**,a2) \ 1576 ICOM_METHOD2(HRESULT,SetPalette,DWORD,a1,PALETTEENTRY*,a2) \ 1577 ICOM_METHOD1(HRESULT,GetDefaultColorKey,COLORKEY*,a1) \ 1578 ICOM_METHOD1(HRESULT,GetColorKey,COLORKEY*,a1) \ 1579 ICOM_METHOD1(HRESULT,SetColorKey,COLORKEY*,a1) \ 1580 ICOM_METHOD1(HRESULT,GetWindowHandle,HWND*,a1) \ 1581 ICOM_METHOD3(HRESULT,GetClipList,RECT*,a1,RECT*,a2,RGNDATA**,a3) \ 1582 ICOM_METHOD2(HRESULT,GetVideoPosition,RECT*,a1,RECT*,a2) \ 1583 ICOM_METHOD2(HRESULT,Advise,IOverlayNotify*,a1,DWORD,a2) \ 1584 ICOM_METHOD (HRESULT,Unadvise) 1585 1586 #define IOverlay_IMETHODS \ 1587 IUnknown_IMETHODS \ 1588 IOverlay_METHODS 1589 1590 ICOM_DEFINE(IOverlay,IUnknown) 1591 #undef ICOM_INTERFACE 1592 1593 /*** IUnknown methods ***/ 1594 #define IOverlay_QueryInterface(p,a1,a2) ICOM_CALL2(QueryInterface,p,a1,a2) 1595 #define IOverlay_AddRef(p) ICOM_CALL (AddRef,p) 1596 #define IOverlay_Release(p) ICOM_CALL (Release,p) 1597 /*** IOverlay methods ***/ 1598 #define IOverlay_GetPalette(p,a1,a2) ICOM_CALL2(GetPalette,p,a1,a2) 1599 #define IOverlay_SetPalette(p,a1,a2) ICOM_CALL2(SetPalette,p,a1,a2) 1600 #define IOverlay_GetDefaultColorKey(p,a1) ICOM_CALL1(GetDefaultColorKey,p,a1) 1601 #define IOverlay_GetColorKey(p,a1) ICOM_CALL1(GetColorKey,p,a1) 1602 #define IOverlay_SetColorKey(p,a1) ICOM_CALL1(SetColorKey,p,a1) 1603 #define IOverlay_GetWindowHandle(p,a1) ICOM_CALL1(GetWindowHandle,p,a1) 1604 #define IOverlay_GetClipList(p,a1,a2,a3) ICOM_CALL3(GetClipList,p,a1,a2,a3) 1605 #define IOverlay_GetVideoPosition(p,a1,a2) ICOM_CALL2(GetVideoPosition,p,a1,a2) 1606 #define IOverlay_Advise(p,a1,a2) ICOM_CALL2(Advise,p,a1,a2) 1607 #define IOverlay_Unadvise(p) ICOM_CALL1(Unadvise,p) 1608 1609 /************************************************************************** 1610 * 1240 1611 * IPin interface 1241 1612 * -
trunk/include/win/uuids.h
r6715 r6952 1 1 #ifndef __WINE_DSHOW_UUIDS_H 2 2 #define __WINE_DSHOW_UUIDS_H 3 4 #include "wine/obj_base.h" 3 5 4 6 /* FIXME - many GUIDs should be defined in this header. */ -
trunk/include/win/wine/obj_property.h
r641 r6952 1 /* $Id: obj_property.h,v 1.5 1999-08-22 22:52:09 sandervl Exp $ */2 1 /* 3 2 * Defines the COM interfaces and APIs from ocidl.h related to property … … 8 7 #ifndef __WINE_WINE_OBJ_PROPERTY_H 9 8 #define __WINE_WINE_OBJ_PROPERTY_H 10 11 12 #include "winbase.h"13 #include "wine/obj_oleaut.h" /* for DISPID */14 9 15 10 #ifdef __cplusplus … … 56 51 57 52 53 typedef enum tagPROPBAG2_TYPE 54 { 55 PROPBAG2_TYPE_UNDEFINED = 0, 56 PROPBAG2_TYPE_DATA = 1, 57 PROPBAG2_TYPE_URL = 2, 58 PROPBAG2_TYPE_OBJECT = 3, 59 PROPBAG2_TYPE_STREAM = 4, 60 PROPBAG2_TYPE_STORAGE = 5, 61 PROPBAG2_TYPE_MONIKER = 6 62 } PROPBAG2_TYPE; 63 64 typedef struct tagPROPBAG2 65 { 66 DWORD dwType; 67 VARTYPE vt; 68 CLIPFORMAT cfType; 69 DWORD dwHint; 70 LPOLESTR pstrName; 71 CLSID clsid; 72 } PROPBAG2; 73 58 74 /***************************************************************************** 59 75 * Predeclare the interfaces … … 83 99 typedef struct IPersistPropertyBag IPersistPropertyBag,*LPPERSISTPROPERTYBAG; 84 100 101 DEFINE_GUID(IID_IPersistPropertyBag2, 0x22f55881, 0x280b, 0x11d0, 0xa8, 0xa9, 0x00, 0xa0, 0xc9, 0x0c, 0x20, 0x04); 102 typedef struct IPersistPropertyBag2 IPersistPropertyBag2,*LPPERSISTPROPERTYBAG2; 103 85 104 DEFINE_GUID(IID_IErrorLog, 0x3127ca40L, 0x446e, 0x11ce, 0x81, 0x35, 0x00, 0xaa, 0x00, 0x4b, 0xb8, 0x51); 86 105 typedef struct IErrorLog IErrorLog,*LPERRORLOG; … … 89 108 typedef struct IPropertyBag IPropertyBag,*LPPROPERTYBAG; 90 109 110 DEFINE_GUID(IID_IPropertyBag2, 0x22f55882, 0x280b, 0x11d0, 0xa8, 0xa9, 0x00, 0xa0, 0xc9, 0x0c, 0x20, 0x04); 111 typedef struct IPropertyBag2 IPropertyBag2,*LPPROPERTYBAG2; 112 91 113 DEFINE_GUID(IID_ISpecifyPropertyPages, 0xb196b28b, 0xbab4, 0x101a, 0xb6, 0x9c, 0x00, 0xaa, 0x00, 0x34, 0x1d, 0x07); 92 114 typedef struct ISpecifyPropertyPages ISpecifyPropertyPages,*LPSPECIFYPROPERTYPAGES; … … 118 140 #undef ICOM_INTERFACE 119 141 120 #ifdef ICOM_CINTERFACE121 142 /*** IUnknown methods ***/ 122 143 #define IPropertyPage_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 135 156 #define IPropertyPage_Help(p,a) ICOM_CALL1(Help,p,a) 136 157 #define IPropertyPage_TranslateAccelerator(p,a) ICOM_CALL1(TranslateAccelerator,p,a) 137 #endif138 158 139 159 … … 150 170 #undef ICOM_INTERFACE 151 171 152 #ifdef ICOM_CINTERFACE153 172 /*** IUnknown methods ***/ 154 173 #define IPropertyPage2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 169 188 /*** IPropertyPage2 methods ***/ 170 189 #define IPropertyPage2_EditProperty(p,a) ICOM_CALL1(EditProperty,p,a) 171 #endif172 190 173 191 … … 187 205 #undef ICOM_INTERFACE 188 206 189 #ifdef ICOM_CINTERFACE190 207 /*** IUnknown methods ***/ 191 208 #define IPropertyPageSite_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 197 214 #define IPropertyPageSite_GetPageContainer(p,a) ICOM_CALL1(GetPageContainer,p,a) 198 215 #define IPropertyPageSite_TranslateAccelerator(p,a) ICOM_CALL1(TranslateAccelerator,p,a) 199 #endif200 216 201 217 … … 213 229 #undef ICOM_INTERFACE 214 230 215 #ifdef ICOM_CINTERFACE216 231 /*** IUnknown methods ***/ 217 232 #define IPropertyNotifySink_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 221 236 #define IPropertyNotifySink_OnChanged(p,a) ICOM_CALL1(OnChanged,p,a) 222 237 #define IPropertyNotifySink_OnRequestEdit(p,a) ICOM_CALL1(OnRequestEdit,p,a) 223 #endif224 238 225 239 … … 237 251 #undef ICOM_INTERFACE 238 252 239 #ifdef ICOM_CINTERFACE240 253 /*** IUnknown methods ***/ 241 254 #define ISimpleFrameSite_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 245 258 #define ISimpleFrameSite_PreMessageFilter(p,a,b,c,d,e,f) ICOM_CALL1(PreMessageFilter,p,a,b,c,d,e,f) 246 259 #define ISimpleFrameSite_PostMessageFilter(p,a,b,c,d,e,f) ICOM_CALL1(PostMessageFilter,p,a,b,c,d,e,f) 247 #endif248 260 249 261 … … 264 276 #undef ICOM_INTERFACE 265 277 266 #ifdef ICOM_CINTERFACE267 278 /*** IUnknown methods ***/ 268 279 #define IPersistStreamInit_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 277 288 #define IPersistStreamInit_GetSizeMax(p,a) ICOM_CALL1(GetSizeMax,p,a) 278 289 #define IPersistStreamInit_InitNew(p) ICOM_CALL (InitNew,p) 279 #endif280 290 281 291 … … 296 306 #undef ICOM_INTERFACE 297 307 298 #ifdef ICOM_CINTERFACE299 308 /*** IUnknown methods ***/ 300 309 #define IPersistMemory_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 309 318 #define IPersistMemory_GetSizeMax(p,a) ICOM_CALL1(GetSizeMax,p,a) 310 319 #define IPersistMemory_InitNew(p) ICOM_CALL (InitNew,p) 311 #endif312 320 313 321 … … 326 334 #undef ICOM_INTERFACE 327 335 328 #ifdef ICOM_CINTERFACE329 336 /*** IUnknown methods ***/ 330 337 #define IPersistPropertyBag_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 337 344 #define IPersistPropertyBag_Load(p,a,b) ICOM_CALL2(Load,p,a,b) 338 345 #define IPersistPropertyBag_Save(p,a,b,c) ICOM_CALL3(Save,p,a,b,c) 339 #endif 346 347 348 /***************************************************************************** 349 * IPersistPropertyBag2 interface 350 */ 351 #define ICOM_INTERFACE IPersistPropertyBag2 352 #define IPersistPropertyBag2_METHODS \ 353 ICOM_METHOD (HRESULT,InitNew) \ 354 ICOM_METHOD2(HRESULT,Load, IPropertyBag2*,pPropBag, IErrorLog*,pErrorLog) \ 355 ICOM_METHOD3(HRESULT,Save, IPropertyBag2*,pPropBag, BOOL,fClearDirty, BOOL,fSaveAllProperties) \ 356 ICOM_METHOD (HRESULT,IsDirty) 357 #define IPersistPropertyBag2_IMETHODS \ 358 IPersist_IMETHODS \ 359 IPersistPropertyBag2_METHODS 360 ICOM_DEFINE(IPersistPropertyBag2,IPersist) 361 #undef ICOM_INTERFACE 362 363 /*** IUnknown methods ***/ 364 #define IPersistPropertyBag2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) 365 #define IPersistPropertyBag2_AddRef(p) ICOM_CALL (AddRef,p) 366 #define IPersistPropertyBag2_Release(p) ICOM_CALL (Release,p) 367 /*** IPersist methods ***/ 368 #define IPersistPropertyBag2_GetClassID(p,a) ICOM_CALL1(GetClassID,p,a) 369 /*** IPersistPropertyBag methods ***/ 370 #define IPersistPropertyBag2_InitNew(p) ICOM_CALL (InitNew,p) 371 #define IPersistPropertyBag2_Load(p,a,b) ICOM_CALL2(Load,p,a,b) 372 #define IPersistPropertyBag2_Save(p,a,b,c) ICOM_CALL3(Save,p,a,b,c) 373 #define IPersistPropertyBag2_IsDirty(p) ICON_CALL (IsDirty,p) 340 374 341 375 … … 352 386 #undef ICOM_INTERFACE 353 387 354 #ifdef ICOM_CINTERFACE355 388 /*** IUnknown methods ***/ 356 389 #define IErrorLog_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 359 392 /*** IErrorLog methods ***/ 360 393 #define IErrorLog_AddError(p,a,b) ICOM_CALL2(GetClassID,p,a,b) 361 #endif362 394 363 395 … … 375 407 #undef ICOM_INTERFACE 376 408 377 #ifdef ICOM_CINTERFACE378 409 /*** IUnknown methods ***/ 379 410 #define IPropertyBag_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 383 414 #define IPropertyBag_Read(p,a,b,c) ICOM_CALL3(Read,p,a,b,c) 384 415 #define IPropertyBag_Write(p,a,b) ICOM_CALL2(Write,p,a,b) 385 #endif 416 417 418 /***************************************************************************** 419 * IPropertyBag2 interface 420 */ 421 #define ICOM_INTERFACE IPropertyBag2 422 #define IPropertyBag2_METHODS \ 423 ICOM_METHOD5(HRESULT,Read, ULONG,cProperties, PROPBAG2*,pPropBag, IErrorLog*,pErrLog, VARIANT*,pvarValue, HRESULT*,phrError) \ 424 ICOM_METHOD3(HRESULT,Write, ULONG,cProperties, PROPBAG2*,pPropBag, VARIANT*,pvarValue) \ 425 ICOM_METHOD1(HRESULT,CountProperties, ULONG*,pcProperties) \ 426 ICOM_METHOD4(HRESULT,GetPropertyInfo, ULONG,iProperty, ULONG,cProperties, PROPBAG2*,pPropBag, ULONG*,pcProperties) \ 427 ICOM_METHOD4(HRESULT,LoadObject, LPCOLESTR,pstrName, DWORD,dwHint, IUnknown*,pUnkObject, IErrorLog*,pErrLog) 428 #define IPropertyBag2_IMETHODS \ 429 IUnknown_IMETHODS \ 430 IPropertyBag2_METHODS 431 ICOM_DEFINE(IPropertyBag2,IUnknown) 432 #undef ICOM_INTERFACE 433 434 /*** IUnknown methods ***/ 435 #define IPropertyBag2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) 436 #define IPropertyBag2_AddRef(p) ICOM_CALL (AddRef,p) 437 #define IPropertyBag2_Release(p) ICOM_CALL (Release,p) 438 /*** IPropertyBag methods ***/ 439 #define IPropertyBag2_Read(p,a,b,c,d,e) ICOM_CALL5(Read,p,a,b,c,d,e) 440 #define IPropertyBag2_Write(p,a,b,c) ICOM_CALL3(Write,p,a,b,c) 441 #define IPropertyBag2_CountProperties(p,a) ICOM_CALL1(CountProperties,p,a) 442 #define IPropertyBag2_GetPropertyInfo(p,a,b,c,d) ICOM_CALL4(GetPropertyInfo,p,a,b,c,d) 443 #define IPropertyBag2_LoadObject(p,a,b,c,d) ICOM_CALL4(LoadObject,p,a,b,c,d) 386 444 387 445 … … 398 456 #undef ICOM_INTERFACE 399 457 400 #ifdef ICOM_CINTERFACE401 458 /*** IUnknown methods ***/ 402 459 #define ISpecifyPropertyPages_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 405 462 /*** ISpecifyPropertyPages methods ***/ 406 463 #define ISpecifyPropertyPages_GetPages(p,a) ICOM_CALL3(GetPages,p,a) 407 #endif408 464 409 465 … … 423 479 #undef ICOM_INTERFACE 424 480 425 #ifdef ICOM_CINTERFACE426 481 /*** IUnknown methods ***/ 427 482 #define IPerPropertyBrowsing_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 433 488 #define IPerPropertyBrowsing_GetPredefinedStrings(p,a,b,c) ICOM_CALL3(GetPredefinedStrings,p,a,b,c) 434 489 #define IPerPropertyBrowsing_GetPredefinedValue(p,a,b,c) ICOM_CALL3(GetPredefinedValue,p,a,b,c) 435 #endif436 490 437 491 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.