From bffaceb579ba66ba675f5b99e93258423b3c97ab Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Tue, 29 Dec 2020 18:53:36 +0100 Subject: Remove sdk --- sdk/dx8sdk/Include/Amvideo.h | 433 - sdk/dx8sdk/Include/Bdatif.h | 1750 -- sdk/dx8sdk/Include/DShow.h | 78 - sdk/dx8sdk/Include/DShowIDL/Bdatif.idl | 678 - sdk/dx8sdk/Include/DShowIDL/Mpeg2Data.idl | 303 - sdk/dx8sdk/Include/DShowIDL/Mpeg2Structs.idl | 368 - sdk/dx8sdk/Include/DShowIDL/Mstvca.idl | 840 - sdk/dx8sdk/Include/DShowIDL/Mstvgs.idl | 837 - sdk/dx8sdk/Include/DShowIDL/Msvidctl.idl | 715 - sdk/dx8sdk/Include/DShowIDL/Segment.idl | 1349 -- sdk/dx8sdk/Include/DShowIDL/Videoacc.idl | 172 - sdk/dx8sdk/Include/DShowIDL/Vmrender.idl | 1092 - sdk/dx8sdk/Include/DShowIDL/amstream.idl | 334 - sdk/dx8sdk/Include/DShowIDL/austream.idl | 106 - sdk/dx8sdk/Include/DShowIDL/axcore.idl | 1284 -- sdk/dx8sdk/Include/DShowIDL/axextend.idl | 5169 ----- sdk/dx8sdk/Include/DShowIDL/bdaiface.idl | 1013 - sdk/dx8sdk/Include/DShowIDL/control.odl | 912 - sdk/dx8sdk/Include/DShowIDL/ddstream.idl | 86 - sdk/dx8sdk/Include/DShowIDL/devenum.idl | 38 - sdk/dx8sdk/Include/DShowIDL/dmodshow.idl | 33 - sdk/dx8sdk/Include/DShowIDL/dshowasf.idl | 59 - sdk/dx8sdk/Include/DShowIDL/dvdif.idl | 2326 -- sdk/dx8sdk/Include/DShowIDL/dxtrans.idl | 1289 -- sdk/dx8sdk/Include/DShowIDL/dyngraph.idl | 318 - sdk/dx8sdk/Include/DShowIDL/mediaobj.idl | 411 - sdk/dx8sdk/Include/DShowIDL/medparam.idl | 228 - sdk/dx8sdk/Include/DShowIDL/mixerocx.idl | 72 - sdk/dx8sdk/Include/DShowIDL/mmstream.idl | 190 - sdk/dx8sdk/Include/DShowIDL/mstve.idl | 1450 -- sdk/dx8sdk/Include/DShowIDL/qedit.idl | 1734 -- sdk/dx8sdk/Include/DShowIDL/regbag.idl | 52 - sdk/dx8sdk/Include/DShowIDL/sbe.idl | 1348 -- sdk/dx8sdk/Include/DShowIDL/strmif.idl | 51 - sdk/dx8sdk/Include/DShowIDL/tuner.idl | 2254 -- sdk/dx8sdk/Include/DShowIDL/tvratings.idl | 242 - sdk/dx8sdk/Include/DShowIDL/vidcap.idl | 84 - sdk/dx8sdk/Include/DShowIDL/vmr9.idl | 1057 - sdk/dx8sdk/Include/DxDiag.h | 187 - sdk/dx8sdk/Include/Iwstdec.h | 117 - sdk/dx8sdk/Include/Mpeg2Bits.h | 95 - sdk/dx8sdk/Include/Mpeg2Error.h | 62 - sdk/dx8sdk/Include/Mstvca.h | 8367 ------- sdk/dx8sdk/Include/Mstve.h | 13130 ----------- sdk/dx8sdk/Include/Msvidctl.h | 2413 -- sdk/dx8sdk/Include/PixPlugin.h | 115 - sdk/dx8sdk/Include/Segment.h | 16115 ------------- sdk/dx8sdk/Include/activecf.h | 19 - sdk/dx8sdk/Include/amaudio.h | 54 - sdk/dx8sdk/Include/amparse.h | 38 - sdk/dx8sdk/Include/amstream.h | 2295 -- sdk/dx8sdk/Include/amva.h | 85 - sdk/dx8sdk/Include/atsmedia.h | 34 - sdk/dx8sdk/Include/audevcod.h | 53 - sdk/dx8sdk/Include/austream.h | 715 - sdk/dx8sdk/Include/aviriff.h | 402 - sdk/dx8sdk/Include/bdaiface.h | 4096 ---- sdk/dx8sdk/Include/bdamedia.h | 1554 -- sdk/dx8sdk/Include/bdatypes.h | 567 - sdk/dx8sdk/Include/comlite.h | 26 - sdk/dx8sdk/Include/control.h | 5543 ----- sdk/dx8sdk/Include/d3d.h | 1688 -- sdk/dx8sdk/Include/d3d8.h | 1279 - sdk/dx8sdk/Include/d3d8caps.h | 364 - sdk/dx8sdk/Include/d3d8types.h | 1684 -- sdk/dx8sdk/Include/d3d9.h | 1870 -- sdk/dx8sdk/Include/d3d9caps.h | 476 - sdk/dx8sdk/Include/d3d9types.h | 1855 -- sdk/dx8sdk/Include/d3dcaps.h | 601 - sdk/dx8sdk/Include/d3drm.h | 342 - sdk/dx8sdk/Include/d3drmdef.h | 695 - sdk/dx8sdk/Include/d3drmobj.h | 1666 -- sdk/dx8sdk/Include/d3drmwin.h | 50 - sdk/dx8sdk/Include/d3dtypes.h | 2119 -- sdk/dx8sdk/Include/d3dvec.inl | 255 - sdk/dx8sdk/Include/d3dx.h | 26 - sdk/dx8sdk/Include/d3dx8.h | 45 - sdk/dx8sdk/Include/d3dx8core.h | 563 - sdk/dx8sdk/Include/d3dx8effect.h | 226 - sdk/dx8sdk/Include/d3dx8math.h | 1215 - sdk/dx8sdk/Include/d3dx8math.inl | 1757 -- sdk/dx8sdk/Include/d3dx8mesh.h | 760 - sdk/dx8sdk/Include/d3dx8shape.h | 220 - sdk/dx8sdk/Include/d3dx8tex.h | 1592 -- sdk/dx8sdk/Include/d3dx9.h | 76 - sdk/dx8sdk/Include/d3dx9anim.h | 1114 - sdk/dx8sdk/Include/d3dx9core.h | 728 - sdk/dx8sdk/Include/d3dx9effect.h | 781 - sdk/dx8sdk/Include/d3dx9math.h | 1765 -- sdk/dx8sdk/Include/d3dx9math.inl | 2244 -- sdk/dx8sdk/Include/d3dx9mesh.h | 2536 -- sdk/dx8sdk/Include/d3dx9shader.h | 1072 - sdk/dx8sdk/Include/d3dx9shape.h | 221 - sdk/dx8sdk/Include/d3dx9tex.h | 1723 -- sdk/dx8sdk/Include/d3dx9xof.h | 299 - sdk/dx8sdk/Include/d3dxcore.h | 1027 - sdk/dx8sdk/Include/d3dxerr.h | 407 - sdk/dx8sdk/Include/d3dxmath.h | 1092 - sdk/dx8sdk/Include/d3dxmath.inl | 1809 -- sdk/dx8sdk/Include/d3dxshapes.h | 209 - sdk/dx8sdk/Include/d3dxsprite.h | 321 - sdk/dx8sdk/Include/ddraw.h | 5792 ----- sdk/dx8sdk/Include/ddstream.h | 533 - sdk/dx8sdk/Include/dinput.h | 4417 ---- sdk/dx8sdk/Include/dinputd.h | 755 - sdk/dx8sdk/Include/dls1.h | 267 - sdk/dx8sdk/Include/dls2.h | 130 - sdk/dx8sdk/Include/dmdls.h | 199 - sdk/dx8sdk/Include/dmerror.h | 843 - sdk/dx8sdk/Include/dmksctrl.h | 166 - sdk/dx8sdk/Include/dmo.h | 29 - sdk/dx8sdk/Include/dmodshow.h | 176 - sdk/dx8sdk/Include/dmoimpl.h | 645 - sdk/dx8sdk/Include/dmoreg.h | 110 - sdk/dx8sdk/Include/dmort.h | 75 - sdk/dx8sdk/Include/dmplugin.h | 280 - sdk/dx8sdk/Include/dmusbuff.h | 41 - sdk/dx8sdk/Include/dmusicc.h | 784 - sdk/dx8sdk/Include/dmusicf.h | 2199 -- sdk/dx8sdk/Include/dmusici.h | 1883 -- sdk/dx8sdk/Include/dmusics.h | 193 - sdk/dx8sdk/Include/dpaddr.h | 392 - sdk/dx8sdk/Include/dplay.h | 2154 -- sdk/dx8sdk/Include/dplay8.h | 1456 -- sdk/dx8sdk/Include/dplobby.h | 853 - sdk/dx8sdk/Include/dplobby8.h | 407 - sdk/dx8sdk/Include/dpnathlp.h | 318 - sdk/dx8sdk/Include/dsconf.h | 195 - sdk/dx8sdk/Include/dsetup.h | 287 - sdk/dx8sdk/Include/dshowasf.h | 329 - sdk/dx8sdk/Include/dsound.h | 2358 -- sdk/dx8sdk/Include/dv.h | 62 - sdk/dx8sdk/Include/dvdevcod.h | 363 - sdk/dx8sdk/Include/dvdmedia.h | 427 - sdk/dx8sdk/Include/dvoice.h | 857 - sdk/dx8sdk/Include/dvp.h | 966 - sdk/dx8sdk/Include/dx7todx8.h | 98 - sdk/dx8sdk/Include/dxerr8.h | 100 - sdk/dx8sdk/Include/dxerr9.h | 100 - sdk/dx8sdk/Include/dxfile.h | 240 - sdk/dx8sdk/Include/dxtrans.h | 5362 ----- sdk/dx8sdk/Include/dxva.h | 1359 -- sdk/dx8sdk/Include/edevctrl.h | 346 - sdk/dx8sdk/Include/edevdefs.h | 531 - sdk/dx8sdk/Include/errors.h | 47 - sdk/dx8sdk/Include/evcode.h | 428 - sdk/dx8sdk/Include/il21dec.h | 112 - sdk/dx8sdk/Include/ks.h | 5698 ----- sdk/dx8sdk/Include/ksguid.h | 29 - sdk/dx8sdk/Include/ksmedia.h | 5159 ----- sdk/dx8sdk/Include/ksproxy.h | 858 - sdk/dx8sdk/Include/ksuuids.h | 244 - sdk/dx8sdk/Include/mediaerr.h | 20 - sdk/dx8sdk/Include/mediaobj.h | 1574 -- sdk/dx8sdk/Include/medparam.h | 581 - sdk/dx8sdk/Include/mixerocx.h | 488 - sdk/dx8sdk/Include/mmstream.h | 846 - sdk/dx8sdk/Include/mpconfig.h | 144 - sdk/dx8sdk/Include/mpeg2data.h | 1072 - sdk/dx8sdk/Include/mpegtype.h | 119 - sdk/dx8sdk/Include/multimon.h | 484 - sdk/dx8sdk/Include/playlist.h | 849 - sdk/dx8sdk/Include/qedit.h | 10236 -------- sdk/dx8sdk/Include/qnetwork.h | 555 - sdk/dx8sdk/Include/regbag.h | 193 - sdk/dx8sdk/Include/rmxfguid.h | 223 - sdk/dx8sdk/Include/rmxftmpl.h | 339 - sdk/dx8sdk/Include/sbe.h | 1777 -- sdk/dx8sdk/Include/strmif.h | 30736 ------------------------- sdk/dx8sdk/Include/strsafe.h | 6611 ------ sdk/dx8sdk/Include/tune.h | 1107 - sdk/dx8sdk/Include/tuner.h | 11640 ---------- sdk/dx8sdk/Include/tvratings.h | 702 - sdk/dx8sdk/Include/uuids.h | 1527 -- sdk/dx8sdk/Include/vfwmsgs.h | 1365 -- sdk/dx8sdk/Include/vidcap.h | 619 - sdk/dx8sdk/Include/videoacc.h | 661 - sdk/dx8sdk/Include/vmr9.h | 3203 --- sdk/dx8sdk/Include/vpconfig.h | 135 - sdk/dx8sdk/Include/vpnotify.h | 92 - sdk/dx8sdk/Include/vptype.h | 78 - sdk/dx8sdk/Include/xprtdefs.h | 742 - 182 files changed, 255979 deletions(-) delete mode 100644 sdk/dx8sdk/Include/Amvideo.h delete mode 100644 sdk/dx8sdk/Include/Bdatif.h delete mode 100644 sdk/dx8sdk/Include/DShow.h delete mode 100644 sdk/dx8sdk/Include/DShowIDL/Bdatif.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/Mpeg2Data.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/Mpeg2Structs.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/Mstvca.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/Mstvgs.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/Msvidctl.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/Segment.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/Videoacc.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/Vmrender.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/amstream.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/austream.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/axcore.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/axextend.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/bdaiface.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/control.odl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/ddstream.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/devenum.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/dmodshow.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/dshowasf.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/dvdif.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/dxtrans.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/dyngraph.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/mediaobj.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/medparam.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/mixerocx.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/mmstream.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/mstve.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/qedit.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/regbag.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/sbe.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/strmif.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/tuner.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/tvratings.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/vidcap.idl delete mode 100644 sdk/dx8sdk/Include/DShowIDL/vmr9.idl delete mode 100644 sdk/dx8sdk/Include/DxDiag.h delete mode 100644 sdk/dx8sdk/Include/Iwstdec.h delete mode 100644 sdk/dx8sdk/Include/Mpeg2Bits.h delete mode 100644 sdk/dx8sdk/Include/Mpeg2Error.h delete mode 100644 sdk/dx8sdk/Include/Mstvca.h delete mode 100644 sdk/dx8sdk/Include/Mstve.h delete mode 100644 sdk/dx8sdk/Include/Msvidctl.h delete mode 100644 sdk/dx8sdk/Include/PixPlugin.h delete mode 100644 sdk/dx8sdk/Include/Segment.h delete mode 100644 sdk/dx8sdk/Include/activecf.h delete mode 100644 sdk/dx8sdk/Include/amaudio.h delete mode 100644 sdk/dx8sdk/Include/amparse.h delete mode 100644 sdk/dx8sdk/Include/amstream.h delete mode 100644 sdk/dx8sdk/Include/amva.h delete mode 100644 sdk/dx8sdk/Include/atsmedia.h delete mode 100644 sdk/dx8sdk/Include/audevcod.h delete mode 100644 sdk/dx8sdk/Include/austream.h delete mode 100644 sdk/dx8sdk/Include/aviriff.h delete mode 100644 sdk/dx8sdk/Include/bdaiface.h delete mode 100644 sdk/dx8sdk/Include/bdamedia.h delete mode 100644 sdk/dx8sdk/Include/bdatypes.h delete mode 100644 sdk/dx8sdk/Include/comlite.h delete mode 100644 sdk/dx8sdk/Include/control.h delete mode 100644 sdk/dx8sdk/Include/d3d.h delete mode 100644 sdk/dx8sdk/Include/d3d8.h delete mode 100644 sdk/dx8sdk/Include/d3d8caps.h delete mode 100644 sdk/dx8sdk/Include/d3d8types.h delete mode 100644 sdk/dx8sdk/Include/d3d9.h delete mode 100644 sdk/dx8sdk/Include/d3d9caps.h delete mode 100644 sdk/dx8sdk/Include/d3d9types.h delete mode 100644 sdk/dx8sdk/Include/d3dcaps.h delete mode 100644 sdk/dx8sdk/Include/d3drm.h delete mode 100644 sdk/dx8sdk/Include/d3drmdef.h delete mode 100644 sdk/dx8sdk/Include/d3drmobj.h delete mode 100644 sdk/dx8sdk/Include/d3drmwin.h delete mode 100644 sdk/dx8sdk/Include/d3dtypes.h delete mode 100644 sdk/dx8sdk/Include/d3dvec.inl delete mode 100644 sdk/dx8sdk/Include/d3dx.h delete mode 100644 sdk/dx8sdk/Include/d3dx8.h delete mode 100644 sdk/dx8sdk/Include/d3dx8core.h delete mode 100644 sdk/dx8sdk/Include/d3dx8effect.h delete mode 100644 sdk/dx8sdk/Include/d3dx8math.h delete mode 100644 sdk/dx8sdk/Include/d3dx8math.inl delete mode 100644 sdk/dx8sdk/Include/d3dx8mesh.h delete mode 100644 sdk/dx8sdk/Include/d3dx8shape.h delete mode 100644 sdk/dx8sdk/Include/d3dx8tex.h delete mode 100644 sdk/dx8sdk/Include/d3dx9.h delete mode 100644 sdk/dx8sdk/Include/d3dx9anim.h delete mode 100644 sdk/dx8sdk/Include/d3dx9core.h delete mode 100644 sdk/dx8sdk/Include/d3dx9effect.h delete mode 100644 sdk/dx8sdk/Include/d3dx9math.h delete mode 100644 sdk/dx8sdk/Include/d3dx9math.inl delete mode 100644 sdk/dx8sdk/Include/d3dx9mesh.h delete mode 100644 sdk/dx8sdk/Include/d3dx9shader.h delete mode 100644 sdk/dx8sdk/Include/d3dx9shape.h delete mode 100644 sdk/dx8sdk/Include/d3dx9tex.h delete mode 100644 sdk/dx8sdk/Include/d3dx9xof.h delete mode 100644 sdk/dx8sdk/Include/d3dxcore.h delete mode 100644 sdk/dx8sdk/Include/d3dxerr.h delete mode 100644 sdk/dx8sdk/Include/d3dxmath.h delete mode 100644 sdk/dx8sdk/Include/d3dxmath.inl delete mode 100644 sdk/dx8sdk/Include/d3dxshapes.h delete mode 100644 sdk/dx8sdk/Include/d3dxsprite.h delete mode 100644 sdk/dx8sdk/Include/ddraw.h delete mode 100644 sdk/dx8sdk/Include/ddstream.h delete mode 100644 sdk/dx8sdk/Include/dinput.h delete mode 100644 sdk/dx8sdk/Include/dinputd.h delete mode 100644 sdk/dx8sdk/Include/dls1.h delete mode 100644 sdk/dx8sdk/Include/dls2.h delete mode 100644 sdk/dx8sdk/Include/dmdls.h delete mode 100644 sdk/dx8sdk/Include/dmerror.h delete mode 100644 sdk/dx8sdk/Include/dmksctrl.h delete mode 100644 sdk/dx8sdk/Include/dmo.h delete mode 100644 sdk/dx8sdk/Include/dmodshow.h delete mode 100644 sdk/dx8sdk/Include/dmoimpl.h delete mode 100644 sdk/dx8sdk/Include/dmoreg.h delete mode 100644 sdk/dx8sdk/Include/dmort.h delete mode 100644 sdk/dx8sdk/Include/dmplugin.h delete mode 100644 sdk/dx8sdk/Include/dmusbuff.h delete mode 100644 sdk/dx8sdk/Include/dmusicc.h delete mode 100644 sdk/dx8sdk/Include/dmusicf.h delete mode 100644 sdk/dx8sdk/Include/dmusici.h delete mode 100644 sdk/dx8sdk/Include/dmusics.h delete mode 100644 sdk/dx8sdk/Include/dpaddr.h delete mode 100644 sdk/dx8sdk/Include/dplay.h delete mode 100644 sdk/dx8sdk/Include/dplay8.h delete mode 100644 sdk/dx8sdk/Include/dplobby.h delete mode 100644 sdk/dx8sdk/Include/dplobby8.h delete mode 100644 sdk/dx8sdk/Include/dpnathlp.h delete mode 100644 sdk/dx8sdk/Include/dsconf.h delete mode 100644 sdk/dx8sdk/Include/dsetup.h delete mode 100644 sdk/dx8sdk/Include/dshowasf.h delete mode 100644 sdk/dx8sdk/Include/dsound.h delete mode 100644 sdk/dx8sdk/Include/dv.h delete mode 100644 sdk/dx8sdk/Include/dvdevcod.h delete mode 100644 sdk/dx8sdk/Include/dvdmedia.h delete mode 100644 sdk/dx8sdk/Include/dvoice.h delete mode 100644 sdk/dx8sdk/Include/dvp.h delete mode 100644 sdk/dx8sdk/Include/dx7todx8.h delete mode 100644 sdk/dx8sdk/Include/dxerr8.h delete mode 100644 sdk/dx8sdk/Include/dxerr9.h delete mode 100644 sdk/dx8sdk/Include/dxfile.h delete mode 100644 sdk/dx8sdk/Include/dxtrans.h delete mode 100644 sdk/dx8sdk/Include/dxva.h delete mode 100644 sdk/dx8sdk/Include/edevctrl.h delete mode 100644 sdk/dx8sdk/Include/edevdefs.h delete mode 100644 sdk/dx8sdk/Include/errors.h delete mode 100644 sdk/dx8sdk/Include/evcode.h delete mode 100644 sdk/dx8sdk/Include/il21dec.h delete mode 100644 sdk/dx8sdk/Include/ks.h delete mode 100644 sdk/dx8sdk/Include/ksguid.h delete mode 100644 sdk/dx8sdk/Include/ksmedia.h delete mode 100644 sdk/dx8sdk/Include/ksproxy.h delete mode 100644 sdk/dx8sdk/Include/ksuuids.h delete mode 100644 sdk/dx8sdk/Include/mediaerr.h delete mode 100644 sdk/dx8sdk/Include/mediaobj.h delete mode 100644 sdk/dx8sdk/Include/medparam.h delete mode 100644 sdk/dx8sdk/Include/mixerocx.h delete mode 100644 sdk/dx8sdk/Include/mmstream.h delete mode 100644 sdk/dx8sdk/Include/mpconfig.h delete mode 100644 sdk/dx8sdk/Include/mpeg2data.h delete mode 100644 sdk/dx8sdk/Include/mpegtype.h delete mode 100644 sdk/dx8sdk/Include/multimon.h delete mode 100644 sdk/dx8sdk/Include/playlist.h delete mode 100644 sdk/dx8sdk/Include/qedit.h delete mode 100644 sdk/dx8sdk/Include/qnetwork.h delete mode 100644 sdk/dx8sdk/Include/regbag.h delete mode 100644 sdk/dx8sdk/Include/rmxfguid.h delete mode 100644 sdk/dx8sdk/Include/rmxftmpl.h delete mode 100644 sdk/dx8sdk/Include/sbe.h delete mode 100644 sdk/dx8sdk/Include/strmif.h delete mode 100644 sdk/dx8sdk/Include/strsafe.h delete mode 100644 sdk/dx8sdk/Include/tune.h delete mode 100644 sdk/dx8sdk/Include/tuner.h delete mode 100644 sdk/dx8sdk/Include/tvratings.h delete mode 100644 sdk/dx8sdk/Include/uuids.h delete mode 100644 sdk/dx8sdk/Include/vfwmsgs.h delete mode 100644 sdk/dx8sdk/Include/vidcap.h delete mode 100644 sdk/dx8sdk/Include/videoacc.h delete mode 100644 sdk/dx8sdk/Include/vmr9.h delete mode 100644 sdk/dx8sdk/Include/vpconfig.h delete mode 100644 sdk/dx8sdk/Include/vpnotify.h delete mode 100644 sdk/dx8sdk/Include/vptype.h delete mode 100644 sdk/dx8sdk/Include/xprtdefs.h (limited to 'sdk/dx8sdk/Include') diff --git a/sdk/dx8sdk/Include/Amvideo.h b/sdk/dx8sdk/Include/Amvideo.h deleted file mode 100644 index 89339266..00000000 --- a/sdk/dx8sdk/Include/Amvideo.h +++ /dev/null @@ -1,433 +0,0 @@ -//------------------------------------------------------------------------------ -// File: AMVideo.h -// -// Desc: Video related definitions and interfaces for ActiveMovie. -// -// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef __AMVIDEO__ -#define __AMVIDEO__ - -#ifdef __cplusplus -extern "C" { -#endif // __cplusplus - -#include - - -// 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, LPVOID *ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - // IDirectDrawVideo methods - - STDMETHOD(GetSwitches)(THIS_ DWORD *pSwitches) PURE; - STDMETHOD(SetSwitches)(THIS_ DWORD Switches) PURE; - STDMETHOD(GetCaps)(THIS_ DDCAPS *pCaps) PURE; - STDMETHOD(GetEmulatedCaps)(THIS_ DDCAPS *pCaps) PURE; - STDMETHOD(GetSurfaceDesc)(THIS_ DDSURFACEDESC *pSurfaceDesc) PURE; - STDMETHOD(GetFourCCCodes)(THIS_ DWORD *pCount,DWORD *pCodes) PURE; - STDMETHOD(SetDirectDraw)(THIS_ LPDIRECTDRAW pDirectDraw) PURE; - STDMETHOD(GetDirectDraw)(THIS_ LPDIRECTDRAW *ppDirectDraw) PURE; - STDMETHOD(GetSurfaceType)(THIS_ DWORD *pSurfaceType) PURE; - STDMETHOD(SetDefault)(THIS) PURE; - STDMETHOD(UseScanLine)(THIS_ long UseScanLine) PURE; - STDMETHOD(CanUseScanLine)(THIS_ long *UseScanLine) PURE; - STDMETHOD(UseOverlayStretch)(THIS_ long UseOverlayStretch) PURE; - STDMETHOD(CanUseOverlayStretch)(THIS_ long *UseOverlayStretch) PURE; - STDMETHOD(UseWhenFullScreen)(THIS_ long UseWhenFullScreen) PURE; - STDMETHOD(WillUseFullScreen)(THIS_ 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, 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_ int *pcFrames) PURE; // Out - STDMETHOD(get_FramesDrawn)(THIS_ int *pcFramesDrawn) PURE; // Out - STDMETHOD(get_AvgFrameRate)(THIS_ int *piAvgFrameRate) PURE; // Out - STDMETHOD(get_Jitter)(THIS_ int *iJitter) PURE; // Out - STDMETHOD(get_AvgSyncOffset)(THIS_ int *piAvg) PURE; // Out - STDMETHOD(get_DevSyncOffset)(THIS_ 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, LPVOID *ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - // IFullScreenVideo methods - - STDMETHOD(CountModes)(THIS_ long *pModes) PURE; - STDMETHOD(GetModeInfo)(THIS_ long Mode,long *pWidth,long *pHeight,long *pDepth) PURE; - STDMETHOD(GetCurrentMode)(THIS_ 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_ long *pClipFactor) PURE; - STDMETHOD(SetClipFactor)(THIS_ long ClipFactor) PURE; - STDMETHOD(SetMessageDrain)(THIS_ HWND hwnd) PURE; - STDMETHOD(GetMessageDrain)(THIS_ HWND *hwnd) PURE; - STDMETHOD(SetMonitor)(THIS_ long Monitor) PURE; - STDMETHOD(GetMonitor)(THIS_ long *Monitor) PURE; - STDMETHOD(HideOnDeactivate)(THIS_ long Hide) PURE; - STDMETHOD(IsHideOnDeactivate)(THIS) PURE; - STDMETHOD(SetCaption)(THIS_ BSTR strCaption) PURE; - STDMETHOD(GetCaption)(THIS_ 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, LPVOID *ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - // IFullScreenVideo methods - - STDMETHOD(CountModes)(THIS_ long *pModes) PURE; - STDMETHOD(GetModeInfo)(THIS_ long Mode,long *pWidth,long *pHeight,long *pDepth) PURE; - STDMETHOD(GetCurrentMode)(THIS_ 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_ long *pClipFactor) PURE; - STDMETHOD(SetClipFactor)(THIS_ long ClipFactor) PURE; - STDMETHOD(SetMessageDrain)(THIS_ HWND hwnd) PURE; - STDMETHOD(GetMessageDrain)(THIS_ HWND *hwnd) PURE; - STDMETHOD(SetMonitor)(THIS_ long Monitor) PURE; - STDMETHOD(GetMonitor)(THIS_ long *Monitor) PURE; - STDMETHOD(HideOnDeactivate)(THIS_ long Hide) PURE; - STDMETHOD(IsHideOnDeactivate)(THIS) PURE; - STDMETHOD(SetCaption)(THIS_ BSTR strCaption) PURE; - STDMETHOD(GetCaption)(THIS_ BSTR *pstrCaption) PURE; - STDMETHOD(SetDefault)(THIS) PURE; - - // IFullScreenVideoEx - - STDMETHOD(SetAcceleratorTable)(THIS_ HWND hwnd,HACCEL hAccel) PURE; - STDMETHOD(GetAcceleratorTable)(THIS_ HWND *phwnd,HACCEL *phAccel) PURE; - STDMETHOD(KeepPixelAspectRatio)(THIS_ long KeepAspect) PURE; - STDMETHOD(IsKeepPixelAspectRatio)(THIS_ 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_ int *piPin) PURE; - STDMETHOD(GetInputPinCount)(THIS_ int *piPinCount) PURE; - STDMETHOD(IsUsingClock)(THIS_ int *pbValue) PURE; - STDMETHOD(SetUsingClock)(THIS_ int bValue) PURE; - STDMETHOD(GetClockPeriod)(THIS_ 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)) - -// 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 // __AMVIDEO__ - diff --git a/sdk/dx8sdk/Include/Bdatif.h b/sdk/dx8sdk/Include/Bdatif.h deleted file mode 100644 index 9ea62f09..00000000 --- a/sdk/dx8sdk/Include/Bdatif.h +++ /dev/null @@ -1,1750 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for bdatif.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __bdatif_h__ -#define __bdatif_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#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 __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 "bdaiface.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_bdatif_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 - - - - - -extern RPC_IF_HANDLE __MIDL_itf_bdatif_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_bdatif_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] */ IPin *pTIFInputPin, - /* [out][in] */ ULONG *ppvRegistrationContext, - /* [out][in] */ IUnknown **ppMpeg2DataControl) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterTIF( - /* [in] */ ULONG pvRegistrationContext) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_TIF_REGISTRATIONVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_TIF_REGISTRATION * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_TIF_REGISTRATION * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_TIF_REGISTRATION * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterTIFEx )( - IBDA_TIF_REGISTRATION * This, - /* [in] */ IPin *pTIFInputPin, - /* [out][in] */ ULONG *ppvRegistrationContext, - /* [out][in] */ IUnknown **ppMpeg2DataControl); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterTIF )( - 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 */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IBDA_TIF_REGISTRATION_RegisterTIFEx_Proxy( - IBDA_TIF_REGISTRATION * This, - /* [in] */ IPin *pTIFInputPin, - /* [out][in] */ ULONG *ppvRegistrationContext, - /* [out][in] */ IUnknown **ppMpeg2DataControl); - - -void __RPC_STUB IBDA_TIF_REGISTRATION_RegisterTIFEx_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IBDA_TIF_REGISTRATION_UnregisterTIF_Proxy( - IBDA_TIF_REGISTRATION * This, - /* [in] */ ULONG pvRegistrationContext); - - -void __RPC_STUB IBDA_TIF_REGISTRATION_UnregisterTIF_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ IUnknown *pUnkTIF, - /* [out][in] */ ULONG *ppvRegistrationContext) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterTIF( - /* [in] */ ULONG pvRegistrationContext) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddPIDs( - /* [in] */ ULONG ulcPIDs, - /* [in] */ ULONG *pulPIDs) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE DeletePIDs( - /* [in] */ ULONG ulcPIDs, - /* [in] */ ULONG *pulPIDs) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPIDCount( - /* [out] */ ULONG *pulcPIDs) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPIDs( - /* [out] */ ULONG *pulcPIDs, - /* [out] */ ULONG *pulPIDs) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMPEG2_TIF_CONTROLVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMPEG2_TIF_CONTROL * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMPEG2_TIF_CONTROL * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMPEG2_TIF_CONTROL * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterTIF )( - IMPEG2_TIF_CONTROL * This, - /* [in] */ IUnknown *pUnkTIF, - /* [out][in] */ ULONG *ppvRegistrationContext); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterTIF )( - IMPEG2_TIF_CONTROL * This, - /* [in] */ ULONG pvRegistrationContext); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddPIDs )( - IMPEG2_TIF_CONTROL * This, - /* [in] */ ULONG ulcPIDs, - /* [in] */ ULONG *pulPIDs); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *DeletePIDs )( - IMPEG2_TIF_CONTROL * This, - /* [in] */ ULONG ulcPIDs, - /* [in] */ ULONG *pulPIDs); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPIDCount )( - IMPEG2_TIF_CONTROL * This, - /* [out] */ ULONG *pulcPIDs); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPIDs )( - IMPEG2_TIF_CONTROL * This, - /* [out] */ ULONG *pulcPIDs, - /* [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 */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IMPEG2_TIF_CONTROL_RegisterTIF_Proxy( - IMPEG2_TIF_CONTROL * This, - /* [in] */ IUnknown *pUnkTIF, - /* [out][in] */ ULONG *ppvRegistrationContext); - - -void __RPC_STUB IMPEG2_TIF_CONTROL_RegisterTIF_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IMPEG2_TIF_CONTROL_UnregisterTIF_Proxy( - IMPEG2_TIF_CONTROL * This, - /* [in] */ ULONG pvRegistrationContext); - - -void __RPC_STUB IMPEG2_TIF_CONTROL_UnregisterTIF_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IMPEG2_TIF_CONTROL_AddPIDs_Proxy( - IMPEG2_TIF_CONTROL * This, - /* [in] */ ULONG ulcPIDs, - /* [in] */ ULONG *pulPIDs); - - -void __RPC_STUB IMPEG2_TIF_CONTROL_AddPIDs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IMPEG2_TIF_CONTROL_DeletePIDs_Proxy( - IMPEG2_TIF_CONTROL * This, - /* [in] */ ULONG ulcPIDs, - /* [in] */ ULONG *pulPIDs); - - -void __RPC_STUB IMPEG2_TIF_CONTROL_DeletePIDs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IMPEG2_TIF_CONTROL_GetPIDCount_Proxy( - IMPEG2_TIF_CONTROL * This, - /* [out] */ ULONG *pulcPIDs); - - -void __RPC_STUB IMPEG2_TIF_CONTROL_GetPIDCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IMPEG2_TIF_CONTROL_GetPIDs_Proxy( - IMPEG2_TIF_CONTROL * This, - /* [out] */ ULONG *pulcPIDs, - /* [out] */ ULONG *pulPIDs); - - -void __RPC_STUB IMPEG2_TIF_CONTROL_GetPIDs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ITuneRequest *Request) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetComponentData( - /* [in] */ ITuneRequest *CurrentRequest) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateComponentList( - /* [in] */ ITuneRequest *CurrentRequest) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetNextProgram( - /* [in] */ ITuneRequest *CurrentRequest, - /* [retval][out] */ ITuneRequest **TuneRequest) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPreviousProgram( - /* [in] */ ITuneRequest *CurrentRequest, - /* [retval][out] */ ITuneRequest **TuneRequest) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetNextLocator( - /* [in] */ ITuneRequest *CurrentRequest, - /* [retval][out] */ ITuneRequest **TuneRequest) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPreviousLocator( - /* [in] */ ITuneRequest *CurrentRequest, - /* [retval][out] */ ITuneRequest **TuneRequest) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITuneRequestInfoVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITuneRequestInfo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITuneRequestInfo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITuneRequestInfo * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetLocatorData )( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *Request); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetComponentData )( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *CurrentRequest); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateComponentList )( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *CurrentRequest); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetNextProgram )( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *CurrentRequest, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPreviousProgram )( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *CurrentRequest, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetNextLocator )( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *CurrentRequest, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPreviousLocator )( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *CurrentRequest, - /* [retval][out] */ 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 */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE ITuneRequestInfo_GetLocatorData_Proxy( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *Request); - - -void __RPC_STUB ITuneRequestInfo_GetLocatorData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE ITuneRequestInfo_GetComponentData_Proxy( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *CurrentRequest); - - -void __RPC_STUB ITuneRequestInfo_GetComponentData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE ITuneRequestInfo_CreateComponentList_Proxy( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *CurrentRequest); - - -void __RPC_STUB ITuneRequestInfo_CreateComponentList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE ITuneRequestInfo_GetNextProgram_Proxy( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *CurrentRequest, - /* [retval][out] */ ITuneRequest **TuneRequest); - - -void __RPC_STUB ITuneRequestInfo_GetNextProgram_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE ITuneRequestInfo_GetPreviousProgram_Proxy( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *CurrentRequest, - /* [retval][out] */ ITuneRequest **TuneRequest); - - -void __RPC_STUB ITuneRequestInfo_GetPreviousProgram_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE ITuneRequestInfo_GetNextLocator_Proxy( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *CurrentRequest, - /* [retval][out] */ ITuneRequest **TuneRequest); - - -void __RPC_STUB ITuneRequestInfo_GetNextLocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE ITuneRequestInfo_GetPreviousLocator_Proxy( - ITuneRequestInfo * This, - /* [in] */ ITuneRequest *CurrentRequest, - /* [retval][out] */ ITuneRequest **TuneRequest); - - -void __RPC_STUB ITuneRequestInfo_GetPreviousLocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITuneRequestInfo_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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IGuideDataEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IGuideDataEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IGuideDataEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GuideDataAcquired )( - IGuideDataEvent * This); - - HRESULT ( STDMETHODCALLTYPE *ProgramChanged )( - IGuideDataEvent * This, - /* [in] */ VARIANT varProgramDescriptionID); - - HRESULT ( STDMETHODCALLTYPE *ServiceChanged )( - IGuideDataEvent * This, - /* [in] */ VARIANT varServiceDescriptionID); - - HRESULT ( STDMETHODCALLTYPE *ScheduleEntryChanged )( - IGuideDataEvent * This, - /* [in] */ VARIANT varScheduleEntryDescriptionID); - - HRESULT ( STDMETHODCALLTYPE *ProgramDeleted )( - IGuideDataEvent * This, - /* [in] */ VARIANT varProgramDescriptionID); - - HRESULT ( STDMETHODCALLTYPE *ServiceDeleted )( - IGuideDataEvent * This, - /* [in] */ VARIANT varServiceDescriptionID); - - HRESULT ( STDMETHODCALLTYPE *ScheduleDeleted )( - 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 */ - - - -HRESULT STDMETHODCALLTYPE IGuideDataEvent_GuideDataAcquired_Proxy( - IGuideDataEvent * This); - - -void __RPC_STUB IGuideDataEvent_GuideDataAcquired_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGuideDataEvent_ProgramChanged_Proxy( - IGuideDataEvent * This, - /* [in] */ VARIANT varProgramDescriptionID); - - -void __RPC_STUB IGuideDataEvent_ProgramChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGuideDataEvent_ServiceChanged_Proxy( - IGuideDataEvent * This, - /* [in] */ VARIANT varServiceDescriptionID); - - -void __RPC_STUB IGuideDataEvent_ServiceChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGuideDataEvent_ScheduleEntryChanged_Proxy( - IGuideDataEvent * This, - /* [in] */ VARIANT varScheduleEntryDescriptionID); - - -void __RPC_STUB IGuideDataEvent_ScheduleEntryChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGuideDataEvent_ProgramDeleted_Proxy( - IGuideDataEvent * This, - /* [in] */ VARIANT varProgramDescriptionID); - - -void __RPC_STUB IGuideDataEvent_ProgramDeleted_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGuideDataEvent_ServiceDeleted_Proxy( - IGuideDataEvent * This, - /* [in] */ VARIANT varServiceDescriptionID); - - -void __RPC_STUB IGuideDataEvent_ServiceDeleted_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGuideDataEvent_ScheduleDeleted_Proxy( - IGuideDataEvent * This, - /* [in] */ VARIANT varScheduleEntryDescriptionID); - - -void __RPC_STUB IGuideDataEvent_ScheduleDeleted_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ BSTR *pbstrName) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Language( - /* [out] */ long *idLang) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Value( - /* [out] */ VARIANT *pvar) = 0; - - }; - -#else /* C style interface */ - - typedef struct IGuideDataPropertyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IGuideDataProperty * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IGuideDataProperty * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IGuideDataProperty * This); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IGuideDataProperty * This, - /* [out] */ BSTR *pbstrName); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Language )( - IGuideDataProperty * This, - /* [out] */ long *idLang); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( - IGuideDataProperty * This, - /* [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 */ - - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IGuideDataProperty_get_Name_Proxy( - IGuideDataProperty * This, - /* [out] */ BSTR *pbstrName); - - -void __RPC_STUB IGuideDataProperty_get_Name_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IGuideDataProperty_get_Language_Proxy( - IGuideDataProperty * This, - /* [out] */ long *idLang); - - -void __RPC_STUB IGuideDataProperty_get_Language_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IGuideDataProperty_get_Value_Proxy( - IGuideDataProperty * This, - /* [out] */ VARIANT *pvar); - - -void __RPC_STUB IGuideDataProperty_get_Value_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ IGuideDataProperty **ppprop, - /* [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] */ IEnumGuideDataProperties **ppenum) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumGuideDataPropertiesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumGuideDataProperties * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumGuideDataProperties * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumGuideDataProperties * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumGuideDataProperties * This, - /* [in] */ unsigned long celt, - /* [out] */ IGuideDataProperty **ppprop, - /* [out] */ unsigned long *pcelt); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumGuideDataProperties * This, - /* [in] */ unsigned long celt); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumGuideDataProperties * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumGuideDataProperties * This, - /* [out] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IEnumGuideDataProperties_Next_Proxy( - IEnumGuideDataProperties * This, - /* [in] */ unsigned long celt, - /* [out] */ IGuideDataProperty **ppprop, - /* [out] */ unsigned long *pcelt); - - -void __RPC_STUB IEnumGuideDataProperties_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumGuideDataProperties_Skip_Proxy( - IEnumGuideDataProperties * This, - /* [in] */ unsigned long celt); - - -void __RPC_STUB IEnumGuideDataProperties_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumGuideDataProperties_Reset_Proxy( - IEnumGuideDataProperties * This); - - -void __RPC_STUB IEnumGuideDataProperties_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumGuideDataProperties_Clone_Proxy( - IEnumGuideDataProperties * This, - /* [out] */ IEnumGuideDataProperties **ppenum); - - -void __RPC_STUB IEnumGuideDataProperties_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ITuneRequest **ppprop, - /* [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] */ IEnumTuneRequests **ppenum) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumTuneRequestsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumTuneRequests * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumTuneRequests * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumTuneRequests * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumTuneRequests * This, - /* [in] */ unsigned long celt, - /* [out] */ ITuneRequest **ppprop, - /* [out] */ unsigned long *pcelt); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumTuneRequests * This, - /* [in] */ unsigned long celt); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumTuneRequests * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumTuneRequests * This, - /* [out] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IEnumTuneRequests_Next_Proxy( - IEnumTuneRequests * This, - /* [in] */ unsigned long celt, - /* [out] */ ITuneRequest **ppprop, - /* [out] */ unsigned long *pcelt); - - -void __RPC_STUB IEnumTuneRequests_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumTuneRequests_Skip_Proxy( - IEnumTuneRequests * This, - /* [in] */ unsigned long celt); - - -void __RPC_STUB IEnumTuneRequests_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumTuneRequests_Reset_Proxy( - IEnumTuneRequests * This); - - -void __RPC_STUB IEnumTuneRequests_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumTuneRequests_Clone_Proxy( - IEnumTuneRequests * This, - /* [out] */ IEnumTuneRequests **ppenum); - - -void __RPC_STUB IEnumTuneRequests_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ IEnumTuneRequests **ppEnumTuneRequests) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetServiceProperties( - /* [in] */ ITuneRequest *pTuneRequest, - /* [retval][out] */ IEnumGuideDataProperties **ppEnumProperties) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetGuideProgramIDs( - /* [retval][out] */ IEnumVARIANT **pEnumPrograms) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetProgramProperties( - /* [in] */ VARIANT varProgramDescriptionID, - /* [retval][out] */ IEnumGuideDataProperties **ppEnumProperties) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetScheduleEntryIDs( - /* [retval][out] */ IEnumVARIANT **pEnumScheduleEntries) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetScheduleEntryProperties( - /* [in] */ VARIANT varScheduleEntryDescriptionID, - /* [retval][out] */ IEnumGuideDataProperties **ppEnumProperties) = 0; - - }; - -#else /* C style interface */ - - typedef struct IGuideDataVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IGuideData * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IGuideData * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IGuideData * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetServices )( - IGuideData * This, - /* [retval][out] */ IEnumTuneRequests **ppEnumTuneRequests); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetServiceProperties )( - IGuideData * This, - /* [in] */ ITuneRequest *pTuneRequest, - /* [retval][out] */ IEnumGuideDataProperties **ppEnumProperties); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetGuideProgramIDs )( - IGuideData * This, - /* [retval][out] */ IEnumVARIANT **pEnumPrograms); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetProgramProperties )( - IGuideData * This, - /* [in] */ VARIANT varProgramDescriptionID, - /* [retval][out] */ IEnumGuideDataProperties **ppEnumProperties); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetScheduleEntryIDs )( - IGuideData * This, - /* [retval][out] */ IEnumVARIANT **pEnumScheduleEntries); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetScheduleEntryProperties )( - IGuideData * This, - /* [in] */ VARIANT varScheduleEntryDescriptionID, - /* [retval][out] */ 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 */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IGuideData_GetServices_Proxy( - IGuideData * This, - /* [retval][out] */ IEnumTuneRequests **ppEnumTuneRequests); - - -void __RPC_STUB IGuideData_GetServices_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IGuideData_GetServiceProperties_Proxy( - IGuideData * This, - /* [in] */ ITuneRequest *pTuneRequest, - /* [retval][out] */ IEnumGuideDataProperties **ppEnumProperties); - - -void __RPC_STUB IGuideData_GetServiceProperties_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IGuideData_GetGuideProgramIDs_Proxy( - IGuideData * This, - /* [retval][out] */ IEnumVARIANT **pEnumPrograms); - - -void __RPC_STUB IGuideData_GetGuideProgramIDs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IGuideData_GetProgramProperties_Proxy( - IGuideData * This, - /* [in] */ VARIANT varProgramDescriptionID, - /* [retval][out] */ IEnumGuideDataProperties **ppEnumProperties); - - -void __RPC_STUB IGuideData_GetProgramProperties_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IGuideData_GetScheduleEntryIDs_Proxy( - IGuideData * This, - /* [retval][out] */ IEnumVARIANT **pEnumScheduleEntries); - - -void __RPC_STUB IGuideData_GetScheduleEntryIDs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IGuideData_GetScheduleEntryProperties_Proxy( - IGuideData * This, - /* [in] */ VARIANT varScheduleEntryDescriptionID, - /* [retval][out] */ IEnumGuideDataProperties **ppEnumProperties); - - -void __RPC_STUB IGuideData_GetScheduleEntryProperties_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ IGuideData *pGuideStore) = 0; - - virtual HRESULT STDMETHODCALLTYPE Terminate( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IGuideDataLoaderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IGuideDataLoader * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IGuideDataLoader * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IGuideDataLoader * This); - - HRESULT ( STDMETHODCALLTYPE *Init )( - IGuideDataLoader * This, - /* [in] */ IGuideData *pGuideStore); - - HRESULT ( STDMETHODCALLTYPE *Terminate )( - 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 */ - - - -HRESULT STDMETHODCALLTYPE IGuideDataLoader_Init_Proxy( - IGuideDataLoader * This, - /* [in] */ IGuideData *pGuideStore); - - -void __RPC_STUB IGuideDataLoader_Init_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGuideDataLoader_Terminate_Proxy( - IGuideDataLoader * This); - - -void __RPC_STUB IGuideDataLoader_Terminate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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_0489 */ -/* [local] */ - -#if ( _MSC_VER >= 800 ) -#pragma warning(default:4201) /* Nameless struct/union */ -#endif - - -extern RPC_IF_HANDLE __MIDL_itf_bdatif_0489_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_bdatif_0489_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 VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); -void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * ); - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/DShow.h b/sdk/dx8sdk/Include/DShow.h deleted file mode 100644 index 54b6fbfb..00000000 --- a/sdk/dx8sdk/Include/DShow.h +++ /dev/null @@ -1,78 +0,0 @@ -//------------------------------------------------------------------------------ -// File: DShow.h -// -// Desc: DirectShow top-level include file -// -// Copyright (c) 2000-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - -#ifndef __DSHOW_INCLUDED__ -#define __DSHOW_INCLUDED__ - -/////////////////////////////////////////////////////////////////////////// -// Set up constants & pragmas for the compiler -/////////////////////////////////////////////////////////////////////////// -#ifdef _MSC_VER -// 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 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 -#include // ActiveMovie audio interfaces and definitions -#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 - - -#endif // __DSHOW_INCLUDED__ diff --git a/sdk/dx8sdk/Include/DShowIDL/Bdatif.idl b/sdk/dx8sdk/Include/DShowIDL/Bdatif.idl deleted file mode 100644 index bc94db40..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/Bdatif.idl +++ /dev/null @@ -1,678 +0,0 @@ -//--------------------------------------------------------------------- -// -// 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") - - -//--------------------------------------------------------------------- -// IUnknown import idl -//--------------------------------------------------------------------- - -#ifndef DO_NO_IMPORTS -import "unknwn.idl"; -import "strmif.idl"; -import "tuner.idl"; -import "bdaiface.idl"; -#endif - - -interface IMPEG2_TIF_CONTROL; -interface IATSCChannelInfo; -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 - ); -} - - -//****************************************************************************** -// -// 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; - }; -}; - -cpp_quote("#if ( _MSC_VER >= 800 )") -cpp_quote("#pragma warning(default:4201) /* Nameless struct/union */") -cpp_quote("#endif") diff --git a/sdk/dx8sdk/Include/DShowIDL/Mpeg2Data.idl b/sdk/dx8sdk/Include/DShowIDL/Mpeg2Data.idl deleted file mode 100644 index 6762c49c..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/Mpeg2Data.idl +++ /dev/null @@ -1,303 +0,0 @@ -///////////////////////////////////////////////////////////////////////////// -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Module Name: -// -// Mpeg2Data.idl -// -// Abstract: -// -// Main Mpeg2Data Library Definition, and interface definitions for -// the MPEG-2 Section and Table acquisition functionality -// -///////////////////////////////////////////////////////////////////////////// - - // Import Files -import "oaidl.idl"; -import "ocidl.idl"; -import "bdaiface.idl"; - - // Specify single byte packing alignment -#pragma pack(push) -#pragma pack(1) - - // Forward interface declarations -interface ISectionList; -interface IMpeg2Stream; - - // Declare well known PID/TID values for MPEG-2 tables -cpp_quote("#define MPEG_PAT_PID 0x0000") -cpp_quote("#define MPEG_PAT_TID 0x00") - -cpp_quote("#define MPEG_CAT_PID 0x0001") -cpp_quote("#define MPEG_CAT_TID 0x01") - -cpp_quote("#define MPEG_PMT_TID 0x02") - -cpp_quote("#define MPEG_TSDT_PID 0x0002") -cpp_quote("#define MPEG_TSDT_TID 0x03") - - // Declare well known PID/TID values for ATSC tables -cpp_quote("#define ATSC_MGT_PID 0x1FFB") -cpp_quote("#define ATSC_MGT_TID 0xC7") - -cpp_quote("#define ATSC_VCT_PID 0x1FFB") -cpp_quote("#define ATSC_VCT_TERR_TID 0xC8") -cpp_quote("#define ATSC_VCT_CABL_TID 0xC9") - -cpp_quote("#define ATSC_RRT_PID 0x1FFB") -cpp_quote("#define ATSC_RRT_TID 0xCA") - -cpp_quote("#define ATSC_EIT_TID 0xCB") - -cpp_quote("#define ATSC_ETT_TID 0xCC") - -cpp_quote("#define ATSC_STT_PID 0x1FFB") -cpp_quote("#define ATSC_STT_TID 0xCD") - -cpp_quote("#define ATSC_PIT_TID 0xD0") - - // Declare well known PID/TID values for DVB tables -cpp_quote("#define DVB_NIT_PID 0x0010") -cpp_quote("#define DVB_NIT_ACTUAL_TID 0x40") -cpp_quote("#define DVB_NIT_OTHER_TID 0x41") - -cpp_quote("#define DVB_SDT_PID 0x0011") -cpp_quote("#define DVB_SDT_ACTUAL_TID 0x42") -cpp_quote("#define DVB_SDT_OTHER_TID 0x46") - -cpp_quote("#define DVB_BAT_PID 0x0011") -cpp_quote("#define DVB_BAT_TID 0x4A") - -cpp_quote("#define DVB_EIT_PID 0x0012") -cpp_quote("#define DVB_EIT_ACTUAL_TID 0x4E") -cpp_quote("#define DVB_EIT_OTHER_TID 0x4F") - -cpp_quote("#define DVB_RST_PID 0x0013") -cpp_quote("#define DVB_RST_TID 0x71") - -cpp_quote("#define DVB_TDT_PID 0x0014") -cpp_quote("#define DVB_TDT_TID 0x70") - -cpp_quote("#define DVB_ST_PID_16 0x0010") -cpp_quote("#define DVB_ST_PID_17 0x0011") -cpp_quote("#define DVB_ST_PID_18 0x0012") -cpp_quote("#define DVB_ST_PID_19 0x0013") -cpp_quote("#define DVB_ST_PID_20 0x0014") -cpp_quote("#define DVB_ST_TID 0x72") - -cpp_quote("#define DVB_TOT_PID 0x0014") -cpp_quote("#define DVB_TOT_TID 0x73") - -cpp_quote("#define DVB_DIT_PID 0x001E") -cpp_quote("#define DVB_DIT_TID 0x7E") - -cpp_quote("#define DVB_SIT_PID 0x001F") -cpp_quote("#define DVB_SIT_TID 0x7F") - - // Declare well known PID/TID values for ISDB tables -cpp_quote("#define ISDB_DCT_PID 0x0017") -cpp_quote("#define ISDB_DCT_TID 0xC0") - -cpp_quote("#define ISDB_LIT_PID 0x0020") -cpp_quote("#define ISDB_LIT_TID 0xD0") - -cpp_quote("#define ISDB_ERT_PID 0x0021") -cpp_quote("#define ISDB_ERT_TID 0xD1") - -cpp_quote("#define ISDB_ITT_TID 0xD2") - -cpp_quote("#define ISDB_DLT_TID 0xC1") - -cpp_quote("#define ISDB_PCAT_PID 0x0022") -cpp_quote("#define ISDB_PCAT_TID 0xC2") - -cpp_quote("#define ISDB_SDTT_PID 0x0023") -cpp_quote("#define ISDB_SDTT_TID 0xC3") - - - -//////////////////////////////////// -// -// Mpeg2DataLib Library -// -//////////////////////////////////// - -cpp_quote("class DECLSPEC_UUID(\"DBAF6C1B-B6A4-4898-AE65-204F0D9509A1\") Mpeg2DataLib;") - -[ - uuid(DBAF6C1B-B6A4-4898-AE65-204F0D9509A1), - version(1.0) -] -library Mpeg2DataLib -{ - importlib("stdole32.tlb"); - importlib("stdole2.tlb"); - - // Include related interface definition files so that everything ends up - // in the same library. Note that the order in which these files are - // included is important, so do not rearrange them arbitrarily -#include "Mpeg2Structs.idl" -#ifdef MPEG2_FUTURE_CODE // Not available in DX9 -#include "Mpeg2PsiParser.idl" -#include "AtscPsipParser.idl" -#include "DvbSiParser.idl" -#endif - - - - //////////////////////////////////// - // - // IMpeg2Data Interface - // - //////////////////////////////////// - - [ - object, - uuid(9B396D40-F380-4e3c-A514-1A82BF6EBFE6), - pointer_default(unique) - ] - interface IMpeg2Data : IUnknown - { - HRESULT GetSection([in] PID pid, - [in] TID tid, - [in] PMPEG2_FILTER pFilter, // OPTIONAL - [in] DWORD dwTimeout, - [out] ISectionList ** ppSectionList); - - HRESULT GetTable([in] PID pid, - [in] TID tid, - [in] PMPEG2_FILTER pFilter, // OPTIONAL - [in] DWORD dwTimeout, - [out] ISectionList ** ppSectionList); - - HRESULT GetStreamOfSections([in] PID pid, - [in] TID tid, - [in] PMPEG2_FILTER pFilter, // OPTIONAL - [in] HANDLE hDataReadyEvent, - [out] IMpeg2Stream ** ppMpegStream); - }; - - - - //////////////////////////////////// - // - // ISectionList Interface - // - //////////////////////////////////// - - [ - object, - uuid(AFEC1EB5-2A64-46c6-BF4B-AE3CCB6AFDB0), - pointer_default(unique) - ] - interface ISectionList : IUnknown - { - HRESULT Initialize([in] MPEG_REQUEST_TYPE requestType, - [in] IMpeg2Data * pMpeg2Data, - [in] PMPEG_CONTEXT pContext, - [in] PID pid, - [in] TID tid, - [in] PMPEG2_FILTER pFilter, // OPTIONAL - [in] DWORD timeout, - [in] HANDLE hDoneEvent); // OPTIONAL - - HRESULT InitializeWithRawSections([in] PMPEG_PACKET_LIST pmplSections); - - HRESULT CancelPendingRequest(void); - - HRESULT GetNumberOfSections([out] WORD * pCount); - - HRESULT GetSectionData([in] WORD sectionNumber, - [out] DWORD * pdwRawPacketLength, - [out] PSECTION * ppSection); - - HRESULT GetProgramIdentifier(PID * pPid); - - HRESULT GetTableIdentifier(TID * pTableId); - }; - - - - //////////////////////////////////// - // - // IMpeg2Stream Interface - // - //////////////////////////////////// - - [ - object, - uuid(400CC286-32A0-4ce4-9041-39571125A635), - pointer_default(unique) - ] - interface IMpeg2Stream : IUnknown - { - HRESULT Initialize([in] MPEG_REQUEST_TYPE requestType, - [in] IMpeg2Data * pMpeg2Data, - [in] PMPEG_CONTEXT pContext, - [in] PID pid, - [in] TID tid, - [in] PMPEG2_FILTER pFilter, // OPTIONAL - [in] HANDLE hDataReadyEvent); - - HRESULT SupplyDataBuffer([in] PMPEG_STREAM_BUFFER pStreamBuffer); - }; - - - - //////////////////////////////////// - // - // SectionList CoClass - // - //////////////////////////////////// - - [ - uuid(73DA5D04-4347-45d3-A9DC-FAE9DDBE558D) - ] - coclass SectionList - { - [default] interface ISectionList; - }; - - - - //////////////////////////////////// - // - // Mpeg2Stream CoClass - // - //////////////////////////////////// - - [ - uuid(F91D96C7-8509-4d0b-AB26-A0DD10904BB7) - ] - coclass Mpeg2Stream - { - [default] interface IMpeg2Stream; - }; - - - - //////////////////////////////////// - // - // Mpeg2Data CoClass - // - //////////////////////////////////// - - [ - uuid(C666E115-BB62-4027-A113-82D643FE2D99) - ] - coclass Mpeg2Data - { - [default] interface IMpeg2Data; -#ifdef MPEG2_FUTURE_CODE // Not available in DX9 - interface IAtscPsipParser; - interface IDvbSiParser; -#endif - }; -}; - - - - // Return to default packing -#pragma pack(pop) diff --git a/sdk/dx8sdk/Include/DShowIDL/Mpeg2Structs.idl b/sdk/dx8sdk/Include/DShowIDL/Mpeg2Structs.idl deleted file mode 100644 index e04353f4..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/Mpeg2Structs.idl +++ /dev/null @@ -1,368 +0,0 @@ -///////////////////////////////////////////////////////////////////////////// -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Module Name: -// -// Mpeg2Structs.idl -// -// Abstract: -// -// Definitions for the common structures used in Mpeg2Data -// -// Notes: -// -// This IDL file is not built independently, but is included and built -// in the master IDL file Mpeg2Data.idl -// -///////////////////////////////////////////////////////////////////////////// - - // Include Files -#include "Mpeg2Bits.h" - - - -// -// Basic Type Aliases -// - -typedef WORD PID; -typedef BYTE TID; -typedef UINT ClientKey; - - - -// -// MPEG-2 Current/Next bit field -// - -typedef enum -{ - MPEG_SECTION_IS_NEXT = 0, - MPEG_SECTION_IS_CURRENT = 1 -} MPEG_CURRENT_NEXT_BIT; - - - -// -// MPEG-2 TID Extension structure -// - -typedef struct -{ - WORD wTidExt; - WORD wCount; -} TID_EXTENSION, *PTID_EXTENSION; - - - -// -// MPEG-2 packet "small" header structure -// - -typedef struct -{ - TID TableId; - union - { - MPEG_HEADER_BITS_MIDL S; - WORD W; - } Header; - BYTE SectionData[1]; // Array size is Header.S.SectionLength -} SECTION, *PSECTION; - - - -// -// MPEG-2 packet "long" header structure -// - -typedef struct -{ - TID TableId; - union - { - MPEG_HEADER_BITS_MIDL S; - WORD W; - } Header; - WORD TableIdExtension; - union - { - MPEG_HEADER_VERSION_BITS_MIDL S; - BYTE B; - } Version; - BYTE SectionNumber; - BYTE LastSectionNumber; - BYTE RemainingData[1]; // Array size is Header.S.SectionLength - 5 -} LONG_SECTION, *PLONG_SECTION; - - - -// -// DSM-CC packet header structure -// - -typedef struct -{ - TID TableId; - union - { - MPEG_HEADER_BITS_MIDL S; - WORD W; - } Header; - WORD TableIdExtension; - union - { - MPEG_HEADER_VERSION_BITS_MIDL S; - BYTE B; - } Version; - BYTE SectionNumber; - BYTE LastSectionNumber; - BYTE ProtocolDiscriminator; - BYTE DsmccType; - WORD MessageId; - DWORD TransactionId; - BYTE Reserved; - BYTE AdaptationLength; - WORD MessageLength; - BYTE RemainingData[1]; -} DSMCC_SECTION, *PDSMCC_SECTION; - - - -// -// MPEG-2 request/response packets structures -// - -typedef struct -{ - DWORD dwLength; - PSECTION pSection; -} MPEG_RQST_PACKET, *PMPEG_RQST_PACKET; - -typedef struct -{ - WORD wPacketCount; - PMPEG_RQST_PACKET PacketList[1]; // Array size is wPacketCount; -} MPEG_PACKET_LIST, *PMPEG_PACKET_LIST; - - - -// -// DSM-CC request filter options -// - -typedef struct -{ - BOOL fSpecifyProtocol; // If true, Protocol should be set to desired value - BYTE Protocol; - BOOL fSpecifyType; // If true, Type should be set to desired value - BYTE Type; - BOOL fSpecifyMessageId; // If true, MessageId should be set to desired value - WORD MessageId; - BOOL fSpecifyTransactionId; // If true, TransactionId (or DownloadId for DDB msgs) should be set to desired value - BOOL fUseTrxIdMessageIdMask; // If false, TransactionId is filtered as is. - // If true, TransactionId is masked to look - // for any version of message with associated - // message identifier. See DVB - Data - // Broadcasting Guidlines 4.6.5. (Assignment - // and use of transactionId values). - DWORD TransactionId; - BOOL fSpecifyModuleVersion; // If true, ModuleVersion should be set to the desired value - BYTE ModuleVersion; - BOOL fSpecifyBlockNumber; // If true, BlockNumber should be set to desired value - WORD BlockNumber; - BOOL fGetModuleCall; // If true, NumberOfBlocksInModule should be set - WORD NumberOfBlocksInModule; -} DSMCC_FILTER_OPTIONS; -// 45 BYTES - - - -// -// ATSC request filter options -// - -typedef struct -{ - BOOL fSpecifyEtmId; // If true, EtmId should be set to desired value - DWORD EtmId; -} ATSC_FILTER_OPTIONS; -// 8 BYTES - - - -// -// MPEG-2 request filter structure -// - -typedef struct -{ - BYTE bVersionNumber; // Must be set to 1 or more to match filter definition - WORD wFilterSize; // Size of total filter structure. Version 1 filter is 73 bytes. - BOOL fUseRawFilteringBits; // If true, Filter and Mask fields should be set to desired value, all other - // fields with be ignored. - BYTE Filter[16]; // Bits with values to compare against for a match. - BYTE Mask[16]; // Bits set to 0 are bits that are compared to those in the filter, those - // bits set to 1 are ignored. - BOOL fSpecifyTableIdExtension; // If true, TableIdExtension should be set to desired value (false = don't care) - WORD TableIdExtension; - BOOL fSpecifyVersion; // If true, Version should be set to desired value (false = don't care) - BYTE Version; - BOOL fSpecifySectionNumber; // If true, SectionNumber should be set to desired value (false = don't care) - BYTE SectionNumber; - BOOL fSpecifyCurrentNext; // If true, fNext should be set to desired value (false = don't care) - BOOL fNext; // If true, next table is queried. Else, current - BOOL fSpecifyDsmccOptions; // If true, Dsmcc should be set with desired filter options - DSMCC_FILTER_OPTIONS Dsmcc; - BOOL fSpecifyAtscOptions; // If true, Atsc should be set with desired filter options - ATSC_FILTER_OPTIONS Atsc; -} MPEG2_FILTER, *PMPEG2_FILTER; -// 124 BYTES - -cpp_quote("#define MPEG2_FILTER_VERSION_1_SIZE 124") - - -// -// Mpeg-2 Stream buffer structure -// - -typedef struct -{ - HRESULT hr; - DWORD dwDataBufferSize; - DWORD dwSizeOfDataRead; - BYTE * pDataBuffer; -} MPEG_STREAM_BUFFER, *PMPEG_STREAM_BUFFER; - - - -// -// MPEG-2 Time and Date structures -// - -typedef struct -{ - BYTE Hours; // Legal Range: 0 to 23 - BYTE Minutes; // Legal Range: 0 to 59 - BYTE Seconds; // Legal Range: 0 to 59 -} MPEG_TIME; - -typedef MPEG_TIME MPEG_DURATION; - -typedef struct -{ - BYTE Date; // Legal Range: 1 to 31 - BYTE Month; // Legal Range: 1 to 12 - WORD Year; // Legal Range: 1900 to 2100 -} MPEG_DATE; - -typedef struct -{ - MPEG_DATE D; - MPEG_TIME T; -} MPEG_DATE_AND_TIME; - - - -// -// MPEG-2 API Context structures -// - -typedef enum -{ - MPEG_CONTEXT_BCS_DEMUX, - MPEG_CONTEXT_WINSOCK -} MPEG_CONTEXT_TYPE; - -typedef struct -{ - DWORD AVMGraphId; -} MPEG_BCS_DEMUX; - -typedef struct -{ - DWORD AVMGraphId; -} MPEG_WINSOCK; - -typedef struct -{ - MPEG_CONTEXT_TYPE Type; - union - { - MPEG_BCS_DEMUX Demux; - MPEG_WINSOCK Winsock; - } U; -} MPEG_CONTEXT, *PMPEG_CONTEXT; - - - -// -// MPEG-2 Service Request and Responses -// - -typedef enum -{ - MPEG_RQST_UNKNOWN = 0, - MPEG_RQST_GET_SECTION, - MPEG_RQST_GET_SECTION_ASYNC, - MPEG_RQST_GET_TABLE, - MPEG_RQST_GET_TABLE_ASYNC, - MPEG_RQST_GET_SECTIONS_STREAM, - MPEG_RQST_GET_PES_STREAM, - MPEG_RQST_GET_TS_STREAM, - MPEG_RQST_START_MPE_STREAM, -} MPEG_REQUEST_TYPE; - -typedef struct -{ - MPEG_REQUEST_TYPE Type; - MPEG_CONTEXT Context; - PID Pid; - TID TableId; - MPEG2_FILTER Filter; - DWORD Flags; -} MPEG_SERVICE_REQUEST, *PMPEG_SERVICE_REQUEST; - -typedef struct -{ - DWORD IPAddress; - WORD Port; -} MPEG_SERVICE_RESPONSE, *PMPEG_SERVICE_RESPONSE; - - - -// -// DSM-CC & MPE Query Results -// - -typedef struct _DSMCC_ELEMENT -{ - PID pid; - BYTE bComponentTag; - DWORD dwCarouselId; - DWORD dwTransactionId; - struct _DSMCC_ELEMENT * pNext; -} DSMCC_ELEMENT, *PDSMCC_ELEMENT; - -typedef struct _MPE_ELEMENT -{ - PID pid; - BYTE bComponentTag; - struct _MPE_ELEMENT * pNext; -} MPE_ELEMENT, *PMPE_ELEMENT; - - - -// -// MPEG-2 Stream Filtering Structure -// - -typedef struct _MPEG_STREAM_FILTER -{ - WORD wPidValue; // PID value - DWORD dwFilterSize; // size of filter in bits - BOOL fCrcEnabled; // enable/disable CRC check - BYTE rgchFilter[16]; // filter data - BYTE rgchMask[16]; // filter mask -} MPEG_STREAM_FILTER; diff --git a/sdk/dx8sdk/Include/DShowIDL/Mstvca.idl b/sdk/dx8sdk/Include/DShowIDL/Mstvca.idl deleted file mode 100644 index a9b257d8..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/Mstvca.idl +++ /dev/null @@ -1,840 +0,0 @@ -// MSTvCA.idl : IDL source for MSTvCA.dll -// - -// This file will be processed by the MIDL tool to -// produce the type library (CA.tlb) and marshalling code. - -import "oaidl.idl"; -import "ocidl.idl"; -#include "olectl.h" - -/* [ - object, - dual, - uuid(49a32d3c-7d85-11d2-8895-00c04f794967), - helpstring("ITuneRequest Interface"), - pointer_default(unique) - ] - interface ITuneRequest : IDispatch - { - }; -*/ -import "tuner.idl"; // includes the whole BDA world! Yecko! - - interface ICAManager; - interface ICARequest; - interface ICAPolicy; - interface ICAPolicies; - interface ICAPoliciesInternal; - interface ICAToll; - interface ICATolls; - interface ICATollsInternal; - interface ICADenial; - interface ICADenials; - interface ICAOffer; - interface ICAOffers; - interface ICAComponent; - interface ICAComponents; - -#define COLLECTID_Item 0 -#define COLLECTID_Count 1 -#define COLLECTID_Add 2 -#define COLLECTID_Remove 3 -#define COLLECTID_AddNew 4 -#define COLLECTID_CountDenied 5 // ICADenials -#define COLLECTID_CountSelected 6 // ICADenials -#define COLLECTID_PaySelectedTolls 7 // ICADenials - -typedef enum -{ - Unselected = 0, - Selected = 1 -} CATollState; - -typedef enum -{ - Denied = 0, - Transient = 1, -// Allowed = 2, - DescriptionShort = 10, // one of the description fields changed - DescriptionLong = 11, // via a ICADenial::put_Description() - DescriptionHTML = 12, // - DescriptionXML = 13 // (keep these current+10 with list below...) -} CADenialState; - -typedef enum -{ - Short = 0, // must be numeric, starting at 0. (Used as array index). - Long = 1, // in approximatly order of length in bytes - URL = 2, - HTML = 3, - XML = 4, - kDescEnd = 5 // invalid format, 1+ last real one (Used as array length). -} CADescFormat; - - -typedef enum -{ - Request = 1, - ComponentX = 2, - Offers = 4, - PaidTolls = 8, - Policies = 16, - Standard = 15, // all put the policies - All = 31 // all -} CAUIDisplayFields; - - // --------------------------------------------------------------- - // if add methods to ICAManagerInternal, be sure to add MAGICCALL in CAManagerProxy too.. - // --------------------------------------------------------------- - - [ - object, - uuid(11166301-DF8A-463a-B620-7BEC23542010), - dual, // Helpers are Dual, IUnknown... so see from VB - hidden, restricted, - helpstring("ICAManagerInternal Interface"), - pointer_default(unique) - ] - interface ICAManagerInternal : IUnknown - { - [ id(1), helpstring("method Save")] HRESULT Save(); - [ id(2), helpstring("method Load")] HRESULT Load(); - [propput, id(3), helpstring("property MarkDirty")] HRESULT MarkDirty([in] BOOL fDirty); - [propget, id(3), helpstring("property MarkDirty")] HRESULT MarkDirty([out, retval] BOOL *pfDirty); - [propput, id(4), helpstring("property TuneRequest")] HRESULT TuneRequest([in] ITuneRequest *ptunereq); - [ id(5), helpstring("method GetDefaultUI")] HRESULT GetDefaultUI([out] HWND *phwnd); - [ id(6), helpstring("method SetDefaultUI")] HRESULT SetDefaultUI([in] HWND hwnd); - // return the main CAManager object, not the proxy one. - [propget, id(7), helpstring("property CAManagerMain")] HRESULT CAManagerMain([out,retval] ICAManager **ppManagerMain); - [propput, id(8), helpstring("property BroadcastEventService")] HRESULT BroadcastEventService([in] IBroadcastEvent *pBroadcastEventService); - [propget, id(8), helpstring("property BroadcastEventService")] HRESULT BroadcastEventService([out, retval] IBroadcastEvent **ppBroadcastEventService); - [ id(9), helpstring("method DisplayDefaultUI")] HRESULT DisplayDefaultUI([in] VARIANT_BOOL fDisplay); - [ id(10), helpstring("method EnableDefaultUIPayTollsButton")] HRESULT EnableDefaultUIPayTollsButton([in] VARIANT_BOOL fEnabled); - [ id(11), helpstring("method UpdateDefaultUIForToll")] HRESULT UpdateDefaultUIForToll([in] ICAToll *pToll,[in] CATollState enState); - [propput, id(12), helpstring("property TuneRequestInt")] HRESULT TuneRequestInt([in] ITuneRequest *ptunereq); - [ id(13), helpstring("method AddDenialsFor")] HRESULT AddDenialsFor([in] IUnknown *pUnk); // see also ICAManager::get_DenialsFor() - [ id(14), helpstring("method RemoveDenialsFor")] HRESULT RemoveDenialsFor([in] IUnknown *pUnk); - - [ id(2201),helpstring("method NotifyRequestActivated")] HRESULT NotifyRequestActivated([in] ICARequest *pReq); - [ id(2202),helpstring("method NotifyRequestDeactivated")] HRESULT NotifyRequestDeactivated([in] ICARequest *pReq); - [ id(2203),helpstring("method NotifyOfferAdded")] HRESULT NotifyOfferAdded([in] ICAOffer *pOffer,[in] long cOffers); - [ id(2204),helpstring("method NotifyOfferRemoved")] HRESULT NotifyOfferRemoved([in] ICAOffer *pOffer,[in] long cOffers); - [ id(2205),helpstring("method NotifyPolicyAdded")] HRESULT NotifyPolicyAdded([in] ICAPolicy *pPolicy,[in] long cPolicies); - [ id(2206),helpstring("method NotifyPolicyRemoved")] HRESULT NotifyPolicyRemoved([in] ICAPolicy *pPolicy,[in] long cPolicies); - [ id(2207),helpstring("method NotifyRequestDenialAdded")] HRESULT NotifyRequestDenialAdded([in] ICARequest *pReq, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2208),helpstring("method NotifyRequestDenialRemoved")] HRESULT NotifyRequestDenialRemoved([in] ICARequest *pReq, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2209),helpstring("method NotifyDenialTollAdded")] HRESULT NotifyDenialTollAdded([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls); - [ id(2210),helpstring("method NotifyDenialTollRemoved")] HRESULT NotifyDenialTollRemoved([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls); - [ id(2211),helpstring("method NotifyTollDenialAdded")] HRESULT NotifyTollDenialAdded([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2212),helpstring("method NotifyTollDenialRemoved")] HRESULT NotifyTollDenialRemoved([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2213),helpstring("method NotifyOfferTollAdded")] HRESULT NotifyOfferTollAdded([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls); - [ id(2214),helpstring("method NotifyOfferTollRemoved")] HRESULT NotifyOfferTollRemoved([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls); - [ id(2215),helpstring("method NotifyTollStateChanged")] HRESULT NotifyTollStateChanged([in] ICAToll *pToll, [in] CATollState enStateLast); - [ id(2216),helpstring("method NotifyDenialStateChanged")] HRESULT NotifyDenialStateChanged([in] ICADenial *pDenial, [in] CADenialState enStateLast); - [ id(2217),helpstring("method NotifyComponentDenialAdded")] HRESULT NotifyComponentDenialAdded([in] ICAComponent *pReq, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2218),helpstring("method NotifyComponentDenialRemoved")] HRESULT NotifyComponentDenialRemoved([in] ICAComponent *pReq, [in] ICADenial *pDenial,[in] long cDenials); - - }; - - [ - object, - uuid(11166302-DF8A-463a-B620-7BEC23542010), - dual, // Helpers are Dual, IUnknown... so see from VB - hidden, restricted, - helpstring("ICAManagerXProxy Interface"), - pointer_default(unique) - ] - interface ICAManagerXProxy : IUnknown - { - [propget, id(1), helpstring("property PunkCAManagerProxy")] HRESULT PunkCAManagerProxy([out,retval] IUnknown **ppUnkCAManagerProxy); - [ id(2201),helpstring("method NotifyRequestActivated_XProxy")] HRESULT NotifyRequestActivated_XProxy([in] ICARequest *pReq); - [ id(2202),helpstring("method NotifyRequestDeactivated_XProxy")] HRESULT NotifyRequestDeactivated_XProxy([in] ICARequest *pReq); - [ id(2203),helpstring("method NotifyOfferAdded_XProxy")] HRESULT NotifyOfferAdded_XProxy([in] ICAOffer *pOffer,[in] long cOffers); - [ id(2204),helpstring("method NotifyOfferRemoved_XProxy")] HRESULT NotifyOfferRemoved_XProxy([in] ICAOffer *pOffer,[in] long cOffers); - [ id(2205),helpstring("method NotifyPolicyAdded_XProxy")] HRESULT NotifyPolicyAdded_XProxy([in] ICAPolicy *pPolicy,[in] long cPolicies); - [ id(2206),helpstring("method NotifyPolicyRemoved_XProxy")] HRESULT NotifyPolicyRemoved_XProxy([in] ICAPolicy *pPolicy,[in] long cPolicies); - [ id(2207),helpstring("method NotifyRequestDenialAdded_XProxy")] HRESULT NotifyRequestDenialAdded_XProxy([in] ICARequest *pReq, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2208),helpstring("method NotifyRequestDenialRemoved_XProxy")] HRESULT NotifyRequestDenialRemoved_XProxy([in] ICARequest *pReq, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2209),helpstring("method NotifyDenialTollAdded_XProxy")] HRESULT NotifyDenialTollAdded_XProxy([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls); - [ id(2210),helpstring("method NotifyDenialTollRemoved_XProxy")] HRESULT NotifyDenialTollRemoved_XProxy([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls); - [ id(2211),helpstring("method NotifyTollDenialAdded_XProxy")] HRESULT NotifyTollDenialAdded_XProxy([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2212),helpstring("method NotifyTollDenialRemoved_XProxy")] HRESULT NotifyTollDenialRemoved_XProxy([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2213),helpstring("method NotifyOfferTollAdded_XProxy")] HRESULT NotifyOfferTollAdded_XProxy([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls); - [ id(2214),helpstring("method NotifyOfferTollRemoved_XProxy")] HRESULT NotifyOfferTollRemoved_XProxy([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls); - [ id(2215),helpstring("method NotifyTollStateChanged_XProxy")] HRESULT NotifyTollStateChanged_XProxy([in] ICAToll *pToll, [in] CATollState enStateLast); - [ id(2216),helpstring("method NotifyDenialStateChanged_XProxy")] HRESULT NotifyDenialStateChanged_XProxy([in] ICADenial *pDenial, [in] CADenialState enStateLast); - [ id(2217),helpstring("method NotifyComponentDenialAdded_XProxy")] HRESULT NotifyComponentDenialAdded_XProxy([in] ICAComponent *pReq, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2218),helpstring("method NotifyComponentDenialRemoved_XProxy")] HRESULT NotifyComponentDenialRemoved_XProxy([in] ICAComponent *pReq, [in] ICADenial *pDenial,[in] long cDenials); - }; - - // --------------------------------------------------------------- - - - // --------------------------------------------------------------- - - [ - object, - uuid(11166420-DF8A-463a-B620-7BEC23542010), - dual, - helpstring("ICAPolicies Interface"), - pointer_default(unique) - ] - interface ICAPolicies : IDispatch - { - [propget, id(DISPID_NEWENUM), restricted] HRESULT _NewEnum([out, retval] IUnknown **ppCollection); - [propget, id(COLLECTID_Count)] HRESULT Count([out, retval] long *Count); - [propget, id(COLLECTID_Item)] HRESULT Item([in] VARIANT Index, [out, retval] ICAPolicy **ppPolicy); - [ id(COLLECTID_Add)] HRESULT Add([in] ICAPolicy *pPolicy); - [ id(COLLECTID_Remove)] HRESULT Remove([in] VARIANT Index); - }; - - [ object, - uuid(11166421-DF8A-463a-B620-7BEC23542010), - dual, - hidden, restricted, - helpstring("ICAPoliciesInternal Interface"), - pointer_default(unique) - ] - interface ICAPoliciesInternal : IUnknown - { - [id(1),helpstring("method SetCAManager")] HRESULT SetCAManager([in] ICAManager *pManager); - [id(2),helpstring("method CheckRequest")] HRESULT CheckRequest([in] ICARequest *pReq); - }; - - // --------------------------------------------------------------- - - [ - object, - uuid(11166430-DF8A-463a-B620-7BEC23542010), - dual, - helpstring("ICATolls Interface"), - pointer_default(unique) - ] - interface ICATolls : IDispatch - { - [propget, id(DISPID_NEWENUM), restricted] HRESULT _NewEnum([out, retval] IUnknown **ppCollection); - [propget, id(COLLECTID_Count)] HRESULT Count([out, retval] long *Count); - [propget, id(COLLECTID_Item)] HRESULT Item([in] VARIANT Index, [out, retval] ICAToll **ppToll); - [ id(COLLECTID_Add)] HRESULT Add([in] ICAToll *pToll); - [ id(COLLECTID_Remove)] HRESULT Remove([in] VARIANT Index); - }; - - [ - object, - uuid(11166431-DF8A-463a-B620-7BEC23542010), - dual, - hidden, restricted, - helpstring("ICATolls Internal Interface"), - pointer_default(unique) - ] - interface ICATollsInternal : IUnknown // workaround for not being able to get _ICAResDenialEvents to work - { - [ id(1),helpstring("method SetCAManager")] HRESULT SetCAManager([in] ICAManager *pManager); - [ id(2),helpstring("method GetCAManager")] HRESULT GetCAManager([out] ICAManager **ppManager); - [ id(3),helpstring("method SetMustPersist")] HRESULT SetMustPersist([in] BOOL fMustPersist); - [ id(4),helpstring("method Save")] HRESULT Save([in] IStorage *pstore,[in] BSTR bstrPrefix); - [ id(5),helpstring("method Load")] HRESULT Load([in] IStorage *pstore,[in] BSTR bstrPrefix); - [ id(6),helpstring("method NotifyStateChanged")] HRESULT NotifyStateChanged([in] ICAToll *pToll, [in] CATollState enStateFrom); - [ id(7),helpstring("method NotifyTollSelectionChanged")] HRESULT NotifyTollSelectionChanged([in] ICAToll *pToll, [in] BOOL fSelected); - }; - // --------------------------------------------------------------- - - - [ - object, - uuid(11166440-DF8A-463a-B620-7BEC23542010), - dual, - helpstring("ICADenials Interface"), - pointer_default(unique) - ] - interface ICADenials : IDispatch - { - [propget, id(DISPID_NEWENUM), restricted] HRESULT _NewEnum([out, retval] IUnknown **ppCollection); - [propget, id(COLLECTID_Count) ] HRESULT Count([out, retval] long *Count); - [propget, id(COLLECTID_Item)] HRESULT Item([in] VARIANT Index, [out, retval] ICADenial **ppDenial); - [propget, id(COLLECTID_AddNew), helpstring("property AddNew")] HRESULT AddNew([in] ICAPolicy *ppolicy, [in] BSTR bstrShortDesc, [in] IUnknown *pUnkDeniedObject, [in] long enDenialState, [out, retval] ICADenial **ppDenial); - [ id(COLLECTID_Remove)] HRESULT Remove([in] VARIANT Index); - [propget, id(COLLECTID_CountDenied)] HRESULT CountDenied([out, retval] long *Count); - [propget, id(COLLECTID_CountSelected)] HRESULT CountSelected([out, retval] long *Count); - [ id(COLLECTID_PaySelectedTolls)] HRESULT PaySelectedTolls(); - }; - - [ - object, - uuid(11166441-DF8A-463a-B620-7BEC23542010), - dual, - hidden, restricted, - helpstring("ICADenialsInternal Interface"), - pointer_default(unique) - ] - interface ICADenialsInternal : IUnknown - { - [ id(1),helpstring("method SetCAManager")] HRESULT SetCAManager([in] ICAManager *pManager); - [ id(2),helpstring("method NotifyDenialStateChanged")] HRESULT NotifyDenialStateChanged([in] ICADenial *pDenial, [in] CADenialState enStateLast); - }; - - - // --------------------------------------------------------------- - - [ - object, - uuid(11166450-DF8A-463a-B620-7BEC23542010), - dual, - helpstring("ICAOffers Interface"), - pointer_default(unique) - ] - interface ICAOffers : IDispatch - { - [propget, id(DISPID_NEWENUM) , restricted] HRESULT _NewEnum([out, retval] IUnknown **ppCollection); - [propget, id(COLLECTID_Count)] HRESULT Count([out, retval] long *Count); - [propget, id(COLLECTID_Item)] HRESULT Item([in] VARIANT Index, [out, retval] ICAOffer **ppOffer); - [propget, id(COLLECTID_AddNew), helpstring("property AddNew")] HRESULT AddNew([in] ICAPolicy *pPolicy, [in] BSTR bstrName, [in] DATE dateStart, [in] DATE dateEnd, [out, retval] ICAOffer **ppOffer); - [ id(COLLECTID_Remove)] HRESULT Remove([in] VARIANT Index); - }; - - [ - object, - uuid(11166470-DF8A-463a-B620-7BEC23542010), - dual, - helpstring("ICAComponents Interface"), - pointer_default(unique) - ] - interface ICAComponents : IDispatch - { - [propget, id(DISPID_NEWENUM) , restricted] HRESULT _NewEnum([out, retval] IUnknown **ppCollection); - [propget, id(COLLECTID_Count)] HRESULT Count([out, retval] long *Count); - [propget, id(COLLECTID_Item)] HRESULT Item([in] VARIANT Index, [out, retval] ICAComponent **ppComponent); - // [ id(COLLECTID_Add)] HRESULT Add([in] ICAComponent *pComponent); - // [ id(COLLECTID_Remove)] HRESULT Remove([in] VARIANT Index); - }; - - - [ - object, - uuid(11166361-DF8A-463a-B620-7BEC23542010), - dual, - hidden, - helpstring("ICAComponentInternal Interface"), - pointer_default(unique) - ] - interface ICAComponentInternal : IUnknown - { - [ id(1), helpstring("method RemoveAllDenials")] HRESULT RemoveAllDenials(); - [propget, id(2), helpstring("property Description")] HRESULT Description([in] CADescFormat enFormat, [out, retval] BSTR *pbstrDescription); - }; - // --------------------------------------------------------------- - - - [ - object, - uuid(860A3FE2-DED1-40E2-896C-057681A8A1A8), - dual, - helpstring("ICADefaultDlg Interface"), - pointer_default(unique) - ] - interface ICADefaultDlg : IDispatch - { - [propput, id(DISPID_AUTOSIZE)] - HRESULT AutoSize([in]VARIANT_BOOL vbool); - [propget, id(DISPID_AUTOSIZE)] - HRESULT AutoSize([out,retval]VARIANT_BOOL* pbool); - [propput, id(DISPID_BACKCOLOR)] - HRESULT BackColor([in]OLE_COLOR clr); - [propget, id(DISPID_BACKCOLOR)] - HRESULT BackColor([out,retval]OLE_COLOR* pclr); - [propput, id(DISPID_BACKSTYLE)] - HRESULT BackStyle([in]long style); - [propget, id(DISPID_BACKSTYLE)] - HRESULT BackStyle([out,retval]long* pstyle); - [propput, id(DISPID_BORDERCOLOR)] - HRESULT BorderColor([in]OLE_COLOR clr); - [propget, id(DISPID_BORDERCOLOR)] - HRESULT BorderColor([out, retval]OLE_COLOR* pclr); - [propput, id(DISPID_BORDERSTYLE)] - HRESULT BorderStyle([in]long style); - [propget, id(DISPID_BORDERSTYLE)] - HRESULT BorderStyle([out, retval]long* pstyle); - [propput, id(DISPID_BORDERWIDTH)] - HRESULT BorderWidth([in]long width); - [propget, id(DISPID_BORDERWIDTH)] - HRESULT BorderWidth([out, retval]long* width); - [propput, id(DISPID_DRAWMODE)] - HRESULT DrawMode([in]long mode); - [propget, id(DISPID_DRAWMODE)] - HRESULT DrawMode([out, retval]long* pmode); - [propput, id(DISPID_DRAWSTYLE)] - HRESULT DrawStyle([in]long style); - [propget, id(DISPID_DRAWSTYLE)] - HRESULT DrawStyle([out, retval]long* pstyle); - [propput, id(DISPID_DRAWWIDTH)] - HRESULT DrawWidth([in]long width); - [propget, id(DISPID_DRAWWIDTH)] - HRESULT DrawWidth([out, retval]long* pwidth); - [propput, id(DISPID_FILLCOLOR)] - HRESULT FillColor([in]OLE_COLOR clr); - [propget, id(DISPID_FILLCOLOR)] - HRESULT FillColor([out, retval]OLE_COLOR* pclr); - [propput, id(DISPID_FILLSTYLE)] - HRESULT FillStyle([in]long style); - [propget, id(DISPID_FILLSTYLE)] - HRESULT FillStyle([out, retval]long* pstyle); - [propputref, id(DISPID_FONT)] - HRESULT Font([in]IFontDisp* pFont); - [propput, id(DISPID_FONT)] - HRESULT Font([in]IFontDisp* pFont); - [propget, id(DISPID_FONT)] - HRESULT Font([out, retval]IFontDisp** ppFont); - [propput, id(DISPID_FORECOLOR)] - HRESULT ForeColor([in]OLE_COLOR clr); - [propget, id(DISPID_FORECOLOR)] - HRESULT ForeColor([out,retval]OLE_COLOR* pclr); - [propput, id(DISPID_ENABLED)] - HRESULT Enabled([in]VARIANT_BOOL vbool); - [propget, id(DISPID_ENABLED)] - HRESULT Enabled([out,retval]VARIANT_BOOL* pbool); - [propget, id(DISPID_HWND)] - HRESULT Window([out, retval]LONG_PTR* phwnd); // was long* via the wizard, but doesn't compile Win64 - [propput, id(DISPID_TABSTOP)] - HRESULT TabStop([in]VARIANT_BOOL vbool); - [propget, id(DISPID_TABSTOP)] - HRESULT TabStop([out, retval]VARIANT_BOOL* pbool); - [propput, id(DISPID_TEXT)] - HRESULT Text([in]BSTR strText); - [propget, id(DISPID_TEXT)] - HRESULT Text([out, retval]BSTR* pstrText); - [propput, id(DISPID_CAPTION)] - HRESULT Caption([in]BSTR strCaption); - [propget, id(DISPID_CAPTION)] - HRESULT Caption([out,retval]BSTR* pstrCaption); - [propput, id(DISPID_BORDERVISIBLE)] - HRESULT BorderVisible([in]VARIANT_BOOL vbool); - [propget, id(DISPID_BORDERVISIBLE)] - HRESULT BorderVisible([out, retval]VARIANT_BOOL* pbool); - [propput, id(DISPID_APPEARANCE)] - HRESULT Appearance([in]short appearance); - [propget, id(DISPID_APPEARANCE)] - HRESULT Appearance([out, retval]short* pappearance); - [propput, id(DISPID_MOUSEPOINTER)] - HRESULT MousePointer([in]long pointer); - [propget, id(DISPID_MOUSEPOINTER)] - HRESULT MousePointer([out, retval]long* ppointer); - [propputref, id(DISPID_MOUSEICON)] - HRESULT MouseIcon([in]IPictureDisp* pMouseIcon); - [propput, id(DISPID_MOUSEICON)] - HRESULT MouseIcon([in]IPictureDisp* pMouseIcon); - [propget, id(DISPID_MOUSEICON)] - HRESULT MouseIcon([out, retval]IPictureDisp** ppMouseIcon); - [propputref, id(DISPID_PICTURE)] - HRESULT Picture([in]IPictureDisp* pPicture); - [propput, id(DISPID_PICTURE)] - HRESULT Picture([in]IPictureDisp* pPicture); - [propget, id(DISPID_PICTURE)] - HRESULT Picture([out, retval]IPictureDisp** ppPicture); - [propput, id(DISPID_VALID)] - HRESULT Valid([in]VARIANT_BOOL vbool); - [propget, id(DISPID_VALID)] - HRESULT Valid([out, retval]VARIANT_BOOL* pbool); - }; - // --------------------------------------------------------------- - -[ - uuid(11166000-DF8A-463a-B620-7BEC23542010), - version(1.0), - helpstring("Microsoft TV CA Type Library") -] -library MSTvCALib -{ - importlib("stdole32.tlb"); - importlib("stdole2.tlb"); - -// --------------------------------------------------- -// CAUTION - if Change events below, need to perform: -// 1) compile the MIDL file to generate the typelib -// 2) In VCC class view, ->Implement Connection Point (_ICAEvents) -// to regenerate the CProxy_ICAEvents<> code. -// Need to browse to objd\i386 directory and select MSTvCA.tlb -// (The file MSTvCACP.h must be checked out.) -// Where is Denials, Manager, Offers, Policies, Request, and Tolls - - [ - uuid(11166298-DF8A-463A-B620-7BEC23542010), - helpstring("_ICAResDenialTreeEvents Interface") - ] - dispinterface _ICAResDenialTreeEvents - { - properties: - methods: - [id(1),helpstring("method PaidTollSelected")] HRESULT PaidTollSelected([in] ICAToll *pToll, [in] long fSelected); - }; - - - [ - uuid(11166200-DF8A-463A-B620-7BEC23542010), - helpstring("ICAManagerEvents Interface") - ] - dispinterface _ICAManagerEvents - { - properties: - methods: - [id(2201),helpstring("method RequestActivated")] HRESULT RequestActivated([in] ICARequest *pReq); - [id(2202),helpstring("method RequestDeactivated")] HRESULT RequestDeactivated([in] ICARequest *pReq); - [id(2203),helpstring("method OfferAdded")] HRESULT OfferAdded([in] ICAOffer *pOffer,[in] long cOffers); - [id(2204),helpstring("method OfferRemoved")] HRESULT OfferRemoved([in] ICAOffer *pOffer,[in] long cOffers); - [id(2205),helpstring("method PolicyAdded")] HRESULT PolicyAdded([in] ICAPolicy *pPolicy,[in] long cPolicies); - [id(2206),helpstring("method PolicyRemoved")] HRESULT PolicyRemoved([in] ICAPolicy *pPolicy,[in] long cPolicies); - [id(2207),helpstring("method RequestDenialAdded")] HRESULT RequestDenialAdded([in] ICARequest *pReq, [in] ICADenial *pDenial,[in] long cDenials); - [id(2208),helpstring("method RequestDenialRemoved")] HRESULT RequestDenialRemoved([in] ICARequest *pReq, [in] ICADenial *pDenial,[in] long cDenials); - [id(2209),helpstring("method DenialTollAdded")] HRESULT DenialTollAdded([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls); - [id(2210),helpstring("method DenialTollRemoved")] HRESULT DenialTollRemoved([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls); - [id(2211),helpstring("method TollDenialAdded")] HRESULT TollDenialAdded([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials); - [id(2212),helpstring("method TollDenialRemoved")] HRESULT TollDenialRemoved([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials); - [id(2213),helpstring("method OfferTollAdded")] HRESULT OfferTollAdded([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls); - [id(2214),helpstring("method OfferTollRemoved")] HRESULT OfferTollRemoved([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls); - [id(2215),helpstring("method TollStateChanged")] HRESULT TollStateChanged([in] ICAToll *pToll, [in] CATollState enState); - [id(2216),helpstring("method DenialStateChanged")] HRESULT DenialStateChanged([in] ICADenial *pDenial, [in] CADenialState enState); - [id(2217),helpstring("method ComponentDenialAdded")] HRESULT ComponentDenialAdded([in] ICAComponent *pComp, [in] ICADenial *pDenial,[in] long cDenials); - [id(2218),helpstring("method ComponentDenialRemoved")] HRESULT ComponentDenialRemoved([in] ICAComponent *pComp, [in] ICADenial *pDenial,[in] long cDenials); - }; - - [ - uuid(11166210-DF8A-463A-B620-7BEC23542010), - helpstring("ICARequestEvents Interface") - ] - dispinterface _ICARequestEvents - { - properties: - methods: - [id(1), helpstring("method CheckStarted")] HRESULT CheckStarted([in] ICARequest *pRequest); - [id(2), helpstring("method CheckComplete")] HRESULT CheckComplete([in] ICARequest *pRequest,[in] long cDenials); - }; - [ - uuid(11166220-DF8A-463A-B620-7BEC23542010), - helpstring("_ICAPoliciesEvents Interface") - ] - dispinterface _ICAPoliciesEvents - { - properties: - methods: - [id(1), helpstring("method ItemAdded")] HRESULT ItemAdded([in] ICAPolicy *pPolicy, long cPolicies); - [id(2), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] ICAPolicy *pPolicy, long cPolicies); - }; - - [ - uuid(11166230-DF8A-463A-B620-7BEC23542010), - helpstring("ICATollsEvents Interface") - ] - dispinterface _ICATollsEvents - { - properties: - methods: - [id(1), helpstring("method ItemAdded")] HRESULT ItemAdded([in] ICAToll *pToll, [in] long cTolls); - [id(2), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] ICAToll *pToll, [in] long cTolls); - [id(3), helpstring("method StateChanged")] HRESULT StateChanged([in] ICAToll *pToll, [in] CATollState enStateFrom); - }; - - - [ - uuid(11166240-DF8A-463A-B620-7BEC23542010), - helpstring("ICADenialsEvents Interface") - ] - dispinterface _ICADenialsEvents - { - properties: - methods: - [id(1), helpstring("method ItemAdded")] HRESULT ItemAdded([in] ICADenial *pDenial, [in] long cDenials); - [id(2), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] ICADenial *pDenial, [in] long cDenials); - [id(3), helpstring("method StateChanged")] HRESULT StateChanged([in] ICADenial *pDenial, [in] CADenialState enStateFrom); - }; - - [ - uuid(11166250-DF8A-463A-B620-7BEC23542010), - helpstring("ICAOffersEvents Interface") - ] - dispinterface _ICAOffersEvents - { - properties: - methods: - [id(1), helpstring("method ItemAdded")] HRESULT ItemAdded([in] ICAOffer *pOffer, [in] long cOffers); - [id(2), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] ICAOffer *pOffer, [in] long cOffers); - }; - - [ - uuid(11166260-DF8A-463A-B620-7BEC23542010), - helpstring("_ICAComponentsEvents Interface") - ] - dispinterface _ICAComponentsEvents - { - properties: - methods: - [id(1), helpstring("method ItemAdded")] HRESULT ItemAdded([in] ICAComponent *pComponent, [in] long cComponent); - [id(2), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] ICAComponent *pComponent, [in] long cComponent); - }; // -------------------------------- - [ - object, - dual, - uuid(11166300-DF8A-463a-B620-7BEC23542010), - helpstring("ICAManager Interface"), - pointer_default(unique) - ] - interface ICAManager : IDispatch - { - [propget, id(1), helpstring("property Policies")] HRESULT Policies([out, retval] ICAPolicies **ppPolicies); - [propget, id(2), helpstring("property ActiveRequest")] HRESULT ActiveRequest([out, retval] ICARequest **ppRequest); - [propget, id(3), helpstring("property Offers")] HRESULT Offers([out, retval] ICAOffers **ppOffers); - [propget, id(4), helpstring("property PaidTolls")] HRESULT PaidTolls([out, retval] ICATolls **ppTolls); - [propput, id(5), helpstring("property UseDefaultUI")] HRESULT UseDefaultUI([in] long fUseDefaultUI); - [propget, id(5), helpstring("property UseDefaultUI")] HRESULT UseDefaultUI([out, retval] long *pfUseDefaultUI); - [propget, id(6), helpstring("property DenialsFor")] HRESULT DenialsFor([in] IUnknown *pUnk, [out, retval] ICADenials **ppDenials); - }; - - [ - object, - uuid(11166310-DF8A-463a-B620-7BEC23542010), - dual, - helpstring("ICARequest Interface"), - pointer_default(unique) - ] - interface ICARequest : IDispatch - { - [propget, id(1), helpstring("property RequestedItem")] HRESULT RequestedItem([out, retval] IUnknown **ppTunereq); - [propget, id(2), helpstring("property CAManager")] HRESULT CAManager([out, retval] ICAManager **ppManager); - [propget, id(3), helpstring("property ScheduleEntry")] HRESULT ScheduleEntry([out, retval] IUnknown **ppUnkScheduleEntry); // IScheduleEntry? - [propget, id(4), helpstring("property Denials")] HRESULT Denials([out, retval] ICADenials **ppDenials); - [propget, id(5), helpstring("property Components")] HRESULT Components([out, retval] ICAComponents **pComponents); - [propget, id(6), helpstring("property Check")] HRESULT Check([out, retval] long *pcDenials); - [propget, id(7), helpstring("property ResolveDenials")] HRESULT ResolveDenials([out, retval] long *pcDenials); - [propget, id(8), helpstring("property CountDeniedComponents")] HRESULT CountDeniedComponents([out, retval] long *pcDeniedComponents); - }; - - [ - object, - uuid(11166320-DF8A-463a-B620-7BEC23542010), - helpstring("ICAPolicy Interface"), // client written - pointer_default(unique) - ] - interface ICAPolicy : IUnknown // -- not IDispatch, let the client side implement that interface - { - [propget, id(0), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pbstr); - [ id(1), helpstring("method CheckRequest")] HRESULT CheckRequest([in] ICARequest *pReq); -// [propget, id(2), helpstring("property CAManager")] HRESULT CAManager([out, retval] ICAManager **ppManager); - [propput, id(2), helpstring("property CAManager")] HRESULT CAManager([in] ICAManager *pManager); - [propget, id(3), helpstring("property OkToPersist")] HRESULT OkToPersist([out, retval] BOOL *pfOkToPersist); - [propget, id(4), helpstring("property OkToRemove")] HRESULT OkToRemove([out, retval] BOOL *pfOkToRemove); - [propget, id(5), helpstring("property OkToRemoveDenial")] HRESULT OkToRemoveDenial(ICADenial *pDenial, [out, retval] BOOL *pfOk); - [propget, id(6), helpstring("property OkToRemoveOffer")] HRESULT OkToRemoveOffer(ICAOffer *pOffer, [out, retval] BOOL *pfOk); - } - - [ - object, - uuid(11166330-DF8A-463a-B620-7BEC23542010), - dual, - helpstring("ICAToll Interface"), // also client written - pointer_default(unique) - ] - interface ICAToll : IUnknown // -- also not IDispatch - client side implements that interface - { -// [propget, id(1), helpstring("property CAManager")] HRESULT CAManager([out, retval] ICAManager **ppManager); - [propput, id(1), helpstring("property CAManager")] HRESULT CAManager([in] ICAManager *pManager); - [ id(2), helpstring("method Select")] HRESULT Select([in] BOOL fSelect); - [ id(3), helpstring("method PayToll")] HRESULT PayToll(); - [propget, id(4), helpstring("property Refundable")] HRESULT Refundable([out, retval] BOOL *pfRefundable); - [ id(5), helpstring("method RefundToll")] HRESULT RefundToll(); - [propget, id(6), helpstring("property TolledObject")] HRESULT TolledObject([out, retval] IUnknown **ppUnkTolled); - [propget, id(7), helpstring("property Denials")] HRESULT Denials([out, retval] ICADenials **ppDenials); - [propget, id(8), helpstring("property Policy")] HRESULT Policy([out, retval] ICAPolicy **ppPolicy); - [propget, id(9), helpstring("property Description")] HRESULT Description([in] CADescFormat enFormat, [out, retval] BSTR *pbstr); - [propget, id(10),helpstring("property TimePaid")] HRESULT TimePaid([out, retval] DATE *pdtPaid); - [propget, id(11),helpstring("property State")] HRESULT State([out, retval] CATollState *penState); - }; - - [ - object, - uuid(11166340-DF8A-463a-B620-7BEC23542010), - dual, - helpstring("ICADenial Interface"), - pointer_default(unique) - ] - interface ICADenial : IDispatch - { - [propget, id(1), helpstring("property DeniedObject")] HRESULT DeniedObject([out, retval] IUnknown **ppUnkDenied); - [propget, id(2), helpstring("property Policy")] HRESULT Policy([out, retval] ICAPolicy **ppPolicy); - [propget, id(3), helpstring("property Description")] HRESULT Description([in] CADescFormat enFormat, [out, retval] BSTR *pbstr); - [propput, id(3), helpstring("property Description")] HRESULT Description([in] CADescFormat enFormat, [in] BSTR bstr); - [propget, id(4), helpstring("property State")] HRESULT State([out, retval] CADenialState *penState); - [propput, id(4), helpstring("property State")] HRESULT State([in] CADenialState enState); - [propget, id(5), helpstring("property Tolls")] HRESULT Tolls([out, retval] ICATolls **ppTolls); - [ id(6), helpstring("method NotifyTollStateChanged")] HRESULT NotifyTollStateChanged([in] ICAToll *pToll, [in] CATollState enStateFrom); - }; - - [ - object, - uuid(11166350-DF8A-463a-B620-7BEC23542010), - dual, - helpstring("ICAOffer Interface"), - pointer_default(unique) - ] - interface ICAOffer : IDispatch - { - [propget, id(1), helpstring("property CAManager")] HRESULT CAManager([out, retval] ICAManager **ppManager); - [propput, id(1), helpstring("property CAManager")] HRESULT CAManager([in] ICAManager *pManager); - [propget, id(2), helpstring("property Policy")] HRESULT Policy([out, retval] ICAPolicy **pppolicy); - [propget, id(3), helpstring("property Description")] HRESULT Description([in] CADescFormat enFormat, [out, retval] BSTR *pbstr); - [propput, id(3), helpstring("property Description")] HRESULT Description([in] CADescFormat enFormat, [in] BSTR bstr); - [propget, id(4), helpstring("property StartTime")] HRESULT StartTime([out, retval] DATE *pdtStart); - [propget, id(5), helpstring("property EndTime")] HRESULT EndTime([out, retval] DATE *pdtEnd); - [propget, id(6), helpstring("property Tolls")] HRESULT Tolls([out, retval] ICATolls **ppTolls); - [ id(7), helpstring("method NotifyTollStateChanged")] HRESULT NotifyTollStateChanged([in] ICAToll *pToll, [in] CATollState enStateFrom); - }; - - [ - object, - uuid(11166360-DF8A-463a-B620-7BEC23542010), - dual, - helpstring("ICAComponent Interface"), - pointer_default(unique) - ] - interface ICAComponent : IDispatch - { - [propget, id(1), helpstring("property Component")] HRESULT Component([out, retval] IComponent **ppComponent); - [propget, id(2), helpstring("property Denials")] HRESULT Denials([out, retval] ICADenials **ppDenials); - [propget, id(3), helpstring("property Request")] HRESULT Request([out, retval] ICARequest **ppComponent); - }; - - // -------------------------------- - - [ - uuid(11166100-DF8A-463a-B620-7BEC23542010), - helpstring("CAManager Class") - ] - coclass CAManager - { - [default] interface ICAManager; - interface ICAManagerInternal; -// interface ICAManagerXProxy; // this is the actual outgoing 'event' interface - [default, source] dispinterface _ICAManagerEvents; - }; - - [ // magic class used to avoid circular references through the CAManager. - hidden, - uuid(11166101-DF8A-463a-B620-7BEC23542010), - helpstring("CAManagerProxy Class") - ] - coclass CAManagerProxy - { - [default] interface ICAManager; - interface ICAManagerInternal; -// [default, source] dispinterface _ICAManagerEvents; /// QUESTION ??? DO I want these just here, or in the true Manager, or both? - }; - - [ - uuid(11166540-DF8A-463a-B620-7BEC23542010), // needed for user's tolls. - helpstring("CADenials Class") - ] - coclass CADenials - { - [default] interface ICADenials; - interface ICADenialsInternal; - [default, source] dispinterface _ICADenialsEvents; - }; - - // TODO - mark this as hidden... - [ - uuid(11166550-DF8A-463a-B620-7BEC23542010), - helpstring("CAOffer Class") - ] - coclass CAOffer - { - [default] interface ICAOffer; - }; - - -/* [ - uuid(11166999-DF8A-463a-B620-7BEC23542010), - helpstring("CATempEvent_TempBuilder Class - used so we can build events the first time") - ] - coclass CATempEvent_TempBuilder - { - [source] dispinterface _ICAResDenialTreeEvents; - [source] dispinterface _ICAManagerEvents; - [source] dispinterface _ICARequestEvents; - [source] dispinterface _ICATollsEvents; - [source] dispinterface _ICADenialsEvents; - [source] dispinterface _ICAPoliciesEvents; - [source] dispinterface _ICAOffersEvents; - [source] dispinterface _ICAComponentsEvents; - }; -*/ - // ----------------------------------- - [ - object, - uuid(11166898-DF8A-463a-B620-7BEC23542010), - dual, - helpstring("ICAResDenialTree Interface"), - pointer_default(unique) - ] - interface ICAResDenialTree : IDispatch - { - [propget, id(1), helpstring("property CAManager")] HRESULT CAManager([out, retval] ICAManager **ppCAManager); - [propput, id(1), helpstring("property CAManager")] HRESULT CAManager([in] ICAManager *pCAManager); - [propget, id(2), helpstring("property DisplayFields")] HRESULT DisplayFields([out, retval] long *penFields); // fields to display in default ResDenial UI - [propput, id(2), helpstring("property DisplayFields")] HRESULT DisplayFields([in] long enFields); // fields to display in default ResDenial UI - [ id(3), helpstring("method UpdateView")] HRESULT UpdateView([in] IUnknown *pUnk); // if object is being viewed, updates it. - // ResDenial control listens to these incoming sink events sent by Manager ((_ICAManagerEvents).. ID's Must match - [ id(2201),helpstring("method NotifyRequestActivated")] HRESULT NotifyRequestActivated([in] ICARequest *preq); - [ id(2202),helpstring("method NotifyRequestDeactivated")] HRESULT NotifyRequestDeactivated([in] ICARequest *preq); - [ id(2203),helpstring("method NotifyOfferAdded")] HRESULT NotifyOfferAdded([in] ICAOffer *pOffer,[in] long cOffers); - [ id(2204),helpstring("method NotifyOfferRemoved")] HRESULT NotifyOfferRemoved([in] ICAOffer *pOffer,[in] long cOffers); - [ id(2205),helpstring("method NotifyPolicyAdded")] HRESULT NotifyPolicyAdded([in] ICAPolicy *pPolicy,[in] long cPolicies); - [ id(2206),helpstring("method NotifyPolicyRemoved")] HRESULT NotifyPolicyRemoved([in] ICAPolicy *pPolicy,[in] long cPolicies); - [ id(2207),helpstring("method NotifyRequestDenialAdded")] HRESULT NotifyRequestDenialAdded([in] ICARequest *preq, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2208),helpstring("method NotifyRequestDenialRemoved")] HRESULT NotifyRequestDenialRemoved([in] ICARequest *preq, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2209),helpstring("method NotifyDenialTollAdded")] HRESULT NotifyDenialTollAdded([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls); - [ id(2210),helpstring("method NotifyDenialTollRemoved")] HRESULT NotifyDenialTollRemoved([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls); - [ id(2211),helpstring("method NotifyTollDenialAdded")] HRESULT NotifyTollDenialAdded([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2212),helpstring("method NotifyTollDenialRemoved")] HRESULT NotifyTollDenialRemoved([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2213),helpstring("method NotifyOfferTollAdded")] HRESULT NotifyOfferTollAdded([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls); - [ id(2214),helpstring("method NotifyOfferTollRemoved")] HRESULT NotifyOfferTollRemoved([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls); - [ id(2215),helpstring("method NotifyTollStateChanged")] HRESULT NotifyTollStateChanged([in] ICAToll *pToll, [in] CATollState enStateLast); - [ id(2216),helpstring("method NotifyDenialStateChanged")] HRESULT NotifyDenialStateChanged([in] ICADenial *pDenial, [in] CADenialState enStateLast); - [ id(2217),helpstring("method NotifyComponentDenialAdded")] HRESULT NotifyComponentDenialAdded([in] ICAComponent *preq, [in] ICADenial *pDenial,[in] long cDenials); - [ id(2218),helpstring("method NotifyComponentDenialRemoved")] HRESULT NotifyComponentDenialRemoved([in] ICAComponent *preq, [in] ICADenial *pDenial,[in] long cDenials); - }; - - [ - uuid(11166998-DF8A-463a-B620-7BEC23542010), - helpstring("CA Default RequestDenial Control") - ] - coclass CAResDenialTree - { - [default] interface ICAResDenialTree; - [default, source] dispinterface _ICAResDenialTreeEvents; - }; - - // ----------------------------- - - [ - uuid(11166991-DF8A-463a-B620-7BEC23542010), - helpstring("_ICADefaultDlgEvents Interface") - ] - dispinterface _ICADefaultDlgEvents - { - properties: - methods: - }; - - [ - uuid(11166990-DF8A-463a-B620-7BEC23542010), - helpstring("CADefaultDlg Class") - ] - coclass CADefaultDlg - { - [default] interface ICADefaultDlg; - [default, source] dispinterface _ICADefaultDlgEvents; - }; - - // ------------------------------------- - // Magic way to define the SID_ ... - - cpp_quote("#define SID_CAManager CLSID_CAManager") -}; diff --git a/sdk/dx8sdk/Include/DShowIDL/Mstvgs.idl b/sdk/dx8sdk/Include/DShowIDL/Mstvgs.idl deleted file mode 100644 index 7ce83f13..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/Mstvgs.idl +++ /dev/null @@ -1,837 +0,0 @@ -// GuideStore.idl : IDL source for GuideStore.dll -// - -// This file will be processed by the MIDL tool to -// produce the type library (GuideStore.tlb) and marshalling code. - -import "oaidl.idl"; -import "ocidl.idl"; - -interface IObjects; -interface IMetaProperties; -interface IMetaProperty; -interface IMetaPropertyCondition; -interface IMetaPropertySet; -interface IMetaPropertySets; -interface IMetaPropertyType; -interface IMetaPropertyTypes; - -interface IGuideStore; -interface IService; -interface IServices; -interface IProgram; -interface IPrograms; -interface IScheduleEntry; -interface IScheduleEntries; -interface IChannel; -interface IChannels; -interface IChannelLineup; -interface IChannelLineups; -interface IGuideDataProvider; -interface IGuideDataProviders; - -#define didAdd 10 -#define didAddAt 15 -#define didAddNew 20 -#define didAddNewAt 25 -#define didAnd 30 -#define didBeginTrans 35 -#define didChannelLineups 40 -#define didChannels 50 -#define didCommitTrans 55 -#define didCond 60 -#define didCopyrightDate 70 -#define didCount 80 -#define didDataEndTime 90 -#define didDefaultValue 100 -#define didDescription 110 -#define didEndTime 120 -#define didGuideDataProvider 135 -#define didGuideDataProviders 136 -#define didID 150 -#define didIdOf 155 -#define didIID 170 -#define didIsAnyDataAvailable 180 -#define didInit 190 -#if 0 -#define didItem DISPID_VALUE -#else -#define didItem 191 -#endif -#define didItemAdded 195 -#define didItemChanged 196 -#define didItemRemoved 197 -#define didItemsByKey 198 -#define didItemsChanged 199 -#define didItemsInTimeRange 200 -#define didItemsWithCond 210 -#define didItemWithKey 215 -#define didItemsWithMetaProp 220 -#define didItemsWithMetaPropType 230 -#define didItemsWithService 240 -#define didItemsWithType 400 -#define didItemWithID 250 -#define didItemWithIID 260 -#define didItemWithName 270 -#define didItemWithMetaPropTypeLang 280 -#define didItemWithTypeProviderLang 285 -#define didItemWithProviderName 290 -#define didItemWithServiceAtTime 300 -#define didLanguage 310 -#define didLength 320 -#define didLookup 325 -#define didMax 330 -#define didMin 340 -#define didName 350 -#define didNew 360 -#define didNewCollection 370 -#define didNot 380 -#define didObjects 390 -#define didObjectTypes 410 -#define didOpen 420 -#define didOr 430 -#define didProgram 440 -#define didPrograms 450 -#define didRollbackTrans 455 -#define didMetaProperties 460 -#define didMetaPropertiesOf 465 -#define didMetaPropertySet 470 -#define didMetaPropertySets 480 -#define didMetaPropertyType 490 -#define didMetaPropertyTypes 500 -#define didProviderDescription 510 -#define didProviderName 520 -#define didProviderNetworkName 530 -#define didResync 535 -#define didItemInvRelBy 540 -#define didItemsInvRelBy 545 -#define didItemsInvRelToBy 546 -#define didItemRelBy 550 -#define didItemsRelBy 555 -#define didItemsRelToBy 556 -#define didRemove 560 -#define didRemoveAll 565 -#define didSchedEntries 570 -#define didService 580 -#define didServices 590 -#define didStartTime 600 -#define didTitle 620 -#define didType 630 -#define didTuneRequest 640 -#define didUnreferencedItems 650 -#if 0 -#define didValue DISPID_VALUE -#else -#define didValue 660 -#endif - - -[ - uuid(8D9EEDCE-21E9-4845-82A8-99CEC53E6DB2), - version(1.0), - helpstring("Microsoft TV GuideStore 1.0 Type Library") -] -library MSTVGS -{ - importlib("stdole2.tlb"); - [ - object, - uuid(F71020D2-A467-4EB7-839A-63C8F40C7AB4), - dual, - helpstring("IMetaPropertySet Interface"), - pointer_default(unique) - ] - interface IMetaPropertySet : IDispatch - { - [propget, id(didName), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pVal); - [propget, id(didMetaPropertyTypes), helpstring("property MetaPropertyTypes")] HRESULT MetaPropertyTypes([out, retval] IMetaPropertyTypes* *pVal); - }; - [ - object, - uuid(E8FD768C-EC4E-4DAB-A09C-011E8ECAE4D2), - dual, - helpstring("IMetaPropertySets Interface"), - pointer_default(unique), - nonextensible - ] - interface IMetaPropertySets : IDispatch - { - [propget, id(didItem), helpstring("property Item")] HRESULT Item(VARIANT index, [out, retval] IMetaPropertySet* *ppropset); - [propget, id(didCount), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(didItemWithName), helpstring("property ItemWithName")] HRESULT ItemWithName(BSTR bstrName, [out, retval] IMetaPropertySet* *ppropset); - [propget, id(didAddNew), helpstring("property AddNew")] HRESULT AddNew(BSTR bstrName, [out, retval] IMetaPropertySet **pppropset); - [propget, id(didLookup), helpstring("property Lookup")] HRESULT Lookup([in] BSTR bstr, [out, retval] IMetaPropertyType * *ppproptype); - }; - [ - object, - uuid(86502400-213B-4ADF-A1E2-76365E7172BD), - dual, - helpstring("IMetaPropertyType Interface"), - pointer_default(unique) - ] - interface IMetaPropertyType : IDispatch - { - [propget, id(didMetaPropertySet), helpstring("property MetaPropertySet")] HRESULT MetaPropertySet([out, retval] IMetaPropertySet* *ppropset); - [propget, id(didID), helpstring("property ID")] HRESULT ID([out, retval] long *pVal); - [propget, id(didName), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pVal); - [propget, id(didNew), helpstring("property New")] HRESULT New(long lang, VARIANT val, [out, retval] IMetaProperty* *pprop); - [propget, id(didCond), helpstring("property Cond")] HRESULT Cond(BSTR bstrCond, long lang, VARIANT varValue, [out, retval] IMetaPropertyCondition* *ppropcond); - }; - [ - object, - uuid(9BF4984A-4CFE-4588-9FCF-828C74EF7104), - dual, - helpstring("IMetaPropertyTypes Interface"), - pointer_default(unique) - ] - interface IMetaPropertyTypes : IDispatch - { - [propget, id(didItem), helpstring("property Item")] HRESULT Item(VARIANT index, [out, retval] IMetaPropertyType* *pproptype); - [propget, id(didCount), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(didItemWithID), helpstring("property ItemWithID")] HRESULT ItemWithID(long id, [out, retval] IMetaPropertyType* *pproptype); - [propget, id(didItemWithName), helpstring("property ItemWithName")] HRESULT ItemWithName(BSTR bstrName, [out, retval] IMetaPropertyType* *pproptype); - [propget, id(didAddNew), helpstring("property AddNew")] HRESULT AddNew(long id, BSTR bstrName, [out, retval] IMetaPropertyType * *pVal); - [propget, id(didMetaPropertySet), helpstring("property MetaPropertySet")] HRESULT MetaPropertySet([out, retval] IMetaPropertySet * *pVal); - }; - [ - object, - uuid(A4BBD2C0-D7E4-4FC2-8FB0-176DDBCB3D72), - dual, - helpstring("IMetaProperty Interface"), - pointer_default(unique) - ] - interface IMetaProperty : IDispatch - { - [propget, id(didMetaPropertyType), helpstring("property MetaPropertyType")] HRESULT MetaPropertyType([out, retval] IMetaPropertyType* *pproptype); - [propget, id(didLanguage), helpstring("property Language")] HRESULT Language([out, retval] long *pVal); - [propget, id(didGuideDataProvider), helpstring("property GuideDataProvider")] HRESULT GuideDataProvider([out, retval] IGuideDataProvider **ppprovider); - [propget, id(didValue), helpstring("property Value")] HRESULT Value([out, retval] VARIANT *pvarValue); - [propput, id(didValue), helpstring("property Value")] HRESULT Value([in] VARIANT varValue); - [propputref, id(didValue), helpstring("property Value")] HRESULT Value([in] IUnknown *punk); - [propget, id(didCond), helpstring("property Cond")] HRESULT Cond(BSTR bstrCond, [out, retval] IMetaPropertyCondition* *ppropcond); - }; - [ - object, - uuid(E7F78F69-8326-48A0-8E54-BBDCEE43BA70), - dual, - helpstring("IMetaProperties Interface"), - pointer_default(unique) - ] - interface IMetaProperties : IDispatch - { - [propget, id(didItem), helpstring("property Item")] HRESULT Item(VARIANT index, [out, retval] IMetaProperty* *pprop); - [propget, id(didCount), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(didItemWithMetaPropTypeLang), helpstring("property ItemWith")] HRESULT ItemWith(IMetaPropertyType *ptype, long lang, [out, retval] IMetaProperty* *pprop); - [propget, id(didItemWithTypeProviderLang), helpstring("property ItemWithTypeProviderLang")] HRESULT ItemWithTypeProviderLang(IMetaPropertyType *ptype, IGuideDataProvider *pprovider, long lang, [out, retval] IMetaProperty* *pprop); - [propget, id(didItemsWithMetaPropType), helpstring("property ItemsWithMetaPropertyType")] HRESULT ItemsWithMetaPropertyType(IMetaPropertyType *ptype, [out, retval] IMetaProperties* *pprops); - [propget, id(didAddNew), helpstring("property AddNew")] HRESULT AddNew(IMetaPropertyType *pproptype, long lang, VARIANT varValue, [out, retval] IMetaProperty * *pVal); - [id(didAdd), helpstring("method Add")] HRESULT Add(IMetaProperty *pprop); - }; - [ - object, - uuid(98FAAEF5-397A-4372-93A3-FB3DA49B3EF1), - dual, - helpstring("IMetaPropertyCondition Interface"), - pointer_default(unique) - ] - interface IMetaPropertyCondition : IDispatch - { - [propget, id(didAnd), helpstring("property And")] HRESULT And(IMetaPropertyCondition *pcond2, [out, retval] IMetaPropertyCondition* *ppropcond); - [propget, id(didOr), helpstring("property Or")] HRESULT Or(IMetaPropertyCondition *pcond2, [out, retval] IMetaPropertyCondition* *ppropcond); - }; - [ - object, - uuid(E4A9F7DA-F38F-43D3-AB3B-7E9F9FB7A7C7), - dual, - helpstring("IGuideStore Interface"), - pointer_default(unique) - ] - interface IGuideStore : IDispatch - { - [propget, id(didIID), helpstring("property UUID")] HRESULT UUID([out, retval] BSTR *bstrUUID); - [propget, id(didServices), helpstring("property Services")] HRESULT Services([out, retval] IServices * *pVal); - [propget, id(didPrograms), helpstring("property Programs")] HRESULT Programs([out, retval] IPrograms * *pVal); - [propget, id(didSchedEntries), helpstring("property ScheduleEntries")] HRESULT ScheduleEntries([out, retval] IScheduleEntries * *pVal); - [propget, id(didGuideDataProviders), helpstring("property GuideDataProviders")] HRESULT GuideDataProviders([out, retval] IGuideDataProviders * *ppdataproviders); - [propget, id(didMetaPropertySets), helpstring("property MetaPropertySets")] HRESULT MetaPropertySets([out, retval] IMetaPropertySets **pppropsets); - [id(didOpen), helpstring("method Open")] HRESULT Open(BSTR bstrName); - [propget, id(didObjects), helpstring("property Objects")] HRESULT Objects([out, retval] IObjects * *ppobjs); - [propget, id(didChannels), helpstring("property Channels")] HRESULT Channels([out, retval] IChannels * *pVal); - [propget, id(didChannelLineups), helpstring("property ChannelLineups")] HRESULT ChannelLineups([out, retval] IChannelLineups * *pVal); - [propget, id(didGuideDataProvider), helpstring("property ActiveGuideDataProvider")] HRESULT ActiveGuideDataProvider([out, retval] IGuideDataProvider * *pVal); - [propputref, id(didGuideDataProvider), helpstring("property ActiveGuideDataProvider")] HRESULT ActiveGuideDataProvider([in] IGuideDataProvider * newVal); - - - [propget, id(didIdOf), helpstring("property IdOf")] HRESULT IdOf([in] IUnknown *punk, [out, retval] long *pVal); - [propget, id(didMetaPropertiesOf), helpstring("property MetaPropertiesOf")] HRESULT MetaPropertiesOf([in] IUnknown *punk, [out, retval] IMetaProperties **ppprops); - - [id(didBeginTrans), helpstring("method BeginTrans")] HRESULT BeginTrans(); - [id(didCommitTrans), helpstring("method CommitTrans")] HRESULT CommitTrans(); - [id(didRollbackTrans), helpstring("method RollbackTrans")] HRESULT RollbackTrans(); - }; - - [ - uuid(E7267FA2-7EC0-4577-BE37-0BBF11028A56), - helpstring("MetaPropertySet Class") - ] - coclass MetaPropertySet - { - [default] interface IMetaPropertySet; - }; - [ - uuid(027D8BB9-B860-4B96-B498-7EA609F33250), - helpstring("MetaPropertySets Class") - ] - coclass MetaPropertySets - { - [default] interface IMetaPropertySets; - }; - [ - uuid(A09139F3-47ED-4492-A45E-F7F11B121F4F), - helpstring("MetaPropertyType Class") - ] - coclass MetaPropertyType - { - [default] interface IMetaPropertyType; - }; - [ - uuid(5F24A17F-1DDE-4F37-8B29-489229175C73), - helpstring("MetaPropertyTypes Class") - ] - coclass MetaPropertyTypes - { - [default] interface IMetaPropertyTypes; - }; - [ - uuid(A42A1FF3-BC43-4714-8B94-06103474372B), - helpstring("MetaProperty Class") - ] - coclass MetaProperty - { - [default] interface IMetaProperty; - }; - [ - uuid(78B8FA05-01B2-4B0A-B6E0-59FC6C0E7A5E), - helpstring("MetaProperties Class") - ] - coclass MetaProperties - { - [default] interface IMetaProperties; - }; - [ - uuid(3B575572-EC9F-447D-9554-17C6E92E8328), - helpstring("MetaPropertyCondition Class") - ] - coclass MetaPropertyCondition - { - [default] interface IMetaPropertyCondition; - }; - [ - object, - uuid(59745450-F0F4-4B3F-B49E-55664E425CF6), - dual, - helpstring("IService Interface"), - pointer_default(unique) - ] - interface IService : IDispatch - { - [propget, id(didTuneRequest), helpstring("property TuneRequest")] HRESULT TuneRequest([out, retval] IUnknown * *ppunk); - [propputref, id(didTuneRequest), helpstring("property TuneRequest")] HRESULT TuneRequest([in] IUnknown *punk); - [propget, id(didID), helpstring("property ID")] HRESULT ID([out, retval] long *pVal); - [propget, id(didStartTime), helpstring("property StartTime")] HRESULT StartTime([out, retval] DATE *pdt); - [propput, id(didStartTime), helpstring("property StartTime")] HRESULT StartTime([in] DATE dt); - [propget, id(didEndTime), helpstring("property EndTime")] HRESULT EndTime([out, retval] DATE *pdt); - [propput, id(didEndTime), helpstring("property EndTime")] HRESULT EndTime([in] DATE dt); - [propget, id(didProviderName), helpstring("property ProviderName")] HRESULT ProviderName([out, retval] BSTR *pbstrName); - [propput, id(didProviderName), helpstring("property ProviderName")] HRESULT ProviderName([in] BSTR bstrName); - [propget, id(didProviderNetworkName), helpstring("property ProviderNetworkName")] HRESULT ProviderNetworkName([out, retval] BSTR *pbstrName); - [propput, id(didProviderNetworkName), helpstring("property ProviderNetworkName")] HRESULT ProviderNetworkName([in] BSTR bstrName); - [propget, id(didProviderDescription), helpstring("property ProviderDescription")] HRESULT ProviderDescription([out, retval] BSTR *pbstrDesc); - [propput, id(didProviderDescription), helpstring("property ProviderDescription")] HRESULT ProviderDescription([in] BSTR bstrDescr); - [propget, id(didMetaProperties), helpstring("property MetaProperties")] HRESULT MetaProperties([out, retval] IMetaProperties * *pVal); - [propget, id(didSchedEntries), helpstring("property ScheduleEntries")] HRESULT ScheduleEntries([out, retval] IScheduleEntries * *pVal); - }; - [ - object, - uuid(D3517044-B747-42C0-AFD5-31265ABA4977), - dual, - helpstring("IServices Interface"), - pointer_default(unique) - ] - interface IServices : IDispatch - { - [propget, id(didCount), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(didItem), helpstring("property Item")] HRESULT Item(VARIANT varIndex, [out, retval] IService * *pVal); - [propget, id(didChannelLineups), helpstring("property ChannelLineups")] HRESULT ChannelLineups([out, retval] IChannelLineups * *pVal); - [id(didRemove), helpstring("method Remove")] HRESULT Remove(VARIANT varIndex); - [propget, id(didItemWithID), helpstring("property ItemWithID")] HRESULT ItemWithID(long id, [out, retval] IService * *pVal); - [propget, id(didItemWithProviderName), helpstring("property ItemWithProviderName")] HRESULT ItemWithProviderName(BSTR bstrProviderName, [out, retval] IService * *pVal); - [propget, id(didItemsWithMetaProp), helpstring("property ItemsWithMetaProperty")] HRESULT ItemsWithMetaProperty(IMetaProperty *pprop, [out, retval] IServices * *ppservices); - [propget, id(didItemsWithCond), helpstring("property ItemsWithMetaPropertyCond")] HRESULT ItemsWithMetaPropertyCond(IMetaPropertyCondition *pcond, [out, retval] IServices * *ppservices); - [propget, id(didAddNew), helpstring("property AddNew")] HRESULT AddNew(IUnknown *punkTuneRequest, BSTR bstrProviderName, BSTR bstrProviderDescription, BSTR bstrProviderNetworkName, DATE dtStart, DATE dtEnd, [out, retval] IService * *pVal); - [propget, id(didItemsInTimeRange), helpstring("property ItemsInTimeRange")] HRESULT ItemsInTimeRange(DATE dtStart, DATE dtEnd, [out, retval] IServices * *pVal); - [id(didRemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - [id(didUnreferencedItems), helpstring("method UnreferencedItems")] HRESULT UnreferencedItems([out, retval] IServices **ppservices); - - [propget, id(didItemsByKey), helpstring("property ItemsByKey")] HRESULT ItemsByKey([in] IMetaPropertyType *pproptype, [in] IGuideDataProvider *pprovider, [in] long idLang, [in] long vt, [out, retval] IServices * *ppservices); - [propget, id(didItemWithKey), helpstring("property ItemWithKey")] HRESULT ItemWithKey(VARIANT varIndex, [out, retval] IService * *ppservice); - [id(didResync), helpstring("method Resync")] HRESULT Resync(); - }; - - [ - uuid(C4001F96-2DEE-4C33-B807-F829889A8CCD), - helpstring("GuideStore Class") - ] - coclass GuideStore - { - [default] interface IGuideStore; - }; - [ - uuid(957D8D57-32B1-4BE3-8E37-EC8849F16815), - helpstring("Service Class") - ] - coclass Service - { - [default] interface IService; - }; - [ - uuid(CCFB9EC5-E28E-4DE1-BD07-1C79303DE0A0), - helpstring("IServicesEvents Interface") - ] - dispinterface IServicesEvents - { - properties: - methods: - [id(didItemAdded), helpstring("method ItemAdded")] HRESULT ItemAdded(IService *pservice); - [id(didItemRemoved), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] long idObj); - [id(didItemChanged), helpstring("method ItemChanged")] HRESULT ItemChanged(IService *pservice); - [id(didItemsChanged), helpstring("method ItemsChanged")] HRESULT ItemsChanged(); - }; - [ - object, - uuid(FC91783E-5703-4319-A5B1-19555059559C), - dual, - helpstring("IProgram Interface"), - pointer_default(unique) - ] - interface IProgram : IDispatch - { - [propget, id(didID), helpstring("property ID")] HRESULT ID([out, retval] long *pVal); - [propget, id(didMetaProperties), helpstring("property MetaProperties")] HRESULT MetaProperties([out, retval] IMetaProperties * *pVal); - [propget, id(didSchedEntries), helpstring("property ScheduleEntries")] HRESULT ScheduleEntries([out, retval] IScheduleEntries * *pVal); - [propget, id(didTitle), helpstring("property Title")] HRESULT Title([out, retval] BSTR *pVal); - [propput, id(didTitle), helpstring("property Title")] HRESULT Title([in] BSTR newVal); - [propget, id(didDescription), helpstring("property Description")] HRESULT Description([out, retval] BSTR *pVal); - [propput, id(didDescription), helpstring("property Description")] HRESULT Description([in] BSTR newVal); - [propget, id(didCopyrightDate), helpstring("property CopyrightDate")] HRESULT CopyrightDate([out, retval] DATE *pVal); - [propput, id(didCopyrightDate), helpstring("property CopyrightDate")] HRESULT CopyrightDate([in] DATE newVal); - }; - [ - object, - uuid(8786250A-8EF8-4A51-B80A-643CCF835DB6), - dual, - helpstring("IPrograms Interface"), - pointer_default(unique) - ] - interface IPrograms : IDispatch - { - [propget, id(didCount), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(didItem), helpstring("property Item")] HRESULT Item(VARIANT varIndex, [out, retval] IProgram * *pVal); - [propget, id(didItemWithID), helpstring("property ItemWithID")] HRESULT ItemWithID(long id, [out, retval] IProgram * *pVal); - [propget, id(didItemsWithMetaProp), helpstring("property ItemsWithMetaProperty")] HRESULT ItemsWithMetaProperty(IMetaProperty *pprop, [out, retval] IPrograms * *pVal); - [propget, id(didItemsWithCond), helpstring("property ItemsWithMetaPropertyCond")] HRESULT ItemsWithMetaPropertyCond(IMetaPropertyCondition *pcond, [out, retval] IPrograms * *pVal); - [propget, id(didAddNew), helpstring("property AddNew")] HRESULT AddNew([out, retval] IProgram * *ppprog); - [id(didUnreferencedItems), helpstring("method UnreferencedItems")] HRESULT UnreferencedItems([out, retval] IPrograms **ppprogs); - [id(didRemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - [id(didRemove), helpstring("method Remove")] HRESULT Remove(VARIANT varIndex); - - [propget, id(didItemsByKey), helpstring("property ItemsByKey")] HRESULT ItemsByKey([in] IMetaPropertyType *pproptype, [in] IGuideDataProvider *pprovider, [in] long idLang, [in] long vt, [out, retval] IPrograms * *ppprogs); - [propget, id(didItemWithKey), helpstring("property ItemWithKey")] HRESULT ItemWithKey(VARIANT varIndex, [out, retval] IProgram * *ppprog); - [id(didResync), helpstring("method Resync")] HRESULT Resync(); - }; - - [ - uuid(43F457D2-C955-48E2-91AD-B91C9154C613), - helpstring("Services Class") - ] - coclass Services - { - [default] interface IServices; - [default, source] dispinterface IServicesEvents; - }; - [ - uuid(C51F670A-7D1A-494E-931D-886BFDB2B438), - helpstring("Program Class") - ] - coclass Program - { - [default] interface IProgram; - }; - [ - uuid(9AB9E463-1EC4-4D6B-AC80-5238561918EE), - helpstring("IProgramsEvents Interface") - ] - dispinterface IProgramsEvents - { - properties: - methods: - [id(didItemAdded), helpstring("method ItemAdded")] HRESULT ItemAdded(IProgram *pprog); - [id(didItemRemoved), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] long idObj); - [id(didItemChanged), helpstring("method ItemChanged")] HRESULT ItemChanged(IProgram *pprog); - [id(didItemsChanged), helpstring("method ItemsChanged")] HRESULT ItemsChanged(); - }; - [ - object, - uuid(6C46F789-2156-4AF0-97D7-38D99E2C9160), - dual, - helpstring("IScheduleEntry Interface"), - pointer_default(unique) - ] - interface IScheduleEntry : IDispatch - { - [propget, id(didID), helpstring("property ID")] HRESULT ID([out, retval] long *pVal); - [propget, id(didService), helpstring("property Service")] HRESULT Service([out, retval] IService * *ppservice); - [propputref, id(didService), helpstring("property Service")] HRESULT Service([in] IService * pservice); - [propget, id(didProgram), helpstring("property Program")] HRESULT Program([out, retval] IProgram * *ppprog); - [propputref, id(didProgram), helpstring("property Program")] HRESULT Program([in] IProgram * pprog); - [propget, id(didMetaProperties), helpstring("property MetaProperties")] HRESULT MetaProperties([out, retval] IMetaProperties * *pVal); - [propget, id(didStartTime), helpstring("property StartTime")] HRESULT StartTime([out, retval] DATE *pdt); - [propput, id(didStartTime), helpstring("property StartTime")] HRESULT StartTime([in] DATE dt); - [propget, id(didEndTime), helpstring("property EndTime")] HRESULT EndTime([out, retval] DATE *pdt); - [propput, id(didEndTime), helpstring("property EndTime")] HRESULT EndTime([in] DATE dt); - [propget, id(didLength), helpstring("property Length")] HRESULT Length([out, retval] long *pVal); - }; - [ - object, - uuid(E5FDD9C4-8E60-4BEB-BBC8-93BE39C75BAA), - dual, - helpstring("IScheduleEntries Interface"), - pointer_default(unique) - ] - interface IScheduleEntries : IDispatch - { - [propget, id(didCount), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(didItem), helpstring("property Item")] HRESULT Item(VARIANT varIndex, [out, retval] IScheduleEntry * *pVal); - [propget, id(didItemWithServiceAtTime), helpstring("property ItemWithServiceAtTime")] HRESULT ItemWithServiceAtTime(IService *pservice, DATE dt, [out, retval] IScheduleEntry * *pVal); - [propget, id(didItemsWithService), helpstring("property ItemsWithService")] HRESULT ItemsWithService(IService *pservice, [out, retval] IScheduleEntries **ppschedentries); - [propget, id(didItemsWithMetaProp), helpstring("property ItemsWithMetaProperty")] HRESULT ItemsWithMetaProperty(IMetaProperty *pprop, [out, retval] IScheduleEntries * *pVal); - [propget, id(didItemsWithCond), helpstring("property ItemsWithMetaPropertyCond")] HRESULT ItemsWithMetaPropertyCond(IMetaPropertyCondition *pcond, [out, retval] IScheduleEntries * *pVal); - [propget, id(didAddNew), helpstring("property AddNew")] HRESULT AddNew(DATE dtStart, DATE dtEnd, IService *pservice, IProgram *pprog, [out, retval] IScheduleEntry * *pVal); - [id(didRemove), helpstring("method Remove")] HRESULT Remove(VARIANT varIndex); - [id(didRemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - [propget, id(didItemsInTimeRange), helpstring("property ItemsInTimeRange")] HRESULT ItemsInTimeRange(DATE dtStart, DATE dtEnd, [out, retval] IScheduleEntries * *pVal); - - [propget, id(didItemsByKey), helpstring("property ItemsByKey")] HRESULT ItemsByKey([in] IMetaPropertyType *pproptype, [in] IGuideDataProvider *pprovider, [in] long idLang, [in] long vt, [out, retval] IScheduleEntries * *ppschedentries); - [propget, id(didItemWithKey), helpstring("property ItemWithKey")] HRESULT ItemWithKey(VARIANT varIndex, [out, retval] IScheduleEntry * *ppschedentry); - [id(didResync), helpstring("method Resync")] HRESULT Resync(); - }; - - [ - uuid(16C9C579-B3F4-4C94-88EC-A65EA0B839E7), - helpstring("Programs Class") - ] - coclass Programs - { - [default] interface IPrograms; - [default, source] dispinterface IProgramsEvents; - }; - [ - uuid(AFEBCA90-0FF9-48BD-BC98-95477A631BBB), - helpstring("ScheduleEntry Class") - ] - coclass ScheduleEntry - { - [default] interface IScheduleEntry; - }; - [ - uuid(32692A48-F4B5-4826-BE88-E7F8ED9E65DC), - helpstring("IScheduleEntriesEvents Interface") - ] - dispinterface IScheduleEntriesEvents - { - properties: - methods: - [id(didItemAdded), helpstring("method ItemAdded")] HRESULT ItemAdded(IScheduleEntry *pschedentry); - [id(didItemRemoved), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] long idObj); - [id(didItemChanged), helpstring("method ItemChanged")] HRESULT ItemChanged(IScheduleEntry *pschedentry); - [id(didItemsChanged), helpstring("method ItemsChanged")] HRESULT ItemsChanged(); - }; - [ - object, - uuid(ED7DF8CD-4861-4389-8149-8EDE63A51F38), - dual, - helpstring("IChannel Interface"), - pointer_default(unique) - ] - interface IChannel : IDispatch - { - [propget, id(didName), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pVal); - [propput, id(didName), helpstring("property Name")] HRESULT Name([in] BSTR newVal); - [propget, id(didService), helpstring("property Service")] HRESULT Service([out, retval] IService * *ppservice); - [propputref, id(didService), helpstring("property Service")] HRESULT Service([in] IService *pservice); - [propget, id(didMetaProperties), helpstring("property MetaProperties")] HRESULT MetaProperties([out, retval] IMetaProperties * *pVal); - [propget, id(didChannelLineups), helpstring("property ChannelLineups")] HRESULT ChannelLineups([out, retval] IChannelLineups * *pVal); - }; - - [ - uuid(226D6AD0-7026-494F-BCAD-FAB087E67290), - helpstring("ScheduleEntries Class") - ] - coclass ScheduleEntries - { - [default] interface IScheduleEntries; - [default, source] dispinterface IScheduleEntriesEvents; - }; - [ - object, - uuid(3BAE53BD-70F0-4C7B-8C9E-E0317FFF8D79), - dual, - helpstring("IChannels Interface"), - pointer_default(unique) - ] - interface IChannels : IDispatch - { - [propget, id(didCount), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(didItem), helpstring("property Item")] HRESULT Item(VARIANT varIndex, [out, retval] IChannel * *pVal); - [id(didAddAt), helpstring("method AddAt")] HRESULT AddAt(IChannel *pchan, long index); - [id(didRemove), helpstring("method Remove")] HRESULT Remove(VARIANT index); - [propget, id(didAddNewAt), helpstring("property AddNewAt")] HRESULT AddNewAt(IService *pservice, BSTR bstrName, long index, [out, retval] IChannel * *pVal); - [propget, id(didItemWithName), helpstring("property ItemWithName")] HRESULT ItemWithName(BSTR bstrName, [out, retval] IChannel **ppchan); - [propget, id(didItemsWithCond), helpstring("property ItemsWithMetaPropertyCond")] HRESULT ItemsWithMetaPropertyCond(IMetaPropertyCondition *pcond, [out, retval] IChannels * *ppchannels); - [id(didRemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - [id(didUnreferencedItems), helpstring("method UnreferencedItems")] HRESULT UnreferencedItems([out, retval] IChannels **ppchans); - - [propget, id(didItemsByKey), helpstring("property ItemsByKey")] HRESULT ItemsByKey([in] IMetaPropertyType *pproptype, [in] IGuideDataProvider *pprovider, [in] long idLang, [in] long vt, [out, retval] IChannels * *ppchans); - [propget, id(didItemWithKey), helpstring("property ItemWithKey")] HRESULT ItemWithKey(VARIANT varIndex, [out, retval] IChannel * *ppchan); - [id(didResync), helpstring("method Resync")] HRESULT Resync(); - }; - - [ - uuid(83568B75-1FCC-4853-957A-9CF617B350A3), - helpstring("Channel Class") - ] - coclass Channel - { - [default] interface IChannel; - }; - [ - uuid(6E945C62-0AB7-4D89-BB9E-212502FC7C88), - helpstring("IChannelsEvents Interface") - ] - dispinterface IChannelsEvents - { - properties: - methods: - [id(didItemAdded), helpstring("method ItemAdded")] HRESULT ItemAdded(IChannel *pchan); - [id(didItemRemoved), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] long idObj); - [id(didItemChanged), helpstring("method ItemChanged")] HRESULT ItemChanged(IChannel *pchan); - [id(didItemsChanged), helpstring("method ItemsChanged")] HRESULT ItemsChanged(); - }; - [ - object, - uuid(AB3FF8DB-C718-4ABD-98DE-E14DC74F4872), - dual, - helpstring("IChannelLineup Interface"), - pointer_default(unique) - ] - interface IChannelLineup : IDispatch - { - [propget, id(didName), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pVal); - [propput, id(didName), helpstring("property Name")] HRESULT Name([in] BSTR newVal); - [propget, id(didChannels), helpstring("property Channels")] HRESULT Channels([out, retval] IChannels * *pVal); - [propget, id(didMetaProperties), helpstring("property MetaProperties")] HRESULT MetaProperties([out, retval] IMetaProperties * *pVal); - }; - - [ - uuid(73AF9077-4F6D-4FCB-A9E2-FDFBB9AE5310), - helpstring("Channels Class") - ] - coclass Channels - { - [default] interface IChannels; - [default, source] dispinterface IChannelsEvents; - }; - [ - object, - uuid(2F78C3E1-98FE-4526-A0A7-A621025AEFF6), - dual, - helpstring("IChannelLineups Interface"), - pointer_default(unique) - ] - interface IChannelLineups : IDispatch - { - [propget, id(didCount), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(didItem), helpstring("property Item")] HRESULT Item(VARIANT varIndex, [out, retval] IChannelLineup **ppchanlineup); - [propget, id(didAddNew), helpstring("property AddNew")] HRESULT AddNew(BSTR bstrName, [out, retval] IChannelLineup * *pVal); - [id(didRemove), helpstring("method Remove")] HRESULT Remove(VARIANT varIndex); - [id(didRemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - [id(didUnreferencedItems), helpstring("method UnreferencedItems")] HRESULT UnreferencedItems([out, retval] IChannelLineups **ppchanlineups); - - [propget, id(didItemsByKey), helpstring("property ItemsByKey")] HRESULT ItemsByKey([in] IMetaPropertyType *pproptype, [in] IGuideDataProvider *pprovider, [in] long idLang, [in] long vt, [out, retval] IChannelLineups * *ppchanlineups); - [propget, id(didItemWithKey), helpstring("property ItemWithKey")] HRESULT ItemWithKey(VARIANT varIndex, [out, retval] IChannelLineup * *ppchanlineup); - [id(didResync), helpstring("method Resync")] HRESULT Resync(); - }; - - [ - uuid(8F86A876-E12A-4159-9647-EAFE0288014F), - helpstring("ChannelLineup Class") - ] - coclass ChannelLineup - { - [default] interface IChannelLineup; - }; - [ - uuid(1E3971E3-CCDC-445D-AE97-A15D5D4A40C9), - helpstring("IChannelLineupsEvents Interface") - ] - dispinterface IChannelLineupsEvents - { - properties: - methods: - [id(didItemAdded), helpstring("method ItemAdded")] HRESULT ItemAdded(IChannelLineup *pchanlineup); - [id(didItemRemoved), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] long idObj); - [id(didItemChanged), helpstring("method ItemChanged")] HRESULT ItemChanged(IChannelLineup *pchanlineup); - [id(didItemsChanged), helpstring("method ItemsChanged")] HRESULT ItemsChanged(); - }; - [ - object, - uuid(A476A330-1123-4065-B3B7-D1EA899151BD), - helpstring("IObject Interface"), - pointer_default(unique) - ] - interface IObject : IUnknown - { - [propget, id(didID), helpstring("property ID")] HRESULT ID([out, retval] long *pVal); - [propget, id(didMetaProperties), helpstring("property MetaProperties")] HRESULT MetaProperties([out, retval] IMetaProperties * *pVal); - [propget, id(didItemRelBy), helpstring("property ItemRelatedBy")] HRESULT ItemRelatedBy([in] IMetaPropertyType *pproptype, [out, retval] IUnknown **ppobj); - [propputref, id(didItemRelBy), helpstring("property ItemRelatedBy")] HRESULT ItemRelatedBy([in] IMetaPropertyType *pproptype, [in] IUnknown *pobj); - [propget, id(didMetaPropertyType), helpstring("property MetaPropertyType")] HRESULT MetaPropertyType([in] BSTR bstr, [out, retval] IMetaPropertyType* *pproptype); - [propget, id(didItemsWithType), helpstring("property ObjectsWithType")] HRESULT ObjectsWithType([in] BSTR bstrCLSID, [out, retval] IObjects **ppobjs); - }; - [ - object, - uuid(E8F1FBD5-4E44-4C26-B3D2-2C1C6999D611), - helpstring("IObjects Interface"), - pointer_default(unique) - ] - interface IObjects : IUnknown - { - [propget, id(didCount), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(didItem), helpstring("property Item")] HRESULT Item(VARIANT varIndex, [out, retval] IUnknown * *ppunk); - [propget, id(didItemsWithType), helpstring("property ItemsWithType")] HRESULT ItemsWithType(BSTR bstrCLSID, [out, retval] IObjects * *pVal); - [propget, id(didItemWithIID), helpstring("property ItemWithID")] HRESULT ItemWithID(long id, [out, retval] IUnknown * *ppunk); - [propget, id(didItemsWithMetaProp), helpstring("property ItemsWithMetaProperty")] HRESULT ItemsWithMetaProperty(IMetaProperty *pprop, [out, retval] IObjects * *pVal); - [propget, id(didItemsWithCond), helpstring("property ItemsWithMetaPropertyCond")] HRESULT ItemsWithMetaPropertyCond(IMetaPropertyCondition *ppropcond, [out, retval] IObjects * *pVal); - [id(didAddAt), helpstring("method AddAt")] HRESULT AddAt(IUnknown *punk, long index); - [propget, id(didAddNew), helpstring("property AddNew")] HRESULT AddNew([out, retval] IUnknown * *ppunk); - [id(didRemove), helpstring("method Remove")] HRESULT Remove(VARIANT varIndex); - [id(didRemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - [propget, id(didAddNewAt), helpstring("property AddNewAt")] HRESULT AddNewAt([in] long index, [out, retval] IUnknown * *ppunk); - [propget, id(didItemsInTimeRange), helpstring("property ItemsInTimeRange")] HRESULT ItemsInTimeRange(DATE dtStart, DATE dtEnd, [out, retval] IObjects * *pVal); - [propget, id(didItemsRelToBy), helpstring("property ItemsRelatedToBy")] HRESULT ItemsRelatedToBy([in] IUnknown *pobj, [in] IMetaPropertyType *pproptype, [out, retval] IObjects * *ppobjs); - [propget, id(didItemsInvRelToBy), helpstring("property ItemsInverseRelatedToBy")] HRESULT ItemsInverseRelatedToBy([in] IUnknown *pobj, [in] IMetaPropertyType *pproptype, [out, retval] IObjects * *ppobjs); - [id(didUnreferencedItems), helpstring("method UnreferencedItems")] HRESULT UnreferencedItems([out, retval] IObjects **ppobjs); - - [propget, id(didItemsByKey), helpstring("property ItemsByKey")] HRESULT ItemsByKey([in] IMetaPropertyType *pproptype, [in] IGuideDataProvider *pprovider, [in] long idLang, [in] long vt, [out, retval] IObjects * *pVal); - [propget, id(didItemWithKey), helpstring("property ItemWithKey")] HRESULT ItemWithKey(VARIANT varIndex, [out, retval] IUnknown * *ppunk); - [id(didResync), helpstring("method Resync")] HRESULT Resync(); - }; - - [ - uuid(8520EF80-1C19-4CB0-83FA-67DB59CC9AE4), - helpstring("ChannelLineups Class") - ] - coclass ChannelLineups - { - [default] interface IChannelLineups; - [default, source] dispinterface IChannelLineupsEvents; - }; - [ - uuid(83375A19-A098-42CF-9206-EE36FE48C637), - helpstring("IObjectsNotifications Interface") - ] - interface IObjectsNotifications : IUnknown - { - [id(didItemAdded), helpstring("method Notify_ItemAdded")] HRESULT Notify_ItemAdded(IUnknown *punk); - [id(didItemRemoved), helpstring("method Notify_ItemRemoved")] HRESULT Notify_ItemRemoved([in] long idObj); - [id(didItemChanged), helpstring("method Notify_ItemChanged")] HRESULT Notify_ItemChanged(IUnknown *punk); - [id(didItemsChanged), helpstring("method Notify_ItemsChanged")] HRESULT Notify_ItemsChanged(); - }; - - [ - uuid(B485447D-B180-420F-B2A5-E7BBCEA07EAD), - aggregatable, - helpstring("Objects Class") - ] - coclass Objects - { - [default] interface IObjects; - }; - [ - object, - uuid(4B16049B-E548-4868-B303-D501340E2CB1), - dual, - helpstring("IGuideDataProvider Interface"), - pointer_default(unique) - ] - interface IGuideDataProvider : IDispatch - { - [propget, id(didID), helpstring("property ID")] HRESULT ID([out, retval] long *pVal); - [propget, id(didName), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pbstrName); - [propget, id(didDescription), helpstring("property Description")] HRESULT Description([out, retval] BSTR *pbstrDesc); - [propput, id(didDescription), helpstring("property Description")] HRESULT Description([in] BSTR bstrDesc); - [propget, id(didMetaProperties), helpstring("property MetaProperties")] HRESULT MetaProperties([out, retval] IMetaProperties * *pVal); - }; - [ - object, - uuid(CA9DE996-637C-47BF-BC10-CF956BE298EC), - dual, - helpstring("IGuideDataProviders Interface"), - pointer_default(unique) - ] - interface IGuideDataProviders : IDispatch - { - [propget, id(didCount), helpstring("property Count")] HRESULT Count([out, retval] long *plCount); - [propget, id(didItem), helpstring("property Item")] HRESULT Item(VARIANT varIndex, [out, retval] IGuideDataProvider * *ppdataprovider); - [propget, id(didItemWithID), helpstring("property ItemWithID")] HRESULT ItemWithID(long id, [out, retval] IGuideDataProvider * *ppdataprovider); - [propget, id(didItemWithName), helpstring("property ItemWithName")] HRESULT ItemWithName(BSTR bstrName, [out, retval] IGuideDataProvider **ppdataprovider); - [propget, id(didItemsWithMetaProp), helpstring("property ItemsWithMetaProperty")] HRESULT ItemsWithMetaProperty(IMetaProperty *pprop, [out, retval] IGuideDataProviders * *ppdataproviders); - [propget, id(didItemsWithCond), helpstring("property ItemsWithMetaPropertyCond")] HRESULT ItemsWithMetaPropertyCond(IMetaPropertyCondition *pcond, [out, retval] IGuideDataProviders * *ppdataproviders); - [propget, id(didAddNew), helpstring("property AddNew")] HRESULT AddNew([in] BSTR bstrName, [out, retval] IGuideDataProvider * *ppdataprovider); - - [propget, id(didItemsByKey), helpstring("property ItemsByKey")] HRESULT ItemsByKey([in] IMetaPropertyType *pproptype, [in] IGuideDataProvider *pprovider, [in] long idLang, [in] long vt, [out, retval] IGuideDataProviders * *ppproviders); - [propget, id(didItemWithKey), helpstring("property ItemWithKey")] HRESULT ItemWithKey(VARIANT varIndex, [out, retval] IGuideDataProvider * *ppprovider); - [id(didResync), helpstring("method Resync")] HRESULT Resync(); - }; - [ - uuid(3CFC7A68-76E9-4F1D-8ECE-08C44F4FFC3E), - helpstring("GuideDataProvider Class") - ] - coclass GuideDataProvider - { - [default] interface IGuideDataProvider; - }; - [ - uuid(850A646E-140B-43B0-A243-20CC6B9FA8BC), - helpstring("IGuideDataProvidersEvents Interface") - ] - dispinterface IGuideDataProvidersEvents - { - properties: - methods: - [id(didItemAdded), helpstring("method ItemAdded")] HRESULT ItemAdded(IChannelLineup *pchanlineup); - [id(didItemRemoved), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] long idObj); - [id(didItemChanged), helpstring("method ItemChanged")] HRESULT ItemChanged(IChannelLineup *pchanlineup); - [id(didItemsChanged), helpstring("method ItemsChanged")] HRESULT ItemsChanged(); - }; - - [ - uuid(6E30077E-2E0B-4D4A-92B0-CDB5E5116E3B), - helpstring("GuideDataProviders Class") - ] - coclass GuideDataProviders - { - [default] interface IGuideDataProviders; - [default, source] dispinterface IGuideDataProvidersEvents; - }; -}; diff --git a/sdk/dx8sdk/Include/DShowIDL/Msvidctl.idl b/sdk/dx8sdk/Include/DShowIDL/Msvidctl.idl deleted file mode 100644 index d1a4d94e..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/Msvidctl.idl +++ /dev/null @@ -1,715 +0,0 @@ -// MSVidCtl.idl : IDL source for MSVidCtl.dll -// - -// This file will be processed by the MIDL tool to -// produce the type library (MSVidCtl.tlb) and marshalling code. - - -// Copyright (c) Microsoft Corporation 1998-2000 -// - -cpp_quote("//+-------------------------------------------------------------------------") -cpp_quote("//") -cpp_quote("// Microsoft Windows") -cpp_quote("// Copyright (C) Microsoft Corporation, 1999-2000.") -cpp_quote("//") -cpp_quote("//--------------------------------------------------------------------------") -cpp_quote("#pragma once") - -#include -#ifndef DO_NO_IMPORTS -#ifndef TUNING_MODEL_ONLY -import "mshtml.idl"; -import "segment.idl"; -#endif -#endif - -#ifndef TUNING_MODEL_ONLY -typedef enum { -dispidInputs, -dispidOutputs, -dispid_Inputs, -dispid_Outputs, -dispidVideoRenderers, -dispidAudioRenderers, -dispidFeatures, -dispidInput, -dispidOutput, -dispidVideoRenderer, -dispidAudioRenderer, -dispidSelectedFeatures, -dispidView, // total graph control -dispidBuild, -dispidPause, -dispidRun, -dispidStop, -dispidDecompose, -dispidDisplaySize, -dispidMaintainAspectRatio, -dispidColorKey, -dispidStateChange, -dispidgetState, -dispidunbind, -dispidbind, -dispidDisableVideo, -dispidDisableAudio, -dispidViewNext, -dispidServiceP -} MSViddispidList; - -typedef enum { - dslDefaultSize, - dslSourceSize = 0, // synonym - dslHalfSourceSize, - dslDoubleSourceSize, - dslFullScreen, - dslHalfScreen, - dslQuarterScreen, - dslSixteenthScreen -} DisplaySizeList; - -typedef enum { - STATE_UNBUILT =-1, - STATE_STOP, - STATE_PAUSE, - STATE_PLAY, - -} MSVidCtlStateList; - -//***************************************************************************** -/////////////////////////////////////////////////////////////////////////////// -// -// the full Viewer control -// -/////////////////////////////////////////////////////////////////////////////// -//***************************************************************************** - - /////////////////////////////////////////////////////////////////////////////////////// - [ - object, - uuid(B0EDF162-910A-11D2-B632-00C04F79498E), - dual, - hidden, - nonextensible, - helpstring("MS Video Control Interface"), - pointer_default(unique) - ] - interface IMSVidCtl : IDispatch - { - // stock props - [propget, id(DISPID_AUTOSIZE)] - HRESULT AutoSize([out,retval]VARIANT_BOOL* pbool); - [propput, id(DISPID_AUTOSIZE)] - HRESULT AutoSize([in]VARIANT_BOOL vbool); - [propget, id(DISPID_BACKCOLOR)] - HRESULT BackColor([out,retval]OLE_COLOR* backcolor); - [propput, id(DISPID_BACKCOLOR)] - HRESULT BackColor([in]OLE_COLOR backcolor); - [propget, id(DISPID_ENABLED)] - HRESULT Enabled([out,retval]VARIANT_BOOL* pbool); - [propput, id(DISPID_ENABLED)] - HRESULT Enabled([in]VARIANT_BOOL vbool); - [propget, id(DISPID_TABSTOP)] - HRESULT TabStop([out, retval]VARIANT_BOOL* pbool); - [propput, id(DISPID_TABSTOP)] - HRESULT TabStop([in]VARIANT_BOOL vbool); - [propget, id(DISPID_HWND)] - HRESULT Window([out, retval]HWND* phwnd); - [id(DISPID_REFRESH)] - HRESULT Refresh(); - // pseudo video renderer properties/methods that require access to ole container - [propget, id(dispidDisplaySize)] - HRESULT DisplaySize([out,retval]DisplaySizeList *CurrentValue); - [propput, id(dispidDisplaySize)] - HRESULT DisplaySize([in]DisplaySizeList NewValue); - [propget, id(dispidMaintainAspectRatio)] - HRESULT MaintainAspectRatio([out,retval]VARIANT_BOOL *CurrentValue); - [propput, id(dispidMaintainAspectRatio)] - HRESULT MaintainAspectRatio([in]VARIANT_BOOL NewValue); - - // non-stock visual propertiies that require coordination/implementation with - // core ctl drawing/painting function - [propget, id(dispidColorKey)] - HRESULT ColorKey([out,retval]OLE_COLOR *CurrentValue); - [propput, id(dispidColorKey)] - HRESULT ColorKey([in]OLE_COLOR NewValue); - - - - // availablee collection - [propget, id(dispidInputs), helpstring("Available Input Devices")] HRESULT InputsAvailable([in] BSTR CategoryGuid, [out, retval] IMSVidInputDevices * *pVal); - [propget, id(dispidOutputs), helpstring("Available Output Devices")] HRESULT OutputsAvailable([in] BSTR CategoryGuid, [out, retval] IMSVidOutputDevices * *pVal); - [propget, id(dispid_Inputs), hidden, restricted, helpstring("Available Input Devices")] HRESULT _InputsAvailable([in] LPCGUID CategoryGuid, [out, retval] IMSVidInputDevices * *pVal); - [propget, id(dispid_Outputs), hidden, restricted, helpstring("Available Output Devices")] HRESULT _OutputsAvailable([in] LPCGUID CategoryGuid, [out, retval] IMSVidOutputDevices * *pVal); - [propget, id(dispidVideoRenderers), helpstring("Available Video Renderers")] HRESULT VideoRenderersAvailable([out, retval] IMSVidVideoRendererDevices * *pVal); - [propget, id(dispidAudioRenderers), helpstring("Available Audio Renderers")] HRESULT AudioRenderersAvailable([out, retval] IMSVidAudioRendererDevices * *pVal); - [propget, id(dispidFeatures), helpstring("Available Features")] HRESULT FeaturesAvailable([out, retval] IMSVidFeatures * *pVal); - // current selections - [propget, id(dispidInput), helpstring("Currently Selected Input Device")] HRESULT InputActive([out, retval] IMSVidInputDevice **pVal); - [propput, id(dispidInput), helpstring("Currently Selected Input Device")] HRESULT InputActive([in] IMSVidInputDevice *pVal); - [propget, id(dispidOutput), helpstring("Currently Selected Output Devices")] HRESULT OutputsActive([out, retval] IMSVidOutputDevices **pVal); - [propput, id(dispidOutput), helpstring("Currently Selected Output Devices")] HRESULT OutputsActive([in] IMSVidOutputDevices *pVal); - [propget, id(dispidVideoRenderer), helpstring("Currently Selected Video Renderer")] HRESULT VideoRendererActive([out, retval] IMSVidVideoRenderer **pVal); - [propput, id(dispidVideoRenderer), helpstring("Currently Selected Video Renderer")] HRESULT VideoRendererActive([in] IMSVidVideoRenderer *pVal); - [propget, id(dispidAudioRenderer), helpstring("Currently Selected Audio Renderer")] HRESULT AudioRendererActive([out, retval] IMSVidAudioRenderer **pVal); - [propput, id(dispidAudioRenderer), helpstring("Currently Selected Audio Renderer")] HRESULT AudioRendererActive([in] IMSVidAudioRenderer *pVal); - [propget, id(dispidSelectedFeatures), helpstring("Currently Selected Features")] HRESULT FeaturesActive([out, retval] IMSVidFeatures **pVal); - [propput, id(dispidSelectedFeatures), helpstring("Currently Selected Features")] HRESULT FeaturesActive([in] IMSVidFeatures *pVal); - [propget, id(dispidgetState), helpstring("Check the current MSVidCtl state.")] HRESULT State([out, retval]MSVidCtlStateList* lState); - // methods - - [id(dispidView), helpstring("Find an input device for viewing the specified item. This may be a string(VT_BSTR) or an object(VT_UNKNOWN).")] HRESULT View([in] VARIANT* v); - [id(dispidBuild), helpstring("Compose the graph")] HRESULT Build(); - [id(dispidPause), helpstring("Stop the graph")] HRESULT Pause(); - [id(dispidRun), helpstring("Compose the graph if necessary and start it running")] HRESULT Run(); - [id(dispidStop), helpstring("Stop the graph")] HRESULT Stop(); - [id(dispidDecompose), helpstring("Disassemble the graph(Inverse of Build)")] HRESULT Decompose(); - [id(dispidDisableVideo), helpstring("set active video renderer to nothing")] HRESULT DisableVideo(); - [id(dispidDisableAudio), helpstring("set active Audio renderer to nothing")] HRESULT DisableAudio(); - [id(dispidViewNext), helpstring("Find another input device for viewing the specified item. Works like View except skips current input")] HRESULT ViewNext([in] VARIANT* v); - [propput, id(dispidServiceP), helpstring("Set Service Provider")] HRESULT ServiceProvider([in] IUnknown* pServiceP); - }; - - ///Added for the mseventbinder - [ - object, - dual, - oleautomation, - hidden, - nonextensible, - pointer_default(unique), - uuid(C3A9F406-2222-436D-86D5-BA3229279EFB), - helpstring("IMSEventBinder Interface"), - ] - interface IMSEventBinder : IDispatch { - [id(dispidbind), helpstring("method Bind")] HRESULT Bind([in]LPDISPATCH pEventObject, [in]BSTR EventName, [in]BSTR EventHandler, [out, retval] LONG * CancelID); - [id(dispidunbind), helpstring("method Unbind")] HRESULT Unbind([in]DWORD CancelCookie); - }; - - - -#endif // TUNING_MODEL_ONLY - -//***************************************************************************** -//***************************************************************************** -////////////////////////////////////////////////////////////////////////////////////// -// Type Library for MS Video Control -////////////////////////////////////////////////////////////////////////////////////// -//***************************************************************************** -//***************************************************************************** - - -[ - uuid(B0EDF154-910A-11D2-B632-00C04F79498E), - version(1.0), - helpstring("MS Video Control 1.0 Type Library") -] -library MSVidCtlLib -{ - importlib("stdole2.tlb"); - - -#ifndef TUNING_MODEL_ONLY -/////////////////////////////////////////////////////////////////////////////////////// -// event interfaces -/////////////////////////////////////////////////////////////////////////////////////// - - [ - uuid(B0EDF164-910A-11D2-B632-00C04F79498E), - helpstring("MS Video Control Events Interface") - ] - dispinterface _IMSVidCtlEvents - { - properties: - // Event interface has no properties - methods: - [id(DISPID_CLICK)] void Click(); - [id(DISPID_DBLCLICK)] void DblClick(); - [id(DISPID_KEYDOWN)] void KeyDown(short* KeyCode, short Shift); - [id(DISPID_KEYPRESS)] void KeyPress(short* KeyAscii); - [id(DISPID_KEYUP)] void KeyUp(short* KeyCode, short Shift); - [id(DISPID_MOUSEDOWN)] void MouseDown(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y); - [id(DISPID_MOUSEMOVE)] void MouseMove(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y); - [id(DISPID_MOUSEUP)] void MouseUp(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y); - [id(DISPID_ERROREVENT)] void Error(short Number, BSTR* Description, long Scode, BSTR Source, BSTR HelpFile, long HelpContext, boolean* CancelDisplay); - [id(dispidStateChange)] void StateChange(MSVidCtlStateList PrevState, MSVidCtlStateList CurrState); - }; - -//***************************************************************************** -/////////////////////////////////////////////////////////////////////////////////////// -// device classes -/////////////////////////////////////////////////////////////////////////////////////// -//***************************************************************************** - -// inputs - /////////////////////////////////////////////////////////////////////////////////////// - [ - uuid(1C15D484-911D-11d2-B632-00C04F79498E), - helpstring("MS Video Control Analog TV Tuner Device Class") - ] - coclass MSVidAnalogTunerDevice - { - [default] interface IMSVidAnalogTuner; - [default, source] interface IMSVidAnalogTunerEvent; - interface IMSVidGraphSegment; - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [ - uuid(A2E3074E-6C3D-11d3-B653-00C04F79498E), - helpstring("MS Video Control BDA Tuner Device Class") - ] - coclass MSVidBDATunerDevice - { - [default] interface IMSVidTuner; - [default, source] interface IMSVidTunerEvent; - interface IMSVidGraphSegment; - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [ - uuid(37B0353C-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control File Playback Device Class") - ] - coclass MSVidFilePlaybackDevice - { - [default] interface IMSVidFilePlayback; - [default, source] interface IMSVidFilePlaybackEvent; - interface IMSVidGraphSegment; - }; - - - [ - uuid(011B3619-FE63-4814-8A84-15A194CE9CE3), - helpstring("MSVidWebDVD Class") - ] - coclass MSVidWebDVD - { - [default] interface IMSVidWebDVD; - [default, source] interface IMSVidWebDVDEvent; - interface IMSVidGraphSegment; - }; - - [ - uuid(FA7C375B-66A7-4280-879D-FD459C84BB02), - helpstring("MSVidWebDVDAdm Class") - ] - coclass MSVidWebDVDAdm - { - [default] interface IMSVidWebDVDAdm; - }; - -// rendererers - /////////////////////////////////////////////////////////////////////////////////////// - [ - uuid(37B03543-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control Video Renderer Class") - ] - coclass MSVidVideoRenderer - { - [default] interface IMSVidVideoRenderer2; - interface IMSVidVideoRenderer; - [default, source] interface IMSVidVideoRendererEvent; - //[default, source] interface IMSVidVideoRendererEvent2; - interface IMSVidGraphSegment; - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [ - uuid(37B03544-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control Audio Renderer Class") - ] - coclass MSVidAudioRenderer - { - [default] interface IMSVidAudioRenderer; - [default, source] interface IMSVidAudioRendererEvent; - interface IMSVidGraphSegment; - }; - -// Stream Buffer Sink and Source and Playback - /////////////////////////////////////////////////////////////////////////////////////// - [ - uuid(9E77AAC4-35E5-42a1-BDC2-8F3FF399847C), - helpstring("MS Video Control Stream Buffer Engine Sink Class") - ] - coclass MSVidStreamBufferSink - { - [default] interface IMSVidStreamBufferSink; - [default, source] interface IMSVidStreamBufferSinkEvent; - interface IMSVidGraphSegment; - }; - - ////////////////////////////////////////////////////////////////////////////////////// - [ - uuid(AD8E510D-217F-409b-8076-29C5E73B98E8), - helpstring("MS Video Control Stream Buffer Engine Playback Device Class") - ] - coclass MSVidStreamBufferSource - { - [default] interface IMSVidStreamBufferSource; - [default, source] interface IMSVidStreamBufferSourceEvent; - interface IMSVidGraphSegment; - }; - -// features - - [ - uuid(334125C0-77E5-11d3-B653-00C04F79498E), - helpstring("MS Video Control Standard Data Services for Broadcast IP through NDIS stack") - ] - coclass MSVidDataServices - { - interface IMSVidDataServices; - }; - - [ - uuid(BB530C63-D9DF-4b49-9439-63453962E598), - helpstring("MS Video Control Encoder") - ] - coclass MSVidEncoder - { - interface IMSVidEncoder; - }; - - [ - uuid(0149EEDF-D08F-4142-8D73-D23903D21E90), - helpstring("MS Video Control Encoder") - ] - coclass MSVidXDS - { - interface IMSVidXDS; - }; - - [ - uuid(7F9CB14D-48E4-43b6-9346-1AEBC39C64D3), - helpstring("MS Video Control Standard Closed Captioning") - ] - coclass MSVidClosedCaptioning - { - [default] interface IMSVidClosedCaptioning2; - interface IMSVidClosedCaptioning; - }; - -/////////////////////////////////////////////////////////////////////////////////////// -// control classes -/////////////////////////////////////////////////////////////////////////////////////// - - /////////////////////////////////////////////////////////////////////////////////////// - [ - uuid(B0EDF163-910A-11D2-B632-00C04F79498E), - control, - helpstring("MS Video Control Class") - ] - coclass MSVidCtl - { - [default] interface IMSVidCtl; - [default, source] dispinterface _IMSVidCtlEvents; - interface IMSVidGraphSegmentContainer; - }; - -/////////////////////////////////////////////////////////////////////////////////////// -// device collections -/////////////////////////////////////////////////////////////////////////////////////// - [ - uuid(C5702CCC-9B79-11d3-B654-00C04F79498E), - helpstring("MS Video Control Input Device Collection Class") - ] - coclass MSVidInputDevices - { - [default] interface IMSVidInputDevices; - }; - - [ - uuid(C5702CCD-9B79-11d3-B654-00C04F79498E), - helpstring("MS Video Control Output Device Collection Class") - ] - coclass MSVidOutputDevices - { - [default] interface IMSVidOutputDevices; - }; - - [ - uuid(C5702CCE-9B79-11d3-B654-00C04F79498E), - helpstring("MS Video Control Video Renderer Device Collection Class") - ] - coclass MSVidVideoRendererDevices - { - [default] interface IMSVidVideoRendererDevices; - }; - - [ - uuid(C5702CCF-9B79-11d3-B654-00C04F79498E), - helpstring("MS Video Control Audio Renderer Device Collection Class") - ] - coclass MSVidAudioRendererDevices - { - [default] interface IMSVidAudioRendererDevices; - }; - - [ - uuid(C5702CD0-9B79-11d3-B654-00C04F79498E), - helpstring("MS Video Control Feature Collection Class") - ] - coclass MSVidFeatures - { - [default] interface IMSVidFeatures; - }; - -/////////////////////////////////////////////////////////////////////////////////////// -// composites -/////////////////////////////////////////////////////////////////////////////////////// - - [ - uuid(2764BCE5-CC39-11D2-B639-00C04F79498E), - helpstring("MS Video Control Generic Composition Class") - ] - coclass MSVidGenericComposite - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(E18AF75A-08AF-11d3-B64A-00C04F79498E), - helpstring("MS Video Control Custom Composition for Analog Capture to Overlay Mixer") - ] - coclass MSVidAnalogCaptureToOverlayMixer - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(C5702CD6-9B79-11d3-B654-00C04F79498E), - helpstring("MS Video Control Custom Composition for Analog Capture to Data Services") - ] - coclass MSVidAnalogCaptureToDataServices - { - interface IMSVidCompositionSegment; - }; - - - [ - uuid(267db0b3-55e3-4902-949b-df8f5cec0191), - helpstring("MS Video Control Custom Composition for WebDVD to Overlay Mixer") - ] - coclass MSVidWebDVDToVideoRenderer - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(8D04238E-9FD1-41c6-8DE3-9E1EE309E935), - helpstring("MS Video Control Custom Composition for WebDVD to Audio Renderer") - ] - coclass MSVidWebDVDToAudioRenderer - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(6AD28EE1-5002-4e71-AAF7-BD077907B1A4), - helpstring("MS Video Control Custom Composition for Mpeg2 Decoder to Closed Captioning") - ] - coclass MSVidMPEG2DecoderToClosedCaptioning - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(9F50E8B1-9530-4ddc-825E-1AF81D47AED6), - helpstring("MS Video Control Custom Composition for Analog Capture to Stream Buffer Sink") - ] - coclass MSVidAnalogCaptureToStreamBufferSink - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(ABE40035-27C3-4a2f-8153-6624471608AF), - helpstring("MS Video Control Custom Composition for Digital Capture to Stream Buffer Sink") - ] - coclass MSVidDigitalCaptureToStreamBufferSink - { - interface IMSVidCompositionSegment; - }; - - - [ - uuid(38F03426-E83B-4e68-B65B-DCAE73304838), - helpstring("MS Video Control Custom Composition for Data Services to Stream Buffer Sink") - ] - coclass MSVidDataServicesToStreamBufferSink - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(0429EC6E-1144-4bed-B88B-2FB9899A4A3D), - helpstring("MS Video Control Custom Composition for DataServices To XDS") - ] - coclass MSVidDataServicesToXDS - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(A0B9B497-AFBC-45ad-A8A6-9B077C40D4F2), - helpstring("MS Video Control Custom Composition for Encoder to Stream Buffer Sink") - ] - coclass MSVidEncoderToStreamBufferSink - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(B401C5EB-8457-427f-84EA-A4D2363364B0), - helpstring("MS Video Control Custom Composition for File Playback to Video Renderer") - ] - coclass MSVidFilePlaybackToVideoRenderer - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(CC23F537-18D4-4ece-93BD-207A84726979), - helpstring("MS Video Control Custom Composition for File Playback to Audio Renderer") - ] - coclass MSVidFilePlaybackToAudioRenderer - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(28953661-0231-41db-8986-21FF4388EE9B), - helpstring("MS Video Control Custom Composition for TV Tuner to Encoder") - ] - coclass MSVidAnalogTVToEncoder - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(3C4708DC-B181-46a8-8DA8-4AB0371758CD), - helpstring("MS Video Control Custom Composition for SBE Source to Video renderer") - ] - coclass MSVidStreamBufferSourceToVideoRenderer - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(3540D440-5B1D-49cb-821A-E84B8CF065A7), - helpstring("MS Video Control Custom Composition for TV Tuner to XDS") - ] - coclass MSVidAnalogCaptureToXDS - { - interface IMSVidCompositionSegment; - }; - - [ - uuid(9193A8F9-0CBA-400e-AA97-EB4709164576), - helpstring("MS Video Control Custom Composition for Stream Buffer Source to CC") - ] - coclass MSVidSBESourceToCC - { - interface IMSVidCompositionSegment; - }; - - -/////////////////////////////////////////////////////////////////////////////////////// -// Miscellaneous -/////////////////////////////////////////////////////////////////////////////////////// - - // Events - [ - uuid(577FAA18-4518-445E-8F70-1473F8CF4BA4), - helpstring("MSEventBinder Class") - ] - coclass MSEventBinder - { - [default] interface IMSEventBinder; - }; - - [ - uuid(CAAFDD83-CEFC-4e3d-BA03-175F17A24F91), - helpstring("MSVidStreamBufferRecordingControl") - ] - coclass MSVidStreamBufferRecordingControl - { - [default] interface IMSVidStreamBufferRecordingControl; - }; - // vidrect class - [ - hidden, restricted, - uuid(CB4276E6-7D5F-4cf1-9727-629C5E6DB6AE), - helpstring("Automation compliant scalable rectangle Class") - ] - coclass MSVidRect - { - [default] interface IMSVidRect; - }; - - // NOTE: there is no object factory for the following classes. - // the implementation for the underlying code is a c++ abstract base class. - // this coclass is only provided here to force vb to expose the base interface - // to enable polymorphic access to derived objects - [ - hidden, restricted, - uuid(6E40476F-9C49-4c3e-8BB9-8587958EFF74), - helpstring("dummy class to expose base interface to VB") - ] - coclass MSVidDevice - { - [default] interface IMSVidDevice; - }; - [ - hidden, restricted, - uuid(AC1972F2-138A-4ca3-90DA-AE51112EDA28), - helpstring("dummy class to expose base interface to VB") - ] - coclass MSVidInputDevice - { - [default] interface IMSVidInputDevice; - }; - [ - hidden, restricted, - uuid(95F4820B-BB3A-4e2d-BC64-5B817BC2C30E), - helpstring("dummy class to expose base interface to VB") - ] - coclass MSVidVideoInputDevice - { - [default] interface IMSVidVideoInputDevice; - }; - [ - hidden, restricted, - uuid(1990D634-1A5E-4071-A34A-53AAFFCE9F36), - helpstring("dummy class to expose base interface to VB") - ] - coclass MSVidVideoPlaybackDevice - { - [default] interface IMSVidPlayback; - }; - [ - hidden, restricted, - uuid(7748530B-C08A-47ea-B24C-BE8695FF405F), - helpstring("dummy class to expose base interface to VB") - ] - coclass MSVidFeature - { - [default] interface IMSVidFeature; - }; - [ - hidden, restricted, - uuid(87EB890D-03AD-4e9d-9866-376E5EC572ED), - helpstring("dummy class to expose base interface to VB") - ] - coclass MSVidOutput - { - [default] interface IMSVidOutputDevice; - }; - - -#endif //TUNING_MODEL_ONLY - -}; - -// end of file msvidctl.idl diff --git a/sdk/dx8sdk/Include/DShowIDL/Segment.idl b/sdk/dx8sdk/Include/DShowIDL/Segment.idl deleted file mode 100644 index a9895cbd..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/Segment.idl +++ /dev/null @@ -1,1349 +0,0 @@ -// Segment.idl : IDL source for devices segments for msvid.dll -// - -// This file will be processed by the MIDL tool to -// produce the type library (msvideo.tlb) and marshalling code. - - -// Copyright (c) Microsoft Corporation 1998-2000 -// -cpp_quote("//+-------------------------------------------------------------------------") -cpp_quote("//") -cpp_quote("// Microsoft Windows") -cpp_quote("// Copyright (C) Microsoft Corporation, 1999-2000.") -cpp_quote("//") -cpp_quote("//--------------------------------------------------------------------------") -cpp_quote("#pragma once") - -#ifndef TUNING_MODEL_ONLY - -#include -cpp_quote("#include ") - -#ifndef DO_NO_IMPORTS -import "oaidl.idl"; -import "ocidl.idl"; -import "strmif.idl"; -import "tuner.idl"; -import "tvratings.idl"; -#endif - -typedef enum { -dispidName, -dispidStatus, -dispidDevImageSourceWidth, -dispidDevImageSourceHeight, -dispidDevCountryCode, -dispidDevOverScan, -dispidSegment, -dispidDevVolume, -dispidDevBalance, -dispidDevPower, -dispidTuneChan, -dispidDevVideoSubchannel, -dispidDevAudioSubchannel, -dispidChannelAvailable, -dispidDevVideoFrequency, -dispidDevAudioFrequency, -dispidCount, -dispidDevFileName, -dispidVisible, -dispidOwner, -dispidMessageDrain, -//dispidPosition, -dispidViewable, -dispidDevView, -dispidKSCat, -dispidCLSID, -dispid_KSCat, -dispid_CLSID, -dispidTune, -dispidTS, -dispidDevSAP, -dispidClip, -dispidRequestedClipRect, -dispidClippedSourceRect, -dispidAvailableSourceRect, -dispidMediaPosition, -dispidDevRun, -dispidDevPause, -dispidDevStop, -dispidCCEnable, -dispidDevStep, -dispidDevCanStep, -dispidSourceSize, -dispid_playtitle, -dispid_playchapterintitle, -dispid_playchapter, -dispid_playchaptersautostop, -dispid_playattime, -dispid_playattimeintitle, -dispid_playperiodintitleautostop, -dispid_replaychapter, -dispid_playprevchapter, -dispid_playnextchapter, -dispid_playforwards, -dispid_playbackwards, -dispid_stilloff, -dispid_audiolanguage, -dispid_showmenu, -dispid_resume, -dispid_returnfromsubmenu, -dispid_buttonsavailable, -dispid_currentbutton, -dispid_SelectAndActivateButton, -dispid_ActivateButton, -dispid_SelectRightButton, -dispid_SelectLeftButton, -dispid_SelectLowerButton, -dispid_SelectUpperButton, -dispid_ActivateAtPosition, -dispid_SelectAtPosition, -dispid_ButtonAtPosition, -dispid_NumberOfChapters, -dispid_TotalTitleTime, -dispid_TitlesAvailable, -dispid_VolumesAvailable, -dispid_CurrentVolume, -dispid_CurrentDiscSide, -dispid_CurrentDomain, -dispid_CurrentChapter, -dispid_CurrentTitle, -dispid_CurrentTime, -dispid_FramesPerSecond, -dispid_DVDTimeCode2bstr, -dispid_DVDDirectory, -dispid_IsSubpictureStreamEnabled, -dispid_IsAudioStreamEnabled, -dispid_CurrentSubpictureStream, -dispid_SubpictureLanguage, -dispid_CurrentAudioStream, -dispid_AudioStreamsAvailable, -dispid_AnglesAvailable, -dispid_CurrentAngle, -dispid_CCActive, -dispid_CurrentCCService, -dispid_SubpictureStreamsAvailable, -dispid_SubpictureOn, -dispid_DVDUniqueID, -dispid_EnableResetOnStop, -dispid_AcceptParentalLevelChange, -dispid_NotifyParentalLevelChange, -dispid_SelectParentalCountry, -dispid_SelectParentalLevel, -dispid_TitleParentalLevels, -dispid_PlayerParentalCountry, -dispid_PlayerParentalLevel, -dispid_Eject, -dispid_UOPValid, -dispid_SPRM, -dispid_GPRM, -dispid_DVDTextStringType, -dispid_DVDTextString, -dispid_DVDTextNumberOfStrings, -dispid_DVDTextNumberOfLanguages, -dispid_DVDTextLanguageLCID, -dispid_RegionChange, -dispid_DVDAdm, -dispid_DeleteBookmark, -dispid_RestoreBookmark, -dispid_SaveBookmark, -dispid_SelectDefaultAudioLanguage, -dispid_SelectDefaultSubpictureLanguage, -dispid_PreferredSubpictureStream, -dispid_DefaultMenuLanguage, -dispid_DefaultSubpictureLanguage, -dispid_DefaultAudioLanguage, -dispid_DefaultSubpictureLanguageExt, -dispid_DefaultAudioLanguageExt, -dispid_LanguageFromLCID, -dispid_KaraokeAudioPresentationMode, -dispid_KaraokeChannelContent, -dispid_KaraokeChannelAssignment, -dispid_RestorePreferredSettings, -dispid_ButtonRect, -dispid_DVDScreenInMouseCoordinates, -dispid_CustomCompositorClass, -dispidCustomCompositorClass, -dispid_CustomCompositor, -dispidMixerBitmap, -dispid_MixerBitmap, -dispidMixerBitmapOpacity, -dispidMixerBitmapRect, -dispidSetupMixerBitmap, -dispidUsingOverlay, -dispidDisplayChange, -dispidRePaint, -dispid_IsEqualDevice, -dispidrate, -dispidposition, -dispidpositionmode, -dispidlength, -dispidChangePassword, -dispidSaveParentalLevel, -dispidSaveParentalCountry, -dispidConfirmPassword, -dispidGetParentalLevel, -dispidGetParentalCountry, -dispidDefaultAudioLCID, -dispidDefaultSubpictureLCID, -dispidDefaultMenuLCID, -dispidBookmarkOnStop, -dispidMaxVidRect, -dispidMinVidRect, -dispidCapture, -dispid_DecimateInput, -dispidAlloctor, -dispid_Allocator, -dispidAllocPresentID, -dispidSetAllocator, -dispid_SetAllocator, -dispidStreamBufferSinkName, -dispidStreamBufferSourceName, -dispidStreamBufferContentRecording, -dispidStreamBufferReferenceRecording, -dispidstarttime, -dispidstoptime, -dispidrecordingstopped, -dispidrecordingstarted, -dispidNameSetLock, -dispidrecordingtype, -dispidstart, -dispidRecordingAttribute, -dispid_RecordingAttribute, -dispidSBEConfigure, -dispid_CurrentRatings, -dispid_MaxRatingsLevel, -dispid_audioencoderint, -dispid_videoencoderint, -dispidService, -dispid_BlockUnrated, -dispid_UnratedDelay, -dispid_SuppressEffects, -dispidsbesource, -LastReservedDeviceDispid=0x3fff -} SegDispidList; -typedef enum { -eventidStateChange, -eventidOnTuneChanged, -eventidEndOfMedia, -eventidDVDNotify, -eventidPlayForwards, -eventidPlayBackwards, -eventidShowMenu, -eventidResume, -eventidSelectOrActivateButton, -eventidStillOff, -eventidPauseOn, -eventidChangeCurrentAudioStream, -eventidChangeCurrentSubpictureStream, -eventidChangeCurrentAngle, -eventidPlayAtTimeInTitle, -eventidPlayAtTime, -eventidPlayChapterInTitle, -eventidPlayChapter, -eventidReplayChapter, -eventidPlayNextChapter, -eventidStop, -eventidReturnFromSubmenu, -eventidPlayTitle, -eventidPlayPrevChapter, -eventidChangeKaraokePresMode, -eventidChangeVideoPresMode, -eventidOverlayUnavailable, -eventidSinkCertificateFailure, -eventidSinkCertificateSuccess, -eventidSourceCertificateFailure, -eventidSourceCertificateSuccess, -eventidRatingsBlocked, -eventidRatingsUnlocked, -eventidRatingsChanged, -eventidWriteFailure, -eventidTimeHole, -eventidStaleDataRead, -eventidContentBecomingStale, -eventidStaleFileDeleted, -LastReservedDeviceEvent=0x3fff -} SegEventidList; -typedef enum { - FrameMode, - TenthsSecondsMode -} PositionModeList; -typedef enum { - CONTENT = 0, - REFERENCE -} RecordingType; - - typedef enum { - None, - Caption1, - Caption2, - Text1, - Text2, - XDS -} MSVidCCService; - -//***************************************************************************** -//***************************************************************************** -/////////////////////////////////////////////////////////////////////////////// -// -// interfaces -// -/////////////////////////////////////////////////////////////////////////////// -//***************************************************************************** -//***************************************************************************** - -//***************************************************************************** -/////////////////////////////////////////////////////////////////////////////// -// -// Utility Interfaces -// -/////////////////////////////////////////////////////////////////////////////// -//***************************************************************************** - -interface IMSVidRect; - -[object, - uuid(7F5000A6-A440-47ca-8ACC-C0E75531A2C2), - helpstring("Automation Compliant GDI Rect with Automatic HWND Scaling"), - pointer_default(unique) -] -interface IMSVidRect : IDispatch { - [propget, helpstring("Rectangle Top")] HRESULT Top([out, retval] LONG* TopVal); - [propput, helpstring("Rectangle Top")] HRESULT Top([in] LONG TopVal); - [propget, helpstring("Rectangle Left")] HRESULT Left([out, retval] LONG* LeftVal); - [propput, helpstring("Rectangle Left")] HRESULT Left([in] LONG LeftVal); - [propget, helpstring("Rectangle Width")] HRESULT Width([out, retval] LONG* WidthVal); - [propput, helpstring("Rectangle Width")] HRESULT Width([in] LONG WidthVal); - [propget, helpstring("Rectangle Height")] HRESULT Height([out, retval] LONG* HeightVal); - [propput, helpstring("Rectangle Height")] HRESULT Height([in] LONG HeightVal); - [propget, helpstring("Coordinates relative to HWnd")] HRESULT HWnd([out, retval] HWND* HWndVal); - [propput, helpstring("Coordinates relative to HWnd")] HRESULT HWnd([in] HWND HWndVal); - [propput, helpstring("New Rectangle Values")] HRESULT Rect([in] IMSVidRect* RectVal); -}; - -interface IMSVidGraphSegmentContainer; -interface IMSVidGraphSegment; -interface IEnumMSVidGraphSegment; - - -//***************************************************************************** -/////////////////////////////////////////////////////////////////////////////// -// -// Segment Container interface allowing segments to find and access other segments -// -/////////////////////////////////////////////////////////////////////////////// -//***************************************************************************** - /////////////////////////////////////////////////////////////////////////////////////// - // if segments need to change the control state(stop, run, pause, etc) or get any stock - // properties that are also made available to clients such as HWND, then they should simply - // QI for the main IMSVidCtl interface. there's no reason to implement this stuff twice. - [object, - uuid(3DD2903D-E0AA-11d2-B63A-00C04F79498E), - helpstring("DShow Graph Segment Container"), - pointer_default(unique) - ] - interface IMSVidGraphSegmentContainer : IUnknown { - [propget, helpstring("Graph")] HRESULT Graph([out] IGraphBuilder **ppGraph); - [propget, helpstring("Input Segment")] HRESULT Input([out] IMSVidGraphSegment **pInput); - [propget, helpstring("Output Segment")] HRESULT Outputs([out] IEnumMSVidGraphSegment **pOutputs); - [propget, helpstring("Video Renderer")] HRESULT VideoRenderer([out] IMSVidGraphSegment **pVR); - [propget, helpstring("Audio Renderer")] HRESULT AudioRenderer([out] IMSVidGraphSegment **pAR); - [propget, helpstring("Features")] HRESULT Features([out] IEnumMSVidGraphSegment **pOutputs); - [propget, helpstring("Composites")] HRESULT Composites([out] IEnumMSVidGraphSegment **pComposites); - [propget, helpstring("Container")] HRESULT ParentContainer([out] IUnknown **ppContainer); // this allows the segments to get out and walk the dhtml hierarchy - HRESULT Decompose(IMSVidGraphSegment *pSegment); - HRESULT IsWindowless(); // the stock hwnd on the main vidctl is only valid if this is set - - // be very careful using GetFocus(think twice and then don't). it is recommended that systems follow the model - // laid out by atvef and smil wherein the convergence of UI and video are implemented by providing the user interface - // as standard html/xml, etc with video incorporated as an element of this standard presentation. - // however, in the special case of dvd there is a prexisting standard which is conceptually inside out. - // that is, the UI is embedded in the video stream rather than the stream being embedded in the UI. - // as a consequence, buttons and menus can asynchronously pop up out of the video stream source(dvd navigator) - // and, may require the focus. this inside out paradigm is the only situation where - // getfocus should be used. otherwise, weird non-standard interactions will result. - HRESULT GetFocus(); - }; - - -/////////////////////////////////////////////////////////////////////////////// -// -// Direct Show Segment extension interfaces -// -/////////////////////////////////////////////////////////////////////////////// - - typedef enum MSVidSegmentType { - MSVidSEG_SOURCE, - MSVidSEG_XFORM, - MSVidSEG_DEST, - } MSVidSegmentType; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, - uuid(1C15D482-911D-11d2-B632-00C04F79498E), - helpstring("DShow Graph Segment Builder Interface"), - pointer_default(unique) - ] - interface IMSVidGraphSegment : IPersist { - // note: we separate init and load(via put_Container) because we want to associate device object - // with their device moniker at creation time. but, we don't want to take the - // hit of loading their filters until we're ready to build the graph because this segment may not get used - [propget] HRESULT Init([out, retval] IUnknown **pInit); - [propput] HRESULT Init([in] IUnknown *pInit); - HRESULT EnumFilters([out] IEnumFilters **pNewEnum); //filters in seg - [propget, helpstring("Graph that contains this segment")] HRESULT Container([out, retval] IMSVidGraphSegmentContainer **ppCtl); - [propput, helpstring("Graph that contains this segment")] HRESULT Container([in] IMSVidGraphSegmentContainer *pCtl); - [propget, helpstring("Type of Segment")] HRESULT Type([out, retval] MSVidSegmentType *pType); - [propget, helpstring("Category this segment is for")] HRESULT Category([out, retval] GUID *pGuid); - HRESULT Build(); // used to notify non-composition segment that the build/composition phase is about to start - HRESULT PreRun(); // used to notify segments that the graph is built and about to be started - HRESULT PostRun(); // called after graph is running - HRESULT PreStop(); // used to notify segments that the graph about to be stopped - HRESULT PostStop();// called after graph is stopped - HRESULT OnEventNotify(LONG lEventCode, LONG_PTR lEventParm1, LONG_PTR lEventParm2); //DShow events - HRESULT Decompose(); - }; - - - enum { - // button state - MSVIDCTL_LEFT_BUTTON =0x0001, - MSVIDCTL_RIGHT_BUTTON =0x0002, - MSVIDCTL_MIDDLE_BUTTON =0x0004, - MSVIDCTL_X_BUTTON1 =0x0008, - MSVIDCTL_X_BUTTON2 =0x0010, - // shift state - MSVIDCTL_SHIFT =0x0001, - MSVIDCTL_CTRL =0x0002, - MSVIDCTL_ALT =0x0004, - }; - - [object, - uuid(301C060E-20D9-4587-9B03-F82ED9A9943C), - helpstring("DShow Graph Segment Input Events"), - pointer_default(unique) - ] - // this should only be implemented used by input(source) devices with ui in the video - // stream(specifically dvd). see discussion of getfocus above - interface IMSVidGraphSegmentUserInput : IUnknown { - HRESULT Click(); - HRESULT DblClick(); - HRESULT KeyDown(short* KeyCode, short ShiftState); - HRESULT KeyPress(short* KeyAscii); - HRESULT KeyUp(short* KeyCode, short ShiftState); - HRESULT MouseDown(short ButtonState, short ShiftState, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y); - HRESULT MouseMove(short ButtonState, short ShiftState, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y); - HRESULT MouseUp(short ButtonState, short ShiftState, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y); - } - - /////////////////////////////////////////////////////////////////////////////////////// - [object, - uuid(1C15D483-911D-11d2-B632-00C04F79498E), - helpstring("DShow Graph Segment Composition Interface"), - pointer_default(unique) - ] - interface IMSVidCompositionSegment : IMSVidGraphSegment { - HRESULT Compose([in] IMSVidGraphSegment *upstream, [in] IMSVidGraphSegment *downstream); - [propget, helpstring("The upstream segment being composed by this composition segment")] HRESULT Up([out] IMSVidGraphSegment **upstream); - [propget, helpstring("The downstream segment being composed by this composition segment")] HRESULT Down([out] IMSVidGraphSegment **downstream); - - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, - uuid(3DD2903E-E0AA-11d2-B63A-00C04F79498E), - helpstring("DShow Graph Segment Enumerator"), - pointer_default(unique) - ] - interface IEnumMSVidGraphSegment : IUnknown { - HRESULT Next([in] ULONG celt, [out] IMSVidGraphSegment ** rgelt, [out] ULONG * pceltFetched); - HRESULT Skip([in] ULONG celt); - HRESULT Reset(void); - HRESULT Clone([out] IEnumMSVidGraphSegment** ppenum); - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, - uuid(DD47DE3F-9874-4f7b-8B22-7CB2688461E7), - helpstring("DShow Video Renderer Graph Segment Builder Interface"), - pointer_default(unique) - ] - interface IMSVidVRGraphSegment : IMSVidGraphSegment { - // NOTE: because of the way ActiveX controls work there is a tight coupling - // between the video control itself and the video renderer device segment - // as a consequence there are important interfaces such as positioning that - // come through the control via the various ole interfaces which we need to - // pass to the video renderer but we don't want script to access directly - // there are also stock properties such as refresh and autosize that must also be - // implemented directly on the video control and passed through to the video renderer - - // from ole interfaces - [hidden, restricted, propput] HRESULT _VMRendererMode([in] LONG dwMode); - [hidden, restricted, propput] HRESULT Owner([in] HWND Window); - [hidden, restricted, propget] HRESULT Owner([out, retval] HWND* Window); - // from ole interfaces - [hidden, restricted, propget] HRESULT UseOverlay([out, retval] VARIANT_BOOL *UseOverlayVal); - [hidden, restricted, propput] HRESULT UseOverlay([in] VARIANT_BOOL UseOverlayVal); - // from top-level control visibility state - [hidden, restricted, propget] HRESULT Visible([out, retval] VARIANT_BOOL* Visible); - [hidden, restricted, propput] HRESULT Visible([in] VARIANT_BOOL Visible); - - // clients must go through top-level vidctl interfaces to access this. since vidctl's ondraw - // actually paints this, it needs to know about it. - [propget, hidden, restricted] HRESULT ColorKey([out, retval] OLE_COLOR* ColorKey); - [propput, hidden, restricted] HRESULT ColorKey([in] OLE_COLOR ColorKey); - // from ole interfaces and window msgs - [propget, hidden, restricted] HRESULT Source([out, retval] LPRECT r); - [propput, hidden, restricted] HRESULT Source([in] RECT r); - // from ole interfaces and window msgs - [propget, hidden, restricted] HRESULT Destination([out, retval] LPRECT r); - [propput, hidden, restricted] HRESULT Destination([in] RECT r); - [propget, hidden, restricted] HRESULT NativeSize([out] LPSIZE sizeval, [out] LPSIZE aspectratio); - // letterboxing color if we're using - [propget, hidden, restricted] HRESULT BorderColor([out, retval] OLE_COLOR* color); - [propput, hidden, restricted] HRESULT BorderColor([in] OLE_COLOR color); - // letterbox or stretch - [propget, hidden, restricted] HRESULT MaintainAspectRatio([out, retval] VARIANT_BOOL *fMaintain); - [propput, hidden, restricted] HRESULT MaintainAspectRatio([in] VARIANT_BOOL fMaintain); - - // from top-level control refresh method - [hidden, restricted] HRESULT Refresh(); - [hidden, restricted] HRESULT DisplayChange(); - [hidden, restricted] HRESULT RePaint([in] HDC hdc); - - }; - - -//***************************************************************************** -/////////////////////////////////////////////////////////////////////////////// -// -// Automation compliant device object interfaces for bpc video control -// -/////////////////////////////////////////////////////////////////////////////// -//***************************************************************************** - - -/////////////////////////////////////////////////////////////////////////////// -// -// input devices -// -/////////////////////////////////////////////////////////////////////////////// - - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, - uuid(1C15D47C-911D-11d2-B632-00C04F79498E), - helpstring("MS Video Control Device Interface"), - pointer_default(unique) - ] - interface IMSVidDevice : IDispatch { - // base device properties - [propget, id(dispidName)] HRESULT Name([out, retval] BSTR *Name); - [propget, id(dispidStatus)] HRESULT Status([out, retval] long *Status); - [propput, id(dispidDevPower)] HRESULT Power([in] VARIANT_BOOL Power); - [propget, id(dispidDevPower)] HRESULT Power([retval, out] VARIANT_BOOL *Power); - // DShow Associated properties - // note: filter can be retrieved by QIing for IMSVidGraphSegment and enumerating - [propget, id(dispidKSCat)] HRESULT Category([out, retval] BSTR *Guid); - [propget, id(dispidCLSID)] HRESULT ClassID([out, retval] BSTR *Clsid); - [propget, id(dispid_KSCat), hidden, restricted] HRESULT _Category([out, retval] GUID* Guid); - [propget, id(dispid_CLSID), hidden, restricted] HRESULT _ClassID([out, retval] GUID* Clsid); - [id(dispid_IsEqualDevice), helpstring("does the passed in device represent the same underlying hardware")] HRESULT IsEqualDevice([in] IMSVidDevice* Device, [out, retval] VARIANT_BOOL* IsEqual); - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, - uuid(37B0353D-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control Input Device Interface"), - pointer_default(unique) - ] - interface IMSVidInputDevice : IMSVidDevice { - [id(dispidViewable)]HRESULT IsViewable([in] VARIANT* v, [out, retval] VARIANT_BOOL *pfViewable); // can this device view this item? - [id(dispidDevView)]HRESULT View([in] VARIANT* v); // set this device to view this item - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, - uuid(1C15D480-911D-11d2-B632-00C04F79498E), - helpstring("MS Video Control Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidDeviceEvent : IDispatch { - [id(eventidStateChange)] HRESULT StateChange([in] IMSVidDevice *lpd, [in] long oldState, [in] long newState); - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, - uuid(37B0353E-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control Input Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidInputDeviceEvent : IDispatch { - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, - uuid(1C15D47F-911D-11d2-B632-00C04F79498E), - helpstring("MS Video Control Video Device Interface"), - pointer_default(unique) - ] - interface IMSVidVideoInputDevice : IMSVidInputDevice { - }; - - /////////////////////////////////////////////////////////////////////////////////////// - - [object, dual, oleautomation, - uuid(37B03538-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control Playback Device Interface"), - pointer_default(unique) - ] - interface IMSVidPlayback : IMSVidInputDevice { - // note: the following methods control the playback device *NOT* the graph. - // if the underlying source filter only supports these functions via - // imediacontrol on the graph then this device segment object should return E_NOTIMPL. - [propget, id(dispid_EnableResetOnStop), helpstring("EnableResetOnStop")] HRESULT EnableResetOnStop([out, retval] VARIANT_BOOL *pVal); - [propput, id(dispid_EnableResetOnStop), helpstring("EnableResetOnStop")] HRESULT EnableResetOnStop([in] VARIANT_BOOL newVal); - [id(dispidDevRun)] HRESULT Run(); - [id(dispidDevPause)] HRESULT Pause(); - [id(dispidDevStop)] HRESULT Stop(); - [propget, id(dispidDevCanStep)] HRESULT CanStep([in] VARIANT_BOOL fBackwards, [out,retval] VARIANT_BOOL *pfCan); - [id(dispidDevStep)] HRESULT Step([in] long lStep); - [propput, id(dispidrate), helpstring("Rate")] HRESULT Rate([in] double plRate); - [propget, id(dispidrate), helpstring("Rate")] HRESULT Rate([out,retval]double *plRate); - [propput, id(dispidposition), helpstring("Position")] HRESULT CurrentPosition([in] long lPosition); - [propget, id(dispidposition), helpstring("Position")] HRESULT CurrentPosition([out, retval] long* lPosition); - [propput, id(dispidpositionmode), helpstring("PositionMode")] HRESULT PositionMode([in] PositionModeList lPositionMode); - [propget, id(dispidpositionmode), helpstring("PositionMode")] HRESULT PositionMode([out, retval] PositionModeList* lPositionMode); - [propget, id(dispidlength), helpstring("Length")] HRESULT Length([out, retval] long *lLength); - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, - uuid(37B0353B-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control Playback Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidPlaybackEvent : IMSVidInputDeviceEvent { - [id(eventidEndOfMedia)] HRESULT EndOfMedia([in] IMSVidPlayback *lpd); - }; - - - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, hidden, - uuid(1C15D47D-911D-11d2-B632-00C04F79498E), - helpstring("MS Video Tuner Interface"), - pointer_default(unique) - ] - interface IMSVidTuner : IMSVidVideoInputDevice { - [propget, id(dispidTune)] HRESULT Tune([out, retval] ITuneRequest **ppTR); - [propput, id(dispidTune)] HRESULT Tune([in] ITuneRequest *pTR); - [propget, id(dispidTS)] HRESULT TuningSpace([out, retval] ITuningSpace **plTS); - [hidden, restricted, propput, id(dispidTS)] HRESULT TuningSpace([in] ITuningSpace* plTS); - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, hidden, - uuid(1C15D485-911D-11d2-B632-00C04F79498E), - helpstring("MS Video Control Tuner Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidTunerEvent : IMSVidInputDeviceEvent { - [id(eventidOnTuneChanged)] HRESULT TuneChanged([in] IMSVidTuner *lpd); - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, hidden, - uuid(1C15D47E-911D-11d2-B632-00C04F79498E), - helpstring("MS Video TV Tuner Interface"), - pointer_default(unique) - ] - interface IMSVidAnalogTuner : IMSVidTuner { - [propget, id(dispidTuneChan)] HRESULT Channel([out, retval] long *Channel); - [propput, id(dispidTuneChan)] HRESULT Channel([in] long Channel); - [propget, id(dispidDevVideoFrequency)] HRESULT VideoFrequency([retval, out] long *lcc); - [propget, id(dispidDevAudioFrequency)] HRESULT AudioFrequency([retval, out] long *lcc); - // note: this is not LCID, this is physical location of device using - // international dialing code value - [propget, id(dispidDevCountryCode)] HRESULT CountryCode([retval, out] long *lcc); - [propput, id(dispidDevCountryCode)] HRESULT CountryCode([in] long lcc); - // analog specific shortcut to enabling a different audio component - [propget, id(dispidDevSAP)] HRESULT SAP([out, retval] VARIANT_BOOL *pfSapOn); - [propput, id(dispidDevSAP)] HRESULT SAP([in] VARIANT_BOOL fSapOn); - // methods - [id(dispidChannelAvailable)] HRESULT ChannelAvailable([in] long nChannel, [out] long *SignalStrength, [retval, out] VARIANT_BOOL *fSignalPresent); - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, - uuid(1C15D486-911D-11d2-B632-00C04F79498E), - helpstring("MS Video Control TV Tuner Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidAnalogTunerEvent : IMSVidTunerEvent { - - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, hidden, - uuid(37B03539-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control File Playback Device Interface"), - pointer_default(unique) - ] - interface IMSVidFilePlayback : IMSVidPlayback { - [propget, id(dispidDevFileName)] HRESULT FileName([out, retval] BSTR *FileName); - [propput, id(dispidDevFileName)] HRESULT FileName([in] BSTR FileName); - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, hidden, - uuid(37B0353A-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control File Playback Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidFilePlaybackEvent : IMSVidPlaybackEvent { - - }; - - /////////////////////////////////////////////////////////////////////////////////////// - typedef enum - { - dvdMenu_Title = 2, - dvdMenu_Root = dvdMenu_Title + 1, - dvdMenu_Subpicture = dvdMenu_Root + 1, - dvdMenu_Audio = dvdMenu_Subpicture + 1, - dvdMenu_Angle = dvdMenu_Audio + 1, - dvdMenu_Chapter = dvdMenu_Angle + 1 - } DVDMenuIDConstants; - - typedef enum - { - dvdState_Undefined = -2, - dvdState_Unitialized = dvdState_Undefined + 1, - dvdState_Stopped = dvdState_Unitialized + 1, - dvdState_Paused = dvdState_Stopped + 1, - dvdState_Running = dvdState_Paused + 1 - } DVDFilterState; - - typedef enum - { - dvdStruct_Volume = 0x1, - dvdStruct_Title = 0x2, - dvdStruct_ParentalID = 0x3, - dvdStruct_PartOfTitle = 0x4, - dvdStruct_Cell = 0x5, - dvdStream_Audio = 0x10, - dvdStream_Subpicture = 0x11, - dvdStream_Angle = 0x12, - dvdChannel_Audio = 0x20, - dvdGeneral_Name = 0x30, - dvdGeneral_Comments = 0x31, - dvdTitle_Series = 0x38, - dvdTitle_Movie = 0x39, - dvdTitle_Video = 0x3a, - dvdTitle_Album = 0x3b, - dvdTitle_Song = 0x3c, - dvdTitle_Other = 0x3f, - dvdTitle_Sub_Series = 0x40, - dvdTitle_Sub_Movie = 0x41, - dvdTitle_Sub_Video = 0x42, - dvdTitle_Sub_Album = 0x43, - dvdTitle_Sub_Song = 0x44, - dvdTitle_Sub_Other = 0x47, - dvdTitle_Orig_Series = 0x48, - dvdTitle_Orig_Movie = 0x49, - dvdTitle_Orig_Video = 0x4a, - dvdTitle_Orig_Album = 0x4b, - dvdTitle_Orig_Song = 0x4c, - dvdTitle_Orig_Other = 0x4f, - dvdOther_Scene = 0x50, - dvdOther_Cut = 0x51, - dvdOther_Take = 0x52 - } DVDTextStringType; - - typedef enum - { - dvdSPExt_NotSpecified = 0, - dvdSPExt_Caption_Normal = 1, - dvdSPExt_Caption_Big = 2, - dvdSPExt_Caption_Children = 3, - dvdSPExt_CC_Normal = 5, - dvdSPExt_CC_Big = 6, - dvdSPExt_CC_Children = 7, - dvdSPExt_Forced = 9, - dvdSPExt_DirectorComments_Normal = 13, - dvdSPExt_DirectorComments_Big = 14, - dvdSPExt_DirectorComments_Children = 15 - } DVDSPExt; - - [object, dual, oleautomation, hidden, - uuid(CF45F88B-AC56-4EE2-A73A-ED04E2885D3C), - helpstring("IMSVidWebDVD Interface"), - pointer_default(unique) - ] - interface IMSVidWebDVD : IMSVidPlayback { - - HRESULT OnDVDEvent([in]long lEvent, [in]LONG_PTR lParam1, [in]LONG_PTR lParam2); - [id(dispid_playtitle), helpstring("method PlayTitle")] HRESULT PlayTitle([in] long lTitle); - [id(dispid_playchapterintitle), helpstring("method PlayChapterInTitle")] HRESULT PlayChapterInTitle([in] long lTitle, [in] long lChapter); - [id(dispid_playchapter), helpstring("method PlayChapter")] HRESULT PlayChapter([in] long lChapter); - [id(dispid_playchaptersautostop), helpstring("method PlayChaptersAutoStop")] HRESULT PlayChaptersAutoStop([in] long lTitle, [in] long lstrChapter, [in] long lChapterCount); - [id(dispid_playattime), helpstring("method PlayAtTime")] HRESULT PlayAtTime([in] BSTR strTime); - [id(dispid_playattimeintitle), helpstring("method PlayAtTimeInTitle")] HRESULT PlayAtTimeInTitle([in] long lTitle, [in] BSTR strTime); - [id(dispid_playperiodintitleautostop), helpstring("method PlayPeriodInTitleAutoStop")] HRESULT PlayPeriodInTitleAutoStop([in] long lTitle, [in] BSTR strStartTime, [in] BSTR strEndTime); - [id(dispid_replaychapter), helpstring("method ReplayChapter")] HRESULT ReplayChapter(); - [id(dispid_playprevchapter), helpstring("method PlayPrevChapter")] HRESULT PlayPrevChapter(); - [id(dispid_playnextchapter), helpstring("method PlayNextChapter")] HRESULT PlayNextChapter(); - [id(dispid_stilloff), helpstring("method StillOff")] HRESULT StillOff(); - [propget, id(dispid_audiolanguage), helpstring("AudioLanguage")] HRESULT AudioLanguage([in] long lStream, [in, defaultvalue(0)] VARIANT_BOOL fFormat, [out, retval] BSTR* strAudioLang); - [id(dispid_showmenu), helpstring("method ShowMenu")] HRESULT ShowMenu([in] DVDMenuIDConstants MenuID); - [id(dispid_resume), helpstring("method Resume")] HRESULT Resume(); - [id(dispid_returnfromsubmenu), helpstring("method ReturnFromSubmenu")] HRESULT ReturnFromSubmenu(); - [propget,id(dispid_buttonsavailable), helpstring("ButtonsAvailable")] HRESULT ButtonsAvailable([out, retval] long *pVal); - [propget,id(dispid_currentbutton), helpstring("CurrentButton")] HRESULT CurrentButton([out, retval] long *pVal); - [id(dispid_SelectAndActivateButton), helpstring("method SelectAndActivateButton")] HRESULT SelectAndActivateButton([in] long lButton); - [id(dispid_ActivateButton), helpstring("method ActivateButton")] HRESULT ActivateButton(); - [id(dispid_SelectRightButton), helpstring("method SelectRightButton")] HRESULT SelectRightButton(); - [id(dispid_SelectLeftButton), helpstring("method SelectLeftButton")] HRESULT SelectLeftButton(); - [id(dispid_SelectLowerButton), helpstring("method SelectLowerButton")] HRESULT SelectLowerButton(); - [id(dispid_SelectUpperButton), helpstring("method SelectUpperButton")] HRESULT SelectUpperButton(); - [id(dispid_ActivateAtPosition), helpstring("method ActivateAtPosition")] HRESULT ActivateAtPosition([in] long xPos, [in] long yPos); - [id(dispid_SelectAtPosition), helpstring("method SelectAtPosition")] HRESULT SelectAtPosition([in] long xPos, [in] long yPos); - [propget, id(dispid_ButtonAtPosition), helpstring("ButtonAtPosition")] HRESULT ButtonAtPosition([in] long xPos, [in] long yPos, [out, retval] long* plButton); - [propget, id(dispid_NumberOfChapters), helpstring("NumberOfChapters")] HRESULT NumberOfChapters([in] long lTitle, [out, retval] long *pVal); - [propget, id(dispid_TotalTitleTime), helpstring("TotalTitleTime")] HRESULT TotalTitleTime([out, retval] BSTR *pVal); - [propget, id(dispid_TitlesAvailable), helpstring("TitlesAvailable")] HRESULT TitlesAvailable([out, retval] long* pVal); - [propget, id(dispid_VolumesAvailable), helpstring("VolumesAvailable")] HRESULT VolumesAvailable([out, retval] long *pVal); - [propget, id(dispid_CurrentVolume), helpstring("CurrentVolume")] HRESULT CurrentVolume([out, retval] long *pVal); - [propget, id(dispid_CurrentDiscSide), helpstring("CurrentDiscSide")] HRESULT CurrentDiscSide([out, retval] long *pVal); - [propget, id(dispid_CurrentDomain), helpstring("CurrentDomain")] HRESULT CurrentDomain([out, retval] long *pVal); - [propget, id(dispid_CurrentChapter), helpstring("CurrentChapter")] HRESULT CurrentChapter([out, retval] long *pVal); - [propget, id(dispid_CurrentTitle), helpstring("CurrentTitle")] HRESULT CurrentTitle([out, retval] long *pVal); - [propget, id(dispid_CurrentTime), helpstring("CurrentTime")] HRESULT CurrentTime([out, retval] BSTR *pVal); - [id(dispid_DVDTimeCode2bstr), helpstring("method DVDTimeCode2bstr")] HRESULT DVDTimeCode2bstr([in] long timeCode, [out, retval] BSTR *pTimeStr); - [propget, id(dispid_DVDDirectory), helpstring("DVDDirectory")] HRESULT DVDDirectory([out, retval] BSTR *pVal); - [propput, id(dispid_DVDDirectory), helpstring("DVDDirectory")] HRESULT DVDDirectory([in] BSTR newVal); - [id(dispid_IsSubpictureStreamEnabled), helpstring("method IsSubpictureStreamEnabled")] HRESULT IsSubpictureStreamEnabled([in] long lstream, [out, retval] VARIANT_BOOL *fEnabled); - [id(dispid_IsAudioStreamEnabled), helpstring("method IsAudioStreamEnabled")] HRESULT IsAudioStreamEnabled([in] long lstream, [out, retval] VARIANT_BOOL *fEnabled); - [propget, id(dispid_CurrentSubpictureStream), helpstring("CurrentSubpictureStream")] HRESULT CurrentSubpictureStream([out, retval] long *pVal); - [propput, id(dispid_CurrentSubpictureStream), helpstring("CurrentSubpictureStream")] HRESULT CurrentSubpictureStream([in] long newVal); - [propget, id(dispid_SubpictureLanguage), helpstring("SubpictureLanguage")] HRESULT SubpictureLanguage(long lStream, [out, retval] BSTR* strLanguage); - [propget, id(dispid_CurrentAudioStream), helpstring("CurrentAudioStream")] HRESULT CurrentAudioStream([out, retval] long *pVal); - [propput, id(dispid_CurrentAudioStream), helpstring("CurrentAudioStream")] HRESULT CurrentAudioStream([in] long newVal); - [propget, id(dispid_AudioStreamsAvailable), helpstring("AudioStreamsAvailable")] HRESULT AudioStreamsAvailable([out, retval] long *pVal); - [propget, id(dispid_AnglesAvailable), helpstring("AnglesAvailable")] HRESULT AnglesAvailable([out, retval] long *pVal); - [propget, id(dispid_CurrentAngle), helpstring("CurrentAngle")] HRESULT CurrentAngle([out, retval] long *pVal); - [propput, id(dispid_CurrentAngle), helpstring("CurrentAngle")] HRESULT CurrentAngle([in] long newVal); - [propget, id(dispid_SubpictureStreamsAvailable), helpstring("SubpictureStreamsAvailable")] HRESULT SubpictureStreamsAvailable([out, retval] long *pVal); - [propget, id(dispid_SubpictureOn), helpstring("SubpictureOn")] HRESULT SubpictureOn([out, retval] VARIANT_BOOL *pVal); - [propput, id(dispid_SubpictureOn), helpstring("SubpictureOn")] HRESULT SubpictureOn([in] VARIANT_BOOL newVal); - [propget, id(dispid_DVDUniqueID), helpstring("DVDUniqueID")] HRESULT DVDUniqueID([out, retval] BSTR *pVal); - [id(dispid_AcceptParentalLevelChange), helpstring("method AcceptParentalLevelChange")] HRESULT AcceptParentalLevelChange([in] VARIANT_BOOL fAccept, [in] BSTR strUserName, [in] BSTR strPassword); - [id(dispid_NotifyParentalLevelChange), helpstring("method NotifyParentalLevelChange")] HRESULT NotifyParentalLevelChange([in] VARIANT_BOOL newVal); - [id(dispid_SelectParentalCountry), helpstring("method SelectParentalCountry")] HRESULT SelectParentalCountry([in] long lCountry, [in] BSTR strUserName, [in] BSTR strPassword); - [id(dispid_SelectParentalLevel), helpstring("method SelectParentalLevel")] HRESULT SelectParentalLevel([in] long lParentalLevel, [in] BSTR strUserName, [in] BSTR strPassword); - [propget, id(dispid_TitleParentalLevels), helpstring("TitleParentalLevels")] HRESULT TitleParentalLevels([in] long lTitle, [out, retval] long* plParentalLevels); - [propget, id(dispid_PlayerParentalCountry), helpstring("PlayerParentalCountry")] HRESULT PlayerParentalCountry([out, retval] long* plCountryCode); - [propget, id(dispid_PlayerParentalLevel), helpstring("PlayerParentalLevel")] HRESULT PlayerParentalLevel([out, retval] long* plParentalLevel); - [id(dispid_Eject), helpstring("method Eject")] HRESULT Eject(); - [id(dispid_UOPValid), helpstring("method UOPValid")] HRESULT UOPValid([in] long lUOP, [out, retval] VARIANT_BOOL* pfValid); - [propget, id(dispid_SPRM), helpstring("SPRM")] HRESULT SPRM([in] long lIndex, [out, retval] short *psSPRM); - [propget, id(dispid_GPRM), helpstring("GPRM")] HRESULT GPRM([in] long lIndex, [out, retval] short *psSPRM); - [propput, id(dispid_GPRM), helpstring("GPRM")] HRESULT GPRM([in] long lIndex, [in] short sValue); - [propget, id(dispid_DVDTextStringType), helpstring("DVDTextStringType")] HRESULT DVDTextStringType([in] long lLangIndex, [in] long lStringIndex, [out, retval] DVDTextStringType* pType); - [propget, id(dispid_DVDTextString), helpstring("DVDTextString")] HRESULT DVDTextString([in] long lLangIndex, [in] long lStringIndex, [out, retval] BSTR* pstrText); - [propget, id(dispid_DVDTextNumberOfStrings), helpstring("DVDTextNumberOfStrings")] HRESULT DVDTextNumberOfStrings([in] long lLangIndex, [out, retval] long* plNumOfStrings); - [propget, id(dispid_DVDTextNumberOfLanguages), helpstring("DVDTextNumberOfLanguages")] HRESULT DVDTextNumberOfLanguages([out, retval] long* plNumOfLangs); - [propget, id(dispid_DVDTextLanguageLCID), helpstring("DVDTextLanguageLCID")] HRESULT DVDTextLanguageLCID([in] long lLangIndex, [out, retval] long* lcid); - [id(dispid_RegionChange), helpstring("method RegionChange")] HRESULT RegionChange(); - [propget, id(dispid_DVDAdm), helpstring("DVDAdm")] HRESULT DVDAdm([out, retval] IDispatch* *pVal); - [id(dispid_DeleteBookmark), helpstring("method DeleteBookmark")] HRESULT DeleteBookmark(); - [id(dispid_RestoreBookmark), helpstring("method RestoreBookmark")] HRESULT RestoreBookmark(); - [id(dispid_SaveBookmark), helpstring("method SaveBookmark")] HRESULT SaveBookmark(); - [id(dispid_SelectDefaultAudioLanguage), helpstring("method SelectDefaultAudioLanguage")] HRESULT SelectDefaultAudioLanguage([in] long lang, [in] long ext); - [id(dispid_SelectDefaultSubpictureLanguage), helpstring("method SelectDefaultSubpictureLanguage")] HRESULT SelectDefaultSubpictureLanguage([in] long lang, [in] DVDSPExt ext); - [propget, id(dispid_PreferredSubpictureStream), helpstring("PreferredSubpictureStream")] HRESULT PreferredSubpictureStream([out, retval] long *pVal); - [propget, id(dispid_DefaultMenuLanguage), helpstring("DefaultMenuLanguage")] HRESULT DefaultMenuLanguage([out, retval] long* lang); - [propput, id(dispid_DefaultMenuLanguage), helpstring("DefaultMenuLanguage")] HRESULT DefaultMenuLanguage([in] long lang); - [propget, id(dispid_DefaultSubpictureLanguage), helpstring("DefaultSubpictureLanguage")] HRESULT DefaultSubpictureLanguage([out, retval] long* lang); - [propget, id(dispid_DefaultAudioLanguage), helpstring("DefaultAudioLanguage")] HRESULT DefaultAudioLanguage([out, retval] long *lang); - [propget, id(dispid_DefaultSubpictureLanguageExt), helpstring("DefaultSubpictureLanguageExt")] HRESULT DefaultSubpictureLanguageExt([out, retval] DVDSPExt* ext); - [propget, id(dispid_DefaultAudioLanguageExt), helpstring("DefaultAudioLanguageExt")] HRESULT DefaultAudioLanguageExt([out, retval] long *ext); - [propget, id(dispid_LanguageFromLCID), helpstring("LanguageFromLCID")] HRESULT LanguageFromLCID([in] long lcid, [out, retval] BSTR* lang); - [propget, id(dispid_KaraokeAudioPresentationMode), helpstring("KaraokeAudioPresentationMode")] HRESULT KaraokeAudioPresentationMode([out, retval] long *pVal); - [propput, id(dispid_KaraokeAudioPresentationMode), helpstring("KaraokeAudioPresentationMode")] HRESULT KaraokeAudioPresentationMode([in] long newVal); - [propget, id(dispid_KaraokeChannelContent), helpstring("KaraokeChannelContent")] HRESULT KaraokeChannelContent([in] long lStream, [in] long lChan, [out, retval] long* lContent); - [propget, id(dispid_KaraokeChannelAssignment), helpstring("KaraokeChannelAssignment")] HRESULT KaraokeChannelAssignment([in] long lStream, [out, retval] long *lChannelAssignment); - [id(dispid_RestorePreferredSettings), helpstring("method RestorePreferredSettings")] HRESULT RestorePreferredSettings(); - [propget, id(dispid_ButtonRect), helpstring("ButtonRect")] HRESULT ButtonRect([in] long lButton, [out, retval] IMSVidRect** pRect); - [propget, id(dispid_DVDScreenInMouseCoordinates), helpstring("DVDScreenInMouseCoordinates")] HRESULT DVDScreenInMouseCoordinates([out, retval] IMSVidRect** ppRect); - [propput, id(dispid_DVDScreenInMouseCoordinates), helpstring("DVDScreenInMouseCoordinates")] HRESULT DVDScreenInMouseCoordinates([in] IMSVidRect* pRect); - - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, hidden, - uuid(B4F7A674-9B83-49cb-A357-C63B871BE958), - helpstring("MS Video Control File Playback Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidWebDVDEvent : IMSVidPlaybackEvent { - [id(eventidDVDNotify), helpstring("Notifies the client about DVD Code")] HRESULT DVDNotify([in]long lEventCode, [in]VARIANT lParam1, [in]VARIANT lParam2); - [id(eventidPlayForwards), helpstring("Notifies the client")] HRESULT PlayForwards([in] VARIANT_BOOL bEnabled); - [id(eventidPlayBackwards), helpstring("Notifies the client")] HRESULT PlayBackwards([in] VARIANT_BOOL bEnabled); - [id(eventidShowMenu), helpstring("Notifies the client")] HRESULT ShowMenu([in]DVDMenuIDConstants, [in] VARIANT_BOOL bEnabled); - [id(eventidResume), helpstring("Notifies the client")] HRESULT Resume([in] VARIANT_BOOL bEnabled); - [id(eventidSelectOrActivateButton), helpstring("Notifies the client")] HRESULT SelectOrActivateButton([in] VARIANT_BOOL bEnabled); - [id(eventidStillOff), helpstring("Notifies the client")] HRESULT StillOff([in] VARIANT_BOOL bEnabled); - [id(eventidPauseOn), helpstring("Notifies the client")] HRESULT PauseOn([in] VARIANT_BOOL bEnabled); - [id(eventidChangeCurrentAudioStream), helpstring("Notifies the client")] HRESULT ChangeCurrentAudioStream([in] VARIANT_BOOL bEnabled); - [id(eventidChangeCurrentSubpictureStream), helpstring("Notifies the client")] HRESULT ChangeCurrentSubpictureStream([in] VARIANT_BOOL bEnabled); - [id(eventidChangeCurrentAngle), helpstring("Notifies the client")] HRESULT ChangeCurrentAngle([in] VARIANT_BOOL bEnabled); - [id(eventidPlayAtTimeInTitle), helpstring("Notifies the client")] HRESULT PlayAtTimeInTitle([in] VARIANT_BOOL bEnabled); - [id(eventidPlayAtTime), helpstring("Notifies the client")] HRESULT PlayAtTime([in] VARIANT_BOOL bEnabled); - [id(eventidPlayChapterInTitle), helpstring("Notifies the client")] HRESULT PlayChapterInTitle([in] VARIANT_BOOL bEnabled); - [id(eventidPlayChapter), helpstring("Notifies the client")] HRESULT PlayChapter([in] VARIANT_BOOL bEnabled); - [id(eventidReplayChapter), helpstring("Notifies the client")] HRESULT ReplayChapter([in] VARIANT_BOOL bEnabled); - [id(eventidPlayNextChapter), helpstring("Notifies the client")] HRESULT PlayNextChapter([in] VARIANT_BOOL bEnabled); - [id(eventidStop), helpstring("Notifies the client")] HRESULT Stop([in] VARIANT_BOOL bEnabled); - [id(eventidReturnFromSubmenu), helpstring("Notifies the client")] HRESULT ReturnFromSubmenu([in] VARIANT_BOOL bEnabled); - [id(eventidPlayTitle), helpstring("Notifies the client")] HRESULT PlayTitle([in] VARIANT_BOOL bEnabled); - [id(eventidPlayPrevChapter), helpstring("Notifies the client")] HRESULT PlayPrevChapter([in] VARIANT_BOOL bEnabled); - [id(eventidChangeKaraokePresMode), helpstring("Notifies the client")] HRESULT ChangeKaraokePresMode([in] VARIANT_BOOL bEnabled); - [id(eventidChangeVideoPresMode), helpstring("Notifies the client")] HRESULT ChangeVideoPresMode([in] VARIANT_BOOL bEnabled); - }; - - [object, dual, oleautomation, hidden, - uuid(B8BE681A-EB2C-47f0-B415-94D5452F0E05), - helpstring("IMSVidWebDVDAdm Interface"), - pointer_default(unique) - ] - interface IMSVidWebDVDAdm : IDispatch - { - [id(dispidChangePassword), helpstring("method ChangePassword")] HRESULT ChangePassword([in]BSTR strUserName, [in]BSTR strOld, [in]BSTR strNew); - [id(dispidSaveParentalLevel), helpstring("method SaveParentalLevel")] HRESULT SaveParentalLevel([in]long level,[in]BSTR strUserName, [in]BSTR strPassword); - [id(dispidSaveParentalCountry), helpstring("method SaveParentalCountry")] HRESULT SaveParentalCountry([in]long country,[in]BSTR strUserName, [in]BSTR strPassword); - [id(dispidConfirmPassword), hidden, restricted, helpstring("method ConfirmPassword")] HRESULT ConfirmPassword([in]BSTR strUserName, [in]BSTR strPassword, [out, retval] VARIANT_BOOL *pVal); - [id(dispidGetParentalLevel), helpstring("method GetParentalLevel")] HRESULT GetParentalLevel([out, retval] long *lLevel); - [id(dispidGetParentalCountry), helpstring("method GetParentalCountry")] HRESULT GetParentalCountry([out, retval] long *lCountry); - [propget, id(dispidDefaultAudioLCID), helpstring("property DefaultAudioLCID")] HRESULT DefaultAudioLCID([out, retval] long *pVal); - [propput, id(dispidDefaultAudioLCID), helpstring("property DefaultAudioLCID")] HRESULT DefaultAudioLCID([in] long newVal); - [propget, id(dispidDefaultSubpictureLCID), helpstring("property DefaultSubpictureLCID")] HRESULT DefaultSubpictureLCID([out, retval] long *pVal); - [propput, id(dispidDefaultSubpictureLCID), helpstring("property DefaultSubpictureLCID")] HRESULT DefaultSubpictureLCID([in] long newVal); - [propget, id(dispidDefaultMenuLCID), helpstring("property DefaultMenuLCID")] HRESULT DefaultMenuLCID([out, retval] long *pVal); - [propput, id(dispidDefaultMenuLCID), helpstring("property DefaultMenuLCID")] HRESULT DefaultMenuLCID([in] long newVal); - [propget, id(dispidBookmarkOnStop), helpstring("property BookmarkOnStop")] HRESULT BookmarkOnStop([out, retval] VARIANT_BOOL *pVal); - [propput, id(dispidBookmarkOnStop), helpstring("property BookmarkOnStop")] HRESULT BookmarkOnStop([in] VARIANT_BOOL newVal); - }; - - -/////////////////////////////////////////////////////////////////////////////// -// -// output devices -// -/////////////////////////////////////////////////////////////////////////////// - - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, - uuid(37B03546-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control Output Device Interface"), - pointer_default(unique) - ] - interface IMSVidOutputDevice : IMSVidDevice { - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, - uuid(2E6A14E2-571C-11d3-B652-00C04F79498E), - helpstring("MS Video Control Output Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidOutputDeviceEvent : IMSVidDeviceEvent { - }; - - -/////////////////////////////////////////////////////////////////////////////// -// -// features -// -/////////////////////////////////////////////////////////////////////////////// - - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, - uuid(37B03547-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control Feature Interface"), - pointer_default(unique) - ] - interface IMSVidFeature : IMSVidDevice { - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, - uuid(3DD2903C-E0AA-11d2-B63A-00C04F79498E), - helpstring("MS Video Control Feature Event Interface"), - pointer_default(unique) - ] - interface IMSVidFeatureEvent : IMSVidDeviceEvent { - }; - - - - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, - uuid(C0020FD4-BEE7-43d9-A495-9F213117103D), - helpstring("MS Video Control Encoder Feature Interface"), - pointer_default(unique) - ] - interface IMSVidEncoder : IMSVidFeature { - [propget, id(dispid_videoencoderint)] HRESULT VideoEncoderInterface([out, retval] IUnknown **ppEncInt); - [propget, id(dispid_audioencoderint)] HRESULT AudioEncoderInterface([out, retval] IUnknown **ppEncInt); - }; - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, - uuid(11EBC158-E712-4d1f-8BB3-01ED5274C4CE), - helpstring("MS Video Control XDS Feature Interface"), - pointer_default(unique) - ] - interface IMSVidXDS : IMSVidFeature { - }; - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, hidden, - uuid(334125C1-77E5-11d3-B653-00C04F79498E), - helpstring("MS Video Control Data Services Feature Interface"), - pointer_default(unique) - ] - interface IMSVidDataServices : IMSVidFeature { - - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, hidden, - uuid(334125C2-77E5-11d3-B653-00C04F79498E), - helpstring("MS Video Control Data Services Feature Event Interface"), - pointer_default(unique) - ] - interface IMSVidDataServicesEvent : IMSVidDeviceEvent { - }; - - - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, hidden, - uuid(99652EA1-C1F7-414f-BB7B-1C967DE75983), - helpstring("MS Video Control Closed Captioning Feature Interface"), - pointer_default(unique) - ] - interface IMSVidClosedCaptioning : IMSVidFeature { - [propget, id(dispidCCEnable)] HRESULT Enable([out, retval] VARIANT_BOOL *On); - [propput, id(dispidCCEnable)] HRESULT Enable([in] VARIANT_BOOL On); - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, hidden, - uuid(E00CB864-A029-4310-9987-A873F5887D97), - helpstring("MS Video Control Closed Captioning Feature Interface 2"), - pointer_default(unique) - ] - interface IMSVidClosedCaptioning2 : IMSVidClosedCaptioning{ - [propget, id(dispidService)] HRESULT Service([out, retval] MSVidCCService *On); - [propput, id(dispidService)] HRESULT Service([in] MSVidCCService On); - }; - - -/////////////////////////////////////////////////////////////////////////////// -// -// video renderer -// -/////////////////////////////////////////////////////////////////////////////// -// need to add msvidvidoerenderer2 that has allocator prestenter stuff... - typedef enum { - sslFullSize, - sslClipByOverScan, - sslClipByClipRect, - } SourceSizeList; - - /////////////////////////////////////////////////////////////////////////////////////// - - [object, dual, oleautomation, hidden, - uuid(37B03540-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control Video Renderer Device Interface"), - pointer_default(unique) - ] - interface IMSVidVideoRenderer : IMSVidOutputDevice { - // Properties - [propget, id(dispidCustomCompositorClass)] HRESULT CustomCompositorClass([out, retval] BSTR *CompositorCLSID); - [propput, id(dispidCustomCompositorClass)] HRESULT CustomCompositorClass([in] BSTR CompositorCLSID); - [propget, hidden, restricted, id(dispid_CustomCompositorClass)] HRESULT _CustomCompositorClass([out, retval] GUID* CompositorCLSID); - [propput, hidden, restricted, id(dispid_CustomCompositorClass)] HRESULT _CustomCompositorClass([in] REFCLSID CompositorCLSID); - [propget, hidden, restricted, id(dispid_CustomCompositor)] HRESULT _CustomCompositor([out, retval] IVMRImageCompositor** Compositor); - [propput, hidden, restricted, id(dispid_CustomCompositor)] HRESULT _CustomCompositor([in] IVMRImageCompositor* Compositor); - // - [propget, id(dispidMixerBitmap)] HRESULT MixerBitmap([out,retval] IPictureDisp** MixerPictureDisp); - [propget, hidden, restricted, id(dispid_MixerBitmap)] HRESULT _MixerBitmap([out, retval] IVMRMixerBitmap ** MixerPicture); - [propput, id(dispidMixerBitmap)] HRESULT MixerBitmap([in] IPictureDisp* MixerPictureDisp); - [propput, hidden, restricted, id(dispid_MixerBitmap)] HRESULT _MixerBitmap([in] VMRALPHABITMAP * MixerPicture); - [propget, id(dispidMixerBitmapRect)] HRESULT MixerBitmapPositionRect([out,retval] IMSVidRect **rDest); - [propput, id(dispidMixerBitmapRect)] HRESULT MixerBitmapPositionRect([in] IMSVidRect *rDest); - [propget, id(dispidMixerBitmapOpacity)] HRESULT MixerBitmapOpacity([out,retval]int *opacity); - [propput, id(dispidMixerBitmapOpacity)] HRESULT MixerBitmapOpacity([in]int opacity); - [id(dispidSetupMixerBitmap)] HRESULT SetupMixerBitmap([in] IPictureDisp * MixerPictureDisp, [in] long Opacity, [in] IMSVidRect *rDest); - - // display surface control - [propget, id(dispidSourceSize)] HRESULT SourceSize([retval, out] SourceSizeList *CurrentSize); - [propput, id(dispidSourceSize)] HRESULT SourceSize([in] SourceSizeList NewSize); - - [propget, id(dispidDevOverScan), helpstring("trim each source edge by this amount(in hundredths of percent, e.g. 1.75% == 175)")] HRESULT OverScan([retval, out] long *plPercent); - [propput, id(dispidDevOverScan), helpstring("trim each source edge by this amount(in hundredths of percent, e.g. 1.75% == 175)")] HRESULT OverScan([in] long lPercent); - - [propget, id(dispidAvailableSourceRect)] HRESULT AvailableSourceRect([out, retval] IMSVidRect **pRect); - [propget, id(dispidMaxVidRect)] HRESULT MaxVidRect([out, retval] IMSVidRect **ppVidRect); - [propget, id(dispidMinVidRect)] HRESULT MinVidRect([out, retval] IMSVidRect **ppVidRect); - [propget, id(dispidClippedSourceRect)] HRESULT ClippedSourceRect([out, retval] IMSVidRect **pRect); - [propput, id(dispidClippedSourceRect)] HRESULT ClippedSourceRect([in] IMSVidRect *pRect); - [propget, id(dispidUsingOverlay)] HRESULT UsingOverlay([out, retval] VARIANT_BOOL *UseOverlayVal); - [propput, id(dispidUsingOverlay)] HRESULT UsingOverlay([in] VARIANT_BOOL UseOverlayVal); - [id(dispidCapture)] HRESULT Capture([out, retval] IPictureDisp **currentImage); - [propget, id(dispid_FramesPerSecond), helpstring("FramesPerSecond")] HRESULT FramesPerSecond([out, retval] long *pVal); - [propget, id(dispid_DecimateInput), helpstring("DecimateInput")] HRESULT DecimateInput([out,retval] VARIANT_BOOL *pDeci); - [propput, id(dispid_DecimateInput), helpstring("DecimateInput")] HRESULT DecimateInput([in] VARIANT_BOOL pDeci); - - // Methods - - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, hidden, - uuid(37B03545-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control Video Renderer Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidVideoRendererEvent : IMSVidOutputDeviceEvent { - [id(eventidOverlayUnavailable), helpstring("HW Overlay surface in use or not present")] HRESULT OverlayUnavailable(); - }; - -/////////////////////////////////////////////////////////////////////////////// -// -// Stream Buffer -// Sink and Source -// -/////////////////////////////////////////////////////////////////////////////// -//// -// Stream Buffer Recording Control Object - ////////////////////////////////////////////////////////////////////////////////////// - [ - object, - dual, - oleautomation, - hidden, - nonextensible, - pointer_default(unique), - uuid(160621AA-BBBC-4326-A824-C395AEBC6E74), - helpstring("IMSVidStreamBufferRecordingControl Interface"), - ] - interface IMSVidStreamBufferRecordingControl : IDispatch { - [propget, id(dispidstarttime), helpstring("method StartTime, values in milliseconds")]HRESULT StartTime ([out, retval] long *rtStart) ; - [propput, id(dispidstarttime), helpstring("method StartTime, values in milliseconds")]HRESULT StartTime ([in] long rtStart) ; - [propget, id(dispidstoptime), helpstring("method StopTime, values in milliseconds")]HRESULT StopTime ([out, retval] long *rtStop) ; - [propput, id(dispidstoptime), helpstring("method StopTime, values in milliseconds")]HRESULT StopTime ([in] long rtStop) ; - [propget, id(dispidrecordingstopped), helpstring("method RecordingStopped")]HRESULT RecordingStopped ([out, retval] VARIANT_BOOL* phResult) ; - [propget, id(dispidrecordingstarted), helpstring("method RecordingStarted")]HRESULT RecordingStarted ([out, retval] VARIANT_BOOL* phResult); - [propget, id(dispidrecordingtype), helpstring("property returns type of recording object")] HRESULT RecordingType ([out, retval] RecordingType *dwType); - [propget, id(dispidRecordingAttribute), helpstring("get Recording Attribute interface")] HRESULT RecordingAttribute ([out, retval] IUnknown **pRecordingAttribute); - }; - // Sink - [object, dual, oleautomation, hidden, - uuid(159DBB45-CD1B-4dab-83EA-5CB1F4F21D07), - helpstring("MS Video Control Stream Buffer Sink Output Device Interface"), - pointer_default(unique) - ] - interface IMSVidStreamBufferSink : IMSVidOutputDevice { - [propget, id(dispidStreamBufferContentRecording), helpstring("New Recording Object")] HRESULT ContentRecorder([in]BSTR pszFilename, [retval, out] IMSVidStreamBufferRecordingControl ** pRecordingIUnknown ) ; - [propget, id(dispidStreamBufferReferenceRecording), helpstring("New Recording Object")] HRESULT ReferenceRecorder([in]BSTR pszFilename, [retval, out] IMSVidStreamBufferRecordingControl ** pRecordingIUnknown ) ; - [propget, id(dispidStreamBufferSinkName), helpstring("Sink Name")] HRESULT SinkName([retval, out] BSTR* pName); - [propput, id(dispidStreamBufferSinkName), helpstring("Sink Name")] HRESULT SinkName([in] BSTR Name); - [id(dispidNameSetLock), helpstring("Name Set Lock")] HRESULT NameSetLock(); - [propget, id(dispidSBEConfigure), helpstring("SBE Sink Interface")] HRESULT SBESink([retval, out] IUnknown** sbeConfig); - - }; - /////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, hidden, - uuid(F798A36B-B05B-4bbe-9703-EAEA7D61CD51), - helpstring("MS Video Control Stream Buffer Sink Output Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidStreamBufferSinkEvent : IMSVidOutputDeviceEvent { - [id(eventidSinkCertificateFailure), helpstring("Sink Certificate Failure")] HRESULT CertificateFailure(); - [id(eventidSinkCertificateSuccess), helpstring("Sink Certificate Success")] HRESULT CertificateSuccess(); - [id(eventidWriteFailure), helpstring("Sink Write Failure")] HRESULT WriteFailure(); - }; -/////////////////////////////////////////////////////////////////////////////////////// -// SBE Source Playback - [object, dual, oleautomation, hidden, - uuid(EB0C8CF9-6950-4772-87B1-47D11CF3A02F), - helpstring("MS Video Control Stream Buffer Source Device Interface"), - pointer_default(unique) - ] - interface IMSVidStreamBufferSource : IMSVidFilePlayback { - [propget, id(dispidstart), helpstring("Start")] HRESULT Start([out, retval] long *lStart); - [propget, id(dispid_RecordingAttribute), helpstring("get Recording Attribute interface")] HRESULT RecordingAttribute ([out, retval] IUnknown **pRecordingAttribute); - [id(dispid_CurrentRatings), helpstring("Current Ratings for SBE playback")] HRESULT CurrentRatings([out] EnTvRat_System *pEnSystem, [out] EnTvRat_GenericLevel *pEnRating, [out] LONG *pBfEnAttr); // attrs are bitfields of BfEnTvRat_GenericAttributes - [id(dispid_MaxRatingsLevel), helpstring("Maximum Ratings Level for SBE playback")] HRESULT MaxRatingsLevel([in] EnTvRat_System enSystem, [in] EnTvRat_GenericLevel enRating, [in] LONG lbfEnAttr); - [propput, id(dispid_BlockUnrated), helpstring("Block unrated content")] HRESULT BlockUnrated([in] VARIANT_BOOL bBlock); - [propput, id(dispid_UnratedDelay), helpstring("Maximum Ratings Level for SBE playback")] HRESULT UnratedDelay([in] long dwDelay); - [propget, id(dispidsbesource), helpstring("Stream Buffer Source Interface")] HRESULT SBESource([out, retval] IUnknown **sbeFilter); - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, hidden, - uuid(50CE8A7D-9C28-4DA8-9042-CDFA7116F979), - helpstring("MS Video Control Stream Buffer Source Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidStreamBufferSourceEvent : IMSVidFilePlaybackEvent { - [id(eventidSourceCertificateFailure), helpstring("Source Certificate Failure")] HRESULT CertificateFailure(); - [id(eventidSourceCertificateSuccess), helpstring("Source Certificate Success")] HRESULT CertificateSuccess(); - [id(eventidRatingsBlocked), helpstring("Ratings Blocked")] HRESULT RatingsBlocked(); - [id(eventidRatingsUnlocked), helpstring("Ratings Unblocked")] HRESULT RatingsUnblocked(); - [id(eventidRatingsChanged), helpstring("Ratings Changed")] HRESULT RatingsChanged(); - [id(eventidTimeHole), helpstring("Source Time Hole")] HRESULT TimeHole([in] long StreamOffsetMS, [in] long SizeMS); - [id(eventidStaleDataRead), helpstring("Source Stale Data Read")] HRESULT StaleDataRead(); - [id(eventidContentBecomingStale), helpstring("Source Content Becoming Stale")] HRESULT ContentBecomingStale(); - [id(eventidStaleFileDeleted), helpstring("Source Stale File Deleted")] HRESULT StaleFileDeleted(); - }; - -/////////////////////////////////////////////////////////////////////////////// -// -// video renderer II -// -/////////////////////////////////////////////////////////////////////////////// - - [object, dual, oleautomation, hidden, - uuid(6BDD5C1E-2810-4159-94BC-05511AE8549B), - helpstring("MS Video Control Video Renderer Device Interface"), - pointer_default(unique) - ] - interface IMSVidVideoRenderer2 : IMSVidVideoRenderer { - // Properties - [propget, id(dispidAlloctor)] HRESULT Allocator([out, retval] IUnknown ** AllocPresent); - [propget, id(dispid_Allocator), hidden, restricted] HRESULT _Allocator([out, retval] IVMRSurfaceAllocator ** AllocPresent); - // Quick Notes on ID's - // 1. default id is the lower 32 bits of the IUnknown pointer for the Vidctl - // 2. if the id is not yet set get_Allocator_ID will return -1 - [propget, id(dispidAllocPresentID)] HRESULT Allocator_ID([out, retval] long *ID); - [id(dispidSetAllocator)] HRESULT SetAllocator([in] IUnknown* AllocPresent, [in, defaultvalue(-1)] long ID); - [id(dispid_SetAllocator), hidden, restricted] HRESULT _SetAllocator([in] IVMRSurfaceAllocator* AllocPresent, [in, defaultvalue(-1)] long ID); - [propput, id(dispid_SuppressEffects)] HRESULT SuppressEffects( [in] VARIANT_BOOL bSuppress); - [propget, id(dispid_SuppressEffects)] HRESULT SuppressEffects( [out, retval] VARIANT_BOOL *bSuppress); - // display surface control - // Methods - - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, hidden, - uuid(7145ED66-4730-4fdb-8A53-FDE7508D3E5E), - helpstring("MS Video Control Video Renderer Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidVideoRendererEvent2 : IMSVidOutputDeviceEvent { - [id(eventidOverlayUnavailable), helpstring("HW Overlay surface in use or not present")] HRESULT OverlayUnavailable(); - }; - -/////////////////////////////////////////////////////////////////////////////// -// -// audio renderer -// -/////////////////////////////////////////////////////////////////////////////// - - /////////////////////////////////////////////////////////////////////////////////////// - [object, dual, oleautomation, hidden, - uuid(37B0353F-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control Audio Renderer Device Interface"), - pointer_default(unique) - ] - interface IMSVidAudioRenderer : IMSVidOutputDevice { - [propput, id(dispidDevVolume)] HRESULT Volume([in] long lVol); - [propget, id(dispidDevVolume)] HRESULT Volume([retval, out] long *lVol); - [propput, id(dispidDevBalance)] HRESULT Balance([in] long lBal); - [propget, id(dispidDevBalance)] HRESULT Balance([retval, out] long *lBal); - }; - - /////////////////////////////////////////////////////////////////////////////////////// - [object, oleautomation, hidden, - uuid(37B03541-A4C8-11d2-B634-00C04F79498E), - helpstring("MS Video Control Audio Renderer Device Event Interface"), - pointer_default(unique) - ] - interface IMSVidAudioRendererEvent : IMSVidOutputDeviceEvent { - }; - -/////////////////////////////////////////////////////////////////////////////////////// -// device collection -/////////////////////////////////////////////////////////////////////////////////////// - - [object, dual, oleautomation, hidden, - uuid(C5702CD1-9B79-11d3-B654-00C04F79498E), - helpstring("MS Video Control Input Device Writable Collection Interface"), - pointer_default(unique) - ] - interface IMSVidInputDevices : IDispatch { - [propget, id(dispidCount)] HRESULT Count([out, retval] long *lCount); - [propget, id(DISPID_NEWENUM), hidden, restricted] HRESULT _NewEnum([out, retval] IEnumVARIANT **pD); - [propget, id(DISPID_VALUE)] HRESULT Item([in] VARIANT v, [out, retval] IMSVidInputDevice **pDB); - [id(DISPID_ADDITEM)] HRESULT Add([in] IMSVidInputDevice *pDB); - [id(DISPID_REMOVEITEM)] HRESULT Remove([in] VARIANT v); - }; - - [object, dual, oleautomation, hidden, - uuid(C5702CD2-9B79-11d3-B654-00C04F79498E), - helpstring("MS Video Control Output Device Writable Collection Interface"), - pointer_default(unique) - ] - interface IMSVidOutputDevices : IDispatch { - [propget, id(dispidCount)] HRESULT Count([out, retval] long *lCount); - [propget, id(DISPID_NEWENUM), hidden, restricted] HRESULT _NewEnum([out, retval] IEnumVARIANT **pD); - [propget, id(DISPID_VALUE)] HRESULT Item([in] VARIANT v, [out, retval] IMSVidOutputDevice **pDB); - [id(DISPID_ADDITEM)] HRESULT Add([in] IMSVidOutputDevice *pDB); - [id(DISPID_REMOVEITEM)] HRESULT Remove([in] VARIANT v); - }; - - [object, dual, oleautomation, hidden, - uuid(C5702CD3-9B79-11d3-B654-00C04F79498E), - helpstring("MS Video Control Video Renderer Device Writable Collection Interface"), - pointer_default(unique) - ] - interface IMSVidVideoRendererDevices : IDispatch { - [propget, id(dispidCount)] HRESULT Count([out, retval] long *lCount); - [propget, id(DISPID_NEWENUM), hidden, restricted] HRESULT _NewEnum([out, retval] IEnumVARIANT **pD); - [propget, id(DISPID_VALUE)] HRESULT Item([in] VARIANT v, [out, retval] IMSVidVideoRenderer **pDB); - [id(DISPID_ADDITEM)] HRESULT Add([in] IMSVidVideoRenderer *pDB); - [id(DISPID_REMOVEITEM)] HRESULT Remove([in] VARIANT v); - }; - - [object, dual, oleautomation, hidden, - uuid(C5702CD4-9B79-11d3-B654-00C04F79498E), - helpstring("MS Video Control Audio Renderer Device Writable Collection Interface"), - pointer_default(unique) - ] - interface IMSVidAudioRendererDevices : IDispatch { - [propget, id(dispidCount)] HRESULT Count([out, retval] long *lCount); - [propget, id(DISPID_NEWENUM), hidden, restricted] HRESULT _NewEnum([out, retval] IEnumVARIANT **pD); - [propget, id(DISPID_VALUE)] HRESULT Item([in] VARIANT v, [out, retval] IMSVidAudioRenderer **pDB); - [id(DISPID_ADDITEM)] HRESULT Add([in] IMSVidAudioRenderer *pDB); - [id(DISPID_REMOVEITEM)] HRESULT Remove([in] VARIANT v); - }; - - [object, dual, oleautomation, hidden, - uuid(C5702CD5-9B79-11d3-B654-00C04F79498E), - helpstring("MS Video Control Features Writable Collection Interface"), - pointer_default(unique) - ] - interface IMSVidFeatures: IDispatch { - [propget, id(dispidCount)] HRESULT Count([out, retval] long *lCount); - [propget, id(DISPID_NEWENUM), hidden, restricted] HRESULT _NewEnum([out, retval] IEnumVARIANT **pD); - [propget, id(DISPID_VALUE)] HRESULT Item([in] VARIANT v, [out, retval] IMSVidFeature **pDB); - [id(DISPID_ADDITEM)] HRESULT Add([in] IMSVidFeature *pDB); - [id(DISPID_REMOVEITEM)] HRESULT Remove([in] VARIANT v); - }; - -#endif // TUNING_MODEL_ONLY - -// end of file segment.idl diff --git a/sdk/dx8sdk/Include/DShowIDL/Videoacc.idl b/sdk/dx8sdk/Include/DShowIDL/Videoacc.idl deleted file mode 100644 index 6c55aa73..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/Videoacc.idl +++ /dev/null @@ -1,172 +0,0 @@ -//------------------------------------------------------------------------------ -// File: VideoAcc.idl -// -// Desc: An interface exposed by the overlay mixer to help decode samples -// using hardware video acceleration. -// -// Copyright (c) 1992-2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -import "unknwn.idl"; - -cpp_quote("//") -cpp_quote("// The following declarations within the 'if 0' block are dummy typedefs used to make") -cpp_quote("// the motncomp.idl file build. The actual definitions are contained in ddraw.h and amva.h") -cpp_quote("//") -cpp_quote("#if 0") - -typedef void* LPVOID; -typedef void* LPGUID; -typedef void* LPDIRECTDRAWSURFACE; -typedef void* LPDDPIXELFORMAT; -typedef void* LPAMVAInternalMemInfo; -typedef void AMVAUncompDataInfo; -typedef void* LPAMVACompBufferInfo; -typedef void AMVABUFFERINFO; -typedef void AMVAEndFrameInfo; -typedef void* LPAMVAUncompBufferInfo; -typedef void AMVABeginFrameInfo; -typedef IUnknown* IMediaSample; - -cpp_quote("#endif") -cpp_quote("#include ") -cpp_quote("#include ") - - -[ - local, - object, - uuid(256A6A21-FBAD-11d1-82BF-00A0C9696C8F), - helpstring("IAMVideoAcceleratorNotify Interface"), - pointer_default(unique) -] - -// IAMVideoAcceleratorNotify -interface IAMVideoAcceleratorNotify : IUnknown -{ - // get information necessary to allocate uncompressed data buffers - // which is not part of the mediatype format (like how many buffers to allocate etc) - HRESULT GetUncompSurfacesInfo([in] const GUID *pGuid, [in] [out] LPAMVAUncompBufferInfo pUncompBufferInfo); - - // set information regarding allocated uncompressed data buffers - HRESULT SetUncompSurfacesInfo([in] DWORD dwActualUncompSurfacesAllocated); - - // get information necessary to create video accelerator object. It is the caller's responsibility - // to call CoTaskMemFree() on *ppMiscData - HRESULT GetCreateVideoAcceleratorData([in] const GUID *pGuid, [out] LPDWORD pdwSizeMiscData, [out] LPVOID *ppMiscData); -}; - -[ - local, - object, - uuid(256A6A22-FBAD-11d1-82BF-00A0C9696C8F), - helpstring("IAMVideoAccelerator Interface"), - pointer_default(unique) -] - -// IAMVideoAccelerator -interface IAMVideoAccelerator : IUnknown -{ - // pdwNumGuidsSupported is an IN OUT paramter - // pGuidsSupported is an IN OUT paramter - // if pGuidsSupported is NULL, pdwNumGuidsSupported should return back with the - // number of uncompressed pixel formats supported - // Otherwise pGuidsSupported is an array of *pdwNumGuidsSupported structures - HRESULT GetVideoAcceleratorGUIDs([in] [out] LPDWORD pdwNumGuidsSupported, [in] [out] LPGUID pGuidsSupported); - - // pGuid is an IN parameter - // pdwNumFormatsSupported is an IN OUT paramter - // pFormatsSupported is an IN OUT paramter (caller should make sure to set the size of EACH struct) - // if pFormatsSupported is NULL, pdwNumFormatsSupported should return back with - // the number of uncompressed pixel formats supported - // Otherwise pFormatsSupported is an array of *pdwNumFormatsSupported structures - HRESULT GetUncompFormatsSupported( [in] const GUID *pGuid, [in] [out] LPDWORD pdwNumFormatsSupported, - [in] [out] LPDDPIXELFORMAT pFormatsSupported); - - // pGuid is an IN parameter - // pamvaUncompDataInfo is an IN parameter - // pamvaInternalMemInfo is an IN OUT parameter (caller should make sure to set the size of struct) - // currently only gets info about how much scratch memory will the hal allocate for its private use - HRESULT GetInternalMemInfo([in] const GUID *pGuid, [in] const AMVAUncompDataInfo *pamvaUncompDataInfo, - [in] [out] LPAMVAInternalMemInfo pamvaInternalMemInfo); - - // pGuid is an IN parameter - // pamvaUncompDataInfo is an IN parameter - // pdwNumTypesCompBuffers is an IN OUT paramter - // pamvaCompBufferInfo is an IN OUT paramter (caller should make sure to set the size of EACH struct) - // if pamvaCompBufferInfo is NULL, pdwNumTypesCompBuffers should return back with the number of types of - // compressed buffers - // Otherwise pamvaCompBufferInfo is an array of *pdwNumTypesCompBuffers structures - HRESULT GetCompBufferInfo([in] const GUID *pGuid, [in] const AMVAUncompDataInfo *pamvaUncompDataInfo, - [in] [out] LPDWORD pdwNumTypesCompBuffers, [out] LPAMVACompBufferInfo pamvaCompBufferInfo); - - - // pdwNumTypesCompBuffers is an IN OUT paramter - // pamvaCompBufferInfo is an IN OUT paramter (caller should make sure to set the size of EACH struct) - // if pamvaCompBufferInfo is NULL, pdwNumTypesCompBuffers should return back with the number of types of - // compressed buffers - // Otherwise pamvaCompBufferInfo is an array of *pdwNumTypesCompBuffers structures - // only valid to call this after the pins are connected - HRESULT GetInternalCompBufferInfo([in] [out] LPDWORD pdwNumTypesCompBuffers, [out] LPAMVACompBufferInfo pamvaCompBufferInfo); - - // begin a frame, the pMiscData is passed directly to the hal - // only valid to call this after the pins are connected - // Tells the ovmixer which frame is the destination - // frame. Use indices (valid vales are [0 .. pdwNumSurfacesAllocated-1]) to specify frames - HRESULT BeginFrame([in] const AMVABeginFrameInfo *amvaBeginFrameInfo); - - // end a frame, the pMiscData is passed directly to the hal - // only valid to call this after the pins are connected - HRESULT EndFrame([in] const AMVAEndFrameInfo *pEndFrameInfo); - - // lock and obtain access to a single buffer - // only valid to call this after the pins are connected - // Buffers are identified by type and index within that type - // Specifiying read-only will allow access to busy reference - // frames - // Output (uncompressed) frames use a type index of 0xFFFFFFFF - HRESULT GetBuffer( - [in] DWORD dwTypeIndex, - [in] DWORD dwBufferIndex, - [in] BOOL bReadOnly, - [out] LPVOID *ppBuffer, - [out] LONG *lpStride); - - // unlock a single buffer - // Buffers are identified by type and index within that type - // only valid to call this after the pins are connected - HRESULT ReleaseBuffer([in] DWORD dwTypeIndex, [in] DWORD dwBufferIndex); - - // Perform a decompression operation - // Private data can be passed to and from a driver - // identifiers for the corresponding members of pamvaMacroBlockInfo - // pamvaMacroBlockInfo is an IN parameter which is array (of length dwNumBlocks) of structures - // only valid to call this after the pins are connected - HRESULT Execute( - [in] DWORD dwFunction, - [in] LPVOID lpPrivateInputData, - [in] DWORD cbPrivateInputData, - [in] LPVOID lpPrivateOutputDat, - [in] DWORD cbPrivateOutputData, - [in] DWORD dwNumBuffers, - [in] const AMVABUFFERINFO *pamvaBufferInfo); - - // query the decode status of a particular decompression operation - // dwTypeIndex and dwBufferIndex define the buffer whose status is - // being queried - HRESULT QueryRenderStatus([in] DWORD dwTypeIndex, - [in] DWORD dwBufferIndex, - [in] DWORD dwFlags); - - // display a frame. The mediasample contains the timestamps etc for the frame to be displayed - // this call is a non-blocking call - // only valid to call this after the pins are connected - HRESULT DisplayFrame([in] DWORD dwFlipToIndex, [in] IMediaSample *pMediaSample); -}; - - - - - - diff --git a/sdk/dx8sdk/Include/DShowIDL/Vmrender.idl b/sdk/dx8sdk/Include/DShowIDL/Vmrender.idl deleted file mode 100644 index ed5e50ec..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/Vmrender.idl +++ /dev/null @@ -1,1092 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////// -// -// Public Interfaces for the Video Mixing Renderer DShow filter -// -// Copyright (c) 1999 - 2002, Microsoft Corporation. All rights reserved. -/////////////////////////////////////////////////////////////////////////////// - -cpp_quote("#if 0") -// This is temporary work around to persuade -// MIDL to allow forward declarations. -typedef DWORD* LPDIRECTDRAW7; -typedef DWORD* LPDIRECTDRAWSURFACE7; -typedef DWORD* LPDDPIXELFORMAT; -typedef DWORD* LPBITMAPINFOHEADER; -typedef struct {DWORD dw1; DWORD dw2;} DDCOLORKEY; -typedef DDCOLORKEY* LPDDCOLORKEY; -cpp_quote ("#endif") -cpp_quote("#include ") - - -// public interfaces supported by the VMR -interface IVMRSurface; - -interface IVMRSurfaceAllocator; -interface IVMRSurfaceAllocatorNotify; -interface IVMRImagePresenter; -interface IVMRImagePresenterConfig; - -interface IVMRWindowlessControl; -interface IVMRMixerControl; -interface IVMRMixerBitmap; -interface IVMRFilterConfig; -interface IVMRAspectRatioControl; -interface IVMRDeinterlaceControl; -interface IVMRMonitorConfig; - -interface IVMRImageCompositor; - -interface IVMRVideoStreamControl; - - - - -/////////////////////////////////////////////////////////////////////////////// -// -// Allocator Presenter interfaces -// -/////////////////////////////////////////////////////////////////////////////// - - - -//===================================================================== -// -// IVMRImagePresenter -// -//===================================================================== -typedef enum { - VMRSample_SyncPoint = 0x00000001, - VMRSample_Preroll = 0x00000002, - VMRSample_Discontinuity = 0x00000004, - VMRSample_TimeValid = 0x00000008, - VMRSample_SrcDstRectsValid= 0x00000010 -} VMRPresentationFlags; - - -typedef struct tagVMRPRESENTATIONINFO { - DWORD dwFlags; - LPDIRECTDRAWSURFACE7 lpSurf; - REFERENCE_TIME rtStart; - REFERENCE_TIME rtEnd; - SIZE szAspectRatio; - RECT rcSrc; - RECT rcDst; - DWORD dwTypeSpecificFlags; - DWORD dwInterlaceFlags; -} VMRPRESENTATIONINFO; - -[ - local, - object, - local, - uuid(CE704FE7-E71E-41fb-BAA2-C4403E1182F5), - helpstring("IVMRImagePresenter Interface"), - pointer_default(unique) -] -interface IVMRImagePresenter : IUnknown -{ - HRESULT StartPresenting( - [in] DWORD_PTR dwUserID - ); - - HRESULT StopPresenting( - [in] DWORD_PTR dwUserID - ); - - - HRESULT PresentImage( - [in] DWORD_PTR dwUserID, - [in] VMRPRESENTATIONINFO* lpPresInfo - ); -}; - - -//===================================================================== -// -// IVMRSurfaceAllocator -// -//===================================================================== - -typedef enum { - AMAP_PIXELFORMAT_VALID = 0x01, - AMAP_3D_TARGET = 0x02, - AMAP_ALLOW_SYSMEM = 0x04, - AMAP_FORCE_SYSMEM = 0x08, - AMAP_DIRECTED_FLIP = 0x10, - AMAP_DXVA_TARGET = 0x20 -} VMRSurfaceAllocationFlags; - -typedef struct tagVMRALLOCATIONINFO { - DWORD dwFlags; - LPBITMAPINFOHEADER lpHdr; - LPDDPIXELFORMAT lpPixFmt; - SIZE szAspectRatio; - DWORD dwMinBuffers; - DWORD dwMaxBuffers; - DWORD dwInterlaceFlags; - SIZE szNativeSize; -} VMRALLOCATIONINFO; - -[ - local, - object, - local, - uuid(31ce832e-4484-458b-8cca-f4d7e3db0b52), - helpstring("IVMRSurfaceAllocator Interface"), - pointer_default(unique) -] -interface IVMRSurfaceAllocator : IUnknown -{ - HRESULT AllocateSurface( - [in] DWORD_PTR dwUserID, - [in] VMRALLOCATIONINFO* lpAllocInfo, - [in] [out] DWORD* lpdwActualBuffers, - [out] LPDIRECTDRAWSURFACE7 *lplpSurface - ); - - HRESULT FreeSurface( - [in] DWORD_PTR dwID - ); - - HRESULT PrepareSurface( - [in] DWORD_PTR dwUserID, - [in] LPDIRECTDRAWSURFACE7 lpSurface, - [in] DWORD dwSurfaceFlags - ); - - HRESULT AdviseNotify( - [in] IVMRSurfaceAllocatorNotify* lpIVMRSurfAllocNotify - ); -}; - - -//===================================================================== -// -// IVMRSurfaceAllocatorNotify -// -//===================================================================== -[ - local, - object, - local, - uuid(aada05a8-5a4e-4729-af0b-cea27aed51e2), - helpstring("IVMRSurfaceAllocatorNotify Interface"), - pointer_default(unique) -] -interface IVMRSurfaceAllocatorNotify : IUnknown -{ - HRESULT AdviseSurfaceAllocator( - [in] DWORD_PTR dwUserID, - [in] IVMRSurfaceAllocator* lpIVRMSurfaceAllocator - ); - - HRESULT SetDDrawDevice( - [in] LPDIRECTDRAW7 lpDDrawDevice, - [in] HMONITOR hMonitor - ); - - HRESULT ChangeDDrawDevice( - [in] LPDIRECTDRAW7 lpDDrawDevice, - [in] HMONITOR hMonitor - ); - - HRESULT RestoreDDrawSurfaces(); - - HRESULT NotifyEvent( - [in] LONG EventCode, - [in] LONG_PTR Param1, - [in] LONG_PTR Param2 - ); - - HRESULT SetBorderColor( - [in] COLORREF clrBorder - ); -}; - - - -/////////////////////////////////////////////////////////////////////////////// -// -// Application control and configuration interfaces -// -/////////////////////////////////////////////////////////////////////////////// - - -//===================================================================== -// -// IVMRWindowlessControl -// -//===================================================================== -typedef enum { - VMR_ARMODE_NONE, - VMR_ARMODE_LETTER_BOX -} VMR_ASPECT_RATIO_MODE; - -[ - local, - object, - local, - uuid(0eb1088c-4dcd-46f0-878f-39dae86a51b7), - helpstring("IVMRWindowlessControl Interface"), - pointer_default(unique) -] -interface IVMRWindowlessControl : IUnknown -{ - // - ////////////////////////////////////////////////////////// - // Video size and position information - ////////////////////////////////////////////////////////// - // - HRESULT GetNativeVideoSize( - [out] LONG* lpWidth, - [out] LONG* lpHeight, - [out] LONG* lpARWidth, - [out] LONG* lpARHeight - ); - - HRESULT GetMinIdealVideoSize( - [out] LONG* lpWidth, - [out] LONG* lpHeight - ); - - HRESULT GetMaxIdealVideoSize( - [out] LONG* lpWidth, - [out] LONG* lpHeight - ); - - HRESULT SetVideoPosition( - [in] const LPRECT lpSRCRect, - [in] const LPRECT lpDSTRect - ); - - HRESULT GetVideoPosition( - [out] LPRECT lpSRCRect, - [out] LPRECT lpDSTRect - ); - - HRESULT GetAspectRatioMode( - [out] DWORD* lpAspectRatioMode - ); - - HRESULT SetAspectRatioMode( - [in] DWORD AspectRatioMode - ); - - // - ////////////////////////////////////////////////////////// - // Display and clipping management - ////////////////////////////////////////////////////////// - // - HRESULT SetVideoClippingWindow( - [in] HWND hwnd - ); - - HRESULT RepaintVideo( - [in] HWND hwnd, - [in] HDC hdc - ); - - HRESULT DisplayModeChanged(); - - - // - ////////////////////////////////////////////////////////// - // GetCurrentImage - // - // Returns the current image being displayed. This images - // is returned in the form of packed Windows DIB. - // - // GetCurrentImage can be called at any time, also - // the caller is responsible for free the returned memory - // by calling CoTaskMemFree. - // - // Excessive use of this function will degrade video - // playback performed. - ////////////////////////////////////////////////////////// - // - HRESULT GetCurrentImage( - [out] BYTE** lpDib - ); - - // - ////////////////////////////////////////////////////////// - // Border Color control - // - // 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. When the video - // straddles two monitors and when the VMR is trying - // to maintain the aspect ratio of the movies by letter - // boxing the video to fit within the specified destination - // rectangle. See SetAspectRatioMode above. - ////////////////////////////////////////////////////////// - // - HRESULT SetBorderColor( - [in] COLORREF Clr - ); - - HRESULT GetBorderColor( - [out] COLORREF* lpClr - ); - - // - ////////////////////////////////////////////////////////// - // Color key control only meaningful when the VMR is using - // and overlay - ////////////////////////////////////////////////////////// - // - HRESULT SetColorKey( - [in] COLORREF Clr - ); - - HRESULT GetColorKey( - [out] COLORREF* lpClr - ); -}; - - - -//===================================================================== -// -// IVMRMixerControl -// -//===================================================================== - -typedef enum { - MixerPref_NoDecimation = 0x00000001, // No decimation - full size - MixerPref_DecimateOutput = 0x00000002, // decimate output by 2 in x & y - MixerPref_ARAdjustXorY = 0x00000004, // adjust the aspect ratio in x or y - MixerPref_DecimationReserved = 0x00000008, // bits reserved for future use. - MixerPref_DecimateMask = 0x0000000F, - - MixerPref_BiLinearFiltering = 0x00000010, // use bi-linear filtering - MixerPref_PointFiltering = 0x00000020, // use point filtering - MixerPref_FilteringMask = 0x000000F0, // OR of all above flags - - MixerPref_RenderTargetRGB = 0x00000100, // Uses D3D to perform mixing - MixerPref_RenderTargetYUV = 0x00001000, // Uses DXVA to perform mixing - - MixerPref_RenderTargetYUV420 = 0x00000200, // Deprecated render target - MixerPref_RenderTargetYUV422 = 0x00000400, // Deprecated render target - MixerPref_RenderTargetYUV444 = 0x00000800, // Deprecated render target - MixerPref_RenderTargetReserved = 0x0000E000, // 3 bits reserved for future use. - MixerPref_RenderTargetMask = 0x0000FF00, // OR of all above flags - - // - // Dynamic changes that can be performed when the VMR's mixer is - // configured to use the YUV Render target (see MixerPref_RenderTargetYUV) - // These preferences can be applied while the graph is running and take effect - // when the next frame is composed by the mixer. - // - MixerPref_DynamicSwitchToBOB = 0x00010000, - MixerPref_DynamicDecimateBy2 = 0x00020000, - - MixerPref_DynamicReserved = 0x000C0000, - MixerPref_DynamicMask = 0x000F0000 - -} VMRMixerPrefs; - -// -// Normalized relative rectangle -// Coordinate ranges: x=[0...1) y=[0...1) -// Where the output window goes from 0,0 (closed inclusive lower bound) -// to 1,1 (open exclusive upper bound) -// -typedef struct _NORMALIZEDRECT -{ - float left; - float top; - float right; - float bottom; -} NORMALIZEDRECT, *PNORMALIZEDRECT; - -[ - local, - object, - local, - uuid(1c1a17b0-bed0-415d-974b-dc6696131599), - helpstring("IVMRMixerControl Interface"), - pointer_default(unique) -] -interface IVMRMixerControl : IUnknown -{ - HRESULT SetAlpha( - [in] DWORD dwStreamID, - [in] float Alpha // Source alpha premultication factor (global alpha for source) - ); - - HRESULT GetAlpha( - [in] DWORD dwStreamID, - [out] float* pAlpha - ); - - HRESULT SetZOrder( - [in] DWORD dwStreamID, - [in] DWORD dwZ - ); - - HRESULT GetZOrder( - [in] DWORD dwStreamID, - [out] DWORD* pZ - ); - - HRESULT SetOutputRect( - [in] DWORD dwStreamID, - [in] const NORMALIZEDRECT *pRect - ); - - HRESULT GetOutputRect( - [in] DWORD dwStreamID, - [out] NORMALIZEDRECT *pRect - ); - - HRESULT SetBackgroundClr( - [in] COLORREF ClrBkg - ); - - HRESULT GetBackgroundClr( - [in] COLORREF* lpClrBkg - ); - - HRESULT SetMixingPrefs( - [in] DWORD dwMixerPrefs // a combination of VMRMixingPrefFlags - ); - - HRESULT GetMixingPrefs( - [out] DWORD* pdwMixerPrefs - ); -}; - - -/////////////////////////////////////////////////////////////////////////////// -// -// VMR Multimon configuration interface -// -/////////////////////////////////////////////////////////////////////////////// -typedef struct tagVMRGUID { - GUID* pGUID; // is NULL if the default DDraw device - GUID GUID; // otherwise points to this GUID -} VMRGUID; - -#define VMRDEVICENAMELEN 32 -#define VMRDEVICEDESCRIPTIONLEN 256 - -typedef struct tagVMRMONITORINFO { - VMRGUID guid; - RECT rcMonitor; - HMONITOR hMon; - DWORD dwFlags; // described in MONITORINFOEX, currently only MONITORINFOF_PRIMARY - wchar_t szDevice[VMRDEVICENAMELEN]; - wchar_t szDescription[VMRDEVICEDESCRIPTIONLEN]; - LARGE_INTEGER liDriverVersion; - DWORD dwVendorId; - DWORD dwDeviceId; - DWORD dwSubSysId; - DWORD dwRevision; - // find out the DDCAPS using DDrawCreate on the monitor GUID -} VMRMONITORINFO; - -[ - object, - local, - uuid(9cf0b1b6-fbaa-4b7f-88cf-cf1f130a0dce), - helpstring("IVMRMonitorConfig Interface"), - pointer_default(unique) -] -interface IVMRMonitorConfig : IUnknown -{ - // Use this method on a Multi-Monitor system to specify to the - // mixer filter which Direct Draw driver should be used when connecting - // to an upstream decoder filter. - // - HRESULT SetMonitor( - [in] const VMRGUID *pGUID - ); - - // Use this method to determine the direct draw object that will be used when - // connecting the mixer filter to an upstream decoder filter. - // - HRESULT GetMonitor( - [out] VMRGUID *pGUID - ); - - // Use this method on a multi-monitor system to specify to the - // mixer filter the default Direct Draw device to use when - // connecting to an upstream filter. The default direct draw device - // can be overriden for a particular connection by SetMonitor method - // described above. - // - HRESULT SetDefaultMonitor( - [in] const VMRGUID *pGUID - ); - - // Use this method on a multi-monitor system to determine which - // is the default direct draw device the overlay mixer filter - // will use when connecting to an upstream filter. - // - HRESULT GetDefaultMonitor( - [out] VMRGUID *pGUID - ); - - // Use this method to get a list of Direct Draw device GUIDs and thier - // associated monitor information that the mixer can use when - // connecting to an upstream decoder filter. Passing down a NULL pInfo - // parameter allows the app to determine the required array size (returned - // in pdwNumDevices). Otherwise, dwNumDevices returns the actual - // number of devices retrieved. - // - HRESULT GetAvailableMonitors( - [out, size_is(dwMaxInfoArraySize)] VMRMONITORINFO* pInfo, - [in] DWORD dwMaxInfoArraySize, // in array members - [out] DWORD* pdwNumDevices // actual number of devices retrieved - ); -}; - - - - -/////////////////////////////////////////////////////////////////////////////// -// -// VMR Filter configuration interfaces -// -/////////////////////////////////////////////////////////////////////////////// - - -typedef enum { - RenderPrefs_RestrictToInitialMonitor = 0x00000000, // not implemented do not use - RenderPrefs_ForceOffscreen = 0x00000001, - RenderPrefs_ForceOverlays = 0x00000002, // fail if no overlays - RenderPrefs_AllowOverlays = 0x00000000, // overlay used by default - RenderPrefs_AllowOffscreen = 0x00000000, // offscreen used if no overlay - RenderPrefs_DoNotRenderColorKeyAndBorder = 0x00000008, // app paints color keys - RenderPrefs_Reserved = 0x00000010, // note: used to be RestrictToInitialMonitor - RenderPrefs_PreferAGPMemWhenMixing = 0x00000020, // try agp mem when allocating textures - - RenderPrefs_Mask = 0x0000003f, // OR of all above flags -} VMRRenderPrefs; - -typedef enum { - VMRMode_Windowed = 0x00000001, - VMRMode_Windowless = 0x00000002, - VMRMode_Renderless = 0x00000004, - - // not a valid value to pass to SetRenderMode - VMRMode_Mask = 0x00000007, // OR of all above flags -} VMRMode; - -enum { - MAX_NUMBER_OF_STREAMS = 16 -}; - -[ - object, - local, - uuid(9e5530c5-7034-48b4-bb46-0b8a6efc8e36), - helpstring("IVMRFilterConfig Interface"), - pointer_default(unique) -] -interface IVMRFilterConfig : IUnknown -{ - HRESULT SetImageCompositor( - [in] IVMRImageCompositor* lpVMRImgCompositor - ); - - HRESULT SetNumberOfStreams( - [in] DWORD dwMaxStreams - ); - - HRESULT GetNumberOfStreams( - [out] DWORD* pdwMaxStreams - ); - - HRESULT SetRenderingPrefs( - [in] DWORD dwRenderFlags // a combination of VMRRenderingPrefFlags - ); - - HRESULT GetRenderingPrefs( - [out] DWORD* pdwRenderFlags - ); - - HRESULT SetRenderingMode( - [in] DWORD Mode // a combination of VMRMode - ); - - HRESULT GetRenderingMode( - [out] DWORD* pMode - ); -} - - -//===================================================================== -// -// IVMRAspectRatioControl -// -//===================================================================== -[ - object, - local, - uuid(ede80b5c-bad6-4623-b537-65586c9f8dfd), - helpstring("IVMRAspectRatioControl Interface"), - pointer_default(unique) -] -interface IVMRAspectRatioControl : IUnknown -{ - HRESULT GetAspectRatioMode( - [out] LPDWORD lpdwARMode - ); - - HRESULT SetAspectRatioMode( - [in] DWORD dwARMode - ); -} - - -//===================================================================== -// -// IVMRDeinterlaceControl -// -// New interfaced introduced into the WindowsXP SP1 release of the VMR. -// This interface allows applications to control the DX-VA deinterlacing -// support provided by the VMR. -// -// The VMR needs to be set into "mixing" mode for this interface to work. -// -// SetDeinterlaceMode is only effective for new connections made to the -// VMR. It should be noted that the graphics device driver may refuse -// to use the specified deinterlace mode, in which case 3 fallback -// policies are offered by the VMR, these being: -// -// 1. Fallback to the next best mode offered by the driver. -// 2. Fallback to the BOB deinterlace mode. -// 3. Fallback to the WEAVE deinterlace mode (ie. turn deinterlacing off). -// -//===================================================================== - -typedef enum { - DeinterlacePref_NextBest = 0x01, - DeinterlacePref_BOB = 0x02, - DeinterlacePref_Weave = 0x04, - DeinterlacePref_Mask = 0x07 -} VMRDeinterlacePrefs; - -typedef enum { - - // the algorithm is unknown or proprietary - 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 - DeinterlaceTech_BOBLineReplicate = 0x0001, - - - // the algorithm creates the missing lines by vertically stretching each - // video field by a factor of two, for example by averaging two lines or - // using a [-1, 9, 9, -1]/16 filter across four lines. - // Slight vertical adjustments are made to ensure that the resulting image - // does not "bob" up and down. - DeinterlaceTech_BOBVerticalStretch = 0x0002, - - // the pixels in the missing line are recreated by a median filtering operation - 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. - 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. - 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.. - 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. - DeinterlaceTech_MotionVectorSteered = 0x0080 - -} VMRDeinterlaceTech; - -typedef struct _VMRFrequency { - DWORD dwNumerator; - DWORD dwDenominator; -} VMRFrequency; - -typedef struct _VMRVideoDesc { - DWORD dwSize; - DWORD dwSampleWidth; - DWORD dwSampleHeight; - BOOL SingleFieldPerSample; - DWORD dwFourCC; - VMRFrequency InputSampleFreq; - VMRFrequency OutputFrameFreq; -} VMRVideoDesc; - -typedef struct _VMRDeinterlaceCaps { - DWORD dwSize; - DWORD dwNumPreviousOutputFrames; - DWORD dwNumForwardRefSamples; - DWORD dwNumBackwardRefSamples; - VMRDeinterlaceTech DeinterlaceTechnology; -} VMRDeinterlaceCaps; - -[ - object, - local, - uuid(bb057577-0db8-4e6a-87a7-1a8c9a505a0f), - helpstring("IVMRDeinterlaceControl Interface"), - pointer_default(unique) -] -interface IVMRDeinterlaceControl : IUnknown -{ - // - // For the specified video description returns the - // number of deinterlacing modes available to the VMR. - // The deinterlacing modes are returned in descending - // quality order ie. the best quality mode is at - // lpdwNumDeinterlaceModes[0], the next best at - // lpdwNumDeinterlaceModes[1] and so on. - // - // To determine how big an array of guids to pass to the - // GetNumberOfDeinterlaceModes method call - // GetNumberOfDeinterlaceModes(lpVideoDescription, &dwNumModes, NULL); - // - HRESULT GetNumberOfDeinterlaceModes( - [in] VMRVideoDesc* lpVideoDescription, - [in] [out] LPDWORD lpdwNumDeinterlaceModes, - [out] LPGUID lpDeinterlaceModes - ); - - // - // For the given video description get the capabilities of the - // specified de-interlace mode. - // - HRESULT GetDeinterlaceModeCaps( - [in] LPGUID lpDeinterlaceMode, - [in] VMRVideoDesc* lpVideoDescription, - [in] [out] VMRDeinterlaceCaps* lpDeinterlaceCaps - ); - - // - // Get/Set the deinterlace mode that you would like the - // VMR to use when de-interlacing the specified stream. - // It should be noted that the VMR may not actually be able - // to use the requested deinterlace mode, in which case the - // the VMR will fall back to other de-interlace modes as specified - // by the de-interlace preferences (see SetDeinterlacePrefs below). - // - HRESULT GetDeinterlaceMode( - [in] DWORD dwStreamID, - [out] LPGUID lpDeinterlaceMode // returns GUID_NULL if SetDeinterlaceMode - ); // has not been called yet. - - HRESULT SetDeinterlaceMode( - [in] DWORD dwStreamID, // use 0xFFFFFFFF to set mode for all streams - [in] LPGUID lpDeinterlaceMode // GUID_NULL == turn deinterlacing off - ); - - - HRESULT GetDeinterlacePrefs( - [out] LPDWORD lpdwDeinterlacePrefs - ); - - HRESULT SetDeinterlacePrefs( - [in] DWORD dwDeinterlacePrefs - ); - - // - // Get the DeinterlaceMode currently in use for the specified - // video stream (ie. pin). The returned GUID will be NULL if - // the de-interlacing h/w has not been created by the VMR at the - // time the function is called, or if the VMR determines that - // this stream should not or can be de-interlaced. - // - HRESULT GetActualDeinterlaceMode( - [in] DWORD dwStreamID, - [out] LPGUID lpDeinterlaceMode - ); -} - - -//===================================================================== -// -// IVMRMixerBitmap -// -//===================================================================== -typedef struct _VMRALPHABITMAP -{ - DWORD dwFlags; // flags word - HDC hdc; // DC for the bitmap to copy - LPDIRECTDRAWSURFACE7 pDDS; // DirectDraw surface to copy - RECT rSrc; // rectangle to copy from the DC/DDS - NORMALIZEDRECT rDest; // output rectangle in composition space - FLOAT fAlpha; // opacity of the bitmap - COLORREF clrSrcKey; // src color key -} VMRALPHABITMAP, *PVMRALPHABITMAP; - -// Disable the alpha bitmap for now -cpp_quote("#define VMRBITMAP_DISABLE 0x00000001") - -// Take the bitmap from the HDC rather than the DirectDraw surface -cpp_quote("#define VMRBITMAP_HDC 0x00000002") - -// Take the entire DDraw surface - rSrc is ignored -cpp_quote("#define VMRBITMAP_ENTIREDDS 0x00000004") - -// Indicates that the clrTrans value is valid and should be -// used when blending -cpp_quote("#define VMRBITMAP_SRCCOLORKEY 0x00000008") - -// Indicates that the rSrc rectangle is valid and specifies a -// sub-rectangle of the of original app image to be blended. -// Use of this parameter enables "Image Strips" -cpp_quote("#define VMRBITMAP_SRCRECT 0x00000010") - -[ - object, - local, - uuid(1E673275-0257-40aa-AF20-7C608D4A0428), - helpstring("IVMRMixerBitmap Interface"), - pointer_default(unique) -] -interface IVMRMixerBitmap : IUnknown -{ - // Set bitmap, location to blend it, and blending value - HRESULT SetAlphaBitmap( - [in] const VMRALPHABITMAP *pBmpParms - ); - - // Change bitmap location, size and blending value, - // graph must be running for change to take effect. - HRESULT UpdateAlphaBitmapParameters( - [in] PVMRALPHABITMAP pBmpParms - ); - - // Get bitmap, location to blend it, and blending value - HRESULT GetAlphaBitmapParameters( - [out] PVMRALPHABITMAP pBmpParms - ); -}; - - - - - -//===================================================================== -// -// IVMRImageCompositor -// -//===================================================================== - -typedef struct _VMRVIDEOSTREAMINFO { - LPDIRECTDRAWSURFACE7 pddsVideoSurface; - DWORD dwWidth, dwHeight; - DWORD dwStrmID; - FLOAT fAlpha; - DDCOLORKEY ddClrKey; - NORMALIZEDRECT rNormal; -} VMRVIDEOSTREAMINFO; -[ - local, - object, - local, - uuid(7a4fb5af-479f-4074-bb40-ce6722e43c82), - helpstring("IVMRImageCompositor Interface"), - pointer_default(unique) -] -interface IVMRImageCompositor : IUnknown -{ - HRESULT InitCompositionTarget( - [in] IUnknown* pD3DDevice, - [in] LPDIRECTDRAWSURFACE7 pddsRenderTarget - ); - - HRESULT TermCompositionTarget( - [in] IUnknown* pD3DDevice, - [in] LPDIRECTDRAWSURFACE7 pddsRenderTarget - ); - - HRESULT SetStreamMediaType( - [in] DWORD dwStrmID, - [in] AM_MEDIA_TYPE* pmt, - [in] BOOL fTexture - ); - - HRESULT CompositeImage( - [in] IUnknown* pD3DDevice, - [in] LPDIRECTDRAWSURFACE7 pddsRenderTarget, - [in] AM_MEDIA_TYPE* pmtRenderTarget, - [in] REFERENCE_TIME rtStart, - [in] REFERENCE_TIME rtEnd, - [in] DWORD dwClrBkGnd, - [in] VMRVIDEOSTREAMINFO* pVideoStreamInfo, - [in] UINT cStreams - ); -}; - - - -//===================================================================== -// -// IVMRVideoStreamControl -// -//===================================================================== -[ - object, - local, - uuid(058d1f11-2a54-4bef-bd54-df706626b727), - helpstring("IVMRMixerStreamConfig Interface"), - pointer_default(unique) -] -interface IVMRVideoStreamControl: IUnknown -{ - HRESULT SetColorKey( - [in] LPDDCOLORKEY lpClrKey // Source color key, set to 0xFFFFFFFF to disable - ); - - HRESULT GetColorKey( - [out] LPDDCOLORKEY lpClrKey - ); - - - HRESULT SetStreamActiveState( - [in] BOOL fActive - ); - - HRESULT GetStreamActiveState( - [out] BOOL* lpfActive - ); -}; - - - -//===================================================================== -// -// IVMRSurface -// -//===================================================================== -[ - local, - object, - local, - uuid(a9849bbe-9ec8-4263-b764-62730f0d15d0), - helpstring("IVMRSurface Interface"), - pointer_default(unique) -] -interface IVMRSurface : IUnknown -{ - HRESULT IsSurfaceLocked(); - - HRESULT LockSurface( - [out] BYTE** lpSurface - ); - - HRESULT UnlockSurface(); - - HRESULT GetSurface( - [out] LPDIRECTDRAWSURFACE7 *lplpSurface - ); -}; - - - -//===================================================================== -// -// IID_IVMRImagePresenterConfig - this interface allows applications -// to configure the default Microsoft provided allocator-presenter -// inorder to simplify the implementation of their own -// allocator-presenter plug-in. -// -//===================================================================== -[ - local, - object, - local, - uuid(9f3a1c85-8555-49ba-935f-be5b5b29d178), - helpstring("IVMRImagePresenterConfig Interface"), - pointer_default(unique) -] - -interface IVMRImagePresenterConfig : IUnknown -{ - - HRESULT SetRenderingPrefs( - [in] DWORD dwRenderFlags // see VMRRenderPrefs for valid flags - ); - - HRESULT GetRenderingPrefs( - [out] DWORD* dwRenderFlags // see VMRRenderPrefs for valid flags - ); - -} - -//===================================================================== -// -// IID_IVMRImagePresenterExclModeConfig - this interface allows applications -// to configure the DDraw exclusive mode allocator-presenter. This -// interface extends the IVMRImagePresenterConfig interface defined -// above and is only implemented by the CLSID_AllocPresenterDDXclMode -// allocator-presenter object. -// -//===================================================================== -[ - local, - object, - local, - uuid(e6f7ce40-4673-44f1-8f77-5499d68cb4ea), - helpstring("IVMRImagePresenterExclModeConfig Interface"), - pointer_default(unique) -] - -interface IVMRImagePresenterExclModeConfig : IVMRImagePresenterConfig -{ - HRESULT SetXlcModeDDObjAndPrimarySurface( - [in] LPDIRECTDRAW7 lpDDObj, - [in] LPDIRECTDRAWSURFACE7 lpPrimarySurf - ); - - HRESULT GetXlcModeDDObjAndPrimarySurface( - [out] LPDIRECTDRAW7* lpDDObj, - [out] LPDIRECTDRAWSURFACE7* lpPrimarySurf - ); -} - - -//===================================================================== -// -// IVPManager -// -//===================================================================== -[ - local, - object, - local, - uuid(aac18c18-e186-46d2-825d-a1f8dc8e395a), - helpstring("IVPManager Interface"), - pointer_default(unique) -] -interface IVPManager : IUnknown -{ - // Use this method on a Multi-Monitor system to specify to the - // video port manager filter which videoport index is used - // to an upstream decoder filter. - // - HRESULT SetVideoPortIndex( - [in] DWORD dwVideoPortIndex // the video port number that this is connected to - ); - - // This method returns the current video port index being used by the VPM. - // - HRESULT GetVideoPortIndex( - [out] DWORD* pdwVideoPortIndex // the video port number that this is connected to - ); -}; - diff --git a/sdk/dx8sdk/Include/DShowIDL/amstream.idl b/sdk/dx8sdk/Include/DShowIDL/amstream.idl deleted file mode 100644 index f52db99e..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/amstream.idl +++ /dev/null @@ -1,334 +0,0 @@ -//------------------------------------------------------------------------------ -// File: AMStream.idl -// -// Desc: -// -// Copyright (c) 1998 - 2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -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; - - -[ -object, -uuid(7DB01C96-C0C3-11d0-8FF1-00C04FD9189D), -dual, -helpstring("IDirectShowStream Interface"), -pointer_default(unique) -] -interface IDirectShowStream : IDispatch -{ - [propget, id(1), helpstring("property FileName")] HRESULT FileName([out, retval] BSTR *pVal); - [propput, id(1), helpstring("property FileName")] HRESULT FileName([in] BSTR newVal); - [propget, id(2), helpstring("property Video")] HRESULT Video([out, retval] OUTPUT_STATE *pVal); - [propput, id(2), helpstring("propetry Video")] HRESULT Video([in] OUTPUT_STATE newVal); - [propget, id(3), helpstring("property Audio")] HRESULT Audio([out, retval] OUTPUT_STATE *pVal); - [propput, id(3), helpstring("propetry Audio")] HRESULT Audio([in] OUTPUT_STATE newVal); -}; - - -// 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] 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(AM_MEDIA_TYPE **ppMediaType); - HRESULT SetMediaType(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); -}; - - -[ - uuid(4E6CDE29-C0C4-11d0-8FF1-00C04FD9189D), - version(1.0), - helpstring("DirectShowStream 1.0 Type Library") -] - -library DirectShowStreamLib -{ - importlib("stdole2.tlb"); - [ - uuid(49c47ce5-9ba4-11d0-8212-00c04fc32c45), - helpstring("DirectShow Multi Media Stream") - ] - coclass AMMultiMediaStream - { - [default] dispinterface IDirectShowStream; - }; -}; - - - -// -// The MIDL compiler wants to produce a CLSID for everything defined in -// our type library, but it also wants to generate huge proxy code, -// so we use DEFINE_GUID for all other classes. It has another interesting -// bug in that it defines CLSID_AMMultiMediaStream within a #ifdef __cplusplus -// block, so we need to define it outside of that scope. -// - -cpp_quote("#ifndef __cplusplus") -cpp_quote("EXTERN_C const CLSID CLSID_AMMultiMediaStream;") -cpp_quote("#endif") - -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);") diff --git a/sdk/dx8sdk/Include/DShowIDL/austream.idl b/sdk/dx8sdk/Include/DShowIDL/austream.idl deleted file mode 100644 index 4987aa08..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/austream.idl +++ /dev/null @@ -1,106 +0,0 @@ -//------------------------------------------------------------------------------ -// File: AuStream.idl -// -// Desc: Used by MIDL tool to generate austream.h -// -// Copyright (c) 1998-2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -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 - ); -} - diff --git a/sdk/dx8sdk/Include/DShowIDL/axcore.idl b/sdk/dx8sdk/Include/DShowIDL/axcore.idl deleted file mode 100644 index 4aceea78..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/axcore.idl +++ /dev/null @@ -1,1284 +0,0 @@ -//------------------------------------------------------------------------------ -// 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 - -#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") - - -//===================================================================== -//===================================================================== -// 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. -//===================================================================== -//===================================================================== - -[ -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] 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] IPin **pPin - ); - - // Return the media type of a connection if the pin is connected - HRESULT ConnectionMediaType( - [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] PIN_INFO * pInfo - ); - - // We often want to know the direction. Rather than use the - // relatively expensive QueryPinInfo, use this - HRESULT QueryDirection( - [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] 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] 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] 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 -//===================================================================== -//===================================================================== - -[ -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)] IPin ** ppPins, // ...in this array - [out] ULONG * pcFetched // actual count passed - ); - - HRESULT Skip( - [in] ULONG cPins); - - HRESULT Reset(void); - - HRESULT Clone( - [out] IEnumPins **ppEnum - ); -} - -typedef IEnumPins *PENUMPINS; - - -//===================================================================== -//===================================================================== -// Defines IEnumMediaTypes interface -// -// Enumerates the preferred formats for a pin -//===================================================================== -//===================================================================== - -[ -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_MEDIA_TYPE ** ppMediaTypes, // ...in this array - [out] ULONG * pcFetched // actual count passed - ); - - HRESULT Skip( - [in] ULONG cMediaTypes); - - HRESULT Reset(void); - - HRESULT Clone( - [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. -//======================================================================== -//======================================================================== - -[ -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] 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] 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] 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 -//========================================================================== -//========================================================================== - -[ -object, -uuid(56a86893-0ad4-11ce-b03a-0020af0ba770), -pointer_default(unique) -] -interface IEnumFilters : IUnknown { - - HRESULT Next - ( [in] ULONG cFilters, // place this many filters... - [out] IBaseFilter ** ppFilter, // ...in this array of IBaseFilter* - [out] ULONG * pcFetched // actual count passed returned here - ); - - - HRESULT Skip - ( [in] ULONG cFilters - ); - - - HRESULT Reset(void); - - - HRESULT Clone - ( [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. -//===================================================================== -//===================================================================== - -[ -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] 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] IReferenceClock * pClock); - - // get the reference clock currently in use (it may be NULL) - HRESULT GetSyncSource( - [out] 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() -//===================================================================== -//===================================================================== - -[ -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] 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] 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] 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] IFilterGraph * pGraph, - [in, string] LPCWSTR pName - ); - - // return a Vendor information string. Optional - may return E_NOTIMPL. - // memory returned should be freed using CoTaskMemFree - HRESULT QueryVendorInfo( - [out, string] LPWSTR* pVendorInfo - ); -} - -typedef IBaseFilter *PFILTER; - - -//===================================================================== -//===================================================================== -// sync and state management -//===================================================================== -//===================================================================== - - -//===================================================================== -//===================================================================== -// Defines IReferenceClock interface -//===================================================================== -//===================================================================== - -[ - object, - uuid(56a86897-0ad4-11ce-b03a-0020af0ba770), - pointer_default(unique) -] -interface IReferenceClock : IUnknown { - - // get the time now - HRESULT GetTime( - [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] 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] DWORD_PTR * pdwAdviseCookie // where your cookie goes - ); - - // cancel a request for notification - HRESULT Unadvise( - [in] DWORD_PTR dwAdviseCookie); -} - -typedef IReferenceClock *PREFERENCECLOCK; - -//===================================================================== -//===================================================================== -// Defines IReferenceClock2 interface -//===================================================================== -//===================================================================== - -[ - 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] 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] REFERENCE_TIME * pTimeStart, // put time here - [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] REFERENCE_TIME * pTimeStart, // put time here - [in] 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(AM_MEDIA_TYPE **ppMediaType); - HRESULT SetMediaType(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] LONGLONG * pTimeStart, - [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] LONGLONG * pTimeStart, - [in] 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)] 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)] 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; - - -// 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. -//===================================================================== -//===================================================================== - -[ - 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] ALLOCATOR_PROPERTIES* pRequest, - [out] ALLOCATOR_PROPERTIES* pActual); - - // return the properties actually being used on this allocator - HRESULT GetProperties( - [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] IMediaSample **ppBuffer, - [in] REFERENCE_TIME * pStartTime, - [in] 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 -// -//===================================================================== -//===================================================================== -[ - 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] LONG *plBuffersFree); -} - -//===================================================================== -//===================================================================== -// Defines IMemAllocatorNotify interface -// -//===================================================================== -//===================================================================== -[ - 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. -//===================================================================== -//===================================================================== - -[ - 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] 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] 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)] IMediaSample **pSamples, - [in] long nSamples, - [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 -//===================================================================== -//===================================================================== - -[ -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; - -[ - object, - uuid(36b73880-c2c8-11cf-8b46-00805f6cef60), - pointer_default(unique) -] -interface IMediaSeeking : IUnknown { - - // Returns the capability flags - HRESULT GetCapabilities( [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] GUID * pFormat); - - HRESULT GetTimeFormat([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] LONGLONG *pDuration); - HRESULT GetStopPosition([out] LONGLONG *pStop); - HRESULT GetCurrentPosition([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] LONGLONG * pTarget, [in] const GUID * pTargetFormat, - [in] LONGLONG Source, [in] const GUID * pSourceFormat ); - - - // Set current and end positions in one operation - // Either pointer may be null, implying no change - HRESULT SetPositions( [in,out] LONGLONG * pCurrent, [in] DWORD dwCurrentFlags - , [in,out] LONGLONG * pStop, [in] DWORD dwStopFlags ); - - // Get CurrentPosition & StopTime - // Either pointer may be null, implying not interested - HRESULT GetPositions( [out] LONGLONG * pCurrent, - [out] 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] LONGLONG * pEarliest, [out] LONGLONG * pLatest ); - - // Rate stuff - HRESULT SetRate([in] double dRate); - HRESULT GetRate([out] double * pdRate); - - // Preroll - HRESULT GetPreroll([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("};") diff --git a/sdk/dx8sdk/Include/DShowIDL/axextend.idl b/sdk/dx8sdk/Include/DShowIDL/axextend.idl deleted file mode 100644 index 257fb19a..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/axextend.idl +++ /dev/null @@ -1,5169 +0,0 @@ -//------------------------------------------------------------------------------ -// 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. -//------------------------------------------------------------------------------ - - -// include after unknwn.idl, objidl.idl and axcore.idl - - -// 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::EnumMatchingFilters(). -// based on IEnum pseudo-template -//========================================================================== -//========================================================================== - -typedef struct { - CLSID Clsid; // class id of the filter - LPWSTR Name; // name of filter -} REGFILTER; - -[ -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] REGFILTER ** apRegFilter, // ...in this array of REGFILTER* - [out] 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] IEnumRegFilters **ppEnum - ); -} - - -typedef IEnumRegFilters *PENUMREGFILTERS; - -//======================================================================== -//======================================================================== -// abstraction representing the registered information about filters. -// This allows properties of filters to be looked up without loading them. -//======================================================================== -//======================================================================== - -[ -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] 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] 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 -{ - const CLSID * clsMajorType; - const CLSID * clsMinorType; -} REGPINTYPES; - -// describes pin for filter registration. Used for registration -// through IFilterMapper and IFilterMapper2 -// -typedef struct -{ - 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 -{ - 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 -{ - // 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 -{ - 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; - }; - - [case(2)] - - struct - { - ULONG cPins2; - [size_is(cPins2)] const REGFILTERPINS2 *rgPins2; - }; - - [default] - ; - } ; - -} REGFILTER2; - - - -[ -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] const OLECHAR *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] IMoniker **ppMoniker, - - // can be null - [in] const CLSID *pclsidCategory, - - // cannot be null - [in] const OLECHAR *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] 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)] const GUID *pInputTypes // input major+subtype pair array - , [in] const REGPINMEDIUM *pMedIn // input medium - , [in] 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)] const GUID *pOutputTypes // output major+subtype pair array - , [in] const REGPINMEDIUM *pMedOut // output medium - , [in] const CLSID *pPinCategoryOut // output pin category - ); -} - -[ -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] 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; - - -[ -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 -//===================================================================== -//===================================================================== - -[ -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] DWORD *pdwColors, // Number of colours present - [out] PALETTEENTRY **ppPalette); // Where to put palette data - - HRESULT SetPalette( - [in] DWORD dwColors, // Number of colours present - [in] 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] COLORKEY *pColorKey); - HRESULT GetColorKey([out] COLORKEY *pColorKey); - HRESULT SetColorKey([in,out] COLORKEY *pColorKey); - HRESULT GetWindowHandle([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] RECT *pSourceRect, - [out] RECT *pDestinationRect, - [out] RGNDATA **ppRgnData); - - // Returns the current video source and destination - - HRESULT GetVideoPosition([out] RECT *pSourceRect, - [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. -//===================================================================== -//===================================================================== - -[ - 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. -//===================================================================== -//===================================================================== - -[ - 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] const AM_MEDIA_TYPE *pmt // Media type of file - can be NULL - ); - // Get the currently loaded file name - HRESULT GetCurFile( - [out] LPOLESTR *ppszFileName, // Pointer to the path for the current file - [out] AM_MEDIA_TYPE *pmt // Pointer to the media type - ); -} - -typedef IFileSourceFilter *PFILTERFILESOURCE; - -//===================================================================== -//===================================================================== -// Defines IFileSinkFilter interface -// -// Exposed by renderers to set the output file name. -//===================================================================== -//===================================================================== - -[ - 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] const AM_MEDIA_TYPE *pmt // Media type of file - can be NULL - ); - // Get the current file name - HRESULT GetCurFile( - [out] LPOLESTR *ppszFileName, // Pointer to the path for the current file - [out] AM_MEDIA_TYPE *pmt // Pointer to the media type - ); -} - -typedef IFileSinkFilter *PFILTERFILESINK; - -[ - object, - uuid(00855B90-CE1B-11d0-BD4F-00A0C911CE86), - pointer_default(unique) -] -interface IFileSinkFilter2 : IFileSinkFilter { - - HRESULT SetMode( - [in] DWORD dwFlags // AM_FILESINK_FLAGS - ); - - HRESULT GetMode( - [out] DWORD *pdwFlags // AM_FILESINK_FLAGS - ); -} - -typedef IFileSinkFilter2 *PFILESINKFILTER2; - -typedef enum { - - // 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 - -[ - 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] 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] LPCWSTR lpcwstrFilterName, - [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 - -[ - 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] 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] IBaseFilter **ppf, // returns pointer to the MUX - [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] const GUID *pCategory, // can be NULL for all pins - [in] IBaseFilter *pf, - [in] REFIID riid, - [out] void **ppint); - [call_as(FindInterface)] HRESULT RemoteFindInterface( - [in, unique] const GUID *pCategory, // can be NULL for all pins - [in] IBaseFilter *pf, - [in] REFIID riid, - [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] 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] 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] LPOLESTR lpwstrOld, - [in] LPOLESTR lpwstrNew, - [in] int fAllowEscAbort, // pressing ESC will abort? - [in] IAMCopyCaptureFileProgress *pCallback); // implement this to - // get progress -} - - -// -// Capture graph builder "CopyCapturedFile" progress callback - -[ - 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 -// - -[ - 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] 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] IBaseFilter **ppf, // returns pointer to the MUX - [out] 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] const GUID *pCategory, // can be NULL for all pins - [in] const GUID *pType, // Audio/Video/??? or NULL (don't care) - [in] IBaseFilter *pf, - [in] REFIID riid, - [out] void **ppint); - [call_as(FindInterface)] HRESULT RemoteFindInterface( - [in] const GUID *pCategory, // can be NULL for all pins - [in] const GUID *pType, // Audio/Video/??? or NULL (don't care) - [in] IBaseFilter *pf, - [in] REFIID riid, - [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] 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] 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] LPOLESTR lpwstrOld, - [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] const GUID *pCategory, // what category? (or NULL) - [in] 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] 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. -// - -[ - 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] 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] 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] 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] 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] void ** ppInterface ); - -#endif -} - -// -// 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 - - -[ - 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] ALLOCATOR_PROPERTIES* pProps, - [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] IMediaSample** ppSample, // completed sample - [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)] - 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] LONGLONG* pTotal, - [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. -[ - 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(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 -[ - 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 -[ - 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] 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)] - LONG* palTokens, // these are the contained resources - [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. -[ - 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_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 -typedef struct { - REFERENCE_TIME tStart; - REFERENCE_TIME tStop; - DWORD dwStartCookie; - DWORD dwStopCookie; - DWORD dwFlags; -} AM_STREAM_INFO; - -// -// IAMStreamControl -// - -[ - 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] const REFERENCE_TIME * ptStart, - [in] DWORD dwCookie ); - HRESULT StopAt( [in] const REFERENCE_TIME * ptStop, - [in] BOOL bSendExtra, - [in] DWORD dwCookie ); - HRESULT GetInfo( [out] AM_STREAM_INFO *pInfo); -} - - - -// -// ISeekingPassThru -// - -[ - 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. - -[ - object, - uuid(C6E13340-30AC-11d0-A18C-00A0C9118956), - pointer_default(unique) -] -interface IAMStreamConfig : IUnknown -{ - - // this is the structure returned by a VIDEO filter - // - 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; - - - // 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_MEDIA_TYPE **ppmt); - - // how many different Stream Caps structures are there? - // also, how big is the stream caps structure? - HRESULT GetNumberOfCapabilities( - [out] int *piCount, - [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_MEDIA_TYPE **ppmt, - [out] BYTE *pSCC); - -} - - - -// Interface to control interleaving of different streams in one file -[ -object, -uuid(BEE3D220-157B-11d0-BD23-00A0C911CE86), -pointer_default(unique) -] -interface IConfigInterleaving : IUnknown -{ - import "unknwn.idl"; - - typedef enum - { - // 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] InterleavingMode *pMode - ); - - HRESULT put_Interleaving( - [in] const REFERENCE_TIME *prtInterleave, - [in] const REFERENCE_TIME *prtPreroll - ); - - HRESULT get_Interleaving( - [out] REFERENCE_TIME *prtInterleave, - [out] REFERENCE_TIME *prtPreroll - ); -} - -// Interface to control the AVI mux -[ -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] 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] 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_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 - - [ - 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] 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] 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] 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] 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)] WCHAR * pszVersion, - [in,out] int *pcbVersion, - [out, size_is(*pcbDescription)] LPWSTR pszDescription, - [in,out] int *pcbDescription, - [out] long *pDefaultKeyFrameRate, - [out] long *pDefaultPFramesPerKey, - [out] double *pDefaultQuality, - [out] 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 - { - VfwCaptureDialog_Source = 0x01, - VfwCaptureDialog_Format = 0x02, - VfwCaptureDialog_Display = 0x04 - } VfwCaptureDialogs; - - - //--------------------------------------------------------------------- - // VfwCompressDialogs enum - //--------------------------------------------------------------------- - - typedef enum - { - 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)] LPVOID pState, - [in, out] int *pcbState - ); - - // Calls ICSetState - HRESULT SetState( - [in, size_is(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. - - [ - object, - uuid(C6E13344-30AC-11d0-A18C-00A0C9118956), - pointer_default(unique) - ] - interface IAMDroppedFrames : IUnknown - { - // Get the number of dropped frames - HRESULT GetNumDropped( - [out] long * plDropped - - ); - - //Get the number of non-dropped frames - HRESULT GetNumNotDropped( - [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] long * plArray, - [out] long * plNumCopied - ); - - // - This is the average size of the frames it didn't drop (in bytes) - HRESULT GetAverageFrameSize( - [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 - - [ - 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 - - [ - object, - uuid(56ED71A0-AF5F-11D0-B3F0-00AA003761C5), - pointer_default(unique) - ] - interface IAMBufferNegotiation : IUnknown - { - HRESULT SuggestAllocatorProperties ( - [in] const ALLOCATOR_PROPERTIES *pprop); - - HRESULT GetAllocatorProperties ( - [out] ALLOCATOR_PROPERTIES *pprop); - - } - - - //--------------------------------------------------------------------- - // AnalogVideoStandard enum - //--------------------------------------------------------------------- - - typedef enum tagAnalogVideoStandard - { - 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 - } AnalogVideoStandard; - - cpp_quote("#define AnalogVideo_NTSC_Mask 0x00000007") - cpp_quote("#define AnalogVideo_PAL_Mask 0x00100FF0") - cpp_quote("#define AnalogVideo_SECAM_Mask 0x000FF000") - - - //--------------------------------------------------------------------- - // TunerInputType enum - //--------------------------------------------------------------------- - - typedef enum tagTunerInputType - { - TunerInputCable, - TunerInputAntenna - } TunerInputType; - - //--------------------------------------------------------------------- - // VideoCopyProtectionType enum - //--------------------------------------------------------------------- - - typedef enum - { - 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 - //--------------------------------------------------------------------- - - [ - 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] 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] long * plAnalogVideoStandard - ); - - // True if horizontal sync is locked - HRESULT get_HorizontalLocked ( - [out] long * plLocked); - - // True if connected to a VCR (changes PLL timing) - HRESULT put_VCRHorizontalLocking ( - [in] long lVCRHorizontalLocking); - - HRESULT get_VCRHorizontalLocking ( - [out] long * plVCRHorizontalLocking); - - // Returns the number of lines in the video signal")] - HRESULT get_NumberOfLines ( - [out] long *plNumberOfLines); - - // Enables or disables the output bus - HRESULT put_OutputEnable ( - [in] long lOutputEnable); - - HRESULT get_OutputEnable ( - [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. - // - //--------------------------------------------------------------------- - - [ - 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] long * pMin, // Range minimum - [out] long * pMax, // Range maxumum - [out] long * pSteppingDelta,// Step size - [out] long * pDefault, // Default value - [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] long * lValue, // Current value - [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 - //--------------------------------------------------------------------- - - [ - 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] long * pMin, // Range minimum - [out] long * pMax, // Range maxumum - [out] long * pSteppingDelta,// Step size - [out] long * pDefault, // Default value - [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] long * lValue, // Current value - [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 - //--------------------------------------------------------------------- - - [ - 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] 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] 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] 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] 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] long * ListSize, // Number of elements in the list - [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 - //--------------------------------------------------------------------- - - [ - object, - uuid(C6E13380-30AC-11d0-A18C-00A0C9118956), - pointer_default(unique) - ] - interface IAMCrossbar : IUnknown - { - - // How many pins are there? - HRESULT get_PinCounts( - [out] long * OutputPinCount, // count of output pins - [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] 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] long * PinIndexRelated, // Index of related pin - [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; - - [ - 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] long *plChannel, - [out] long *plVideoSubChannel, - [out] long *plAudioSubChannel - ); - - // Gets the minimum and maximum channel available - HRESULT ChannelMinMax( - [out] long *lChannelMin, - [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] long *plCountryCode - ); - - HRESULT put_TuningSpace( - [in] long lTuningSpace - ); - HRESULT get_TuningSpace( - [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] long * plSignalStrength // AMTunerSignalStrength - ); - - // allow multifunction tuner to be switch between modes - HRESULT put_Mode( - [in] AMTunerModeType lMode // AMTunerModeType - ); - HRESULT get_Mode( - [out] AMTunerModeType *plMode // AMTunerModeType - ); - - // retrieve a bitmask of the possible modes - HRESULT GetAvailableModes( - [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 - //--------------------------------------------------------------------- - - [ - 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 - //--------------------------------------------------------------------- - - [ - 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] long *lAnalogVideoStandard - ); - - // Gets the current analog video standard (NTSC/M, PAL/B, SECAM/K1, ...) - HRESULT get_TVFormat( - [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] 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] 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] TunerInputType * pInputType - ); - - // Sets or gets the tuner input - HRESULT put_ConnectInput( - [in] long lIndex - ); - HRESULT get_ConnectInput( - [out] long *plIndex - ); - - // Gets the video and audio carrier frequencies - HRESULT get_VideoFrequency( - [out] long *lFreq - ); - HRESULT get_AudioFrequency( - [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] long *plDefaultVideoType, // Provider-specific service type - [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 - } TVAudioMode; - - // Events reported by IAMTVAudioNotification - typedef enum tagAMTVAudioEventType - { - AMTVAUDIO_EVENT_CHANGED = 0x0001, // mode changed - } AMTVAudioEventType; - - interface IAMTVAudioNotification; - - [ - 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] long *plModes // TVAudioMode - ); - - // retrieve a bitmask of the possible modes - HRESULT GetAvailableTVAudioModes( - [out] long *plModes // TVAudioMode - ); - - HRESULT get_TVAudioMode( - [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 - //--------------------------------------------------------------------- - - [ - 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] 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] long * plAnalogVideoStandard - ); - - // Sets or gets the copy protection - HRESULT put_CopyProtection ( - [in] long lVideoCopyProtection); // VideoCopyProtectionType - - HRESULT get_CopyProtection ( - [out] long *lVideoCopyProtection); // VideoCopyProtectionType - - - // Enables and disables close captioning - HRESULT put_CCEnable ( - [in] long lCCEnable); - - HRESULT get_CCEnable ( - [out] long *lCCEnable); - - } - - // used by IKsPropertySet set AMPROPSETID_Pin - typedef enum { - 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") - - - [ - 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)] LPVOID pInstanceData, - [in] DWORD cbInstanceData, - [in, size_is(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)] LPVOID pInstanceData, - [in] DWORD cbInstanceData, - [out, size_is(cbPropData)] LPVOID pPropData, - [in] DWORD cbPropData, - [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] 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] DWORD *pTypeSupport); - } -cpp_quote("#endif // _IKsPropertySet_") - -[ -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 - ); - -} - - -[ -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 - //--------------------------------------------------------------------- - - -[ - 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] long *pType, // the enum representing the Physical Type - [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 - //--------------------------------------------------------------------- - [ - 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] long *pValue, // return value - [out] double *pdblValue // return value - ); - - // Get external device identification string. Usually the model # - // of the device - HRESULT get_ExternalDeviceID( - [out] LPOLESTR *ppszData // ID string - ); - - HRESULT get_ExternalDeviceVersion( - [out] LPOLESTR *ppszData // revision string - ); - - // Controls the external device's power mode - HRESULT put_DevicePower([in] long PowerMode - ); - HRESULT get_DevicePower([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] 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] 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 - //--------------------------------------------------------------------- -[ - 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] long *pValue, // return value - [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] long *pState // see edevdefs.h - ); - - // Determines state of unit's front panel - HRESULT put_LocalControl([in] long State - ); - HRESULT get_LocalControl([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] long *pValue - ); - - // Parameters such as recording speed, servo reference, ballistics, etc. - HRESULT GetTransportBasicParameters( - [in] long Param, - [out] long *pValue, - [out] 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] long *pValue - ); - - HRESULT SetTransportVideoParameters( - [in] long Param, - [in] long Value - ); - - // Parameters such as audio channel enable - HRESULT GetTransportAudioParameters( - [in] long Param, - [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] 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] 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] long *pEnabled, // OATRUE | OAFALSE - [out] long *pOffset, // offset in current time format - [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] long *pSpeed, - [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] 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] 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] 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] 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(" };") -cpp_quote(" DWORDLONG qw;") -cpp_quote(" } TIMECODE;") -cpp_quote("") -cpp_quote("#endif /* TIMECODE_DEFINED */") -cpp_quote("#endif /* 0 */") - -typedef TIMECODE *PTIMECODE; - -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; -typedef TIMECODE_SAMPLE *PTIMECODE_SAMPLE; - - -[ - 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] 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] 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] 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 - //--------------------------------------------------------------------- -[ - 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] 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] 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] 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 - //--------------------------------------------------------------------- -[ - 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] 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] 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; - - -[ - object, - uuid(c6545bf0-e76b-11d0-bd52-00a0c911ce86), - pointer_default(unique) -] -interface IAMDevMemoryAllocator : IUnknown -{ - HRESULT GetInfo( - [out] DWORD *pdwcbTotalFree, - [out] DWORD *pdwcbLargestFree, - [out] DWORD *pdwcbTotalMemory, - [out] DWORD *pdwcbMinimumChunk); - - HRESULT CheckMemory( - [in] const BYTE *pBuffer); - - HRESULT Alloc( - [out] BYTE **ppBuffer, - [in, out] DWORD *pdwcbBuffer); - - HRESULT Free( - [in] BYTE *pBuffer); - - HRESULT GetDevMemoryObject( - [out] IUnknown **ppUnkInnner, - [in] IUnknown *pUnkOuter); -} -typedef IAMDevMemoryAllocator *PAMDEVMEMORYALLOCATOR; - - -[ - object, - uuid(c6545bf1-e76b-11d0-bd52-00a0c911ce86), - pointer_default(unique) -] -interface IAMDevMemoryControl : IUnknown -{ - HRESULT QueryWriteSync(); - - HRESULT WriteSync(); - - HRESULT GetDevId( - [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 -[ - object, - uuid(c1960960-17f5-11d1-abe1-00a0c905f375), - pointer_default(unique) -] -interface IAMStreamSelect : IUnknown -{ - // Returns total count of streams - HRESULT Count( - [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_MEDIA_TYPE **ppmt, // Media type - optional - // Use DeleteMediaType to free - [out] DWORD *pdwFlags, // flags - optional - [out] LCID *plcid, // LCID (returns 0 if none) - optional - [out] DWORD *pdwGroup, // Logical group - optional - [out] WCHAR **ppszName, // Name - optional - free with CoTaskMemFree - // optional - [out] 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] 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 -// -[ - 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] PVOID pvReserved // Must be NULL - ); -} - - -// Set clock adjustments - supported by some clocks -[ - 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 */ -}; - -[ - 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 -[ - object, - local, - uuid(48efb120-ab49-11d2-aed2-00a0c995e8d5), - pointer_default(unique), -] -interface IDrawVideoImage : IUnknown -{ - HRESULT DrawVideoImageBegin(); - - HRESULT DrawVideoImageEnd(); - - HRESULT DrawVideoImageDraw( - [in] HDC hdc, - [in] LPRECT lprcSrc, - [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] 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 -// -//--------------------------------------------------------------------- - -[ - 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] 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] 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. -// -[ -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] 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] REFERENCE_TIME *prtOffset - ); - - // retrieve the maximum stream offset this push source thinks it can support - HRESULT GetMaxStreamOffset ( - [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 -// -// ------------------------------------------------------------------------ - -[ - object, - uuid(f90a6130-b658-11d2-ae49-0000f8754b99), - pointer_default(unique) -] -interface IAMDeviceRemoval : IUnknown -{ - - HRESULT DeviceInfo( - [out] CLSID *pclsidInterfaceClass, - [out] WCHAR **pwszSymbolicLink); - - HRESULT Reassociate(); - - HRESULT Disassociate(); -} - -// -// for DV -// -typedef struct { - //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 -}; -[ - object, - uuid(d18e17a0-aacb-11d0-afb0-00aa00b67a42), - pointer_default(unique) -] -interface IDVEnc : IUnknown -{ - - HRESULT get_IFormatResolution ( - [out] int *VideoFormat, //pal or ntsc - [out] int *DVFormat, //dvsd dvhd dvsl - [out] int *Resolution, //720, 360, 180,88 - [in] BYTE fDVInfo, //TRUE: DVINFO structure exist, FALSE: Do not care DVINFO - [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] 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 -}; -[ - object, - uuid(b8e8bd60-0bfe-11d0-af91-00aa00b67a42), - pointer_default(unique) -] -interface IIPDVDec : IUnknown -{ - HRESULT get_IPDisplay ( - [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 -// -//------------------------------------------------------------------------ - -[ - 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 -// -// ------------------------------------------------------------------------ -[ - 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 slave 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 master/slave 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?) -// -//--------------------------------------------------------------------- - -[ -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] DWORD *pdwParam1, - [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. -// -//--------------------------------------------------------------------- - -[ -object, - uuid(62EA93BA-EC62-11d2-B770-00C04FB6BD3D), - pointer_default(unique) -] -interface IAMLatency : IUnknown -{ - HRESULT GetLatency( - [in] 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. -// -//--------------------------------------------------------------------- - -[ -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)] 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 -}; - -[ -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] 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] DWORD *lpdwOverlayFX - ); -} - - - -// IAMOpenProgress interface provides information about current progress through -// a download - -[ -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] LONGLONG* pllTotal, - [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] LPWSTR pszPinName, - [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] LPWSTR pszPinName, - [in] AM_MEDIA_TYPE * pMediaType - ) ; - - /*++ - ------------------------------------------------------------------------ - purpose: Deletes the specified output pin. - - pszPinName pin name - --*/ - HRESULT - DeleteOutputPin ( - [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 { - 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)] STREAM_ID_MAP * pStreamIdMap, - [out] ULONG * pcReceived - ) ; - - HRESULT - Skip ( - [in] ULONG cRecords - ) ; - - HRESULT - Reset ( - ) ; - - HRESULT - Clone ( - [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] ULONG * pulStreamId // array of stream_id's to unmap - ) ; - - HRESULT - EnumStreamIdMap ( - [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 -// -[ -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] 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. -//------------------------------------------------------------------------------ - -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. -// -[ - 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] VARIANT *ValueMin, - [out] VARIANT *ValueMax, - [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)] VARIANT **Values, - [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] VARIANT *Value - ); - - // - // GetValue(): - // - // Get the current value of a parameter. - // - HRESULT - GetValue ( - [in] const GUID *Api, - [out] VARIANT *Value - ); - - // - // SetValue(): - // - // Set the current value of a parameter. - // - HRESULT - SetValue ( - [in] const GUID *Api, - [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)] GUID **ChangedParam, - [out] ULONG *ChangedParamCount - ); - - // - // SetAllDefaultsWithNotify - // - HRESULT SetAllDefaultsWithNotify( - [out, size_is(,*ChangedParamCount)] GUID **ChangedParam, - [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)] GUID **ChangedParam, - [out] ULONG *ChangedParamCount ); -} - -[ - object, - local, - uuid(a8809222-07bb-48ea-951c-33158100625b), - pointer_default(unique) -] -interface IGetCapabilitiesKey : IUnknown -{ - HRESULT GetCapabilitiesKey( [out] HKEY* pHKey ); -}; - -// ----------------------------------------------------------------------------------------- -// From this point on, this is retained for backwards compatiblity only -// Do not use this for future encoders -// ----------------------------------------------------------------------------------------- -[ - 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] VARIANT *ValueMin, [out] VARIANT *ValueMax, - [out] VARIANT *SteppingDelta ); - HRESULT GetParameterValues ( [in] const GUID *Api, - [out, size_is(,*ValuesCount)] VARIANT **Values, - [out] ULONG *ValuesCount ); - HRESULT GetDefaultValue ( [in] const GUID *Api, [out] VARIANT *Value ); - HRESULT GetValue ( [in] const GUID *Api, [out] VARIANT *Value ); - HRESULT SetValue ( [in] const GUID *Api, [in] VARIANT *Value ); -} - -[ - 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 { - - // - // 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 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] 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] GUID* pRandom, // 128-bit random number generated by Graphics Driver - [out] BYTE** VarLenCertGH, // Graphics Hardware certificate, memory released by CoTaskMemFree - [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] AMCOPPStatusOutput* pStatusOutput); // Encrypted Status results -}; - diff --git a/sdk/dx8sdk/Include/DShowIDL/bdaiface.idl b/sdk/dx8sdk/Include/DShowIDL/bdaiface.idl deleted file mode 100644 index e1d27ca9..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/bdaiface.idl +++ /dev/null @@ -1,1013 +0,0 @@ -//------------------------------------------------------------------------------ -// 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 -//--------------------------------------------------------------------- -#ifndef DO_NO_IMPORTS -import "unknwn.idl"; -import "strmif.idl"; -import "BdaTypes.h"; -#endif - -//--------------------------------------------------------------------- -// -// 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, - [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_AutoDemodulate interface -//--------------------------------------------------------------------- -[ - object, - uuid(DDF15B12-BD25-11d2-9CA0-00C04F7971E0), - pointer_default(unique) -] - -interface IBDA_AutoDemodulate : IUnknown -{ - HRESULT - put_AutoDemodulate ( - void - ); -} - -//--------------------------------------------------------------------- -// 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 - ); -} - -typedef enum -{ - KSPROPERTY_IPSINK_MULTICASTLIST, - KSPROPERTY_IPSINK_ADAPTER_DESCRIPTION, - KSPROPERTY_IPSINK_ADAPTER_ADDRESS - -} KSPROPERTY_IPSINK; - - - -//--------------------------------------------------------------------- -// 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 - ); - - - }; - - - diff --git a/sdk/dx8sdk/Include/DShowIDL/control.odl b/sdk/dx8sdk/Include/DShowIDL/control.odl deleted file mode 100644 index 4fba88cf..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/control.odl +++ /dev/null @@ -1,912 +0,0 @@ -//==========================================================================; -// -// 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/sdk/dx8sdk/Include/DShowIDL/ddstream.idl b/sdk/dx8sdk/Include/DShowIDL/ddstream.idl deleted file mode 100644 index 30fa0475..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/ddstream.idl +++ /dev/null @@ -1,86 +0,0 @@ -//------------------------------------------------------------------------------ -// File: DDStream.idl -// -// Desc: Used by MIDL tool to generate ddstream.h -// -// Copyright (c) 1998-2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -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); - -}; diff --git a/sdk/dx8sdk/Include/DShowIDL/devenum.idl b/sdk/dx8sdk/Include/DShowIDL/devenum.idl deleted file mode 100644 index 257193f4..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/devenum.idl +++ /dev/null @@ -1,38 +0,0 @@ -//------------------------------------------------------------------------------ -// 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("#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") - -[ - object, - uuid(29840822-5B84-11D0-BD3B-00A0C911CE86), - pointer_default(unique) -] -interface ICreateDevEnum : IUnknown -{ - import "oaidl.idl"; - - HRESULT CreateClassEnumerator( - [in] REFCLSID clsidDeviceClass, - [out] IEnumMoniker ** ppEnumMoniker, - [in] DWORD dwFlags); -} diff --git a/sdk/dx8sdk/Include/DShowIDL/dmodshow.idl b/sdk/dx8sdk/Include/DShowIDL/dmodshow.idl deleted file mode 100644 index 246f5ae6..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/dmodshow.idl +++ /dev/null @@ -1,33 +0,0 @@ -//------------------------------------------------------------------------------ -// 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. -//------------------------------------------------------------------------------ - - -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); -} - diff --git a/sdk/dx8sdk/Include/DShowIDL/dshowasf.idl b/sdk/dx8sdk/Include/DShowIDL/dshowasf.idl deleted file mode 100644 index 8add5111..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/dshowasf.idl +++ /dev/null @@ -1,59 +0,0 @@ -//------------------------------------------------------------------------------ -// File: DShowASF.idl -// -// Desc: -// -// Copyright (c) 1992-2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -import "unknwn.idl"; -import "objidl.idl"; -import "strmif.idl"; // for media type and time definitions -import "wmsdkidl.idl"; - -cpp_quote( "EXTERN_GUID( IID_IConfigAsfWriter,0x45086030,0xF7E4,0x486a,0xB5,0x04,0x82,0x6B,0xB5,0x79,0x2A,0x3B );" ) - -interface IConfigAsfWriter; -interface IWMProfile; - -// 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: These 2 XXXProfileId methods are now obsolete because they assume - // version 4.0 WMSDK profiles. To configure the filter for later profile - // versions using a profile index, use the XXXProfile methods which take - // the IWMProfile* directly. - // - 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 ); -} - diff --git a/sdk/dx8sdk/Include/DShowIDL/dvdif.idl b/sdk/dx8sdk/Include/DShowIDL/dvdif.idl deleted file mode 100644 index 4ad2bca1..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/dvdif.idl +++ /dev/null @@ -1,2326 +0,0 @@ -//------------------------------------------------------------------------------ -// File: DVDIf.idl -// -// Desc: DirectShow interfaces to control playback of a DVD filter graph. -// -// Copyright (c) 1992-2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -// forward declarations - these are the interfaces declared in this file - -import "unknwn.idl"; -import "objidl.idl"; - -cpp_quote("#include ") - -interface IDvdControl; -interface IDvdInfo; -interface IDirectDraw; -interface IDirectDrawSurface; -interface IDvdGraphBuilder ; -interface IDDrawExclModeVideo; -interface IDDrawExclModeVideoCallback; -interface IDvdCmd; -interface IDvdState; - - -//========================================================================== -//========================================================================== -// -// 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;") - -// -// 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_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; - - -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; - -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; - -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; - -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; - -typedef struct tagDVD_TitleMainAttributes -{ - // for Titles - DVD_TITLE_APPMODE AppMode; - - // 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; - -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; - -//========================================================================== -//========================================================================== -// 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 -//========================================================================== -//========================================================================== - -[ -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 ) - // NOTE: MAKELANGID seems to have a bug so 'jp' may have to be used - // instead of 'ja' for the ISO639 code for Japanese. - // 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 in which to interpret the the Parental Level. - // The country 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. -//========================================================================== -//========================================================================== - -[ -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] DVD_PLAYBACK_LOCATION *pLocation - ); - - // GetTotalTitleTime - // Return the total playback time for the current title. Only works - // for One_Sequential_PGC_Titles. - HRESULT GetTotalTitleTime - ( [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] ULONG * pulButtonsAvailable, - [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] ULONG * pulAnglesAvailable, - [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] ULONG * pulStreamsAvailable, - [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] ULONG * pulStreamsAvailable, - [out] ULONG * pulCurrentStream, - [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] 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] SPRMARRAY * pRegisterArray - ); - - // GetAllGPRMs - // Returns the current contents of all General Parameter Registers. - // Use of GPRMs is title specific. - HRESULT GetAllGPRMs - ( [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] 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] 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] 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] DVD_ATR * pATR - ); - - // GetCurrentVideoAttributes - // Returns the video attributes for the current title or menu. - HRESULT GetCurrentVideoAttributes - ( [out] DVD_VideoATR *pATR - ); - - // GetCurrentAudioAttributes - // Returns the video attributes for the stream in the current - // title or menu. - HRESULT GetCurrentAudioAttributes - ( [out] DVD_AudioATR *pATR - ); - - // GetCurrentSubpictureAttributes - // Returns the video attributes for the stream in the current - // title or menu. - HRESULT GetCurrentSubpictureAttributes - ( [out] DVD_SubpictureATR *pATR - ); - - - // GetCurrentVolumeInfo - // Returns current DVD volume info. - HRESULT GetCurrentVolumeInfo - ( [out] ULONG *pulNumOfVol, // number of volumes (disc sides?) in a volume set - [out] ULONG *pulThisVolNum, // volume number for this root directory - [out] DVD_DISC_SIDE *pSide, // current disc side - [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)] BYTE *pTextManager, - [in] ULONG ulBufSize, // buffer size passed in - [out] ULONG *pulActualSize // amount of actual data return - ); - - // GetPlayerParentalLevel - // Returns the current parental level and the current country 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 codes. - HRESULT GetPlayerParentalLevel - ( [out] ULONG *pulParentalLevel, // current parental level - [out] ULONG *pulCountryCode // current country 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] 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] 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)] LPSTR pRoot, // pointer to buffer to get root string - [in] ULONG ulBufSize, // size of buffer passed in - [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. -//========================================================================== -//========================================================================== - -[ -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 -// -//========================================================================== -//========================================================================== - -[ -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] ULONGLONG* pullUniqueID ); // 64-bit unique id for the disc - - // - // GetParentalLevel - // - // Returns the state's parental level - // - HRESULT GetParentalLevel - ( [out] ULONG* pulParentalLevel ); -} - -//========================================================================== -//========================================================================== -// 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 -//========================================================================== -//========================================================================== - -[ -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] 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] 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] 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] 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] 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] 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] IDvdCmd** ppCmd ); - - // ReplayChapter - // Start playing from the beginning of they current program. - // Annex J: TopPG_Search - HRESULT ReplayChapter( - [in] DWORD dwFlags, - [out] IDvdCmd** ppCmd ); - - // PlayNextChapter - // Start playing from the beginning of the next program. - // Annex J: NextPG_Search - HRESULT PlayNextChapter( - [in] DWORD dwFlags, - [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] 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] 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] 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] 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] 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] 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] 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] 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 in which to interpret the Parental Level. - // Annex J: Parental_Country_Select - // The country 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] 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] 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] 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] 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") - - -[ -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] 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] 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] DVD_HMSF_TIMECODE* pTotalTime, - [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] ULONG * pulButtonsAvailable, - [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] ULONG * pulAnglesAvailable, - [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] ULONG * pulStreamsAvailable, - [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] ULONG * pulStreamsAvailable, - [out] ULONG * pulCurrentStream, - [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] 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] 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] 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] 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] 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] DVD_MenuAttributes * pMenu, - [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] DVD_MenuAttributes* pATR - ); - - // GetCurrentVideoAttributes - // Returns the video attributes for the current title or menu. - // - HRESULT GetCurrentVideoAttributes - ( [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] 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] DVD_KaraokeAttributes* pAttributes - ); - - // GetSubpictureAttributes - // Returns the subpicture attributes for the specified stream in the current - // title or menu. - HRESULT GetSubpictureAttributes - ( [in] ULONG ulStream, - [out] DVD_SubpictureAttributes *pATR - ); - - // GetDVDVolumeInfo - // Returns current DVD volume information. - HRESULT GetDVDVolumeInfo - ( [out] ULONG *pulNumOfVolumes, // number of volumes (disc sides?) in a volume set - [out] ULONG *pulVolume, // volume number for current DVD directory - [out] DVD_DISC_SIDE *pSide, // current disc side - [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] 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] ULONG* pulNumOfStrings, - [out] LCID* pLangCode, - [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] BYTE* pbBuffer, - [in] ULONG ulMaxBufferSize, - [out] ULONG* pulActualSize, - [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] WCHAR* pchwBuffer, - [in] ULONG ulMaxBufferSize, - [out] ULONG* pulActualSize, - [out] enum DVD_TextStringType* pType - ); - - // GetPlayerParentalLevel - // Returns the current parental level and the current country 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 codes. - HRESULT GetPlayerParentalLevel - ( [out] ULONG *pulParentalLevel, // current parental level - [out] BYTE pbCountryCode[2] // current country 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] 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] 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)] LPWSTR pszwPath, // pointer to buffer to get root string - [in] ULONG ulMaxSize, // size of buffer in WCHARs passed in - [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] 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] 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] IDvdState **pStateData // returned object - ); - - // - // GetMenuLanguages - // - // Navigator gets all of the menu languages for the VMGM and VTSM domains. - // - HRESULT GetMenuLanguages - ( [out] LCID *pLanguages, // data buffer (NULL returns #languages) - [in] ULONG ulMaxLanguages, // maxiumum number of languages to retrieve - [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] 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] IDvdCmd **pCmdObj - ); - - // GetDefaultMenuLanguage - // Returns the default language for menus. - HRESULT GetDefaultMenuLanguage - ( [out] LCID * pLanguage - ); - - // GetDefaultAudioLanguage - // Gets the default audio language. - // Languages are specified with Windows standard LCIDs. - HRESULT GetDefaultAudioLanguage - ( [out] LCID* pLanguage, - [out] DVD_AUDIO_LANG_EXT* pAudioExtension - ); - - // GetDefaultSubpictureLanguage - // Gets the default subpicture language. - // Languages are specified with Windows standard LCIDs. - HRESULT GetDefaultSubpictureLanguage - ( [out] LCID* pLanguage, - [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] DVD_DECODER_CAPS *pCaps - ) ; - - // - // GetButtonRect: - // Retrieves the coordinates for a given button number - // - HRESULT GetButtonRect - ( [in] ULONG ulButton, - [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] BOOL *pbEnabled // returned state - ); -} - - - -//========================================================================== -//========================================================================== -// -// 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_VMR9_ONLY = 0x800 // only use VMR9 (otherwise fail) for rendering -} 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] 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] 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] 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] IDirectDraw **ppDDrawObject, - [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] IDirectDrawSurface **ppDDrawSurface, - [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] DWORD *pdwVideoWidth, - [out] DWORD *pdwVideoHeight, - [out] DWORD *pdwPictAspectRatioX, - [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 -} diff --git a/sdk/dx8sdk/Include/DShowIDL/dxtrans.idl b/sdk/dx8sdk/Include/DShowIDL/dxtrans.idl deleted file mode 100644 index 6395d325..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/dxtrans.idl +++ /dev/null @@ -1,1289 +0,0 @@ -//------------------------------------------------------------------------------ -// -// Copyright Microsoft Corporation 1997-2000 -// All rights reserved. -// -// File: dxtrans.idl -// -// Overview: -// This is the IDL file for DirectX installable transform coclass, -// interface, and type definitions. -// -//------------------------------------------------------------------------------ - -cpp_quote("#include ") -cpp_quote("#include ") -cpp_quote("#include ") -cpp_quote("#include ") -cpp_quote("#include ") - -//--- Import base idl -import "oaidl.idl"; -import "ocidl.idl"; -import "servprov.idl"; -import "comcat.idl"; - -// -// Since direct draw does not have an IDL, we'll define DDSURFACEDESC to -// be a void, but include ddraw.h in the header file. This makes MIDL happy. -// -#ifndef DDSURFACEDESC -cpp_quote("#if 0") -cpp_quote("// Bogus definition used to make MIDL compiler happy") -typedef void DDSURFACEDESC; -typedef void D3DRMBOX; -typedef void D3DVECTOR; -typedef void D3DRMMATRIX4D; -typedef void* LPSECURITY_ATTRIBUTES; -cpp_quote("#endif") -#endif -//--- Additional includes - -//--- Export -cpp_quote( "#ifdef _DXTRANSIMPL") -cpp_quote( " #define _DXTRANS_IMPL_EXT _declspec(dllexport)") -cpp_quote( "#else") -cpp_quote( " #define _DXTRANS_IMPL_EXT _declspec(dllimport)") -cpp_quote( "#endif") - -//=== Forward References ==================================================== -interface IDXTransformFactory; -interface IDXTransform; -interface IDXTaskManager; -interface IDXSurfaceFactory; -interface IDXSurface; -interface IDXARGBSurfaceInit; -interface IDXRawSurface; -interface IDXARGBReadPtr; -interface IDXARGBReadWritePtr; -interface IDXDCLock; -interface IDXTScale; -interface IDXLookupTable; -interface IDXTBindHost; -interface IBindHost; -interface IDXTScaleOutput; -interface IDXGradient; - -//=== Constants ============================================================= - -cpp_quote("//") -cpp_quote("// All GUIDs for DXTransform are declared in DXTGUID.C in the SDK include directory") -cpp_quote("//") -cpp_quote("EXTERN_C const GUID DDPF_RGB1;") -cpp_quote("EXTERN_C const GUID DDPF_RGB2;") -cpp_quote("EXTERN_C const GUID DDPF_RGB4;") -cpp_quote("EXTERN_C const GUID DDPF_RGB8;") -cpp_quote("EXTERN_C const GUID DDPF_RGB332;") -cpp_quote("EXTERN_C const GUID DDPF_ARGB4444;") -cpp_quote("EXTERN_C const GUID DDPF_RGB565;") -cpp_quote("EXTERN_C const GUID DDPF_BGR565;") -cpp_quote("EXTERN_C const GUID DDPF_RGB555;") -cpp_quote("EXTERN_C const GUID DDPF_ARGB1555;") -cpp_quote("EXTERN_C const GUID DDPF_RGB24;") -cpp_quote("EXTERN_C const GUID DDPF_BGR24;") -cpp_quote("EXTERN_C const GUID DDPF_RGB32;") -cpp_quote("EXTERN_C const GUID DDPF_BGR32;") -cpp_quote("EXTERN_C const GUID DDPF_ABGR32;") -cpp_quote("EXTERN_C const GUID DDPF_ARGB32;") -cpp_quote("EXTERN_C const GUID DDPF_PMARGB32;") -cpp_quote("EXTERN_C const GUID DDPF_A1;") -cpp_quote("EXTERN_C const GUID DDPF_A2;") -cpp_quote("EXTERN_C const GUID DDPF_A4;") -cpp_quote("EXTERN_C const GUID DDPF_A8;") -cpp_quote("EXTERN_C const GUID DDPF_Z8;") -cpp_quote("EXTERN_C const GUID DDPF_Z16;") -cpp_quote("EXTERN_C const GUID DDPF_Z24;") -cpp_quote("EXTERN_C const GUID DDPF_Z32;") -cpp_quote("//") -cpp_quote("// Component categories") -cpp_quote("//") -cpp_quote("EXTERN_C const GUID CATID_DXImageTransform;") -cpp_quote("EXTERN_C const GUID CATID_DX3DTransform;") -cpp_quote("EXTERN_C const GUID CATID_DXAuthoringTransform;") -cpp_quote("EXTERN_C const GUID CATID_DXSurface;") -cpp_quote("//") -cpp_quote("// Service IDs") -cpp_quote("//") -cpp_quote("EXTERN_C const GUID SID_SDirectDraw;") -cpp_quote("EXTERN_C const GUID SID_SDirect3DRM;") -cpp_quote("#define SID_SDXTaskManager CLSID_DXTaskManager") -cpp_quote("#define SID_SDXSurfaceFactory IID_IDXSurfaceFactory") -cpp_quote("#define SID_SDXTransformFactory IID_IDXTransformFactory") -cpp_quote("//") -cpp_quote("// DXTransforms Core Type Library Version Info") -cpp_quote("//") -cpp_quote("#define DXTRANS_TLB_MAJOR_VER 1") -cpp_quote("#define DXTRANS_TLB_MINOR_VER 1") - -//=== Struct & Enum definitions ============================================= - -//=== Interface definitions ================================================= - - -//+----------------------------------------------------------------------------- -// -// IDXBaseObject -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(17B59B2B-9CC8-11d1-9053-00C04FD9189D), - helpstring("IDXBaseObject Interface"), - pointer_default(unique), - local - ] - interface IDXBaseObject : IUnknown - { - HRESULT GetGenerationId( [out]ULONG *pID); - HRESULT IncrementGenerationId([in] BOOL bRefresh); - HRESULT GetObjectSize( [out] ULONG *pcbSize); - }; - - -//+----------------------------------------------------------------------------- -// -// Bounding rectangle and vector structures. -// -//------------------------------------------------------------------------------ - - //--- Dimension identifiers - typedef enum DXBNDID - { - DXB_X = 0, - DXB_Y = 1, - DXB_Z = 2, - DXB_T = 3 - } DXBNDID; - - //--- Bound types - typedef enum DXBNDTYPE - { - DXBT_DISCRETE, - DXBT_DISCRETE64, - DXBT_CONTINUOUS, - DXBT_CONTINUOUS64 - } DXBNDTYPE; - - //--- Discrete bounds (image & sound) - typedef struct DXDBND - { - long Min; - long Max; - } DXDBND; - typedef DXDBND DXDBNDS[4]; - - typedef struct DXDBND64 - { - LONGLONG Min; - LONGLONG Max; - } DXDBND64; - typedef DXDBND64 DXDBNDS64[4]; - - //--- Continuous bounds (geometry) - typedef struct DXCBND - { - float Min; - float Max; - } DXCBND; - typedef DXCBND DXCBNDS[4]; - - typedef struct DXCBND64 - { - double Min; - double Max; - } DXCBND64; - typedef DXCBND64 DXCBNDS64[4]; - - //--- Combined space - typedef union DXBNDS switch( DXBNDTYPE eType ) u - { - case DXBT_DISCRETE: - DXDBND D[4]; - case DXBT_DISCRETE64: - DXDBND64 LD[4]; - case DXBT_CONTINUOUS: - DXCBND C[4]; - case DXBT_CONTINUOUS64: - DXCBND64 LC[4]; - } DXBNDS; - - //--- Discrete 4D vector - typedef long DXDVEC[4]; - typedef LONGLONG DXDVEC64[4]; - - //--- Continous 4D vector - typedef float DXCVEC[4]; - typedef double DXCVEC64[4]; - - //--- Combined space vector - typedef union DXVEC switch( DXBNDTYPE eType ) u - { - case DXBT_DISCRETE: - long D[4]; - case DXBT_DISCRETE64: - LONGLONG LD[4]; - case DXBT_CONTINUOUS: - float C[4]; - case DXBT_CONTINUOUS64: - double LC[4]; - } DXVEC; - - -//+----------------------------------------------------------------------------- -// -// IDXTransformFactory -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(6A950B2B-A971-11d1-81C8-0000F87557DB), - helpstring("IDXTransformFactory Interface"), - pointer_default(unique), - local - ] - interface IDXTransformFactory : IServiceProvider - { - HRESULT SetService( [in]REFGUID guidService, - [in]IUnknown *pUnkService, - [in]BOOL bWeakReference); - - HRESULT CreateTransform( [in, size_is(ulNumInputs)]IUnknown** punkInputs, - [in]ULONG ulNumInputs, - [in, size_is(ulNumOutputs)]IUnknown** punkOutputs, - [in]ULONG ulNumOutputs, - [in]IPropertyBag* pInitProps, [in]IErrorLog* pErrLog, - [in]REFCLSID TransCLSID, [in]REFIID TransIID, - [out, iid_is(TransIID)]void** ppTransform ); - - HRESULT InitializeTransform( [in]IDXTransform* pTransform, - [in, size_is(ulNumInputs)]IUnknown** punkInputs, - [in]ULONG ulNumInputs, - [in, size_is(ulNumOutputs)]IUnknown** punkOutputs, - [in]ULONG ulNumOutputs, - [in]IPropertyBag* pInitProps, [in]IErrorLog* pErrLog ); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXTransform -// -//------------------------------------------------------------------------------ - - typedef enum DXTMISCFLAGS - { - DXTMF_BLEND_WITH_OUTPUT = ( 1L << 0 ), - DXTMF_DITHER_OUTPUT = ( 1L << 1 ), - DXTMF_OPTION_MASK = (0x0000FFFF), // Low word is settable options - DXTMF_VALID_OPTIONS = (DXTMF_BLEND_WITH_OUTPUT | DXTMF_DITHER_OUTPUT), - // - // Status flags can not be changed by call to SetMiscFlags - // - DXTMF_BLEND_SUPPORTED = ( 1L << 16 ), - DXTMF_DITHER_SUPPORTED = ( 1L << 17 ), - DXTMF_INPLACE_OPERATION = ( 1L << 24 ), - DXTMF_BOUNDS_SUPPORTED = ( 1L << 25 ), - DXTMF_PLACEMENT_SUPPORTED = ( 1L << 26 ), - DXTMF_QUALITY_SUPPORTED = ( 1L << 27 ), - DXTMF_OPAQUE_RESULT = ( 1L << 28 ) - } DXTMISCFLAGS; - - typedef enum DXINOUTINFOFLAGS - { - DXINOUTF_OPTIONAL = ( 1L << 0) - } DXINOUTINFOFLAGS; - - [ - object, - uuid(30A5FB78-E11F-11d1-9064-00C04FD9189D), - helpstring("IDXTransform Interface"), - pointer_default(unique), - local - ] - interface IDXTransform : IDXBaseObject - { - HRESULT Setup( [in, size_is(ulNumInputs)] IUnknown * const * punkInputs, - [in]ULONG ulNumInputs, - [in, size_is(ulNumOutputs)] IUnknown * const * punkOutputs, - [in]ULONG ulNumOutputs, - [in]DWORD dwFlags ); - HRESULT Execute( [in]const GUID* pRequestID, [in]const DXBNDS *pClipBnds, - [in]const DXVEC *pPlacement ); - HRESULT MapBoundsIn2Out( [in] const DXBNDS *pInBounds, - [in]ULONG ulNumInBnds, - [in]ULONG ulOutIndex, - [out]DXBNDS *pOutBounds ); - HRESULT MapBoundsOut2In( [in] ULONG ulOutIndex, - [in] const DXBNDS *pOutBounds, - [in] ULONG ulInIndex, - [out]DXBNDS *pInBounds ); - HRESULT SetMiscFlags( [in] DWORD dwMiscFlags); - HRESULT GetMiscFlags( [out]DWORD * pdwMiscFlags ); - HRESULT GetInOutInfo( [in]BOOL bIsOutput, [in]ULONG ulIndex, - [out]DWORD *pdwFlags, [out, size_is(*pcIDs)] GUID *pIDs, - [in, out] ULONG *pcIDs, - [out] IUnknown **ppUnkCurrentObject); - HRESULT SetQuality( [in] float fQuality ); - HRESULT GetQuality( [out] float * fQuality ); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXSurfacePick -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(30A5FB79-E11F-11d1-9064-00C04FD9189D), - helpstring("IDXSurfacePick Interface"), - pointer_default(unique), - local - ] - interface IDXSurfacePick : IUnknown - { - HRESULT PointPick([in]const DXVEC *pPoint, - [out]ULONG * pulInputSurfaceIndex, - [out]DXVEC *pInputPoint); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXTBindHost -// -// Overview: -// This interface is used to set a site-specific bind host for a transform. -// Only transforms that need access to a bind host need to implement this -// interface. -// -// For some reason, MIDL does not like IBindHost, so we've declared this -// interface local. -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(D26BCE55-E9DC-11d1-9066-00C04FD9189D), - helpstring("IDXTBindHost Interface"), - pointer_default(unique), - local - ] - interface IDXTBindHost : IUnknown - { - HRESULT SetBindHost([in] IBindHost * pBindHost); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXTaskManager -// -// Overview: -// This interface is used to implement a task managment service provider to -// optimize thread usage. -// -//------------------------------------------------------------------------------ - - typedef void (__stdcall DXTASKPROC)(void *pTaskData, BOOL* pbContinueProcessing ); - typedef DXTASKPROC *PFNDXTASKPROC; - - typedef void (__stdcall DXAPCPROC)(DWORD dwData); - typedef DXAPCPROC *PFNDXAPCPROC; - -cpp_quote("#ifdef __cplusplus") - - cpp_quote("typedef struct DXTMTASKINFO" ) - cpp_quote("{") - cpp_quote(" PFNDXTASKPROC pfnTaskProc; // Pointer to function to execute") - cpp_quote(" PVOID pTaskData; // Pointer to argument data") - cpp_quote(" PFNDXAPCPROC pfnCompletionAPC; // Pointer to completion APC proc") - cpp_quote(" DWORD dwCompletionData; // Pointer to APC proc data") - cpp_quote(" const GUID* pRequestID; // Used to identify groups of tasks") - cpp_quote("} DXTMTASKINFO;") - -cpp_quote("#else") - - typedef struct DXTMTASKINFO - { - PVOID pfnTaskProc; // Pointer to function to execute - PVOID pTaskData; // Pointer to argument data - PVOID pfnCompletionAPC; // Pointer to completion APC proc - DWORD dwCompletionData; // Pointer to APC proc data - const GUID* pRequestID; // Used to identify groups of tasks - } DXTMTASKINFO; - -cpp_quote("#endif") - - [ - object, - uuid(254DBBC1-F922-11d0-883A-3C8B00C10000), - helpstring("IDXTaskManager Interface"), - pointer_default(unique), - local - ] - interface IDXTaskManager : IUnknown - { - HRESULT QueryNumProcessors( [out]ULONG* pulNumProc ); - HRESULT SetThreadPoolSize( [in]ULONG ulNumThreads ); - HRESULT GetThreadPoolSize( [out]ULONG* pulNumThreads ); - HRESULT SetConcurrencyLimit( [in]ULONG ulNumThreads ); - HRESULT GetConcurrencyLimit( [out]ULONG* pulNumThreads ); - HRESULT ScheduleTasks( [in]DXTMTASKINFO TaskInfo[], - [in]HANDLE Events[], - [out]DWORD TaskIDs[], - [in]ULONG ulNumTasks, [in]ULONG ulWaitPeriod ); - HRESULT TerminateTasks( [in]DWORD TaskIDs[], [in]ULONG ulCount, - [in]ULONG ulTimeOut ); - HRESULT TerminateRequest( [in]REFIID RequestID, [in]ULONG ulTimeOut ); - }; - - -//+----------------------------------------------------------------------------- -// -// Sample structures (C++) -// -// Overview: -// We want an operator so that we can cast from a DXSAMPLE to a DWORD, so -// for C++ we will define the structure a special way. -// -//------------------------------------------------------------------------------ - -cpp_quote("#ifdef __cplusplus") - - cpp_quote("/////////////////////////////////////////////////////") - cpp_quote("") - cpp_quote("class DXBASESAMPLE;") - cpp_quote("class DXSAMPLE;") - cpp_quote("class DXPMSAMPLE;") - cpp_quote("") - cpp_quote("/////////////////////////////////////////////////////") - cpp_quote("") - cpp_quote("class DXBASESAMPLE") - cpp_quote("{") - cpp_quote("public:") - cpp_quote(" BYTE Blue;") - cpp_quote(" BYTE Green;") - cpp_quote(" BYTE Red;") - cpp_quote(" BYTE Alpha;") - cpp_quote(" DXBASESAMPLE() {}") - cpp_quote(" DXBASESAMPLE(const BYTE alpha, const BYTE red, const BYTE green, const BYTE blue) :") - cpp_quote(" Alpha(alpha),") - cpp_quote(" Red(red),") - cpp_quote(" Green(green),") - cpp_quote(" Blue(blue) {}") - cpp_quote(" DXBASESAMPLE(const DWORD val) { *this = (*(DXBASESAMPLE *)&val); }") - cpp_quote(" operator DWORD () const {return *((DWORD *)this); }") - cpp_quote(" DWORD operator=(const DWORD val) { return *this = *((DXBASESAMPLE *)&val); }") - cpp_quote("}; // DXBASESAMPLE") - cpp_quote("") - cpp_quote("/////////////////////////////////////////////////////") - cpp_quote("") - cpp_quote("class DXSAMPLE : public DXBASESAMPLE") - cpp_quote("{") - cpp_quote("public:") - cpp_quote(" DXSAMPLE() {}") - cpp_quote(" DXSAMPLE(const BYTE alpha, const BYTE red, const BYTE green, const BYTE blue) :") - cpp_quote(" DXBASESAMPLE(alpha, red, green, blue) {}") - cpp_quote(" DXSAMPLE(const DWORD val) { *this = (*(DXSAMPLE *)&val); }") - cpp_quote(" operator DWORD () const {return *((DWORD *)this); }") - cpp_quote(" DWORD operator=(const DWORD val) { return *this = *((DXSAMPLE *)&val); }") - cpp_quote(" operator DXPMSAMPLE() const;") - cpp_quote("}; // DXSAMPLE") - cpp_quote("") - cpp_quote("/////////////////////////////////////////////////////") - cpp_quote("") - cpp_quote("class DXPMSAMPLE : public DXBASESAMPLE") - cpp_quote("{") - cpp_quote("public:") - cpp_quote(" DXPMSAMPLE() {}") - cpp_quote(" DXPMSAMPLE(const BYTE alpha, const BYTE red, const BYTE green, const BYTE blue) :") - cpp_quote(" DXBASESAMPLE(alpha, red, green, blue) {}") - cpp_quote(" DXPMSAMPLE(const DWORD val) { *this = (*(DXPMSAMPLE *)&val); }") - cpp_quote(" operator DWORD () const {return *((DWORD *)this); }") - cpp_quote(" DWORD operator=(const DWORD val) { return *this = *((DXPMSAMPLE *)&val); }") - cpp_quote(" operator DXSAMPLE() const;") - cpp_quote("}; // DXPMSAMPLE") - cpp_quote("") - cpp_quote("//") - cpp_quote("// The following cast operators are to prevent a direct assignment of a DXSAMPLE to a DXPMSAMPLE") - cpp_quote("//") - cpp_quote("inline DXSAMPLE::operator DXPMSAMPLE() const { return *((DXPMSAMPLE *)this); }") - cpp_quote("inline DXPMSAMPLE::operator DXSAMPLE() const { return *((DXSAMPLE *)this); }") - - -//+----------------------------------------------------------------------------- -// -// Sample structures (IDL, C) -// -//------------------------------------------------------------------------------ - -cpp_quote("#else // !__cplusplus") - - typedef struct DXBASESAMPLE - { - BYTE Blue; - BYTE Green; - BYTE Red; - BYTE Alpha; - } DXBASESAMPLE; - - typedef struct DXSAMPLE - { - BYTE Blue; - BYTE Green; - BYTE Red; - BYTE Alpha; - } DXSAMPLE; - - typedef struct DXPMSAMPLE - { - BYTE Blue; - BYTE Green; - BYTE Red; - BYTE Alpha; - } DXPMSAMPLE; - -cpp_quote("#endif // !__cplusplus") - -//+----------------------------------------------------------------------------- -// -// DXRUNINFO structures. -// -//------------------------------------------------------------------------------ - - typedef enum DXRUNTYPE - { - DXRUNTYPE_CLEAR = 0, // The run is zero Alpha - DXRUNTYPE_OPAQUE = 1, // The run is full Alpha (i.e. 255) - DXRUNTYPE_TRANS = 2, // The run is non-zero Alpha - DXRUNTYPE_UNKNOWN= 3 // The run type is unknown. Caller must inspect. - } DXRUNTYPE; - - const ULONG DX_MAX_RUN_INFO_COUNT = 128; // Defines the maximum number of RUNINFOs in a single row - - - cpp_quote("// Ignore the definition used by MIDL for TLB generation") - cpp_quote("#if 0") - - typedef struct DXRUNINFO - { - ULONG Bitfields; - } DXRUNINFO; - - cpp_quote("#endif // 0") - - // Emit the C definition to the H file directly, as bit fields are not - // supported by MIDL. - - cpp_quote("typedef struct DXRUNINFO") - cpp_quote("{") - cpp_quote(" ULONG Type : 2; // Type") - cpp_quote(" ULONG Count : 30; // Number of samples in run") - cpp_quote("} DXRUNINFO;") - - - typedef enum DXSFCREATE - { - DXSF_FORMAT_IS_CLSID = ( 1L << 0 ), - DXSF_NO_LAZY_DDRAW_LOCK = ( 1L << 1 ) - } DXSFCREATE; - - typedef enum DXBLTOPTIONS - { - DXBOF_DO_OVER = (1L << 0), - DXBOF_DITHER = (1L << 1) - } DXBLTOPTIONS; - - -//+----------------------------------------------------------------------------- -// -// IDXSurfaceModifier -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(144946F5-C4D4-11d1-81D1-0000F87557DB), - helpstring("IDXSurfaceFactory Interface"), - pointer_default(unique), - local - ] - interface IDXSurfaceFactory : IUnknown - { - HRESULT CreateSurface([in] IUnknown *pDirectDraw, - [in] const DDSURFACEDESC * pDDSurfaceDesc, - [in] const GUID * pFormatID, - [in] const DXBNDS *pBounds, - [in] DWORD dwFlags, - [in] IUnknown *punkOuter, - [in] REFIID riid, - [out, iid_is( riid )] void ** ppDXSurface); - - HRESULT CreateFromDDSurface([in] IUnknown *pDDrawSurface, - [in] const GUID *pFormatID, - [in] DWORD dwFlags, - [in] IUnknown *punkOuter, - [in] REFIID riid, - [out, iid_is( riid )] void ** ppDXSurface); - - HRESULT LoadImage( - [in] const LPWSTR pszFileName, - [in] IUnknown *pDirectDraw, - [in] const DDSURFACEDESC * pDDSurfaceDesc, - [in] const GUID *pFormatID, - [in] REFIID riid, - [out, iid_is( riid )] void ** ppDXSurface); - - HRESULT LoadImageFromStream([in] IStream *pStream, - [in] IUnknown *pDirectDraw, - [in] const DDSURFACEDESC * pDDSurfaceDesc, - [in] const GUID *pFormatID, - [in] REFIID riid, - [out, iid_is( riid )] void ** ppDXSurface); - - HRESULT CopySurfaceToNewFormat( [in]IDXSurface* pSrc, - [in] IUnknown *pDirectDraw, - [in] const DDSURFACEDESC * pDDSurfaceDesc, - [in] const GUID *pDestFormatID, - [out] IDXSurface** ppNewSurface ); - - HRESULT CreateD3DRMTexture([in] IDXSurface *pSrc, - [in] IUnknown *pDirectDraw, - [in] IUnknown *pD3DRM3, - [in] REFIID riid, - [out, iid_is(riid)] void **ppTexture3); - - HRESULT BitBlt([in] IDXSurface *pDest, - [in] const DXVEC *pPlacement, - [in] IDXSurface *pSrc, - [in] const DXBNDS *pClipBounds, - [in] DWORD dwFlags); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXSurfaceModifier -// -//------------------------------------------------------------------------------ - - typedef enum DXSURFMODCOMPOP - { - DXSURFMOD_COMP_OVER = 0, - DXSURFMOD_COMP_ALPHA_MASK = 1, - DXSURFMOD_COMP_MAX_VALID = 1 - } DXSURFMODCOMPOP; - - [ - object, - uuid(9EA3B637-C37D-11d1-905E-00C04FD9189D), - helpstring("IDXSurfaceModifier Interface"), - pointer_default(unique), - local - ] - interface IDXSurfaceModifier : IUnknown - { - HRESULT SetFillColor([in] DXSAMPLE Color); - HRESULT GetFillColor([out] DXSAMPLE *pColor); - HRESULT SetBounds([in] const DXBNDS *pBounds ); // Get supported though IDXSurface interface - HRESULT SetBackground([in] IDXSurface *pSurface); - HRESULT GetBackground([out] IDXSurface **ppSurface); - HRESULT SetCompositeOperation([in] DXSURFMODCOMPOP CompOp); - HRESULT GetCompositeOperation([out] DXSURFMODCOMPOP *pCompOp); - // - // The following methods only apply to the FOREGROUND surface - // - HRESULT SetForeground([in] IDXSurface *pSurface, [in] BOOL bTile, [in] const POINT * pOrigin); - HRESULT GetForeground([out] IDXSurface **ppSurface, [out] BOOL *pbTile, [out] POINT * pOrigin); - HRESULT SetOpacity([in] float Opacity); - HRESULT GetOpacity([out] float *pOpacity); - HRESULT SetLookup( [in]IDXLookupTable * pLookupTable ); - HRESULT GetLookup( [out]IDXLookupTable ** ppLookupTable ); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXSurface -// -//------------------------------------------------------------------------------ - - typedef enum DXSAMPLEFORMATENUM - { - DXPF_FLAGSMASK = (0xFFFF0000), // Top word is flags, low word is enum - DXPF_NONPREMULT = (0x00010000), // Flags to be OR'd with pixel formats - DXPF_TRANSPARENCY = (0x00020000), // Color key or one-bit alpha (alpha only 0 or 0xFF) - DXPF_TRANSLUCENCY = (0x00040000), // Alpha can be any value from 0->0xFF - // - // This 3-bit field is used to determine what type of dithering to be used - // - DXPF_2BITERROR = (0x00200000), // 2 bits of error term - DXPF_3BITERROR = (0x00300000), // 3 bits of error term for color (16-bit color) - DXPF_4BITERROR = (0x00400000), // 4 bits of error term (ARGB 4444) - DXPF_5BITERROR = (0x00500000), // 5 bits of error term for color (8-bit color) - DXPF_ERRORMASK = (0x00700000), // Mask of bits used for dithering - - DXPF_NONSTANDARD = (0), // To be used for any surface that is not one of the following formats - // This can be combined with DXPFNONPREMULT if the surface can work - // better in non-premultiplied space. - DXPF_PMARGB32 = (1 | DXPF_TRANSPARENCY | DXPF_TRANSLUCENCY), - DXPF_ARGB32 = (2 | DXPF_NONPREMULT | DXPF_TRANSPARENCY | DXPF_TRANSLUCENCY), - DXPF_ARGB4444 = (3 | DXPF_NONPREMULT | DXPF_TRANSPARENCY | DXPF_TRANSLUCENCY | DXPF_4BITERROR), - DXPF_A8 = (4 | DXPF_TRANSPARENCY | DXPF_TRANSLUCENCY), - DXPF_RGB32 = (5), - DXPF_RGB24 = (6), - DXPF_RGB565 = (7 | DXPF_3BITERROR), - DXPF_RGB555 = (8 | DXPF_3BITERROR), - DXPF_RGB8 = (9 | DXPF_5BITERROR), - DXPF_ARGB1555 = (10 | DXPF_TRANSPARENCY | DXPF_3BITERROR), - DXPF_RGB32_CK = (DXPF_RGB32 | DXPF_TRANSPARENCY), - DXPF_RGB24_CK = (DXPF_RGB24 | DXPF_TRANSPARENCY), - DXPF_RGB555_CK = (DXPF_RGB555 | DXPF_TRANSPARENCY), - DXPF_RGB565_CK = (DXPF_RGB565 | DXPF_TRANSPARENCY), - DXPF_RGB8_CK = (DXPF_RGB8 | DXPF_TRANSPARENCY) - } DXSAMPLEFORMATENUM; - - typedef enum DXLOCKSURF - { - DXLOCKF_READ = 0, - DXLOCKF_READWRITE = (1 << 0), - DXLOCKF_EXISTINGINFOONLY = (1 << 1), // If used in conjunction with WANTRUNINFO will prevent creation of a runmap if one does not exist - DXLOCKF_WANTRUNINFO = (1 << 2), - // - // The flags in the high word should be specific to the type of pointer that - // is requested. These flags define ARGB flags. These flags are advisory and - // are not required to be set for ARGB locks. - // - DXLOCKF_NONPREMULT = (1 << 16), // Caller will request non-premultiplied data - DXLOCKF_VALIDFLAGS = (DXLOCKF_READWRITE | DXLOCKF_EXISTINGINFOONLY | DXLOCKF_WANTRUNINFO | DXLOCKF_NONPREMULT) - } DXLOCKSURF; - - typedef enum DXSURFSTATUS - { - DXSURF_TRANSIENT = (1 << 0), // Data in this surface changes often. - DXSURF_READONLY = (1 << 1), // Surface is read-only - DXSURF_VALIDFLAGS = (DXSURF_TRANSIENT | DXSURF_READONLY) - } DXSURFSTATUS; - - [ - object, - uuid(B39FD73F-E139-11d1-9065-00C04FD9189D), - helpstring("IDXSurface Interface"), - pointer_default(unique), - local - ] - interface IDXSurface : IDXBaseObject - { - HRESULT GetPixelFormat([out] GUID * pFormatID, [out] DXSAMPLEFORMATENUM *pSampleFormatEnum); - HRESULT GetBounds( [out]DXBNDS *pBounds ); - HRESULT GetStatusFlags([out] DWORD * pdwStatusFlags); - HRESULT SetStatusFlags([in] DWORD dwStatusFlags); - HRESULT LockSurface( [in]const DXBNDS *pBounds, [in]ULONG ulTimeOut, [in]DWORD dwFlags, - [in]REFIID riid, [out, iid_is(riid)] void **ppPointer, - [out]ULONG* pulGenerationId ); - HRESULT GetDirectDrawSurface( [in] REFIID riid, - [out, iid_is(riid)] void ** ppSurface); - HRESULT GetColorKey(DXSAMPLE * pColorKey); // Can return E_NOTIMPL - HRESULT SetColorKey(DXSAMPLE ColorKey); // Set color of 0 to get rid of color key, can return E_NOTIMPL - HRESULT LockSurfaceDC( [in] const DXBNDS *pBounds, [in]ULONG ulTimeOut, [in] DWORD dwFlags, - [out] IDXDCLock **ppDCLock); - HRESULT SetAppData(DWORD_PTR dwAppData); - HRESULT GetAppData(DWORD_PTR *pdwAppData); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXSurfaceInit -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(9EA3B639-C37D-11d1-905E-00C04FD9189D), - helpstring("IDXSurfaceInit Interface"), - pointer_default(unique), - local - ] - interface IDXSurfaceInit : IUnknown - { - HRESULT InitSurface([in] IUnknown *pDirectDraw, - [in] const DDSURFACEDESC *pDDSurfaceDesc, - [in] const GUID * pFormatID, - [in] const DXBNDS *pBounds, - [in] DWORD dwFlags); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXARGBSurfaceInit -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(9EA3B63A-C37D-11d1-905E-00C04FD9189D), - helpstring("IDXARGBSurfaceInit Interface"), - pointer_default(unique), - local - ] - interface IDXARGBSurfaceInit : IDXSurfaceInit - { - HRESULT InitFromDDSurface( [in] IUnknown *pDDrawSurface, - [in] const GUID * pFormatID, - [in] DWORD dwFlags); - HRESULT InitFromRawSurface([in] IDXRawSurface *pRawSurface); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXARGBReadPtr -// -//------------------------------------------------------------------------------ - - typedef struct tagDXNATIVETYPEINFO - { - BYTE * pCurrentData; - BYTE * pFirstByte; - long lPitch; - DWORD dwColorKey; - } DXNATIVETYPEINFO; - - typedef struct tagDXPACKEDRECTDESC - { - DXBASESAMPLE *pSamples; - BOOL bPremult; - RECT rect; - long lRowPadding; - } DXPACKEDRECTDESC; - - typedef struct tagDXOVERSAMPLEDESC - { - POINT p; - DXPMSAMPLE Color; - } DXOVERSAMPLEDESC; - - [ - object, - uuid(EAAAC2D6-C290-11d1-905D-00C04FD9189D), - helpstring("IDXARGBReadPtr Interface"), - pointer_default(unique), - local - ] - interface IDXARGBReadPtr : IUnknown - { - HRESULT GetSurface( [in]REFIID riid, [out, iid_is( riid )]void ** ppSurface); - DXSAMPLEFORMATENUM GetNativeType( [out]DXNATIVETYPEINFO *pInfo ); - void Move( [in]long cSamples ); - void MoveToRow( [in]ULONG y ); - void MoveToXY( [in]ULONG x, [in]ULONG y); - ULONG MoveAndGetRunInfo( [in]ULONG Row, [out] const DXRUNINFO** ppInfo ); // Returns count of runs - DXSAMPLE * Unpack( [in]DXSAMPLE* pSamples, [in]ULONG cSamples, [in]BOOL bMove ); - DXPMSAMPLE * UnpackPremult( [in]DXPMSAMPLE* pSamples, [in]ULONG cSamples, [in]BOOL bMove ); - void UnpackRect([in] const DXPACKEDRECTDESC * pRectDesc); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXARGBReadWritePtr -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(EAAAC2D7-C290-11d1-905D-00C04FD9189D), - helpstring("IDXARGBReadWritePtr Interface"), - pointer_default(unique), - local - ] - interface IDXARGBReadWritePtr : IDXARGBReadPtr - { - void PackAndMove( [in]const DXSAMPLE *pSamples, [in]ULONG cSamples ); - void PackPremultAndMove( [in]const DXPMSAMPLE *pSamples, [in]ULONG cSamples ); - void PackRect([in]const DXPACKEDRECTDESC *pRectDesc); - void CopyAndMoveBoth( [in]DXBASESAMPLE *pScratchBuffer, [in]IDXARGBReadPtr *pSrc, - [in]ULONG cSamples, [in]BOOL bIsOpaque ); - void CopyRect( [in] DXBASESAMPLE *pScratchBuffer, - [in] const RECT *pDestRect, [in]IDXARGBReadPtr *pSrc, - [in] const POINT *pSrcOrigin, [in]BOOL bIsOpaque); - void FillAndMove( [in]DXBASESAMPLE *pScratchBuffer, [in]DXPMSAMPLE SampVal, - [in]ULONG cSamples, [in]BOOL bDoOver ); - void FillRect( [in]const RECT *pRect, [in]DXPMSAMPLE SampVal, [in]BOOL bDoOver ); - void OverSample( [in]const DXOVERSAMPLEDESC * pOverDesc); - void OverArrayAndMove([in]DXBASESAMPLE *pScratchBuffer, - [in] const DXPMSAMPLE *pSrc, - [in] ULONG cSamples); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXDCLock -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(0F619456-CF39-11d1-905E-00C04FD9189D), - helpstring("IDXDCLock Interface"), - pointer_default(unique), - local - ] - interface IDXDCLock : IUnknown - { - HDC GetDC(void); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXTScaleOutput -// -// Overview: -// Generic interface that any transform can support which allows caller to -// specify the desired output bounds. -//------------------------------------------------------------------------------ - - [ - object, - uuid(B2024B50-EE77-11d1-9066-00C04FD9189D), - helpstring("IDXTScaleOutput Interface"), - pointer_default(unique), - local - ] - interface IDXTScaleOutput : IUnknown - { - HRESULT SetOutputSize([in] const SIZE OutSize, [in] BOOL bMaintainAspect); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXGradient -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(B2024B51-EE77-11d1-9066-00C04FD9189D), - helpstring("IDXGradient Interface"), - pointer_default(unique), - local - ] - interface IDXGradient : IDXTScaleOutput - { - HRESULT SetGradient(DXSAMPLE StartColor, DXSAMPLE EndColor, BOOL bHorizontal); - HRESULT GetOutputSize([out] SIZE *pOutSize); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXTScale -// -// Overview: -// This is the control interface for the simple scale transform. -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(B39FD742-E139-11d1-9065-00C04FD9189D), - helpstring("IDXTScale Interface"), - pointer_default(unique), - local - ] - interface IDXTScale : IUnknown - { - HRESULT SetScales( [in]float Scales[2] ); - HRESULT GetScales( [out]float Scales[2] ); - HRESULT ScaleFitToSize( [in,out]DXBNDS* pClipBounds, - [in]SIZE FitToSize, [in]BOOL bMaintainAspect ); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXEffect -// -// Overview: -// This interface is used to generically control transforms that are -// transition effects. -// -//------------------------------------------------------------------------------ - - typedef enum DISPIDDXEFFECT - { - DISPID_DXECAPABILITIES = 10000, // Start at 10000 to avoid conflicts with inhereted interfaces - DISPID_DXEPROGRESS, - DISPID_DXESTEP, - DISPID_DXEDURATION, - DISPID_DXE_NEXT_ID - } DISPIDDXBOUNDEDEFFECT; - - typedef enum DXEFFECTTYPE - { - DXTET_PERIODIC = (1 << 0), // Result at 1 is same as result at 0 - DXTET_MORPH = (1 << 1) // Transition between 2 inputs (input 0 to input 1) - } DXEFFECTTYPE; - - [ - object, - uuid(E31FB81B-1335-11d1-8189-0000F87557DB), - helpstring("IDXEffect Interface"), - pointer_default(unique), - dual - ] - interface IDXEffect : IDispatch - { - [propget, id(DISPID_DXECAPABILITIES)] - HRESULT Capabilities([out, retval] long *pVal); - [propget, id(DISPID_DXEPROGRESS)] - HRESULT Progress([out, retval] float *pVal); - [propput, id(DISPID_DXEPROGRESS)] - HRESULT Progress([in] float newVal); - [propget, id(DISPID_DXESTEP)] - HRESULT StepResolution([out, retval] float *pVal); - [propget, id(DISPID_DXEDURATION)] - HRESULT Duration([out, retval] float *pVal); - [propput, id(DISPID_DXEDURATION)] - HRESULT Duration([in] float newVal); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXLookupTable -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(01BAFC7F-9E63-11d1-9053-00C04FD9189D), - helpstring("IDXLookupTable Interface"), - pointer_default(unique), - local - ] - interface IDXLookupTable : IDXBaseObject - { - HRESULT GetTables( [out]BYTE RedLUT[256], - [out]BYTE GreenLUT[256], - [out]BYTE BlueLUT[256], - [out]BYTE AlphaLUT[256] ); - - HRESULT IsChannelIdentity([out] DXBASESAMPLE * pSampleBools); - HRESULT GetIndexValues([in] ULONG Index, [out] DXBASESAMPLE *pSample); - HRESULT ApplyTables([in, out] DXSAMPLE *pSamples, [in] ULONG cSamples); - }; - - -//+----------------------------------------------------------------------------- -// -// IDXRawSurface -// -// Overview: -// User created objects support IDXRawSurface -// -//------------------------------------------------------------------------------ - - typedef struct DXRAWSURFACEINFO - { - BYTE * pFirstByte; - long lPitch; - ULONG Width; - ULONG Height; - const GUID * pPixelFormat; - HDC hdc; - DWORD dwColorKey; // Note: High byte must == 0xFF for color keyed surface. Low 3 bytes are native data type. - DXBASESAMPLE * pPalette; - } DXRAWSURFACEINFO; - - [ - object, - uuid(09756C8A-D96A-11d1-9062-00C04FD9189D), - helpstring("IDXRawSurface Interface"), - pointer_default(unique), - local - ] - interface IDXRawSurface : IUnknown - { - HRESULT GetSurfaceInfo(DXRAWSURFACEINFO * pSurfaceInfo); - }; - - -//+----------------------------------------------------------------------------- -// -// IHTMLDXTransform -// -//------------------------------------------------------------------------------ - - [ - object, - uuid(30E2AB7D-4FDD-4159-B7EA-DC722BF4ADE5), - helpstring("IHTMLDXTransform Interface"), - pointer_default(unique), - local - ] - interface IHTMLDXTransform : IUnknown - { - HRESULT SetHostUrl(BSTR bstrHostUrl); - }; - - -//+----------------------------------------------------------------------------- -// -// ICSSFilterDispatch -// -//------------------------------------------------------------------------------ - - typedef enum DXTFILTER_STATUS - { - DXTFILTER_STATUS_Stopped = 0, - DXTFILTER_STATUS_Applied, - DXTFILTER_STATUS_Playing, - DXTFILTER_STATUS_MAX - } DXTFILTER_STATUS; - - typedef enum DXTFILTER_DISPID - { - DISPID_DXTFilter_Percent = 1, - DISPID_DXTFilter_Duration, - DISPID_DXTFilter_Enabled, - DISPID_DXTFilter_Status, - DISPID_DXTFilter_Apply, - DISPID_DXTFilter_Play, - DISPID_DXTFilter_Stop, - DISPID_DXTFilter_MAX - } DXTFILTER_DISPID; - - [ - object, - uuid(9519152B-9484-4A6C-B6A7-4F25E92D6C6B), - helpstring("ICSSFilterDispatch Interface"), - pointer_default(unique), - dual - ] - interface ICSSFilterDispatch : IDispatch - { - [propget, id(DISPID_DXTFilter_Percent)] HRESULT Percent( [out, retval] float *pVal); - [propput, id(DISPID_DXTFilter_Percent)] HRESULT Percent( [in] float newVal); - [propget, id(DISPID_DXTFilter_Duration)] HRESULT Duration([out, retval] float *pVal); - [propput, id(DISPID_DXTFilter_Duration)] HRESULT Duration([in] float newVal); - [propget, id(DISPID_DXTFilter_Enabled)] HRESULT Enabled( [out, retval] VARIANT_BOOL *pfVal); - [propput, id(DISPID_DXTFilter_Enabled)] HRESULT Enabled( [in] VARIANT_BOOL fVal); - [propget, id(DISPID_DXTFilter_Status)] HRESULT Status( [out, retval] DXTFILTER_STATUS * peVal); - [id(DISPID_DXTFilter_Apply)] HRESULT Apply(); - [id(DISPID_DXTFilter_Play)] HRESULT Play([in, optional] VARIANT varDuration); - [id(DISPID_DXTFilter_Stop)] HRESULT Stop(); - }; - - -//=== CoClass definitions ================================================= - -[ - uuid(54314D1D-35FE-11d1-81A1-0000F87557DB), - version(1.1), - helpstring("Microsoft DirectX Transforms Core Type Library") -] -library DXTRANSLib -{ - importlib("stdole2.tlb"); - - /////////////////////////////// - // DXTransformFactory CoClass - /////////////////////////////// - [ - uuid(D1FE6762-FC48-11D0-883A-3C8B00C10000), - helpstring("DXTransformFactory Class") - ] - coclass DXTransformFactory - { - [default] interface IDXTransformFactory; - interface IDXSurfaceFactory; - }; - - - /////////////////////////////// - // DXTaskManager CoClass - /////////////////////////////// - [ - uuid(4CB26C03-FF93-11d0-817E-0000F87557DB), - helpstring("DXTaskManager Class") - ] - coclass DXTaskManager - { - [default] interface IDXTaskManager; - }; - - - /////////////////////////////// - // DXTScale CoClass - /////////////////////////////// - [ - uuid(555278E2-05DB-11D1-883A-3C8B00C10000), - helpstring("DXTScale Class") - ] - coclass DXTScale - { - [default] interface IDXTScale; - }; - - - /////////////////////////////// - // DXSurface CoClass - /////////////////////////////// - [ - uuid(0E890F83-5F79-11D1-9043-00C04FD9189D), - helpstring("DXSurface Class") - ] - coclass DXSurface - { - [default] interface IDXSurface; - }; - - - /////////////////////////////// - // DXSurfaceModifier CoClass - /////////////////////////////// - [ - uuid(3E669F1D-9C23-11d1-9053-00C04FD9189D), - helpstring("DXSurfaceModifier Class") - ] - coclass DXSurfaceModifier - { - [default] interface IDXSurfaceModifier; - }; - - - /////////////////////////////// - // DXGradient CoClass - /////////////////////////////// - [ - uuid(C6365470-F667-11d1-9067-00C04FD9189D), - helpstring("DXGradient Class") - ] - coclass DXGradient - { - [default] interface IDXGradient; - }; - - - /////////////////////////////// - // DXTFilter CoClass - /////////////////////////////// - [ - uuid(385A91BC-1E8A-4e4a-A7A6-F4FC1E6CA1BD), - helpstring("DXTFilter Class") - ] - coclass DXTFilter - { - [default] interface ICSSFilterDispatch; - }; -}; diff --git a/sdk/dx8sdk/Include/DShowIDL/dyngraph.idl b/sdk/dx8sdk/Include/DShowIDL/dyngraph.idl deleted file mode 100644 index 569def6e..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/dyngraph.idl +++ /dev/null @@ -1,318 +0,0 @@ -//------------------------------------------------------------------------------ -// File: DynGraph.idl -// -// Desc: Dynamic graph interfaces -// -// Copyright (c) 1999-2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -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 ); -} - - - - diff --git a/sdk/dx8sdk/Include/DShowIDL/mediaobj.idl b/sdk/dx8sdk/Include/DShowIDL/mediaobj.idl deleted file mode 100644 index 6852ced9..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/mediaobj.idl +++ /dev/null @@ -1,411 +0,0 @@ -//------------------------------------------------------------------------------ -// File: MediaObj.idl -// -// Desc: Define the interfaces for DirectX Media Objects. This file will be -// processed by the MIDL tool to produce mediaobj.h and proxy-stub code. -// -// Copyright (c) 1999 - 2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -import "unknwn.idl"; -import "objidl.idl"; - -// DMO_MEDIA_TYPE structure - -cpp_quote("#ifdef __strmif_h__") -cpp_quote("typedef AM_MEDIA_TYPE DMO_MEDIA_TYPE;") -cpp_quote("#else") -typedef struct _DMOMediaType { - GUID majortype; - GUID subtype; - BOOL bFixedSizeSamples; - BOOL bTemporalCompression; - ULONG lSampleSize; - GUID formattype; - IUnknown *pUnk; - ULONG cbFormat; - [size_is(cbFormat)] BYTE * pbFormat; -} DMO_MEDIA_TYPE; -typedef LONGLONG REFERENCE_TIME; -cpp_quote("#endif") - - -// Per-buffer flags that apply to input buffers -enum _DMO_INPUT_DATA_BUFFER_FLAGS { - DMO_INPUT_DATA_BUFFERF_SYNCPOINT = 0x00000001, - DMO_INPUT_DATA_BUFFERF_TIME = 0x00000002, - DMO_INPUT_DATA_BUFFERF_TIMELENGTH = 0x00000004 -}; - -// Per-buffer flags that apply to output buffers. -enum _DMO_OUTPUT_DATA_BUFFER_FLAGS { - DMO_OUTPUT_DATA_BUFFERF_SYNCPOINT = 0x00000001, - DMO_OUTPUT_DATA_BUFFERF_TIME = 0x00000002, - DMO_OUTPUT_DATA_BUFFERF_TIMELENGTH = 0x00000004, - - // - // This flag means the object could have generated more data for this - // output stream, even with no additional input from any input stream, - // but the output buffer did not have sufficient room. - // - DMO_OUTPUT_DATA_BUFFERF_INCOMPLETE = 0x01000000 -}; - -// Flags returned by GetInputStatus() -enum _DMO_INPUT_STATUS_FLAGS { - // - // ACCEPT_DATA indicates that the input stream is ready to accept - // new data via ProcessInput(). - // - DMO_INPUT_STATUSF_ACCEPT_DATA = 0x00000001 -}; - -// Flags returned by GetInputStreamInfo() -enum _DMO_INPUT_STREAM_INFO_FLAGS { - DMO_INPUT_STREAMF_WHOLE_SAMPLES = 0x00000001, - DMO_INPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER = 0x00000002, - DMO_INPUT_STREAMF_FIXED_SAMPLE_SIZE = 0x00000004, - DMO_INPUT_STREAMF_HOLDS_BUFFERS = 0x00000008 -}; - -// Flags returned by GetOutputStreamInfo() -enum _DMO_OUTPUT_STREAM_INFO_FLAGS { - DMO_OUTPUT_STREAMF_WHOLE_SAMPLES = 0x00000001, - DMO_OUTPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER = 0x00000002, - DMO_OUTPUT_STREAMF_FIXED_SAMPLE_SIZE = 0x00000004, - DMO_OUTPUT_STREAMF_DISCARDABLE = 0x00000008, - DMO_OUTPUT_STREAMF_OPTIONAL = 0x00000010 -}; - -// SetType flags -enum _DMO_SET_TYPE_FLAGS { - DMO_SET_TYPEF_TEST_ONLY = 0x00000001,// check but don't set - DMO_SET_TYPEF_CLEAR = 0x00000002 // unset -}; - -// Process Output Flags -enum _DMO_PROCESS_OUTPUT_FLAGS { - DMO_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER = 0x00000001 // Discard -}; - -// Buffer wrapper interface -[ - object, - uuid(59eff8b9-938c-4a26-82f2-95cb84cdc837) -] -interface IMediaBuffer : IUnknown -{ - HRESULT SetLength( - DWORD cbLength - ); - HRESULT GetMaxLength( - [out] DWORD *pcbMaxLength - ); - HRESULT GetBufferAndLength( - [out] BYTE **ppBuffer, // not filled if NULL - [out] DWORD *pcbLength // not filled if NULL - ); -} - -// -// Output buffer info structure: one of these must be passed in for each -// output stream with every ProcessOutput() call -// All [out] fields should be -// assumed undefined if ProcessOutput() failed -// -typedef struct _DMO_OUTPUT_DATA_BUFFER { - - IMediaBuffer *pBuffer; // [in] can be NULL - - // ProcessOutput() must set any appropriate flags and zero out the rest. - DWORD dwStatus; // [out] DMO_OUTPUT_DATA_BUFFERF_XXX (INCOMPLETE, etc.) - - // - // Each of these is valid if the corresponding flag is set in dwStatus - // - REFERENCE_TIME rtTimestamp; // [out] - REFERENCE_TIME rtTimelength; // [out] -} DMO_OUTPUT_DATA_BUFFER, *PDMO_OUTPUT_DATA_BUFFER; - - -// Interface supported by media objects -[ - object, - uuid(d8ad0f58-5494-4102-97c5-ec798e59bcf4) -] -interface IMediaObject : IUnknown -{ - -// -// Stream enumeration -// - HRESULT GetStreamCount( - [out] DWORD *pcInputStreams, - [out] DWORD *pcOutputStreams - ); - HRESULT GetInputStreamInfo( - DWORD dwInputStreamIndex, // 0-based - [out] DWORD *pdwFlags // HOLDS_BUFFERS - ); - HRESULT GetOutputStreamInfo( - DWORD dwOutputStreamIndex, // 0-based - [out] DWORD *pdwFlags // Media object sets to 0 - ); - -// -// Mediatypes -// - // - // GetType - iterate through media types supported by a stream. - // Returns S_FALSE if the type index is out of range ("no more types"). - // - HRESULT GetInputType( - DWORD dwInputStreamIndex, - DWORD dwTypeIndex, // 0-based - [out] DMO_MEDIA_TYPE *pmt - ); - HRESULT GetOutputType( - DWORD dwOutputStreamIndex, - DWORD dwTypeIndex, // 0-based - [out] DMO_MEDIA_TYPE *pmt - ); - - // - // SetType - tell the object the type of data it will work with. - // - HRESULT SetInputType( - DWORD dwInputStreamIndex, - [in] const DMO_MEDIA_TYPE *pmt, - DWORD dwFlags // test only - ); - HRESULT SetOutputType( - DWORD dwOutputStreamIndex, - [in] const DMO_MEDIA_TYPE *pmt, - DWORD dwFlags // test only - ); - - // - // GetCurrentType - get the last mediatype supplied via SetType. - // Returns S_FALSE if SetType has not been called. - // - HRESULT GetInputCurrentType( - DWORD dwInputStreamIndex, - [out] DMO_MEDIA_TYPE *pmt - ); - HRESULT GetOutputCurrentType( - DWORD dwOutputStreamIndex, - [out] DMO_MEDIA_TYPE *pmt - ); - -// -// SizeInfo -// - // - // GetSizeInfo - Get buffer size requirementes of a stream. - // - // If buffer size depends on the media type used, the object should - // base its response on the most recent media type set for this stream. - // If no mediatype has been set, the object may return an error. - // - HRESULT GetInputSizeInfo( - DWORD dwInputStreamIndex, - [out] DWORD *pcbSize, // size of input 'quantum' - [out] DWORD *pcbMaxLookahead, // max total bytes held - [out] DWORD *pcbAlignment // buffer alignment requirement - ); - HRESULT GetOutputSizeInfo( - DWORD dwOutputStreamIndex, - [out] DWORD *pcbSize, // size of output 'quantum' - [out] DWORD *pcbAlignment // buffer alignment requirement - ); - -// -// Latency methods -// - HRESULT GetInputMaxLatency( - DWORD dwInputStreamIndex, - [out] REFERENCE_TIME *prtMaxLatency - ); - HRESULT SetInputMaxLatency( - DWORD dwInputStreamIndex, - REFERENCE_TIME rtMaxLatency - ); - -// -// Streaming / state methods -// - // - // Flush() - discard any buffered data. - // - HRESULT Flush(); - - // - // Send a discontinuity to an input stream. The object will not - // accept any more data on this input stream until the discontinuity - // has been completely processed, which may involve multiple - // ProcessOutput() calls. - // - HRESULT Discontinuity(DWORD dwInputStreamIndex); - - // - // If a streaming object needs to perform any time consuming - // initialization before it can stream data, it should do it inside - // AllocateStreamingResources() rather than during the first process - // call. - // - // This method is NOT guaranteed to be called before streaming - // starts. If it is not called, the object should perform any - // required initialization during a process call. - // - HRESULT AllocateStreamingResources(); - - // Free anything allocated in AllocateStreamingResources(). - HRESULT FreeStreamingResources(); - - // GetInputStatus - the only flag defined right now is ACCEPT_DATA. - HRESULT GetInputStatus( - DWORD dwInputStreamIndex, - [out] DWORD *dwFlags // ACCEPT_DATA - ); - - // - // Pass one new buffer to an input stream - // - HRESULT ProcessInput( - DWORD dwInputStreamIndex, - IMediaBuffer *pBuffer, // must not be NULL - DWORD dwFlags, // DMO_INPUT_DATA_BUFFERF_XXX (syncpoint, etc.) - REFERENCE_TIME rtTimestamp, // valid if flag set - REFERENCE_TIME rtTimelength // valid if flag set - ); - - // - // ProcessOutput() - generate output for current input buffers - // - // Output stream specific status information is returned in the - // dwStatus member of each buffer wrapper structure. - // - HRESULT ProcessOutput( - DWORD dwFlags, // DMO_PROCESS_OUTPUT_FLAGS - DWORD cOutputBufferCount, // # returned by GetStreamCount() - [in,out,size_is(cOutputBufferCount)] - DMO_OUTPUT_DATA_BUFFER *pOutputBuffers, // one per stream - [out] DWORD *pdwStatus // TBD, must be set to 0 - ); - - // Locking - lock if bLock is TRUE, otherwise unlock - HRESULT Lock(LONG bLock); -}; - - -// -// Interface returned by the DMO enumeration API -// -[ -object, -uuid(2c3cd98a-2bfa-4a53-9c27-5249ba64ba0f) -] -interface IEnumDMO : IUnknown { - HRESULT Next( - DWORD cItemsToFetch, - [out, size_is(cItemsToFetch), length_is(*pcItemsFetched)] CLSID *pCLSID, - [out, size_is(cItemsToFetch), length_is(*pcItemsFetched), string] WCHAR **Names, - [out] DWORD *pcItemsFetched - ); - HRESULT Skip( - DWORD cItemsToSkip - ); - HRESULT Reset(void); - HRESULT Clone( - [out] IEnumDMO **ppEnum - ); -} - - -// Flags for IMediaObjectInPlace::Process -enum _DMO_INPLACE_PROCESS_FLAGS { - DMO_INPLACE_NORMAL = 0x00000000, - DMO_INPLACE_ZERO = 0x00000001 -}; - -[ -object, -uuid(651b9ad0-0fc7-4aa9-9538-d89931010741) -] -interface IMediaObjectInPlace : IUnknown { - - // Proces - Given a buffer of size ulSize, put the output - // of the DMO into the same buffer. - HRESULT Process( - [in] ULONG ulSize, - [in,out,size_is(ulSize)] BYTE* pData, - [in] REFERENCE_TIME refTimeStart, - [in] DWORD dwFlags - ); - - // Create a copy of the In-Place Media Object. This allows - // for very fast initialization of a number of In-Place objects - // in a known state. - HRESULT Clone( - [out] IMediaObjectInPlace **ppMediaObject - ); - - // GetLatency - Returns a REFERENCE_TIME value - // (1 tick = 100ns) which corresponds to the latency time - // processing this effect will add to the graph. This assumes - // the effect cost per buffer is a constant. - HRESULT GetLatency( - [out] REFERENCE_TIME *pLatencyTime - ); -} - -// Quality control status flags -enum _DMO_QUALITY_STATUS_FLAGS { - DMO_QUALITY_STATUS_ENABLED = 0x00000001 -}; - -[ -object, -uuid(65abea96-cf36-453f-af8a-705e98f16260) -] -interface IDMOQualityControl : IUnknown { - HRESULT SetNow( - [in] REFERENCE_TIME rtNow - ); - HRESULT SetStatus( - [in] DWORD dwFlags - ); - HRESULT GetStatus( - [out] DWORD *pdwFlags - ); -} - -// Flags for IVideoOutputOptimizations -enum _DMO_VIDEO_OUTPUT_STREAM_FLAGS { - DMO_VOSF_NEEDS_PREVIOUS_SAMPLE = 0x00000001 -}; - -[ -object, -uuid(be8f4f4e-5b16-4d29-b350-7f6b5d9298ac) -] -interface IDMOVideoOutputOptimizations : IUnknown { - HRESULT QueryOperationModePreferences ( - ULONG ulOutputStreamIndex, - DWORD *pdwRequestedCapabilities - ); - HRESULT SetOperationMode ( - ULONG ulOutputStreamIndex, - DWORD dwEnabledFeatures - ); - HRESULT GetCurrentOperationMode ( - ULONG ulOutputStreamIndex, - DWORD *pdwEnabledFeatures - ); - HRESULT GetCurrentSampleRequirements ( - ULONG ulOutputStreamIndex, - DWORD *pdwRequestedFeatures - ); -} - diff --git a/sdk/dx8sdk/Include/DShowIDL/medparam.idl b/sdk/dx8sdk/Include/DShowIDL/medparam.idl deleted file mode 100644 index b45eab97..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/medparam.idl +++ /dev/null @@ -1,228 +0,0 @@ -//------------------------------------------------------------------------------ -// File: MedParam.idl -// -// Desc: Definition of the IMediaParams and associated interfaces. These -// interfaces are designed to allow communication of curve-following -// behaviors for parameters of objects which require dynamic changes -// to their parameters at run time. All changes are specified by -// timestamp and curve type to ensure the parameters can be set -// at sufficient accuracy with predictable behavior on subsequent -// playback of the same curves. -// -// Copyright (c) 1999 - 2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -import "oaidl.idl"; -import "ocidl.idl"; -import "strmif.idl"; - - -//------------------------------------------------------------------------------ -// Define the semantic type to be used for each parameter. All values passed -// into this interface are 32-bit floats, but the interface can specify that -// the values must be integer, booleans, or enumerated types -//------------------------------------------------------------------------------ -typedef float MP_DATA; // All data is 32-bit floats - -typedef enum _MP_Type { - MPT_INT, // data is signed 23 bit integer (mantissa) - MPT_FLOAT, // data is 32bit IEEE float - MPT_BOOL, // data is true or false (using ANSI C++ definition) - MPT_ENUM, // data is a set (represented by consecutive integers) - MPT_MAX, -} MP_TYPE; - -const MP_DATA MPBOOL_TRUE = 1.0; // Value of true -const MP_DATA MPBOOL_FALSE = 0.0; // Value of false - - -//------------------------------------------------------------------------------ -// Define the types of curves which are supported -//------------------------------------------------------------------------------ -typedef enum _MP_CURVE_TYPE { - MP_CURVE_JUMP = 0x0001, // No interpolation, just jump to next point - MP_CURVE_LINEAR = 0x0002, // Linear interpolation (y follows x from 0.0 to 1.0) - MP_CURVE_SQUARE = 0x0004, // y follow x^2 from 0.0 to 1.0 - MP_CURVE_INVSQUARE = 0x0008, // y follows 1-(x^2) from 0.0 to 1.0 - MP_CURVE_SINE = 0x0010, // y follows sin(x) from -pi/2 to pi/2 -} MP_CURVE_TYPE; - - -//------------------------------------------------------------------------------ -// Capability bits. Used by the object to specify what capabilities it has. -//------------------------------------------------------------------------------ -typedef DWORD MP_CAPS; -// Curve capabilities - If the cap bit is set, that type of curve is supported -const MP_CAPS MP_CAPS_CURVE_JUMP = MP_CURVE_JUMP; -const MP_CAPS MP_CAPS_CURVE_LINEAR = MP_CURVE_LINEAR; -const MP_CAPS MP_CAPS_CURVE_SQUARE = MP_CURVE_SQUARE; -const MP_CAPS MP_CAPS_CURVE_INVSQUARE = MP_CURVE_INVSQUARE; -const MP_CAPS MP_CAPS_CURVE_SINE = MP_CURVE_SINE; - - -//------------------------------------------------------------------------------ -// Structure used to return information about the type and limits of a parameter -//------------------------------------------------------------------------------ -typedef struct _MP_PARAMINFO { - MP_TYPE mpType; // One of MP_TYPE_xxx codes - MP_CAPS mopCaps; // A collection of MP_CAPS flags - - // Minimum and maximum values - MP_DATA mpdMinValue; // minimum legal value - MP_DATA mpdMaxValue; // maximum legal value - MP_DATA mpdNeutralValue; // default or 'center' value - - // Defualt Unit and Label text. These strings will ALWAYS be English - // strings in the UNICODE character set. For international text - // use the GetParamText member function - WCHAR szUnitText[32]; // units of the parameter - WCHAR szLabel[32]; // name of the parameter - -} MP_PARAMINFO; - - -//------------------------------------------------------------------------------ -// Parameter Index types -//------------------------------------------------------------------------------ -typedef DWORD DWORD; -const DWORD DWORD_ALLPARAMS = -1; // Apply this operation to all params - - -//------------------------------------------------------------------------------ -// Defined list of timestamp types -//------------------------------------------------------------------------------ -typedef DWORD MP_TIMEDATA; // Extra data to further define type - -// REFERENCE_TIME (1 tick = 100 nanoseconds, MP_TIMEDATA ignored) -cpp_quote("DEFINE_GUID(GUID_TIME_REFERENCE,") -cpp_quote("0x93ad712b, 0xdaa0, 0x4ffe, 0xbc, 0x81, 0xb0, 0xce, 0x50, 0xf, 0xcd, 0xd9);") - -// Music Time (MP_TIMEDATA = parts/quarter note) -cpp_quote("DEFINE_GUID(GUID_TIME_MUSIC,") -cpp_quote("0x574c49d, 0x5b04, 0x4b15, 0xa5, 0x42, 0xae, 0x28, 0x20, 0x30, 0x11, 0x7b);") - -// Time is measures in samples. MP_TIMEDATA = Samples/sec) -cpp_quote("DEFINE_GUID(GUID_TIME_SAMPLES,") -cpp_quote("0xa8593d05, 0xc43, 0x4984, 0x9a, 0x63, 0x97, 0xaf, 0x9e, 0x2, 0xc4, 0xc0);") - - -//------------------------------------------------------------------------------ -// The value of a given parameter at a specific point in time -//------------------------------------------------------------------------------ -typedef DWORD MP_FLAGS; -const MP_FLAGS MPF_ENVLP_STANDARD = 0x0000; // Use all data provided -const MP_FLAGS MPF_ENVLP_BEGIN_CURRENTVAL = 0x0001; - // Ignore valStart value, use current value as the staring point -const MP_FLAGS MPF_ENVLP_BEGIN_NEUTRALVAL = 0x0002; - // Ignore valStart value, use neutral value as the staring point - -typedef struct _MP_ENVELOPE_SEGMENT { - REFERENCE_TIME rtStart; // Start time in current time format - REFERENCE_TIME rtEnd; // End time in current time format - MP_DATA valStart; // Initial Value - MP_DATA valEnd; // Final Value - MP_CURVE_TYPE iCurve; // One of MP_CURVE_TYPE codes - MP_FLAGS flags; // Special cases -} MP_ENVELOPE_SEGMENT; - -//------------------------------------------------------------------------------ -// Define flags for Punch-in timing -//------------------------------------------------------------------------------ -const MP_FLAGS MPF_PUNCHIN_REFTIME = 0; // Use the reference time as the PI time -const MP_FLAGS MPF_PUNCHIN_NOW = 0x0001; // Punch in at the current clock time -const MP_FLAGS MPF_PUNCHIN_STOPPED = 0x0002; // Return change notifications during - // author time - -//------------------------------------------------------------------------------ -// IMediaParamInfo - Interface used to determine the names, data types and -// units of the parameters which are exposed by the object. This interface -// is used at discovery time, and is not required during run-time since the -// objects parameters are a fixed set and this data can be cached by the -// calling applicaiton. -//------------------------------------------------------------------------------ -[ -object, -uuid(6d6cbb60-a223-44aa-842f-a2f06750be6d), -version(1.0) -] -interface IMediaParamInfo : IUnknown -{ - HRESULT GetParamCount ( - [out] DWORD * pdwParams - ); - HRESULT GetParamInfo ( - [in] DWORD dwParamIndex, - [out] MP_PARAMINFO * pInfo - ); - // returns a series of null terminated strings. strings are in the - // following order: - // Param Label, Units Text, 1st Enum Text, 2nd Enum Text, etc... - HRESULT GetParamText ( - [in] DWORD dwParamIndex, // which param to get text for - [out] WCHAR **ppwchText // returns ptr to CoTaskMemAlloc'd string - ); - - // Returns the number of diffrent time formats this object understands - HRESULT GetNumTimeFormats ( - [out] DWORD * pdwNumTimeFormats - ); - - // Returns the GUID for the ith supported time format - HRESULT GetSupportedTimeFormat( - [in] DWORD dwFormatIndex, - [out] GUID *pguidTimeFormat - ); - - // Returns the current time format - HRESULT GetCurrentTimeFormat ( - [out] GUID *pguidTimeFormat, - [out] MP_TIMEDATA *pTimeData - ); -} - -//------------------------------------------------------------------------------ -// IMediaParams - Interfaes used to actually set the media params and the -// envelopes to follow -//------------------------------------------------------------------------------ -[ -object, -uuid(6d6cbb61-a223-44aa-842f-a2f06750be6e), -version(1.0) -] -interface IMediaParams : IUnknown -{ - // Single param Get/Set methods - HRESULT GetParam ( - [in] DWORD dwParamIndex, - [out] MP_DATA *pValue - ); - HRESULT SetParam ( - [in] DWORD dwParamIndex, - [in] MP_DATA value - ); - - // Envelope methods (param change over time) - HRESULT AddEnvelope ( - [in] DWORD dwParamIndex, - [in] DWORD cSegments, - [in] MP_ENVELOPE_SEGMENT * pEnvelopeSegments - ); - - // Flush all of the envelope information for the given paramter between - // the timestamps specified - HRESULT FlushEnvelope ( - [in] DWORD dwParamIndex, - [in] REFERENCE_TIME refTimeStart, - [in] REFERENCE_TIME refTimeEnd - ); - - // Change the time format being used by the object - HRESULT SetTimeFormat ( - [in] GUID guidTimeFormat, - [in] MP_TIMEDATA mpTimeData - ); -} - - - diff --git a/sdk/dx8sdk/Include/DShowIDL/mixerocx.idl b/sdk/dx8sdk/Include/DShowIDL/mixerocx.idl deleted file mode 100644 index 5e45b459..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/mixerocx.idl +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 1998 Microsoft Corporation. All Rights Reserved. -import "unknwn.idl"; - -// data id flags, used to notify the client whenever pertinent data changes -#define MIXER_DATA_ASPECT_RATIO 0x00000001 // picture aspect ratio changed -#define MIXER_DATA_NATIVE_SIZE 0x00000002 // native size of video changed -#define MIXER_DATA_PALETTE 0x00000004 // palette of video changed - -// status flags defined here -#define MIXER_STATE_MASK 0x00000003 // use this mask with state status bits -#define MIXER_STATE_UNCONNECTED 0x00000000 // mixer is unconnected and stopped -#define MIXER_STATE_CONNECTED_STOPPED 0x00000001 // mixer is connected and stopped -#define MIXER_STATE_CONNECTED_PAUSED 0x00000002 // mixer is connected and paused -#define MIXER_STATE_CONNECTED_PLAYING 0x00000003 // mixer is connected and playing - -interface IMixerOCXNotify; -interface IMixerOCX; - -[ - object, - uuid(81A3BD31-DEE1-11d1-8508-00A0C91F9CA0), - helpstring("IMixerOCXNotify Interface"), - pointer_default(unique) -] -interface IMixerOCXNotify : IUnknown -{ - // invalidates the rect - HRESULT OnInvalidateRect([in] LPCRECT lpcRect); - - // informs that a status change has occured, new status bits provided in ulStatusFlags - HRESULT OnStatusChange([in] ULONG ulStatusFlags); - - // informs that data parameters, whose id is present in ilDataFlags has changed - HRESULT OnDataChange([in] ULONG ulDataFlags); -}; - -[ - object, - uuid(81A3BD32-DEE1-11d1-8508-00A0C91F9CA0), - helpstring("IMixerOCX Interface"), - pointer_default(unique) -] -interface IMixerOCX : IUnknown -{ - // used to notify the mixer that the display mode has changed, the mixer handles this - // asynchronously and the calls OnStatusChange(MIXER_DISPLAYCHANGE_HANDLED) when processing - // is done - HRESULT OnDisplayChange([in] ULONG ulBitsPerPixel, [in] ULONG ulScreenWidth, [in] ULONG ulScreenHeight); - - HRESULT GetAspectRatio([out] LPDWORD pdwPictAspectRatioX, [out] LPDWORD pdwPictAspectRatioY); - - HRESULT GetVideoSize([out] LPDWORD pdwVideoWidth, [out] LPDWORD pdwVideoHeight); - - HRESULT GetStatus([out] LPDWORD *pdwStatus); - - // the dc provided here is not supposed to be cached. If apps have set a dc using - // SetDrawInfo, then it is illegal to provide a non NULL argument here - HRESULT OnDraw([in] HDC hdcDraw, [in] LPCRECT prcDraw); - - // lpptTopLeftSC should be NULL unless MIXER_DRAW_DC_ONSCREEN is set to TRUE - // specifying a NULL value for lprcClip means no clipping - // lpptTopLeftSC - top left corner of surface/dc in screen coordinates - // prcDrawCC - draw rectangle in surface/dc coordinates - // lprcClip - clipping rect in surface/dc coordinates (optional) - HRESULT SetDrawRegion([in] LPPOINT lpptTopLeftSC, [in] LPCRECT prcDrawCC, [in] LPCRECT lprcClip); - - // function to set the sink interface for client notification - HRESULT Advise([in] IMixerOCXNotify *pmdns); - - // function to remove the sink interface - HRESULT UnAdvise(); -}; diff --git a/sdk/dx8sdk/Include/DShowIDL/mmstream.idl b/sdk/dx8sdk/Include/DShowIDL/mmstream.idl deleted file mode 100644 index b94f1ed1..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/mmstream.idl +++ /dev/null @@ -1,190 +0,0 @@ -//------------------------------------------------------------------------------ -// File: MMStream.idl -// -// Desc: MultiMedia streaming interface IDL file. Used by MIDL tool -// to generate mmstream.h. -// -// Copyright (c) 1998-2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -import "unknwn.idl"; - -cpp_quote("#define MS_ERROR_CODE(x) MAKE_HRESULT(1, FACILITY_ITF, (x) + 0x400)") -cpp_quote("#define MS_SUCCESS_CODE(x) MAKE_HRESULT(0, FACILITY_ITF, x)") -cpp_quote("#define MS_S_PENDING MS_SUCCESS_CODE(1)") -cpp_quote("#define MS_S_NOUPDATE MS_SUCCESS_CODE(2)") -cpp_quote("#define MS_S_ENDOFSTREAM MS_SUCCESS_CODE(3)") - -cpp_quote("#define MS_E_SAMPLEALLOC MS_ERROR_CODE(1)") -cpp_quote("#define MS_E_PURPOSEID MS_ERROR_CODE(2)") -cpp_quote("#define MS_E_NOSTREAM MS_ERROR_CODE(3)") -cpp_quote("#define MS_E_NOSEEKING MS_ERROR_CODE(4)") -cpp_quote("#define MS_E_INCOMPATIBLE MS_ERROR_CODE(5)") -cpp_quote("#define MS_E_BUSY MS_ERROR_CODE(6)") -cpp_quote("#define MS_E_NOTINIT MS_ERROR_CODE(7)") -cpp_quote("#define MS_E_SOURCEALREADYDEFINED MS_ERROR_CODE(8)") -cpp_quote("#define MS_E_INVALIDSTREAMTYPE MS_ERROR_CODE(9)") -cpp_quote("#define MS_E_NOTRUNNING MS_ERROR_CODE(10)") - -cpp_quote("// {A35FF56A-9FDA-11d0-8FDF-00C04FD9189D}") -cpp_quote("DEFINE_GUID(MSPID_PrimaryVideo, ") -cpp_quote("0xa35ff56a, 0x9fda, 0x11d0, 0x8f, 0xdf, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);") - -cpp_quote("// {A35FF56B-9FDA-11d0-8FDF-00C04FD9189D}") -cpp_quote("DEFINE_GUID(MSPID_PrimaryAudio,") -cpp_quote("0xa35ff56b, 0x9fda, 0x11d0, 0x8f, 0xdf, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);") - -cpp_quote("#if(_WIN32_WINNT < 0x0400)") -typedef void (__stdcall * PAPCFUNC)(DWORD_PTR dwParam); -cpp_quote("#endif") - -typedef LONGLONG STREAM_TIME; - -typedef GUID MSPID; -typedef REFGUID REFMSPID; - -typedef enum { - STREAMTYPE_READ = 0, - STREAMTYPE_WRITE = 1, - STREAMTYPE_TRANSFORM= 2 -} STREAM_TYPE; - -typedef enum { - STREAMSTATE_STOP = 0, - STREAMSTATE_RUN = 1 -} STREAM_STATE; - - -typedef enum { - COMPSTAT_NOUPDATEOK = 0x00000001, - COMPSTAT_WAIT = 0x00000002, - COMPSTAT_ABORT = 0x00000004 -} COMPLETION_STATUS_FLAGS; - -// Flags for GetInformation -enum { - MMSSF_HASCLOCK = 0x00000001, - MMSSF_SUPPORTSEEK = 0x00000002, - MMSSF_ASYNCHRONOUS = 0x00000004 -}; - -// Flags for StreamSample::Update -enum { - SSUPDATE_ASYNC = 0x00000001, - SSUPDATE_CONTINUOUS = 0x00000002 -}; - -interface IMultiMediaStream; -interface IMediaStream; -interface IStreamSample; - -// IMultiMediaStream interface -[ -object, -local, -uuid(B502D1BC-9A57-11d0-8FDE-00C04FD9189D), -pointer_default(unique) -] -interface IMultiMediaStream : IUnknown { - - HRESULT GetInformation( - [out] DWORD *pdwFlags, - [out] STREAM_TYPE *pStreamType); - - HRESULT GetMediaStream( - [in] REFMSPID idPurpose, - [out] IMediaStream **ppMediaStream); - - HRESULT EnumMediaStreams( - [in] long Index, - [out] IMediaStream **ppMediaStream); - - HRESULT GetState( - [out] STREAM_STATE *pCurrentState); - - HRESULT SetState( - [in] STREAM_STATE NewState); - - HRESULT GetTime( - [out] STREAM_TIME *pCurrentTime); - - HRESULT GetDuration( - [out] STREAM_TIME *pDuration); - - HRESULT Seek( - [in] STREAM_TIME SeekTime); - - HRESULT GetEndOfStreamEventHandle( - [out] HANDLE *phEOS); -}; - - -// IMediaStream interface -[ -object, -uuid(B502D1BD-9A57-11d0-8FDE-00C04FD9189D), -pointer_default(unique) -] -interface IMediaStream : IUnknown { - - HRESULT GetMultiMediaStream( - [out] IMultiMediaStream **ppMultiMediaStream); - - HRESULT GetInformation( - [out] MSPID *pPurposeId, - [out] STREAM_TYPE *pType); - - HRESULT SetSameFormat( - [in] IMediaStream *pStreamThatHasDesiredFormat, - [in] DWORD dwFlags); - - HRESULT AllocateSample( - [in] DWORD dwFlags, - [out] IStreamSample **ppSample); - - - HRESULT CreateSharedSample( - [in] IStreamSample *pExistingSample, - [in] DWORD dwFlags, - [out] IStreamSample **ppNewSample); - - HRESULT SendEndOfStream(DWORD dwFlags); -}; - - -// IStreamSample interface -[ -object, -local, -uuid(B502D1BE-9A57-11d0-8FDE-00C04FD9189D), -pointer_default(unique) -] -interface IStreamSample : IUnknown { - - HRESULT GetMediaStream( - [in] IMediaStream **ppMediaStream); - - HRESULT GetSampleTimes( - [out] STREAM_TIME * pStartTime, - [out] STREAM_TIME * pEndTime, - [out] STREAM_TIME * pCurrentTime); - - HRESULT SetSampleTimes( - [in] const STREAM_TIME *pStartTime, - [in] const STREAM_TIME *pEndTime); - - HRESULT Update( - [in] DWORD dwFlags, - [in] HANDLE hEvent, - [in] PAPCFUNC pfnAPC, - [in] DWORD_PTR dwAPCData); - - HRESULT CompletionStatus( - [in] DWORD dwFlags, - [in] DWORD dwMilliseconds); -}; - - - - diff --git a/sdk/dx8sdk/Include/DShowIDL/mstve.idl b/sdk/dx8sdk/Include/DShowIDL/mstve.idl deleted file mode 100644 index 07383041..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/mstve.idl +++ /dev/null @@ -1,1450 +0,0 @@ -// Copyright (c) 1999,2000,2001 Microsoft Corporation. All Rights Reserved. -// MSTvE.idl : IDL source for MSTvE.dll -// -// This file will be processed by the MIDL tool to -// produce the type library (TveContr.tlb) and marshalling code. -// -// Need to put MIDL attributes of: -// 'noncreatable' on -// 'hidden' on -// 'nonbrowsable' on -// -// -- _Helper interfaces need to be in the library section or else -// can't seen them in the client -// -// -- None of the _Helper interfaces are marked dual. Hence they -// won't work up on the client... (???) -// -// --------------------------------------------------- -// CAUTION - if Change methods below, need to regen the proxy-stub file -// nmake -f MSTvEps.mk -// regsvr32 /s MSTvEps.dll -// -// -// Also - if change any of the IID's, need to rebuild ..\uuid\[]\strmiids.lib - -cpp_quote("//+-------------------------------------------------------------------------") -cpp_quote("//") -cpp_quote("// Microsoft Windows") -cpp_quote("// Copyright (C) Microsoft Corporation, 1999, 2000.") -cpp_quote("//") -cpp_quote("//--------------------------------------------------------------------------") -cpp_quote("#pragma once") - -import "oaidl.idl"; -import "ocidl.idl"; - - // forward declarations -interface ITVETrigger; -interface ITVETrack; -interface ITVEVariation; -interface ITVEEnhancement; -interface ITVEService; -interface ITVEActiveService; -interface ITVESupervisor; -interface ITVEAttrMap; -interface ITVEAttrTimeQ; - -interface ITVETracks; -interface ITVEVariations; -interface ITVEEnhancements; -interface ITVEServices; - -interface ITVEFile; - -interface ITVESupervisor_Helper; - -// Listener.. -interface ITVEMCast; -interface ITVEMCasts; -interface ITVEMCastManager; -interface ITVEMCastCallback; - -// interfaces to configure the filter and get events from, -interface ITVEFilter ; -interface ITVEFilter_Helper; - -// glue stuff -interface ITVENavAid; -interface ITVENavAid_Helper; -interface ITVENavAid_NoVidCtl; -interface ITVETriggerCtrl; -interface ITVETriggerCtrl_Helper; - -interface ITVEFeature; -interface ITVESupervisorGITProxy; -// ---------------------------------------------------------------------------------- - -#define COLLECTID_Item DISPID_VALUE // (0) -#define COLLECTID_Count 1 // standard set of collection interfaces -#define COLLECTID_Add 2 -#define COLLECTID_Remove 3 -#define COLLECTID_RemoveAll 4 // extra for maps -#define COLLECTID_Key 5 -#define COLLECTID_Replace 6 -#define COLLECTID_Insert 7 -#define COLLECTID_Update 8 - -typedef enum NENH_Mode -{ - NENH_New, - NENH_Duplicate, - NENH_Updated, - NENH_Starting, - NENH_Expired -} NENH_Mode; - -typedef enum NPKG_Mode -{ - NPKG_Starting, // brand new packet (never seen this UUID before) - NPKG_Received, // correctly received and decoded a package - NPKG_Duplicate, // duplicate send of a one already successfully received (packet 0 only) - NPKG_Resend, // resend of one that wasn't received correctly before (packet 0 only) - NPKG_Expired -} NPKG_Mode; - -typedef enum NTRK_Mode -{ - NTRK_New, - NTRK_Duplicate, // exact duplicate of existing one - NTRK_Updated, // updated version of existing one - NTRK_Starting, // (not used???) - NTRK_Expired -} NTRK_Mode; - -typedef enum NFLE_Mode -{ - NFLE_Received, // correctly received and decoded a package - NFLE_Expired -} NFLE_Mode; - -typedef enum NTUN_Mode -{ - NTUN_New, // new station (service) never seen before - NTUN_Retune, // tuning back to an existing station - NTUN_Reactivate, // retuning to the current station - NTUN_Turnoff, // turning atvef off - NTUN_Fail // failed to tune for some reason -} NTUN_Mode; - - -typedef enum NWHAT_Mode // used in NotifyAuxInfo -{ - NWHAT_Announcement, - NWHAT_Trigger, - NWHAT_Data, - NWHAT_Other, - NWHAT_Extra -} NWHAT_Mode; - - - - - // --------------------------------------------------------------------- - - [ - object, - uuid(05500101-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVETrigger Interface"), - pointer_default(unique) - ] - interface ITVETrigger : IDispatch - { - [propget, id(1), helpstring("property Parent")] HRESULT Parent([out, retval] IUnknown* *pVal); - [propget, id(2), helpstring("property Service")] HRESULT Service([out, retval] ITVEService* *pVal); - [propget, id(3), helpstring("property IsValid")] HRESULT IsValid([out, retval] VARIANT_BOOL *pVal); - [propget, id(4), helpstring("property URL")] HRESULT URL([out, retval] BSTR *pVal); - [propget, id(5), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pVal); - [propget, id(6), helpstring("property Expires")] HRESULT Expires([out, retval] DATE *pVal); - [propget, id(7), helpstring("property Executes")] HRESULT Executes([out, retval] DATE *pVal); - [propget, id(8), helpstring("property Script")] HRESULT Script([out, retval] BSTR *pVal); - [propget, id(9), helpstring("property TVELevel")] HRESULT TVELevel([out, retval] float *pVal); - [propget, id(10), helpstring("property Rest")] HRESULT Rest([out, retval] BSTR *pVal); - [ id(11), helpstring("method ParseTrigger")] HRESULT ParseTrigger([in] const BSTR rVal); - }; - - [ - object, - uuid(05500201-FAA5-4df9-8246-BFC23AC5CEA8), -// dual, - hidden, - helpstring("ITVETrigger_Helper Interface"), - pointer_default(unique) - ] - interface ITVETrigger_Helper : IUnknown - { - [ id(1), helpstring("method ConnectParent")] HRESULT ConnectParent([in] ITVETrack *pTrack); - [propget, id(2), helpstring("property CRC")] HRESULT CRC([in] const BSTR rVal, [out, retval] BSTR *pbstrCRC); - [ id(3), helpstring("method UpdateFrom")] HRESULT UpdateFrom([in] ITVETrigger *pTrigger, [out] long *plgrfTRKChanged); - [ id(4), helpstring("method RemoveYourself")] HRESULT RemoveYourself(); - [ id(5), helpstring("method DumpToBSTR")] HRESULT DumpToBSTR([out] BSTR *pbstrBuff); - }; - - -// --------------------------------------------------- - - [ - object, - uuid(05500102-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVETrack Interface"), - pointer_default(unique) - ] - interface ITVETrack : IDispatch - { - [propget, id(1), helpstring("property Parent")] HRESULT Parent([out, retval] IUnknown* *pVal); - [propget, id(2), helpstring("property Service")] HRESULT Service([out, retval] ITVEService* *pVal); - [propget, id(3), helpstring("property Trigger")] HRESULT Trigger([out, retval] ITVETrigger* *pVal); - [propget, id(4), helpstring("property Description")] HRESULT Description([out, retval] BSTR *pVal); - [propput, id(4), helpstring("property Description")] HRESULT Description([in] BSTR newVal); - [ id(5), helpstring("method AttachTrigger")] HRESULT AttachTrigger([in] ITVETrigger *pTrigger); - [ id(6), helpstring("method ReleaseTrigger")] HRESULT ReleaseTrigger(); - [ id(7), helpstring("method CreateTrigger")] HRESULT CreateTrigger([in] const BSTR bstrDescription); - }; - - [ - object, - uuid(05500202-FAA5-4df9-8246-BFC23AC5CEA8), -// dual, - hidden, - helpstring("ITVETrack_Helper Interface"), - pointer_default(unique) - ] - interface ITVETrack_Helper : IUnknown - { - [id(1), helpstring("method ConnectParent")] HRESULT ConnectParent(ITVEVariation *pVariation); - [id(2), helpstring("method RemoveYourself")] HRESULT RemoveYourself(); - [id(3), helpstring("method DumpToBSTR")] HRESULT DumpToBSTR([out] BSTR *pbstrBuff); - }; - - [ - object, - uuid(05500112-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVETracks Interface"), - pointer_default(unique) - ] - - interface ITVETracks : IDispatch - { - [propget, id(DISPID_NEWENUM), restricted, helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IUnknown **pCollection); - [propget, id(COLLECTID_Count), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(COLLECTID_Item), helpstring("property Item")] HRESULT Item([in] VARIANT var, [out, retval] ITVETrack * *pVal); - [ id(COLLECTID_Add), helpstring("method Add")] HRESULT Add([in] ITVETrack *pTrack); - [ id(COLLECTID_Remove), helpstring("method Remove")] HRESULT Remove([in] VARIANT var); - [ id(COLLECTID_RemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - [ id(COLLECTID_Insert), helpstring("method Insert")] HRESULT Insert([in] int iLoc, [in] ITVETrack *pTrack); - }; - -// --------------------------------------------------- - - [ - object, - uuid(05500103-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEVariation Interface"), - pointer_default(unique) - ] - interface ITVEVariation : IDispatch - { - [propget, id(1), helpstring("property Parent")] HRESULT Parent([out, retval] IUnknown* *pVal); - [propget, id(2), helpstring("property Service")] HRESULT Service([out, retval] ITVEService* *pVal); - [propget, id(3), helpstring("property Tracks")] HRESULT Tracks([out, retval] ITVETracks* *pVal); - [propget, id(4), helpstring("property Description")] HRESULT Description([out, retval] BSTR *pVal); - [propput, id(4), helpstring("property Description")] HRESULT Description([in] BSTR newVal); - - [propget, id(5), helpstring("property IsValid")] HRESULT IsValid([out, retval] VARIANT_BOOL *pVal); - [propget, id(6), helpstring("property MediaName")] HRESULT MediaName([out, retval] BSTR *newVal); - [propget, id(7), helpstring("property MediaTitle")] HRESULT MediaTitle([out, retval] BSTR *newVal); - [propget, id(8), helpstring("property FileIPAdapter")] HRESULT FileIPAdapter([out, retval] BSTR *newVal); - [propget, id(9), helpstring("property FileIPAddress")] HRESULT FileIPAddress([out, retval] BSTR *newVal); - [propget, id(10), helpstring("property FilePort")] HRESULT FilePort([out, retval] LONG *lPort); - [propget, id(11), helpstring("property TriggerIPAdapter")] HRESULT TriggerIPAdapter([out, retval] BSTR *newVal); - [propget, id(12), helpstring("property TriggerIPAddress")] HRESULT TriggerIPAddress([out, retval] BSTR *newVal); - [propget, id(13), helpstring("property TriggerPort")] HRESULT TriggerPort([out, retval] LONG *lPort); - [propget, id(14),helpstring("property Languages")] HRESULT Languages([out, retval] ITVEAttrMap* *ppVal); - [propget, id(15),helpstring("property SDPLanguages")] HRESULT SDPLanguages([out, retval] ITVEAttrMap* *ppVal); - [propget, id(16),helpstring("property Bandwidth")] HRESULT Bandwidth([out, retval] LONG *lVal); - [propget, id(17),helpstring("property BandwidthInfo")] HRESULT BandwidthInfo([out, retval] BSTR *newVal); - [propget, id(18),helpstring("property Attributes")] HRESULT Attributes([out, retval] ITVEAttrMap* *ppVal); - - [propget, id(19),helpstring("property Rest")] HRESULT Rest([out, retval] ITVEAttrMap* *ppVal); - [ id(20),helpstring("method Initialize")] HRESULT Initialize([in] BSTR newVal); - }; - - [ - object, - uuid(05500203-FAA5-4df9-8246-BFC23AC5CEA8), -// dual, - hidden, - helpstring("ITVEVariation_Helper Interface"), - pointer_default(unique) - ] - interface ITVEVariation_Helper : IUnknown - { - [ id(1), helpstring("method ConnectParent")] HRESULT ConnectParent([in] ITVEEnhancement *pEnhancement); - [ id(2), helpstring("method DefaultTo")] HRESULT DefaultTo([in] ITVEVariation *pVariationBase); - [ id(3), helpstring("method SetTriggerIPAdapter")] HRESULT SetTriggerIPAdapter([in] BSTR bstrBuff); - [ id(4), helpstring("method SetFileIPAdapter")] HRESULT SetFileIPAdapter([in] BSTR bstrBuff); - [ id(5), helpstring("method SubParseSDP")] HRESULT SubParseSDP(const BSTR *pbstrSDP, BOOL *pfMissingMedia); - [ id(6), helpstring("method ParseCBTrigger")] HRESULT ParseCBTrigger(BSTR bstrTrig); - [ id(7), helpstring("method FinalParseSDP")] HRESULT FinalParseSDP(); - [ id(8), helpstring("method UpdateVariation")] HRESULT UpdateVariation(ITVEVariation *pVarNew, long *plNVAR_grfChanged); - [ id(9), helpstring("method InitAsXOver")] HRESULT InitAsXOver(); - [ id(11), helpstring("method NewXOverLink")] HRESULT NewXOverLink([in] BSTR bstrLine21Trigger); - [ id(12), helpstring("method RemoveYourself")] HRESULT RemoveYourself(); - [propput, id(13), helpstring("property MediaTitle")] HRESULT MediaTitle([in] BSTR bstrBuff); - [propput, id(14), helpstring("property IsValid")] HRESULT IsValid([in] VARIANT_BOOL fValid); - [ id(15), helpstring("method DumpToBSTR")] HRESULT DumpToBSTR([out] BSTR *bstrBuff); - }; - - [ - object, - uuid(05500113-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEVariations Interface"), - pointer_default(unique) - ] - interface ITVEVariations : IDispatch - { - [propget, id(DISPID_NEWENUM), restricted, helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IUnknown **pCollection); - [propget, id(COLLECTID_Count), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(COLLECTID_Item), helpstring("property Item")] HRESULT Item([in] VARIANT var, [out, retval] ITVEVariation * *pVal); - [ id(COLLECTID_Add), helpstring("method Add")] HRESULT Add([in] ITVEVariation *pEnh); - [ id(COLLECTID_Remove), helpstring("method Remove")] HRESULT Remove([in] VARIANT var); - [ id(COLLECTID_RemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - [ id(COLLECTID_Insert), helpstring("method Insert")] HRESULT Insert([in] int iLoc, [in] ITVEVariation *pEnh); - }; -// --------------------------------------------------- - [ - object, - uuid(05500104-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEEnhancement Interface"), - pointer_default(unique) - ] - interface ITVEEnhancement : IDispatch - { - [propget, id(1), helpstring("property Parent")] HRESULT Parent([out, retval] IUnknown* *pVal); - [propget, id(2), helpstring("property Service")] HRESULT Service([out, retval] ITVEService* *pVal); - [propget, id(3), helpstring("property Variations")] HRESULT Variations([out, retval] ITVEVariations* *pVal); - - [propget, id(4), helpstring("property IsValid")] HRESULT IsValid([out, retval] VARIANT_BOOL *pVal); - [propget, id(5), helpstring("property ProtocolVersion")] HRESULT ProtocolVersion([out, retval] BSTR *pVal); - [propget, id(6), helpstring("property SessionUserName")] HRESULT SessionUserName([out, retval] BSTR *pVal); - [propget, id(7), helpstring("property SessionId")] HRESULT SessionId([out, retval] LONG *plVal); - [propget, id(8), helpstring("property SessionVersion")] HRESULT SessionVersion([out, retval] LONG *plVal); - [propget, id(9), helpstring("property SessionIPAddress")] HRESULT SessionIPAddress([out, retval] BSTR *pVal); - [propget, id(10), helpstring("property SessionName")] HRESULT SessionName([out, retval] BSTR *pVal); - [propget, id(11), helpstring("property EmailAddresses")] HRESULT EmailAddresses([out, retval] ITVEAttrMap* *pVal); - [propget, id(12), helpstring("property PhoneNumbers")] HRESULT PhoneNumbers([out, retval] ITVEAttrMap* *pVal); - - [propget, id(13), helpstring("property Description")] HRESULT Description([out, retval] BSTR *pVal); - [propput, id(13), helpstring("property Description")] HRESULT Description([in] BSTR newVal); - [propget, id(14), helpstring("property DescriptionURI")] HRESULT DescriptionURI([out, retval] BSTR *pVal); - - [propget, id(15), helpstring("property UUID")] HRESULT UUID([out, retval] BSTR *pVal); - [propget, id(16), helpstring("property StartTime")] HRESULT StartTime([out, retval] DATE *pVal); - [propget, id(17), helpstring("property StopTime")] HRESULT StopTime([out, retval] DATE *pVal); - [propget, id(18), helpstring("property IsPrimary")] HRESULT IsPrimary([out, retval] VARIANT_BOOL *pVal); - - [propget, id(19), helpstring("property Type")] HRESULT Type([out, retval] BSTR *pVal); - [propget, id(20), helpstring("property TveType")] HRESULT TveType([out, retval] BSTR *pVal); - [propget, id(21), helpstring("property TveSize")] HRESULT TveSize([out, retval] LONG *plVal); - [propget, id(23), helpstring("property TveLevel")] HRESULT TveLevel([out, retval] double *pVal); - - [propget, id(24), helpstring("property Attributes")] HRESULT Attributes([out, retval] ITVEAttrMap* *pVal); - [propget, id(25), helpstring("property Rest")] HRESULT Rest([out, retval] ITVEAttrMap* *pVal); - - [propget, id(26), helpstring("property SAPHeaderBits")] HRESULT SAPHeaderBits([out, retval] short *pVal); - [propget, id(27), helpstring("property SAPAuthLength")] HRESULT SAPAuthLength([out, retval] short *pVal); - [propget, id(28), helpstring("property SAPMsgIDHash")] HRESULT SAPMsgIDHash([out, retval] LONG *pVal); - [propget, id(29), helpstring("property SAPSendingIP")] HRESULT SAPSendingIP([out, retval] BSTR *pVal); - [propget, id(30), helpstring("property SAPAuthData")] HRESULT SAPAuthData([out, retval] BSTR *pVal); - - [ id(31), helpstring("method ParseAnnouncement")] HRESULT ParseAnnouncement([in] BSTR bstrAdapter, [in] const BSTR *pbstVal, [out] long *plgrfParseError, [out] long *plLineError); - }; - - - [ - object, - uuid(05500204-FAA5-4df9-8246-BFC23AC5CEA8), -// dual, - hidden, - helpstring("ITVEEnhancement_Helper Interface"), - pointer_default(unique) - ] - interface ITVEEnhancement_Helper : IUnknown - { - [id(0), helpstring("method ConnectParent")] HRESULT ConnectParent(ITVEService *pService); - [id(1), helpstring("method Activate")] HRESULT Activate(); - [id(2), helpstring("method Deactivate")] HRESULT Deactivate(); - [id(3), helpstring("method UpdateEnhancement")] HRESULT UpdateEnhancement([in] ITVEEnhancement *pEnhNew,[out] long *plNENH_grfChanged); - [id(4), helpstring("method InitAsXOver")] HRESULT InitAsXOver(); - [id(5), helpstring("method NewXOverLink")] HRESULT NewXOverLink([in] BSTR bstrLine21Trigger); - [id(6), helpstring("method RemoveYourself")] HRESULT RemoveYourself(); - [id(7), helpstring("method DumpToBSTR")] HRESULT DumpToBSTR([out] BSTR *pbstrBuff); - }; - - - [ - object, - uuid(05500114-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEEnhancements Interface"), - pointer_default(unique) - ] - - interface ITVEEnhancements : IDispatch - { - [propget, id(DISPID_NEWENUM), restricted, helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IUnknown **pCollection); - [propget, id(COLLECTID_Count), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(COLLECTID_Item), helpstring("property Item")] HRESULT Item([in] VARIANT var, [out, retval] ITVEEnhancement * *pVal); - [ id(COLLECTID_Add), helpstring("method Add")] HRESULT Add([in] ITVEEnhancement *pEnh); - [ id(COLLECTID_Remove), helpstring("method Remove")] HRESULT Remove([in] VARIANT var); - [ id(COLLECTID_RemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - [ id(COLLECTID_Insert), helpstring("method Insert")] HRESULT Insert([in] int iLoc, [in] ITVEEnhancement *pEnh); - }; -// --------------------------------------------------- - - [ - object, - uuid(05500105-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEService Interface"), - pointer_default(unique) - ] - interface ITVEService : IDispatch - { - [propget, id(1), helpstring("property Parent")] HRESULT Parent([out, retval] IUnknown* *pVal); - [propget, id(2), helpstring("property Enhancements")] HRESULT Enhancements([out, retval] ITVEEnhancements* *pVal); - [propget, id(3), helpstring("property Description")] HRESULT Description([out, retval] BSTR *pVal); - [propput, id(3), helpstring("property Description")] HRESULT Description([in] BSTR newVal); - [ id(4), helpstring("method Activate")] HRESULT Activate(); // used in tuning, turns on announcement - [ id(5), helpstring("method Deactivate")] HRESULT Deactivate(); // used in tuning, turns off announcement - [propget, id(6), helpstring("property XOverLinks")] HRESULT XOverLinks([out, retval] ITVETracks* *pVal); // returns ITVETracks (Collection) - [propget, id(7),helpstring("property XOverEnhancement")] HRESULT XOverEnhancement([out, retval] ITVEEnhancement* *pVal); // special for tree view... - [ id(8), helpstring("method NewXOverLink")] HRESULT NewXOverLink([in] BSTR bstrLine21Trigger); - // Set date offset used added to dates before expiring. - // Used when doing playback recorded shows, offseting expire dates by this amount - [propget, id(9), helpstring("property ExpireOffset")] HRESULT ExpireOffset([out, retval] DATE *pVal); - [propput, id(9), helpstring("property ExpireOffset")] HRESULT ExpireOffset([in] DATE newVal); - // return the ITVEAttrTimeQ list giving dates of IUnknowns in this service are due to expire - [propget, id(10), helpstring("property ExpireQueue")] HRESULT ExpireQueue([out, retval] ITVEAttrTimeQ* *pVal); - // Expires any items earlier than the specified date + ExpireOffset - // If ezactly zero, Date defaults to . - [ id(11),helpstring("method ExpireForDate")] HRESULT ExpireForDate([in] DATE dateExpireTime); - // Mark Service active, only one Active service currently allowed .. turns off all others. - [propget, id(12), helpstring("IsActive")] HRESULT IsActive([out, retval] VARIANT_BOOL *fIsActive); - // save and restore an arbitrary property on this service... (Useful with ITVENavAid::CacheState()) - [propput, id(13), helpstring("Property")] HRESULT Property([in] BSTR bstrPropName, BSTR bstrPropVal); - [propget, id(13), helpstring("Property")] HRESULT Property([in] BSTR bstrPropName, [out, retval] BSTR *pbstrPropVal); - }; - - [ - object, - uuid(05500205-FAA5-4df9-8246-BFC23AC5CEA8), -// dual, - hidden, - helpstring("ITVEService_Helper Interface"), - pointer_default(unique) - ] - interface ITVEService_Helper : IUnknown - { - [ id(1), helpstring("method ConnectParent")] HRESULT ConnectParent([in] ITVESupervisor *pSupervisor); - [ id(2), helpstring("method ParseCBAnnouncement")] HRESULT ParseCBAnnouncement([in] BSTR bstrFileTrigAdapter,[in] BSTR *pbstrBuff); - [ id(3), helpstring("method SetAnncIPValues")] HRESULT SetAnncIPValues([in] BSTR bstrAnncIPAdapter,[in] BSTR bstrAnncIPAddress,[in] LONG lAnncPort); - [ id(4), helpstring("method GetAnncIPValues")] HRESULT GetAnncIPValues([in] BSTR *pbstrAnncIPAdapter,[in] BSTR *pbstrAnncIPAddress,[in] LONG *plAnncPort); - [ id(5), helpstring("method InitXOverEnhancement")] HRESULT InitXOverEnhancement(); - [ id(6), helpstring("method AddToExpireQueue")] HRESULT AddToExpireQueue([in] DATE dateExpires, [in] IUnknown *punkItem); - [ id(7), helpstring("method ChangeInExpireQueue")] HRESULT ChangeInExpireQueue([in] DATE dateExpires, [in] IUnknown *punkItem); - [ id(8), helpstring("method RemoveFromExpireQueue")] HRESULT RemoveFromExpireQueue([in] IUnknown *punkItem); - [ id(9), helpstring("method RemoveEnhFilesFromExpireQueue")] HRESULT RemoveEnhFilesFromExpireQueue([in] ITVEEnhancement *pEnhancement); - [propget, id(10), helpstring("method ExpireQueueChangeCount")] HRESULT ExpireQueueChangeCount([out, retval] long *pChangeCount); - [ id(11), helpstring("method RemoveYourself")] HRESULT RemoveYourself(); - [ id(12), helpstring("method DumpToBSTR")] HRESULT DumpToBSTR([out] BSTR *pbstrBuff); - }; - - - [ - object, - uuid(05500305-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEFeature Interface (Inherits ITVEService)"), - pointer_default(unique) - ] - interface ITVEFeature : ITVEService - { - // New methods just for the Feature - [id(101), helpstring("method TuneTo")] HRESULT TuneTo([in] BSTR bstrStation, [in] BSTR bstrIPAdapter); - [id(102), helpstring("method ReTune")] HRESULT ReTune([in] ITVEService *pService); - [id(103), helpstring("method BindToSupervisor")] HRESULT BindToSupervisor([in] ITVESupervisor *pTVESupervisor); - // these are incoming events called by Supervisor ((_ITVEvents).. Must match - [id(2101), helpstring("method NotifyTVETune")] HRESULT NotifyTVETune([in] NTUN_Mode tuneMode, [in] ITVEService *pService, [in] BSTR bstrDescription, [in] BSTR bstrIPAdapter); - [id(2102), helpstring("method NotifyTVEEnhancementNew")] HRESULT NotifyTVEEnhancementNew([in] ITVEEnhancement *pEnh); - [id(2103), helpstring("method NotifyTVEEnhancementUpdated")] HRESULT NotifyTVEEnhancementUpdated([in] ITVEEnhancement *pEnh, [in] long lChangedFlags); // changedFlags : NENH_grfDiff - [id(2104), helpstring("method NotifyTVEEnhancementStarting")] HRESULT NotifyTVEEnhancementStarting([in] ITVEEnhancement *pEnh); - [id(2105), helpstring("method NotifyTVEEnhancementExpired")] HRESULT NotifyTVEEnhancementExpired([in] ITVEEnhancement *pEnh); - [id(2106), helpstring("method NotifyTVETriggerNew")] HRESULT NotifyTVETriggerNew([in] ITVETrigger *pTrigger,[in] BOOL fActive); - [id(2107), helpstring("method NotifyTVETriggerUpdated")] HRESULT NotifyTVETriggerUpdated([in] ITVETrigger *pTrigger,[in] BOOL fActive, [in] long lChangedFlags); // changedFlags : NTRK_grfDiff - [id(2108), helpstring("method NotifyTVETriggerExpired")] HRESULT NotifyTVETriggerExpired([in] ITVETrigger *pTrigger,[in] BOOL fActive); - [id(2109), helpstring("method NotifyTVEPackage")] HRESULT NotifyTVEPackage([in] NPKG_Mode engPkgMode, [in] ITVEVariation *pVariation, [in] BSTR bstrUUID, [in] long cBytesTotal, [in] long cBytesReceived); - [id(2110), helpstring("method NotifyTVEFile")] HRESULT NotifyTVEFile([in] NFLE_Mode engFileMode, [in] ITVEVariation *pVariation, [in] BSTR bstrUrlName, [in] BSTR bstrFileName); - [id(2111), helpstring("method NotifyTVEAuxInfo")] HRESULT NotifyTVEAuxInfo([in] NWHAT_Mode engAuxInfoMode, [in] BSTR bstrAuxInfoString, [in] long lChangedFlags, [in] long lErrorLine); // WhatIsIt is NWHAT_Mode - lChangedFlags is NENH_grfDiff or NTRK_grfDiff treated as error bits - - }; - - [ - object, - uuid(05500115-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEServices Interface"), - pointer_default(unique) - ] - interface ITVEServices : IDispatch - { - [propget, id(DISPID_NEWENUM), restricted, helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IUnknown **pCollection); - [propget, id(COLLECTID_Count), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(COLLECTID_Item), helpstring("property Item")] HRESULT Item([in] VARIANT var, [out, retval] ITVEService * *pVal); - [ id(COLLECTID_Add), helpstring("method Add")] HRESULT Add([in] ITVEService *pService); - [ id(COLLECTID_Remove), helpstring("method Remove")] HRESULT Remove([in] VARIANT var); - [ id(COLLECTID_RemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - [ id(COLLECTID_Insert), helpstring("method Insert")] HRESULT Insert([in] int iLoc, [in] ITVEService *pService); - }; - - -// --------------------------------------------------- - - [ - object, - uuid(05500106-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVESupervisor Interface"), - pointer_default(unique) - ] - - interface ITVESupervisor : IDispatch - { - [propget, id(1), helpstring("property Services")] HRESULT Services([out, retval] ITVEServices* *pVal); - [propget, id(2), helpstring("property Description")] HRESULT Description([out, retval] BSTR *pVal); - [propput, id(2), helpstring("property Description")] HRESULT Description([in] BSTR newVal); - [ id(3), helpstring("method TuneTo")] HRESULT TuneTo([in] BSTR bstrDescription, [in] BSTR bstrIPAdapter); - [ id(4), helpstring("method ReTune")] HRESULT ReTune([in] ITVEService *pService); - - [ id(5), helpstring("method NewXOverLink")] HRESULT NewXOverLink([in] BSTR bstrLine21Trigger); - // Expires any items earlier than the specified date + service.ExpireOffset - // If ezactly zero, Date defaults to . - [ id(6), helpstring("method ExpireForDate")] HRESULT ExpireForDate([in] DATE dateExpireTime); - - // need to be here rather than Helper, since called from Filter, and Supervisor_Helper - // not in the proxy-stub DLL - [ id(7), restricted, helpstring("method InitStats")] HRESULT InitStats(); - [ id(8), restricted, helpstring("method GetStats")] HRESULT GetStats([out] BSTR *pbstrBuff); // CTVEStats - }; - - [ - object, - uuid(05500206-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - hidden, - helpstring("ITVESupervisor_Helper Interface"), - pointer_default(unique) - ] - interface ITVESupervisor_Helper : IUnknown - { - [id(1), helpstring("method ConnectParent")] HRESULT ConnectParent([in] IUnknown *pUnk); - [id(2), helpstring("method GetActiveService")] HRESULT GetActiveService([out] ITVEService **ppActiveService); - [id(3), helpstring("method GetMCastManager")] HRESULT GetMCastManager([out] ITVEMCastManager **pMCastManager); - [id(4), helpstring("method UnpackBuffer")] HRESULT UnpackBuffer([in] IUnknown *pTVEVariation, [in] unsigned char *m_rgbData, [in] int cBytes); - - [id(5), helpstring("method NotifyEnhancement")] HRESULT NotifyEnhancement([in] NENH_Mode enhMode,[in] ITVEEnhancement *pEnhancement,[in] long lChangedFlags); // changedFlags NENH_grfDiff - [id(6), helpstring("method NotifyTrigger")] HRESULT NotifyTrigger([in] NTRK_Mode trgMode,[in] ITVETrack *pTrack,[in] long lChangedFlags); // changedFlags NTRK_grfDiff - [id(7), helpstring("method NotifyPackage")] HRESULT NotifyPackage([in] NPKG_Mode pkgMode, [in] ITVEVariation *pVariation, [in] BSTR bstrPackageUUID, [in] long cBytesTotal, [in] long cBytesReceived); - [id(8), helpstring("method NotifyFile")] HRESULT NotifyFile([in] NFLE_Mode fileMode, [in] ITVEVariation *pVariation, [in] BSTR bstrURLName, [in] BSTR bstrFileName); - [id(9), helpstring("method NotifyTune")] HRESULT NotifyTune([in] NTUN_Mode tuneMode, [in] ITVEService *pService, [in] BSTR bstrDescription, [in] BSTR bstrIPAdapter); - // WhatIsIt is NWHAT_Mode - lChangedFlags is NENH_grfDiff or NTRK_grfDiff treated as error bits - [id(10), helpstring("method NotifyAuxInfo")] HRESULT NotifyAuxInfo([in] NWHAT_Mode whatMode, [in] BSTR bstrAuxInfoString, [in] long lgrfWhatDiff, [in] long lLineError); - - [id(11), helpstring("method NotifyEnhancement_XProxy")] HRESULT NotifyEnhancement_XProxy([in] NENH_Mode enhMode,[in] ITVEEnhancement *pEnhancement,[in] long lChangedFlags); // changedFlags NENH_grfDiff - [id(12), helpstring("method NotifyTrigger_XProxy")] HRESULT NotifyTrigger_XProxy([in] NTRK_Mode trgMode,[in] ITVETrack *pTrack,[in] long lChangedFlags); // changedFlags NTRK_grfDiff - [id(13), helpstring("method NotifyPackage_XProxy")] HRESULT NotifyPackage_XProxy( NPKG_Mode pkgMode, ITVEVariation *pVariation,BSTR bstrPackageUUID, long cBytesTotal,long cBytesReceived); - [id(14), helpstring("method NotifyFile_XProxy")] HRESULT NotifyFile_XProxy([in] NFLE_Mode fileMode, [in] ITVEVariation *pVariation, [in] BSTR bstrURLName, [in] BSTR bstrFileName); - [id(15), helpstring("method NotifyTune_XProxy")] HRESULT NotifyTune_XProxy([in] NTUN_Mode tuneMode, [in] ITVEService *pService, [in] BSTR bstrDescription, [in] BSTR bstrIPAdapter); - [id(16), helpstring("method NotifyAuxInfo_XProxy")] HRESULT NotifyAuxInfo_XProxy([in] NWHAT_Mode whatMode, [in] BSTR bstrAuxInfoString, [in] long lgrfWhatDiff,[in] long lLineError); - - [propget, id(17), helpstring("property HaltFlags")] HRESULT HaltFlags([out, retval] LONG *plGrfHaltFlags); - [propput, id(17), helpstring("property HaltFlags")] HRESULT HaltFlags([in] LONG lGrfHaltFlags); - - [ id(18), helpstring("method RemoveAllListenersOnAdapter")] HRESULT RemoveAllListenersOnAdapter([in] BSTR bstrAdapter); - [propget, id(19), helpstring("method PossibleIPAdapterAddress")] HRESULT PossibleIPAdapterAddress([in] int iAdapter, [out,retval] BSTR *pbstrIPAdapterAddr); - [ id(20), helpstring("method DumpToBSTR")] HRESULT DumpToBSTR([out] BSTR *pbstrBuff); - - [propget, id(21), helpstring("property SupervisorGITProxy")] HRESULT SupervisorGITProxy([out] ITVESupervisorGITProxy **ppSupervisorGITProxy); // internal GIT refcounted pointer to supervisor - }; - - [ - hidden, - object, - uuid(05500306-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVESupervisorGITProxy Interface"), - pointer_default(unique) - ] - - interface ITVESupervisorGITProxy: IUnknown - { - [propget, id(1), helpstring("property Supervisor")] HRESULT Supervisor([out, retval] ITVESupervisor **ppVal); - [propput, id(1), helpstring("property Supervisor")] HRESULT Supervisor([in] ITVESupervisor *pVal); - }; - -// --------------------------------------------------- - - // --------------------------------- - [ - object, - uuid(05500121-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEAttrMap Interface"), - pointer_default(unique) - ] - interface ITVEAttrMap : IDispatch - { - [propget, id(DISPID_NEWENUM), restricted, helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IUnknown **pCollection); - [propget, id(COLLECTID_Count), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(COLLECTID_Item), helpstring("property Item")] HRESULT Item([in] VARIANT var, [out, retval] BSTR *pVal); - [propget, id(COLLECTID_Key), helpstring("property Key")] HRESULT Key([in] VARIANT var, [out, retval] BSTR *pKey); - [ id(COLLECTID_Add), helpstring("method Add")] HRESULT Add([in] BSTR bstrKey, [in] BSTR bstrValue); - [ id(COLLECTID_Replace), helpstring("method Replace")] HRESULT Replace([in] BSTR bstrKey, [in] BSTR bstrValue); - [ id(COLLECTID_Remove), helpstring("method Remove")] HRESULT Remove([in] VARIANT var); - [ id(COLLECTID_RemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - [ id(7), helpstring("method Add1")] HRESULT Add1(BSTR bstrValue); - [ id(8), helpstring("method DumpToBSTR")] HRESULT DumpToBSTR([out] BSTR *pDump); - }; - -// --------------------------------------------------- - - // --------------------------------- - [ - object, - uuid(05500122-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEAttrTimeQ Interface"), - pointer_default(unique) - ] - interface ITVEAttrTimeQ : IDispatch - { - [propget, id(DISPID_NEWENUM), restricted, helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IUnknown **pCollection); - [propget, id(COLLECTID_Count), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(COLLECTID_Item), helpstring("property Item")] HRESULT Item([in] VARIANT var, [out, retval] IUnknown **ppVal); - [propget, id(COLLECTID_Key), helpstring("property Key")] HRESULT Key([in] VARIANT var, [out, retval] DATE *pKey); - [ id(COLLECTID_Add), helpstring("method Add")] HRESULT Add([in] DATE dateKey, [in] IUnknown *pUnk); - [ id(COLLECTID_Remove), helpstring("method Remove")] HRESULT Remove([in] VARIANT var); - [ id(COLLECTID_RemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - [ id(COLLECTID_Update), helpstring("method Update")] HRESULT Update([in] DATE dateKey, [in] IUnknown *pUnk); - [ id(9), helpstring("method LockRead")] HRESULT LockRead(); - [ id(10), helpstring("method LockWrite")] HRESULT LockWrite(); - [ id(11), helpstring("method Unlock")] HRESULT Unlock(); - [ id(12), helpstring("method RemoveSimple")] HRESULT RemoveSimple([in] VARIANT var); // remove without calling var->RemoveYourself() - [ id(13), helpstring("method DumpToBSTR")] HRESULT DumpToBSTR([out] BSTR *pDump); - }; - -// --------------------------------------------------- - [ - object, - uuid(05500130-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEMCast Interface"), - pointer_default(unique) - ] - interface ITVEMCast : IDispatch - { - [propget, id(1), helpstring("property IPAdapter")] HRESULT IPAdapter([out, retval] BSTR *pVal); - [propput, id(1), helpstring("property IPAdapter")] HRESULT IPAdapter([in] BSTR newVal); - [propget, id(2), helpstring("property IPAddress")] HRESULT IPAddress([out, retval] BSTR *pVal); - [propput, id(2), helpstring("property IPAddress")] HRESULT IPAddress([in] BSTR newVal); - [propget, id(3), helpstring("property IPPort")] HRESULT IPPort([out, retval] long *pVal); - [propput, id(3), helpstring("property IPPort")] HRESULT IPPort([in] long newVal); - [ id(4), helpstring("method Join")] HRESULT Join(); - [ id(5), helpstring("method Leave")] HRESULT Leave(); - [propget, id(6), helpstring("property IsJoined")] HRESULT IsJoined([out, retval] VARIANT_BOOL *pVal); - [propget, id(7), helpstring("property IsSuspended")] HRESULT IsSuspended([out, retval] VARIANT_BOOL *pVal); - [ id(8), helpstring("method Suspend")] HRESULT Suspend(VARIANT_BOOL fSuspend); - [propget, id(9), helpstring("property PacketCount")] HRESULT PacketCount([out, retval] long *pVal); - [propget, id(10), helpstring("property ByteCount")] HRESULT ByteCount([out, retval] long *pVal); - [ id(11), helpstring("method KeepStats")] HRESULT KeepStats(VARIANT_BOOL fKeepStats); - [ id(12), helpstring("method ResetStats")] HRESULT ResetStats(); - [ id(13), helpstring("method SetReadCallback")] HRESULT SetReadCallback([in] int nBuffers, [in] int iPrioritySetback, [in] IUnknown *pVal); - [ id(14), helpstring("method ConnectManager")] HRESULT ConnectManager([in] ITVEMCastManager* pVal); - [propget, id(15), helpstring("property Manager")] HRESULT Manager([out, retval] IUnknown* *ppVal); - [propget, id(16), helpstring("property QueueThreadId")] HRESULT QueueThreadId([out, retval] long* pVal); - [propput, id(16), helpstring("property QueueThreadId")] HRESULT QueueThreadId([in] long pVal); - [propget, id(17), helpstring("property WhatType")] HRESULT WhatType([out, retval] NWHAT_Mode *pWhatType); - [propput, id(17), helpstring("property WhatType")] HRESULT WhatType([in] NWHAT_Mode whatType); - }; - - [ - object, - uuid(05500131-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEMCasts Interface"), - pointer_default(unique) - ] - interface ITVEMCasts : IDispatch - { - [propget, id(DISPID_NEWENUM), restricted, helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IUnknown **pCollection); - [propget, id(COLLECTID_Count), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); - [propget, id(COLLECTID_Item), helpstring("property Item")] HRESULT Item([in] VARIANT var, [out, retval] ITVEMCast * *pVal); - [ id(COLLECTID_Add), helpstring("method Add")] HRESULT Add([in] ITVEMCast *punk); - [ id(COLLECTID_Remove), helpstring("method Remove")] HRESULT Remove([in] VARIANT var); - [ id(COLLECTID_RemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll(); - }; - [ - object, - uuid(05500132-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEMCastManager Interface"), - pointer_default(unique) - ] - interface ITVEMCastManager : IDispatch - { - [propget, id(1), helpstring("property MCasts")] HRESULT MCasts([out, retval] ITVEMCasts* *pVal); - [propget, id(2), helpstring("property Supervisor")] HRESULT Supervisor([out, retval] ITVESupervisor* *ppSupervisor); - [propput, id(2), helpstring("property Supervisor")] HRESULT Supervisor([in] ITVESupervisor *pSupervisor); - [ id(3), helpstring("method AddMulticast")] HRESULT AddMulticast([in] NWHAT_Mode whatType, [in] BSTR bsAdapter, [in] BSTR bsIPAddress, [in] LONG ulIPPort, [in] LONG cBuffers, [in] IUnknown *pICallback, [out] ITVEMCast **ppMCastAdded); - [ id(4), helpstring("method FindMulticast")] HRESULT FindMulticast([in] BSTR bstrIPAdapter, [in] BSTR bstrIPAddress, [in] LONG sPort, [out] ITVEMCast **ppMCast, [out] LONG *pcMatches); - [ id(5), helpstring("method RemoveMulticast")] HRESULT RemoveMulticast(ITVEMCast *pMCast); - [ id(6), helpstring("method JoinAll")] HRESULT JoinAll(); - [ id(7), helpstring("method LeaveAll")] HRESULT LeaveAll(); - [ id(8), helpstring("method SuspendAll")] HRESULT SuspendAll([in] VARIANT_BOOL fSuspend); - [ id(9), helpstring("method Lock_")] HRESULT Lock_(); - [ id(10), helpstring("method Unlock_")] HRESULT Unlock_(); - [ id(11), helpstring("method DumpStatsToBSTR")] HRESULT DumpStatsToBSTR(int iType, BSTR *pBSTR); - [propget, id(13), helpstring("property HaltFlags")] HRESULT HaltFlags([out, retval] LONG *plGrfHaltFlags); - [propput, id(13), helpstring("property HaltFlags")] HRESULT HaltFlags([in] LONG lGrfHaltFlags); - }; - - [ - object, - uuid(05500232-FAA5-4df9-8246-BFC23AC5CEA8), -// dual, - hidden, - helpstring("ITVEMCastManager_Helper Interface"), - pointer_default(unique) - ] - interface ITVEMCastManager_Helper : IUnknown - { - [ id(1), helpstring("method DumpString")] HRESULT DumpString(BSTR bstrDump); // writes string to a Dump.txt - [ id(2), helpstring("method CreateQueueThread")] HRESULT CreateQueueThread(); - [ id(3), helpstring("method KillQueueThread")] HRESULT KillQueueThread(); - [ id(4), helpstring("method PostToQueueThread")] HRESULT PostToQueueThread(UINT uiMsg, WPARAM wParam, LPARAM lParam); - [ id(5), helpstring("method GetPacketCounts")] HRESULT GetPacketCounts([out] LONG *pCPackets, [out] LONG *pCPacketsDropped, [out] LONG *pCPacketsDroppedTotal); - }; - - - [ - object, - uuid(05500133-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEMCastCallback Interface"), - pointer_default(unique) - ] - interface ITVEMCastCallback : IDispatch - { - [id(1), helpstring("method SetMCast")] HRESULT SetMCast(ITVEMCast *pMCast); - [id(2), helpstring("method ProcessPacket")] HRESULT ProcessPacket(unsigned char *pchBuffer, long cBytes, long lPacketId); - [id(3), helpstring("method PostPacket")] HRESULT PostPacket(unsigned char *pchBuffer, long cBytes, long wPacketId); - }; - - - - - // ................ specific callbacks .............. - [ - object, - uuid(05500141-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVECBAnnc Interface"), - pointer_default(unique) - ] - interface ITVECBAnnc : IDispatch - { - [id(1), helpstring("method Init")] HRESULT Init(BSTR bstrFileTrigAdapter, ITVEService *pService); // want ITVEService here - }; - [ - object, - uuid(05500142-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVECBTrig Interface"), - pointer_default(unique) - ] - interface ITVECBTrig : IDispatch - { - [id(1), helpstring("method Init")] HRESULT Init(ITVEVariation *pIVariation); - }; - [ - object, - uuid(05500143-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVECBFile Interface"), - pointer_default(unique) - ] - interface ITVECBFile : IDispatch - { - [id(1), helpstring("method Init")] HRESULT Init(ITVEVariation *pIVariation, ITVEService *pIService); - }; - [ - object, - uuid(05500144-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVECBDummy Interface"), - pointer_default(unique) - ] - interface ITVECBDummy : IDispatch - { - [id(1), helpstring("method Init")] HRESULT Init(int i); - }; - - -// ---------------------------------------------------- - [ - object, - uuid(05500151-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVEFile Interface"), - pointer_default(unique) - ] - interface ITVEFile : IDispatch - { - [ id(1), helpstring("method InitializeFile")] HRESULT InitializeFile([in] ITVEVariation *pVaria, [in] BSTR bsName, [in] BSTR bsLoc, [in] DATE dateExpires); - [ id(2), helpstring("method InitializePackage")] HRESULT InitializePackage([in] ITVEVariation *pVaria, [in] BSTR bsName, [in] BSTR bsLoc, [in] DATE dateExpires); - [propget, id(3), helpstring("property Description")] HRESULT Description([out, retval] BSTR* pBstrDesc); - [propget, id(4), helpstring("property Location")] HRESULT Location([out, retval] BSTR* pBstrLoc); - [propget, id(5), helpstring("property ExpireTime")] HRESULT ExpireTime([out, retval] DATE* pDateExpires); - [propget, id(6), helpstring("property IsPackage")] HRESULT IsPackage([out, retval] BOOL* pfVal); - [propget, id(7), helpstring("property Variation")] HRESULT Variation([out, retval] ITVEVariation* *pVal); - [propget, id(8), helpstring("property Service")] HRESULT Service([out, retval] ITVEService* *pVal); - [ id(9), helpstring("method RemoveYourself")] HRESULT RemoveYourself(); - [ id(10), helpstring("method DumpToBSTR")] HRESULT DumpToBSTR([out] BSTR *pBstrDump); - }; - - -// ---------------------------------------------------- -// ITVENavAid -// ---------------------------------------------------- - -[ - object, - uuid (05500160-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVENavAid Interface"), - pointer_default(unique) -] -interface ITVENavAid : IDispatch -{ - [propput, id(1), helpstring("property WebBrowserApp")] HRESULT WebBrowserApp([in] IDispatch *pWebBrowser); - [propget, id(1), helpstring("property WebBrowserApp")] HRESULT WebBrowserApp([out, retval] IDispatch **ppWebBrowser); - [propget, id(2), helpstring("property TVETriggerCtrl")] HRESULT TVETriggerCtrl([out, retval] ITVETriggerCtrl **ppTriggerCtrl); - [propput, id(3), helpstring("property EnableAutoTriggering")] HRESULT EnableAutoTriggering([in] long lAutoTriggers); - [propget, id(3), helpstring("property EnableAutoTriggering")] HRESULT EnableAutoTriggering([out, retval] long *plAutoTriggers); - [propget, id(4), helpstring("property ActiveVariation")] HRESULT ActiveVariation([out, retval] ITVEVariation **ppActiveVariation); - [propput, id(4), helpstring("property ActiveVariation")] HRESULT ActiveVariation([in] ITVEVariation *pActiveVariation); - [propget, id(5), helpstring("property TVEFeature")] HRESULT TVEFeature([out, retval] ITVEFeature **ppTVEFeature); - [propget, id(6), helpstring("property CacheState")] HRESULT CacheState([out, retval] BSTR *pbstrBuff); - [propput, id(6), helpstring("property CacheState")] HRESULT CacheState([in] BSTR bstrBuff); - [ , id(7), helpstring("method NavUsingTVETrigger")] HRESULT NavUsingTVETrigger([in] ITVETrigger *pTrigger, [in] long lForceNav, [in] long lForceExec); - [ , id(8), helpstring("method ExecScript")] HRESULT ExecScript([in] BSTR bstrScript, [in] BSTR bstrLanguage); - [ , id(9), helpstring("method Navigate")] HRESULT Navigate([in] VARIANT *URL,[in] VARIANT *Flags,[in] VARIANT *TargetFrameName, [in] VARIANT *PostData, [in] VARIANT *Headers); - [propget, id(10), helpstring("property CurrTVEName")] HRESULT CurrTVEName([out, retval] BSTR *pbstrName); - [propget, id(11), helpstring("property CurrTVEURL")] HRESULT CurrTVEURL([out, retval] BSTR *pbstrURL); - - // these are incoming sinkn events called by Supervisor ((_ITVEvents).. ID's Must match (I think) - // &DIID__ITVEEvents - [id(2101), helpstring("method NotifyTVETune")] HRESULT NotifyTVETune([in] NTUN_Mode tuneMode, [in] ITVEService *pService, [in] BSTR bstrDescription, [in] BSTR bstrIPAdapter); - [id(2102), helpstring("method NotifyTVEEnhancementNew")] HRESULT NotifyTVEEnhancementNew([in] ITVEEnhancement *pEnh); - [id(2103), helpstring("method NotifyTVEEnhancementUpdated")] HRESULT NotifyTVEEnhancementUpdated([in] ITVEEnhancement *pEnh, [in] long lChangedFlags); // changedFlags : NENH_grfDiff - [id(2104), helpstring("method NotifyTVEEnhancementStarting")] HRESULT NotifyTVEEnhancementStarting([in] ITVEEnhancement *pEnh); - [id(2105), helpstring("method NotifyTVEEnhancementExpired")] HRESULT NotifyTVEEnhancementExpired([in] ITVEEnhancement *pEnh); - [id(2106), helpstring("method NotifyTVETriggerNew")] HRESULT NotifyTVETriggerNew([in] ITVETrigger *pTrigger,[in] BOOL fActive); - [id(2107), helpstring("method NotifyTVETriggerUpdated")] HRESULT NotifyTVETriggerUpdated([in] ITVETrigger *pTrigger,[in] BOOL fActive, [in] long lChangedFlags); // changedFlags : NTRK_grfDiff - [id(2108), helpstring("method NotifyTVETriggerExpired")] HRESULT NotifyTVETriggerExpired([in] ITVETrigger *pTrigger,[in] BOOL fActive); - [id(2109), helpstring("method NotifyTVEPackage")] HRESULT NotifyTVEPackage([in] NPKG_Mode engPkgMode, [in] ITVEVariation *pVariation, [in] BSTR bstrUUID, [in] long cBytesTotal, [in] long cBytesReceived); - [id(2110), helpstring("method NotifyTVEFile")] HRESULT NotifyTVEFile([in] NFLE_Mode engFileMode, [in] ITVEVariation *pVariation, [in] BSTR bstrUrlName, [in] BSTR bstrFileName); - [id(2111), helpstring("method NotifyTVEAuxInfo")] HRESULT NotifyTVEAuxInfo([in] NWHAT_Mode engAuxInfoMode, [in] BSTR bstrAuxInfoString, [in] long lChangedFlags, [in] long lErrorLine); // WhatIsIt is NWHAT_Mode - lChangedFlags is NENH_grfDiff or NTRK_grfDiff treated as error bits - - - // &DIID_DWebBrowserEvents2, - - [id(0x66), helpstring("method NotifyStatusTextChange")] HRESULT NotifyStatusTextChange(BSTR Text); - [id(0x6c), helpstring("method NotifyProgressChange")] HRESULT NotifyProgressChange(LONG Progress, LONG ProgressMax); - [id(0x69), helpstring("method NotifyCommandStateChange")] HRESULT NotifyCommandStateChange(LONG Command, VARIANT_BOOL Enable); - [id(0x6a), helpstring("method NotifyDownloadBegin")] HRESULT NotifyDownloadBegin(); - [id(0x68), helpstring("method NotifyDownloadComplete")] HRESULT NotifyDownloadComplete(); - [id(0x71), helpstring("method NotifyTitleChange")] HRESULT NotifyTitleChange(BSTR Text); - [id(0x70), helpstring("method NotifyPropertyChange")] HRESULT NotifyPropertyChange(BSTR szProperty); - [id(0xfa), helpstring("method NotifyBeforeNavigate2")] HRESULT NotifyBeforeNavigate2(IDispatch * pDisp, VARIANT * URL, VARIANT * Flags, VARIANT * TargetFrameName, VARIANT * PostData, VARIANT * Headers, VARIANT_BOOL * Cancel); - [id(0xfb), helpstring("method NotifyNewWindow2")] HRESULT NotifyNewWindow2(IDispatch * * ppDisp, VARIANT_BOOL * Cancel); - [id(0xfc), helpstring("method NotifyNavigateComplete2")] HRESULT NotifyNavigateComplete2(IDispatch * pDisp, VARIANT * URL); - [id(0x103), helpstring("method NotifyDocumentComplete")] HRESULT NotifyDocumentComplete(IDispatch * pDisp, VARIANT * URL); - [id(0xfd), helpstring("method NotifyOnQuit")] HRESULT NotifyOnQuit(); - [id(0xfe), helpstring("method NotifyOnVisible")] HRESULT NotifyOnVisible(VARIANT_BOOL Visible); - [id(0xff), helpstring("method NotifyOnToolBar")] HRESULT NotifyOnToolBar(VARIANT_BOOL ToolBar); - [id(0x100), helpstring("method NotifyOnMenuBar")] HRESULT NotifyOnMenuBar(VARIANT_BOOL MenuBar); - [id(0x101), helpstring("method NotifyOnStatusBar")] HRESULT NotifyOnStatusBar(VARIANT_BOOL StatusBar); - [id(0x102), helpstring("method NotifyOnFullScreen")] HRESULT NotifyOnFullScreen(VARIANT_BOOL FullScreen); - [id(0x104), helpstring("method NotifyOnTheaterMode")] HRESULT NotifyOnTheaterMode(VARIANT_BOOL TheaterMode); - -} ; - // ------ - // these interfaces for running without the VidControl - // - idea is to create CoCreate supervisor, and 'put' it here. -[ - object, - uuid (05500360-FAA5-4df9-8246-BFC23AC5CEA8), - hidden, -// dual, - helpstring("ITVENavAid_NoVidCtl Interface"), - pointer_default(unique) -] -interface ITVENavAid_NoVidCtl : IUnknown -{ - [propput ,id(1), helpstring("property NoVidCtl_Supervisor")] HRESULT NoVidCtl_Supervisor([in] ITVESupervisor *pSuper); - [propget ,id(1), helpstring("property NoVidCtl_Supervisor")] HRESULT NoVidCtl_Supervisor([out,retval] ITVESupervisor **ppSuper); - -} ; - - // ------ -[ - object, - uuid (05500260-FAA5-4df9-8246-BFC23AC5CEA8), - hidden, - dual, // - used in proxying, must be marked Dual regardless of what .net says - helpstring("ITVENavAid_Helper Interface"), - pointer_default(unique) -] -interface ITVENavAid_Helper : IUnknown -{ - [ id(1), helpstring("method LocateVidAndTriggerCtrls")] HRESULT LocateVidAndTriggerCtrls([out] IDispatch **pVidCtrl, [out] IDispatch **pTrigCtrl); - [ id(2), helpstring("method NotifyTVETriggerUpdated_XProxy")] HRESULT NotifyTVETriggerUpdated_XProxy([in] ITVETrigger *pTrigger,[in] BOOL fActive, [in] long lChangedFlags); // changedFlags : NTRK_grfDiff - [ id(3), helpstring("method ReInitCurrNavState")] HRESULT ReInitCurrNavState([in] long lReserved); - -} ; -// ---------------------------------------------------- -// Filter interfaces -// ----------------------------------------------------- -[ - object, - uuid (05500180-FAA5-4df9-8246-BFC23AC5CEA8), -// dual, - helpstring("TVEFilter Interface"), - pointer_default(unique) -] -interface ITVEFilter : IUnknown -{ -// [propget, id(2), helpstring("property Supervisor")] HRESULT Supervisor([out, retval] IDispatch **ppSuperDsp); - [propget, id(3), helpstring("property SupervisorPunk")] HRESULT SupervisorPunk([out, retval] IUnknown **ppSuperPunk); - - [propget, id(4), helpstring("property IPAdapterAddress")] HRESULT IPAdapterAddress([out, retval] BSTR *pbstrIPAddr); - [propput, id(4), helpstring("property IPAdapterAddress")] HRESULT IPAdapterAddress([in] BSTR bstrIPAddr); - - [propget, id(5), helpstring("property StationID")] HRESULT StationID([out, retval] BSTR *pbstrStationID); - [propput, id(5), helpstring("property StationID")] HRESULT StationID([in] BSTR bstrStationID); - - [propget, id(6), helpstring("property MulticastList")] HRESULT MulticastList([out, retval] BSTR *pbstrMulticastList); - [propget, id(7), helpstring("property AdapterDescription")] HRESULT AdapterDescription([out, retval] BSTR *pbstrAdapterDescription); - - [ id(8), helpstring("method ReTune")] HRESULT ReTune(); - - // should move to FilterHelper - [propget, id(9), helpstring("property HaltFlags")] HRESULT HaltFlags([out, retval] LONG *plGrfHaltFlags); - [propput, id(9), helpstring("property HaltFlags")] HRESULT HaltFlags([in] LONG lGrfHaltFlags); - - [ id(10), helpstring("method ParseCCBytePair")] HRESULT ParseCCBytePair([in] LONG lByteType, [in] BYTE byte1, [in] BYTE byte2); - - [propget, id(11), helpstring("property IPSinkAdapterAddress")] HRESULT IPSinkAdapterAddress([out, retval] BSTR *pbstrIPAddr); - -// [propput, id(12), helpstring("property SupervisorHelperPunk")] HRESULT get_SupervisorHelperPunk([out] IUnknown **ppSuperHelper); - -}; - -// ------------------------------------------------------ -[ - object, - uuid (05500280-FAA5-4df9-8246-BFC23AC5CEA8), - hidden, - helpstring("ITVEFilter_Helper Interface"), - pointer_default(unique) -] -interface ITVEFilter_Helper : IUnknown -{ -// [id(1),helpstring("method ConnectParent")] HRESULT ConnectParent([in] ITVEEnhancement *pEnhancement); -} ; - - -[ - object, - uuid (05500190-FAA5-4df9-8246-BFC23AC5CEA8), - dual, - helpstring("ITVETriggerCtrl Interface"), - pointer_default(unique) -] -interface ITVETriggerCtrl : IDispatch -{ - [propput, id(1)] HRESULT enabled([in] VARIANT_BOOL newVal); - [propget, id(1)] HRESULT enabled([out, retval] VARIANT_BOOL* pVal); - [propget, id(2)] HRESULT sourceID([out, retval] BSTR* pbstrID); - [propput, id(3)] HRESULT releasable([in] VARIANT_BOOL newVal); - [propget, id(3)] HRESULT releasable([out, retval] VARIANT_BOOL* pVal); - [propget, id(4)] HRESULT backChannel([out, retval] BSTR* pVal); - [propget, id(5)] HRESULT contentLevel([out, retval] double* pVal); -} ; - -[ - object, - uuid (05500191-FAA5-4df9-8246-BFC23AC5CEA8), - hidden, - helpstring("ITVETriggerCtrl_Helper Interface"), - pointer_default(unique) -] -interface ITVETriggerCtrl_Helper : IUnknown -{ - [propput, id(1)] HRESULT sourceID([in] BSTR pSourceUUID); // cache the SourceID - [propget, id(2)] HRESULT TopLevelPage([out, retval] BSTR *pURL); // return the cached URL (???) of the top web page - -} ; - -// --------------------------------------------------------------------------------------- -// *************************************************************************************** -// ---------------------------------------------------------------------------------------- -[ - uuid(1700C001-6666-4f66-B1E2-BF3C9FBB9BA6), // new - version(1.0), - helpstring("Microsoft TVE Library and DShow Filter") -] -library MSTvELib -{ - importlib("stdole32.tlb"); - importlib("stdole2.tlb"); -// ------------------------------------------------------- -typedef enum NENH_grfDiff // need to fill out.. -{ - NENH_grfNone = 0x0000, // no flags - NENH_grfDescription = 0x00000001, - NENH_grfIsPrimary = 0x00000002, - NENH_grfProtocolVersion = 0x00000004, - NENH_grfSessionUserName = 0x00000008, - NENH_grfSessionId = 0x00000010, - NENH_grfSessionVersion = 0x00000020, - NENH_grfSessionIPAddress = 0x00000040, - NENH_grfSessionName = 0x00000080, - NENH_grfEmailAddresses = 0x00000100, - NENH_grfPhoneNumbers = 0x00000200, - NENH_grfUUID = 0x00000400, - NENH_grfStartTime = 0x00000800, - NENH_grfStopTime = 0x00001000, - NENH_grfType = 0x00002000, - NENH_grfTveType = 0x00004000, - NENH_grfTveSize = 0x00008000, - NENH_grfTveLevel = 0x00010000, - NENH_grfAttributes = 0x00020000, - NENH_grfRest = 0x00040000, - NENH_grfVariationAdded = 0x00080000, - NENH_grfVariationRemoved = 0x00100000, - NENH_grfDescriptionURI = 0x00200000, - NENH_grfSomeVarIP = 0x00400000, - NENH_grfSomeVarText = 0x00800000, - NENH_grfSomeVarBandwidth = 0x01000000, - NENH_grfSomeVarLanguages = 0x02000000, - NENH_grfSomeVarAttribute = 0x04000000, - NENH_grfUnused = 0x08000000, - NENH_grfSAPVersion = 0x10000000, - NENH_grfSAPAddressType = 0x20000000, - NENH_grfSAPOther = 0x40000000, - NENH_grfSAPEncryptComp = 0x80000000, - NENH_grfAnyIP = (NENH_grfSomeVarIP | NENH_grfVariationAdded | NENH_grfVariationRemoved), - NENH_grfAll = (NENH_grfSomeVarAttribute<<1) - 1 // all flags -} NENH_grfDiff; - -typedef enum NVAR_grfDiff -{ - NVAR_grfNone = 0x0000, - NVAR_grfDescription = 0x0001, - NVAR_grfMediaName = 0x0002, - NVAR_grfMediaTitle = 0x0004, - NVAR_grfFilePort = 0x0008, - NVAR_grfFileIPAddress = 0x0010, - NVAR_grfFileIPAdapter = 0x0020, - NVAR_grfTriggerPort = 0x0040, - NVAR_grfTriggerIPAddress = 0x0080, - NVAR_grfTriggerIPAdapter = 0x0100, - NVAR_grfAttributes = 0x0200, - NVAR_grfLanguages = 0x0400, - NVAR_grfBandwidth = 0x0800, - NVAR_grfBandwidthInfo = 0x1000, - NVAR_grfRest = 0x2000, - NVAR_grfAnyIP = (NVAR_grfFilePort | NVAR_grfFileIPAddress | NVAR_grfFileIPAdapter | - NVAR_grfTriggerPort | NVAR_grfTriggerIPAddress | NVAR_grfTriggerIPAdapter), - NVAR_grfAnyText = (NVAR_grfDescription | NVAR_grfMediaName | NVAR_grfMediaTitle), - NVAR_grfAnyBandwidth = (NVAR_grfBandwidth | NVAR_grfBandwidthInfo), - NVAR_grfAnyAttribute = (NVAR_grfAttributes | NVAR_grfRest), - - NVAR_grfAll = (NVAR_grfRest<<1) - 1 // all flags -} NVAR_grfDiff; - - -typedef enum NTRK_grfDiff // attempt at a bit-field flag -{ - NTRK_grfNone = 0x00, - NTRK_grfURL = 0x01, - NTRK_grfName = 0x02, - NTRK_grfScript = 0x04, - NTRK_grfDate = 0x08, - NTRK_grfTVELevel= 0x10, - NTRK_grfExpired = 0x20, // trigger arrived out of date - NTRK_grfRest = 0x40, - NTRK_grfAll = (NTRK_grfRest<<1) - 1 // all flags -} NTRK_grfDiff; - -typedef enum NFLT_grfHaltFlags // flags to turn various processing bits off -{ - NFLT_grfNone = 0x00, - - NFLT_grfTA_Listen = 0x01, // don't listen for CC (XOverLink) triggers - NFLT_grfTA_Decode = 0x02, // don't accumulate byte data for XOverLink triggers into strings - NFLT_grfTA_Parse = 0x04, // don't parse any XOverLink data - - NFLT_grfTB_AnncListen = 0x10, // suspend listening for announcement packets if set - NFLT_grfTB_AnncDecode = 0x20, // suspend decoding and processing of announcement packets if set - NFLT_grfTB_AnncParse = 0x40, // don't parse any announcements - - NFLT_grfTB_TrigListen = 0x100, // suspend listening for transport B triggers - NFLT_grfTB_TrigDecode = 0x200, // suspend listening for transport B triggers - NFLT_grfTB_TrigParse = 0x400, // don't parse any transport B triggers - - NFLT_grfTB_DataListen = 0x1000, // suspend listening for transport B data (files) - NFLT_grfTB_DataDecode = 0x2000, // suspend listening for transport B data (files) - NFLT_grfTB_DataParse = 0x4000, // don't parse any transport B data (files) - - NFLT_grf_ExpireQueue = 0x10000, // turn expire queue processing on and off - NFLT_grf_Extra1 = 0x100000, // extra flag - NFLT_grf_Extra2 = 0x200000, // extra flag - NFLT_grf_Extra3 = 0x400000, // extra flag - NFLT_grf_Extra4 = 0x800000 //extra flag - -} NFLT_grfHaltFlags; - - -// ------------------------------------------------- -// --------------------------------------------------- -// CAUTION - if Change events below, need to perform (after MIDL compiling this file): -// CTVESupervisor->Implement Connection Point (_ITVEEvents) -// AND -// CTVEFeature->Implement Connection Point (_ITVEEvents) -// to regenerate the CProxy_ITVEEvents<> code. -// -// Select Browse... button, goto filters\tve\mstve\objd\i386 directory, use mstve.tlb -// -// Note thefile MSTvECP.h must be checked out. -// - - [ - uuid(05500000-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("_ITVEEvents Interface") - ] - dispinterface _ITVEEvents - { - properties: - methods: - [id(2101), helpstring("method NotifyTVETune")] HRESULT NotifyTVETune([in] NTUN_Mode tuneMode, [in] ITVEService *pService, [in] BSTR bstrDescription, [in] BSTR bstrIPAdapter); - [id(2102), helpstring("method NotifyTVEEnhancementNew")] HRESULT NotifyTVEEnhancementNew([in] ITVEEnhancement *pEnh); - [id(2103), helpstring("method NotifyTVEEnhancementUpdated")] HRESULT NotifyTVEEnhancementUpdated([in] ITVEEnhancement *pEnh, [in] long lChangedFlags); // changedFlags : NENH_grfDiff - [id(2104), helpstring("method NotifyTVEEnhancementStarting")] HRESULT NotifyTVEEnhancementStarting([in] ITVEEnhancement *pEnh); - [id(2105), helpstring("method NotifyTVEEnhancementExpired")] HRESULT NotifyTVEEnhancementExpired([in] ITVEEnhancement *pEnh); - [id(2106), helpstring("method NotifyTVETriggerNew")] HRESULT NotifyTVETriggerNew([in] ITVETrigger *pTrigger,[in] BOOL fActive); - [id(2107), helpstring("method NotifyTVETriggerUpdated")] HRESULT NotifyTVETriggerUpdated([in] ITVETrigger *pTrigger,[in] BOOL fActive, [in] long lChangedFlags); // changedFlags : NTRK_grfDiff - [id(2108), helpstring("method NotifyTVETriggerExpired")] HRESULT NotifyTVETriggerExpired([in] ITVETrigger *pTrigger,[in] BOOL fActive); - [id(2109), helpstring("method NotifyTVEPackage")] HRESULT NotifyTVEPackage([in] NPKG_Mode engPkgMode, [in] ITVEVariation *pVariation, [in] BSTR bstrUUID, [in] long cBytesTotal, [in] long cBytesReceived); - [id(2110), helpstring("method NotifyTVEFile")] HRESULT NotifyTVEFile([in] NFLE_Mode engFileMode, [in] ITVEVariation *pVariation, [in] BSTR bstrUrlName, [in] BSTR bstrFileName); - [id(2111), helpstring("method NotifyTVEAuxInfo")] HRESULT NotifyTVEAuxInfo([in] NWHAT_Mode engAuxInfoMode, [in] BSTR bstrAuxInfoString, [in] long lChangedFlags, [in] long lErrorLine); // WhatIsIt is NWHAT_Mode - lChangedFlags is NENH_grfDiff or NTRK_grfDiff treated as error bits - }; - - [ - uuid(05500001-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVETrigger Class") - ] - coclass TVETrigger - { - [default] interface ITVETrigger; - interface ITVETrigger_Helper; - }; -// ---------------------------------------------------- - - [ - uuid(05500002-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVETrack Class") - ] - coclass TVETrack - { - [default] interface ITVETrack; - interface ITVETrack_Helper; - }; -// --------------------------------- -// [ -// uuid(05500012-FAA5-4df9-8246-BFC23AC5CEA8), -// helpstring("TVETracks Class") -// ] -// coclass TVETracks -// { -// [default] interface ITVETracks; -// }; -// ---------------------------------------------------- - - [ - uuid(05500003-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEVariation Class") - ] - coclass TVEVariation - { - [default] interface ITVEVariation; - interface ITVEVariation_Helper; - }; -// [ -// uuid(05500013-FAA5-4df9-8246-BFC23AC5CEA8), -// helpstring("TVEVariations Class") -// ] -// coclass TVEVariations -// { -// [default] interface ITVEVariations; -// }; -// --------------------------------------------------- - [ - uuid(05500004-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEEnhancement Class") - ] - coclass TVEEnhancement - { - [default] interface ITVEEnhancement; - interface ITVEEnhancement_Helper; - }; - - // -------------------------------- - - [ - uuid(05500014-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEEnhancements Class") - ] - coclass TVEEnhancements - { - [default] interface ITVEEnhancements; - }; -// --------------------------------------------------- - - - [ - uuid(05500005-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEService Class") - ] - coclass TVEService - { - [default] interface ITVEService; - interface ITVEService_Helper; - }; - - [ - uuid(05500025-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEFeature Class") - ] - coclass TVEFeature - { - [default] interface ITVEFeature; - [default, source] dispinterface _ITVEEvents; // out going event handler - interface _ITVEEvents; // incoming event interface -// interface ITVEService_Helper; - }; - - // ------------------------------- - - [ - uuid(05500015-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEServices Class") - ] - coclass TVEServices - { - [default] interface ITVEServices; - }; - - -// --------------------------------------------------- - [ - uuid(05500006-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVESupervisor Class") - ] - coclass TVESupervisor - { - [default] interface ITVESupervisor; - [default, source] dispinterface _ITVEEvents; - interface ITVESupervisor_Helper; - }; -/* - [ - hidden, - uuid(05500406-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("ITVESupervisorGITProxy Class") - ] - coclass TVESupervisorGITProxy - { - [default] interface ITVESupervisorGITProxy; - }; - */ -// --------------------------------------------------- - - [ - uuid(05500021-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEAttrMap Class") - ] - coclass TVEAttrMap - { - [default] interface ITVEAttrMap; - }; - - [ - uuid(05500022-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEAttrTimeQ Class") - ] - coclass TVEAttrTimeQ - { - [default] interface ITVEAttrTimeQ; - }; - - [ - uuid(05500030-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEMCast Class") - ] - coclass TVEMCast - { - [default] interface ITVEMCast; - }; - - [ - uuid(05500031-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEMCasts Class") - ] - coclass TVEMCasts - { - [default] interface ITVEMCasts; - }; - - [ - uuid(05500032-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEMCastManager Class") - ] - coclass TVEMCastManager - { - [default] interface ITVEMCastManager; - interface ITVEMCastManager_Helper; - }; - - - [ - uuid(05500040-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEMCastCallback Class") - ] - coclass TVEMCastCallback - { - [default] interface ITVEMCastCallback; - }; - [ - uuid(05500041-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVECBAnnc Class") - ] - // specific Multicast Callbacks - coclass TVECBAnnc - { - [default] interface ITVECBAnnc; - }; - [ - uuid(05500042-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVECBTrig Class") - ] - coclass TVECBTrig - { - [default] interface ITVECBTrig; - }; - [ - uuid(05500043-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVECBFile Class") - ] - coclass TVECBFile - { - [default] interface ITVECBFile; - }; - [ - uuid(05500049-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVECBDummy Class") - ] - coclass TVECBDummy - { - [default] interface ITVECBDummy; - }; - - - [ - uuid(05500050-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEFile Class") - ] - coclass TVEFile - { - [default] interface ITVEFile; - } - - // This control gets CoCreate'ed by an app to handle hooking things together - [ - uuid(05500070-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVENavAid Class") - ] - coclass TVENavAid - { - [default] interface ITVENavAid; // controllable from HTML - interface ITVENavAid_Helper; // internal control methods - interface ITVENavAid_NoVidCtl; // to work without the VidControl - }; - - // this is the DShow TVE Receiver Filter that encapsulates a TVESupervisor - // object in a in a DShow graph - [ - uuid(05500080-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVEFilter Class") - ] - coclass TVEFilter - { -// [default, source] dispinterface _ITVEEvents; - [default] interface ITVEFilter; - interface ITVEFilter_Helper; - }; - - // This control gets CoCreated by HTML in - // Implements the tve-trigger receiver object properties as per Atvef Spec - [ - uuid(05500091-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("_ITVETriggerCtrlEvents Interface") - ] - dispinterface _ITVETriggerCtrlEvents - { - properties: - methods: - }; - - - [ - uuid(05500090-FAA5-4df9-8246-BFC23AC5CEA8), - helpstring("TVETriggerCtrl Class") - ] - coclass TVETriggerCtrl - { - [default] interface ITVETriggerCtrl; // controllable from HTML - interface ITVETriggerCtrl_Helper; // internal control methods - [default, source] dispinterface _ITveTriggerCtrlEvents; // fire control events to HTML -// interface _ITVEvents; // respond to slew of TVE events - }; - -}; diff --git a/sdk/dx8sdk/Include/DShowIDL/qedit.idl b/sdk/dx8sdk/Include/DShowIDL/qedit.idl deleted file mode 100644 index b75a3e35..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/qedit.idl +++ /dev/null @@ -1,1734 +0,0 @@ -//------------------------------------------------------------------------------ -// File: QEdit.idl -// -// Copyright (c) 1992 - 2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -import "oaidl.idl"; -import "ocidl.idl"; -import "dxtrans.idl"; -import "amstream.idl"; -import "msxml.idl"; - -// -// forward declare -// -interface IAMTimelineGroup; -interface IAMTimelineObj; -interface IAMTimelineEffect; -interface IAMTimelineTrans; -interface IAMTimelineSrc; -interface IAMTimeline; -interface IAMErrorLog; -interface ISampleGrabber; -interface IPropertySetter; - -// used by DEXTER_VALUE's dwInterp var -typedef enum -{ - DEXTERF_JUMP, - DEXTERF_INTERPOLATE -} DEXTERF; - -// used to set values on the property setter -typedef struct -{ - BSTR Name; - DISPID dispID; - LONG nValues; -} DEXTER_PARAM; - -// used to set values on the property setter -typedef struct -{ - VARIANT v; - REFERENCE_TIME rt; - DWORD dwInterp; // one of the DEXTERF_ flags -} DEXTER_VALUE; - -// used by bMethod directly below -enum -{ - DEXTER_AUDIO_JUMP, - DEXTER_AUDIO_INTERPOLATE -}; - -// used to set volumes on the mixer and mixer pins -typedef struct -{ - REFERENCE_TIME rtEnd; //end Time - double dLevel; //end Volume Level - BOOL bMethod; //jump or interpolate -} DEXTER_AUDIO_VOLUMEENVELOPE ; - -// used in IAMTimeline::Get(Set)InsertMode -enum -{ - TIMELINE_INSERT_MODE_INSERT = 1, - TIMELINE_INSERT_MODE_OVERLAY = 2 -}; - -// -// define what main 'things' can be put into the timeline tree. -// these values are used quite a bit with timeline access -// (bitmap mask flags) -typedef enum -{ - TIMELINE_MAJOR_TYPE_COMPOSITE = 1, - TIMELINE_MAJOR_TYPE_TRACK = 2, - TIMELINE_MAJOR_TYPE_SOURCE = 4, - TIMELINE_MAJOR_TYPE_TRANSITION = 8, - TIMELINE_MAJOR_TYPE_EFFECT = 16, - TIMELINE_MAJOR_TYPE_GROUP = 128 -} TIMELINE_MAJOR_TYPE; - -// used in various IAMTimelineXXX "search" functions. Look in this -// file for "SearchDirection" to see where it's used. I didn't want -// to use an enum as an interface param type, so I used a long. -typedef enum -{ - DEXTERF_BOUNDING = -1, // finds any source whose start <= Time and stop > Time - DEXTERF_EXACTLY_AT = 0, // finds any source that starts exactly at Time - DEXTERF_FORWARDS = 1 // finds any source that starts at or after Time -} DEXTERF_TRACK_SEARCH_FLAGS; - -// right now, the media type in the group contains enough information about -// how we want to recompress. This might not be enough information in the -// future, so we define a structure we can get and set to the group. -// -typedef struct _SCompFmt0 -{ - long nFormatId; - AM_MEDIA_TYPE MediaType; -} SCompFmt0; - -// used in IAMTimelineSrc::Get(Set)StretchMode -// -enum -{ - RESIZEF_STRETCH, - RESIZEF_CROP, - RESIZEF_PRESERVEASPECTRATIO, - RESIZEF_PRESERVEASPECTRATIO_NOLETTERBOX -}; - -// used in IRenderEngine::SetDynamicReconnectLevel -// (bitmap mask flags) -enum -{ - CONNECTF_DYNAMIC_NONE = 0x00000000, - CONNECTF_DYNAMIC_SOURCES = 0x00000001, - CONNECTF_DYNAMIC_EFFECTS = 0x00000002 -}; - -// used in -// IMediaLocator::FindMediaFile -// IRenderEngine::SetSourceNameValidation -// IAMTimeline::ValidateSourceNames -// (bitmap mask flags) -enum -{ - SFN_VALIDATEF_CHECK = 0x00000001, // do a check. Without this set, no check will be done. - SFN_VALIDATEF_POPUP = 0x00000002, // should UI popup show if not found - SFN_VALIDATEF_TELLME = 0x00000004, // warn user about replaced files - SFN_VALIDATEF_REPLACE = 0x00000008, // should it replace names in the tldb if found - SFN_VALIDATEF_USELOCAL = 0x000000010, // use local media preferrably over networked media - SFN_VALIDATEF_NOFIND = 0x000000020, // never find filenames, always use UI popup to find., - // when used, _POPUP must be used as well - SFN_VALIDATEF_IGNOREMUTED = 0x000000040, // ignore muted files in the tldb - SFN_VALIDATEF_END -}; - -// key transitions types -enum -{ - DXTKEY_RGB, - DXTKEY_NONRED, - DXTKEY_LUMINANCE, - DXTKEY_ALPHA, - DXTKEY_HUE -}; - - -//////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////// -// New Property setting Interfaces -//////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////// - -// interface for objects which can save/load IDispatch-able properties -[ - object, - uuid(AE9472BD-B0C3-11D2-8D24-00A0C9441E20), - helpstring("IPropertySetter Interface"), - pointer_default(unique) -] -interface IPropertySetter : IUnknown // IPersist? -{ - // for loading and saving through XML - HRESULT LoadXML([in] IUnknown * pxml); - // !!! doesn't work HRESULT LoadXML([in] IXMLElement * pxml); - HRESULT PrintXML([out] char *pszXML, [in] int cbXML, [out] int *pcbPrinted,[in] int indent); - - // for cloning a portion of the props when splitting the object - //AUTOMATE - HRESULT CloneProps([out] IPropertySetter **ppSetter, - [in] REFERENCE_TIME rtStart, - [in] REFERENCE_TIME rtStop); - - // for loading and saving programmatically - // caller must call this in pre-sorted order, this time must be > all - // previous times - //AUTOMATE - HRESULT AddProp([in] DEXTER_PARAM Param, - [in] DEXTER_VALUE *paValue); - //AUTOMATE - HRESULT GetProps([out] LONG *pcParams, - [out] DEXTER_PARAM **paParam, - [out] DEXTER_VALUE **paValue); - // after calling GetProps, you must call FreeProps to free resources - //AUTOMATE - HRESULT FreeProps([in] LONG cParams, - [in] DEXTER_PARAM *paParam, - [in] DEXTER_VALUE *paValue); - // to empty to property setter, so you can start over again - HRESULT ClearProps(); - - // for persisting - HRESULT SaveToBlob([out] LONG *pcSize, [out] BYTE **ppb); - HRESULT LoadFromBlob([in] LONG cSize, [in] BYTE *pb); - - // to program the object that supports IDispatch with the props - // call with rtNow == -1 to set Static Props when your object instantiates - // errors will be logged, if a log is provided - //AUTOMATE - HRESULT SetProps([in] IUnknown *pTarget, - [in] REFERENCE_TIME rtNow); - - // unicode version - HRESULT PrintXMLW([out] WCHAR *pszXML, [in] int cchXML, [out] int *pcchPrinted,[in] int indent); -}; - -// supported by our DxtCompositor class, this allows us to draw whatever comes in -// upon only a portion of the output bitmap - -[ - object, - uuid(BB44391E-6ABD-422f-9E2E-385C9DFF51FC), - dual, - helpstring("IDxtCompositor Interface"), - pointer_default(unique) -] -interface IDxtCompositor : IDXEffect -{ - [propget, id(1), helpstring("property OffsetX")] HRESULT OffsetX([out, retval] long *pVal); - [propput, id(1), helpstring("property OffsetX")] HRESULT OffsetX([in] long newVal); - [propget, id(2), helpstring("property OffsetY")] HRESULT OffsetY([out, retval] long *pVal); - [propput, id(2), helpstring("property OffsetY")] HRESULT OffsetY([in] long newVal); - [propget, id(3), helpstring("property Width")] HRESULT Width([out, retval] long *pVal); - [propput, id(3), helpstring("property Width")] HRESULT Width([in] long newVal); - [propget, id(4), helpstring("property Height")] HRESULT Height([out, retval] long *pVal); - [propput, id(4), helpstring("property Height")] HRESULT Height([in] long newVal); - - [propget, id(5), helpstring("property SrcOffsetX")] HRESULT SrcOffsetX([out, retval] long *pVal); - [propput, id(5), helpstring("property SrcOffsetX")] HRESULT SrcOffsetX([in] long newVal); - [propget, id(6), helpstring("property SrcOffsetY")] HRESULT SrcOffsetY([out, retval] long *pVal); - [propput, id(6), helpstring("property SrcOffsetY")] HRESULT SrcOffsetY([in] long newVal); - [propget, id(7), helpstring("property SrcWidth")] HRESULT SrcWidth([out, retval] long *pVal); - [propput, id(7), helpstring("property SrcWidth")] HRESULT SrcWidth([in] long newVal); - [propget, id(8), helpstring("property SrcHeight")] HRESULT SrcHeight([out, retval] long *pVal); - [propput, id(8), helpstring("property SrcHeight")] HRESULT SrcHeight([in] long newVal); -}; - -[ - object, - uuid(4EE9EAD9-DA4D-43d0-9383-06B90C08B12B), - dual, - helpstring("IDxtAlphaSetter Interface"), - pointer_default(unique) -] -interface IDxtAlphaSetter : IDXEffect -{ - // set the alpha to a particular number - [propget, id(1), helpstring("property Alpha")] HRESULT Alpha([out, retval] long *pVal); - [propput, id(1), helpstring("property Alpha")] HRESULT Alpha([in] long newVal); - - // set the alpha to a percentage of it's full value - [propget, id(2), helpstring("property AlphaRamp")] HRESULT AlphaRamp([out, retval] double *pVal); - [propput, id(2), helpstring("property AlphaRamp")] HRESULT AlphaRamp([in] double newVal); -}; - -// Supported by our JPEG DXT, that can do any wipe based on a bitmap -// - -[ - object, - uuid(DE75D011-7A65-11D2-8CEA-00A0C9441E20), - dual, - helpstring("IDxtJpeg Interface"), - pointer_default(unique) -] -interface IDxtJpeg : IDXEffect -{ - [propget, id(1), helpstring("property MaskNum")] HRESULT MaskNum([out, retval] long *); - [propput, id(1), helpstring("property MaskNum")] HRESULT MaskNum([in] long); - [propget, id(2), helpstring("property MaskName")] HRESULT MaskName([out, retval] BSTR *pVal); - [propput, id(2), helpstring("property MaskName")] HRESULT MaskName([in] BSTR newVal); - [propget, id(3), helpstring("property ScaleX")] HRESULT ScaleX([out, retval] double *); - [propput, id(3), helpstring("property ScaleX")] HRESULT ScaleX([in] double); - [propget, id(4), helpstring("property ScaleY")] HRESULT ScaleY([out, retval] double *); - [propput, id(4), helpstring("property ScaleY")] HRESULT ScaleY([in] double); - [propget, id(5), helpstring("property OffsetX")] HRESULT OffsetX([out, retval] long *); - [propput, id(5), helpstring("property OffsetX")] HRESULT OffsetX([in] long); - [propget, id(6), helpstring("property OffsetY")] HRESULT OffsetY([out, retval] long *); - [propput, id(6), helpstring("property OffsetY")] HRESULT OffsetY([in] long); - [propget, id(7), helpstring("property ReplicateX")] HRESULT ReplicateX([out, retval] long *pVal); - [propput, id(7), helpstring("property ReplicateX")] HRESULT ReplicateX([in] long newVal); - [propget, id(8), helpstring("property ReplicateY")] HRESULT ReplicateY([out, retval] long *pVal); - [propput, id(8), helpstring("property ReplicateY")] HRESULT ReplicateY([in] long newVal); - [propget, id(9), helpstring("property BorderColor")] HRESULT BorderColor([out, retval] long *pVal); - [propput, id(9), helpstring("property BorderColor")] HRESULT BorderColor([in] long newVal); - [propget, id(10), helpstring("property BorderWidth")] HRESULT BorderWidth([out, retval] long *pVal); - [propput, id(10), helpstring("property BorderWidth")] HRESULT BorderWidth([in] long newVal); - [propget, id(11), helpstring("property BorderSoftness")] HRESULT BorderSoftness([out, retval] long *pVal); - [propput, id(11), helpstring("property BorderSoftness")] HRESULT BorderSoftness([in] long newVal); - HRESULT ApplyChanges(); - HRESULT LoadDefSettings(); -}; - - // key - [ - object, - uuid(3255de56-38fb-4901-b980-94b438010d7b), - dual, - helpstring("IDxtKey Interface"), - pointer_default(unique) - ] - interface IDxtKey : IDXEffect - { - [propget, id(1), helpstring("property KeyType")] HRESULT KeyType([out, retval] int *); - [propput, id(1), helpstring("property Keytype")] HRESULT KeyType([in] int); - [propget, id(2), helpstring("property Hue")] HRESULT Hue([out, retval] int *); - [propput, id(2), helpstring("property Hue")] HRESULT Hue([in] int ); - [propget, id(3), helpstring("property Luminance")] HRESULT Luminance([out, retval] int *); - [propput, id(3), helpstring("property Luminance")] HRESULT Luminance([in] int ); - [propget, id(4), helpstring("property RGB")] HRESULT RGB([out, retval] DWORD *); - [propput, id(4), helpstring("property RGB")] HRESULT RGB([in] DWORD ); - [propget, id(5), helpstring("property Similarity")] HRESULT Similarity([out,retval] int * ); - [propput, id(5), helpstring("property Similarity")] HRESULT Similarity([in] int ); - [propget, id(6), helpstring("property Invert")] HRESULT Invert([out, retval] BOOL *); - [propput, id(6), helpstring("property Invert")] HRESULT Invert([in] BOOL); - }; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // This little COM interface will look 'around' for the closest - // path match for a given file. If the file already exists, then - // this interface should hardly do anything. If it's not found, - // it will go look for it and if successful, return S_FALSE. If it - // cannot find the file, it will call the hook, if set and return - // it's return code. if the hook is not set, it is in a type of - // error condition. The Dexter-provided MediaLocator will bring up - // a dialog box asking you to browse for your file. Other COM - // objects may do something else. - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(288581E0-66CE-11d2-918F-00C0DF10D434), - odl, - helpstring("IMediaLocator Interface"), - pointer_default(unique) -] -interface IMediaLocator : IUnknown -{ - // same flags as used by IRenderEngine's SetSourceNameValidation - HRESULT FindMediaFile( BSTR Input, BSTR FilterString, BSTR * pOutput, long Flags ); - HRESULT AddFoundLocation( BSTR DirectoryName ); -}; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // This object provides caching of duration and stream type - // information for files that would produce a directshow source - // filter. It takes too long to figure this out in DShow right - // now, so this is one way around it. The way it works is that - // you first fill out the Filename property, then call and - // ask how many streams it has, or, set the CurrentStream prop - // and then ask for the per-stream properties, StreamType or - // StreamLength. They both reference the CurrentStream prop that - // you set. I also allowed you (for convenience) to just give - // it a IUnknown Filter that represents an IBaseFilter source - // filter that is NOT currently in a graph. It will use that - // instead. When using this, though, you will not get cached - // values. The cached values are stored in the system's ini file - // called DCBC2A70-70D8-4459-BFFA-E0D61DEA3FDF.INI. Nice, huh? :-) - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(65BD0710-24D2-4ff7-9324-ED2E5D3ABAFA), - odl, - helpstring("IMediaDet Interface"), - pointer_default(unique) -] -interface IMediaDet : IUnknown -{ - [propget, id(1), helpstring("property Filter")] HRESULT Filter([out, retval] IUnknown* *pVal); - [propput, id(1), helpstring("property Filter")] HRESULT Filter([in] IUnknown* newVal); - [propget, id(2), helpstring("property OutputStreams")] HRESULT OutputStreams([out, retval] long *pVal); - [propget, id(3), helpstring("property CurrentStream")] HRESULT CurrentStream([out, retval] long *pVal); - [propput, id(3), helpstring("property CurrentStream")] HRESULT CurrentStream([in] long newVal); - [propget, id(4), helpstring("property StreamType")] HRESULT StreamType([out, retval] GUID *pVal); - [propget, id(5), helpstring("property StreamTypeB")] HRESULT StreamTypeB([out, retval] BSTR *pVal); - [propget, id(6), helpstring("property StreamLength")] HRESULT StreamLength([out, retval] double *pVal); - [propget, id(7), helpstring("property Filename")] HRESULT Filename([out, retval] BSTR *pVal); - [propput, id(7), helpstring("property Filename")] HRESULT Filename([in] BSTR newVal); - [id(8), helpstring("method GetBitmapBits")] HRESULT GetBitmapBits(double StreamTime, long * pBufferSize, char * pBuffer, long Width, long Height); - [id(9), helpstring("method WriteBitmapBits")] HRESULT WriteBitmapBits(double StreamTime, long Width, long Height, BSTR Filename ); - [propget, id(10), helpstring("property StreamMediaType")] HRESULT StreamMediaType([out, retval] AM_MEDIA_TYPE * pVal); - [id(11), helpstring("method GetSampleGrabber")] HRESULT GetSampleGrabber( [out] ISampleGrabber ** ppVal ); - [propget, id(12), helpstring("property FrameRate")] HRESULT FrameRate([out, retval] double *pVal); - [id(13), helpstring("method EnterBitmapGrabMode")] HRESULT EnterBitmapGrabMode( double SeekTime ); -}; - - -// useless interface, don't use it! - -[ - object, - uuid(AE9472BE-B0C3-11D2-8D24-00A0C9441E20), - odl, - helpstring("IGrfCache Interface"), - pointer_default(unique) -] -interface IGrfCache : IDispatch -{ - [id(1), helpstring("method AddFilter")] - HRESULT AddFilter( - IGrfCache * ChainedCache, - LONGLONG ID, - const IBaseFilter * pFilter, - LPCWSTR pName); - - [id(2), helpstring("method ConnectPins")] - HRESULT ConnectPins( - IGrfCache * ChainedCache, - LONGLONG PinID1, - const IPin * pPin1, - LONGLONG PinID2, - const IPin * pPin2); - - [id(3), helpstring("method SetGraph")] - HRESULT SetGraph(const IGraphBuilder * pGraph); - - [id(4), helpstring("method DoConnectionsNow")] - HRESULT DoConnectionsNow(); -}; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // The RenderEngin builds a graph from the timeline and gives - // you some simple positional commands. - // explained methods: - // SetTimelineObject - tell the render engine who to parse - // ConnectEverything - build up a graph based on the timeline - // ScrapIt - throw away graph and everything - // GetFilterGraph - get the graph that's built up, if any - // SetFilterGraph - allows you to preset the graph that's built up. - // cannot call this if there already is a graph. - - // !!! the following methods are unused/not implemented - - // SetInterestRange - discard COM objects and memory outside of this - // range, if possible. Used for scrubbing on a long timeline and - // freeing up resources - // SetRenderRange - pretend like a portion of the timeline IS the timeline - // and don't connect anything in the graph outside of that range. - // Commit - allocate what's necessary and get prepared to run - // Decommit - free anything possible - // GetCaps - find out some info about the render engine - // DoSmartRecompression - connect compressed sources if - // possible - // in the graph, this will RenderPin( ) on every switcher - // rendering pin. - // SetSourceNameValidation - allows you to set some flags which - // determine how source files are found, if they need to be found. - // FilterString is a list of extensions to find for the media - // files (see OPENFILENAME filters) - // pOverride is a media locator you would like to use instead - // of the built in one - // The flags are defined in the struct immediately below. - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(6BEE3A81-66C9-11d2-918F-00C0DF10D434), - odl, - helpstring("IRenderEngine Interface"), - pointer_default(unique) -] -interface IRenderEngine : IUnknown -{ - HRESULT SetTimelineObject( IAMTimeline * pTimeline ); - HRESULT GetTimelineObject( [out] IAMTimeline ** ppTimeline ); - HRESULT GetFilterGraph( [out] IGraphBuilder ** ppFG ); - HRESULT SetFilterGraph( IGraphBuilder * pFG ); - HRESULT SetInterestRange( REFERENCE_TIME Start, REFERENCE_TIME Stop ); - HRESULT SetInterestRange2( double Start, double Stop ); - HRESULT SetRenderRange( REFERENCE_TIME Start, REFERENCE_TIME Stop ); - HRESULT SetRenderRange2( double Start, double Stop ); - HRESULT GetGroupOutputPin( long Group, [out] IPin ** ppRenderPin ); - HRESULT ScrapIt( ); - HRESULT RenderOutputPins( ); - HRESULT GetVendorString( [out,retval] BSTR * pVendorID ); - HRESULT ConnectFrontEnd( ); - HRESULT SetSourceConnectCallback( IGrfCache * pCallback ); - HRESULT SetDynamicReconnectLevel( long Level ); - HRESULT DoSmartRecompression( ); - HRESULT UseInSmartRecompressionGraph( ); - - HRESULT SetSourceNameValidation( BSTR FilterString, IMediaLocator * pOverride, LONG Flags ); - - // not implemented yet - HRESULT Commit( ); - HRESULT Decommit( ); - HRESULT GetCaps( long Index, long * pReturn ); -}; - -[ - object, - uuid(6BEE3A82-66C9-11d2-918F-00C0DF10D434), - odl, - helpstring("IRenderEngine2 Interface"), - pointer_default(unique) -] -interface IRenderEngine2 : IUnknown -{ - HRESULT SetResizerGUID( GUID ResizerGuid ); -} - -// used for the smart render engine when it needs to find a compressor -[ - object, - uuid(F03FA8DE-879A-4d59-9B2C-26BB1CF83461), - odl, - helpstring("IFindCompressorCB Interface"), - pointer_default(unique) -] -interface IFindCompressorCB : IUnknown -{ - HRESULT GetCompressor( AM_MEDIA_TYPE * pType, AM_MEDIA_TYPE * pCompType, [out] IBaseFilter ** ppFilter ); -} - -[ - object, - uuid(F03FA8CE-879A-4d59-9B2C-26BB1CF83461), - odl, - helpstring("ISmartRenderEngine Interface"), - pointer_default(unique) -] -interface ISmartRenderEngine : IUnknown -{ - HRESULT SetGroupCompressor( long Group, IBaseFilter * pCompressor ); - HRESULT GetGroupCompressor( long Group, IBaseFilter ** pCompressor ); - HRESULT SetFindCompressorCB( IFindCompressorCB * pCallback ); -} - -//////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////// -// TIMELINE TIMELINE TIMELINE TIMELINE TIMELINE TIMELINE -//////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////// - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Every object on the timeline supports at least this interface. - // explained methods: - // Get/SetStartStop - the timeline times at which this object is - // active. Groups and Tracks have start times of zero. - // FixTimes - used by the render engine. Rounds the input times - // to the nearest FPS of the parent Group, for use in setting - // up the big switch. - // GetSubObject - get the sub-object which is associated with this - // timeline object. Each timeline object can carry around a - // pointer to 'something else'. For our Render Engine, this is - // a pointer to a filter that gets put into a graph. - // NOTE: Getting the subobject will FORCE it to load if it's possible - // to force this. If you don't want it to do this, don't call - // this function. - // SetSubObject - see GetSubObject - // SetSubObjectGUID - instead of giving the node a pointer, you can - // instead give it a GUID and see if this works instead. The - // sub-object will attempt to be instantiated when 'necessary' - // which is really when it's asked for with GetSubObject./ - // !!! a better way to do this perhaps? - // GetSubObjectLoaded - ask if the sub-object pointer is set - // Get/SetTimelineType - return the major type which is stored here, - // used by the API user and the render engine. - // Get/SetTimelineSubType - see above - // Get/SetUserID - get and set a number, any number - // GetGenID - every created object has a unique number to it. Used - // by the render engine. - // Get/SetUserName - a storable name, for users of the API - // Get/SetPropertySetter - the object that will set properties for this - // object (it will support IPropertySetter and it is created by - // CPropertySetter) - // Get/SetUserData - gets the persistant data used by the user of - // the API. - // Get/SetMuted - set whether this object should be active or not. - // Setting a parent of other objects off also turns off the - // sub-objects. - // Get/SetLocked - set whether you can edit this object or not. - // Note: the timeline doesn't enforce this, it just stores - // a value for convenience. - // Get/SetDirtyRange - - // RemoveAll - remove this object, and if in the tree already, all it's - // sub objects, including children - // Remove - remove this object, and if in the tree already, all it's - // sub objects, but not kids - // GetTimelineNoRef - called internally by the timeline. - // GetGroupIBelongTo - called internally by the timeline. - // GetEmbedDepth - find out how many tracks we are a part of - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - local, - uuid(78530B77-61F9-11D2-8CAD-00A024580902), - odl, - helpstring("IAMTimelineObj Interface"), - pointer_default(unique) -] -interface IAMTimelineObj : IUnknown -{ - [helpstring("method GetStartStop")] - HRESULT GetStartStop(REFERENCE_TIME * pStart, REFERENCE_TIME * pStop); - [helpstring("method GetStartStop2")] - HRESULT GetStartStop2(REFTIME * pStart, REFTIME * pStop); - [helpstring("method FixTimes")] - HRESULT FixTimes(REFERENCE_TIME * pStart, REFERENCE_TIME * pStop); - [helpstring("method FixTimes2")] - HRESULT FixTimes2(REFTIME * pStart, REFTIME * pStop); - [helpstring("method SetStartStop")] - HRESULT SetStartStop(REFERENCE_TIME Start, REFERENCE_TIME Stop); - [helpstring("method SetStartStop2")] - HRESULT SetStartStop2(REFTIME Start, REFTIME Stop); - [helpstring("method GetPropertySetter")] - HRESULT GetPropertySetter([out,retval] IPropertySetter* *pVal); - [helpstring("method SetPropertySetter")] - HRESULT SetPropertySetter(IPropertySetter* newVal); - [helpstring("method GetSubObject")] - HRESULT GetSubObject([out,retval] IUnknown* *pVal); - [helpstring("method SetSubObject")] - HRESULT SetSubObject(IUnknown* newVal); - [helpstring("method SetSubObjectGUID")] - HRESULT SetSubObjectGUID(GUID newVal); - [helpstring("method SetSubObjectGUIDByBSTR")] - HRESULT SetSubObjectGUIDB(BSTR newVal); - [helpstring("method GetSubObjectGUID")] - HRESULT GetSubObjectGUID(GUID * pVal); - [helpstring("method GetSubObjectGUIDByBSTR")] - HRESULT GetSubObjectGUIDB([out,retval] BSTR * pVal); - [helpstring("method GetSubObjectLoaded")] - HRESULT GetSubObjectLoaded(BOOL * pVal); - [helpstring("method GetTimelineType")] - HRESULT GetTimelineType(TIMELINE_MAJOR_TYPE * pVal); - [helpstring("method SetTimelineType")] - HRESULT SetTimelineType(TIMELINE_MAJOR_TYPE newVal); - [helpstring("method GetUserID")] - HRESULT GetUserID(long * pVal); - [helpstring("method SetUserID")] - HRESULT SetUserID(long newVal); - [helpstring("method GetGenID")] - HRESULT GetGenID( long * pVal ); - [helpstring("method GetUserName")] - HRESULT GetUserName([out,retval] BSTR * pVal); - [helpstring("method SetUserName")] - HRESULT SetUserName(BSTR newVal); - [helpstring("method GetUserData")] - HRESULT GetUserData(BYTE * pData, long * pSize); - [helpstring("method SetUserData")] - HRESULT SetUserData(BYTE * pData, long Size); - [helpstring("method GetMuted")] - HRESULT GetMuted(BOOL * pVal); - [helpstring("method SetMuted")] - HRESULT SetMuted(BOOL newVal); - [helpstring("method GetLocked")] - HRESULT GetLocked(BOOL * pVal); - [helpstring("method SetLocked")] - HRESULT SetLocked(BOOL newVal); - [helpstring("method GetDirtyRange")] - HRESULT GetDirtyRange(REFERENCE_TIME * pStart, REFERENCE_TIME * pStop); - [helpstring("method GetDirtyRange")] - HRESULT GetDirtyRange2(REFTIME * pStart, REFTIME * pStop); - [helpstring("method SetDirtyRange")] - HRESULT SetDirtyRange(REFERENCE_TIME Start, REFERENCE_TIME Stop); - [helpstring("method SetDirtyRange")] - HRESULT SetDirtyRange2(REFTIME Start, REFTIME Stop); - [helpstring("method ClearDirty")] - HRESULT ClearDirty( ); - [helpstring("method Remove")] - HRESULT Remove(); - [helpstring("method RemoveAll")] - HRESULT RemoveAll(); - HRESULT GetTimelineNoRef( IAMTimeline ** ppResult ); - HRESULT GetGroupIBelongTo( [out] IAMTimelineGroup ** ppGroup ); - HRESULT GetEmbedDepth( long * pVal ); -}; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Any object on the timeline that can have an effect put on it - // implements this interface. This includes sources, tracks, and - // compositions. - // explained methods: - // EffectInsBefore - insert an effect at the given priority onto - // this object. The effect's times will be clipped within - // this object's bounds. Use -1 to specify 'at the end' for priority. - // You cannot have two effects at the same priority. - // EffectSwapPriorities - swaparoo two effects. Makes undo easier to - // implement. - // EffectGetCount - get how many effects are applied to this object. - // GetEffect - get the nth effect applied to this object - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - -[ - object, - uuid(EAE58537-622E-11d2-8CAD-00A024580902), - odl, - helpstring("IAMTimelineEffectable Interface"), - pointer_default(unique) -] -interface IAMTimelineEffectable : IUnknown -{ - [helpstring("method EffectInsBefore")] - HRESULT EffectInsBefore(IAMTimelineObj * pFX, long priority); - [helpstring("method EffectSwapPriorities")] - HRESULT EffectSwapPriorities(long PriorityA, long PriorityB); - [helpstring("method EffectGetCount")] - HRESULT EffectGetCount(long * pCount); - [helpstring("method GetEffect")] - HRESULT GetEffect([out] IAMTimelineObj ** ppFx, long Which); -}; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Any effect on the timeline will support at least this interface. - // NOTE: The Start/Stop times on this object are RELATIVE to their - // parent's, as are all start/stop times. - // explained methods: - // EffectGetPriority - finds out this effect's priority related to the others. - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(BCE0C264-622D-11d2-8CAD-00A024580902), - odl, - helpstring("IAMTimelineEffect Interface"), - pointer_default(unique) -] -interface IAMTimelineEffect : IUnknown -{ - [helpstring("method EffectGetPriority")] - HRESULT EffectGetPriority(long * pVal); -}; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Any object on the timeline that can have a transition put on it - // implements this interface - // explained methods: - // TransAdd - add a transition on this object. Multiple trans's on - // the same object cannot overlap in time. Transitions' times - // must lie within the bounds of their parent. - // TransGetCount - get how many transitions are applied to this - // object. - // GetNextTrans - given a time, get the next transition that happens - // on this object after that time. On exit, the input time is - // set to the start time of the transition. - // GetTransAtTime - find a transition forwards or backwards from - // a given spot. See DEXTERF_TRACK_SEARCH_FLAGS enum. - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(378FA386-622E-11d2-8CAD-00A024580902), - odl, - helpstring("IAMTimelineTransable Interface"), - pointer_default(unique) -] -interface IAMTimelineTransable : IUnknown -{ - [helpstring("method TransAdd")] - HRESULT TransAdd(IAMTimelineObj * pTrans); - [helpstring("method TransGetCount")] - HRESULT TransGetCount(long * pCount); - [helpstring("method GetNextTrans")] - HRESULT GetNextTrans([out] IAMTimelineObj ** ppTrans, REFERENCE_TIME * pInOut); - [helpstring("method GetNextTrans2")] - HRESULT GetNextTrans2([out] IAMTimelineObj ** ppTrans, REFTIME * pInOut); - [helpstring("method GetTransAtTime")] - HRESULT GetTransAtTime( - [out] IAMTimelineObj ** ppObj, - REFERENCE_TIME Time, - long SearchDirection ); - [helpstring("method GetTransAtTime2")] - HRESULT GetTransAtTime2([out] IAMTimelineObj ** ppObj, REFTIME Time, long SearchDirection ); -}; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Any object on the timeline that can be split into two will - // implement this interface. Namely, source, effects, and transitions - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(A0F840A0-D590-11d2-8D55-00A0C9441E20), - odl, - helpstring("IAMTimelineSplittable Interface"), - pointer_default(unique) -] -interface IAMTimelineSplittable : IUnknown -{ - HRESULT SplitAt(REFERENCE_TIME Time); - HRESULT SplitAt2(REFTIME Time); -}; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Any trans on the timeline will support at least this interface. - // NOTE: The Start/Stop times on this object are RELATIVE to their - // parent's, as are all start/stop times. - // explained methods: - // GetCutPoint - get where this transition should cut from A to B - // if the transition were not applied. - // GetA2B - get if this transition is to go from A->B or B->A. - // GetBackwards - get if this transition should run backwards. - // GetCutsOnly - force no transition, force doing a cut - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(BCE0C265-622D-11d2-8CAD-00A024580902), - odl, - helpstring("IAMTimelineTrans Interface"), - pointer_default(unique) -] -interface IAMTimelineTrans : IUnknown -{ - [helpstring("method GetCutPoint")] - HRESULT GetCutPoint(REFERENCE_TIME * pTLTime); - [helpstring("method GetCutPoint2")] - HRESULT GetCutPoint2(REFTIME * pTLTime); - [helpstring("method SetCutPoint")] - HRESULT SetCutPoint(REFERENCE_TIME TLTime); - [helpstring("method SetCutPoint2")] - HRESULT SetCutPoint2(REFTIME TLTime); - [helpstring("method GetSwapInputs")] - HRESULT GetSwapInputs( BOOL * pVal ); - [helpstring("method SetSwapInputs")] - HRESULT SetSwapInputs( BOOL pVal ); - [helpstring("method GetCutsOnly")] - HRESULT GetCutsOnly( BOOL * pVal ); - [helpstring("method SetCutsOnly")] - HRESULT SetCutsOnly( BOOL pVal ); -}; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Sources represent any source media object on the timeline. - // They extend an IAMTimelineObj to include media start and stop - // times, a media name (which could represent darned near anything), - // and a StreamNumber, which defines which stream out of a potential - // many this stream represents from a source clip. - // explained methods: - // ModifyStopTime - like calling SetStartStop, but this method just - // adjusts the tail end of the clip. - // FixMediaTimes - called by the render engine to round times to - // this source clip's parent group's FPS. - // SpliceWithNext - if the next clip after this is the same source - // and this's stop time matches next's start time, the two - // will be joined. - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(78530B79-61F9-11D2-8CAD-00A024580902), - odl, - helpstring("IAMTimelineSrc Interface"), - pointer_default(unique) -] -interface IAMTimelineSrc : IUnknown -{ - [helpstring("method GetMediaTimes")] - HRESULT GetMediaTimes(REFERENCE_TIME * pStart, REFERENCE_TIME * pStop); - [helpstring("method GetMediaTimes2")] - HRESULT GetMediaTimes2(REFTIME * pStart, REFTIME * pStop); - [helpstring("method ModifyStopTime")] - HRESULT ModifyStopTime(REFERENCE_TIME Stop); - [helpstring("method ModifyStopTime2")] - HRESULT ModifyStopTime2(REFTIME Stop); - [helpstring("method FixMediaTimes")] - HRESULT FixMediaTimes(REFERENCE_TIME * pStart, REFERENCE_TIME * pStop); - [helpstring("method FixMediaTimes2")] - HRESULT FixMediaTimes2(REFTIME * pStart, REFTIME * pStop); - [helpstring("method SetMediaTimes")] - HRESULT SetMediaTimes(REFERENCE_TIME Start, REFERENCE_TIME Stop); - [helpstring("method SetMediaTimes2")] - HRESULT SetMediaTimes2(REFTIME Start, REFTIME Stop); - [helpstring("method SetMediaLength")] - HRESULT SetMediaLength(REFERENCE_TIME Length); - [helpstring("method SetMediaLength2")] - HRESULT SetMediaLength2(REFTIME Length); - [helpstring("method GetMediaLength")] - HRESULT GetMediaLength(REFERENCE_TIME * pLength); - [helpstring("method GetMediaLength2")] - HRESULT GetMediaLength2(REFTIME * pLength); - [helpstring("method GetMediaName")] - HRESULT GetMediaName([out,retval] BSTR * pVal); - [helpstring("method SetMediaName")] - HRESULT SetMediaName(BSTR newVal); - [helpstring("method SpliceWithNext")] - HRESULT SpliceWithNext(IAMTimelineObj * pNext); - [helpstring("method GetStreamNumber")] - HRESULT GetStreamNumber(long * pVal); - [helpstring("method SetStreamNumber")] - HRESULT SetStreamNumber(long Val); - HRESULT IsNormalRate( BOOL * pVal ); - - // If a source can't figure out its frames per second, this number - // will be used (eg: Dib sequences). AVI, MPEG, etc. will not need this - // Use 0 fps to prevent a filename like "ski4.jpg" from using a dib seq - [helpstring("method GetDefaultFPS")] - HRESULT GetDefaultFPS(double * pFPS); - [helpstring("method SetDefaultFPS")] - HRESULT SetDefaultFPS(double FPS); - - // !!! This is video specific.. new interface? - // what kind of stretching? Stretch, crop, or preserve aspect ratio? - [helpstring("method GetStretchMode")] - HRESULT GetStretchMode(int * pnStretchMode); - [helpstring("method SetStretchMode")] - HRESULT SetStretchMode(int nStretchMode); -}; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Tracks are things that can contain media in them. You can add - // and remove sources, effects, and transitions from them. Sources - // are added according to the current insert mode of the timeline. - // If in OVERLAY mode, moving or adding a source to a time that's - // already occupied by another source will wipe out any overlapping - // portion of the underlying source. In InsertMode, everything at - // the insert point is moved down in time to make room for the - // new source. - // explained methods: - // SrcAdd - add the source to this track. The source's start/stop - // times must be set up first. - // GetNextSrc - pass a time in at which you wish to find a source - // and it will return the first source which occurs after the - // given time. - // MoveEverythingBy - bump a bunch of objects a certain direction - // on the track by a given time. - // GetSourcesCount - how many sources are on this track? - // AreYouBlank - do you contain anything at all? - // GetSrcAtTime - find a source at a given time. SearchDirection - // is which way to search. -1 = backwards, 1 = forwards - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(EAE58538-622E-11d2-8CAD-00A024580902), - odl, - helpstring("IAMTimelineTrack Interface"), - pointer_default(unique) -] -interface IAMTimelineTrack : IUnknown -{ - [helpstring("method SrcAdd")] - HRESULT SrcAdd(IAMTimelineObj * pSource); - [helpstring("method GetNextSrc")] - HRESULT GetNextSrc([out] IAMTimelineObj ** ppSrc, REFERENCE_TIME * pInOut); - [helpstring("method GetNextSrc2")] - HRESULT GetNextSrc2([out] IAMTimelineObj ** ppSrc, REFTIME * pInOut); - [helpstring("method MoveEverythingBy")] - HRESULT MoveEverythingBy( REFERENCE_TIME Start, REFERENCE_TIME MoveBy ); - [helpstring("method MoveEverythingBy2")] - HRESULT MoveEverythingBy2( REFTIME Start, REFTIME MoveBy ); - [helpstring("method GetSourcesCount")] - HRESULT GetSourcesCount( long * pVal ); - [helpstring("method AreYouBlank")] - HRESULT AreYouBlank( long * pVal ); - [helpstring("method GetSrcAtTime")] - HRESULT GetSrcAtTime( - [out] IAMTimelineObj ** ppSrc, - REFERENCE_TIME Time, - long SearchDirection ); - [helpstring("method GetSrcAtTime2")] - HRESULT GetSrcAtTime2([out] IAMTimelineObj ** ppSrc, REFTIME Time, long SearchDirection ); - HRESULT InsertSpace( REFERENCE_TIME rtStart, REFERENCE_TIME rtEnd ); - HRESULT InsertSpace2( REFTIME rtStart, REFTIME rtEnd ); - HRESULT ZeroBetween( REFERENCE_TIME rtStart, REFERENCE_TIME rtEnd ); - HRESULT ZeroBetween2( REFTIME rtStart, REFTIME rtEnd ); - HRESULT GetNextSrcEx(IAMTimelineObj * pLast, [out] IAMTimelineObj **ppNext); -}; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // This virtual track interface is shared by both the compositions - // and tracks (and groups). - // explained methods: - // TrackGetPriority - used by rendering objects which need to know this. - // SetTrackDirty - !!! not sure if this is useful. - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(A8ED5F80-C2C7-11d2-8D39-00A0C9441E20), - odl, - helpstring("IAMTimelineVirtualTrack Interface"), - pointer_default(unique) -] -interface IAMTimelineVirtualTrack : IUnknown -{ - [helpstring("method TrackGetPriority")] - HRESULT TrackGetPriority(long * pPriority); - [helpstring("method SetTrackDirty")] - HRESULT SetTrackDirty( ); -}; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Compositions are like tracks in the sense that they also - // implement IAMVirtualTrack and you can put transitions and effects - // on them, but they really are the SUM of those tracks that they - // contain. They are "embedded" compositions. They should only contain - // media of one particular type (like all video or all audio), but - // this is not enforced. You can add a composition to another - // composition with VTrackInsBefore, just like you can add a track. - // The very top composition to which all other comps and tracks belong - // is a Group, which supports I-AMTimelineGroup as well as I-AMTimelineComp. - // explained methods: - // VTrackInsBefore - does NOT mean VideoTrack. Means Virtual Track. - // Adds a virtual track to a composition at a given priority. - // use -1 to mean "at the end" - // VTrackSwapPriorities - switch two vtracks around. - // VTrackGetCount - get how many vtracks this comp contains. - // GetVTrack - you get the idea - // GetCountOfType - Get the total number of these objects this comp - // and all it's vtracks (recursively) contains. !!! this may be dead. - // GetRecursiveLayerOfType - given a number, returns a given track. This - // is done recursively. You need to pass in a pointer to the number, - // and it will be modified upon exit to an unknown value. DO NOT - // CALL THE VERSION WITH THE POINTER! - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(EAE58536-622E-11d2-8CAD-00A024580902), - odl, - helpstring("IAMTimelineComp Interface"), - pointer_default(unique) -] -interface IAMTimelineComp : IUnknown -{ - [helpstring("method VTrackInsBefore")] - HRESULT VTrackInsBefore(IAMTimelineObj * pVirtualTrack, long Priority); - [helpstring("method VTrackSwapPriorities")] - HRESULT VTrackSwapPriorities(long VirtualTrackA, long VirtualTrackB); - [helpstring("method VTrackGetCount")] - HRESULT VTrackGetCount(long * pVal); - [helpstring("method GetVTrack")] - HRESULT GetVTrack([out] IAMTimelineObj ** ppVirtualTrack, long Which); - [helpstring("method GetCountOfType")] - HRESULT GetCountOfType(long * pVal, long * pValWithComps, TIMELINE_MAJOR_TYPE MajorType ); - [helpstring("method GetRecursiveLayerOfType")] - HRESULT GetRecursiveLayerOfType( - [out] IAMTimelineObj ** ppVirtualTrack, - long WhichLayer, - TIMELINE_MAJOR_TYPE Type); - [helpstring("method GetRecursiveLayerOfTypeI (do not call)")] - HRESULT GetRecursiveLayerOfTypeI( - [out] IAMTimelineObj ** ppVirtualTrack, - [in,out] long * pWhichLayer, - TIMELINE_MAJOR_TYPE Type); - HRESULT GetNextVTrack(IAMTimelineObj *pVirtualTrack, [out] IAMTimelineObj **ppNextVirtualTrack); -}; - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Groups represent the topmost composition in a timeline. Every - // group should contain media of only one major type (like all video). - // The timeline can contain multiple groups, see it's interface for - // this. Each group has a particular "media type" that you can get/set - // which help identify it. Each group has an associated FPS which - // is used by the render engine in setting up the big switch. All - // cuts on the timeline will happen rounded to this nearest FPS for - // this particular group. Each group has a priority which enables - // writing out multiple-stream files with 1 or more streams of the - // same type. (Like a 2 video stream AVI file). - // explained methods: - // SetTimeline - this is called internally when the group is added. - // Do not call this. - // GetTimeline - get the timeline this group belongs to. - // GetPriority - get this group's priority - // Get/SetOutputFPS - explained above - // SetMediaTypeForVB - method for VB. Pass in 0 for video, 1 for audio - // SetRecompFormatFromSource - set the recompress format based on the - // source that's loaded or set in the IAMTimelineSrc - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(9EED4F00-B8A6-11d2-8023-00C0DF10D434), - odl, - helpstring("IAMTimelineGroup Interface"), - pointer_default(unique) -] -interface IAMTimelineGroup : IUnknown -{ - [helpstring("method SetTimeline")] - HRESULT SetTimeline( IAMTimeline * pTimeline ); - [helpstring("method GetTimeline")] - HRESULT GetTimeline( [out] IAMTimeline ** ppTimeline ); - [helpstring("method GetPriority")] - HRESULT GetPriority( long * pPriority ); - [helpstring("method GetMediaType")] - HRESULT GetMediaType([out] AM_MEDIA_TYPE *); - [helpstring("method SetMediaType")] - HRESULT SetMediaType([in] AM_MEDIA_TYPE *); - [helpstring("method SetOutputFPS")] - HRESULT SetOutputFPS(double FPS); - [helpstring("method GetOutputFPS")] - HRESULT GetOutputFPS(double * pFPS); - [helpstring("method SetGroupName")] - HRESULT SetGroupName( BSTR pGroupName ); - [helpstring("method GetGroupName")] - HRESULT GetGroupName( [out,retval] BSTR * pGroupName ); - // in preview mode, skip frames. In authoring mode, don't - [helpstring("method SetPreviewMode")] - HRESULT SetPreviewMode( BOOL fPreview ); - [helpstring("method GetPreviewMode")] - HRESULT GetPreviewMode( BOOL *pfPreview ); - [helpstring("method SetMediaTypeForVB")] - HRESULT SetMediaTypeForVB([in] long Val ); - // how many frames ahead switch can run - [helpstring("method GetOutputBuffering")] - HRESULT GetOutputBuffering([out] int *pnBuffer ); - [helpstring("method SetOutputBuffering")] - HRESULT SetOutputBuffering([in] int nBuffer ); - - HRESULT SetSmartRecompressFormat( long * pFormat ); - HRESULT GetSmartRecompressFormat( long ** ppFormat ); - HRESULT IsSmartRecompressFormatSet( BOOL * pVal ); - HRESULT IsRecompressFormatDirty( BOOL * pVal ); - HRESULT ClearRecompressFormatDirty( ); - HRESULT SetRecompFormatFromSource( IAMTimelineSrc * pSource ); -}; - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // The main timeline. This is the base object you use to set - // properties of the timeline as a whole, and to create blank - // objects for use within the timeline. You cannot create the - // objects using COM methods, you must go through the timeline to - // create this. That's because certain information is set before - // handing the object back to you. Every object created by the - // timeline will support at LEAST IAMTimelineObj. For any timeline, - // it can have one or more "groups" that it knows about. Each group - // has the capability to hold a complete sub-tree containing media - // that is all of one type. This logical seperation is used for the - // rendering engine, but is not strictly enforced. - // explained methods: - // CreateEmptyNode - pass in a mid type and it will pass back - // an object of the type you requested. - // AddGroup - add a created group to the tree - // RemGroupFromList - make sure timeline no longer knows about this group. - // does NOT do anything to the group itself. Normally the user - // does not want to call this, it's called from the Group's Remove( ) method. - // GetGroup - get a certain group - // GetGroupCount - get how many groups - // ClearAllGroups - clear everything - // GetInsertMode - ask what the insert mode is, overlay or insert - // SetInsertMode - set whether to insert or overlay - // EnableTransitions - turn transitions on or off as a whole - // EnableEffects - same deal. - // SetIntererstRange - discard sub-objects outside of a given - // time range, to save memory/resources - // Get/SetDefaultFPS - set the 'default' FPS for this timeline, - // the RenderEngine reads this information for setting itself up - // by default. - // GetCountOfType - ask for how many of a given thing are in a given - // group. !!! this may be a useless function. - // !!! not implemented - // IsDirty - asks if anything in the timeline needs to be redrawn - // GetDirtyRange - same deal - // ValidateSourceNames - make sure the filenames in the sources - // really exist. Use the same enum flags as the render engine - // uses for SetSourceNameValidation. Source's filenames will be - // changed to those of the found ones in the timeline. - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[ - object, - uuid(78530B74-61F9-11D2-8CAD-00A024580902), - odl, - helpstring("IAMTimeline Interface"), - pointer_default(unique) -] -interface IAMTimeline : IUnknown -{ - [helpstring("method CreateEmptyNode")] - HRESULT CreateEmptyNode([out] IAMTimelineObj ** ppObj, TIMELINE_MAJOR_TYPE Type ); - HRESULT AddGroup( IAMTimelineObj * pGroup ); - HRESULT RemGroupFromList( IAMTimelineObj * pGroup ); - HRESULT GetGroup( [out] IAMTimelineObj ** ppGroup, long WhichGroup ); - HRESULT GetGroupCount( long * pCount ); - HRESULT ClearAllGroups( ); - HRESULT GetInsertMode( long * pMode ); - [helpstring("method SetInsertMode")] - HRESULT SetInsertMode(long Mode); - [helpstring("method EnableTransitions")] - HRESULT EnableTransitions(BOOL fEnabled); - [helpstring("method TransitionsEnabled")] - HRESULT TransitionsEnabled(BOOL * pfEnabled); - [helpstring("method EnableEffects")] - HRESULT EnableEffects(BOOL fEnabled); - [helpstring("method EffectsEnabled")] - HRESULT EffectsEnabled(BOOL * pfEnabled); - [helpstring("method SetInterestRange")] - HRESULT SetInterestRange(REFERENCE_TIME Start, REFERENCE_TIME Stop); - [helpstring("method GetDuration")] - HRESULT GetDuration(REFERENCE_TIME * pDuration); - [helpstring("method GetDuration2")] - HRESULT GetDuration2(double * pDuration); - [helpstring("method SetDefaultFPS")] - HRESULT SetDefaultFPS(double FPS); - [helpstring("method GetDefaultFPS")] - HRESULT GetDefaultFPS(double * pFPS); - [helpstring("method IsDirty")] - HRESULT IsDirty(BOOL * pDirty); - [helpstring("method GetDirtyRange")] - HRESULT GetDirtyRange(REFERENCE_TIME * pStart, REFERENCE_TIME * pStop); - [helpstring("method GetCountOfType")] - HRESULT GetCountOfType(long Group, long * pVal, long * pValWithComps, TIMELINE_MAJOR_TYPE MajorType ); - HRESULT ValidateSourceNames( long ValidateFlags, IMediaLocator * pOverride, LONG_PTR NotifyEventHandle ); - - HRESULT SetDefaultTransition( GUID * pGuid ); - HRESULT GetDefaultTransition( GUID * pGuid ); - HRESULT SetDefaultEffect( GUID * pGuid ); - HRESULT GetDefaultEffect( GUID * pGuid ); - HRESULT SetDefaultTransitionB( BSTR pGuid ); - HRESULT GetDefaultTransitionB( [out,retval] BSTR * pGuid ); - HRESULT SetDefaultEffectB( BSTR pGuid ); - HRESULT GetDefaultEffectB( [out,retval] BSTR * pGuid ); -}; - -//////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////// -// XML STUFF --- XML STUFF --- XML STUFF --- XML STUFF --- XML -//////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////// - -//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -// Xml2Dex - converts back and forth between XML and a dexter project -//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - -[ - object, - uuid(18C628ED-962A-11D2-8D08-00A0C9441E20), - odl, - helpstring("IXml2Dex Interface"), - pointer_default(unique) -] -interface IXml2Dex : IDispatch -{ - [id(1), helpstring("method CreateGraphFromFile")] - HRESULT CreateGraphFromFile([out] IUnknown ** ppGraph, IUnknown * pTimeline, BSTR Filename); - [id(2), helpstring("method WriteGrfFile")] - HRESULT WriteGrfFile(IUnknown * pGraph, BSTR FileName); - [id(3), helpstring("method WriteXMLFile")] - HRESULT WriteXMLFile(IUnknown * pTimeline, BSTR FileName); - [id(5), helpstring("method ReadXMLFile")] - HRESULT ReadXMLFile(IUnknown *pTimeline, BSTR XMLName); - [id(6), helpstring("method Delete")] - HRESULT Delete(IUnknown *pTimeline, double dStart, double dEnd); - [id(7), helpstring("method WriteXMLPart")] - HRESULT WriteXMLPart(IUnknown * pTimeline, double dStart, double dEnd, BSTR FileName); - [id(8), helpstring("method PasteXMLFile")] - HRESULT PasteXMLFile(IUnknown * pTimeline, double dStart, BSTR FileName); - [id(9), helpstring("method CopyXML")] - HRESULT CopyXML(IUnknown * pTimeline, double dStart, double dEnd); - [id(10), helpstring("method PasteXML")] - HRESULT PasteXML(IUnknown * pTimeline, double dStart); - [id(11), helpstring("method Reset")] - HRESULT Reset( ); - [id(12), helpstring("method ReadXML")] - HRESULT ReadXML(IUnknown *pTimeline, IUnknown *pXML); - [id(13), helpstring("method WriteXML")] - HRESULT WriteXML(IUnknown *pTimeline, BSTR *pbstrXML); -}; - -//////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////// -// USEFUL HELPER INTERFACES -//////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////// - -//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -// IAMErrorLog - an interface that receives error information from -// a timeline or a render engine. -//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - -[ - object, - uuid(E43E73A2-0EFA-11d3-9601-00A0C9441E20), - odl, - helpstring("IAMErrorLog Interface"), - pointer_default(unique) -] -interface IAMErrorLog : IUnknown -{ - [helpstring("method LogError")] HRESULT LogError(long Severity, BSTR pErrorString, long ErrorCode, long hresult, [in] VARIANT * pExtraInfo ); -}; - -[ - object, - uuid(963566DA-BE21-4eaf-88E9-35704F8F52A1), - odl, - helpstring("IAMSetErrorLog Interface"), - pointer_default(unique) -] -interface IAMSetErrorLog : IUnknown -{ - [propget, helpstring("property ErrorLog")] HRESULT ErrorLog([out, retval] IAMErrorLog * *pVal); - [propput, helpstring("property ErrorLog")] HRESULT ErrorLog([in] IAMErrorLog * newVal); -}; - -[ - object, - uuid(0579154A-2B53-4994-B0D0-E773148EFF85), - local, - helpstring("ISampleGrabberCB Interface"), - pointer_default(unique) -] -interface ISampleGrabberCB : IUnknown -{ - HRESULT SampleCB( double SampleTime, IMediaSample * pSample ); - HRESULT BufferCB( double SampleTime, BYTE * pBuffer, long BufferLen ); -} - -[ - object, - uuid(6B652FFF-11FE-4fce-92AD-0266B5D7C78F), - local, - helpstring("ISampleGrabber Interface"), - pointer_default(unique) -] -interface ISampleGrabber: IUnknown -{ - // set this to have the filter immediate stop after - // garnishing a sample - // - HRESULT SetOneShot( BOOL OneShot ); - - // set what media type we connect to. It can be partially - // specified by setting only the major type, OR the major and - // subtype, OR major, subtype, and the formattype. - // - HRESULT SetMediaType( const AM_MEDIA_TYPE * pType ); - - // after something's connected to this filter, find out - // what it is - // - HRESULT GetConnectedMediaType( AM_MEDIA_TYPE * pType ); - - // call this to buffer incoming samples, so the next two methods will work - // If this is not called, the next two methods will return - // E_INVALIDARG - // - HRESULT SetBufferSamples( BOOL BufferThem ); - - // pass in NULL for pBuffer to get out the buffer size you need to - // allocate. This will NOT return a pointer to a compressed dib - // any longer! It will return the IMediaSample's GetPointer buffer. - // - HRESULT GetCurrentBuffer( [in,out] long * pBufferSize, [out] long * pBuffer ); - - // return the currently buffered sample - // - HRESULT GetCurrentSample( [out,retval] IMediaSample ** ppSample ); - - // if this callback is set, then it will be called for - // every sample passing through the filter. Do not take a long time - // in the callback for smooth playback (obviously!) - // - HRESULT SetCallback( ISampleGrabberCB * pCallback, long WhichMethodToCallback ); -}; - -//////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////// -// THE LIBRARY ITSELF -//////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////// - -[ - uuid(78530B68-61F9-11D2-8CAD-00A024580902), - version(1.0), - helpstring("Dexter 1.0 Type Library") -] -library DexterLib -{ - importlib("stdole2.tlb"); - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // resize the input video to an output size, for uniformity within DES. - // DES will set the output media type and probably also put_Size. By setting - // the output media type, DES is stating the resizer must produce only that - // media type on the output pin, unless it is succeeded by a put_Size call. - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ - object, - uuid(4ada63a0-72d5-11d2-952a-0060081840bc), - odl, - helpstring("IResize Interface"), - pointer_default(unique) - ] - interface IResize : IUnknown - { - HRESULT get_Size([out] int *piHeight, [out] int *piWidth, [out] long *pFlag); - HRESULT get_InputSize([out] int *piHeight, [out] int *piWidth); - HRESULT put_Size([in] int Height, [in] int Width, [in] long Flag); - HRESULT get_MediaType([out] AM_MEDIA_TYPE *pmt); - HRESULT put_MediaType([in] const AM_MEDIA_TYPE *pmt); - }; - - [ - uuid(78530B75-61F9-11D2-8CAD-00A024580902), - helpstring("AMTimeline Class") - ] - coclass AMTimeline - { - [default] interface IAMTimeline; - interface IPersistStream; - interface IAMSetErrorLog; - }; - - [ - uuid(78530B78-61F9-11D2-8CAD-00A024580902), - helpstring("IAMTimelineObj Class") - ] - coclass AMTimelineObj - { - [default] interface IAMTimelineObj; - }; - - [ - uuid(78530B7A-61F9-11D2-8CAD-00A024580902), - helpstring("IAMTimelineSrc Class") - ] - coclass AMTimelineSrc - { - [default] interface IAMTimelineSrc; - interface IAMTimelineObj; - interface IAMTimelineEffectable; - interface IAMTimelineSplittable; - }; - - [ - uuid(8F6C3C50-897B-11d2-8CFB-00A0C9441E20), - ] - coclass AMTimelineTrack - { - [default] interface IAMTimelineTrack; - interface IAMTimelineObj; - interface IAMTimelineEffectable; - interface IAMTimelineTransable; - interface IAMTimelineVirtualTrack; - interface IAMTimelineSplittable; - }; - - [ - uuid(74D2EC80-6233-11d2-8CAD-00A024580902), - ] - coclass AMTimelineComp - { - [default] interface IAMTimelineComp; - interface IAMTimelineObj; - interface IAMTimelineEffectable; - interface IAMTimelineTransable; - interface IAMTimelineVirtualTrack; - }; - - [ - uuid(F6D371E1-B8A6-11d2-8023-00C0DF10D434), - ] - coclass AMTimelineGroup - { - [default] interface IAMTimelineGroup; - interface IAMTimelineComp; - interface IAMTimelineObj; - }; - - [ - uuid(74D2EC81-6233-11d2-8CAD-00A024580902), - ] - coclass AMTimelineTrans - { - [default] interface IAMTimelineTrans; - interface IAMTimelineObj; - interface IAMTimelineSplittable; - }; - - [ - uuid(74D2EC82-6233-11d2-8CAD-00A024580902), - ] - coclass AMTimelineEffect - { - [default] interface IAMTimelineEffect; - interface IAMTimelineObj; - interface IAMTimelineSplittable; - interface IPropertyBag; - }; - - [ - uuid(64D8A8E0-80A2-11d2-8CF3-00A0C9441E20), - ] - coclass RenderEngine - { - [default] interface IRenderEngine; - interface IRenderEngine2; - interface IAMSetErrorLog; - }; - - [ - uuid(498B0949-BBE9-4072-98BE-6CCAEB79DC6F), - ] - coclass SmartRenderEngine - { - [default] interface IRenderEngine; - interface ISmartRenderEngine; - interface IAMSetErrorLog; - }; - - [ - uuid(036A9790-C153-11d2-9EF7-006008039E37), - ] - coclass AudMixer - { - [default] interface IBaseFilter; - }; - - [ - uuid(18C628EE-962A-11D2-8D08-00A0C9441E20), - helpstring("Xml2Dex Class") - ] - coclass Xml2Dex - { - [default] interface IXml2Dex; - }; - - [ - uuid(CC1101F2-79DC-11D2-8CE6-00A0C9441E20), - helpstring("MediaLocator Class") - ] - coclass MediaLocator - { - [default] interface IMediaLocator; - }; - - [ - uuid(ADF95821-DED7-11d2-ACBE-0080C75E246E), - helpstring("Varying Property Holder") - ] - coclass PropertySetter - { - [default] interface IPropertySetter; - interface IAMSetErrorLog; - }; - - [ - uuid(65BD0711-24D2-4ff7-9324-ED2E5D3ABAFA), - helpstring("MediaDet Class") - ] - coclass MediaDet - { - [default] interface IMediaDet; - }; - - [ - uuid(C1F400A0-3F08-11d3-9F0B-006008039E37), - helpstring("MsGrab Class") - ] - coclass SampleGrabber - { - [default] interface ISampleGrabber; - }; - - // useful for movie maker and other people - [ - uuid(C1F400A4-3F08-11d3-9F0B-006008039E37), - helpstring("NullRenderer Class") - ] - coclass NullRenderer - { - [default] interface IBaseFilter; - }; - - [ - uuid(BB44391D-6ABD-422f-9E2E-385C9DFF51FC), - helpstring("DxtCompositor Class") - ] - coclass DxtCompositor - { - [default] interface IDxtCompositor; - }; - - [ - uuid(506D89AE-909A-44f7-9444-ABD575896E35), - helpstring("DxtAlphaSetter Class") - ] - coclass DxtAlphaSetter - { - [default] interface IDxtAlphaSetter; - }; - - [ - uuid(DE75D012-7A65-11D2-8CEA-00A0C9441E20), - helpstring("SMPTE wipe DXT") - ] - coclass DxtJpeg - { - [default] interface IDxtJpeg; - }; - - [ - uuid(0cfdd070-581a-11d2-9ee6-006008039e37), - ] - coclass ColorSource - { - [default] interface IBaseFilter; - }; - - [ - uuid(C5B19592-145E-11d3-9F04-006008039E37), - helpstring("DxtKey Class") - ] - coclass DxtKey - { - [default] interface IDxtKey; - }; -}; - -// these are some error codes that we can/will return -enum -{ - E_NOTINTREE = 0x80040400, - E_RENDER_ENGINE_IS_BROKEN = 0x80040401, - E_MUST_INIT_RENDERER = 0x80040402, - E_NOTDETERMINED = 0x80040403, - E_NO_TIMELINE = 0x80040404, - S_WARN_OUTPUTRESET = 40404 -}; - -// These codes are given to the app in IAMErrorLog to help identify what went wrong - -// Filename doesn't exist, or DShow doesn't recognize the filetype -// EXTRA - filename -cpp_quote("#define DEX_IDS_BAD_SOURCE_NAME 1400") - -// Filename doesn't exist or contains unknown data -// EXTRA - filename (maybe no codec?) -cpp_quote("#define DEX_IDS_BAD_SOURCE_NAME2 1401") - -// filename was required, but wasn't given -cpp_quote("#define DEX_IDS_MISSING_SOURCE_NAME 1402") - -// cannot parse data provided by this source -// !!! what source? -cpp_quote("#define DEX_IDS_UNKNOWN_SOURCE 1403") - -// unexpected error - some DShow component not installed correctly -cpp_quote("#define DEX_IDS_INSTALL_PROBLEM 1404") - -// Source filter does not accept filenames -// !!! What source? -cpp_quote("#define DEX_IDS_NO_SOURCE_NAMES 1405") - -// The group's mediatype is not supported -// EXTRA - gives you an integer group number -cpp_quote("#define DEX_IDS_BAD_MEDIATYPE 1406") - -// Invalid stream number for a source -// EXTRA - gives the stream number !!! should identify which source! -cpp_quote("#define DEX_IDS_STREAM_NUMBER 1407") - -// You ran out of memory -cpp_quote("#define DEX_IDS_OUTOFMEMORY 1408") - -// One bitmap in a sequence was not the same type as the others -// EXTRA - gives the bitmap name -cpp_quote("#define DEX_IDS_DIBSEQ_NOTALLSAME 1409") - -// Clip's mediatimes are invalid, or DibSeq too short, or a previous error caused this -// !!! Needs to give the clip name -cpp_quote("#define DEX_IDS_CLIPTOOSHORT 1410") - -// Clsid of FX/Transition is not a DirectX Transform -// EXTRA - gives the CLSID -cpp_quote("#define DEX_IDS_INVALID_DXT 1411") - -// Default FX/Transition Clsid is not a DirectX Transform" -// EXTRA - gives the CLSID -cpp_quote("#define DEX_IDS_INVALID_DEFAULT_DXT 1412") - -// Your version of DX doesn't support 3D transforms" -// EXTRA - gives the CLSID of the 3D transform you tried to use -cpp_quote("#define DEX_IDS_NO_3D 1413") - -// This DirectX Transform is not the right kind, or is broken -// EXTRA - gives the CLSID of the broken transform -cpp_quote("#define DEX_IDS_BROKEN_DXT 1414") - -// No such property exists on an object -// EXTRA - gives the name of the property (if given as a string) -cpp_quote("#define DEX_IDS_NO_SUCH_PROPERTY 1415") - -// Illegal value for a property -// EXTRA - gives the VARIANT value that was illegal -cpp_quote("#define DEX_IDS_ILLEGAL_PROPERTY_VAL 1416") - -// Syntax error in XML file at line: -// EXTRA - gives I4 line number, if available -cpp_quote("#define DEX_IDS_INVALID_XML 1417") - -// Can't find filter specified in XML by Category and Instance -// EXTRA - gives friendly name (instance) -cpp_quote("#define DEX_IDS_CANT_FIND_FILTER 1418") - -// Disk error writing XML file -cpp_quote("#define DEX_IDS_DISK_WRITE_ERROR 1419") - -// Clsid not a valid DShow audio effect filter -// EXTRA - gives the CLSID -cpp_quote("#define DEX_IDS_INVALID_AUDIO_FX 1420") - -// Cannot find compressor for smart recompression type -cpp_quote("#define DEX_IDS_CANT_FIND_COMPRESSOR 1421") - - - -// !!! Here go problems hooking up sources or finding codecs - - -// THE FOLLOWING SHOULD NEVER HAPPEN - please call me if they do - -// Unexpected error in parsing the timeline -cpp_quote("#define DEX_IDS_TIMELINE_PARSE 1426") -// Unexpected error building the filtergraph -cpp_quote("#define DEX_IDS_GRAPH_ERROR 1427") -// Unexpected error with the internal grid -cpp_quote("#define DEX_IDS_GRID_ERROR 1428") -// Unexpected error getting an interface -cpp_quote("#define DEX_IDS_INTERFACE_ERROR 1429") - -// these are the enumeration categories for effects -// -cpp_quote("EXTERN_GUID(CLSID_VideoEffects1Category, 0xcc7bfb42, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59);") -cpp_quote("EXTERN_GUID(CLSID_VideoEffects2Category, 0xcc7bfb43, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59);") -cpp_quote("EXTERN_GUID(CLSID_AudioEffects1Category, 0xcc7bfb44, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59);") -cpp_quote("EXTERN_GUID(CLSID_AudioEffects2Category, 0xcc7bfb45, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59);") - diff --git a/sdk/dx8sdk/Include/DShowIDL/regbag.idl b/sdk/dx8sdk/Include/DShowIDL/regbag.idl deleted file mode 100644 index 103aff17..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/regbag.idl +++ /dev/null @@ -1,52 +0,0 @@ -//------------------------------------------------------------------------------ -// File: RegBag.idl -// -// Desc: IDL source for RegBag.dll. -// -// Copyright (c) 1999 - 2000, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -cpp_quote("//+-------------------------------------------------------------------------") -cpp_quote("//") -cpp_quote("// Microsoft Windows") -cpp_quote("// Copyright (C) Microsoft Corporation, 1999-2000.") -cpp_quote("//") -cpp_quote("//--------------------------------------------------------------------------") -cpp_quote("#pragma once") - -#ifndef DO_NO_IMPORTS -import "objidl.idl"; -import "oaidl.idl"; -import "ocidl.idl"; -#endif - -//***************************************************************************** -/////////////////////////////////////////////////////////////////////////////// -// -// Custom Factory interface -// since com doesn't support ctors or initialization parameters on std factory interface -// we have a custom creation interface -// -/////////////////////////////////////////////////////////////////////////////// -//***************************************************************************** -/////////////////////////////////////////////////////////////////////////////////////// -[object, - hidden, restricted, - uuid(8A674B48-1F63-11d3-B64C-00C04F79498E), - helpstring("Create property bag backed by registry"), - pointer_default(unique), - local -] -interface ICreatePropBagOnRegKey : IUnknown { - // NOTE: it is up to the caller to set the correct registry access based on the interface - // and methods the caller intends to use - // IPropertyBag2::GetPropertyInfo and CountProperties require both KEY_QUERY_VALUE and KEY_ENUMERATE_SUBKEYS - // IPropertyBagXXX::Read requires KEY_READ - // IPropertyBagXXX::Write requires KEY_WRITE - // also, you must CoTaskMemFree the name string from GetPropertyInfo - // if you write a value of VT_EMPTY or VT_NULL the property will be removed from the bag and the corresponding - // registry info will be deleted. - HRESULT Create([in] HKEY hkey, [in] LPCOLESTR subkey, [in] DWORD ulOptions, [in] DWORD samDesired, REFIID iid, [out] LPVOID *ppBag); -}; - diff --git a/sdk/dx8sdk/Include/DShowIDL/sbe.idl b/sdk/dx8sdk/Include/DShowIDL/sbe.idl deleted file mode 100644 index 246b148c..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/sbe.idl +++ /dev/null @@ -1,1348 +0,0 @@ - -/*++ - - Copyright (c) 2002 Microsoft Corporation - - Module Name: - - sbe.idl - - Abstract: - - This module the StreamBuffer interface definitions & CLSIDs, public - ---*/ - -import "unknwn.idl" ; -import "wtypes.idl" ; -import "objidl.idl"; -import "strmif.idl" ; - -// ============================================================================ - -// interfaces -interface IStreamBufferSink ; // locking & recording -interface IStreamBufferSink2 ; // ext locking -interface IStreamBufferSink3 ; // specify the minimum -interface IStreamBufferSource ; // associates with IStreamBufferSink -interface IStreamBufferRecordControl ; // recording control -interface IStreamBufferRecordingAttribute ; // StreamBuffer attribute creation -interface IEnumStreamBufferRecordingAttrib ; // StreamBuffer attribute enumeration -interface IStreamBufferConfigure ; // configuration interface -interface IStreamBufferConfigure2 ; // configuration interface; more -interface IStreamBufferMediaSeeking ; // IMediaSeeking but with different GUID -interface IStreamBufferMediaSeeking2 ; // + available filter & frame rate on FF/RW -interface IStreamBufferPolicy ; // StreamBuffer policies -interface IStreamBufferInitialize ; // allows 3rd party app to set HKEY -interface IStreamBufferDataCounters ; // collect data rate from the pins - -[ - object, - uuid(9ce50f2d-6ba7-40fb-a034-50b1a674ec78), - pointer_default(unique) -] -[local] interface IStreamBufferInitialize : IUnknown -{ - /*++ - ------------------------------------------------------------------------ - SetHKEY () - - Implemented on StreamBufferStreamSink and StreamBufferSource filters. - Gives a hosting application the ability to specify HKEY root in - registry. This method must called **early**: after the filter is - instantiated, but before StreamBufferSource is locked (explicitly or - implicitely) if calling the method on StreamBufferSource, or before - a source is set (via IStreamBufferSource or IFileSourceFilter) if - calling the method on StreamBufferStreamSource. If a call is made - after either filter has been initialized internally, the call will - fail with E_UNEXPECTED. The hosting application is responsible for - ensuring that the HKEY passed in is writable & readable per the - logged-on user privileges. The HKEY is duplicated internally, - so the caller can close it after making this call. - --*/ - HRESULT - SetHKEY ( - [in] HKEY hkeyRoot - ) ; - - /*++ - ------------------------------------------------------------------------ - SetSIDs () - - Implemented on StreamBufferStreamSink and StreamBufferSource filters. - Provides a way for the hosting application to specify security-level - sharing between capture and render processes and contexts. By - default security attributes are inherited from the hosting process, - unless the application overrides the defaults and provides them via - this method. - --*/ - HRESULT - SetSIDs ( - [in] DWORD cSIDs, - [in, size_is (cSIDs)] PSID * ppSID - ) ; -} ; - -/*++ - ============================================================================ - ============================================================================ - IStreamBufferSink - - Stream Source interface; - implemented on the StreamBufferSink filter; - Only way to get a recorder object's IUnknown (object will subsequently - be associated with this Sink) ---*/ - -enum { - RECORDING_TYPE_CONTENT = 0, // no post-recording or overlapped - RECORDING_TYPE_REFERENCE, // allows post-recording & overlapped -} ; - -[ - object, - uuid(afd1f242-7efd-45ee-ba4e-407a25c9a77a), - pointer_default(unique) -] -interface IStreamBufferSink : IUnknown -{ - /*++ - ------------------------------------------------------------------------ - LockProfile () - - 1. Locks the profile; - 2. No *new* input pin connections will be accepted; - 3. Existing pins that are, or have ever been, connected can be - reconnected if the media type is exactly the same as the first - successful connection; - 4. Can be called multiple times with the same parameter as the initial - LockProfile() call was made with i.e. more than once with NULL if - initially locked with NULL, or more than once with a string if - initially locked with a string; if the profile is already locked, - and the parameters are the same, returns S_FALSE, else the call - fails (if trying to lock a locked profile with a different - parameter) - 5. Must be called before the filter that implements this interface is - ever run; when it is run, it locks implicitely and this method has - no effect if called with NULL parameters, or fails if called with - non-NULL parameter for the reasons listed above; - 6. Errors with VFW_E_UNSUPPORTED_STREAM if there are no streams in the - profile; - - Parameter Detail - ---------------- - - pszStreamBufferFilename - - Is a NULL-terminated filename string. If the content written by - this sink is to be shared cross-process, this parameter specifies a - filename that will be opened by any reader(s) to read & render the - content sent into the sink. - - Can be NULL (not specified) - - Must be a full-path filename; if no path is specified, the file is - created in a "current" directory - - If the file already exists, the call fails - - Is opened with DELETE_ON_CLOSE flag, so is automatically deleted - when the sink is unlocked, or when the hosting process terminates - --*/ - HRESULT - LockProfile ( - [in] LPCWSTR pszStreamBufferFilename - ) ; - - /*++ - ------------------------------------------------------------------------ - CreateRecorder () - - 1. Returns a *new* recorder object's IUnknown; - 2. Caller can call QueryInterface() on the returned pointer to get - interface pointers to configure & control the recording; - 3. Returned IUnknown pointer is ref'd & must be Release()'d by the - caller - 4. IStreamBufferSink interface must have been locked (explicitely or - implicitely) prior to call - - To create an ordinary recording, specify RECORDING_TYPE_CONTENT for the - dwRecordType parammeter. This will record the content directly into - the specified file. These recording types only accept start and stop - times that occur in the future. - - A recording of type RECORDING_TYPE_REFERENCE generates a small file - that references content saved in temporary storage. Recordings of this - type can have start and stop times that occurs in the past, and can - overlap other same-type recordings. - - Reference recording *content* will be saved in the same subdirectory as - the specified reference file, but with hidden and system attributes. - The naming convention of the files will append a _1.sbe, _2.sbe, etc... - to the filename (minus extension) specified in the call e.g. a - "seinfeld01.sbe" reference file will have saved content in hidden - and system files "seinfeld01_1.sbe", "seinfeld01_2.sbe", etc... - - --*/ - HRESULT - CreateRecorder ( - [in] LPCWSTR pszFilename, - [in] DWORD dwRecordType, // RECORDING_TYPE_CONTENT or RECORDING_TYPE_REFERENCE - [out] IUnknown ** pRecordingIUnknown - ) ; - - /*++ - ------------------------------------------------------------------------ - IsProfileLocked () - - 1. Returns S_OK if the profile is locked and S_FALSE if it is not. - 2. Returns E_FAIL on error. - --*/ - HRESULT - IsProfileLocked ( - ) ; -} ; - -/*++ - ============================================================================ - ============================================================================ - IStreamBufferSink2 () - - Stream Source interface; - implemented on the StreamBufferSink filter; ---*/ -[ - object, - uuid(DB94A660-F4FB-4bfa-BCC6-FE159A4EEA93), - pointer_default(unique) -] -interface IStreamBufferSink2 : IStreamBufferSink -{ - /*++ - ------------------------------------------------------------------------ - UnlockProfile () - - 1. Unlocks a profile explicitely. - 2. Is a noop if the sink is not locked & returns S_FALSE. - 3. Can only be called when the graph & filter are stopped. - 4. Since recordings are bound to the "lock session", incomplete - recordings i.e. those that have never been started, are - invalidated & must be re-created under the next "lock session". - 5. Profile still unlocks implicitly when the filter is stopped. - --*/ - HRESULT - UnlockProfile ( - ) ; -} ; - -/*++ - ============================================================================ - ============================================================================ - IStreamBufferSink3 () - - Stream Source interface; - implemented on the StreamBufferSink filter; ---*/ -[ - object, - uuid(974723f2-887a-4452-9366-2cff3057bc8f), - pointer_default(unique) -] -interface IStreamBufferSink3 : IStreamBufferSink2 -{ - /*++ - ----------------------------------------------------------------------- - SetAvailableFilter () - - Bounds the minimum. This affects readers so they cannot seek past - the specified minimum. - - Parameter Detail - ---------------- - - prtMin - - min time relative to "now" - - cannot be NULL - - [in]: time, specified relative to the last sample written, to set - as the minimum time available to readers; valid values are <= 0; - use -MAXLONGLONG if all the backing store should be made available. - - [out]: actual min time; if the [in] value further back than what is - available, the [out] value will be set to the actual time made - available. - - Return Values - ------------- - - success S_OK - - failure error code - --*/ - HRESULT - SetAvailableFilter ( - [in, out] REFERENCE_TIME * prtMin - ) ; -} ; - -/*++ - ============================================================================ - ============================================================================ - IStreamBufferSource () - - Stream Source reader interface; - Implemented on the StreamBufferSource filter; ---*/ -[ - object, - uuid(1c5bd776-6ced-4f44-8164-5eab0e98db12), - pointer_default(unique) -] -interface IStreamBufferSource : IUnknown -{ - /*++ - ------------------------------------------------------------------------ - SetStreamSink () - - 1. Sets the StreamBuffer Sink that streams from this Source; - 2. IStreamBufferSink object must be in the same process as this object; - 3. Interface is AddRef()'d if the call succeeds; - - Parameter Detail - ---------------- - - pIStreamBufferSink - - Sink that will stream to this Source - --*/ - HRESULT - SetStreamSink ( - [in] IStreamBufferSink * pIStreamBufferSink - ) ; -} ; - -/*++ - ============================================================================ - ============================================================================ - IStreamBufferRecordControl - - obtained by QIing IStreamBufferSink::CreateRecorder()-returned IUnknown * ---*/ -[ - object, - uuid(ba9b6c99-f3c7-4ff2-92db-cfdd4851bf31), - pointer_default(unique) -] -interface IStreamBufferRecordControl : IUnknown -{ - /*++ - ------------------------------------------------------------------------ - Start () - - 1. Starts a recording; - 2. Will save to the filename that is specified when this interface's - IUnknown is requested (IStreamBufferSink::CreateRecorder()); - - Parameter Detail - ---------------- - - rtStart - - Start time relative to "now; - - If the recording type is a content recording, can only refer to - seconds in the future; allowed seconds are [0,5] - - If the recording type is a reference recording, can refer to any - time that still has valid content i.e. content that has not yet - become stale - - If the recording is a reference recording and (* prtStart) is - earlier than the earliest still-valid content, the call will reset - it to the earliest content; the value when the recording was - actually started will be [out] - --*/ - HRESULT - Start ( - [in,out] REFERENCE_TIME * prtStart - ) ; - - /*++ - ------------------------------------------------------------------------ - Stop () - - 1. Stops a recording; - 2. Closes out the file; - - Parameter Detail - ---------------- - - rtStart - - Stop time relative to "now; - - If the recording type is a content recording, can only refer to - seconds in the future; allowed seconds are [0,5] - - If the recording type is a reference recording, can refer to any - time that still has valid content i.e. content that has not yet - become stale; stop time cannot be <= start time - --*/ - HRESULT - Stop ( - [in] REFERENCE_TIME rtStop - ) ; - - /*++ - ------------------------------------------------------------------------ - GetRecordingStatus () - - 1. Retrieves the status of the recording - - Parameter Detail - ---------------- - - phResult - - The (current) status of writing or closing the recording file; - - Can be NULL; - - pbStarted - - If supplied, set to a non-zero value if the recording has been - started - - Can be NULL; - - pbStopped - - If supplied, set to a non-zero value if the recording has been - stopped; - - Can be NULL; - - NOTE: If the recording has never been started, it will not be flagged - as stopped. - - --*/ - HRESULT - GetRecordingStatus ( - [out] HRESULT * phResult, - [out] BOOL * pbStarted, - [out] BOOL * pbStopped - ) ; -} ; - -/*++ - ============================================================================ - ============================================================================ - IStreamBufferRecComp - - CoCreateInstance CLSID_StreamBufferComposeRecording and QueryInterface for - this interface; this interface allows the creation of a single target - content recording which consists of a number of concatenated recordings - (reference or content; can mix & match if desired) ---*/ - -[ - object, - uuid(9E259A9B-8815-42ae-B09F-221970B154FD), - pointer_default(unique) -] -interface IStreamBufferRecComp : IUnknown -{ - /*++ - ------------------------------------------------------------------------ - Initialize () - - 1. Initializes for a target recording - - Parameter Detail - ---------------- - - pszTargetFilename - - Sets the target filename - - Fails if the file already exists - - pszSBRecProfileRef - - Must be a completed, SBE-generated recording - - This recording's profile will be used to define the target profile - - Appended files must have exactly the same profile - --*/ - HRESULT - Initialize ( - [in] LPCWSTR pszTargetFilename, - [in] LPCWSTR pszSBRecProfileRef - ) ; - - /*++ - ------------------------------------------------------------------------ - Append () - - 1. appends an entire recording - 2. fails if the recording is live - --*/ - HRESULT - Append ( - [in] LPCWSTR pszSBRecording - ) ; - - /*++ - ------------------------------------------------------------------------ - AppendEx () - - 1. appends the specified portion of the recording; the parameters must - be accurate; the call will not readjust them within the boundaries - 2. the time spread must be at least 2 seconds - 3. fails if the recording is live - --*/ - HRESULT - AppendEx ( - [in] LPCWSTR pszSBRecording, - [in] REFERENCE_TIME rtStart, - [in] REFERENCE_TIME rtStop - ) ; - - /*++ - ------------------------------------------------------------------------ - GetCurrentLength () - - 1. returns the current length of the recording; updates as recordings - are appended; - 2. can be called repeatedly during a Append() call on another - thread; - --*/ - HRESULT - GetCurrentLength ( - [out] DWORD * pcSeconds - ) ; - - /*++ - ------------------------------------------------------------------------ - Close () - - 1. explicitely closes the recording - - 2. final release of interface closes the recording as well - --*/ - HRESULT - Close ( - ) ; - - /*++ - ------------------------------------------------------------------------ - Cancel () - - 1. cancels an in-progress appending operation; has no effect otherwise - --*/ - HRESULT - Cancel ( - ) ; -} ; - -/*++ - ============================================================================ - ============================================================================ - IStreamBufferRecordingAttribute - - obtained by calling QueryInterface on a recorder - - well-known attributes: - - NAME DESCRIPTION - ------------------- ---------------------------------------------------- - - Title String containing the content title. - - Author String containing the name of the content author. - - Description String containing a description of the content. - - Rating String containing a content rating. - - Copyright String containing a content copyright message. - - Duration Quadruple word value containing the playing duration - of the file, in 100-nanosecond units. - - Bitrate Double word value containing the bit rate. - - Seekable Boolean value; true denoting that the content is - seekable. - - Stridable Boolean value, true denoting that the content is - stridable (fast forward and rewind are enabled). - - Broadcast Boolean value; true denoting that the content is not - copyright-protected, and can be broadcast. - - Use_DRM reserved - - DRM_Flags reserved - - DRM_Level reserved - - Is_Protected reserved - - Is_Trusted reserved - - Signature_Name reserved - - HasAudio Boolean, true denoting the content includes an - audio stream. - - HasImage Boolean, true denoting the content includes a still - image stream (such as JPEG images). - - HasScript Boolean, true denoting the content includes a script - stream. - - HasVideo Boolean, true denoting the content includes a video - stream. - - CurrentBitrate Double word containing the current total bitrate, - usually used for MEB (multi-bit rate) streams. - - OptimalBitrate Double word containing the minimum total bitrate - recommended to stream the content and get - maximum quality. - - WM/AlbumTitle String containing the album title. - - WM/Track Double word containing the track number. - - WM/PromotionURL String with a URL to an HTML page that contains - information about products and events (such as - concerts) that are related to this music. - - WM/AlbumCoverURL String with a URL to an HTML page that contains an - image of the album cover and information about - the album. - - WM/Genre String with the genre of the music. - - WM/Year String with the year of publication of the music. - - WM/GenreID - - WM/MCDI - - BannerImageType One member of the WMT_ATTR_IMAGETYPE enumeration - type. - - BannerImageData The actual image data: a bitmap, JPEG, or GIF image. - - - BannerImageURL If the banner image is clicked on then this URL is - activated. - - CopyrightURL An URL to a copyright page. - - NSC_Name String containing the multicast station contact - name (read-only). - - NSC_Address String containing the multicast station contact - address (read-only). - - NSC_Phone String containing the multicast station contact - phone number (read-only). - - NSC_Email String containing the multicast station contact - email address (read-only). - - NSC_Description String containing the multicast station contact - description (read-only). - ---*/ - -cpp_quote( "////////////////////////////////////////////////////////////////" ) -cpp_quote( "//" ) -cpp_quote( "// List of pre-defined attributes " ) -cpp_quote( "//" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingDuration[] =L\"Duration\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingBitrate[] =L\"Bitrate\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingSeekable[] =L\"Seekable\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingStridable[] =L\"Stridable\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingBroadcast[] =L\"Broadcast\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingProtected[] =L\"Is_Protected\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingTrusted[] =L\"Is_Trusted\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingSignature_Name[] =L\"Signature_Name\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingHasAudio[] =L\"HasAudio\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingHasImage[] =L\"HasImage\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingHasScript[] =L\"HasScript\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingHasVideo[] =L\"HasVideo\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingCurrentBitrate[] =L\"CurrentBitrate\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingOptimalBitrate[] =L\"OptimalBitrate\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingHasAttachedImages[] =L\"HasAttachedImages\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingSkipBackward[] =L\"Can_Skip_Backward\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingSkipForward[] =L\"Can_Skip_Forward\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingNumberOfFrames[] =L\"NumberOfFrames\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingFileSize[] =L\"FileSize\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingHasArbitraryDataStream[] =L\"HasArbitraryDataStream\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingHasFileTransferStream[] =L\"HasFileTransferStream\";" ) -cpp_quote( "" ) -cpp_quote( "////////////////////////////////////////////////////////////////" ) -cpp_quote( "//" ) -cpp_quote( "// The content description object supports 5 basic attributes." ) -cpp_quote( "//" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingTitle[] =L\"Title\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingAuthor[] =L\"Author\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingDescription[] =L\"Description\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingRating[] =L\"Rating\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingCopyright[] =L\"Copyright\";" ) -cpp_quote( "" ) -cpp_quote( "////////////////////////////////////////////////////////////////" ) -cpp_quote( "//" ) -cpp_quote( "// These attributes are used to configure DRM using IWMDRMWriter::SetDRMAttribute." ) -cpp_quote( "//" ) -cpp_quote( "static const WCHAR *g_wszStreamBufferRecordingUse_DRM = L\"Use_DRM\";" ) -cpp_quote( "static const WCHAR *g_wszStreamBufferRecordingDRM_Flags = L\"DRM_Flags\";" ) -cpp_quote( "static const WCHAR *g_wszStreamBufferRecordingDRM_Level = L\"DRM_Level\";" ) -cpp_quote( "" ) -cpp_quote( "////////////////////////////////////////////////////////////////" ) -cpp_quote( "//" ) -cpp_quote( "// These are the additional attributes defined in the WM attribute" ) -cpp_quote( "// namespace that give information about the content." ) -cpp_quote( "//" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingAlbumTitle[] =L\"WM/AlbumTitle\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingTrack[] =L\"WM/Track\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingPromotionURL[] =L\"WM/PromotionURL\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingAlbumCoverURL[] =L\"WM/AlbumCoverURL\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingGenre[] =L\"WM/Genre\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingYear[] =L\"WM/Year\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingGenreID[] =L\"WM/GenreID\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingMCDI[] =L\"WM/MCDI\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingComposer[] =L\"WM/Composer\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingLyrics[] =L\"WM/Lyrics\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingTrackNumber[] =L\"WM/TrackNumber\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingToolName[] =L\"WM/ToolName\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingToolVersion[] =L\"WM/ToolVersion\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingIsVBR[] =L\"IsVBR\";" ) - -// -// WM/AlbumArtist is a potentially different value than Author -// -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingAlbumArtist[] =L\"WM/AlbumArtist\";" ) -cpp_quote( "" ) - -cpp_quote( "////////////////////////////////////////////////////////////////" ) -cpp_quote( "//" ) -cpp_quote( "// These optional attributes may be used to give information " ) -cpp_quote( "// about the branding of the content." ) -cpp_quote( "//" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingBannerImageType[] =L\"BannerImageType\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingBannerImageData[] =L\"BannerImageData\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingBannerImageURL[] =L\"BannerImageURL\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingCopyrightURL[] =L\"CopyrightURL\";" ) - -cpp_quote( "////////////////////////////////////////////////////////////////" ) -cpp_quote( "//" ) -cpp_quote( "// Optional attributes, used to give information " ) -cpp_quote( "// about video stream properties." ) -cpp_quote( "//" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingAspectRatioX[] =L\"AspectRatioX\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingAspectRatioY[] =L\"AspectRatioY\";" ) - -cpp_quote( "////////////////////////////////////////////////////////////////" ) -cpp_quote( "//" ) -cpp_quote( "// The NSC file supports the following attributes." ) -cpp_quote( "//" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingNSCName[] =L\"NSC_Name\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingNSCAddress[] =L\"NSC_Address\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingNSCPhone[] =L\"NSC_Phone\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingNSCEmail[] =L\"NSC_Email\";" ) -cpp_quote( "static const WCHAR g_wszStreamBufferRecordingNSCDescription[] =L\"NSC_Description\";" ) -cpp_quote( "" ) - -// -// StreamBuffer Attribute datatypes; -// -typedef enum { - STREAMBUFFER_TYPE_DWORD = 0, - STREAMBUFFER_TYPE_STRING = 1, - STREAMBUFFER_TYPE_BINARY = 2, - STREAMBUFFER_TYPE_BOOL = 3, - STREAMBUFFER_TYPE_QWORD = 4, - STREAMBUFFER_TYPE_WORD = 5, - STREAMBUFFER_TYPE_GUID = 6, -} STREAMBUFFER_ATTR_DATATYPE ; - -[ - object, - uuid(16CA4E03-FE69-4705-BD41-5B7DFC0C95F3), - pointer_default(unique) -] -interface IStreamBufferRecordingAttribute : IUnknown -{ - /*++ - ------------------------------------------------------------------------ - SetAttribute () - - 1. Sets an attribute on a recording object; - 2. Fails if the IStreamBufferRecordControl::Start has already been successfully - called; - 3. If an attribute of the same name already exists, overwrites the old; - --*/ - HRESULT - SetAttribute ( - [in] ULONG ulReserved, - [in] LPCWSTR pszAttributeName, - [in] STREAMBUFFER_ATTR_DATATYPE StreamBufferAttributeType, - [in, size_is (cbAttributeLength)] BYTE * pbAttribute, - [in] WORD cbAttributeLength - ) ; - - /*++ - ------------------------------------------------------------------------ - GetAttributeCount () - - 1. Returns the count of attributes currently set; - --*/ - HRESULT - GetAttributeCount ( - [in] ULONG ulReserved, - [out] WORD * pcAttributes - ) ; - - /*++ - ------------------------------------------------------------------------ - GetAttributeByName () - - 1. Given a name, returns the attribute data; - 2. If the provided buffer is too small, returns VFW_E_BUFFER_OVERFLOW, - and (* pcbLength) contains the minimum required length of the buffer - 3. To learn the length of the attribute, pass in non-NULL pcbLength, - and NULL pbAttribute parameter; [out] value will be the length of - the attribute - --*/ - HRESULT - GetAttributeByName ( - [in] LPCWSTR pszAttributeName, - [in] ULONG * pulReserved, - [out] STREAMBUFFER_ATTR_DATATYPE * pStreamBufferAttributeType, - [out, size_is (* pcbLength)] BYTE * pbAttribute, - [in, out] WORD * pcbLength - ) ; - - /*++ - ------------------------------------------------------------------------ - GetAttributeByIndex () - - 1. Given an 0-based index, returns the attribute name and data - 2. If either buffer is too small, returns VFW_E_BUFFER_OVERFLOW, and - (* pcbLength) and (* pcchNameLength) contain the minimum required - length of each buffer - 3. The length returned by pcchNameLength includes the null-terminator - 4. To learn the length of the name & attribute, pass in non-NULL - pcchNameLength & pcbLength, and NULL pszAttributeName & pbAttribute - parameters; [out] value of the non-NULL parameters will be the - lengths of the name and attribute - --*/ - HRESULT - GetAttributeByIndex ( - [in] WORD wIndex, - [in] ULONG * pulReserved, - [out] WCHAR * pszAttributeName, - [in, out] WORD * pcchNameLength, // includes NULL-terminator; in BYTES - [out] STREAMBUFFER_ATTR_DATATYPE * pStreamBufferAttributeType, - [out, size_is (* pcbLength)] BYTE * pbAttribute, - [in, out] WORD * pcbLength - ) ; - - /*++ - ------------------------------------------------------------------------ - EnumAttributes () - - 1. Returns a StreamBuffer attribute enumeration object that snapshots - the attributes at time-of-call - --*/ - HRESULT - EnumAttributes ( - [out] IEnumStreamBufferRecordingAttrib ** ppIEnumStreamBufferAttrib - ) ; -} ; - -/*++ - ============================================================================ - ============================================================================ - IEnumStreamBufferRecordingAttrib - - obtained by calling IStreamBufferRecordingAttribute::EnumAttributes, or - calling clone on this interface ---*/ - -typedef struct { - LPWSTR pszName ; // allocated by callee; freed by caller - STREAMBUFFER_ATTR_DATATYPE StreamBufferAttributeType ; - BYTE * pbAttribute ; // allocated by callee; freed by caller - WORD cbLength ; -} STREAMBUFFER_ATTRIBUTE ; - -[ - object, - uuid (C18A9162-1E82-4142-8C73-5690FA62FE33), - pointer_default(unique) -] -interface IEnumStreamBufferRecordingAttrib : IUnknown -{ - HRESULT - Next ( - [in] ULONG cRequest, - [in, out, size_is (cRequest)] STREAMBUFFER_ATTRIBUTE * pStreamBufferAttribute, - [out] ULONG * pcReceived - ) ; - - HRESULT - Skip ( - [in] ULONG cRecords - ) ; - - HRESULT - Reset ( - ) ; - - HRESULT - Clone ( - [out] IEnumStreamBufferRecordingAttrib ** ppIEnumStreamBufferAttrib - ) ; -} ; - -/*++ - ============================================================================ - ============================================================================ - IStreamBufferConfigure - ---*/ -[ - object, - uuid(ce14dfae-4098-4af7-bbf7-d6511f835414), - pointer_default(unique) -] -interface IStreamBufferConfigure : IUnknown -{ - /*++ - ------------------------------------------------------------------------ - SetStreamBufferDirectory () - - 1. Sets the directory where all content is saved, ringbuffer & - StreamBuffer; - 2. Creates directory if necessary; - 3. All TEMP files have hidden+system attributes - --*/ - HRESULT - SetDirectory ( - [in] LPCWSTR pszDirectoryName - ) ; - - /*++ - ------------------------------------------------------------------------ - GetStreamBufferDirectory () - - 1. Retrieves previously set backing store directory, or default - location if none was specified - --*/ - HRESULT - GetDirectory ( - [out] LPWSTR * ppszDirectoryName - ) ; - - /*++ - ------------------------------------------------------------------------ - SetBackingFileCount () - - 1. Sets the number of backing files - 2. valid values - - 4 <= min <= 100 - 6 <= max <= 102 - min max delta >= 2 - --*/ - HRESULT - SetBackingFileCount ( - [in] DWORD dwMin, - [in] DWORD dwMax - ) ; - - /*++ - ------------------------------------------------------------------------ - GetBackingFileCount () - - 1. Retrieves previously set backing file counts, or defaults if none - have have been set - --*/ - HRESULT - GetBackingFileCount ( - [out] DWORD * pdwMin, - [out] DWORD * pdwMax - ) ; - - /*++ - ------------------------------------------------------------------------ - SetEachBackingFileDuration () - - 1. Sets the seconds of content each backing file will hold - 2. valid values: - - dwSeconds >= 15 - --*/ - HRESULT - SetBackingFileDuration ( - [in] DWORD dwSeconds - ) ; - - /*++ - ------------------------------------------------------------------------ - GetEachBackingFileDuration () - - 1. Retrieves previously set backing file duration, or default of none - is set - --*/ - HRESULT - GetBackingFileDuration ( - [out] DWORD * pdwSeconds - ) ; -} ; - -/*++ - ============================================================================ - ============================================================================ - IStreamBufferConfigure2 - ---*/ -[ - object, - uuid(53E037BF-3992-4282-AE34-2487B4DAE06B), - pointer_default(unique) -] -interface IStreamBufferConfigure2 : IStreamBufferConfigure -{ - /*++ - ------------------------------------------------------------------------ - SetMultiplexedPacketSize () - - 1. sets the size of the target multiplexed packet size - 2. valid values: - - 8192 <= cbBytesPerPacket <= 65535 - - This is useful if low-bitrate streams are used, and the time to fill a - multiplexed packet is excessive when the default value of 65535 bytes - is used. - --*/ - HRESULT - SetMultiplexedPacketSize ( - [in] DWORD cbBytesPerPacket - ) ; - - /*++ - ------------------------------------------------------------------------ - GetMultiplexedPacketSize () - - 1. gets the size of the target multiplexed packet size - --*/ - HRESULT - GetMultiplexedPacketSize ( - [out] DWORD * pcbBytesPerPacket - ) ; - - /*++ - ------------------------------------------------------------------------ - SetFFTransitionRates () - - 1. sets the fast forward (FF) rates for which the Stream Buffer Engine - transitions from FullFrame to KeyFrame to KeyFrame + Seeks. - 2. valid values: - - 1 < dwMaxFullFrameRate < dwMaxNonSkippingRate - - FF playback transitions from full-frame play, then to all keyframes, - then to keyframes + seekaheads. This method allows the transition - rates to be set. By default they are 4 and 6. If the rate is in (0,4] - all the frames are sent to the codec. If the rate is in (4,6] just - keyframes are sent. If the rate is > 6, then only keyframes are sent, - and a seekahead between keyframes is used that is proportionally - aggressive to the specified rate. - --*/ - HRESULT - SetFFTransitionRates ( - [in] DWORD dwMaxFullFrameRate, - [in] DWORD dwMaxNonSkippingRate - ) ; - - /*++ - ------------------------------------------------------------------------ - GetFFTransitionRates () - - 1. gets the fast forward (FF) rates for which the Stream Buffer Engine - transitions from FullFrame to KeyFrame to KeyFrameWithSeeks. - --*/ - HRESULT - GetFFTransitionRates ( - [out] DWORD * pdwMaxFullFrameRate, - [out] DWORD * pdwMaxNonSkippingRate - ) ; -} ; - -/*++ - ============================================================================ - ============================================================================ - IStreamBufferMediaSeeking - - Implemented on the StreamBufferSource filter. Used to seek and set the - playback rate. - ---*/ - -[ - object, - uuid(f61f5c26-863d-4afa-b0ba-2f81dc978596), - pointer_default(unique) -] -interface IStreamBufferMediaSeeking : IMediaSeeking -{ - // no additional methods have been added -} ; - -/*++ - ============================================================================ - ============================================================================ - IStreamBufferMediaSeeking2 - - Implemented on the StreamBufferSource filter. Used to seek and set the - playback rate. - ---*/ - -[ - object, - uuid(3a439ab0-155f-470a-86a6-9ea54afd6eaf), - pointer_default(unique) -] -interface IStreamBufferMediaSeeking2 : IStreamBufferMediaSeeking -{ - /*++ - ----------------------------------------------------------------------- - SetRateEx () - - Allows the application to override SBE's trick mode seekahead - computation. - - The specified frame rate will, on average, be correct, but may - have some variance if averaged over short periods of time. This is - due to the content's compression schema. - - The frame rate is applied to the video stream, if one exists. If no - video stream exists, the rate call fails. The framerate parameter - (dwFramesPerSec) is ignored when the specified abs(rate) is less than or - equal to the maximum non-skipping rate (see IStreamBufferConfigure2:: - SetFFTransitionRates ()). - - Parameter Detail - ---------------- - - dRate rate at which the content is to be played. - valid values are all rates, excluding the following - range: (-0.1, 0.1) - - dwFramesPerSec frames per second - cannot be 0 - SBE does not enforce this parameter with respect to - the screen refresh rate - ignored if the abs(dRate) value is <= max non- - skipping rate (see IStreamBufferConfigure2:: - SetFFTransitionRates ()). - - Return Values - ------------- - - success S_OK - - failure error code - --*/ - HRESULT - SetRateEx ( - [in] double dRate, - [in] DWORD dwFramesPerSec - ) ; -} ; - - -/*++ - ============================================================================ - ============================================================================ - IStreamBufferDataCounters - - Implemented on the StreamBufferSource & StreamBufferSink filter pins. Used - to get instantaneous traffic counters for the pin. - ---*/ - -typedef struct { - ULONGLONG cDataBytes ; // total sample payload bytes - ULONGLONG cSamplesProcessed ; // samples processed - ULONGLONG cDiscontinuities ; // number of discontinuities - ULONGLONG cSyncPoints ; // number of syncpoints - ULONGLONG cTimestamps ; // number of timestamps -} SBE_PIN_DATA ; - -[ - object, - uuid(9D2A2563-31AB-402e-9A6B-ADB903489440), - pointer_default(unique) -] -interface IStreamBufferDataCounters : IUnknown -{ - // retrieves the instantaneous values in the data structure - HRESULT - GetData ( - [out] SBE_PIN_DATA * pPinData - ) ; - - // sets all the data structure values to 0 - HRESULT - ResetData ( - ) ; -} ; - -/*++ - ============================================================================ - ============================================================================ - events ---*/ - -// see evcode.h comment for range -// stream buffer engine (PVR) 0x0326 - 0x0350 (sbe.idl) - -cpp_quote ("#define STREAMBUFFER_EC_BASE 0x0326") - -cpp_quote ("enum {") -cpp_quote (" // timehole event") -cpp_quote (" // param1 = timehole stream offset ms") -cpp_quote (" // param1 = timehole size ms") -cpp_quote (" STREAMBUFFER_EC_TIMEHOLE = STREAMBUFFER_EC_BASE,") -cpp_quote (" ") -cpp_quote (" STREAMBUFFER_EC_STALE_DATA_READ,") -cpp_quote (" ") -cpp_quote (" STREAMBUFFER_EC_STALE_FILE_DELETED,") -cpp_quote (" STREAMBUFFER_EC_CONTENT_BECOMING_STALE,") -cpp_quote (" STREAMBUFFER_EC_WRITE_FAILURE,") -cpp_quote (" //") -cpp_quote (" // unexpected read failure") -cpp_quote (" // param1 = HRESULT failure") -cpp_quote (" // param2 = undefined") -cpp_quote (" STREAMBUFFER_EC_READ_FAILURE,") -cpp_quote (" //") -cpp_quote (" // playback rate change") -cpp_quote (" // param1 = old_playback_rate * 10000 e.g. 2x is 20000") -cpp_quote (" // param2 = new_playback_rate * 10000") -cpp_quote (" STREAMBUFFER_EC_RATE_CHANGED,") -cpp_quote ("} ;") - -/*++ - ============================================================================ - ============================================================================ - trick mode - - We've extended the 1.0 interfaces as follows: - - 1. source filter presents timestamps that monotonically increase overtime - - 2. flushes should have no effect over queued rate segments - - 3. discontinuities have no effect over queued rate segments - - To use the interface, continue to use AM_KSPROPSETID_TSRateChange, but use - dwPropId that is higher - ---*/ - -#ifdef USE_AM_PROPERTY_TS_RATE_CHANGE_11 -cpp_quote ("typedef enum {") -cpp_quote (" AM_RATE_UseRateVersion = AM_RATE_Step + 1,") -cpp_quote (" AM_RATE_QueryFullFrameRate,") -cpp_quote (" AM_RATE_QueryLastRateSegPTS") -cpp_quote ("} AM_PROPERTY_TS_RATE_CHANGE_11 ;") - -// AM_RATE_QueryRate; this is the max full-frame rate; source filter can use -// up to this; it can use less -cpp_quote ("typedef struct {") -cpp_quote (" LONG lMaxForwardFullFrame ; // rate * 10000") -cpp_quote (" LONG lMaxReverseFullFrame ; // rate * 10000") -cpp_quote ("} AM_QueryRate ;") -#endif // USE_AM_PROPERTY_TS_RATE_CHANGE_11 - -/* -================================================================================ -AM_RATE_UseRateVersion --------------------------------------------------------------------------------- -Specifies the rate change version to be used. - -The default behavior should be per 1.0. - -Use a WORD value. The high-order byte specifies the minor version (revision) -number; the low-order byte specifies the major version number. On a -little-endian system (e.g. x86), the WORD value version for the contents of -this specification is 0x0101. - -If the specified rate version is not supported, the call should fail with -an E_NOINTERFACE error code. - -================================================================================ -AM_RATE_QueryFullFrameRate --------------------------------------------------------------------------------- -Allows a source filter to query for maximum full-frame rates the timestamp -scaling filter is capable of. Maximum full-frame forward and reverse rates -are queried for. - -Use AM_QueryRate structure. Timestamp scaling filter must set -lMaxReverseFullFrame struct member to negative rate. - -The sourcing filter can still choose to set the full-frame rate to a value -smaller than the value returned by the timestamp scaling filter. For example, -there may be IO issues that prevent a full-frame playback, even if the timestamp -scaling filter is capable. - -Non-full frame playback will consist of groups of continuous samples sent to -the timestamp scaling filter, separated by discontinuities. The timestamps for -each group of samples will jump across the discontinuities, but still increase -per the RunTimePlus timeline, when compared to RenderTime, once a steady state -runstate has been achieved. - -Note that Rate is used this call, vs. speed. - -================================================================================ -AM_RATE_QueryLastRateSegPTS --------------------------------------------------------------------------------- -Allows a source filter to query the timestamp scaling filter for the last-set -rate-segment's effective PTS, regardless of rate-segment position. - -Note that Rate is used this call, vs. speed. - -================================================================================ -AM_RATE_SimpleRateChange (with 1.1 semantics) --------------------------------------------------------------------------------- -If the rate is to be set to the most forward sample, the -AM_SimpleRateChange.StartTime member is set to value -1 by the sourcing filter. -This has meaning to the timestamp scaling filter to set the rate to the most -forward sample, and return that sample's presentation time via the method call's -[out] parameter. - -If the specified rate segment is incompatible, all queued samples with PTS in -rate-incompatible segment can be discarded. - -If the current rate is incompatible i.e. samples are being dropped by the -timestamp scaling filter and it is not keeping an internal queued, it should -fail the querying call (AM_SimpleRateChagne.StartTime = -1) with return error -VFW_E_DVD_WRONG_SPEED. The sourcing filter will then set a rate with an -effective PTS. - -*/ - diff --git a/sdk/dx8sdk/Include/DShowIDL/strmif.idl b/sdk/dx8sdk/Include/DShowIDL/strmif.idl deleted file mode 100644 index 87da1d8b..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/strmif.idl +++ /dev/null @@ -1,51 +0,0 @@ -//------------------------------------------------------------------------------ -// File: StrmIf.idl -// -// Desc: ActiveMovie interface definitions. -// -// Copyright (c) 1992 - 2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - -// -// Temporarily disable the /W4 compiler warning C4201, which will be -// reported by all apps which include streams.h or dshow.h, which both -// include the strmif.h generated by this IDL file. -// -cpp_quote("//+-------------------------------------------------------------------------") -cpp_quote("//") -cpp_quote("// Copyright (C) Microsoft Corporation, 1999-2002.") -cpp_quote("//") -cpp_quote("//--------------------------------------------------------------------------") -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 - - -import "unknwn.idl"; -import "objidl.idl"; // for IPersist (IFilter's root) - -#include "devenum.idl" - -// core interfaces -#include "axcore.idl" - -// extended, ActiveMovie-only interfaces -#include "axextend.idl" - -// application interfaces for DVD -#include "dvdif.idl" - -// Dynamic graph stuff -#include "dyngraph.idl" - - -// Video Mixing Renderer -#include "VMRender.idl" - - -// -// Restore the previous setting for C4201 compiler warning -// -cpp_quote("// Restore the previous setting for C4201 compiler warning") -cpp_quote("#pragma warning(pop)") diff --git a/sdk/dx8sdk/Include/DShowIDL/tuner.idl b/sdk/dx8sdk/Include/DShowIDL/tuner.idl deleted file mode 100644 index 75f1beb4..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/tuner.idl +++ /dev/null @@ -1,2254 +0,0 @@ -//------------------------------------------------------------------------------ -// File: Tuner.idl -// -// Desc: -// -// Copyright (c) 1999 - 2000, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -cpp_quote("//+-------------------------------------------------------------------------") -cpp_quote("//") -cpp_quote("// Microsoft Windows") -cpp_quote("// Copyright (C) Microsoft Corporation, 1999-2000.") -cpp_quote("//") -cpp_quote("//--------------------------------------------------------------------------") -cpp_quote("#pragma once") - -#include -#ifndef DO_NO_IMPORTS -import "oaidl.idl"; -import "comcat.idl"; -import "strmif.idl"; -import "bdatypes.h"; -import "regbag.idl"; -#endif - -cpp_quote("#include ") - -interface ITuningSpaceContainer; -interface ITuningSpace; -interface IEnumTuningSpaces; -interface ITuneRequest; -interface ITuner; -interface IScanningTuner; -interface IEnumComponentTypes; -interface IComponentTypes; -interface IComponentType; -interface ILanguageComponentType; -interface IEnumComponents; -interface IComponents; -interface IComponent; -interface IMPEG2ComponentType; -interface IMPEG2Component; -interface ILocator; -interface IATSCLocator; -interface IDVBSLocator; -interface IDVBTLocator; -interface IDVBCLocator; - -// tuner.idl: -// interface ITuningSpaceContainer : IDispatch -// interface ITuningSpace : IDispatch -// interface ITuneRequest : IDispatch -// interface IComponentType : IDispatch -// interface ILanguageComponentType : IComponentType -// interface IComponentTypes : IDispatch -// interface IComponent : IDispatch -// interface IComponents : IDispatch -// interface ITVTuningSpace : ITuningSpace -// interface IFMRadioTuningSpace : ITuningSpace -// interface IAMRadioTuningSpace : ITuningSpace -// interface IAnalogTVTuningSpace : ITVTuningSpace -// interface IAnalogTVAudioComponent : IComponent -// interface IAnalogTVDataComponent : IComponent -// interface IChannelTuneRequest : ITuneRequest -// interface IDVBComponent : IComponent -// interface IDVBTuneRequest : ITuneRequest - -// DISPIDs for ITuningSpaces interface -// we don't expect to inherit from this interface and consequently there's -// no chance of collision, thus we'll allow midl to auto assign ids for this one - -// DISPIDs for ITuningSpace interface -enum { -DISPID_TUNER_TS_UNIQUENAME = 1, -DISPID_TUNER_TS_FRIENDLYNAME = 2, -DISPID_TUNER_TS_CLSID = 3, -DISPID_TUNER_TS_NETWORKTYPE = 4, -DISPID_TUNER_TS__NETWORKTYPE = 5, -DISPID_TUNER_TS_CREATETUNEREQUEST = 6, -DISPID_TUNER_TS_ENUMCATEGORYGUIDS = 7, -DISPID_TUNER_TS_ENUMDEVICEMONIKERS = 8, -DISPID_TUNER_TS_DEFAULTPREFERREDCOMPONENTTYPES = 9, -DISPID_TUNER_TS_FREQMAP = 10, -DISPID_TUNER_TS_DEFLOCATOR = 11, -DISPID_TUNER_TS_CLONE = 12, - -// DISPIDs for ITuneRequest interface -DISPID_TUNER_TR_TUNINGSPACE = 1, -DISPID_TUNER_TR_COMPONENTS = 2, -DISPID_TUNER_TR_CLONE = 3, -DISPID_TUNER_TR_LOCATOR = 4, - - -// DISPID for IComponentType interface -DISPID_TUNER_CT_CATEGORY = 1, -DISPID_TUNER_CT_MEDIAMAJORTYPE = 2, -DISPID_TUNER_CT__MEDIAMAJORTYPE = 3, -DISPID_TUNER_CT_MEDIASUBTYPE = 4, -DISPID_TUNER_CT__MEDIASUBTYPE = 5, -DISPID_TUNER_CT_MEDIAFORMATTYPE = 6, -DISPID_TUNER_CT__MEDIAFORMATTYPE = 7, -DISPID_TUNER_CT_MEDIATYPE = 8, -DISPID_TUNER_CT_CLONE = 9, - - -// DISPID for ILanguageComponentType interface -DISPID_TUNER_LCT_LANGID = 100, - -// DISPID for IMPEG2ComponentType interface -DISPID_TUNER_MP2CT_TYPE = 200, - -// DISPID for IATSCComponentType interface -DISPID_TUNER_ATSCCT_FLAGS = 300, - -// DISPID for ILocator interface -DISPID_TUNER_L_CARRFREQ = 1, -DISPID_TUNER_L_INNERFECMETHOD = 2, -DISPID_TUNER_L_INNERFECRATE = 3, -DISPID_TUNER_L_OUTERFECMETHOD = 4, -DISPID_TUNER_L_OUTERFECRATE = 5, -DISPID_TUNER_L_MOD = 6, -DISPID_TUNER_L_SYMRATE = 7, -DISPID_TUNER_L_CLONE = 8, - -// DISPID for IATSCLocator interface -DISPID_TUNER_L_ATSC_PHYS_CHANNEL = 201, -DISPID_TUNER_L_ATSC_TSID = 202, - -// DISPID for IDVBTLocator interface -DISPID_TUNER_L_DVBT_BANDWIDTH = 301, -DISPID_TUNER_L_DVBT_LPINNERFECMETHOD = 302, -DISPID_TUNER_L_DVBT_LPINNERFECRATE = 303, -DISPID_TUNER_L_DVBT_GUARDINTERVAL = 304, -DISPID_TUNER_L_DVBT_HALPHA = 305, -DISPID_TUNER_L_DVBT_TRANSMISSIONMODE = 306, -DISPID_TUNER_L_DVBT_INUSE = 307, - -// DISPID for IDVBSLocator interface -DISPID_TUNER_L_DVBS_POLARISATION = 401, -DISPID_TUNER_L_DVBS_WEST = 402, -DISPID_TUNER_L_DVBS_ORBITAL = 403, -DISPID_TUNER_L_DVBS_AZIMUTH = 404, -DISPID_TUNER_L_DVBS_ELEVATION = 405, - -// DISPID for IDVBCLocator interface - -// DISPIDs for IComponent interface -DISPID_TUNER_C_TYPE = 1, -DISPID_TUNER_C_STATUS = 2, -DISPID_TUNER_C_LANGID = 3, -DISPID_TUNER_C_DESCRIPTION = 4, -DISPID_TUNER_C_CLONE = 5, - -// DISPIDs for IMPEG2Component interface -DISPID_TUNER_C_MP2_PID = 101, -DISPID_TUNER_C_MP2_PCRPID = 102, -DISPID_TUNER_C_MP2_PROGNO = 103, - -// DISPIDs for IDVBTuningSpace interface -DISPID_TUNER_TS_DVB_SYSTEMTYPE = 101, -// DISPIDs for IDVBTuningSpace2 interface -DISPID_TUNER_TS_DVB2_NETWORK_ID = 102, -// DISPIDs for IDVBSTuningSpace interface -DISPID_TUNER_TS_DVBS_LOW_OSC_FREQ = 1001, -DISPID_TUNER_TS_DVBS_HI_OSC_FREQ = 1002, -DISPID_TUNER_TS_DVBS_LNB_SWITCH_FREQ = 1003, -DISPID_TUNER_TS_DVBS_INPUT_RANGE = 1004, -DISPID_TUNER_TS_DVBS_SPECTRAL_INVERSION = 1005, - -// DISPIDs for IAnalogRadioTuningSpace interface -DISPID_TUNER_TS_AR_MINFREQUENCY = 101, -DISPID_TUNER_TS_AR_MAXFREQUENCY = 102, -DISPID_TUNER_TS_AR_STEP = 103, - -// DISPIDs for IAnalogTVTuningSpace interface -DISPID_TUNER_TS_ATV_MINCHANNEL = 101, -DISPID_TUNER_TS_ATV_MAXCHANNEL = 102, -DISPID_TUNER_TS_ATV_INPUTTYPE = 103, -DISPID_TUNER_TS_ATV_COUNTRYCODE = 104, - -// DISPIDs for IATSCTuningSpace interface -DISPID_TUNER_TS_ATSC_MINMINORCHANNEL = 201, -DISPID_TUNER_TS_ATSC_MAXMINORCHANNEL = 202, -DISPID_TUNER_TS_ATSC_MINPHYSCHANNEL = 203, -DISPID_TUNER_TS_ATSC_MAXPHYSCHANNEL = 204, - -// DISPID for IAnalogTVAudioComponent interface -DISPID_CHTUNER_ATVAC_CHANNEL = 101, - -// DISPIDs for IAnalogTVDataComponent interface -DISPID_CHTUNER_ATVDC_SYSTEM = 101, -DISPID_CHTUNER_ATVDC_CONTENT = 102, - -// DISPID for IChannelTuneRequest interface -DISPID_CHTUNER_CTR_CHANNEL = 101, - -// DISPID IATSCChannelTuneRequest -DISPID_CHTUNER_ACTR_MINOR_CHANNEL = 201, - -// DISPIDs for IDVBComponent interface -DISPID_DVBTUNER_DVBC_ATTRIBUTESVALID = 101, -DISPID_DVBTUNER_DVBC_PID = 102, -DISPID_DVBTUNER_DVBC_TAG = 103, -DISPID_DVBTUNER_DVBC_COMPONENTTYPE = 104, - -// DISPIDs for IDVBTuneRequest interface -DISPID_DVBTUNER_ONID = 101, -DISPID_DVBTUNER_TSID = 102, -DISPID_DVBTUNER_SID = 103, - -// DISPIDs for IMPEG2TuneRequest interface -DISPID_MP2TUNER_TSID = 101, -DISPID_MP2TUNER_PROGNO = 102, - -// DISPIDs for IMPEG2TuneRequestFactory interface -DISPID_MP2TUNERFACTORY_CREATETUNEREQUEST = 1, - -}; - - -////////////////////////////////////////////////////////////////////////////////////// -// Tuning Space Container -////////////////////////////////////////////////////////////////////////////////////// -// simple read-only collection of tuning spaces for enumerating subsets of the total -// set of system tuning spaces - [ - object, - uuid(901284E4-33FE-4b69-8D63-634A596F3756), - dual, - oleautomation, - nonextensible, - helpstring("Tuning Space Collection Interface"), - pointer_default(unique) - ] - interface ITuningSpaces : IDispatch - { - - [propget, helpstring("Number of items in the collection")] - HRESULT Count( - [out, retval] long *Count - ); - - [propget, id(DISPID_NEWENUM), hidden, restricted] - HRESULT _NewEnum( - [out, retval] IEnumVARIANT** NewEnum - ); - - [id(DISPID_VALUE), - propget, - helpstring("Find the Tuning Space with the specified Index")] - HRESULT Item( - [in] VARIANT varIndex, - [out, retval] ITuningSpace** TuningSpace - ); - - [propget, hidden, restricted, - helpstring("convenience function so C++ apps don't have to unpack VARIANT")] - HRESULT EnumTuningSpaces( - [out, retval] IEnumTuningSpaces** NewEnum - ); - - } - -////////////////////////////////////////////////////////////////////////////////////// -// Tuning Space Container -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - uuid(5B692E84-E2F1-11d2-9493-00C04F72D980), - dual, - oleautomation, - hidden, - nonextensible, - helpstring("Tuning Space Container Interface"), - pointer_default(unique) - ] - interface ITuningSpaceContainer : IDispatch - { - - [propget, helpstring("Number of items in the collection")] - HRESULT Count( - [out, retval] long *Count - ); - - [propget, id(DISPID_NEWENUM), hidden, restricted] - HRESULT _NewEnum( - [out, retval] IEnumVARIANT** NewEnum - ); - - [id(DISPID_VALUE), - propget, - helpstring("Find the Tuning Space with the specified Index")] - HRESULT Item( - [in] VARIANT varIndex, - [out, retval] ITuningSpace** TuningSpace - ); - [id(DISPID_VALUE), - propput, - helpstring("Change the Tuning Space with the specified Index")] - HRESULT Item([in] VARIANT varIndex, [in] ITuningSpace *TuningSpace); - - [helpstring("Returns the collection of Tuning Spaces with the same implementation")] - HRESULT TuningSpacesForCLSID( - [in] BSTR SpaceCLSID, - [out, retval] ITuningSpaces** NewColl - ); - - [hidden, restricted, - helpstring("Convenience Function for enumerating from C")] - HRESULT _TuningSpacesForCLSID( - [in] REFCLSID SpaceCLSID, - [out, retval] ITuningSpaces** NewColl - ); - - [helpstring("Returns the collection of Tuning Spaces matching the name")] - HRESULT TuningSpacesForName( - [in] BSTR Name, - [out, retval] ITuningSpaces** NewColl - ); - - [helpstring("Find Local ID Number of the specified Tuning Space")] - HRESULT FindID( - [in] ITuningSpace *TuningSpace, - [out, retval] long *ID - ); - - - [id(DISPID_ADDITEM), - helpstring("Add a new Tuning Space to the collection. This tuning space will be persisted unless removed")] - HRESULT Add( - [in] ITuningSpace* TuningSpace, - [out, retval] VARIANT* NewIndex - ); - - [propget, hidden, restricted, helpstring("Convenience Function for enumerating collection from C")] - HRESULT EnumTuningSpaces( - [out, retval] IEnumTuningSpaces **ppEnum - ); - - [id(DISPID_REMOVEITEM), - helpstring("Remove a Tuning Space from the collection. this tuning space will be deleted from the registry")] - HRESULT Remove( - [in] VARIANT Index - ); - - [propget, helpstring("Maximum number of items allowed in the collection")] - HRESULT MaxCount( - [out, retval] long *MaxCount - ); - - // we don't allow script to set this, but we do allow c code to change it. - [propput, hidden, restricted, helpstring("Maximum number of items allowed in the collection")] - HRESULT MaxCount( - [in] long MaxCount - ); - - } - -////////////////////////////////////////////////////////////////////////////////////// -// Tuning Space Interfaces -////////////////////////////////////////////////////////////////////////////////////// - -// note: the network type is the clsid of the tuning space implementation - [ - object, - uuid(061C6E30-E622-11d2-9493-00C04F72D980), - dual, - oleautomation, - nonextensible, - helpstring("Tuning Space Interface"), - pointer_default(unique) - ] - interface ITuningSpace : IDispatch - { - [propget, id(DISPID_TUNER_TS_UNIQUENAME), - helpstring("Unique name of the Tuning Space")] - HRESULT UniqueName( - [out, retval] BSTR *Name - ); - - [propput, id(DISPID_TUNER_TS_UNIQUENAME), - helpstring("Unique name of the Tuning Space")] - HRESULT UniqueName( - [in] BSTR Name - ); - - [propget, id(DISPID_TUNER_TS_FRIENDLYNAME), - helpstring("User-friendly name of the Tuning Space")] - HRESULT FriendlyName( - [out, retval] BSTR *Name - ); - - [propput, id(DISPID_TUNER_TS_FRIENDLYNAME), - helpstring("User-friendly name of the Tuning Space")] - HRESULT FriendlyName( - [in] BSTR Name - ); - - [propget, id(DISPID_TUNER_TS_CLSID), - helpstring("Returns the clsid of the tuning space implementation. provides script access to IPersist:GetClassID")] - HRESULT CLSID( - [out, retval] BSTR* SpaceCLSID - ); - - [propget, id(DISPID_TUNER_TS_NETWORKTYPE), - helpstring("Network Type (Network Proivder CLSID)")] - HRESULT NetworkType( - [out, retval] BSTR *NetworkTypeGuid - ); - [propput, id(DISPID_TUNER_TS_NETWORKTYPE), - helpstring("Network Type (Network Proivder CLSID)")] - HRESULT NetworkType( - [in] BSTR NetworkTypeGuid - ); - - [propget, id(DISPID_TUNER_TS__NETWORKTYPE), - helpstring("Network Type (Network Proivder CLSID)"), hidden, restricted] - HRESULT _NetworkType( - [out, retval] GUID* NetworkTypeGuid - ); - [propput, id(DISPID_TUNER_TS__NETWORKTYPE), - helpstring("Network Type (Network Proivder CLSID)"), hidden, restricted] - HRESULT _NetworkType( - [in] REFCLSID NetworkTypeGuid - ); - - // this method creates the "best" kind of tune request for this tuning space. - // the tuning space may support other kinds of tune requests created via - // other factory mechanisms(for example, see mpeg2tunerequestfactory). but, - // this method is the preferred way to get a tune request as it always returns - // the optimal type of tune request for this space. - [id(DISPID_TUNER_TS_CREATETUNEREQUEST), - helpstring("Create a Tune Request object")] - HRESULT CreateTuneRequest( - [out, retval] ITuneRequest **TuneRequest - ); - - [id(DISPID_TUNER_TS_ENUMCATEGORYGUIDS), hidden, restricted] - HRESULT EnumCategoryGUIDs( - [out, retval] IEnumGUID **ppEnum - ); - - [id(DISPID_TUNER_TS_ENUMDEVICEMONIKERS), hidden, restricted] - HRESULT EnumDeviceMonikers( - [out, retval] IEnumMoniker **ppEnum - ); - - [propget, id(DISPID_TUNER_TS_DEFAULTPREFERREDCOMPONENTTYPES)] - HRESULT DefaultPreferredComponentTypes( - [out, retval] IComponentTypes** ComponentTypes - ); - [propput, id(DISPID_TUNER_TS_DEFAULTPREFERREDCOMPONENTTYPES)] - HRESULT DefaultPreferredComponentTypes( - [in] IComponentTypes* NewComponentTypes - ); - - // the following property is for the network providers to store frequency/channel maps, frequency/transponder maps - // or whatever other mapping from carrier frequencies to frequency identifiers are appropriate for the tuning space - // in question. the bstr is treated as a binary blob. it is expected to contain embedded nulls, and it may be formatted - // internally in whatever fashion the network provider sees fit. - [propget, id(DISPID_TUNER_TS_FREQMAP)] - HRESULT FrequencyMapping([out, retval] BSTR *pMapping); - [propput, id(DISPID_TUNER_TS_FREQMAP)] - HRESULT FrequencyMapping(BSTR Mapping); - - // the following property provides a starting point for the initial IScanningTuner after installation - [propget, id(DISPID_TUNER_TS_DEFLOCATOR)] - HRESULT DefaultLocator([out, retval] ILocator **LocatorVal); - [propput, id(DISPID_TUNER_TS_DEFLOCATOR)] - HRESULT DefaultLocator([in]ILocator *LocatorVal); - - HRESULT Clone([out, retval] ITuningSpace **NewTS); - } - -////////////////////////////////////////////////////////////////////////////////////// - [ - hidden, - restricted, - object, - uuid(8B8EB248-FC2B-11d2-9D8C-00C04F72D980), - pointer_default(unique) - ] - interface IEnumTuningSpaces : IUnknown - { - HRESULT Next( - [in] ULONG celt, - [out, size_is(celt), length_is(*pceltFetched)] - ITuningSpace** rgelt, - [out] ULONG* pceltFetched - ); - - HRESULT Skip( - [in] ULONG celt - ); - - HRESULT Reset(void); - - HRESULT Clone( - [out] IEnumTuningSpaces** ppEnum - ); - } - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - dual, - oleautomation, - nonextensible, - uuid(ADA0B268-3B19-4e5b-ACC4-49F852BE13BA), - pointer_default(unique) - ] - interface IDVBTuningSpace : ITuningSpace - { - [propget, id(DISPID_TUNER_TS_DVB_SYSTEMTYPE), - helpstring("Type of DVB System") - ] - HRESULT SystemType( - [out, retval] DVBSystemType *SysType - ); - [propput, id(DISPID_TUNER_TS_DVB_SYSTEMTYPE), - helpstring("Type of DVB System") - ] - HRESULT SystemType( - [in] DVBSystemType SysType - ); - - } - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - dual, - oleautomation, - nonextensible, - uuid(843188B4-CE62-43db-966B-8145A094E040), - pointer_default(unique) - ] - interface IDVBTuningSpace2 : IDVBTuningSpace - { - [propget, id(DISPID_TUNER_TS_DVB2_NETWORK_ID), - helpstring("Network ID of DVB System") - ] - HRESULT NetworkID( - [out, retval] long *NetworkID - ); - [propput, id(DISPID_TUNER_TS_DVB2_NETWORK_ID), - helpstring("Network ID of DVB System") - ] - HRESULT NetworkID( - [in] long NetworkID - ); - - } - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - dual, - oleautomation, - nonextensible, - uuid(CDF7BE60-D954-42fd-A972-78971958E470), - pointer_default(unique) - ] - interface IDVBSTuningSpace : IDVBTuningSpace2 - { - - [propget, id(DISPID_TUNER_TS_DVBS_LOW_OSC_FREQ), - helpstring("Low Oscillator Frequency of DVB System in KHZ units") - ] - HRESULT LowOscillator( - [out, retval] long *LowOscillator - ); - [propput, id(DISPID_TUNER_TS_DVBS_LOW_OSC_FREQ), - helpstring("Low Oscillator Frequency of DVB System in KHZ units") - ] - HRESULT LowOscillator( - [in] long LowOscillator - ); - [propget, id(DISPID_TUNER_TS_DVBS_HI_OSC_FREQ), - helpstring("High Oscillator Frequency of DVB System in KHZ units") - ] - HRESULT HighOscillator( - [out, retval] long *HighOscillator - ); - [propput, id(DISPID_TUNER_TS_DVBS_HI_OSC_FREQ), - helpstring("High Oscillator Frequency of DVB System in KHZ units") - ] - HRESULT HighOscillator( - [in] long HighOscillator - ); - [propget, id(DISPID_TUNER_TS_DVBS_LNB_SWITCH_FREQ), - helpstring("LNB Switch Frequency of DVB System in KHZ units") - ] - HRESULT LNBSwitch( - [out, retval] long *LNBSwitch - ); - [propput, id(DISPID_TUNER_TS_DVBS_LNB_SWITCH_FREQ), - helpstring("LNB Switch Frequency of DVB System in KHZ units") - ] - HRESULT LNBSwitch( - [in] long LNBSwitch - ); - [propget, id(DISPID_TUNER_TS_DVBS_INPUT_RANGE), - helpstring("Which Option/Switch contains the requested signal source") - ] - HRESULT InputRange( - [out, retval] BSTR *InputRange - ); - [propput, id(DISPID_TUNER_TS_DVBS_INPUT_RANGE), - helpstring("Which Option/Switch contains the requested signal source") - ] - HRESULT InputRange( - [in] BSTR InputRange - ); - [propget, id(DISPID_TUNER_TS_DVBS_SPECTRAL_INVERSION), - helpstring("Which Option/Switch contains the requested signal source") - ] - HRESULT SpectralInversion( - [out, retval] SpectralInversion *SpectralInversionVal - ); - [propput, id(DISPID_TUNER_TS_DVBS_SPECTRAL_INVERSION), - helpstring("Which Option/Switch contains the requested signal source") - ] - HRESULT SpectralInversion( - [in] SpectralInversion SpectralInversionVal - ); - - - } - - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - dual, - oleautomation, - nonextensible, - uuid(E48244B8-7E17-4f76-A763-5090FF1E2F30), - pointer_default(unique) - ] - interface IAuxInTuningSpace : ITuningSpace - { - } -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - dual, - oleautomation, - nonextensible, - uuid(2A6E293C-2595-11d3-B64C-00C04F79498E), - pointer_default(unique) - ] - interface IAnalogTVTuningSpace : ITuningSpace - { - [propget, id(DISPID_TUNER_TS_ATV_MINCHANNEL), - helpstring("Smallest channel number ever provided by this tuning space") - ] - HRESULT MinChannel( - [out, retval] long *MinChannelVal - ); - [propput, id(DISPID_TUNER_TS_ATV_MINCHANNEL), - helpstring("Smallest channel number ever provided by this tuning space") - ] - HRESULT MinChannel( - [in] long NewMinChannelVal - ); - [propget, id(DISPID_TUNER_TS_ATV_MAXCHANNEL), - helpstring("Largest channel number ever provided by this tuning space") - ] - HRESULT MaxChannel( - [out, retval] long *MaxChannelVal - ); - [propput, id(DISPID_TUNER_TS_ATV_MAXCHANNEL), - helpstring("Largest channel number ever provided by this tuning space") - ] - HRESULT MaxChannel( - [in] long NewMaxChannelVal - ); - [propget, id(DISPID_TUNER_TS_ATV_INPUTTYPE), - helpstring("Input type for this tuning space") - ] - HRESULT InputType([out, retval] TunerInputType *InputTypeVal); - [propput, id(DISPID_TUNER_TS_ATV_INPUTTYPE), - helpstring("Input type for this tuning space") - ] - HRESULT InputType([in] TunerInputType NewInputTypeVal); - [propget, id(DISPID_TUNER_TS_ATV_COUNTRYCODE), - helpstring("International dialing prefix for country of physical broadcast source") - ] - HRESULT CountryCode([out, retval] long *CountryCodeVal); - [propput, id(DISPID_TUNER_TS_ATV_COUNTRYCODE), - helpstring("International dialing prefix for country of physical broadcast source") - ] - HRESULT CountryCode([in] long NewCountryCodeVal); - } - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - dual, - oleautomation, - nonextensible, - uuid(0369B4E2-45B6-11d3-B650-00C04F79498E), - pointer_default(unique) - ] -// note: we inherit ATSC from analog because we need the same properties. -// - the definition of channel is overloaded to be the major channel, -// - input type allows us to distinguish between broadcast and cable frequencies -// which allows us to use the atsc tuning space class for "open cable". -// - country code will allow us to redefine physical channel frequencies -// if any other countries adopt ATSC which may happen in Latin America in particular. - interface IATSCTuningSpace : IAnalogTVTuningSpace - { - [propget, id(DISPID_TUNER_TS_ATSC_MINMINORCHANNEL), - helpstring("Smallest minor channel number ever provided by this tuning space") - ] - HRESULT MinMinorChannel( - [out, retval] long *MinMinorChannelVal - ); - [propput, id(DISPID_TUNER_TS_ATSC_MINMINORCHANNEL), - helpstring("Smallest minor channel number ever provided by this tuning space") - ] - HRESULT MinMinorChannel( - [in] long NewMinMinorChannelVal - ); - [propget, id(DISPID_TUNER_TS_ATSC_MAXMINORCHANNEL), - helpstring("Largest minor channel number ever provided by this tuning space") - ] - HRESULT MaxMinorChannel( - [out, retval] long *MaxMinorChannelVal - ); - [propput, id(DISPID_TUNER_TS_ATSC_MAXMINORCHANNEL), - helpstring("Largest minor channel number ever provided by this tuning space") - ] - HRESULT MaxMinorChannel( - [in] long NewMaxMinorChannelVal - ); - [propget, id(DISPID_TUNER_TS_ATSC_MINPHYSCHANNEL), - helpstring("Smallest physical channel number ever provided by this tuning space") - ] - HRESULT MinPhysicalChannel( - [out, retval] long *MinPhysicalChannelVal - ); - [propput, id(DISPID_TUNER_TS_ATSC_MINPHYSCHANNEL), - helpstring("Smallest physical channel number ever provided by this tuning space") - ] - HRESULT MinPhysicalChannel( - [in] long NewMinPhysicalChannelVal - ); - [propget, id(DISPID_TUNER_TS_ATSC_MAXPHYSCHANNEL), - helpstring("Largest physical channel number ever provided by this tuning space") - ] - HRESULT MaxPhysicalChannel( - [out, retval] long *MaxPhysicalChannelVal - ); - [propput, id(DISPID_TUNER_TS_ATSC_MAXPHYSCHANNEL), - helpstring("Largest physical channel number ever provided by this tuning space") - ] - HRESULT MaxPhysicalChannel( - [in] long NewMaxPhysicalChannelVal - ); - - } - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - dual, - oleautomation, - nonextensible, - uuid(2A6E293B-2595-11d3-B64C-00C04F79498E), - pointer_default(unique) - ] - interface IAnalogRadioTuningSpace : ITuningSpace { - [propget, id(DISPID_TUNER_TS_AR_MINFREQUENCY), - helpstring("Smallest frequency(KHz) ever used by this tuning space") - ] - HRESULT MinFrequency( - [out, retval] long *MinFrequencyVal - ); - [propput, id(DISPID_TUNER_TS_AR_MINFREQUENCY), - helpstring("Smallest frequency(KHz) ever used by this tuning space") - ] - HRESULT MinFrequency( - [in] long NewMinFrequencyVal - ); - [propget, id(DISPID_TUNER_TS_AR_MAXFREQUENCY), - helpstring("Largest frequency(KHz) ever used by this tuning space") - ] - HRESULT MaxFrequency( - [out, retval] long *MaxFrequencyVal - ); - [propput, id(DISPID_TUNER_TS_AR_MAXFREQUENCY), - helpstring("Largest frequency(KHz) ever used by this tuning space") - ] - HRESULT MaxFrequency( - [in] long NewMaxFrequencyVal - ); - [propget, id(DISPID_TUNER_TS_AR_STEP), - helpstring("Default step value(KHz) to next frequency for this tuning space") - ] - HRESULT Step( - [out, retval] long *StepVal - ); - [propput, id(DISPID_TUNER_TS_AR_STEP), - helpstring("Default step value(KHz) to next frequency for this tuning space") - ] - HRESULT Step( - [in] long NewStepVal - ); - } - - -////////////////////////////////////////////////////////////////////////////////////// -// Tune Request Interfaces -////////////////////////////////////////////////////////////////////////////////////// -// tune requests(of any kind) can only be obtained from tune request factories such as -// ITuningSpace::CreateTuneRequest. one reason for this is that we always want to be -// certain that a tune request is bound to the right tuning space. this means we don't -// have to perform consistency checks all over the place. - [ - object, - nonextensible, - uuid(07DDC146-FC3D-11d2-9D8C-00C04F72D980), - dual, - oleautomation, - helpstring("Tune Request Interface"), - pointer_default(unique) - ] - interface ITuneRequest : IDispatch - { - [propget, id(DISPID_TUNER_TR_TUNINGSPACE), - helpstring("Tuning Space object")] - HRESULT TuningSpace( - [out, retval] ITuningSpace **TuningSpace - ); - [propget, id(DISPID_TUNER_TR_COMPONENTS), - helpstring("Components collection")] - HRESULT Components( - [out, retval] IComponents **Components - ); - [id(DISPID_TUNER_TR_CLONE), - helpstring("Create a new copy of this tune request")] - HRESULT Clone( - [out, retval] ITuneRequest **NewTuneRequest - ); - [propget, id(DISPID_TUNER_TR_LOCATOR), - helpstring("Locator Object")] - HRESULT Locator( - [out, retval] ILocator **Locator - ); - [propput, id(DISPID_TUNER_TR_LOCATOR), - helpstring("Locator Object")] - HRESULT Locator( - [in] ILocator *Locator - ); - } - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - nonextensible, - uuid(0369B4E0-45B6-11d3-B650-00C04F79498E), - dual, - oleautomation, - helpstring("Channel Tune Request Interface"), - pointer_default(unique) - ] - interface IChannelTuneRequest : ITuneRequest - { - [propget, id(DISPID_CHTUNER_CTR_CHANNEL), - helpstring("Channel")] - HRESULT Channel( - [out, retval] long *Channel - ); - [propput, id(DISPID_CHTUNER_CTR_CHANNEL), - helpstring("Channel")] - HRESULT Channel( - [in] long Channel - ); - } - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - nonextensible, - uuid(0369B4E1-45B6-11d3-B650-00C04F79498E), - dual, - oleautomation, - helpstring("ATSC Channel Tune Request Interface"), - pointer_default(unique) - ] - interface IATSCChannelTuneRequest : IChannelTuneRequest - { - [propget, id(DISPID_CHTUNER_ACTR_MINOR_CHANNEL), - helpstring("Minor Channel")] - HRESULT MinorChannel( - [out, retval] long *MinorChannel - ); - [propput, id(DISPID_CHTUNER_ACTR_MINOR_CHANNEL), - helpstring("Minor Channel")] - HRESULT MinorChannel( - [in] long MinorChannel - ); - } - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - nonextensible, - uuid(0D6F567E-A636-42bb-83BA-CE4C1704AFA2), - dual, - oleautomation, - helpstring("DVB Tune Request Interface"), - pointer_default(unique) - ] - interface IDVBTuneRequest : ITuneRequest - { - [propget, id(DISPID_DVBTUNER_ONID), - helpstring("Original Network ID")] - HRESULT ONID( - [out, retval] long *ONID - ); - [propput, id(DISPID_DVBTUNER_ONID), - helpstring("Original Network ID")] - HRESULT ONID( - [in] long ONID - ); - [propget, id(DISPID_DVBTUNER_TSID), - helpstring("Transport Stream ID")] - HRESULT TSID( - [out, retval] long *TSID - ); - [propput, id(DISPID_DVBTUNER_TSID), - helpstring("Transport Stream ID")] - HRESULT TSID( - [in] long TSID - ); - [propget, id(DISPID_DVBTUNER_SID), - helpstring("Service ID")] - HRESULT SID( - [out, retval] long *SID - ); - [propput, id(DISPID_DVBTUNER_SID), - helpstring("Service ID")] - HRESULT SID( - [in] long SID - ); - } - -////////////////////////////////////////////////////////////////////////////////////// -/// There are times(for example, reading from a file) when its useful to be able to tune -/// a basic mpeg2 transport stream that contains minimal tables. this requires the least -/// common denominator mpeg2 xport stream id information -/// the following tune request supplies these properties. it can typiclly only be obtained from -/// an mpeg2tunerequestfactory object. no known tune request(at this time) will return this -/// from their createtunerequest() method. in other words, this is not the "best" tune request -/// for any of the current tuning spaces. -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - nonextensible, - uuid(EB7D987F-8A01-42ad-B8AE-574DEEE44D1A), - dual, - oleautomation, - helpstring("MPEG2 Tune Request Interface"), - pointer_default(unique) - ] - interface IMPEG2TuneRequest : ITuneRequest - { - [propget, id(DISPID_MP2TUNER_TSID), - helpstring("Transport Stream ID")] - HRESULT TSID( - [out, retval] long *TSID - ); - [propput, id(DISPID_MP2TUNER_TSID), - helpstring("Transport Stream ID")] - HRESULT TSID( - [in] long TSID - ); - [propget, id(DISPID_MP2TUNER_PROGNO), - helpstring("Program Number ID")] - HRESULT ProgNo( - [out, retval] long *ProgNo - ); - [propput, id(DISPID_MP2TUNER_PROGNO), - helpstring("Program Number ID")] - HRESULT ProgNo( - [in] long ProgNo - ); - } - - [ - object, - nonextensible, - hidden, - uuid(14E11ABD-EE37-4893-9EA1-6964DE933E39), - dual, - oleautomation, - helpstring("MPEG2 Tune Request Factory Interface"), - pointer_default(unique) - ] - interface IMPEG2TuneRequestFactory : IDispatch - { - [id(DISPID_MP2TUNERFACTORY_CREATETUNEREQUEST), - helpstring("Create MPEG2 Tune Request for specified tuning space(if possible)")] - HRESULT CreateTuneRequest( - [in] ITuningSpace *TuningSpace, - [out, retval] IMPEG2TuneRequest **TuneRequest - ); - } - - [ - object, - hidden, - restricted, - nonextensible, - uuid(1B9D5FC3-5BBC-4b6c-BB18-B9D10E3EEEBF), - helpstring("MPEG2 Tune Request Supported Interface"), - pointer_default(unique) - ] - interface IMPEG2TuneRequestSupport : IUnknown - { - } - - -////////////////////////////////////////////////////////////////////////////////////// -// Tuner Interfaces -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - nonextensible, - uuid(28C52640-018A-11d3-9D8E-00C04F72D980), - helpstring("Tuner Interface"), - pointer_default(unique) - ] - interface ITuner : IUnknown - { - [propget, helpstring("Tuning Space object")] - HRESULT TuningSpace( - [out, retval] ITuningSpace **TuningSpace - ); - - [propput, helpstring("Tuning Space object")] - HRESULT TuningSpace( - [in] ITuningSpace *TuningSpace - ); - - [hidden, restricted, helpstring("Returns an enumerator for Tuning Spaces accepted by this tuner")] - HRESULT EnumTuningSpaces( - [out, retval] IEnumTuningSpaces **ppEnum - ); - - [propget, helpstring("Tune Request object")] - HRESULT TuneRequest( - [out, retval] ITuneRequest **TuneRequest - ); - - [propput, helpstring("Tune Request object")] - HRESULT TuneRequest( - [in] ITuneRequest *TuneRequest - ); - - [helpstring("Validate the tuning request without tuning")] - HRESULT Validate( - [in] ITuneRequest *TuneRequest - ); - - [propget, helpstring("Preferred Component Types collection")] - HRESULT PreferredComponentTypes( - [out, retval] IComponentTypes **ComponentTypes - ); - - [propput, helpstring("Preferred Component Types collection")] - HRESULT PreferredComponentTypes( - [in] IComponentTypes *ComponentTypes - ); - - [propget, helpstring("Signal Strength")] - HRESULT SignalStrength( - [out, retval] long *Strength - ); - - [helpstring("Trigger Signal events (interval in milliseconds; 0 turns off trigger)")] - HRESULT TriggerSignalEvents( - [in] long Interval - ); - } - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - nonextensible, - uuid(1DFD0A5C-0284-11d3-9D8E-00C04F72D980), - helpstring("Scanning Tuner Interface"), - pointer_default(unique) - ] - interface IScanningTuner : ITuner - { - [helpstring("Seek to the next valid selection")] - HRESULT SeekUp( - ); - - [helpstring("Seek to the previous valid selection")] - HRESULT SeekDown( - ); - - [helpstring("Scan for valid selections upward")] - HRESULT ScanUp( - [in] long MillisecondsPause - ); - - [helpstring("Scan for valid selections downward")] - HRESULT ScanDown( - [in] long MillisecondsPause - ); - - [helpstring("Enter the device's autoprogram mode")] - HRESULT AutoProgram( - ); - }; - -////////////////////////////////////////////////////////////////////////////////////// -// Component Type Interfaces -////////////////////////////////////////////////////////////////////////////////////// - - // Component Category - - [ - object, - hidden, - nonextensible, - uuid(6A340DC0-0311-11d3-9D8E-00C04F72D980), - dual, - oleautomation, - helpstring("Component Type Interface"), - pointer_default(unique) - ] - interface IComponentType : IDispatch - { - [propget, id(DISPID_TUNER_CT_CATEGORY), - helpstring("General category of component")] - HRESULT Category( - [out, retval] ComponentCategory *Category - ); - [propput, id(DISPID_TUNER_CT_CATEGORY), - helpstring("General category of component")] - HRESULT Category( - [in] ComponentCategory Category - ); - - [propget, id(DISPID_TUNER_CT_MEDIAMAJORTYPE), - helpstring("DirectShow MediaType Major Type Guid")] - HRESULT MediaMajorType( - [out, retval] BSTR *MediaMajorType - ); - [propput, id(DISPID_TUNER_CT_MEDIAMAJORTYPE), - helpstring("DirectShow MediaType Major Type Guid")] - HRESULT MediaMajorType( - [in] BSTR MediaMajorType - ); - [propget, id(DISPID_TUNER_CT__MEDIAMAJORTYPE), - helpstring("DirectShow MediaType Major Type Guid"), hidden, restricted] - HRESULT _MediaMajorType( - [out, retval] GUID* MediaMajorTypeGuid - ); - [propput, id(DISPID_TUNER_CT__MEDIAMAJORTYPE), - helpstring("DirectShow MediaType Major Type Guid"), hidden, restricted] - HRESULT _MediaMajorType( - [in] REFCLSID MediaMajorTypeGuid - ); - [propget, id(DISPID_TUNER_CT_MEDIASUBTYPE), - helpstring("DirectShow MediaType Sub Type Guid")] - HRESULT MediaSubType( - [out, retval] BSTR *MediaSubType - ); - [propput, id(DISPID_TUNER_CT_MEDIASUBTYPE), - helpstring("DirectShow MediaType Sub Type Guid")] - HRESULT MediaSubType( - [in] BSTR MediaSubType - ); - [propget, id(DISPID_TUNER_CT__MEDIASUBTYPE), - helpstring("DirectShow MediaType Sub Type Guid"), hidden, restricted] - HRESULT _MediaSubType( - [out, retval] GUID* MediaSubTypeGuid - ); - [propput, id(DISPID_TUNER_CT__MEDIASUBTYPE), - helpstring("DirectShow MediaType Sub Type Guid"), hidden, restricted] - HRESULT _MediaSubType( - [in] REFCLSID MediaSubTypeGuid - ); - [propget, id(DISPID_TUNER_CT_MEDIAFORMATTYPE), - helpstring("DirectShow MediaType Format Guid")] - HRESULT MediaFormatType( - [out, retval] BSTR *MediaFormatType - ); - [propput, id(DISPID_TUNER_CT_MEDIAFORMATTYPE), - helpstring("DirectShow MediaType Format Guid")] - HRESULT MediaFormatType( - [in] BSTR MediaFormatType - ); - [propget, id(DISPID_TUNER_CT__MEDIAFORMATTYPE), - helpstring("DirectShow MediaType Format Guid"), hidden, restricted] - HRESULT _MediaFormatType( - [out, retval] GUID* MediaFormatTypeGuid - ); - [propput, id(DISPID_TUNER_CT__MEDIAFORMATTYPE), - helpstring("DirectShow MediaType Format Guid"), hidden, restricted] - HRESULT _MediaFormatType( - [in] REFCLSID MediaFormatTypeGuid - ); - - [propget, id(DISPID_TUNER_CT_MEDIATYPE), hidden, restricted, - helpstring("DirectShow MediaType Guid, this only retrieves major, sub, format guids not the entire struct")] - HRESULT MediaType( - [out, retval] AM_MEDIA_TYPE *MediaType - ); - [propput, id(DISPID_TUNER_CT_MEDIATYPE), hidden, restricted, - helpstring("DirectShow MediaType Guid, this only retrieves major, sub, format guids not the entire struct")] - HRESULT MediaType( - [in] AM_MEDIA_TYPE *MediaType - ); - - [id(DISPID_TUNER_CT_CLONE), - helpstring("Create a copy of this component type")] - HRESULT Clone( - [out, retval] IComponentType **NewCT - ); - }; - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - nonextensible, - uuid(B874C8BA-0FA2-11d3-9D8E-00C04F72D980), - dual, - oleautomation, - helpstring("Language Component Type Interface"), - pointer_default(unique) - ] - interface ILanguageComponentType : IComponentType - { - [propget, id(DISPID_TUNER_LCT_LANGID), - helpstring("Language Identifier for Substream Content Language")] - HRESULT LangID( - [out, retval] long *LangID - ); - - [propput, id(DISPID_TUNER_LCT_LANGID), - helpstring("Language Identifier for Substream Content Language")] - HRESULT LangID( - [in] long LangID - ); - }; - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - nonextensible, - uuid(2C073D84-B51C-48c9-AA9F-68971E1F6E38), - dual, - oleautomation, - helpstring("MPEG2 Component Type Interface"), - pointer_default(unique) - ] - interface IMPEG2ComponentType : ILanguageComponentType - { - [propget, id(DISPID_TUNER_MP2CT_TYPE), - helpstring("MPEG2 Stream Type")] - HRESULT StreamType( - [out, retval] MPEG2StreamType *MP2StreamType - ); - - [propput, id(DISPID_TUNER_MP2CT_TYPE), - helpstring("MPEG2 Stream Type")] - HRESULT StreamType( - [in] MPEG2StreamType MP2StreamType - ); - }; - -////////////////////////////////////////////////////////////////////////////////////// - - [ - object, - hidden, - nonextensible, - uuid(FC189E4D-7BD4-4125-B3B3-3A76A332CC96), - dual, - oleautomation, - helpstring("ATSC Component Type Interface"), - pointer_default(unique) - ] - interface IATSCComponentType : IMPEG2ComponentType - { - [propget, id(DISPID_TUNER_ATSCCT_FLAGS), - helpstring("ATSC Component Type Flags")] - HRESULT Flags( - [out, retval] long *Flags - ); - - [propput, id(DISPID_TUNER_ATSCCT_FLAGS), - helpstring("ATSC Component Type Flags")] - HRESULT Flags( - [in] long flags - ); - }; - -////////////////////////////////////////////////////////////////////////////////////// - [ - hidden, restricted, - object, - uuid(8A674B4A-1F63-11d3-B64C-00C04F79498E), - pointer_default(unique) - ] - interface IEnumComponentTypes : IUnknown - { - HRESULT Next( - [in] ULONG celt, - [out, size_is(celt), length_is(*pceltFetched)] - IComponentType** rgelt, - [out] ULONG* pceltFetched - ); - - HRESULT Skip( - [in] ULONG celt - ); - - HRESULT Reset(void); - - HRESULT Clone( - [out] IEnumComponentTypes** ppEnum - ); - } - - -////////////////////////////////////////////////////////////////////////////////////// -// Component Type Container -////////////////////////////////////////////////////////////////////////////////////// - - [ - object, - hidden, - nonextensible, - uuid(0DC13D4A-0313-11d3-9D8E-00C04F72D980), - dual, - oleautomation, - helpstring("ComponentType Collection Interface"), - pointer_default(unique) - ] - interface IComponentTypes : IDispatch - { - [propget, helpstring("Number of items in the collection")] - HRESULT Count( - [out, retval] long *Count - ); - - [propget, id(DISPID_NEWENUM), hidden, restricted] - HRESULT _NewEnum( - [out, retval] IEnumVARIANT **ppNewEnum - ); - - [hidden, restricted, helpstring("Convenience Function for Use with C")] - HRESULT EnumComponentTypes( - [out, retval] IEnumComponentTypes **ppNewEnum - ); - - [id(DISPID_VALUE), - propget, - helpstring("Get the ComponentType at the specified index")] - HRESULT Item( - [in] VARIANT Index, - [out, retval] IComponentType **ComponentType - ); - - [id(DISPID_VALUE), - propput, - helpstring("Get the ComponentType at the specified index")] - HRESULT Item( - [in] VARIANT Index, - [in] IComponentType *ComponentType - ); - - [id(DISPID_ADDITEM), - helpstring("Append the ComponentType to the collection")] - HRESULT Add( - [in] IComponentType *ComponentType, - [out, retval] VARIANT *NewIndex - ); - - [id(DISPID_REMOVEITEM), - helpstring("Clear the collection")] - HRESULT Remove( - [in] VARIANT Index - ); - - [helpstring("Copy the collection")] - HRESULT Clone([out, retval] IComponentTypes **NewList); - }; - -////////////////////////////////////////////////////////////////////////////////////// -// Component Interfaces -////////////////////////////////////////////////////////////////////////////////////// - - [ - object, - nonextensible, - uuid(1A5576FC-0E19-11d3-9D8E-00C04F72D980), - dual, - oleautomation, - helpstring("Component Interface"), - pointer_default(unique) - ] - interface IComponent : IDispatch - { - [propget, id(DISPID_TUNER_C_TYPE), - helpstring("Component Type")] - HRESULT Type( - [out, retval] IComponentType** CT - ); - - // only loaders initialize components - [hidden, restricted, propput, id(DISPID_TUNER_C_TYPE), - helpstring("Component Type")] - HRESULT Type( - [in] IComponentType* CT - ); - - // NOTE: this langid is *not* the same as the langid - // in the componenttype(if the componenttype is a languagecomponenttype) - // the langid in the component type is the language of the content this - // component is describing. the following langid in the component is the - // language of the descriptive info in the component object. - [propget, id(DISPID_TUNER_C_LANGID), - helpstring("Language Identifier for Description Language")] - HRESULT DescLangID( - [out, retval] long *LangID - ); - - [propput, id(DISPID_TUNER_C_LANGID), - helpstring("Language Identifier for Description Language")] - HRESULT DescLangID( - [in] long LangID - ); - - [propget, id(DISPID_TUNER_C_STATUS), - helpstring("Component Status")] - HRESULT Status( - [out, retval] ComponentStatus *Status - ); - - [propput, id(DISPID_TUNER_C_STATUS), - helpstring("Component Status")] - HRESULT Status( - [in] ComponentStatus Status - ); - - [propget, id(DISPID_TUNER_C_DESCRIPTION), - helpstring("Component Description")] - HRESULT Description( - [out, retval] BSTR *Description - ); - - // restricted: only loaders will initialize components - [hidden, restricted, propput, id(DISPID_TUNER_C_DESCRIPTION), - helpstring("Component Description")] - HRESULT Description( - [in] BSTR Description - ); - - [id(DISPID_TUNER_C_CLONE), - helpstring("Copy Component")] - HRESULT Clone( - [out, retval] IComponent **NewComponent - ); - - }; - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - nonextensible, - uuid(1493E353-1EB6-473c-802D-8E6B8EC9D2A9), - dual, - oleautomation, - helpstring("MPEG2 Component Interface"), - pointer_default(unique) - ] - interface IMPEG2Component : IComponent - { - [propget, id(DISPID_TUNER_C_MP2_PID), - helpstring("MPEG2 Packet ID for this Substream")] - HRESULT PID( - [out, retval] long *PID - ); - - [propput, id(DISPID_TUNER_C_MP2_PID), - helpstring("MPEG2 Packet ID for this Substream")] - HRESULT PID( - [in] long PID - ); - [propget, id(DISPID_TUNER_C_MP2_PCRPID), - helpstring("MPEG2 Packet ID for this Substream's Timestamps")] - HRESULT PCRPID( - [out, retval] long *PCRPID - ); - - [propput, id(DISPID_TUNER_C_MP2_PCRPID), - helpstring("MPEG2 Packet ID for this Substream's Timestamps")] - HRESULT PCRPID( - [in] long PCRPID - ); - - // program number provides reverse lookup to PAT - [propget, id(DISPID_TUNER_C_MP2_PROGNO), - helpstring("MPEG2 Program Number")] - HRESULT ProgramNumber( - [out, retval] long *ProgramNumber - ); - - [propput, id(DISPID_TUNER_C_MP2_PROGNO), - helpstring("MPEG2 Program Number")] - HRESULT ProgramNumber( - [in] long ProgramNumber - ); - }; - -////////////////////////////////////////////////////////////////////////////////////// - [ - hidden, restricted, - object, - uuid(2A6E2939-2595-11d3-B64C-00C04F79498E), - pointer_default(unique) - ] - interface IEnumComponents : IUnknown - { - HRESULT Next( - [in] ULONG celt, - [out, size_is(celt), length_is(*pceltFetched)] - IComponent** rgelt, - [out] ULONG* pceltFetched - ); - - HRESULT Skip( - [in] ULONG celt - ); - - HRESULT Reset(void); - - HRESULT Clone( - [out] IEnumComponents** ppEnum - ); - } - - -////////////////////////////////////////////////////////////////////////////////////// -// Component Container -////////////////////////////////////////////////////////////////////////////////////// - - [ - object, - nonextensible, - uuid(FCD01846-0E19-11d3-9D8E-00C04F72D980), - dual, - oleautomation, - helpstring("Component Collection Interface"), - pointer_default(unique) - ] - interface IComponents : IDispatch - { - [propget, helpstring("Number of items in the collection")] - HRESULT Count( - [out, retval] long *Count - ); - - [propget, id(DISPID_NEWENUM), hidden, restricted] - HRESULT _NewEnum( - [out, retval] IEnumVARIANT **ppNewEnum - ); - - [hidden, restricted, helpstring("Convenience Function for Use with C")] - HRESULT EnumComponents( - [out, retval] IEnumComponents **ppNewEnum - ); - - [id(DISPID_VALUE), - propget, - helpstring("Get the Component at the specified index")] - HRESULT Item( - [in] VARIANT Index, - [out, retval] IComponent **ppComponent - ); - - [id(DISPID_ADDITEM), - helpstring("Add the Component to the collection")] - HRESULT Add( - [in] IComponent *Component, - [out, retval] VARIANT *NewIndex - ); - - [id(DISPID_REMOVEITEM), - helpstring("Remove the Component at the specified index")] - HRESULT Remove( - [in] VARIANT Index - ); - - [helpstring("Copy the collection")] - HRESULT Clone([out, retval] IComponents **NewList); - }; - -////////////////////////////////////////////////////////////////////////////////////// -// Component Container -////////////////////////////////////////////////////////////////////////////////////// -// this separates the what(general tune request properties) from the where - - - - [ - object, - nonextensible, - uuid(286D7F89-760C-4F89-80C4-66841D2507AA), - dual, - oleautomation, - helpstring("Generic Locator Information"), - pointer_default(unique) - ] - interface ILocator : IDispatch - { - - [propget, id(DISPID_TUNER_L_CARRFREQ), helpstring("Carrier Frequency(KHz)")] - HRESULT CarrierFrequency( - [out, retval] long* Frequency - ); - [propput, id(DISPID_TUNER_L_CARRFREQ), helpstring("Carrier Frequency(KHz)")] - HRESULT CarrierFrequency( - [in] long Frequency - ); - [propget, id(DISPID_TUNER_L_INNERFECMETHOD), helpstring("Inner Fec Type")] - HRESULT InnerFEC( - [out, retval] FECMethod* FEC - ); - [propput, id(DISPID_TUNER_L_INNERFECMETHOD), helpstring("Inner Fec Type")] - HRESULT InnerFEC( - [in] FECMethod FEC - ); - [propget, id(DISPID_TUNER_L_INNERFECRATE), helpstring("Inner Fec Rate")] - HRESULT InnerFECRate( - [out, retval] BinaryConvolutionCodeRate* FEC - ); - [propput, id(DISPID_TUNER_L_INNERFECRATE), helpstring("Inner Fec Rate")] - HRESULT InnerFECRate( - [in] BinaryConvolutionCodeRate FEC - ); - [propget, id(DISPID_TUNER_L_OUTERFECMETHOD), helpstring("Outer Fec Type")] - HRESULT OuterFEC( - [out, retval] FECMethod* FEC - ); - [propput, id(DISPID_TUNER_L_OUTERFECMETHOD), helpstring("Outer Fec Type")] - HRESULT OuterFEC( - [in] FECMethod FEC - ); - [propget, id(DISPID_TUNER_L_OUTERFECRATE), helpstring("Outer Fec Rate")] - HRESULT OuterFECRate( - [out, retval] BinaryConvolutionCodeRate* FEC - ); - [propput, id(DISPID_TUNER_L_OUTERFECRATE), helpstring("Outer Fec Rate")] - HRESULT OuterFECRate( - [in] BinaryConvolutionCodeRate FEC - ); - [propget, id(DISPID_TUNER_L_MOD), helpstring("Modulation Type")] - HRESULT Modulation( - [out, retval] ModulationType* Modulation - ); - [propput, id(DISPID_TUNER_L_MOD), helpstring("Modulation Type")] - HRESULT Modulation( - [in] ModulationType Modulation - ); - [propget, id(DISPID_TUNER_L_SYMRATE), helpstring("Modulation Symbol Rate")] - HRESULT SymbolRate( - [out, retval] long* Rate - ); - [propput, id(DISPID_TUNER_L_SYMRATE), helpstring("Modulation Symbol Rate")] - HRESULT SymbolRate( - [in] long Rate - ); - [id(DISPID_TUNER_L_CLONE), helpstring("Copy the Locator")] - HRESULT Clone([out, retval] ILocator **NewLocator); - }; - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - nonextensible, - uuid(BF8D986F-8C2B-4131-94D7-4D3D9FCC21EF), - dual, - oleautomation, - helpstring("ATSC Locator Information"), - pointer_default(unique) - ] - interface IATSCLocator : ILocator - { - [propget, id(DISPID_TUNER_L_ATSC_PHYS_CHANNEL), - helpstring("Physical Channel")] - HRESULT PhysicalChannel( - [out, retval] long *PhysicalChannel - ); - [propput, id(DISPID_TUNER_L_ATSC_PHYS_CHANNEL), - helpstring("Physical Channel")] - HRESULT PhysicalChannel( - [in] long PhysicalChannel - ); - [propget, id(DISPID_TUNER_L_ATSC_TSID), - helpstring("Transport Stream ID")] - HRESULT TSID( - [out, retval] long *TSID - ); - [propput, id(DISPID_TUNER_L_ATSC_TSID), - helpstring("Transport Stream ID")] - HRESULT TSID( - [in] long TSID - ); - }; - -////////////////////////////////////////////////////////////////////////////////////// - - [ - object, - hidden, - nonextensible, - uuid(8664DA16-DDA2-42ac-926A-C18F9127C302), - dual, - oleautomation, - helpstring("DVB Terrestrial Locator Information"), - pointer_default(unique) - ] - interface IDVBTLocator : ILocator - { - [propget, id(DISPID_TUNER_L_DVBT_BANDWIDTH), helpstring("Bandwidth")] - HRESULT Bandwidth( - [out, retval] long* BandWidthVal - ); - [propput, id(DISPID_TUNER_L_DVBT_BANDWIDTH), helpstring("Bandwidth")] - HRESULT Bandwidth( - [in] long BandwidthVal - ); - - [propget, id(DISPID_TUNER_L_DVBT_LPINNERFECMETHOD), helpstring("Inner Fec Type for Low Priority Stream")] - HRESULT LPInnerFEC( - [out, retval] FECMethod* FEC - ); - [propput, id(DISPID_TUNER_L_DVBT_LPINNERFECMETHOD), helpstring("Inner Fec Type for Low Priority Stream")] - HRESULT LPInnerFEC( - [in] FECMethod FEC - ); - [propget, id(DISPID_TUNER_L_DVBT_LPINNERFECRATE), helpstring("Inner Fec Rate for Low Priority Stream")] - HRESULT LPInnerFECRate( - [out, retval] BinaryConvolutionCodeRate* FEC - ); - [propput, id(DISPID_TUNER_L_DVBT_LPINNERFECRATE), helpstring("Inner Fec Rate for Low Priority Stream")] - HRESULT LPInnerFECRate( - [in] BinaryConvolutionCodeRate FEC - ); - [propget, id(DISPID_TUNER_L_DVBT_HALPHA), helpstring("Hierarchical Alpha")] - HRESULT HAlpha( - [out, retval] HierarchyAlpha* Alpha - ); - [propput, id(DISPID_TUNER_L_DVBT_HALPHA), helpstring("Hierarchical Alpha")] - HRESULT HAlpha( - [in] HierarchyAlpha Alpha - ); - [propget, id(DISPID_TUNER_L_DVBT_GUARDINTERVAL), helpstring("Guard Interval")] - HRESULT Guard( - [out, retval] GuardInterval* GI - ); - [propput, id(DISPID_TUNER_L_DVBT_GUARDINTERVAL), helpstring("Guard Interval")] - HRESULT Guard( - [in] GuardInterval GI - ); - [propget, id(DISPID_TUNER_L_DVBT_TRANSMISSIONMODE), helpstring("Transmission Mode")] - HRESULT Mode( - [out, retval] TransmissionMode* mode - ); - [propput, id(DISPID_TUNER_L_DVBT_TRANSMISSIONMODE), helpstring("Transmission Mode")] - HRESULT Mode( - [in] TransmissionMode mode - ); - [propget, id(DISPID_TUNER_L_DVBT_INUSE), helpstring("Hierarchical Alpha")] - HRESULT OtherFrequencyInUse( - [out, retval] VARIANT_BOOL* OtherFrequencyInUseVal - ); - [propput, id(DISPID_TUNER_L_DVBT_INUSE), helpstring("Hierarchical Alpha")] - HRESULT OtherFrequencyInUse( - [in] VARIANT_BOOL OtherFrequencyInUseVal - ); - }; - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - nonextensible, - uuid(3D7C353C-0D04-45f1-A742-F97CC1188DC8), - dual, - oleautomation, - helpstring("DVB Satellite Locator Information"), - pointer_default(unique) - ] - interface IDVBSLocator : ILocator - { - - [propget, id(DISPID_TUNER_L_DVBS_POLARISATION), helpstring("Signal Polarisation Type")] - HRESULT SignalPolarisation( - [out, retval] Polarisation* PolarisationVal - ); - [propput, id(DISPID_TUNER_L_DVBS_POLARISATION), helpstring("Signal Polarisation Type")] - HRESULT SignalPolarisation( - [in] Polarisation PolarisationVal - ); - [propget, id(DISPID_TUNER_L_DVBS_WEST), helpstring("VARIANT_TRUE means orbital position specifies west longitude")] - HRESULT WestPosition( - [out, retval] VARIANT_BOOL* WestLongitude - ); - [propput, id(DISPID_TUNER_L_DVBS_WEST), helpstring("VARIANT_TRUE means orbital position specifies west longitude")] - HRESULT WestPosition( - [in] VARIANT_BOOL WestLongitude - ); - [propget, id(DISPID_TUNER_L_DVBS_ORBITAL), helpstring("Longitude in tenths of a degree")] - HRESULT OrbitalPosition( - [out, retval] long* longitude - ); - [propput, id(DISPID_TUNER_L_DVBS_ORBITAL), helpstring("Longitude in tenths of a degree")] - HRESULT OrbitalPosition( - [in] long longitude - ); - [propget, id(DISPID_TUNER_L_DVBS_AZIMUTH), helpstring("Azimuth in tenths of a degree")] - HRESULT Azimuth( - [out, retval] long* Azimuth - ); - [propput, id(DISPID_TUNER_L_DVBS_AZIMUTH), helpstring("Azimuth in tenths of a degree")] - HRESULT Azimuth( - [in] long Azimuth - ); - [propget, id(DISPID_TUNER_L_DVBS_ELEVATION), helpstring("Elevation in tenths of a degree")] - HRESULT Elevation( - [out, retval] long* Elevation - ); - [propput, id(DISPID_TUNER_L_DVBS_ELEVATION), helpstring("Elevation in tenths of a degree")] - HRESULT Elevation( - [in] long Elevation - ); - }; - -////////////////////////////////////////////////////////////////////////////////////// - [ - object, - hidden, - nonextensible, - uuid(6E42F36E-1DD2-43c4-9F78-69D25AE39034), - dual, - oleautomation, - helpstring("DVB Cable Locator Information"), - pointer_default(unique) - ] - interface IDVBCLocator : ILocator - { - }; - -/////////////////////////////////////////////////////////////////////////////////////// -// utility interfaces -/////////////////////////////////////////////////////////////////////////////////////// - - [ - object, - hidden, - nonextensible, - uuid(3B21263F-26E8-489d-AAC4-924F7EFD9511), - helpstring("Broadcast Event Service Firing/Reflecting Interface"), - pointer_default(unique) - ] - interface IBroadcastEvent : IUnknown - { - HRESULT Fire(GUID EventID); - }; - - -////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////// -// TYPELIB & CoClasses -////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////// -[ - uuid(9B085638-018E-11d3-9D8E-00C04F72D980), - version(1.0), - helpstring("Microsoft Tuner 1.0 Type Library") -] -library TunerLib -{ - importlib("stdole2.tlb"); - - // SystemTuningSpaces class - [ - uuid(D02AAC50-027E-11d3-9D8E-00C04F72D980), - helpstring("SystemTuningSpace Class") - ] - coclass SystemTuningSpaces - { - [default] interface ITuningSpaceContainer; - }; - - // NOTE: there is no object factory for this class. the implementation for the underlying - // code is a c++ abstract base class. this coclass is only provided here to - // force vb to expose the base interface to enable polymorphic access to - // derived objects - [ - hidden, restricted, - uuid(5FFDC5E6-B83A-4b55-B6E8-C69E765FE9DB), - helpstring("dummy class to expose base tuning space i/f to VB") - ] - coclass TuningSpace - { - [default] interface ITuningSpace; - }; - - - [ - uuid(A2E30750-6C3D-11d3-B653-00C04F79498E), - helpstring("ATSC Digital Broadcast Tuning Space Class") - ] - coclass ATSCTuningSpace - { - [default] interface IATSCTuningSpace; - }; - - [ - uuid(8A674B4C-1F63-11d3-B64C-00C04F79498E), - helpstring("Analog Radio Tuning Space Class") - ] - coclass AnalogRadioTuningSpace - { - [default] interface IAnalogRadioTuningSpace; - }; - - [ - uuid(F9769A06-7ACA-4e39-9CFB-97BB35F0E77E), - helpstring("Auxiliary Inputs Tuning Space Class") - ] - coclass AuxInTuningSpace - { - [default] interface IAuxInTuningSpace; - }; - - [ - uuid(8A674B4D-1F63-11d3-B64C-00C04F79498E), - helpstring("Analog TV Tuning Space Class") - ] - coclass AnalogTVTuningSpace - { - [default] interface IAnalogTVTuningSpace; - }; - - [ - uuid(C6B14B32-76AA-4a86-A7AC-5C79AAF58DA7), - helpstring("DVB Tuning Space Class") - ] - coclass DVBTuningSpace - { - [default] interface IDVBTuningSpace2; - interface IDVBTuningSpace; - }; - - [ - uuid(B64016F3-C9A2-4066-96F0-BD9563314726), - helpstring("DVB Satellite Tuning Space Class") - ] - coclass DVBSTuningSpace - { - [default] interface IDVBSTuningSpace; - }; - - - // ComponentTypes container class - [ - uuid(A1A2B1C4-0E3A-11d3-9D8E-00C04F72D980), - helpstring("Component Types Collection Class") - ] - coclass ComponentTypes - { - [default] interface IComponentTypes; - }; - - // ComponentType class - [ - uuid(823535A0-0318-11d3-9D8E-00C04F72D980), - helpstring("ComponentType Class") - ] - coclass ComponentType - { - [default] interface IComponentType; - }; - - // Language ComponentType class - [ - uuid(1BE49F30-0E1B-11d3-9D8E-00C04F72D980), - helpstring("LanguageComponentType Class") - ] - coclass LanguageComponentType - { - [default] interface ILanguageComponentType; - }; - - // MPEG2 ComponentType class - [ - uuid(418008F3-CF67-4668-9628-10DC52BE1D08), - helpstring("MPEG2ComponentType Class") - ] - coclass MPEG2ComponentType - { - [default] interface IMPEG2ComponentType; - }; - - // ATSC ComponentType class - [ - uuid(A8DCF3D5-0780-4ef4-8A83-2CFFAACB8ACE), - helpstring("ATSCComponentType Class") - ] - coclass ATSCComponentType - { - [default] interface IATSCComponentType; - }; - - // Components class - [ - hidden, restricted, - uuid(809B6661-94C4-49e6-B6EC-3F0F862215AA), - helpstring("Components Collection Class") - ] - coclass Components - { - [default] interface IComponents; - }; - - // Component class - // the components can only be created by network provider/tif. client apps - // retrieve them from a filled-in tune request by either loading a persisted tune - // request that has been filled in by a proper guide store loader or by re-getting - // the current tune request property which will have this filled in by the network - // provider - [ - hidden, restricted, - uuid(59DC47A8-116C-11d3-9D8E-00C04F72D980), - helpstring("Component Class") - ] - coclass Component - { - [default] interface IComponent; - }; - - // MPEG2 Component class - [ - hidden, restricted, - uuid(055CB2D7-2969-45cd-914B-76890722F112), - helpstring("MPEG2 Component Class") - ] - coclass MPEG2Component - { - [default] interface IMPEG2Component; - }; - - - // NOTE: there is no object factory for this class. the implementation for the underlying - // code is a c++ abstract base class. this coclass is only provided here to - // force vb to expose the base interface to enable polymorphic access to - // derived objects - [ - hidden, restricted, - uuid(B46E0D38-AB35-4a06-A137-70576B01B39F), - helpstring("dummy class to expose base tune request i/f to VB") - ] - coclass TuneRequest - { - [default] interface ITuneRequest; - }; - - - // NOTE: the tuning request factories should not be invoked directly. - // instead apps should use ITuningSpace::CreateTuningRequest to obtain a correctly - // initialized tuning request of the appropriate type for that space. - // the object factories are provided to allow generic code to a load a previously persisted - // tune request object. - [ - hidden, - restricted, - uuid(0369B4E5-45B6-11d3-B650-00C04F79498E), - helpstring("Channel Tune Request") - ] - coclass ChannelTuneRequest - { - [default] interface IChannelTuneRequest; - }; - - [ - hidden, - restricted, - uuid(0369B4E6-45B6-11d3-B650-00C04F79498E), - helpstring("ATSC Channel Tune Request") - ] - coclass ATSCChannelTuneRequest - { - [default] interface IATSCChannelTuneRequest; - }; - - // NOTE: there is no object factory for this class. the implementation for the underlying - // code is a c++ abstract base class. this coclass is only provided here to - // force vb to expose the base interface to enable polymorphic access to - // derived objects - [ - hidden, restricted, - uuid(0955AC62-BF2E-4cba-A2B9-A63F772D46CF), - helpstring("dummy class to expose mpeg2 request i/f to VB") - ] - coclass MPEG2TuneRequest - { - [default] interface IMPEG2TuneRequest; - }; - - [ - uuid(2C63E4EB-4CEA-41b8-919C-E947EA19A77C), - helpstring("Factory for creating IMPEG2TuneRequest") - ] - coclass MPEG2TuneRequestFactory - { - [default] interface IMPEG2TuneRequestFactory; - }; - - - // NOTE: there is no object factory for this class. the implementation for the underlying - // code is a c++ abstract base class. this coclass is only provided here to - // force vb to expose the base interface to enable polymorphic access to - // derived objects - [ - hidden, restricted, - uuid(0888C883-AC4F-4943-B516-2C38D9B34562), - helpstring("dummy class to expose base locator i/f to VB") - ] - coclass Locator - { - [default] interface ILocator; - }; - - // its not intended that client apps actually create locators. the network - // provider in combination with the transport information filter(TIF) are the - // only modules in the system that actually know the correct values for these objects - // however, for testing purposes, its necessary to allow these to be created. - // instead, normally these will simply be passed around opaquely since they're a - // property of the base tune request interface. - [ - uuid(8872FF1B-98FA-4d7a-8D93-C9F1055F85BB), - helpstring("ATSC Locator") - ] - coclass ATSCLocator - { - [default] interface IATSCLocator; - }; - - [ - uuid(9CD64701-BDF3-4d14-8E03-F12983D86664), - helpstring("DVB-Terrestrial Locator") - ] - coclass DVBTLocator - { - [default] interface IDVBTLocator; - }; - - [ - uuid(1DF7D126-4050-47f0-A7CF-4C4CA9241333), - helpstring("DVB-Satellite Locator") - ] - coclass DVBSLocator - { - [default] interface IDVBSLocator; - }; - - [ - uuid(C531D9FD-9685-4028-8B68-6E1232079F1E), - helpstring("DVB-Cable Locator") - ] - coclass DVBCLocator - { - [default] interface IDVBCLocator; - }; - - [ - hidden, - restricted, - uuid(15D6504A-5494-499c-886C-973C9E53B9F1), - helpstring("DVB Tune Request") - ] - coclass DVBTuneRequest - { - [default] interface IDVBTuneRequest; - }; - -// Sample tuner class definition: -// -// [ -// uuid(), -// helpstring("My Tuner object") -// ] -// coclass MyTuner -// { -// [default] interface ITuner; -// interface IMyTunerCustomFeatureInterface; -// }; - -/////////////////////////////////////////////////////////////////////////////////////// -// utility objects -/////////////////////////////////////////////////////////////////////////////////////// - [ - hidden, restricted, - uuid(8A674B49-1F63-11d3-B64C-00C04F79498E), - helpstring("Create property bag backed by registry") - ] - coclass CreatePropBagOnRegKey - { - interface ICreatePropBagOnRegKey; - }; - - [ - hidden, restricted, - uuid(0B3FFB92-0919-4934-9D5B-619C719D0202), - helpstring("DShow Broadcast Event Service Object") - ] - coclass BroadcastEventService - { - interface IBroadcastEvent; - }; - -cpp_quote("#define SID_SBroadcastEventService CLSID_BroadcastEventService") - -} - -// end of file -- tuner.idl diff --git a/sdk/dx8sdk/Include/DShowIDL/tvratings.idl b/sdk/dx8sdk/Include/DShowIDL/tvratings.idl deleted file mode 100644 index 5bf80214..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/tvratings.idl +++ /dev/null @@ -1,242 +0,0 @@ -// TvRatings.idl : IDL source for TvRatings.dll -// - -// This file will be processed by the MIDL tool to -// produce the type library (TvRatings.tlb) and marshalling code. - -import "oaidl.idl"; -import "ocidl.idl"; - -typedef enum -{ - MPAA = 0, - US_TV = 1, - Canadian_English = 2, - Canadian_French = 3, - Reserved4 = 4, // filler - not used. - System5 = 5, // maps to system 5 of XDS rating table 19 - System6 = 6, // maps to system 6 of XDS rating table 19 - Reserved7 = 7, // filler - not used. - TvRat_kSystems = 8, // used for allocating structures - TvRat_SystemDontKnow = 255 // haven't gotten a data value yet... (perhaps change to 0) -} EnTvRat_System; - - -typedef enum // constraint is that must be in increasing order, and max < 2^8 -{ - 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_kLevels = 8, // used for allocating structures - TvRat_LevelDontKnow = 255 // haven't gotten a data value yet... (perhaps change to _7) -} EnTvRat_GenericLevel; - - -typedef enum -{ - 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 -{ - 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 -{ - 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 -{ - 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 -{ - BfAttrNone = 0, // no bits set (for initialization) - BfIsBlocked = 1, // if set, - BfIsAttr_1 = 2, - BfIsAttr_2 = 4, - BfIsAttr_3 = 8, - BfIsAttr_4 = 16, - BfIsAttr_5 = 32, // no bits set... - BfIsAttr_6 = 64, - BfIsAttr_7 = 128, - BfValidAttrSubmask = 255 // IsBlocked is not a valid attribute to display -} BfEnTvRat_GenericAttributes; - -typedef enum -{ - 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 // IsBlocked is not a valid attribute for TV -} BfEnTvRat_Attributes_US_TV; - -typedef enum -{ - MPAA_IsBlocked = BfIsBlocked, - MPAA_ValidAttrSubmask = 1 // IsBlocked is not a valid attribute -} BfEnTvRat_Attributes_MPAA; - -typedef enum -{ - CAE_IsBlocked = BfIsBlocked, - CAE_ValidAttrSubmask = 1 // IsBlocked is not a valid attribute -} BfEnTvRat_Attributes_CAE_TV; - -typedef enum -{ - CAF_IsBlocked = BfIsBlocked, - CAF_ValidAttrSubmask = 1 // IsBlocked is not a valid attribute -} BfEnTvRat_Attributes_CAF_TV; - - // ------------------------------------------------------- - // ------------------------------------------------------- -[ - object, - uuid(C5C5C5B0-3ABC-11D6-B25B-00C04FA0C026), - dual, - helpstring("IXDSToRat Interface"), - pointer_default(unique) -] -interface IXDSToRat : IDispatch -{ - [id(1), helpstring("method Init")] - HRESULT Init(); - - [id(2), helpstring("method ParseXDSBytePair")] - HRESULT ParseXDSBytePair( - [in] BYTE byte1, - [in] BYTE byte2, - [out] EnTvRat_System *pEnSystem, - [out] EnTvRat_GenericLevel *pEnLevel, - [out] LONG *plBfEnAttributes // bitfield of BfEnTvRat_GenericAttributes - ); -}; - - // ------------------------ -[ - object, - uuid(C5C5C5B1-3ABC-11D6-B25B-00C04FA0C026), - dual, - helpstring("IEvalRat Interface"), - pointer_default(unique) -] -interface IEvalRat : IDispatch -{ - [propget, id(1), helpstring("property BlockedRatingAttributes")] - HRESULT BlockedRatingAttributes( - [in] EnTvRat_System enSystem, - [in] EnTvRat_GenericLevel enLevel, - [out, retval] LONG *plbfAttrs // bitfield of BfEnTvRat_GenericAttributes - ); - - [propput, id(1), helpstring("property BlockedRatingAttributes")] - HRESULT BlockedRatingAttributes( - [in] EnTvRat_System enSystem, - [in] EnTvRat_GenericLevel enLevel, - [in] LONG lbfAttrs // bitfield of BfEnTvRat_GenericAttributes - ); - - [propget, id(2), helpstring("property BlockUnRated")] - HRESULT BlockUnRated( - [out, retval] BOOL *pfBlockUnRatedShows - ); - - [propput, id(2), helpstring("property BlockUnRated")] - HRESULT BlockUnRated( - [in] BOOL fBlockUnRatedShows - ); - - [ id(3), helpstring("method MostRestrictiveRating")] - HRESULT MostRestrictiveRating( - [in] EnTvRat_System enSystem1, - [in] EnTvRat_GenericLevel enEnLevel1, - [in] LONG lbfEnAttr1, // bitfield of BfEnTvRat_GenericAttributes - [in] EnTvRat_System enSystem2, - [in] EnTvRat_GenericLevel enEnLevel2, - [in] LONG lbfEnAttr2, // bitfield of BfEnTvRat_GenericAttributes - [out] EnTvRat_System *penSystem, - [out] EnTvRat_GenericLevel *penEnLevel, - [out] LONG *plbfEnAttr // bitfield of BfEnTvRat_GenericAttributes - ); - - [ id(4), helpstring("method TestRating")] - HRESULT TestRating( - [in] EnTvRat_System enShowSystem, - [in] EnTvRat_GenericLevel enShowLevel, - [in] LONG lbfEnShowAttributes // bitfield of BfEnTvRat_GenericAttributes - ); - -}; - - // This is enforcing a particular implementation on folk... - // Don't need this particular TypeLib, just as long - // as some library/libraries exists that supports the two coClasses, - // with the give ClassID's. -[ - uuid(C5C5C500-3ABC-11D6-B25B-00C04FA0C026), - version(1.0), - helpstring("TvRatings 1.0 Type Library") -] -library TVRATINGSLib -{ - importlib("stdole32.tlb"); - importlib("stdole2.tlb"); - - [ - uuid(C5C5C5F0-3ABC-11D6-B25B-00C04FA0C026), - helpstring("XDSToRat Class") - ] - coclass XDSToRat - { - [default] interface IXDSToRat; - }; - [ - uuid(C5C5C5F1-3ABC-11D6-B25B-00C04FA0C026), - helpstring("EvalRat Class") - ] - coclass EvalRat - { - [default] interface IEvalRat; - }; -}; diff --git a/sdk/dx8sdk/Include/DShowIDL/vidcap.idl b/sdk/dx8sdk/Include/DShowIDL/vidcap.idl deleted file mode 100644 index 523bfde3..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/vidcap.idl +++ /dev/null @@ -1,84 +0,0 @@ -//+------------------------------------------------------------------------- -// -// Microsoft Windows -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// File: vidcap.idl -// -// Contents: Video Capture and Topology Interface Definitions -// -// History: first published in XP SP2 (ISelector,IKsTopologyInfo) -// -//-------------------------------------------------------------------------- - -import "unknwn.idl"; -import "strmif.idl"; - -// The preprocessor directives here ensure that KSTOPOLOGY_CONNECTION is defined in the correct way -// Constraint is that ks.h cannot be included in the idl file. The directives below ensure that -// 1) KSTOPOLOGY_CONNECTION is locally defined for purposes of building the idl file itself. -// 2) An app can include vidcap.h and ks.h in either order. -// 3) The structure definition for KSTOPOLOGY_CONNECTION does not show up in vidcap.h since ks.h gets included. -// Look at vidcap.h to understand exactly what gets generated. -cpp_quote("#include \"ks.h\"") -cpp_quote("#ifndef _KS_") -typedef struct { - ULONG FromNode; - ULONG FromNodePin; - ULONG ToNode; - ULONG ToNodePin; -} KSTOPOLOGY_CONNECTION, *PKSTOPOLOGY_CONNECTION; -cpp_quote("#endif") - - -// IKsTopologyInfo interface -[ - object, - local, - uuid(720D4AC0-7533-11D0-A5D6-28DB04C10000), - pointer_default(unique) -] -interface IKsTopologyInfo : IUnknown -{ - HRESULT get_NumCategories([out] DWORD *pdwNumCategories); - HRESULT get_Category([in] DWORD dwIndex, [out] GUID *pCategory); - HRESULT get_NumConnections([out] DWORD *pdwNumConnections); - HRESULT get_ConnectionInfo([in] DWORD dwIndex, [out] KSTOPOLOGY_CONNECTION *pConnectionInfo); - HRESULT get_NodeName([in] DWORD dwNodeId, [out] WCHAR *pwchNodeName, [in] DWORD dwBufSize, [out] DWORD *pdwNameLen); - HRESULT get_NumNodes([out] DWORD *pdwNumNodes); - HRESULT get_NodeType([in] DWORD dwNodeId, [out] GUID *pNodeType); - HRESULT CreateNodeInstance([in] DWORD dwNodeId, [in] REFIID iid, [out] void **ppvObject); -} - - -// ISelector interface -[ - object, - local, - uuid(1ABDAECA-68B6-4F83-9371-B413907C7B9F), - pointer_default(unique) -] -interface ISelector : IUnknown -{ - HRESULT get_NumSources([out] DWORD *pdwNumSources); - HRESULT get_SourceNodeId([out] DWORD *pdwPinId); - HRESULT put_SourceNodeId([in] DWORD dwPinId); -} - - -// IKsNodeControl interface -[ - object, - local, - uuid(11737C14-24A7-4bb5-81A0-0D003813B0C4), - pointer_default(unique) -] -interface IKsNodeControl :IUnknown -{ - HRESULT put_NodeId([in] DWORD dwNodeId); - HRESULT put_KsControl([in] PVOID pKsControl); -} - - - - diff --git a/sdk/dx8sdk/Include/DShowIDL/vmr9.idl b/sdk/dx8sdk/Include/DShowIDL/vmr9.idl deleted file mode 100644 index ae9245f2..00000000 --- a/sdk/dx8sdk/Include/DShowIDL/vmr9.idl +++ /dev/null @@ -1,1057 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////// -// -// Public Interfaces for the DX9 Video Mixing Renderer DShow filter -// -// Copyright (c) 1999 - 2002, Microsoft Corporation. All rights reserved. -/////////////////////////////////////////////////////////////////////////////// - -import "unknwn.idl"; - - -cpp_quote("#if 0") -// This is temporary work around to persuade -// MIDL to allow forward declarations. -typedef DWORD IDirect3DDevice9; -typedef DWORD IDirect3DSurface9; -typedef DWORD D3DFORMAT; -typedef DWORD D3DCOLOR; -typedef DWORD D3DPOOL; -typedef LONGLONG REFERENCE_TIME; -typedef DWORD* HMONITOR; -typedef struct {DWORD dw1; DWORD dw2;} AM_MEDIA_TYPE; -cpp_quote ("#endif") - - -// public interfaces supported by the VMR9 - -interface IVMRSurface9; - -interface IVMRSurfaceAllocator9; -interface IVMRSurfaceAllocatorNotify9; -interface IVMRImagePresenter9; -interface IVMRImagePresenterConfig9; -interface IVMRMonitorConfig9; -interface IVMRWindowlessControl9; - -interface IVMRMixerControl9; -interface IVMRImageCompositor9; -interface IVMRMixerBitmap9; - - -interface IVMRFilterConfig9; -interface IVMRAspectRatioControl9; -interface IVMRVideoStreamControl9; - - - - -/////////////////////////////////////////////////////////////////////////////// -// -// Allocator Presenter interfaces -// -/////////////////////////////////////////////////////////////////////////////// - - - -//===================================================================== -// -// IVMRImagePresenter9 -// -//===================================================================== -typedef enum { - VMR9Sample_SyncPoint = 0x00000001, - VMR9Sample_Preroll = 0x00000002, - VMR9Sample_Discontinuity = 0x00000004, - VMR9Sample_TimeValid = 0x00000008, - VMR9Sample_SrcDstRectsValid= 0x00000010 -} VMR9PresentationFlags; - - -typedef struct _VMR9PresentationInfo { - DWORD dwFlags; - IDirect3DSurface9* lpSurf; - REFERENCE_TIME rtStart; - REFERENCE_TIME rtEnd; - SIZE szAspectRatio; - RECT rcSrc; - RECT rcDst; - DWORD dwReserved1; - DWORD dwReserved2; -} VMR9PresentationInfo; - -[ - local, - object, - local, - uuid(69188c61-12a3-40f0-8ffc-342e7b433fd7), - helpstring("IVMRImagePresenter9 Interface"), - pointer_default(unique) -] -interface IVMRImagePresenter9 : IUnknown -{ - HRESULT StartPresenting( - [in] DWORD_PTR dwUserID - ); - - HRESULT StopPresenting( - [in] DWORD_PTR dwUserID - ); - - HRESULT PresentImage( - [in] DWORD_PTR dwUserID, - [in] VMR9PresentationInfo* lpPresInfo - ); -}; - - -//===================================================================== -// -// IVMRSurfaceAllocator -// -//===================================================================== -typedef enum { - // surface types/usage - VMR9AllocFlag_3DRenderTarget = 0x0001, - VMR9AllocFlag_DXVATarget = 0x0002, - - // - // VMR9AllocFlag_TextureSurface can be combined with - // DXVATarget and 3DRenderTarget - // - VMR9AllocFlag_TextureSurface = 0x0004, - VMR9AllocFlag_OffscreenSurface = 0x0008, - VMR9AllocFlag_UsageReserved = 0x00F0, - VMR9AllocFlag_UsageMask = 0x00FF - - // surface -} VMR9SurfaceAllocationFlags; - - -typedef struct _VMR9AllocationInfo { - DWORD dwFlags; // see VMR9SurfaceAllocationFlags - DWORD dwWidth; - DWORD dwHeight; - D3DFORMAT Format; // 0 means use a format compatible with the display - D3DPOOL Pool; - DWORD MinBuffers; - SIZE szAspectRatio; - SIZE szNativeSize; -} VMR9AllocationInfo; - -[ - local, - object, - local, - uuid(8d5148ea-3f5d-46cf-9df1-d1b896eedb1f), - helpstring("IVMRSurfaceAllocator9 Interface"), - pointer_default(unique) -] -interface IVMRSurfaceAllocator9 : IUnknown -{ - HRESULT InitializeDevice( - [in] DWORD_PTR dwUserID, - [in] VMR9AllocationInfo* lpAllocInfo, - [in, out] DWORD* lpNumBuffers - ); - - HRESULT TerminateDevice( - [in] DWORD_PTR dwID - ); - - HRESULT GetSurface( - [in] DWORD_PTR dwUserID, - [in] DWORD SurfaceIndex, - [in] DWORD SurfaceFlags, - [out] IDirect3DSurface9** lplpSurface - ); - - HRESULT AdviseNotify( - [in] IVMRSurfaceAllocatorNotify9* lpIVMRSurfAllocNotify - ); -}; - - -//===================================================================== -// -// IVMRSurfaceAllocatorNotify9 -// -//===================================================================== -[ - local, - object, - local, - uuid(dca3f5df-bb3a-4d03-bd81-84614bfbfa0c), - helpstring("IVMRSurfaceAllocatorNotify9 Interface"), - pointer_default(unique) -] -interface IVMRSurfaceAllocatorNotify9 : IUnknown -{ - HRESULT AdviseSurfaceAllocator( - [in] DWORD_PTR dwUserID, - [in] IVMRSurfaceAllocator9* lpIVRMSurfaceAllocator - ); - - HRESULT SetD3DDevice( - [in] IDirect3DDevice9* lpD3DDevice, - [in] HMONITOR hMonitor - ); - - HRESULT ChangeD3DDevice( - [in] IDirect3DDevice9* lpD3DDevice, - [in] HMONITOR hMonitor - ); - - HRESULT AllocateSurfaceHelper( - [in] VMR9AllocationInfo* lpAllocInfo, - [in, out] DWORD* lpNumBuffers, - [out] IDirect3DSurface9** lplpSurface - ); - - HRESULT NotifyEvent( - [in] LONG EventCode, - [in] LONG_PTR Param1, - [in] LONG_PTR Param2 - ); -}; - - - -/////////////////////////////////////////////////////////////////////////////// -// -// Application control and configuration interfaces -// -/////////////////////////////////////////////////////////////////////////////// - - -//===================================================================== -// -// IVMRWindowlessControl9 -// -//===================================================================== -typedef enum { - VMR9ARMode_None, - VMR9ARMode_LetterBox -} VMR9AspectRatioMode; - -[ - local, - object, - local, - uuid(8f537d09-f85e-4414-b23b-502e54c79927), - helpstring("IVMRWindowlessControl Interface"), - pointer_default(unique) -] -interface IVMRWindowlessControl9 : IUnknown -{ - // - ////////////////////////////////////////////////////////// - // Video size and position information - ////////////////////////////////////////////////////////// - // - HRESULT GetNativeVideoSize( - [out] LONG* lpWidth, - [out] LONG* lpHeight, - [out] LONG* lpARWidth, - [out] LONG* lpARHeight - ); - - HRESULT GetMinIdealVideoSize( - [out] LONG* lpWidth, - [out] LONG* lpHeight - ); - - HRESULT GetMaxIdealVideoSize( - [out] LONG* lpWidth, - [out] LONG* lpHeight - ); - - HRESULT SetVideoPosition( - [in] const LPRECT lpSRCRect, - [in] const LPRECT lpDSTRect - ); - - HRESULT GetVideoPosition( - [out] LPRECT lpSRCRect, - [out] LPRECT lpDSTRect - ); - - HRESULT GetAspectRatioMode( - [out] DWORD* lpAspectRatioMode - ); - - HRESULT SetAspectRatioMode( - [in] DWORD AspectRatioMode - ); - - // - ////////////////////////////////////////////////////////// - // Display and clipping management - ////////////////////////////////////////////////////////// - // - HRESULT SetVideoClippingWindow( - [in] HWND hwnd - ); - - HRESULT RepaintVideo( - [in] HWND hwnd, - [in] HDC hdc - ); - - HRESULT DisplayModeChanged(); - - - // - ////////////////////////////////////////////////////////// - // GetCurrentImage - // - // Returns the current image being displayed. This images - // is returned in the form of packed Windows DIB. - // - // GetCurrentImage can be called at any time, also - // the caller is responsible for free the returned memory - // by calling CoTaskMemFree. - // - // Excessive use of this function will degrade video - // playback performed. - ////////////////////////////////////////////////////////// - // - HRESULT GetCurrentImage( - [out] BYTE** lpDib - ); - - // - ////////////////////////////////////////////////////////// - // Border Color control - // - // 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. When the video - // straddles two monitors and when the VMR is trying - // to maintain the aspect ratio of the movies by letter - // boxing the video to fit within the specified destination - // rectangle. See SetAspectRatioMode above. - ////////////////////////////////////////////////////////// - // - HRESULT SetBorderColor( - [in] COLORREF Clr - ); - - HRESULT GetBorderColor( - [out] COLORREF* lpClr - ); -}; - - - -//===================================================================== -// -// IVMRMixerControl9 -// -//===================================================================== - -typedef enum { - MixerPref9_NoDecimation = 0x00000001, // No decimation - full size - MixerPref9_DecimateOutput = 0x00000002, // decimate output by 2 in x & y - MixerPref9_ARAdjustXorY = 0x00000004, // adjust the aspect ratio in x or y - MixerPref9_NonSquareMixing = 0x00000008, // assume AP can handle non-square mixing, avoids intermediate scales - MixerPref9_DecimateMask = 0x0000000F, - - MixerPref9_BiLinearFiltering = 0x00000010, // use bi-linear filtering - MixerPref9_PointFiltering = 0x00000020, // use point filtering - MixerPref9_AnisotropicFiltering = 0x00000040, // - MixerPref9_PyramidalQuadFiltering = 0x00000080, // 4-sample tent - MixerPref9_GaussianQuadFiltering = 0x00000100, // 4-sample gaussian - MixerPref9_FilteringReserved = 0x00000E00, // bits reserved for future use. - MixerPref9_FilteringMask = 0x00000FF0, // OR of all above flags - - MixerPref9_RenderTargetRGB = 0x00001000, - MixerPref9_RenderTargetYUV = 0x00002000, // Uses DXVA to perform mixing - MixerPref9_RenderTargetReserved = 0x000FC000, // bits reserved for future use. - MixerPref9_RenderTargetMask = 0x000FF000, // OR of all above flags - - // - // Dynamic changes that can be performed when the VMR's mixer is - // configured to use the YUV Render target (see MixerPref_RenderTargetYUV) - // These preferences can be applied while the graph is running and take effect - // when the next frame is composed by the mixer. - // - MixerPref9_DynamicSwitchToBOB = 0x00100000, - MixerPref9_DynamicDecimateBy2 = 0x00200000, - - MixerPref9_DynamicReserved = 0x00C00000, - MixerPref9_DynamicMask = 0x00F00000 - -} VMR9MixerPrefs; - - -// -// Normalized relative rectangle -// Coordinate ranges: x=[0...1) y=[0...1) -// Where the output window goes from 0,0 (closed inclusive lower bound) -// to 1,1 (open exclusive upper bound) -// -typedef struct _VMR9NormalizedRect -{ - float left; - float top; - float right; - float bottom; -} VMR9NormalizedRect; - - - -typedef enum { - ProcAmpControl9_Brightness = 0x00000001, - ProcAmpControl9_Contrast = 0x00000002, - ProcAmpControl9_Hue = 0x00000004, - ProcAmpControl9_Saturation = 0x00000008, - ProcAmpControl9_Mask = 0x0000000F -} VMR9ProcAmpControlFlags; - -typedef struct _VMR9ProcAmpControl -{ - DWORD dwSize; - DWORD dwFlags; - float Brightness; - float Contrast; - float Hue; - float Saturation; -} VMR9ProcAmpControl; - -typedef struct _VMR9ProcAmpControlRange -{ - DWORD dwSize; - VMR9ProcAmpControlFlags dwProperty; // see VMR9ProcAmpControlFlags above - float MinValue; - float MaxValue; - float DefaultValue; - float StepSize; -} VMR9ProcAmpControlRange; - - -[ - local, - object, - local, - uuid(1a777eaa-47c8-4930-b2c9-8fee1c1b0f3b), - helpstring("IVMRMixerControl9 Interface"), - pointer_default(unique) -] -interface IVMRMixerControl9 : IUnknown -{ - HRESULT SetAlpha( - [in] DWORD dwStreamID, - [in] float Alpha // Source alpha premultication factor (global alpha for source) - ); - - HRESULT GetAlpha( - [in] DWORD dwStreamID, - [out] float* pAlpha - ); - - HRESULT SetZOrder( - [in] DWORD dwStreamID, - [in] DWORD dwZ - ); - - HRESULT GetZOrder( - [in] DWORD dwStreamID, - [out] DWORD* pZ - ); - - HRESULT SetOutputRect( - [in] DWORD dwStreamID, - [in] const VMR9NormalizedRect *pRect - ); - - HRESULT GetOutputRect( - [in] DWORD dwStreamID, - [out] VMR9NormalizedRect *pRect - ); - - HRESULT SetBackgroundClr( - [in] COLORREF ClrBkg - ); - - HRESULT GetBackgroundClr( - [in] COLORREF* lpClrBkg - ); - - HRESULT SetMixingPrefs( - [in] DWORD dwMixerPrefs // a combination of VMRMixingPrefFlags - ); - - HRESULT GetMixingPrefs( - [out] DWORD* pdwMixerPrefs - ); - - HRESULT SetProcAmpControl( - [in] DWORD dwStreamID, - [in] VMR9ProcAmpControl* lpClrControl - ); - - HRESULT GetProcAmpControl( - [in] DWORD dwStreamID, - [in, out] VMR9ProcAmpControl* lpClrControl - ); - - HRESULT GetProcAmpControlRange( - [in] DWORD dwStreamID, - [in, out] VMR9ProcAmpControlRange* lpClrControl - ); -}; - - -//===================================================================== -// -// IVMRMixerBitmap9 -// -//===================================================================== - -typedef struct _VMR9AlphaBitmap -{ - DWORD dwFlags; // flags word - HDC hdc; // DC for the bitmap to copy - IDirect3DSurface9* pDDS; // D3D surface to copy - RECT rSrc; // rectangle to copy from the DC/DDS - VMR9NormalizedRect rDest; // output rectangle in composition space - FLOAT fAlpha; // opacity of the bitmap - COLORREF clrSrcKey; // src color key - DWORD dwFilterMode; // See "SetMixerPrefs" -} VMR9AlphaBitmap; - - -typedef enum { - - // Disable the alpha bitmap for now - VMR9AlphaBitmap_Disable = 0x00000001, - - // Take the bitmap from the HDC rather than the DirectDraw surface - VMR9AlphaBitmap_hDC = 0x00000002, - - // Take the entire DDraw surface - rSrc is ignored - VMR9AlphaBitmap_EntireDDS = 0x00000004, - - // Indicates that the clrTrans value is valid and should be - // used when blending - VMR9AlphaBitmap_SrcColorKey = 0x00000008, - - // Indicates that the rSrc rectangle is valid and specifies a - // sub-rectangle of the of original app image to be blended. - // Use of this parameter enables "Image Strips" - VMR9AlphaBitmap_SrcRect = 0x00000010, - - // Indicates that dwFilterMode parameter is valid and should be - // used to overide the default filtering method used by the VMR. - // MixerPref_PointFiltering is particulaly useful for images that - // contain text and do not need to be stretch prior to blending with - // the video content. - VMR9AlphaBitmap_FilterMode = 0x00000020 -} VMR9AlphaBitmapFlags; - -[ - object, - local, - uuid(ced175e5-1935-4820-81bd-ff6ad00c9108), - helpstring("IVMRMixerBitmap Interface"), - pointer_default(unique) -] -interface IVMRMixerBitmap9 : IUnknown -{ - // Set bitmap, location to blend it, and blending value - HRESULT SetAlphaBitmap( - [in] const VMR9AlphaBitmap* pBmpParms - ); - - // Change bitmap location, size and blending value, - // graph must be running for change to take effect. - HRESULT UpdateAlphaBitmapParameters( - [in] const VMR9AlphaBitmap* pBmpParms - ); - - // Get bitmap, location to blend it, and blending value - HRESULT GetAlphaBitmapParameters( - [out] VMR9AlphaBitmap* pBmpParms - ); -}; - - - -//===================================================================== -// -// IVMRSurface9 -// -//===================================================================== -[ - local, - object, - local, - uuid(dfc581a1-6e1f-4c3a-8d0a-5e9792ea2afc), - helpstring("IVMRSurface Interface"), - pointer_default(unique) -] -interface IVMRSurface9 : IUnknown -{ - HRESULT IsSurfaceLocked(); - - HRESULT LockSurface( - [out] BYTE** lpSurface - ); - - HRESULT UnlockSurface(); - - HRESULT GetSurface( - [out] IDirect3DSurface9** lplpSurface - ); -}; - - - -//===================================================================== -// -// IID_IVMRImagePresenterConfig9 - this interface allows applications -// to configure the default Microsoft provided allocator-presenter -// inorder to simplify the implementation of their own -// allocator-presenter plug-in. -// -//===================================================================== -typedef enum { - RenderPrefs9_DoNotRenderBorder = 0x00000001, // app paints color keys - RenderPrefs9_Mask = 0x00000001, // OR of all above flags -} VMR9RenderPrefs; -[ - local, - object, - local, - uuid(45c15cab-6e22-420a-8043-ae1f0ac02c7d), - helpstring("IVMRImagePresenterConfig9 Interface"), - pointer_default(unique) -] - -interface IVMRImagePresenterConfig9 : IUnknown -{ - - HRESULT SetRenderingPrefs( - [in] DWORD dwRenderFlags // see VMRRenderPrefs for valid flags - ); - - HRESULT GetRenderingPrefs( - [out] DWORD* dwRenderFlags // see VMRRenderPrefs for valid flags - ); - -} - - - - -//===================================================================== -// -// IVMRVideoStreamControl9 -// -//===================================================================== -[ - object, - local, - uuid(d0cfe38b-93e7-4772-8957-0400c49a4485), - helpstring("IVMRMixerStreamConfig Interface"), - pointer_default(unique) -] -interface IVMRVideoStreamControl9: IUnknown -{ - - HRESULT SetStreamActiveState( - [in] BOOL fActive - ); - - HRESULT GetStreamActiveState( - [out] BOOL* lpfActive - ); -}; - - -typedef enum { - VMR9Mode_Windowed = 0x00000001, - VMR9Mode_Windowless = 0x00000002, - VMR9Mode_Renderless = 0x00000004, - - // not a valid value to pass to SetRenderMode - VMR9Mode_Mask = 0x00000007, // OR of all above flags -} VMR9Mode; - -[ - object, - local, - uuid(5a804648-4f66-4867-9c43-4f5c822cf1b8), - helpstring("IVMRFilterConfig9 Interface"), - pointer_default(unique) -] -interface IVMRFilterConfig9 : IUnknown -{ - HRESULT SetImageCompositor( - [in] IVMRImageCompositor9* lpVMRImgCompositor - ); - - HRESULT SetNumberOfStreams( - [in] DWORD dwMaxStreams - ); - - HRESULT GetNumberOfStreams( - [out] DWORD* pdwMaxStreams - ); - - HRESULT SetRenderingPrefs( - [in] DWORD dwRenderFlags // a combination of VMR9RenderPrefs - ); - - HRESULT GetRenderingPrefs( - [out] DWORD* pdwRenderFlags - ); - - HRESULT SetRenderingMode( - [in] DWORD Mode // a combination of VMRMode - ); - - HRESULT GetRenderingMode( - [out] DWORD* pMode - ); -} - -//===================================================================== -// -// IVMRAspectRatioControl9 -// -//===================================================================== -[ - object, - local, - uuid(00d96c29-bbde-4efc-9901-bb5036392146), - helpstring("IVMRAspectRatioControl9 Interface"), - pointer_default(unique) -] -interface IVMRAspectRatioControl9 : IUnknown -{ - HRESULT GetAspectRatioMode( - [out] LPDWORD lpdwARMode - ); - - HRESULT SetAspectRatioMode( - [in] DWORD dwARMode - ); -} - -/////////////////////////////////////////////////////////////////////////////// -// -// VMR Multimon configuration interface -// -/////////////////////////////////////////////////////////////////////////////// -#define VMR9DEVICENAMELEN 32 -#define VMR9DEVICEDESCRIPTIONLEN 512 - -typedef struct _VMR9MonitorInfo { - UINT uDevID; - RECT rcMonitor; - HMONITOR hMon; - DWORD dwFlags; // described in MONITORINFOEX, currently only MONITORINFOF_PRIMARY - wchar_t szDevice[VMR9DEVICENAMELEN]; - wchar_t szDescription[VMR9DEVICEDESCRIPTIONLEN]; - LARGE_INTEGER liDriverVersion; - DWORD dwVendorId; - DWORD dwDeviceId; - DWORD dwSubSysId; - DWORD dwRevision; - // -} VMR9MonitorInfo; - -[ - object, - local, - uuid(46c2e457-8ba0-4eef-b80b-0680f0978749), - helpstring("IVMRMonitorConfig9 Interface"), - pointer_default(unique) -] -interface IVMRMonitorConfig9 : IUnknown -{ - // Use this method on a Multi-Monitor system to specify to the - // mixer filter which Direct Draw driver should be used when connecting - // to an upstream decoder filter. - // - HRESULT SetMonitor( - [in] UINT uDev - ); - - // Use this method to determine the direct draw object that will be used when - // connecting the mixer filter to an upstream decoder filter. - // - HRESULT GetMonitor( - [out] UINT *puDev - ); - - // Use this method on a multi-monitor system to specify to the - // mixer filter the default Direct Draw device to use when - // connecting to an upstream filter. The default direct draw device - // can be overriden for a particular connection by SetMonitor method - // described above. - // - HRESULT SetDefaultMonitor( - [in] UINT uDev - ); - - // Use this method on a multi-monitor system to determine which - // is the default direct draw device the overlay mixer filter - // will use when connecting to an upstream filter. - // - HRESULT GetDefaultMonitor( - [out] UINT* puDev - ); - - // Use this method to get a list of Direct Draw device GUIDs and thier - // associated monitor information that the mixer can use when - // connecting to an upstream decoder filter. Passing down a NULL pInfo - // parameter allows the app to determine the required array size (returned - // in pdwNumDevices). Otherwise, dwNumDevices returns the actual - // number of devices retrieved. - // - HRESULT GetAvailableMonitors( - [out, size_is(dwMaxInfoArraySize)] VMR9MonitorInfo* pInfo, - [in] DWORD dwMaxInfoArraySize, // in array members - [out] DWORD* pdwNumDevices // actual number of devices retrieved - ); -}; - - -//===================================================================== -// -// IVMRDeinterlaceControl -// -// New interfaced introduced into the WindowsXP SP1 release of the VMR. -// This interface allows applications to control the DX-VA deinterlacing -// support provided by the VMR. -// -// The VMR needs to be set into "mixing" mode for this interface to work. -// -// SetDeinterlaceMode is only effective for new connections made to the -// VMR. It should be noted that the graphics device driver may refuse -// to use the specified deinterlace mode, in which case 3 fallback -// policies are offered by the VMR, these being: -// -// 1. Fallback to the next best mode offered by the driver. -// 2. Fallback to the BOB deinterlace mode. -// 3. Fallback to the WEAVE deinterlace mode (ie. turn deinterlacing off). -// -//===================================================================== - -typedef enum { - DeinterlacePref9_NextBest = 0x01, - DeinterlacePref9_BOB = 0x02, - DeinterlacePref9_Weave = 0x04, - DeinterlacePref9_Mask = 0x07 -} VMR9DeinterlacePrefs; - -typedef enum { - - // the algorithm is unknown or proprietary - DeinterlaceTech9_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 - DeinterlaceTech9_BOBLineReplicate = 0x0001, - - - // the algorithm creates the missing lines by vertically stretching each - // video field by a factor of two, for example by averaging two lines or - // using a [-1, 9, 9, -1]/16 filter across four lines. - // Slight vertical adjustments are made to ensure that the resulting image - // does not "bob" up and down. - DeinterlaceTech9_BOBVerticalStretch = 0x0002, - - // the pixels in the missing line are recreated by a median filtering operation - DeinterlaceTech9_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. - DeinterlaceTech9_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. - DeinterlaceTech9_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.. - DeinterlaceTech9_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. - DeinterlaceTech9_MotionVectorSteered = 0x0080 - -} VMR9DeinterlaceTech; - -typedef struct _VMR9Frequency { - DWORD dwNumerator; - DWORD dwDenominator; -} VMR9Frequency; - -typedef enum _VMR9_SampleFormat { - VMR9_SampleReserved = 1, - VMR9_SampleProgressiveFrame = 2, - VMR9_SampleFieldInterleavedEvenFirst = 3, - VMR9_SampleFieldInterleavedOddFirst = 4, - VMR9_SampleFieldSingleEven = 5, - VMR9_SampleFieldSingleOdd = 6, -} VMR9_SampleFormat; - -typedef struct _VMR9VideoDesc { - DWORD dwSize; - DWORD dwSampleWidth; - DWORD dwSampleHeight; - VMR9_SampleFormat SampleFormat; - DWORD dwFourCC; - VMR9Frequency InputSampleFreq; - VMR9Frequency OutputFrameFreq; -} VMR9VideoDesc; - - -typedef struct _VMR9DeinterlaceCaps { - DWORD dwSize; - DWORD dwNumPreviousOutputFrames; - DWORD dwNumForwardRefSamples; - DWORD dwNumBackwardRefSamples; - VMR9DeinterlaceTech DeinterlaceTechnology; -} VMR9DeinterlaceCaps; - -[ - object, - local, - uuid(a215fb8d-13c2-4f7f-993c-003d6271a459), - helpstring("IVMRDeinterlaceControl9 Interface"), - pointer_default(unique) -] -interface IVMRDeinterlaceControl9 : IUnknown -{ - // - // For the specified video description returns the - // number of deinterlacing modes available to the VMR. - // The deinterlacing modes are returned in descending - // quality order ie. the best quality mode is at - // lpdwNumDeinterlaceModes[0], the next best at - // lpdwNumDeinterlaceModes[1] and so on. - // - // To determine how big an array of guids to pass to the - // GetNumberOfDeinterlaceModes method call - // GetNumberOfDeinterlaceModes(lpVideoDescription, &dwNumModes, NULL); - // - HRESULT GetNumberOfDeinterlaceModes( - [in] VMR9VideoDesc* lpVideoDescription, - [in] [out] LPDWORD lpdwNumDeinterlaceModes, - [out] LPGUID lpDeinterlaceModes - ); - - // - // For the given video description get the capabilities of the - // specified de-interlace mode. - // - HRESULT GetDeinterlaceModeCaps( - [in] LPGUID lpDeinterlaceMode, - [in] VMR9VideoDesc* lpVideoDescription, - [out] VMR9DeinterlaceCaps* lpDeinterlaceCaps - ); - - // - // Get/Set the deinterlace mode that you would like the - // VMR to use when de-interlacing the specified stream. - // It should be noted that the VMR may not actually be able - // to use the requested deinterlace mode, in which case the - // the VMR will fall back to other de-interlace modes as specified - // by the de-interlace preferences (see SetDeinterlacePrefs below). - // - HRESULT GetDeinterlaceMode( - [in] DWORD dwStreamID, - [out] LPGUID lpDeinterlaceMode // returns GUID_NULL if SetDeinterlaceMode - ); // has not been called yet. - - HRESULT SetDeinterlaceMode( - [in] DWORD dwStreamID, // use 0xFFFFFFFF to set mode for all streams - [in] LPGUID lpDeinterlaceMode // GUID_NULL == turn deinterlacing off - ); - - - HRESULT GetDeinterlacePrefs( - [out] LPDWORD lpdwDeinterlacePrefs - ); - - HRESULT SetDeinterlacePrefs( - [in] DWORD dwDeinterlacePrefs - ); - - // - // Get the DeinterlaceMode currently in use for the specified - // video stream (ie. pin). The returned GUID will be NULL if - // the de-interlacing h/w has not been created by the VMR at the - // time the function is called, or if the VMR determines that - // this stream should not or can be de-interlaced. - // - HRESULT GetActualDeinterlaceMode( - [in] DWORD dwStreamID, - [out] LPGUID lpDeinterlaceMode - ); -}; - - -//===================================================================== -// -// IVMRImageCompositor9 -// -//===================================================================== - -typedef struct _VMR9VideoStreamInfo { - IDirect3DSurface9* pddsVideoSurface; - DWORD dwWidth, dwHeight; - DWORD dwStrmID; - FLOAT fAlpha; - VMR9NormalizedRect rNormal; - REFERENCE_TIME rtStart; - REFERENCE_TIME rtEnd; - VMR9_SampleFormat SampleFormat; -} VMR9VideoStreamInfo; -[ - local, - object, - local, - uuid(4a5c89eb-df51-4654-ac2a-e48e02bbabf6), - helpstring("IVMRImageCompositor9 Interface"), - pointer_default(unique) -] -interface IVMRImageCompositor9 : IUnknown -{ - HRESULT InitCompositionDevice( - [in] IUnknown* pD3DDevice - ); - - HRESULT TermCompositionDevice( - [in] IUnknown* pD3DDevice - ); - - HRESULT SetStreamMediaType( - [in] DWORD dwStrmID, - [in] AM_MEDIA_TYPE* pmt, - [in] BOOL fTexture - ); - - HRESULT CompositeImage( - [in] IUnknown* pD3DDevice, - [in] IDirect3DSurface9* pddsRenderTarget, - [in] AM_MEDIA_TYPE* pmtRenderTarget, - [in] REFERENCE_TIME rtStart, - [in] REFERENCE_TIME rtEnd, - [in] D3DCOLOR dwClrBkGnd, - [in] VMR9VideoStreamInfo* pVideoStreamInfo, - [in] UINT cStreams - ); -}; diff --git a/sdk/dx8sdk/Include/DxDiag.h b/sdk/dx8sdk/Include/DxDiag.h deleted file mode 100644 index 602c88f0..00000000 --- a/sdk/dx8sdk/Include/DxDiag.h +++ /dev/null @@ -1,187 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: dxdiag.h - * Content: DirectX Diagnostic Tool include file - * - ****************************************************************************/ - -#ifndef _DXDIAG_H_ -#define _DXDIAG_H_ - -#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_ 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 /* _DXDIAG_H_ */ - - diff --git a/sdk/dx8sdk/Include/Iwstdec.h b/sdk/dx8sdk/Include/Iwstdec.h deleted file mode 100644 index 40007a86..00000000 --- a/sdk/dx8sdk/Include/Iwstdec.h +++ /dev/null @@ -1,117 +0,0 @@ -//------------------------------------------------------------------------------ -// 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__ - -// -// 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) -{ - public: - // - // 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 // __IWSTDEC__ diff --git a/sdk/dx8sdk/Include/Mpeg2Bits.h b/sdk/dx8sdk/Include/Mpeg2Bits.h deleted file mode 100644 index 45debbb6..00000000 --- a/sdk/dx8sdk/Include/Mpeg2Bits.h +++ /dev/null @@ -1,95 +0,0 @@ -///////////////////////////////////////////////////////////////////////////// -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Module Name: -// -// Mpeg2Bits.h -// -// Abstract: -// -// This file defines the MPEG-2 section header bitfields. These are -// defined here instead of in mpegstructs.idl because of MIDL -// compiler conflicts with bitfield definitions. -// -///////////////////////////////////////////////////////////////////////////// - -#pragma once - -#pragma pack(push) -#pragma pack(1) - - -// -// PID structure -// - -#ifdef __midl - -typedef struct -{ - WORD Bits; -} PID_BITS_MIDL; - -#else - -typedef struct -{ - WORD Reserved : 3; - WORD ProgramId : 13; -} PID_BITS, *PPID_BITS; - -#endif - - - -// -// Generic MPEG packet header structure -// - -#ifdef __midl - -typedef struct -{ - WORD Bits; -} MPEG_HEADER_BITS_MIDL; - -#else - -typedef struct -{ - WORD SectionLength : 12; - WORD Reserved : 2; - WORD PrivateIndicator : 1; - WORD SectionSyntaxIndicator : 1; -} MPEG_HEADER_BITS, *PMPEG_HEADER_BITS; - -#endif - - - -// -// Long MPEG packet header structure -// - -#ifdef __midl - -typedef struct -{ - BYTE Bits; -} MPEG_HEADER_VERSION_BITS_MIDL; - -#else - -typedef struct -{ - BYTE CurrentNextIndicator : 1; - BYTE VersionNumber : 5; - BYTE Reserved : 2; -} MPEG_HEADER_VERSION_BITS, *PMPEG_HEADER_VERSION_BITS; - -#endif - - - -#pragma pack(pop) diff --git a/sdk/dx8sdk/Include/Mpeg2Error.h b/sdk/dx8sdk/Include/Mpeg2Error.h deleted file mode 100644 index e2731fb3..00000000 --- a/sdk/dx8sdk/Include/Mpeg2Error.h +++ /dev/null @@ -1,62 +0,0 @@ -///////////////////////////////////////////////////////////////////////////// -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Module Name: -// -// MPEGError.h -// -// Abstract: -// -// Interface specific HRESULT error codes for MPEG-2 tables. -// -///////////////////////////////////////////////////////////////////////////// - -#pragma once - - // Interface specific SUCCESS and ERROR macros -#define MAKE_S_ITF_HRESULT(x) MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_ITF, (x)) -#define MAKE_E_ITF_HRESULT(x) MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, (x)) - - // MPEG-2 base HRESULT code (must be at least 0x200) -const unsigned int MPEG2_BASE = 0x200; - - // MPEG-2 Success HRESULTs -const HRESULT MPEG2_S_MORE_DATA_AVAILABLE = MAKE_S_ITF_HRESULT(MPEG2_BASE + 0); -const HRESULT MPEG2_S_NO_MORE_DATA_AVAILABLE = MAKE_S_ITF_HRESULT(MPEG2_BASE + 1); -const HRESULT MPEG2_S_SG_INFO_FOUND = MAKE_S_ITF_HRESULT(MPEG2_BASE + 2); -const HRESULT MPEG2_S_SG_INFO_NOT_FOUND = MAKE_S_ITF_HRESULT(MPEG2_BASE + 3); -const HRESULT MPEG2_S_MPE_INFO_FOUND = MAKE_S_ITF_HRESULT(MPEG2_BASE + 4); -const HRESULT MPEG2_S_MPE_INFO_NOT_FOUND = MAKE_S_ITF_HRESULT(MPEG2_BASE + 5); -const HRESULT MPEG2_S_NEW_MODULE_VERSION = MAKE_S_ITF_HRESULT(MPEG2_BASE + 6); - - // MPEG-2 Error HRESULTs -const HRESULT MPEG2_E_UNINITIALIZED = MAKE_E_ITF_HRESULT(MPEG2_BASE + 0); -const HRESULT MPEG2_E_ALREADY_INITIALIZED = MAKE_E_ITF_HRESULT(MPEG2_BASE + 1); -const HRESULT MPEG2_E_OUT_OF_BOUNDS = MAKE_E_ITF_HRESULT(MPEG2_BASE + 2); -const HRESULT MPEG2_E_MALFORMED_TABLE = MAKE_E_ITF_HRESULT(MPEG2_BASE + 3); -const HRESULT MPEG2_E_UNDEFINED = MAKE_E_ITF_HRESULT(MPEG2_BASE + 4); -const HRESULT MPEG2_E_NOT_PRESENT = MAKE_E_ITF_HRESULT(MPEG2_BASE + 5); -const HRESULT MPEG2_E_SECTION_NOT_FOUND = MAKE_E_ITF_HRESULT(MPEG2_BASE + 6); -const HRESULT MPEG2_E_TX_STREAM_UNAVAILABLE = MAKE_E_ITF_HRESULT(MPEG2_BASE + 7); -const HRESULT MPEG2_E_SERVICE_ID_NOT_FOUND = MAKE_E_ITF_HRESULT(MPEG2_BASE + 8); -const HRESULT MPEG2_E_SERVICE_PMT_NOT_FOUND = MAKE_E_ITF_HRESULT(MPEG2_BASE + 9); -const HRESULT MPEG2_E_DSI_NOT_FOUND = MAKE_E_ITF_HRESULT(MPEG2_BASE + 10); -const HRESULT MPEG2_E_SERVER_UNAVAILABLE = MAKE_E_ITF_HRESULT(MPEG2_BASE + 11); -const HRESULT MPEG2_E_INVALID_CAROUSEL_ID = MAKE_E_ITF_HRESULT(MPEG2_BASE + 12); -const HRESULT MPEG2_E_MALFORMED_DSMCC_MESSAGE = MAKE_E_ITF_HRESULT(MPEG2_BASE + 13); -const HRESULT MPEG2_E_INVALID_SG_OBJECT_KIND = MAKE_E_ITF_HRESULT(MPEG2_BASE + 14); -const HRESULT MPEG2_E_OBJECT_NOT_FOUND = MAKE_E_ITF_HRESULT(MPEG2_BASE + 15); -const HRESULT MPEG2_E_OBJECT_KIND_NOT_A_DIRECTORY = MAKE_E_ITF_HRESULT(MPEG2_BASE + 16); -const HRESULT MPEG2_E_OBJECT_KIND_NOT_A_FILE = MAKE_E_ITF_HRESULT(MPEG2_BASE + 17); -const HRESULT MPEG2_E_FILE_OFFSET_TOO_BIG = MAKE_E_ITF_HRESULT(MPEG2_BASE + 18); -const HRESULT MPEG2_E_STREAM_STOPPED = MAKE_E_ITF_HRESULT(MPEG2_BASE + 19); -const HRESULT MPEG2_E_REGISTRY_ACCESS_FAILED = MAKE_E_ITF_HRESULT(MPEG2_BASE + 20); -const HRESULT MPEG2_E_INVALID_UDP_PORT = MAKE_E_ITF_HRESULT(MPEG2_BASE + 21); -const HRESULT MPEG2_E_DATA_SOURCE_FAILED = MAKE_E_ITF_HRESULT(MPEG2_BASE + 22); -const HRESULT MPEG2_E_DII_NOT_FOUND = MAKE_E_ITF_HRESULT(MPEG2_BASE + 23); -const HRESULT MPEG2_E_DSHOW_PIN_NOT_FOUND = MAKE_E_ITF_HRESULT(MPEG2_BASE + 24); -const HRESULT MPEG2_E_BUFFER_TOO_SMALL = MAKE_E_ITF_HRESULT(MPEG2_BASE + 25); -const HRESULT MPEG2_E_MISSING_SECTIONS = MAKE_E_ITF_HRESULT(MPEG2_BASE + 26); -const HRESULT MPEG2_E_TOO_MANY_SECTIONS = MAKE_E_ITF_HRESULT(MPEG2_BASE + 27); -const HRESULT MPEG2_E_NEXT_TABLE_OPS_NOT_AVAILABLE = MAKE_E_ITF_HRESULT(MPEG2_BASE + 28); diff --git a/sdk/dx8sdk/Include/Mstvca.h b/sdk/dx8sdk/Include/Mstvca.h deleted file mode 100644 index b840f3e4..00000000 --- a/sdk/dx8sdk/Include/Mstvca.h +++ /dev/null @@ -1,8367 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for mstvca.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __mstvca_h__ -#define __mstvca_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __ICAManagerInternal_FWD_DEFINED__ -#define __ICAManagerInternal_FWD_DEFINED__ -typedef interface ICAManagerInternal ICAManagerInternal; -#endif /* __ICAManagerInternal_FWD_DEFINED__ */ - - -#ifndef __ICAManagerXProxy_FWD_DEFINED__ -#define __ICAManagerXProxy_FWD_DEFINED__ -typedef interface ICAManagerXProxy ICAManagerXProxy; -#endif /* __ICAManagerXProxy_FWD_DEFINED__ */ - - -#ifndef __ICAPolicies_FWD_DEFINED__ -#define __ICAPolicies_FWD_DEFINED__ -typedef interface ICAPolicies ICAPolicies; -#endif /* __ICAPolicies_FWD_DEFINED__ */ - - -#ifndef __ICAPoliciesInternal_FWD_DEFINED__ -#define __ICAPoliciesInternal_FWD_DEFINED__ -typedef interface ICAPoliciesInternal ICAPoliciesInternal; -#endif /* __ICAPoliciesInternal_FWD_DEFINED__ */ - - -#ifndef __ICATolls_FWD_DEFINED__ -#define __ICATolls_FWD_DEFINED__ -typedef interface ICATolls ICATolls; -#endif /* __ICATolls_FWD_DEFINED__ */ - - -#ifndef __ICATollsInternal_FWD_DEFINED__ -#define __ICATollsInternal_FWD_DEFINED__ -typedef interface ICATollsInternal ICATollsInternal; -#endif /* __ICATollsInternal_FWD_DEFINED__ */ - - -#ifndef __ICADenials_FWD_DEFINED__ -#define __ICADenials_FWD_DEFINED__ -typedef interface ICADenials ICADenials; -#endif /* __ICADenials_FWD_DEFINED__ */ - - -#ifndef __ICADenialsInternal_FWD_DEFINED__ -#define __ICADenialsInternal_FWD_DEFINED__ -typedef interface ICADenialsInternal ICADenialsInternal; -#endif /* __ICADenialsInternal_FWD_DEFINED__ */ - - -#ifndef __ICAOffers_FWD_DEFINED__ -#define __ICAOffers_FWD_DEFINED__ -typedef interface ICAOffers ICAOffers; -#endif /* __ICAOffers_FWD_DEFINED__ */ - - -#ifndef __ICAComponents_FWD_DEFINED__ -#define __ICAComponents_FWD_DEFINED__ -typedef interface ICAComponents ICAComponents; -#endif /* __ICAComponents_FWD_DEFINED__ */ - - -#ifndef __ICAComponentInternal_FWD_DEFINED__ -#define __ICAComponentInternal_FWD_DEFINED__ -typedef interface ICAComponentInternal ICAComponentInternal; -#endif /* __ICAComponentInternal_FWD_DEFINED__ */ - - -#ifndef __ICADefaultDlg_FWD_DEFINED__ -#define __ICADefaultDlg_FWD_DEFINED__ -typedef interface ICADefaultDlg ICADefaultDlg; -#endif /* __ICADefaultDlg_FWD_DEFINED__ */ - - -#ifndef ___ICAResDenialTreeEvents_FWD_DEFINED__ -#define ___ICAResDenialTreeEvents_FWD_DEFINED__ -typedef interface _ICAResDenialTreeEvents _ICAResDenialTreeEvents; -#endif /* ___ICAResDenialTreeEvents_FWD_DEFINED__ */ - - -#ifndef ___ICAManagerEvents_FWD_DEFINED__ -#define ___ICAManagerEvents_FWD_DEFINED__ -typedef interface _ICAManagerEvents _ICAManagerEvents; -#endif /* ___ICAManagerEvents_FWD_DEFINED__ */ - - -#ifndef ___ICARequestEvents_FWD_DEFINED__ -#define ___ICARequestEvents_FWD_DEFINED__ -typedef interface _ICARequestEvents _ICARequestEvents; -#endif /* ___ICARequestEvents_FWD_DEFINED__ */ - - -#ifndef ___ICAPoliciesEvents_FWD_DEFINED__ -#define ___ICAPoliciesEvents_FWD_DEFINED__ -typedef interface _ICAPoliciesEvents _ICAPoliciesEvents; -#endif /* ___ICAPoliciesEvents_FWD_DEFINED__ */ - - -#ifndef ___ICATollsEvents_FWD_DEFINED__ -#define ___ICATollsEvents_FWD_DEFINED__ -typedef interface _ICATollsEvents _ICATollsEvents; -#endif /* ___ICATollsEvents_FWD_DEFINED__ */ - - -#ifndef ___ICADenialsEvents_FWD_DEFINED__ -#define ___ICADenialsEvents_FWD_DEFINED__ -typedef interface _ICADenialsEvents _ICADenialsEvents; -#endif /* ___ICADenialsEvents_FWD_DEFINED__ */ - - -#ifndef ___ICAOffersEvents_FWD_DEFINED__ -#define ___ICAOffersEvents_FWD_DEFINED__ -typedef interface _ICAOffersEvents _ICAOffersEvents; -#endif /* ___ICAOffersEvents_FWD_DEFINED__ */ - - -#ifndef ___ICAComponentsEvents_FWD_DEFINED__ -#define ___ICAComponentsEvents_FWD_DEFINED__ -typedef interface _ICAComponentsEvents _ICAComponentsEvents; -#endif /* ___ICAComponentsEvents_FWD_DEFINED__ */ - - -#ifndef __ICAManager_FWD_DEFINED__ -#define __ICAManager_FWD_DEFINED__ -typedef interface ICAManager ICAManager; -#endif /* __ICAManager_FWD_DEFINED__ */ - - -#ifndef __ICARequest_FWD_DEFINED__ -#define __ICARequest_FWD_DEFINED__ -typedef interface ICARequest ICARequest; -#endif /* __ICARequest_FWD_DEFINED__ */ - - -#ifndef __ICAPolicy_FWD_DEFINED__ -#define __ICAPolicy_FWD_DEFINED__ -typedef interface ICAPolicy ICAPolicy; -#endif /* __ICAPolicy_FWD_DEFINED__ */ - - -#ifndef __ICAToll_FWD_DEFINED__ -#define __ICAToll_FWD_DEFINED__ -typedef interface ICAToll ICAToll; -#endif /* __ICAToll_FWD_DEFINED__ */ - - -#ifndef __ICADenial_FWD_DEFINED__ -#define __ICADenial_FWD_DEFINED__ -typedef interface ICADenial ICADenial; -#endif /* __ICADenial_FWD_DEFINED__ */ - - -#ifndef __ICAOffer_FWD_DEFINED__ -#define __ICAOffer_FWD_DEFINED__ -typedef interface ICAOffer ICAOffer; -#endif /* __ICAOffer_FWD_DEFINED__ */ - - -#ifndef __ICAComponent_FWD_DEFINED__ -#define __ICAComponent_FWD_DEFINED__ -typedef interface ICAComponent ICAComponent; -#endif /* __ICAComponent_FWD_DEFINED__ */ - - -#ifndef __CAManager_FWD_DEFINED__ -#define __CAManager_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class CAManager CAManager; -#else -typedef struct CAManager CAManager; -#endif /* __cplusplus */ - -#endif /* __CAManager_FWD_DEFINED__ */ - - -#ifndef __CAManagerProxy_FWD_DEFINED__ -#define __CAManagerProxy_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class CAManagerProxy CAManagerProxy; -#else -typedef struct CAManagerProxy CAManagerProxy; -#endif /* __cplusplus */ - -#endif /* __CAManagerProxy_FWD_DEFINED__ */ - - -#ifndef __CADenials_FWD_DEFINED__ -#define __CADenials_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class CADenials CADenials; -#else -typedef struct CADenials CADenials; -#endif /* __cplusplus */ - -#endif /* __CADenials_FWD_DEFINED__ */ - - -#ifndef __CAOffer_FWD_DEFINED__ -#define __CAOffer_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class CAOffer CAOffer; -#else -typedef struct CAOffer CAOffer; -#endif /* __cplusplus */ - -#endif /* __CAOffer_FWD_DEFINED__ */ - - -#ifndef __ICAResDenialTree_FWD_DEFINED__ -#define __ICAResDenialTree_FWD_DEFINED__ -typedef interface ICAResDenialTree ICAResDenialTree; -#endif /* __ICAResDenialTree_FWD_DEFINED__ */ - - -#ifndef __CAResDenialTree_FWD_DEFINED__ -#define __CAResDenialTree_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class CAResDenialTree CAResDenialTree; -#else -typedef struct CAResDenialTree CAResDenialTree; -#endif /* __cplusplus */ - -#endif /* __CAResDenialTree_FWD_DEFINED__ */ - - -#ifndef ___ICADefaultDlgEvents_FWD_DEFINED__ -#define ___ICADefaultDlgEvents_FWD_DEFINED__ -typedef interface _ICADefaultDlgEvents _ICADefaultDlgEvents; -#endif /* ___ICADefaultDlgEvents_FWD_DEFINED__ */ - - -#ifndef __CADefaultDlg_FWD_DEFINED__ -#define __CADefaultDlg_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class CADefaultDlg CADefaultDlg; -#else -typedef struct CADefaultDlg CADefaultDlg; -#endif /* __cplusplus */ - -#endif /* __CADefaultDlg_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "oaidl.h" -#include "ocidl.h" -#include "tuner.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_mstvca_0000 */ -/* [local] */ - - - - - - - - - - - - - - - -typedef /* [public][public][public][public][public][public][public][public][public][public][public] */ -enum __MIDL___MIDL_itf_mstvca_0000_0001 - { Unselected = 0, - Selected = 1 - } CATollState; - -typedef /* [public][public][public][public][public][public][public][public][public] */ -enum __MIDL___MIDL_itf_mstvca_0000_0002 - { Denied = 0, - Transient = 1, - DescriptionShort = 10, - DescriptionLong = 11, - DescriptionHTML = 12, - DescriptionXML = 13 - } CADenialState; - -typedef /* [public][public][public][public][public][public][public] */ -enum __MIDL___MIDL_itf_mstvca_0000_0003 - { Short = 0, - Long = 1, - URL = 2, - HTML = 3, - XML = 4, - kDescEnd = 5 - } CADescFormat; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_mstvca_0000_0004 - { Request = 1, - ComponentX = 2, - Offers = 4, - PaidTolls = 8, - Policies = 16, - Standard = 15, - All = 31 - } CAUIDisplayFields; - - - -extern RPC_IF_HANDLE __MIDL_itf_mstvca_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_mstvca_0000_v0_0_s_ifspec; - -#ifndef __ICAManagerInternal_INTERFACE_DEFINED__ -#define __ICAManagerInternal_INTERFACE_DEFINED__ - -/* interface ICAManagerInternal */ -/* [unique][helpstring][restricted][hidden][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICAManagerInternal; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166301-DF8A-463a-B620-7BEC23542010") - ICAManagerInternal : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Load( void) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MarkDirty( - /* [in] */ BOOL fDirty) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MarkDirty( - /* [retval][out] */ BOOL *pfDirty) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_TuneRequest( - /* [in] */ ITuneRequest *ptunereq) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDefaultUI( - /* [out] */ HWND *phwnd) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetDefaultUI( - /* [in] */ HWND hwnd) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CAManagerMain( - /* [retval][out] */ ICAManager **ppManagerMain) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BroadcastEventService( - /* [in] */ IBroadcastEvent *pBroadcastEventService) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BroadcastEventService( - /* [retval][out] */ IBroadcastEvent **ppBroadcastEventService) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DisplayDefaultUI( - /* [in] */ VARIANT_BOOL fDisplay) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnableDefaultUIPayTollsButton( - /* [in] */ VARIANT_BOOL fEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UpdateDefaultUIForToll( - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enState) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_TuneRequestInt( - /* [in] */ ITuneRequest *ptunereq) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddDenialsFor( - /* [in] */ IUnknown *pUnk) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveDenialsFor( - /* [in] */ IUnknown *pUnk) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyRequestActivated( - /* [in] */ ICARequest *pReq) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyRequestDeactivated( - /* [in] */ ICARequest *pReq) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOfferAdded( - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOfferRemoved( - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyPolicyAdded( - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyPolicyRemoved( - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyRequestDenialAdded( - /* [in] */ ICARequest *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyRequestDenialRemoved( - /* [in] */ ICARequest *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDenialTollAdded( - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDenialTollRemoved( - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTollDenialAdded( - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTollDenialRemoved( - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOfferTollAdded( - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOfferTollRemoved( - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTollStateChanged( - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateLast) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDenialStateChanged( - /* [in] */ ICADenial *pDenial, - /* [in] */ CADenialState enStateLast) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyComponentDenialAdded( - /* [in] */ ICAComponent *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyComponentDenialRemoved( - /* [in] */ ICAComponent *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICAManagerInternalVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAManagerInternal * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAManagerInternal * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAManagerInternal * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( - ICAManagerInternal * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Load )( - ICAManagerInternal * This); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MarkDirty )( - ICAManagerInternal * This, - /* [in] */ BOOL fDirty); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MarkDirty )( - ICAManagerInternal * This, - /* [retval][out] */ BOOL *pfDirty); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TuneRequest )( - ICAManagerInternal * This, - /* [in] */ ITuneRequest *ptunereq); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDefaultUI )( - ICAManagerInternal * This, - /* [out] */ HWND *phwnd); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetDefaultUI )( - ICAManagerInternal * This, - /* [in] */ HWND hwnd); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CAManagerMain )( - ICAManagerInternal * This, - /* [retval][out] */ ICAManager **ppManagerMain); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BroadcastEventService )( - ICAManagerInternal * This, - /* [in] */ IBroadcastEvent *pBroadcastEventService); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BroadcastEventService )( - ICAManagerInternal * This, - /* [retval][out] */ IBroadcastEvent **ppBroadcastEventService); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DisplayDefaultUI )( - ICAManagerInternal * This, - /* [in] */ VARIANT_BOOL fDisplay); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnableDefaultUIPayTollsButton )( - ICAManagerInternal * This, - /* [in] */ VARIANT_BOOL fEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateDefaultUIForToll )( - ICAManagerInternal * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enState); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TuneRequestInt )( - ICAManagerInternal * This, - /* [in] */ ITuneRequest *ptunereq); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddDenialsFor )( - ICAManagerInternal * This, - /* [in] */ IUnknown *pUnk); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveDenialsFor )( - ICAManagerInternal * This, - /* [in] */ IUnknown *pUnk); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyRequestActivated )( - ICAManagerInternal * This, - /* [in] */ ICARequest *pReq); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyRequestDeactivated )( - ICAManagerInternal * This, - /* [in] */ ICARequest *pReq); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOfferAdded )( - ICAManagerInternal * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOfferRemoved )( - ICAManagerInternal * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyPolicyAdded )( - ICAManagerInternal * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyPolicyRemoved )( - ICAManagerInternal * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyRequestDenialAdded )( - ICAManagerInternal * This, - /* [in] */ ICARequest *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyRequestDenialRemoved )( - ICAManagerInternal * This, - /* [in] */ ICARequest *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDenialTollAdded )( - ICAManagerInternal * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDenialTollRemoved )( - ICAManagerInternal * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTollDenialAdded )( - ICAManagerInternal * This, - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTollDenialRemoved )( - ICAManagerInternal * This, - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOfferTollAdded )( - ICAManagerInternal * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOfferTollRemoved )( - ICAManagerInternal * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTollStateChanged )( - ICAManagerInternal * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateLast); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDenialStateChanged )( - ICAManagerInternal * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ CADenialState enStateLast); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyComponentDenialAdded )( - ICAManagerInternal * This, - /* [in] */ ICAComponent *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyComponentDenialRemoved )( - ICAManagerInternal * This, - /* [in] */ ICAComponent *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - END_INTERFACE - } ICAManagerInternalVtbl; - - interface ICAManagerInternal - { - CONST_VTBL struct ICAManagerInternalVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAManagerInternal_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAManagerInternal_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAManagerInternal_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAManagerInternal_Save(This) \ - (This)->lpVtbl -> Save(This) - -#define ICAManagerInternal_Load(This) \ - (This)->lpVtbl -> Load(This) - -#define ICAManagerInternal_put_MarkDirty(This,fDirty) \ - (This)->lpVtbl -> put_MarkDirty(This,fDirty) - -#define ICAManagerInternal_get_MarkDirty(This,pfDirty) \ - (This)->lpVtbl -> get_MarkDirty(This,pfDirty) - -#define ICAManagerInternal_put_TuneRequest(This,ptunereq) \ - (This)->lpVtbl -> put_TuneRequest(This,ptunereq) - -#define ICAManagerInternal_GetDefaultUI(This,phwnd) \ - (This)->lpVtbl -> GetDefaultUI(This,phwnd) - -#define ICAManagerInternal_SetDefaultUI(This,hwnd) \ - (This)->lpVtbl -> SetDefaultUI(This,hwnd) - -#define ICAManagerInternal_get_CAManagerMain(This,ppManagerMain) \ - (This)->lpVtbl -> get_CAManagerMain(This,ppManagerMain) - -#define ICAManagerInternal_put_BroadcastEventService(This,pBroadcastEventService) \ - (This)->lpVtbl -> put_BroadcastEventService(This,pBroadcastEventService) - -#define ICAManagerInternal_get_BroadcastEventService(This,ppBroadcastEventService) \ - (This)->lpVtbl -> get_BroadcastEventService(This,ppBroadcastEventService) - -#define ICAManagerInternal_DisplayDefaultUI(This,fDisplay) \ - (This)->lpVtbl -> DisplayDefaultUI(This,fDisplay) - -#define ICAManagerInternal_EnableDefaultUIPayTollsButton(This,fEnabled) \ - (This)->lpVtbl -> EnableDefaultUIPayTollsButton(This,fEnabled) - -#define ICAManagerInternal_UpdateDefaultUIForToll(This,pToll,enState) \ - (This)->lpVtbl -> UpdateDefaultUIForToll(This,pToll,enState) - -#define ICAManagerInternal_put_TuneRequestInt(This,ptunereq) \ - (This)->lpVtbl -> put_TuneRequestInt(This,ptunereq) - -#define ICAManagerInternal_AddDenialsFor(This,pUnk) \ - (This)->lpVtbl -> AddDenialsFor(This,pUnk) - -#define ICAManagerInternal_RemoveDenialsFor(This,pUnk) \ - (This)->lpVtbl -> RemoveDenialsFor(This,pUnk) - -#define ICAManagerInternal_NotifyRequestActivated(This,pReq) \ - (This)->lpVtbl -> NotifyRequestActivated(This,pReq) - -#define ICAManagerInternal_NotifyRequestDeactivated(This,pReq) \ - (This)->lpVtbl -> NotifyRequestDeactivated(This,pReq) - -#define ICAManagerInternal_NotifyOfferAdded(This,pOffer,cOffers) \ - (This)->lpVtbl -> NotifyOfferAdded(This,pOffer,cOffers) - -#define ICAManagerInternal_NotifyOfferRemoved(This,pOffer,cOffers) \ - (This)->lpVtbl -> NotifyOfferRemoved(This,pOffer,cOffers) - -#define ICAManagerInternal_NotifyPolicyAdded(This,pPolicy,cPolicies) \ - (This)->lpVtbl -> NotifyPolicyAdded(This,pPolicy,cPolicies) - -#define ICAManagerInternal_NotifyPolicyRemoved(This,pPolicy,cPolicies) \ - (This)->lpVtbl -> NotifyPolicyRemoved(This,pPolicy,cPolicies) - -#define ICAManagerInternal_NotifyRequestDenialAdded(This,pReq,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyRequestDenialAdded(This,pReq,pDenial,cDenials) - -#define ICAManagerInternal_NotifyRequestDenialRemoved(This,pReq,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyRequestDenialRemoved(This,pReq,pDenial,cDenials) - -#define ICAManagerInternal_NotifyDenialTollAdded(This,pDenial,pToll,cTolls) \ - (This)->lpVtbl -> NotifyDenialTollAdded(This,pDenial,pToll,cTolls) - -#define ICAManagerInternal_NotifyDenialTollRemoved(This,pDenial,pToll,cTolls) \ - (This)->lpVtbl -> NotifyDenialTollRemoved(This,pDenial,pToll,cTolls) - -#define ICAManagerInternal_NotifyTollDenialAdded(This,pToll,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyTollDenialAdded(This,pToll,pDenial,cDenials) - -#define ICAManagerInternal_NotifyTollDenialRemoved(This,pToll,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyTollDenialRemoved(This,pToll,pDenial,cDenials) - -#define ICAManagerInternal_NotifyOfferTollAdded(This,pOffer,pToll,cTolls) \ - (This)->lpVtbl -> NotifyOfferTollAdded(This,pOffer,pToll,cTolls) - -#define ICAManagerInternal_NotifyOfferTollRemoved(This,pOffer,pToll,cTolls) \ - (This)->lpVtbl -> NotifyOfferTollRemoved(This,pOffer,pToll,cTolls) - -#define ICAManagerInternal_NotifyTollStateChanged(This,pToll,enStateLast) \ - (This)->lpVtbl -> NotifyTollStateChanged(This,pToll,enStateLast) - -#define ICAManagerInternal_NotifyDenialStateChanged(This,pDenial,enStateLast) \ - (This)->lpVtbl -> NotifyDenialStateChanged(This,pDenial,enStateLast) - -#define ICAManagerInternal_NotifyComponentDenialAdded(This,pReq,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyComponentDenialAdded(This,pReq,pDenial,cDenials) - -#define ICAManagerInternal_NotifyComponentDenialRemoved(This,pReq,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyComponentDenialRemoved(This,pReq,pDenial,cDenials) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_Save_Proxy( - ICAManagerInternal * This); - - -void __RPC_STUB ICAManagerInternal_Save_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_Load_Proxy( - ICAManagerInternal * This); - - -void __RPC_STUB ICAManagerInternal_Load_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_put_MarkDirty_Proxy( - ICAManagerInternal * This, - /* [in] */ BOOL fDirty); - - -void __RPC_STUB ICAManagerInternal_put_MarkDirty_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_get_MarkDirty_Proxy( - ICAManagerInternal * This, - /* [retval][out] */ BOOL *pfDirty); - - -void __RPC_STUB ICAManagerInternal_get_MarkDirty_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_put_TuneRequest_Proxy( - ICAManagerInternal * This, - /* [in] */ ITuneRequest *ptunereq); - - -void __RPC_STUB ICAManagerInternal_put_TuneRequest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_GetDefaultUI_Proxy( - ICAManagerInternal * This, - /* [out] */ HWND *phwnd); - - -void __RPC_STUB ICAManagerInternal_GetDefaultUI_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_SetDefaultUI_Proxy( - ICAManagerInternal * This, - /* [in] */ HWND hwnd); - - -void __RPC_STUB ICAManagerInternal_SetDefaultUI_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_get_CAManagerMain_Proxy( - ICAManagerInternal * This, - /* [retval][out] */ ICAManager **ppManagerMain); - - -void __RPC_STUB ICAManagerInternal_get_CAManagerMain_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_put_BroadcastEventService_Proxy( - ICAManagerInternal * This, - /* [in] */ IBroadcastEvent *pBroadcastEventService); - - -void __RPC_STUB ICAManagerInternal_put_BroadcastEventService_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_get_BroadcastEventService_Proxy( - ICAManagerInternal * This, - /* [retval][out] */ IBroadcastEvent **ppBroadcastEventService); - - -void __RPC_STUB ICAManagerInternal_get_BroadcastEventService_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_DisplayDefaultUI_Proxy( - ICAManagerInternal * This, - /* [in] */ VARIANT_BOOL fDisplay); - - -void __RPC_STUB ICAManagerInternal_DisplayDefaultUI_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_EnableDefaultUIPayTollsButton_Proxy( - ICAManagerInternal * This, - /* [in] */ VARIANT_BOOL fEnabled); - - -void __RPC_STUB ICAManagerInternal_EnableDefaultUIPayTollsButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_UpdateDefaultUIForToll_Proxy( - ICAManagerInternal * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enState); - - -void __RPC_STUB ICAManagerInternal_UpdateDefaultUIForToll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_put_TuneRequestInt_Proxy( - ICAManagerInternal * This, - /* [in] */ ITuneRequest *ptunereq); - - -void __RPC_STUB ICAManagerInternal_put_TuneRequestInt_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_AddDenialsFor_Proxy( - ICAManagerInternal * This, - /* [in] */ IUnknown *pUnk); - - -void __RPC_STUB ICAManagerInternal_AddDenialsFor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_RemoveDenialsFor_Proxy( - ICAManagerInternal * This, - /* [in] */ IUnknown *pUnk); - - -void __RPC_STUB ICAManagerInternal_RemoveDenialsFor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyRequestActivated_Proxy( - ICAManagerInternal * This, - /* [in] */ ICARequest *pReq); - - -void __RPC_STUB ICAManagerInternal_NotifyRequestActivated_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyRequestDeactivated_Proxy( - ICAManagerInternal * This, - /* [in] */ ICARequest *pReq); - - -void __RPC_STUB ICAManagerInternal_NotifyRequestDeactivated_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyOfferAdded_Proxy( - ICAManagerInternal * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers); - - -void __RPC_STUB ICAManagerInternal_NotifyOfferAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyOfferRemoved_Proxy( - ICAManagerInternal * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers); - - -void __RPC_STUB ICAManagerInternal_NotifyOfferRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyPolicyAdded_Proxy( - ICAManagerInternal * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies); - - -void __RPC_STUB ICAManagerInternal_NotifyPolicyAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyPolicyRemoved_Proxy( - ICAManagerInternal * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies); - - -void __RPC_STUB ICAManagerInternal_NotifyPolicyRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyRequestDenialAdded_Proxy( - ICAManagerInternal * This, - /* [in] */ ICARequest *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAManagerInternal_NotifyRequestDenialAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyRequestDenialRemoved_Proxy( - ICAManagerInternal * This, - /* [in] */ ICARequest *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAManagerInternal_NotifyRequestDenialRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyDenialTollAdded_Proxy( - ICAManagerInternal * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - -void __RPC_STUB ICAManagerInternal_NotifyDenialTollAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyDenialTollRemoved_Proxy( - ICAManagerInternal * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - -void __RPC_STUB ICAManagerInternal_NotifyDenialTollRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyTollDenialAdded_Proxy( - ICAManagerInternal * This, - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAManagerInternal_NotifyTollDenialAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyTollDenialRemoved_Proxy( - ICAManagerInternal * This, - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAManagerInternal_NotifyTollDenialRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyOfferTollAdded_Proxy( - ICAManagerInternal * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - -void __RPC_STUB ICAManagerInternal_NotifyOfferTollAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyOfferTollRemoved_Proxy( - ICAManagerInternal * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - -void __RPC_STUB ICAManagerInternal_NotifyOfferTollRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyTollStateChanged_Proxy( - ICAManagerInternal * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateLast); - - -void __RPC_STUB ICAManagerInternal_NotifyTollStateChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyDenialStateChanged_Proxy( - ICAManagerInternal * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ CADenialState enStateLast); - - -void __RPC_STUB ICAManagerInternal_NotifyDenialStateChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyComponentDenialAdded_Proxy( - ICAManagerInternal * This, - /* [in] */ ICAComponent *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAManagerInternal_NotifyComponentDenialAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerInternal_NotifyComponentDenialRemoved_Proxy( - ICAManagerInternal * This, - /* [in] */ ICAComponent *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAManagerInternal_NotifyComponentDenialRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAManagerInternal_INTERFACE_DEFINED__ */ - - -#ifndef __ICAManagerXProxy_INTERFACE_DEFINED__ -#define __ICAManagerXProxy_INTERFACE_DEFINED__ - -/* interface ICAManagerXProxy */ -/* [unique][helpstring][restricted][hidden][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICAManagerXProxy; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166302-DF8A-463a-B620-7BEC23542010") - ICAManagerXProxy : public IUnknown - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PunkCAManagerProxy( - /* [retval][out] */ IUnknown **ppUnkCAManagerProxy) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyRequestActivated_XProxy( - /* [in] */ ICARequest *pReq) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyRequestDeactivated_XProxy( - /* [in] */ ICARequest *pReq) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOfferAdded_XProxy( - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOfferRemoved_XProxy( - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyPolicyAdded_XProxy( - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyPolicyRemoved_XProxy( - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyRequestDenialAdded_XProxy( - /* [in] */ ICARequest *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyRequestDenialRemoved_XProxy( - /* [in] */ ICARequest *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDenialTollAdded_XProxy( - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDenialTollRemoved_XProxy( - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTollDenialAdded_XProxy( - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTollDenialRemoved_XProxy( - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOfferTollAdded_XProxy( - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOfferTollRemoved_XProxy( - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTollStateChanged_XProxy( - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateLast) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDenialStateChanged_XProxy( - /* [in] */ ICADenial *pDenial, - /* [in] */ CADenialState enStateLast) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyComponentDenialAdded_XProxy( - /* [in] */ ICAComponent *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyComponentDenialRemoved_XProxy( - /* [in] */ ICAComponent *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICAManagerXProxyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAManagerXProxy * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAManagerXProxy * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAManagerXProxy * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PunkCAManagerProxy )( - ICAManagerXProxy * This, - /* [retval][out] */ IUnknown **ppUnkCAManagerProxy); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyRequestActivated_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICARequest *pReq); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyRequestDeactivated_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICARequest *pReq); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOfferAdded_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOfferRemoved_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyPolicyAdded_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyPolicyRemoved_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyRequestDenialAdded_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICARequest *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyRequestDenialRemoved_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICARequest *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDenialTollAdded_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDenialTollRemoved_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTollDenialAdded_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTollDenialRemoved_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOfferTollAdded_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOfferTollRemoved_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTollStateChanged_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateLast); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDenialStateChanged_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ CADenialState enStateLast); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyComponentDenialAdded_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICAComponent *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyComponentDenialRemoved_XProxy )( - ICAManagerXProxy * This, - /* [in] */ ICAComponent *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - END_INTERFACE - } ICAManagerXProxyVtbl; - - interface ICAManagerXProxy - { - CONST_VTBL struct ICAManagerXProxyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAManagerXProxy_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAManagerXProxy_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAManagerXProxy_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAManagerXProxy_get_PunkCAManagerProxy(This,ppUnkCAManagerProxy) \ - (This)->lpVtbl -> get_PunkCAManagerProxy(This,ppUnkCAManagerProxy) - -#define ICAManagerXProxy_NotifyRequestActivated_XProxy(This,pReq) \ - (This)->lpVtbl -> NotifyRequestActivated_XProxy(This,pReq) - -#define ICAManagerXProxy_NotifyRequestDeactivated_XProxy(This,pReq) \ - (This)->lpVtbl -> NotifyRequestDeactivated_XProxy(This,pReq) - -#define ICAManagerXProxy_NotifyOfferAdded_XProxy(This,pOffer,cOffers) \ - (This)->lpVtbl -> NotifyOfferAdded_XProxy(This,pOffer,cOffers) - -#define ICAManagerXProxy_NotifyOfferRemoved_XProxy(This,pOffer,cOffers) \ - (This)->lpVtbl -> NotifyOfferRemoved_XProxy(This,pOffer,cOffers) - -#define ICAManagerXProxy_NotifyPolicyAdded_XProxy(This,pPolicy,cPolicies) \ - (This)->lpVtbl -> NotifyPolicyAdded_XProxy(This,pPolicy,cPolicies) - -#define ICAManagerXProxy_NotifyPolicyRemoved_XProxy(This,pPolicy,cPolicies) \ - (This)->lpVtbl -> NotifyPolicyRemoved_XProxy(This,pPolicy,cPolicies) - -#define ICAManagerXProxy_NotifyRequestDenialAdded_XProxy(This,pReq,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyRequestDenialAdded_XProxy(This,pReq,pDenial,cDenials) - -#define ICAManagerXProxy_NotifyRequestDenialRemoved_XProxy(This,pReq,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyRequestDenialRemoved_XProxy(This,pReq,pDenial,cDenials) - -#define ICAManagerXProxy_NotifyDenialTollAdded_XProxy(This,pDenial,pToll,cTolls) \ - (This)->lpVtbl -> NotifyDenialTollAdded_XProxy(This,pDenial,pToll,cTolls) - -#define ICAManagerXProxy_NotifyDenialTollRemoved_XProxy(This,pDenial,pToll,cTolls) \ - (This)->lpVtbl -> NotifyDenialTollRemoved_XProxy(This,pDenial,pToll,cTolls) - -#define ICAManagerXProxy_NotifyTollDenialAdded_XProxy(This,pToll,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyTollDenialAdded_XProxy(This,pToll,pDenial,cDenials) - -#define ICAManagerXProxy_NotifyTollDenialRemoved_XProxy(This,pToll,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyTollDenialRemoved_XProxy(This,pToll,pDenial,cDenials) - -#define ICAManagerXProxy_NotifyOfferTollAdded_XProxy(This,pOffer,pToll,cTolls) \ - (This)->lpVtbl -> NotifyOfferTollAdded_XProxy(This,pOffer,pToll,cTolls) - -#define ICAManagerXProxy_NotifyOfferTollRemoved_XProxy(This,pOffer,pToll,cTolls) \ - (This)->lpVtbl -> NotifyOfferTollRemoved_XProxy(This,pOffer,pToll,cTolls) - -#define ICAManagerXProxy_NotifyTollStateChanged_XProxy(This,pToll,enStateLast) \ - (This)->lpVtbl -> NotifyTollStateChanged_XProxy(This,pToll,enStateLast) - -#define ICAManagerXProxy_NotifyDenialStateChanged_XProxy(This,pDenial,enStateLast) \ - (This)->lpVtbl -> NotifyDenialStateChanged_XProxy(This,pDenial,enStateLast) - -#define ICAManagerXProxy_NotifyComponentDenialAdded_XProxy(This,pReq,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyComponentDenialAdded_XProxy(This,pReq,pDenial,cDenials) - -#define ICAManagerXProxy_NotifyComponentDenialRemoved_XProxy(This,pReq,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyComponentDenialRemoved_XProxy(This,pReq,pDenial,cDenials) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_get_PunkCAManagerProxy_Proxy( - ICAManagerXProxy * This, - /* [retval][out] */ IUnknown **ppUnkCAManagerProxy); - - -void __RPC_STUB ICAManagerXProxy_get_PunkCAManagerProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyRequestActivated_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICARequest *pReq); - - -void __RPC_STUB ICAManagerXProxy_NotifyRequestActivated_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyRequestDeactivated_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICARequest *pReq); - - -void __RPC_STUB ICAManagerXProxy_NotifyRequestDeactivated_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyOfferAdded_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers); - - -void __RPC_STUB ICAManagerXProxy_NotifyOfferAdded_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyOfferRemoved_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers); - - -void __RPC_STUB ICAManagerXProxy_NotifyOfferRemoved_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyPolicyAdded_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies); - - -void __RPC_STUB ICAManagerXProxy_NotifyPolicyAdded_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyPolicyRemoved_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies); - - -void __RPC_STUB ICAManagerXProxy_NotifyPolicyRemoved_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyRequestDenialAdded_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICARequest *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAManagerXProxy_NotifyRequestDenialAdded_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyRequestDenialRemoved_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICARequest *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAManagerXProxy_NotifyRequestDenialRemoved_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyDenialTollAdded_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - -void __RPC_STUB ICAManagerXProxy_NotifyDenialTollAdded_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyDenialTollRemoved_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - -void __RPC_STUB ICAManagerXProxy_NotifyDenialTollRemoved_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyTollDenialAdded_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAManagerXProxy_NotifyTollDenialAdded_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyTollDenialRemoved_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAManagerXProxy_NotifyTollDenialRemoved_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyOfferTollAdded_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - -void __RPC_STUB ICAManagerXProxy_NotifyOfferTollAdded_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyOfferTollRemoved_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - -void __RPC_STUB ICAManagerXProxy_NotifyOfferTollRemoved_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyTollStateChanged_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateLast); - - -void __RPC_STUB ICAManagerXProxy_NotifyTollStateChanged_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyDenialStateChanged_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ CADenialState enStateLast); - - -void __RPC_STUB ICAManagerXProxy_NotifyDenialStateChanged_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyComponentDenialAdded_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICAComponent *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAManagerXProxy_NotifyComponentDenialAdded_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAManagerXProxy_NotifyComponentDenialRemoved_XProxy_Proxy( - ICAManagerXProxy * This, - /* [in] */ ICAComponent *pReq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAManagerXProxy_NotifyComponentDenialRemoved_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAManagerXProxy_INTERFACE_DEFINED__ */ - - -#ifndef __ICAPolicies_INTERFACE_DEFINED__ -#define __ICAPolicies_INTERFACE_DEFINED__ - -/* interface ICAPolicies */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICAPolicies; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166420-DF8A-463a-B620-7BEC23542010") - ICAPolicies : public IDispatch - { - public: - virtual /* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **ppCollection) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *Count) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT Index, - /* [retval][out] */ ICAPolicy **ppPolicy) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ ICAPolicy *pPolicy) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT Index) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICAPoliciesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAPolicies * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAPolicies * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAPolicies * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICAPolicies * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICAPolicies * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICAPolicies * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICAPolicies * 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); - - /* [restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ICAPolicies * This, - /* [retval][out] */ IUnknown **ppCollection); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ICAPolicies * This, - /* [retval][out] */ long *Count); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ICAPolicies * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ ICAPolicy **ppPolicy); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - ICAPolicies * This, - /* [in] */ ICAPolicy *pPolicy); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - ICAPolicies * This, - /* [in] */ VARIANT Index); - - END_INTERFACE - } ICAPoliciesVtbl; - - interface ICAPolicies - { - CONST_VTBL struct ICAPoliciesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAPolicies_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAPolicies_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAPolicies_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAPolicies_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICAPolicies_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICAPolicies_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICAPolicies_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICAPolicies_get__NewEnum(This,ppCollection) \ - (This)->lpVtbl -> get__NewEnum(This,ppCollection) - -#define ICAPolicies_get_Count(This,Count) \ - (This)->lpVtbl -> get_Count(This,Count) - -#define ICAPolicies_get_Item(This,Index,ppPolicy) \ - (This)->lpVtbl -> get_Item(This,Index,ppPolicy) - -#define ICAPolicies_Add(This,pPolicy) \ - (This)->lpVtbl -> Add(This,pPolicy) - -#define ICAPolicies_Remove(This,Index) \ - (This)->lpVtbl -> Remove(This,Index) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE ICAPolicies_get__NewEnum_Proxy( - ICAPolicies * This, - /* [retval][out] */ IUnknown **ppCollection); - - -void __RPC_STUB ICAPolicies_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICAPolicies_get_Count_Proxy( - ICAPolicies * This, - /* [retval][out] */ long *Count); - - -void __RPC_STUB ICAPolicies_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICAPolicies_get_Item_Proxy( - ICAPolicies * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ ICAPolicy **ppPolicy); - - -void __RPC_STUB ICAPolicies_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE ICAPolicies_Add_Proxy( - ICAPolicies * This, - /* [in] */ ICAPolicy *pPolicy); - - -void __RPC_STUB ICAPolicies_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE ICAPolicies_Remove_Proxy( - ICAPolicies * This, - /* [in] */ VARIANT Index); - - -void __RPC_STUB ICAPolicies_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAPolicies_INTERFACE_DEFINED__ */ - - -#ifndef __ICAPoliciesInternal_INTERFACE_DEFINED__ -#define __ICAPoliciesInternal_INTERFACE_DEFINED__ - -/* interface ICAPoliciesInternal */ -/* [unique][helpstring][restricted][hidden][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICAPoliciesInternal; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166421-DF8A-463a-B620-7BEC23542010") - ICAPoliciesInternal : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetCAManager( - /* [in] */ ICAManager *pManager) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CheckRequest( - /* [in] */ ICARequest *pReq) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICAPoliciesInternalVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAPoliciesInternal * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAPoliciesInternal * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAPoliciesInternal * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetCAManager )( - ICAPoliciesInternal * This, - /* [in] */ ICAManager *pManager); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CheckRequest )( - ICAPoliciesInternal * This, - /* [in] */ ICARequest *pReq); - - END_INTERFACE - } ICAPoliciesInternalVtbl; - - interface ICAPoliciesInternal - { - CONST_VTBL struct ICAPoliciesInternalVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAPoliciesInternal_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAPoliciesInternal_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAPoliciesInternal_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAPoliciesInternal_SetCAManager(This,pManager) \ - (This)->lpVtbl -> SetCAManager(This,pManager) - -#define ICAPoliciesInternal_CheckRequest(This,pReq) \ - (This)->lpVtbl -> CheckRequest(This,pReq) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAPoliciesInternal_SetCAManager_Proxy( - ICAPoliciesInternal * This, - /* [in] */ ICAManager *pManager); - - -void __RPC_STUB ICAPoliciesInternal_SetCAManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAPoliciesInternal_CheckRequest_Proxy( - ICAPoliciesInternal * This, - /* [in] */ ICARequest *pReq); - - -void __RPC_STUB ICAPoliciesInternal_CheckRequest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAPoliciesInternal_INTERFACE_DEFINED__ */ - - -#ifndef __ICATolls_INTERFACE_DEFINED__ -#define __ICATolls_INTERFACE_DEFINED__ - -/* interface ICATolls */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICATolls; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166430-DF8A-463a-B620-7BEC23542010") - ICATolls : public IDispatch - { - public: - virtual /* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **ppCollection) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *Count) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT Index, - /* [retval][out] */ ICAToll **ppToll) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ ICAToll *pToll) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT Index) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICATollsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICATolls * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICATolls * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICATolls * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICATolls * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICATolls * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICATolls * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICATolls * 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); - - /* [restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ICATolls * This, - /* [retval][out] */ IUnknown **ppCollection); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ICATolls * This, - /* [retval][out] */ long *Count); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ICATolls * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ ICAToll **ppToll); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - ICATolls * This, - /* [in] */ ICAToll *pToll); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - ICATolls * This, - /* [in] */ VARIANT Index); - - END_INTERFACE - } ICATollsVtbl; - - interface ICATolls - { - CONST_VTBL struct ICATollsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICATolls_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICATolls_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICATolls_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICATolls_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICATolls_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICATolls_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICATolls_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICATolls_get__NewEnum(This,ppCollection) \ - (This)->lpVtbl -> get__NewEnum(This,ppCollection) - -#define ICATolls_get_Count(This,Count) \ - (This)->lpVtbl -> get_Count(This,Count) - -#define ICATolls_get_Item(This,Index,ppToll) \ - (This)->lpVtbl -> get_Item(This,Index,ppToll) - -#define ICATolls_Add(This,pToll) \ - (This)->lpVtbl -> Add(This,pToll) - -#define ICATolls_Remove(This,Index) \ - (This)->lpVtbl -> Remove(This,Index) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE ICATolls_get__NewEnum_Proxy( - ICATolls * This, - /* [retval][out] */ IUnknown **ppCollection); - - -void __RPC_STUB ICATolls_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICATolls_get_Count_Proxy( - ICATolls * This, - /* [retval][out] */ long *Count); - - -void __RPC_STUB ICATolls_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICATolls_get_Item_Proxy( - ICATolls * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ ICAToll **ppToll); - - -void __RPC_STUB ICATolls_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE ICATolls_Add_Proxy( - ICATolls * This, - /* [in] */ ICAToll *pToll); - - -void __RPC_STUB ICATolls_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE ICATolls_Remove_Proxy( - ICATolls * This, - /* [in] */ VARIANT Index); - - -void __RPC_STUB ICATolls_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICATolls_INTERFACE_DEFINED__ */ - - -#ifndef __ICATollsInternal_INTERFACE_DEFINED__ -#define __ICATollsInternal_INTERFACE_DEFINED__ - -/* interface ICATollsInternal */ -/* [unique][helpstring][restricted][hidden][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICATollsInternal; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166431-DF8A-463a-B620-7BEC23542010") - ICATollsInternal : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetCAManager( - /* [in] */ ICAManager *pManager) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCAManager( - /* [out] */ ICAManager **ppManager) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetMustPersist( - /* [in] */ BOOL fMustPersist) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( - /* [in] */ IStorage *pstore, - /* [in] */ BSTR bstrPrefix) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Load( - /* [in] */ IStorage *pstore, - /* [in] */ BSTR bstrPrefix) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyStateChanged( - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateFrom) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTollSelectionChanged( - /* [in] */ ICAToll *pToll, - /* [in] */ BOOL fSelected) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICATollsInternalVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICATollsInternal * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICATollsInternal * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICATollsInternal * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetCAManager )( - ICATollsInternal * This, - /* [in] */ ICAManager *pManager); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCAManager )( - ICATollsInternal * This, - /* [out] */ ICAManager **ppManager); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetMustPersist )( - ICATollsInternal * This, - /* [in] */ BOOL fMustPersist); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( - ICATollsInternal * This, - /* [in] */ IStorage *pstore, - /* [in] */ BSTR bstrPrefix); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Load )( - ICATollsInternal * This, - /* [in] */ IStorage *pstore, - /* [in] */ BSTR bstrPrefix); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyStateChanged )( - ICATollsInternal * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateFrom); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTollSelectionChanged )( - ICATollsInternal * This, - /* [in] */ ICAToll *pToll, - /* [in] */ BOOL fSelected); - - END_INTERFACE - } ICATollsInternalVtbl; - - interface ICATollsInternal - { - CONST_VTBL struct ICATollsInternalVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICATollsInternal_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICATollsInternal_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICATollsInternal_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICATollsInternal_SetCAManager(This,pManager) \ - (This)->lpVtbl -> SetCAManager(This,pManager) - -#define ICATollsInternal_GetCAManager(This,ppManager) \ - (This)->lpVtbl -> GetCAManager(This,ppManager) - -#define ICATollsInternal_SetMustPersist(This,fMustPersist) \ - (This)->lpVtbl -> SetMustPersist(This,fMustPersist) - -#define ICATollsInternal_Save(This,pstore,bstrPrefix) \ - (This)->lpVtbl -> Save(This,pstore,bstrPrefix) - -#define ICATollsInternal_Load(This,pstore,bstrPrefix) \ - (This)->lpVtbl -> Load(This,pstore,bstrPrefix) - -#define ICATollsInternal_NotifyStateChanged(This,pToll,enStateFrom) \ - (This)->lpVtbl -> NotifyStateChanged(This,pToll,enStateFrom) - -#define ICATollsInternal_NotifyTollSelectionChanged(This,pToll,fSelected) \ - (This)->lpVtbl -> NotifyTollSelectionChanged(This,pToll,fSelected) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICATollsInternal_SetCAManager_Proxy( - ICATollsInternal * This, - /* [in] */ ICAManager *pManager); - - -void __RPC_STUB ICATollsInternal_SetCAManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICATollsInternal_GetCAManager_Proxy( - ICATollsInternal * This, - /* [out] */ ICAManager **ppManager); - - -void __RPC_STUB ICATollsInternal_GetCAManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICATollsInternal_SetMustPersist_Proxy( - ICATollsInternal * This, - /* [in] */ BOOL fMustPersist); - - -void __RPC_STUB ICATollsInternal_SetMustPersist_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICATollsInternal_Save_Proxy( - ICATollsInternal * This, - /* [in] */ IStorage *pstore, - /* [in] */ BSTR bstrPrefix); - - -void __RPC_STUB ICATollsInternal_Save_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICATollsInternal_Load_Proxy( - ICATollsInternal * This, - /* [in] */ IStorage *pstore, - /* [in] */ BSTR bstrPrefix); - - -void __RPC_STUB ICATollsInternal_Load_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICATollsInternal_NotifyStateChanged_Proxy( - ICATollsInternal * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateFrom); - - -void __RPC_STUB ICATollsInternal_NotifyStateChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICATollsInternal_NotifyTollSelectionChanged_Proxy( - ICATollsInternal * This, - /* [in] */ ICAToll *pToll, - /* [in] */ BOOL fSelected); - - -void __RPC_STUB ICATollsInternal_NotifyTollSelectionChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICATollsInternal_INTERFACE_DEFINED__ */ - - -#ifndef __ICADenials_INTERFACE_DEFINED__ -#define __ICADenials_INTERFACE_DEFINED__ - -/* interface ICADenials */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICADenials; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166440-DF8A-463a-B620-7BEC23542010") - ICADenials : public IDispatch - { - public: - virtual /* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **ppCollection) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *Count) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT Index, - /* [retval][out] */ ICADenial **ppDenial) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AddNew( - /* [in] */ ICAPolicy *ppolicy, - /* [in] */ BSTR bstrShortDesc, - /* [in] */ IUnknown *pUnkDeniedObject, - /* [in] */ long enDenialState, - /* [retval][out] */ ICADenial **ppDenial) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT Index) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CountDenied( - /* [retval][out] */ long *Count) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CountSelected( - /* [retval][out] */ long *Count) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE PaySelectedTolls( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICADenialsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICADenials * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICADenials * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICADenials * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICADenials * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICADenials * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICADenials * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICADenials * 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); - - /* [restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ICADenials * This, - /* [retval][out] */ IUnknown **ppCollection); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ICADenials * This, - /* [retval][out] */ long *Count); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ICADenials * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ ICADenial **ppDenial); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AddNew )( - ICADenials * This, - /* [in] */ ICAPolicy *ppolicy, - /* [in] */ BSTR bstrShortDesc, - /* [in] */ IUnknown *pUnkDeniedObject, - /* [in] */ long enDenialState, - /* [retval][out] */ ICADenial **ppDenial); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - ICADenials * This, - /* [in] */ VARIANT Index); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CountDenied )( - ICADenials * This, - /* [retval][out] */ long *Count); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CountSelected )( - ICADenials * This, - /* [retval][out] */ long *Count); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *PaySelectedTolls )( - ICADenials * This); - - END_INTERFACE - } ICADenialsVtbl; - - interface ICADenials - { - CONST_VTBL struct ICADenialsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICADenials_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICADenials_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICADenials_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICADenials_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICADenials_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICADenials_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICADenials_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICADenials_get__NewEnum(This,ppCollection) \ - (This)->lpVtbl -> get__NewEnum(This,ppCollection) - -#define ICADenials_get_Count(This,Count) \ - (This)->lpVtbl -> get_Count(This,Count) - -#define ICADenials_get_Item(This,Index,ppDenial) \ - (This)->lpVtbl -> get_Item(This,Index,ppDenial) - -#define ICADenials_get_AddNew(This,ppolicy,bstrShortDesc,pUnkDeniedObject,enDenialState,ppDenial) \ - (This)->lpVtbl -> get_AddNew(This,ppolicy,bstrShortDesc,pUnkDeniedObject,enDenialState,ppDenial) - -#define ICADenials_Remove(This,Index) \ - (This)->lpVtbl -> Remove(This,Index) - -#define ICADenials_get_CountDenied(This,Count) \ - (This)->lpVtbl -> get_CountDenied(This,Count) - -#define ICADenials_get_CountSelected(This,Count) \ - (This)->lpVtbl -> get_CountSelected(This,Count) - -#define ICADenials_PaySelectedTolls(This) \ - (This)->lpVtbl -> PaySelectedTolls(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE ICADenials_get__NewEnum_Proxy( - ICADenials * This, - /* [retval][out] */ IUnknown **ppCollection); - - -void __RPC_STUB ICADenials_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADenials_get_Count_Proxy( - ICADenials * This, - /* [retval][out] */ long *Count); - - -void __RPC_STUB ICADenials_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADenials_get_Item_Proxy( - ICADenials * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ ICADenial **ppDenial); - - -void __RPC_STUB ICADenials_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICADenials_get_AddNew_Proxy( - ICADenials * This, - /* [in] */ ICAPolicy *ppolicy, - /* [in] */ BSTR bstrShortDesc, - /* [in] */ IUnknown *pUnkDeniedObject, - /* [in] */ long enDenialState, - /* [retval][out] */ ICADenial **ppDenial); - - -void __RPC_STUB ICADenials_get_AddNew_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE ICADenials_Remove_Proxy( - ICADenials * This, - /* [in] */ VARIANT Index); - - -void __RPC_STUB ICADenials_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADenials_get_CountDenied_Proxy( - ICADenials * This, - /* [retval][out] */ long *Count); - - -void __RPC_STUB ICADenials_get_CountDenied_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADenials_get_CountSelected_Proxy( - ICADenials * This, - /* [retval][out] */ long *Count); - - -void __RPC_STUB ICADenials_get_CountSelected_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE ICADenials_PaySelectedTolls_Proxy( - ICADenials * This); - - -void __RPC_STUB ICADenials_PaySelectedTolls_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICADenials_INTERFACE_DEFINED__ */ - - -#ifndef __ICADenialsInternal_INTERFACE_DEFINED__ -#define __ICADenialsInternal_INTERFACE_DEFINED__ - -/* interface ICADenialsInternal */ -/* [unique][helpstring][restricted][hidden][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICADenialsInternal; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166441-DF8A-463a-B620-7BEC23542010") - ICADenialsInternal : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetCAManager( - /* [in] */ ICAManager *pManager) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDenialStateChanged( - /* [in] */ ICADenial *pDenial, - /* [in] */ CADenialState enStateLast) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICADenialsInternalVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICADenialsInternal * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICADenialsInternal * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICADenialsInternal * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetCAManager )( - ICADenialsInternal * This, - /* [in] */ ICAManager *pManager); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDenialStateChanged )( - ICADenialsInternal * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ CADenialState enStateLast); - - END_INTERFACE - } ICADenialsInternalVtbl; - - interface ICADenialsInternal - { - CONST_VTBL struct ICADenialsInternalVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICADenialsInternal_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICADenialsInternal_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICADenialsInternal_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICADenialsInternal_SetCAManager(This,pManager) \ - (This)->lpVtbl -> SetCAManager(This,pManager) - -#define ICADenialsInternal_NotifyDenialStateChanged(This,pDenial,enStateLast) \ - (This)->lpVtbl -> NotifyDenialStateChanged(This,pDenial,enStateLast) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICADenialsInternal_SetCAManager_Proxy( - ICADenialsInternal * This, - /* [in] */ ICAManager *pManager); - - -void __RPC_STUB ICADenialsInternal_SetCAManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICADenialsInternal_NotifyDenialStateChanged_Proxy( - ICADenialsInternal * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ CADenialState enStateLast); - - -void __RPC_STUB ICADenialsInternal_NotifyDenialStateChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICADenialsInternal_INTERFACE_DEFINED__ */ - - -#ifndef __ICAOffers_INTERFACE_DEFINED__ -#define __ICAOffers_INTERFACE_DEFINED__ - -/* interface ICAOffers */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICAOffers; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166450-DF8A-463a-B620-7BEC23542010") - ICAOffers : public IDispatch - { - public: - virtual /* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **ppCollection) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *Count) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT Index, - /* [retval][out] */ ICAOffer **ppOffer) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AddNew( - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ BSTR bstrName, - /* [in] */ DATE dateStart, - /* [in] */ DATE dateEnd, - /* [retval][out] */ ICAOffer **ppOffer) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT Index) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICAOffersVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAOffers * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAOffers * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAOffers * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICAOffers * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICAOffers * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICAOffers * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICAOffers * 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); - - /* [restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ICAOffers * This, - /* [retval][out] */ IUnknown **ppCollection); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ICAOffers * This, - /* [retval][out] */ long *Count); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ICAOffers * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ ICAOffer **ppOffer); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AddNew )( - ICAOffers * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ BSTR bstrName, - /* [in] */ DATE dateStart, - /* [in] */ DATE dateEnd, - /* [retval][out] */ ICAOffer **ppOffer); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - ICAOffers * This, - /* [in] */ VARIANT Index); - - END_INTERFACE - } ICAOffersVtbl; - - interface ICAOffers - { - CONST_VTBL struct ICAOffersVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAOffers_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAOffers_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAOffers_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAOffers_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICAOffers_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICAOffers_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICAOffers_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICAOffers_get__NewEnum(This,ppCollection) \ - (This)->lpVtbl -> get__NewEnum(This,ppCollection) - -#define ICAOffers_get_Count(This,Count) \ - (This)->lpVtbl -> get_Count(This,Count) - -#define ICAOffers_get_Item(This,Index,ppOffer) \ - (This)->lpVtbl -> get_Item(This,Index,ppOffer) - -#define ICAOffers_get_AddNew(This,pPolicy,bstrName,dateStart,dateEnd,ppOffer) \ - (This)->lpVtbl -> get_AddNew(This,pPolicy,bstrName,dateStart,dateEnd,ppOffer) - -#define ICAOffers_Remove(This,Index) \ - (This)->lpVtbl -> Remove(This,Index) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE ICAOffers_get__NewEnum_Proxy( - ICAOffers * This, - /* [retval][out] */ IUnknown **ppCollection); - - -void __RPC_STUB ICAOffers_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICAOffers_get_Count_Proxy( - ICAOffers * This, - /* [retval][out] */ long *Count); - - -void __RPC_STUB ICAOffers_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICAOffers_get_Item_Proxy( - ICAOffers * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ ICAOffer **ppOffer); - - -void __RPC_STUB ICAOffers_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAOffers_get_AddNew_Proxy( - ICAOffers * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ BSTR bstrName, - /* [in] */ DATE dateStart, - /* [in] */ DATE dateEnd, - /* [retval][out] */ ICAOffer **ppOffer); - - -void __RPC_STUB ICAOffers_get_AddNew_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE ICAOffers_Remove_Proxy( - ICAOffers * This, - /* [in] */ VARIANT Index); - - -void __RPC_STUB ICAOffers_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAOffers_INTERFACE_DEFINED__ */ - - -#ifndef __ICAComponents_INTERFACE_DEFINED__ -#define __ICAComponents_INTERFACE_DEFINED__ - -/* interface ICAComponents */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICAComponents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166470-DF8A-463a-B620-7BEC23542010") - ICAComponents : public IDispatch - { - public: - virtual /* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **ppCollection) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *Count) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT Index, - /* [retval][out] */ ICAComponent **ppComponent) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICAComponentsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAComponents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAComponents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAComponents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICAComponents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICAComponents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICAComponents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICAComponents * 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); - - /* [restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ICAComponents * This, - /* [retval][out] */ IUnknown **ppCollection); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ICAComponents * This, - /* [retval][out] */ long *Count); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ICAComponents * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ ICAComponent **ppComponent); - - END_INTERFACE - } ICAComponentsVtbl; - - interface ICAComponents - { - CONST_VTBL struct ICAComponentsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAComponents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAComponents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAComponents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAComponents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICAComponents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICAComponents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICAComponents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICAComponents_get__NewEnum(This,ppCollection) \ - (This)->lpVtbl -> get__NewEnum(This,ppCollection) - -#define ICAComponents_get_Count(This,Count) \ - (This)->lpVtbl -> get_Count(This,Count) - -#define ICAComponents_get_Item(This,Index,ppComponent) \ - (This)->lpVtbl -> get_Item(This,Index,ppComponent) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE ICAComponents_get__NewEnum_Proxy( - ICAComponents * This, - /* [retval][out] */ IUnknown **ppCollection); - - -void __RPC_STUB ICAComponents_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICAComponents_get_Count_Proxy( - ICAComponents * This, - /* [retval][out] */ long *Count); - - -void __RPC_STUB ICAComponents_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICAComponents_get_Item_Proxy( - ICAComponents * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ ICAComponent **ppComponent); - - -void __RPC_STUB ICAComponents_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAComponents_INTERFACE_DEFINED__ */ - - -#ifndef __ICAComponentInternal_INTERFACE_DEFINED__ -#define __ICAComponentInternal_INTERFACE_DEFINED__ - -/* interface ICAComponentInternal */ -/* [unique][helpstring][hidden][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICAComponentInternal; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166361-DF8A-463a-B620-7BEC23542010") - ICAComponentInternal : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveAllDenials( void) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( - /* [in] */ CADescFormat enFormat, - /* [retval][out] */ BSTR *pbstrDescription) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICAComponentInternalVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAComponentInternal * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAComponentInternal * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAComponentInternal * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveAllDenials )( - ICAComponentInternal * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - ICAComponentInternal * This, - /* [in] */ CADescFormat enFormat, - /* [retval][out] */ BSTR *pbstrDescription); - - END_INTERFACE - } ICAComponentInternalVtbl; - - interface ICAComponentInternal - { - CONST_VTBL struct ICAComponentInternalVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAComponentInternal_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAComponentInternal_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAComponentInternal_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAComponentInternal_RemoveAllDenials(This) \ - (This)->lpVtbl -> RemoveAllDenials(This) - -#define ICAComponentInternal_get_Description(This,enFormat,pbstrDescription) \ - (This)->lpVtbl -> get_Description(This,enFormat,pbstrDescription) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAComponentInternal_RemoveAllDenials_Proxy( - ICAComponentInternal * This); - - -void __RPC_STUB ICAComponentInternal_RemoveAllDenials_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAComponentInternal_get_Description_Proxy( - ICAComponentInternal * This, - /* [in] */ CADescFormat enFormat, - /* [retval][out] */ BSTR *pbstrDescription); - - -void __RPC_STUB ICAComponentInternal_get_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAComponentInternal_INTERFACE_DEFINED__ */ - - -#ifndef __ICADefaultDlg_INTERFACE_DEFINED__ -#define __ICADefaultDlg_INTERFACE_DEFINED__ - -/* interface ICADefaultDlg */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICADefaultDlg; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("860A3FE2-DED1-40E2-896C-057681A8A1A8") - ICADefaultDlg : public IDispatch - { - public: - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_AutoSize( - /* [in] */ VARIANT_BOOL vbool) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AutoSize( - /* [retval][out] */ VARIANT_BOOL *pbool) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_BackColor( - /* [in] */ OLE_COLOR clr) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_BackColor( - /* [retval][out] */ OLE_COLOR *pclr) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_BackStyle( - /* [in] */ long style) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_BackStyle( - /* [retval][out] */ long *pstyle) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_BorderColor( - /* [in] */ OLE_COLOR clr) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_BorderColor( - /* [retval][out] */ OLE_COLOR *pclr) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_BorderStyle( - /* [in] */ long style) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_BorderStyle( - /* [retval][out] */ long *pstyle) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_BorderWidth( - /* [in] */ long width) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_BorderWidth( - /* [retval][out] */ long *width) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DrawMode( - /* [in] */ long mode) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DrawMode( - /* [retval][out] */ long *pmode) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DrawStyle( - /* [in] */ long style) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DrawStyle( - /* [retval][out] */ long *pstyle) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DrawWidth( - /* [in] */ long width) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DrawWidth( - /* [retval][out] */ long *pwidth) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_FillColor( - /* [in] */ OLE_COLOR clr) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FillColor( - /* [retval][out] */ OLE_COLOR *pclr) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_FillStyle( - /* [in] */ long style) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FillStyle( - /* [retval][out] */ long *pstyle) = 0; - - virtual /* [id][propputref] */ HRESULT STDMETHODCALLTYPE putref_Font( - /* [in] */ IFontDisp *pFont) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Font( - /* [in] */ IFontDisp *pFont) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Font( - /* [retval][out] */ IFontDisp **ppFont) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ForeColor( - /* [in] */ OLE_COLOR clr) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ForeColor( - /* [retval][out] */ OLE_COLOR *pclr) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Enabled( - /* [in] */ VARIANT_BOOL vbool) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Enabled( - /* [retval][out] */ VARIANT_BOOL *pbool) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Window( - /* [retval][out] */ LONG_PTR *phwnd) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_TabStop( - /* [in] */ VARIANT_BOOL vbool) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TabStop( - /* [retval][out] */ VARIANT_BOOL *pbool) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Text( - /* [in] */ BSTR strText) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Text( - /* [retval][out] */ BSTR *pstrText) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Caption( - /* [in] */ BSTR strCaption) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Caption( - /* [retval][out] */ BSTR *pstrCaption) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_BorderVisible( - /* [in] */ VARIANT_BOOL vbool) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_BorderVisible( - /* [retval][out] */ VARIANT_BOOL *pbool) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Appearance( - /* [in] */ short appearance) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Appearance( - /* [retval][out] */ short *pappearance) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MousePointer( - /* [in] */ long pointer) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MousePointer( - /* [retval][out] */ long *ppointer) = 0; - - virtual /* [id][propputref] */ HRESULT STDMETHODCALLTYPE putref_MouseIcon( - /* [in] */ IPictureDisp *pMouseIcon) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MouseIcon( - /* [in] */ IPictureDisp *pMouseIcon) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MouseIcon( - /* [retval][out] */ IPictureDisp **ppMouseIcon) = 0; - - virtual /* [id][propputref] */ HRESULT STDMETHODCALLTYPE putref_Picture( - /* [in] */ IPictureDisp *pPicture) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Picture( - /* [in] */ IPictureDisp *pPicture) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Picture( - /* [retval][out] */ IPictureDisp **ppPicture) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Valid( - /* [in] */ VARIANT_BOOL vbool) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Valid( - /* [retval][out] */ VARIANT_BOOL *pbool) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICADefaultDlgVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICADefaultDlg * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICADefaultDlg * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICADefaultDlg * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICADefaultDlg * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICADefaultDlg * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICADefaultDlg * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICADefaultDlg * 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][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AutoSize )( - ICADefaultDlg * This, - /* [in] */ VARIANT_BOOL vbool); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AutoSize )( - ICADefaultDlg * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BackColor )( - ICADefaultDlg * This, - /* [in] */ OLE_COLOR clr); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackColor )( - ICADefaultDlg * This, - /* [retval][out] */ OLE_COLOR *pclr); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BackStyle )( - ICADefaultDlg * This, - /* [in] */ long style); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackStyle )( - ICADefaultDlg * This, - /* [retval][out] */ long *pstyle); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BorderColor )( - ICADefaultDlg * This, - /* [in] */ OLE_COLOR clr); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BorderColor )( - ICADefaultDlg * This, - /* [retval][out] */ OLE_COLOR *pclr); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BorderStyle )( - ICADefaultDlg * This, - /* [in] */ long style); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BorderStyle )( - ICADefaultDlg * This, - /* [retval][out] */ long *pstyle); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BorderWidth )( - ICADefaultDlg * This, - /* [in] */ long width); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BorderWidth )( - ICADefaultDlg * This, - /* [retval][out] */ long *width); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DrawMode )( - ICADefaultDlg * This, - /* [in] */ long mode); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DrawMode )( - ICADefaultDlg * This, - /* [retval][out] */ long *pmode); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DrawStyle )( - ICADefaultDlg * This, - /* [in] */ long style); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DrawStyle )( - ICADefaultDlg * This, - /* [retval][out] */ long *pstyle); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DrawWidth )( - ICADefaultDlg * This, - /* [in] */ long width); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DrawWidth )( - ICADefaultDlg * This, - /* [retval][out] */ long *pwidth); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FillColor )( - ICADefaultDlg * This, - /* [in] */ OLE_COLOR clr); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FillColor )( - ICADefaultDlg * This, - /* [retval][out] */ OLE_COLOR *pclr); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FillStyle )( - ICADefaultDlg * This, - /* [in] */ long style); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FillStyle )( - ICADefaultDlg * This, - /* [retval][out] */ long *pstyle); - - /* [id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Font )( - ICADefaultDlg * This, - /* [in] */ IFontDisp *pFont); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Font )( - ICADefaultDlg * This, - /* [in] */ IFontDisp *pFont); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Font )( - ICADefaultDlg * This, - /* [retval][out] */ IFontDisp **ppFont); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ForeColor )( - ICADefaultDlg * This, - /* [in] */ OLE_COLOR clr); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ForeColor )( - ICADefaultDlg * This, - /* [retval][out] */ OLE_COLOR *pclr); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enabled )( - ICADefaultDlg * This, - /* [in] */ VARIANT_BOOL vbool); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )( - ICADefaultDlg * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Window )( - ICADefaultDlg * This, - /* [retval][out] */ LONG_PTR *phwnd); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TabStop )( - ICADefaultDlg * This, - /* [in] */ VARIANT_BOOL vbool); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TabStop )( - ICADefaultDlg * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Text )( - ICADefaultDlg * This, - /* [in] */ BSTR strText); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Text )( - ICADefaultDlg * This, - /* [retval][out] */ BSTR *pstrText); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Caption )( - ICADefaultDlg * This, - /* [in] */ BSTR strCaption); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Caption )( - ICADefaultDlg * This, - /* [retval][out] */ BSTR *pstrCaption); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BorderVisible )( - ICADefaultDlg * This, - /* [in] */ VARIANT_BOOL vbool); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BorderVisible )( - ICADefaultDlg * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Appearance )( - ICADefaultDlg * This, - /* [in] */ short appearance); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Appearance )( - ICADefaultDlg * This, - /* [retval][out] */ short *pappearance); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MousePointer )( - ICADefaultDlg * This, - /* [in] */ long pointer); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MousePointer )( - ICADefaultDlg * This, - /* [retval][out] */ long *ppointer); - - /* [id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_MouseIcon )( - ICADefaultDlg * This, - /* [in] */ IPictureDisp *pMouseIcon); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MouseIcon )( - ICADefaultDlg * This, - /* [in] */ IPictureDisp *pMouseIcon); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MouseIcon )( - ICADefaultDlg * This, - /* [retval][out] */ IPictureDisp **ppMouseIcon); - - /* [id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Picture )( - ICADefaultDlg * This, - /* [in] */ IPictureDisp *pPicture); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Picture )( - ICADefaultDlg * This, - /* [in] */ IPictureDisp *pPicture); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Picture )( - ICADefaultDlg * This, - /* [retval][out] */ IPictureDisp **ppPicture); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Valid )( - ICADefaultDlg * This, - /* [in] */ VARIANT_BOOL vbool); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Valid )( - ICADefaultDlg * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - END_INTERFACE - } ICADefaultDlgVtbl; - - interface ICADefaultDlg - { - CONST_VTBL struct ICADefaultDlgVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICADefaultDlg_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICADefaultDlg_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICADefaultDlg_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICADefaultDlg_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICADefaultDlg_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICADefaultDlg_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICADefaultDlg_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICADefaultDlg_put_AutoSize(This,vbool) \ - (This)->lpVtbl -> put_AutoSize(This,vbool) - -#define ICADefaultDlg_get_AutoSize(This,pbool) \ - (This)->lpVtbl -> get_AutoSize(This,pbool) - -#define ICADefaultDlg_put_BackColor(This,clr) \ - (This)->lpVtbl -> put_BackColor(This,clr) - -#define ICADefaultDlg_get_BackColor(This,pclr) \ - (This)->lpVtbl -> get_BackColor(This,pclr) - -#define ICADefaultDlg_put_BackStyle(This,style) \ - (This)->lpVtbl -> put_BackStyle(This,style) - -#define ICADefaultDlg_get_BackStyle(This,pstyle) \ - (This)->lpVtbl -> get_BackStyle(This,pstyle) - -#define ICADefaultDlg_put_BorderColor(This,clr) \ - (This)->lpVtbl -> put_BorderColor(This,clr) - -#define ICADefaultDlg_get_BorderColor(This,pclr) \ - (This)->lpVtbl -> get_BorderColor(This,pclr) - -#define ICADefaultDlg_put_BorderStyle(This,style) \ - (This)->lpVtbl -> put_BorderStyle(This,style) - -#define ICADefaultDlg_get_BorderStyle(This,pstyle) \ - (This)->lpVtbl -> get_BorderStyle(This,pstyle) - -#define ICADefaultDlg_put_BorderWidth(This,width) \ - (This)->lpVtbl -> put_BorderWidth(This,width) - -#define ICADefaultDlg_get_BorderWidth(This,width) \ - (This)->lpVtbl -> get_BorderWidth(This,width) - -#define ICADefaultDlg_put_DrawMode(This,mode) \ - (This)->lpVtbl -> put_DrawMode(This,mode) - -#define ICADefaultDlg_get_DrawMode(This,pmode) \ - (This)->lpVtbl -> get_DrawMode(This,pmode) - -#define ICADefaultDlg_put_DrawStyle(This,style) \ - (This)->lpVtbl -> put_DrawStyle(This,style) - -#define ICADefaultDlg_get_DrawStyle(This,pstyle) \ - (This)->lpVtbl -> get_DrawStyle(This,pstyle) - -#define ICADefaultDlg_put_DrawWidth(This,width) \ - (This)->lpVtbl -> put_DrawWidth(This,width) - -#define ICADefaultDlg_get_DrawWidth(This,pwidth) \ - (This)->lpVtbl -> get_DrawWidth(This,pwidth) - -#define ICADefaultDlg_put_FillColor(This,clr) \ - (This)->lpVtbl -> put_FillColor(This,clr) - -#define ICADefaultDlg_get_FillColor(This,pclr) \ - (This)->lpVtbl -> get_FillColor(This,pclr) - -#define ICADefaultDlg_put_FillStyle(This,style) \ - (This)->lpVtbl -> put_FillStyle(This,style) - -#define ICADefaultDlg_get_FillStyle(This,pstyle) \ - (This)->lpVtbl -> get_FillStyle(This,pstyle) - -#define ICADefaultDlg_putref_Font(This,pFont) \ - (This)->lpVtbl -> putref_Font(This,pFont) - -#define ICADefaultDlg_put_Font(This,pFont) \ - (This)->lpVtbl -> put_Font(This,pFont) - -#define ICADefaultDlg_get_Font(This,ppFont) \ - (This)->lpVtbl -> get_Font(This,ppFont) - -#define ICADefaultDlg_put_ForeColor(This,clr) \ - (This)->lpVtbl -> put_ForeColor(This,clr) - -#define ICADefaultDlg_get_ForeColor(This,pclr) \ - (This)->lpVtbl -> get_ForeColor(This,pclr) - -#define ICADefaultDlg_put_Enabled(This,vbool) \ - (This)->lpVtbl -> put_Enabled(This,vbool) - -#define ICADefaultDlg_get_Enabled(This,pbool) \ - (This)->lpVtbl -> get_Enabled(This,pbool) - -#define ICADefaultDlg_get_Window(This,phwnd) \ - (This)->lpVtbl -> get_Window(This,phwnd) - -#define ICADefaultDlg_put_TabStop(This,vbool) \ - (This)->lpVtbl -> put_TabStop(This,vbool) - -#define ICADefaultDlg_get_TabStop(This,pbool) \ - (This)->lpVtbl -> get_TabStop(This,pbool) - -#define ICADefaultDlg_put_Text(This,strText) \ - (This)->lpVtbl -> put_Text(This,strText) - -#define ICADefaultDlg_get_Text(This,pstrText) \ - (This)->lpVtbl -> get_Text(This,pstrText) - -#define ICADefaultDlg_put_Caption(This,strCaption) \ - (This)->lpVtbl -> put_Caption(This,strCaption) - -#define ICADefaultDlg_get_Caption(This,pstrCaption) \ - (This)->lpVtbl -> get_Caption(This,pstrCaption) - -#define ICADefaultDlg_put_BorderVisible(This,vbool) \ - (This)->lpVtbl -> put_BorderVisible(This,vbool) - -#define ICADefaultDlg_get_BorderVisible(This,pbool) \ - (This)->lpVtbl -> get_BorderVisible(This,pbool) - -#define ICADefaultDlg_put_Appearance(This,appearance) \ - (This)->lpVtbl -> put_Appearance(This,appearance) - -#define ICADefaultDlg_get_Appearance(This,pappearance) \ - (This)->lpVtbl -> get_Appearance(This,pappearance) - -#define ICADefaultDlg_put_MousePointer(This,pointer) \ - (This)->lpVtbl -> put_MousePointer(This,pointer) - -#define ICADefaultDlg_get_MousePointer(This,ppointer) \ - (This)->lpVtbl -> get_MousePointer(This,ppointer) - -#define ICADefaultDlg_putref_MouseIcon(This,pMouseIcon) \ - (This)->lpVtbl -> putref_MouseIcon(This,pMouseIcon) - -#define ICADefaultDlg_put_MouseIcon(This,pMouseIcon) \ - (This)->lpVtbl -> put_MouseIcon(This,pMouseIcon) - -#define ICADefaultDlg_get_MouseIcon(This,ppMouseIcon) \ - (This)->lpVtbl -> get_MouseIcon(This,ppMouseIcon) - -#define ICADefaultDlg_putref_Picture(This,pPicture) \ - (This)->lpVtbl -> putref_Picture(This,pPicture) - -#define ICADefaultDlg_put_Picture(This,pPicture) \ - (This)->lpVtbl -> put_Picture(This,pPicture) - -#define ICADefaultDlg_get_Picture(This,ppPicture) \ - (This)->lpVtbl -> get_Picture(This,ppPicture) - -#define ICADefaultDlg_put_Valid(This,vbool) \ - (This)->lpVtbl -> put_Valid(This,vbool) - -#define ICADefaultDlg_get_Valid(This,pbool) \ - (This)->lpVtbl -> get_Valid(This,pbool) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_AutoSize_Proxy( - ICADefaultDlg * This, - /* [in] */ VARIANT_BOOL vbool); - - -void __RPC_STUB ICADefaultDlg_put_AutoSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_AutoSize_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - -void __RPC_STUB ICADefaultDlg_get_AutoSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_BackColor_Proxy( - ICADefaultDlg * This, - /* [in] */ OLE_COLOR clr); - - -void __RPC_STUB ICADefaultDlg_put_BackColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_BackColor_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ OLE_COLOR *pclr); - - -void __RPC_STUB ICADefaultDlg_get_BackColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_BackStyle_Proxy( - ICADefaultDlg * This, - /* [in] */ long style); - - -void __RPC_STUB ICADefaultDlg_put_BackStyle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_BackStyle_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ long *pstyle); - - -void __RPC_STUB ICADefaultDlg_get_BackStyle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_BorderColor_Proxy( - ICADefaultDlg * This, - /* [in] */ OLE_COLOR clr); - - -void __RPC_STUB ICADefaultDlg_put_BorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_BorderColor_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ OLE_COLOR *pclr); - - -void __RPC_STUB ICADefaultDlg_get_BorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_BorderStyle_Proxy( - ICADefaultDlg * This, - /* [in] */ long style); - - -void __RPC_STUB ICADefaultDlg_put_BorderStyle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_BorderStyle_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ long *pstyle); - - -void __RPC_STUB ICADefaultDlg_get_BorderStyle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_BorderWidth_Proxy( - ICADefaultDlg * This, - /* [in] */ long width); - - -void __RPC_STUB ICADefaultDlg_put_BorderWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_BorderWidth_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ long *width); - - -void __RPC_STUB ICADefaultDlg_get_BorderWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_DrawMode_Proxy( - ICADefaultDlg * This, - /* [in] */ long mode); - - -void __RPC_STUB ICADefaultDlg_put_DrawMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_DrawMode_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ long *pmode); - - -void __RPC_STUB ICADefaultDlg_get_DrawMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_DrawStyle_Proxy( - ICADefaultDlg * This, - /* [in] */ long style); - - -void __RPC_STUB ICADefaultDlg_put_DrawStyle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_DrawStyle_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ long *pstyle); - - -void __RPC_STUB ICADefaultDlg_get_DrawStyle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_DrawWidth_Proxy( - ICADefaultDlg * This, - /* [in] */ long width); - - -void __RPC_STUB ICADefaultDlg_put_DrawWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_DrawWidth_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ long *pwidth); - - -void __RPC_STUB ICADefaultDlg_get_DrawWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_FillColor_Proxy( - ICADefaultDlg * This, - /* [in] */ OLE_COLOR clr); - - -void __RPC_STUB ICADefaultDlg_put_FillColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_FillColor_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ OLE_COLOR *pclr); - - -void __RPC_STUB ICADefaultDlg_get_FillColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_FillStyle_Proxy( - ICADefaultDlg * This, - /* [in] */ long style); - - -void __RPC_STUB ICADefaultDlg_put_FillStyle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_FillStyle_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ long *pstyle); - - -void __RPC_STUB ICADefaultDlg_get_FillStyle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propputref] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_putref_Font_Proxy( - ICADefaultDlg * This, - /* [in] */ IFontDisp *pFont); - - -void __RPC_STUB ICADefaultDlg_putref_Font_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_Font_Proxy( - ICADefaultDlg * This, - /* [in] */ IFontDisp *pFont); - - -void __RPC_STUB ICADefaultDlg_put_Font_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_Font_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ IFontDisp **ppFont); - - -void __RPC_STUB ICADefaultDlg_get_Font_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_ForeColor_Proxy( - ICADefaultDlg * This, - /* [in] */ OLE_COLOR clr); - - -void __RPC_STUB ICADefaultDlg_put_ForeColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_ForeColor_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ OLE_COLOR *pclr); - - -void __RPC_STUB ICADefaultDlg_get_ForeColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_Enabled_Proxy( - ICADefaultDlg * This, - /* [in] */ VARIANT_BOOL vbool); - - -void __RPC_STUB ICADefaultDlg_put_Enabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_Enabled_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - -void __RPC_STUB ICADefaultDlg_get_Enabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_Window_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ LONG_PTR *phwnd); - - -void __RPC_STUB ICADefaultDlg_get_Window_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_TabStop_Proxy( - ICADefaultDlg * This, - /* [in] */ VARIANT_BOOL vbool); - - -void __RPC_STUB ICADefaultDlg_put_TabStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_TabStop_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - -void __RPC_STUB ICADefaultDlg_get_TabStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_Text_Proxy( - ICADefaultDlg * This, - /* [in] */ BSTR strText); - - -void __RPC_STUB ICADefaultDlg_put_Text_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_Text_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ BSTR *pstrText); - - -void __RPC_STUB ICADefaultDlg_get_Text_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_Caption_Proxy( - ICADefaultDlg * This, - /* [in] */ BSTR strCaption); - - -void __RPC_STUB ICADefaultDlg_put_Caption_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_Caption_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ BSTR *pstrCaption); - - -void __RPC_STUB ICADefaultDlg_get_Caption_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_BorderVisible_Proxy( - ICADefaultDlg * This, - /* [in] */ VARIANT_BOOL vbool); - - -void __RPC_STUB ICADefaultDlg_put_BorderVisible_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_BorderVisible_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - -void __RPC_STUB ICADefaultDlg_get_BorderVisible_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_Appearance_Proxy( - ICADefaultDlg * This, - /* [in] */ short appearance); - - -void __RPC_STUB ICADefaultDlg_put_Appearance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_Appearance_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ short *pappearance); - - -void __RPC_STUB ICADefaultDlg_get_Appearance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_MousePointer_Proxy( - ICADefaultDlg * This, - /* [in] */ long pointer); - - -void __RPC_STUB ICADefaultDlg_put_MousePointer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_MousePointer_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ long *ppointer); - - -void __RPC_STUB ICADefaultDlg_get_MousePointer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propputref] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_putref_MouseIcon_Proxy( - ICADefaultDlg * This, - /* [in] */ IPictureDisp *pMouseIcon); - - -void __RPC_STUB ICADefaultDlg_putref_MouseIcon_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_MouseIcon_Proxy( - ICADefaultDlg * This, - /* [in] */ IPictureDisp *pMouseIcon); - - -void __RPC_STUB ICADefaultDlg_put_MouseIcon_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_MouseIcon_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ IPictureDisp **ppMouseIcon); - - -void __RPC_STUB ICADefaultDlg_get_MouseIcon_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propputref] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_putref_Picture_Proxy( - ICADefaultDlg * This, - /* [in] */ IPictureDisp *pPicture); - - -void __RPC_STUB ICADefaultDlg_putref_Picture_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_Picture_Proxy( - ICADefaultDlg * This, - /* [in] */ IPictureDisp *pPicture); - - -void __RPC_STUB ICADefaultDlg_put_Picture_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_Picture_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ IPictureDisp **ppPicture); - - -void __RPC_STUB ICADefaultDlg_get_Picture_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_put_Valid_Proxy( - ICADefaultDlg * This, - /* [in] */ VARIANT_BOOL vbool); - - -void __RPC_STUB ICADefaultDlg_put_Valid_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICADefaultDlg_get_Valid_Proxy( - ICADefaultDlg * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - -void __RPC_STUB ICADefaultDlg_get_Valid_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICADefaultDlg_INTERFACE_DEFINED__ */ - - - -#ifndef __MSTvCALib_LIBRARY_DEFINED__ -#define __MSTvCALib_LIBRARY_DEFINED__ - -/* library MSTvCALib */ -/* [helpstring][version][uuid] */ - -#define SID_CAManager CLSID_CAManager - -EXTERN_C const IID LIBID_MSTvCALib; - -#ifndef ___ICAResDenialTreeEvents_DISPINTERFACE_DEFINED__ -#define ___ICAResDenialTreeEvents_DISPINTERFACE_DEFINED__ - -/* dispinterface _ICAResDenialTreeEvents */ -/* [helpstring][uuid] */ - - -EXTERN_C const IID DIID__ICAResDenialTreeEvents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166298-DF8A-463A-B620-7BEC23542010") - _ICAResDenialTreeEvents : public IDispatch - { - }; - -#else /* C style interface */ - - typedef struct _ICAResDenialTreeEventsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - _ICAResDenialTreeEvents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - _ICAResDenialTreeEvents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - _ICAResDenialTreeEvents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - _ICAResDenialTreeEvents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - _ICAResDenialTreeEvents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - _ICAResDenialTreeEvents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - _ICAResDenialTreeEvents * 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 - } _ICAResDenialTreeEventsVtbl; - - interface _ICAResDenialTreeEvents - { - CONST_VTBL struct _ICAResDenialTreeEventsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define _ICAResDenialTreeEvents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define _ICAResDenialTreeEvents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define _ICAResDenialTreeEvents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define _ICAResDenialTreeEvents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define _ICAResDenialTreeEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define _ICAResDenialTreeEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define _ICAResDenialTreeEvents_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 /* ___ICAResDenialTreeEvents_DISPINTERFACE_DEFINED__ */ - - -#ifndef ___ICAManagerEvents_DISPINTERFACE_DEFINED__ -#define ___ICAManagerEvents_DISPINTERFACE_DEFINED__ - -/* dispinterface _ICAManagerEvents */ -/* [helpstring][uuid] */ - - -EXTERN_C const IID DIID__ICAManagerEvents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166200-DF8A-463A-B620-7BEC23542010") - _ICAManagerEvents : public IDispatch - { - }; - -#else /* C style interface */ - - typedef struct _ICAManagerEventsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - _ICAManagerEvents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - _ICAManagerEvents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - _ICAManagerEvents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - _ICAManagerEvents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - _ICAManagerEvents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - _ICAManagerEvents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - _ICAManagerEvents * 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 - } _ICAManagerEventsVtbl; - - interface _ICAManagerEvents - { - CONST_VTBL struct _ICAManagerEventsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define _ICAManagerEvents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define _ICAManagerEvents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define _ICAManagerEvents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define _ICAManagerEvents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define _ICAManagerEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define _ICAManagerEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define _ICAManagerEvents_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 /* ___ICAManagerEvents_DISPINTERFACE_DEFINED__ */ - - -#ifndef ___ICARequestEvents_DISPINTERFACE_DEFINED__ -#define ___ICARequestEvents_DISPINTERFACE_DEFINED__ - -/* dispinterface _ICARequestEvents */ -/* [helpstring][uuid] */ - - -EXTERN_C const IID DIID__ICARequestEvents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166210-DF8A-463A-B620-7BEC23542010") - _ICARequestEvents : public IDispatch - { - }; - -#else /* C style interface */ - - typedef struct _ICARequestEventsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - _ICARequestEvents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - _ICARequestEvents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - _ICARequestEvents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - _ICARequestEvents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - _ICARequestEvents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - _ICARequestEvents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - _ICARequestEvents * 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 - } _ICARequestEventsVtbl; - - interface _ICARequestEvents - { - CONST_VTBL struct _ICARequestEventsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define _ICARequestEvents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define _ICARequestEvents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define _ICARequestEvents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define _ICARequestEvents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define _ICARequestEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define _ICARequestEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define _ICARequestEvents_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 /* ___ICARequestEvents_DISPINTERFACE_DEFINED__ */ - - -#ifndef ___ICAPoliciesEvents_DISPINTERFACE_DEFINED__ -#define ___ICAPoliciesEvents_DISPINTERFACE_DEFINED__ - -/* dispinterface _ICAPoliciesEvents */ -/* [helpstring][uuid] */ - - -EXTERN_C const IID DIID__ICAPoliciesEvents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166220-DF8A-463A-B620-7BEC23542010") - _ICAPoliciesEvents : public IDispatch - { - }; - -#else /* C style interface */ - - typedef struct _ICAPoliciesEventsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - _ICAPoliciesEvents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - _ICAPoliciesEvents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - _ICAPoliciesEvents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - _ICAPoliciesEvents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - _ICAPoliciesEvents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - _ICAPoliciesEvents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - _ICAPoliciesEvents * 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 - } _ICAPoliciesEventsVtbl; - - interface _ICAPoliciesEvents - { - CONST_VTBL struct _ICAPoliciesEventsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define _ICAPoliciesEvents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define _ICAPoliciesEvents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define _ICAPoliciesEvents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define _ICAPoliciesEvents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define _ICAPoliciesEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define _ICAPoliciesEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define _ICAPoliciesEvents_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 /* ___ICAPoliciesEvents_DISPINTERFACE_DEFINED__ */ - - -#ifndef ___ICATollsEvents_DISPINTERFACE_DEFINED__ -#define ___ICATollsEvents_DISPINTERFACE_DEFINED__ - -/* dispinterface _ICATollsEvents */ -/* [helpstring][uuid] */ - - -EXTERN_C const IID DIID__ICATollsEvents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166230-DF8A-463A-B620-7BEC23542010") - _ICATollsEvents : public IDispatch - { - }; - -#else /* C style interface */ - - typedef struct _ICATollsEventsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - _ICATollsEvents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - _ICATollsEvents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - _ICATollsEvents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - _ICATollsEvents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - _ICATollsEvents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - _ICATollsEvents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - _ICATollsEvents * 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 - } _ICATollsEventsVtbl; - - interface _ICATollsEvents - { - CONST_VTBL struct _ICATollsEventsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define _ICATollsEvents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define _ICATollsEvents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define _ICATollsEvents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define _ICATollsEvents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define _ICATollsEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define _ICATollsEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define _ICATollsEvents_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 /* ___ICATollsEvents_DISPINTERFACE_DEFINED__ */ - - -#ifndef ___ICADenialsEvents_DISPINTERFACE_DEFINED__ -#define ___ICADenialsEvents_DISPINTERFACE_DEFINED__ - -/* dispinterface _ICADenialsEvents */ -/* [helpstring][uuid] */ - - -EXTERN_C const IID DIID__ICADenialsEvents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166240-DF8A-463A-B620-7BEC23542010") - _ICADenialsEvents : public IDispatch - { - }; - -#else /* C style interface */ - - typedef struct _ICADenialsEventsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - _ICADenialsEvents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - _ICADenialsEvents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - _ICADenialsEvents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - _ICADenialsEvents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - _ICADenialsEvents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - _ICADenialsEvents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - _ICADenialsEvents * 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 - } _ICADenialsEventsVtbl; - - interface _ICADenialsEvents - { - CONST_VTBL struct _ICADenialsEventsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define _ICADenialsEvents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define _ICADenialsEvents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define _ICADenialsEvents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define _ICADenialsEvents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define _ICADenialsEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define _ICADenialsEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define _ICADenialsEvents_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 /* ___ICADenialsEvents_DISPINTERFACE_DEFINED__ */ - - -#ifndef ___ICAOffersEvents_DISPINTERFACE_DEFINED__ -#define ___ICAOffersEvents_DISPINTERFACE_DEFINED__ - -/* dispinterface _ICAOffersEvents */ -/* [helpstring][uuid] */ - - -EXTERN_C const IID DIID__ICAOffersEvents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166250-DF8A-463A-B620-7BEC23542010") - _ICAOffersEvents : public IDispatch - { - }; - -#else /* C style interface */ - - typedef struct _ICAOffersEventsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - _ICAOffersEvents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - _ICAOffersEvents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - _ICAOffersEvents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - _ICAOffersEvents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - _ICAOffersEvents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - _ICAOffersEvents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - _ICAOffersEvents * 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 - } _ICAOffersEventsVtbl; - - interface _ICAOffersEvents - { - CONST_VTBL struct _ICAOffersEventsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define _ICAOffersEvents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define _ICAOffersEvents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define _ICAOffersEvents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define _ICAOffersEvents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define _ICAOffersEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define _ICAOffersEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define _ICAOffersEvents_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 /* ___ICAOffersEvents_DISPINTERFACE_DEFINED__ */ - - -#ifndef ___ICAComponentsEvents_DISPINTERFACE_DEFINED__ -#define ___ICAComponentsEvents_DISPINTERFACE_DEFINED__ - -/* dispinterface _ICAComponentsEvents */ -/* [helpstring][uuid] */ - - -EXTERN_C const IID DIID__ICAComponentsEvents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166260-DF8A-463A-B620-7BEC23542010") - _ICAComponentsEvents : public IDispatch - { - }; - -#else /* C style interface */ - - typedef struct _ICAComponentsEventsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - _ICAComponentsEvents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - _ICAComponentsEvents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - _ICAComponentsEvents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - _ICAComponentsEvents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - _ICAComponentsEvents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - _ICAComponentsEvents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - _ICAComponentsEvents * 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 - } _ICAComponentsEventsVtbl; - - interface _ICAComponentsEvents - { - CONST_VTBL struct _ICAComponentsEventsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define _ICAComponentsEvents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define _ICAComponentsEvents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define _ICAComponentsEvents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define _ICAComponentsEvents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define _ICAComponentsEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define _ICAComponentsEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define _ICAComponentsEvents_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 /* ___ICAComponentsEvents_DISPINTERFACE_DEFINED__ */ - - -#ifndef __ICAManager_INTERFACE_DEFINED__ -#define __ICAManager_INTERFACE_DEFINED__ - -/* interface ICAManager */ -/* [unique][helpstring][uuid][dual][object] */ - - -EXTERN_C const IID IID_ICAManager; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166300-DF8A-463a-B620-7BEC23542010") - ICAManager : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Policies( - /* [retval][out] */ ICAPolicies **ppPolicies) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ActiveRequest( - /* [retval][out] */ ICARequest **ppRequest) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Offers( - /* [retval][out] */ ICAOffers **ppOffers) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PaidTolls( - /* [retval][out] */ ICATolls **ppTolls) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UseDefaultUI( - /* [in] */ long fUseDefaultUI) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UseDefaultUI( - /* [retval][out] */ long *pfUseDefaultUI) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DenialsFor( - /* [in] */ IUnknown *pUnk, - /* [retval][out] */ ICADenials **ppDenials) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICAManagerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAManager * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAManager * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAManager * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICAManager * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICAManager * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICAManager * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICAManager * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Policies )( - ICAManager * This, - /* [retval][out] */ ICAPolicies **ppPolicies); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveRequest )( - ICAManager * This, - /* [retval][out] */ ICARequest **ppRequest); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Offers )( - ICAManager * This, - /* [retval][out] */ ICAOffers **ppOffers); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PaidTolls )( - ICAManager * This, - /* [retval][out] */ ICATolls **ppTolls); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseDefaultUI )( - ICAManager * This, - /* [in] */ long fUseDefaultUI); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseDefaultUI )( - ICAManager * This, - /* [retval][out] */ long *pfUseDefaultUI); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DenialsFor )( - ICAManager * This, - /* [in] */ IUnknown *pUnk, - /* [retval][out] */ ICADenials **ppDenials); - - END_INTERFACE - } ICAManagerVtbl; - - interface ICAManager - { - CONST_VTBL struct ICAManagerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAManager_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAManager_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAManager_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAManager_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICAManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICAManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICAManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICAManager_get_Policies(This,ppPolicies) \ - (This)->lpVtbl -> get_Policies(This,ppPolicies) - -#define ICAManager_get_ActiveRequest(This,ppRequest) \ - (This)->lpVtbl -> get_ActiveRequest(This,ppRequest) - -#define ICAManager_get_Offers(This,ppOffers) \ - (This)->lpVtbl -> get_Offers(This,ppOffers) - -#define ICAManager_get_PaidTolls(This,ppTolls) \ - (This)->lpVtbl -> get_PaidTolls(This,ppTolls) - -#define ICAManager_put_UseDefaultUI(This,fUseDefaultUI) \ - (This)->lpVtbl -> put_UseDefaultUI(This,fUseDefaultUI) - -#define ICAManager_get_UseDefaultUI(This,pfUseDefaultUI) \ - (This)->lpVtbl -> get_UseDefaultUI(This,pfUseDefaultUI) - -#define ICAManager_get_DenialsFor(This,pUnk,ppDenials) \ - (This)->lpVtbl -> get_DenialsFor(This,pUnk,ppDenials) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAManager_get_Policies_Proxy( - ICAManager * This, - /* [retval][out] */ ICAPolicies **ppPolicies); - - -void __RPC_STUB ICAManager_get_Policies_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAManager_get_ActiveRequest_Proxy( - ICAManager * This, - /* [retval][out] */ ICARequest **ppRequest); - - -void __RPC_STUB ICAManager_get_ActiveRequest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAManager_get_Offers_Proxy( - ICAManager * This, - /* [retval][out] */ ICAOffers **ppOffers); - - -void __RPC_STUB ICAManager_get_Offers_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAManager_get_PaidTolls_Proxy( - ICAManager * This, - /* [retval][out] */ ICATolls **ppTolls); - - -void __RPC_STUB ICAManager_get_PaidTolls_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICAManager_put_UseDefaultUI_Proxy( - ICAManager * This, - /* [in] */ long fUseDefaultUI); - - -void __RPC_STUB ICAManager_put_UseDefaultUI_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAManager_get_UseDefaultUI_Proxy( - ICAManager * This, - /* [retval][out] */ long *pfUseDefaultUI); - - -void __RPC_STUB ICAManager_get_UseDefaultUI_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAManager_get_DenialsFor_Proxy( - ICAManager * This, - /* [in] */ IUnknown *pUnk, - /* [retval][out] */ ICADenials **ppDenials); - - -void __RPC_STUB ICAManager_get_DenialsFor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAManager_INTERFACE_DEFINED__ */ - - -#ifndef __ICARequest_INTERFACE_DEFINED__ -#define __ICARequest_INTERFACE_DEFINED__ - -/* interface ICARequest */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICARequest; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166310-DF8A-463a-B620-7BEC23542010") - ICARequest : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RequestedItem( - /* [retval][out] */ IUnknown **ppTunereq) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CAManager( - /* [retval][out] */ ICAManager **ppManager) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ScheduleEntry( - /* [retval][out] */ IUnknown **ppUnkScheduleEntry) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Denials( - /* [retval][out] */ ICADenials **ppDenials) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Components( - /* [retval][out] */ ICAComponents **pComponents) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Check( - /* [retval][out] */ long *pcDenials) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ResolveDenials( - /* [retval][out] */ long *pcDenials) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CountDeniedComponents( - /* [retval][out] */ long *pcDeniedComponents) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICARequestVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICARequest * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICARequest * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICARequest * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICARequest * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICARequest * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICARequest * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICARequest * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestedItem )( - ICARequest * This, - /* [retval][out] */ IUnknown **ppTunereq); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CAManager )( - ICARequest * This, - /* [retval][out] */ ICAManager **ppManager); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScheduleEntry )( - ICARequest * This, - /* [retval][out] */ IUnknown **ppUnkScheduleEntry); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Denials )( - ICARequest * This, - /* [retval][out] */ ICADenials **ppDenials); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Components )( - ICARequest * This, - /* [retval][out] */ ICAComponents **pComponents); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Check )( - ICARequest * This, - /* [retval][out] */ long *pcDenials); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ResolveDenials )( - ICARequest * This, - /* [retval][out] */ long *pcDenials); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CountDeniedComponents )( - ICARequest * This, - /* [retval][out] */ long *pcDeniedComponents); - - END_INTERFACE - } ICARequestVtbl; - - interface ICARequest - { - CONST_VTBL struct ICARequestVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICARequest_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICARequest_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICARequest_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICARequest_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICARequest_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICARequest_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICARequest_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICARequest_get_RequestedItem(This,ppTunereq) \ - (This)->lpVtbl -> get_RequestedItem(This,ppTunereq) - -#define ICARequest_get_CAManager(This,ppManager) \ - (This)->lpVtbl -> get_CAManager(This,ppManager) - -#define ICARequest_get_ScheduleEntry(This,ppUnkScheduleEntry) \ - (This)->lpVtbl -> get_ScheduleEntry(This,ppUnkScheduleEntry) - -#define ICARequest_get_Denials(This,ppDenials) \ - (This)->lpVtbl -> get_Denials(This,ppDenials) - -#define ICARequest_get_Components(This,pComponents) \ - (This)->lpVtbl -> get_Components(This,pComponents) - -#define ICARequest_get_Check(This,pcDenials) \ - (This)->lpVtbl -> get_Check(This,pcDenials) - -#define ICARequest_get_ResolveDenials(This,pcDenials) \ - (This)->lpVtbl -> get_ResolveDenials(This,pcDenials) - -#define ICARequest_get_CountDeniedComponents(This,pcDeniedComponents) \ - (This)->lpVtbl -> get_CountDeniedComponents(This,pcDeniedComponents) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICARequest_get_RequestedItem_Proxy( - ICARequest * This, - /* [retval][out] */ IUnknown **ppTunereq); - - -void __RPC_STUB ICARequest_get_RequestedItem_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICARequest_get_CAManager_Proxy( - ICARequest * This, - /* [retval][out] */ ICAManager **ppManager); - - -void __RPC_STUB ICARequest_get_CAManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICARequest_get_ScheduleEntry_Proxy( - ICARequest * This, - /* [retval][out] */ IUnknown **ppUnkScheduleEntry); - - -void __RPC_STUB ICARequest_get_ScheduleEntry_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICARequest_get_Denials_Proxy( - ICARequest * This, - /* [retval][out] */ ICADenials **ppDenials); - - -void __RPC_STUB ICARequest_get_Denials_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICARequest_get_Components_Proxy( - ICARequest * This, - /* [retval][out] */ ICAComponents **pComponents); - - -void __RPC_STUB ICARequest_get_Components_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICARequest_get_Check_Proxy( - ICARequest * This, - /* [retval][out] */ long *pcDenials); - - -void __RPC_STUB ICARequest_get_Check_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICARequest_get_ResolveDenials_Proxy( - ICARequest * This, - /* [retval][out] */ long *pcDenials); - - -void __RPC_STUB ICARequest_get_ResolveDenials_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICARequest_get_CountDeniedComponents_Proxy( - ICARequest * This, - /* [retval][out] */ long *pcDeniedComponents); - - -void __RPC_STUB ICARequest_get_CountDeniedComponents_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICARequest_INTERFACE_DEFINED__ */ - - -#ifndef __ICAPolicy_INTERFACE_DEFINED__ -#define __ICAPolicy_INTERFACE_DEFINED__ - -/* interface ICAPolicy */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_ICAPolicy; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166320-DF8A-463a-B620-7BEC23542010") - ICAPolicy : public IUnknown - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( - /* [retval][out] */ BSTR *pbstr) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CheckRequest( - /* [in] */ ICARequest *pReq) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CAManager( - /* [in] */ ICAManager *pManager) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OkToPersist( - /* [retval][out] */ BOOL *pfOkToPersist) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OkToRemove( - /* [retval][out] */ BOOL *pfOkToRemove) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OkToRemoveDenial( - ICADenial *pDenial, - /* [retval][out] */ BOOL *pfOk) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OkToRemoveOffer( - ICAOffer *pOffer, - /* [retval][out] */ BOOL *pfOk) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICAPolicyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAPolicy * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAPolicy * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAPolicy * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - ICAPolicy * This, - /* [retval][out] */ BSTR *pbstr); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CheckRequest )( - ICAPolicy * This, - /* [in] */ ICARequest *pReq); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CAManager )( - ICAPolicy * This, - /* [in] */ ICAManager *pManager); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OkToPersist )( - ICAPolicy * This, - /* [retval][out] */ BOOL *pfOkToPersist); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OkToRemove )( - ICAPolicy * This, - /* [retval][out] */ BOOL *pfOkToRemove); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OkToRemoveDenial )( - ICAPolicy * This, - ICADenial *pDenial, - /* [retval][out] */ BOOL *pfOk); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OkToRemoveOffer )( - ICAPolicy * This, - ICAOffer *pOffer, - /* [retval][out] */ BOOL *pfOk); - - END_INTERFACE - } ICAPolicyVtbl; - - interface ICAPolicy - { - CONST_VTBL struct ICAPolicyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAPolicy_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAPolicy_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAPolicy_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAPolicy_get_Name(This,pbstr) \ - (This)->lpVtbl -> get_Name(This,pbstr) - -#define ICAPolicy_CheckRequest(This,pReq) \ - (This)->lpVtbl -> CheckRequest(This,pReq) - -#define ICAPolicy_put_CAManager(This,pManager) \ - (This)->lpVtbl -> put_CAManager(This,pManager) - -#define ICAPolicy_get_OkToPersist(This,pfOkToPersist) \ - (This)->lpVtbl -> get_OkToPersist(This,pfOkToPersist) - -#define ICAPolicy_get_OkToRemove(This,pfOkToRemove) \ - (This)->lpVtbl -> get_OkToRemove(This,pfOkToRemove) - -#define ICAPolicy_get_OkToRemoveDenial(This,pDenial,pfOk) \ - (This)->lpVtbl -> get_OkToRemoveDenial(This,pDenial,pfOk) - -#define ICAPolicy_get_OkToRemoveOffer(This,pOffer,pfOk) \ - (This)->lpVtbl -> get_OkToRemoveOffer(This,pOffer,pfOk) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAPolicy_get_Name_Proxy( - ICAPolicy * This, - /* [retval][out] */ BSTR *pbstr); - - -void __RPC_STUB ICAPolicy_get_Name_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAPolicy_CheckRequest_Proxy( - ICAPolicy * This, - /* [in] */ ICARequest *pReq); - - -void __RPC_STUB ICAPolicy_CheckRequest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICAPolicy_put_CAManager_Proxy( - ICAPolicy * This, - /* [in] */ ICAManager *pManager); - - -void __RPC_STUB ICAPolicy_put_CAManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAPolicy_get_OkToPersist_Proxy( - ICAPolicy * This, - /* [retval][out] */ BOOL *pfOkToPersist); - - -void __RPC_STUB ICAPolicy_get_OkToPersist_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAPolicy_get_OkToRemove_Proxy( - ICAPolicy * This, - /* [retval][out] */ BOOL *pfOkToRemove); - - -void __RPC_STUB ICAPolicy_get_OkToRemove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAPolicy_get_OkToRemoveDenial_Proxy( - ICAPolicy * This, - ICADenial *pDenial, - /* [retval][out] */ BOOL *pfOk); - - -void __RPC_STUB ICAPolicy_get_OkToRemoveDenial_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAPolicy_get_OkToRemoveOffer_Proxy( - ICAPolicy * This, - ICAOffer *pOffer, - /* [retval][out] */ BOOL *pfOk); - - -void __RPC_STUB ICAPolicy_get_OkToRemoveOffer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAPolicy_INTERFACE_DEFINED__ */ - - -#ifndef __ICAToll_INTERFACE_DEFINED__ -#define __ICAToll_INTERFACE_DEFINED__ - -/* interface ICAToll */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICAToll; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166330-DF8A-463a-B620-7BEC23542010") - ICAToll : public IUnknown - { - public: - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CAManager( - /* [in] */ ICAManager *pManager) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Select( - /* [in] */ BOOL fSelect) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PayToll( void) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Refundable( - /* [retval][out] */ BOOL *pfRefundable) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RefundToll( void) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TolledObject( - /* [retval][out] */ IUnknown **ppUnkTolled) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Denials( - /* [retval][out] */ ICADenials **ppDenials) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Policy( - /* [retval][out] */ ICAPolicy **ppPolicy) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( - /* [in] */ CADescFormat enFormat, - /* [retval][out] */ BSTR *pbstr) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TimePaid( - /* [retval][out] */ DATE *pdtPaid) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_State( - /* [retval][out] */ CATollState *penState) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICATollVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAToll * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAToll * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAToll * This); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CAManager )( - ICAToll * This, - /* [in] */ ICAManager *pManager); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Select )( - ICAToll * This, - /* [in] */ BOOL fSelect); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PayToll )( - ICAToll * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Refundable )( - ICAToll * This, - /* [retval][out] */ BOOL *pfRefundable); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RefundToll )( - ICAToll * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TolledObject )( - ICAToll * This, - /* [retval][out] */ IUnknown **ppUnkTolled); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Denials )( - ICAToll * This, - /* [retval][out] */ ICADenials **ppDenials); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Policy )( - ICAToll * This, - /* [retval][out] */ ICAPolicy **ppPolicy); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - ICAToll * This, - /* [in] */ CADescFormat enFormat, - /* [retval][out] */ BSTR *pbstr); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TimePaid )( - ICAToll * This, - /* [retval][out] */ DATE *pdtPaid); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( - ICAToll * This, - /* [retval][out] */ CATollState *penState); - - END_INTERFACE - } ICATollVtbl; - - interface ICAToll - { - CONST_VTBL struct ICATollVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAToll_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAToll_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAToll_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAToll_put_CAManager(This,pManager) \ - (This)->lpVtbl -> put_CAManager(This,pManager) - -#define ICAToll_Select(This,fSelect) \ - (This)->lpVtbl -> Select(This,fSelect) - -#define ICAToll_PayToll(This) \ - (This)->lpVtbl -> PayToll(This) - -#define ICAToll_get_Refundable(This,pfRefundable) \ - (This)->lpVtbl -> get_Refundable(This,pfRefundable) - -#define ICAToll_RefundToll(This) \ - (This)->lpVtbl -> RefundToll(This) - -#define ICAToll_get_TolledObject(This,ppUnkTolled) \ - (This)->lpVtbl -> get_TolledObject(This,ppUnkTolled) - -#define ICAToll_get_Denials(This,ppDenials) \ - (This)->lpVtbl -> get_Denials(This,ppDenials) - -#define ICAToll_get_Policy(This,ppPolicy) \ - (This)->lpVtbl -> get_Policy(This,ppPolicy) - -#define ICAToll_get_Description(This,enFormat,pbstr) \ - (This)->lpVtbl -> get_Description(This,enFormat,pbstr) - -#define ICAToll_get_TimePaid(This,pdtPaid) \ - (This)->lpVtbl -> get_TimePaid(This,pdtPaid) - -#define ICAToll_get_State(This,penState) \ - (This)->lpVtbl -> get_State(This,penState) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICAToll_put_CAManager_Proxy( - ICAToll * This, - /* [in] */ ICAManager *pManager); - - -void __RPC_STUB ICAToll_put_CAManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAToll_Select_Proxy( - ICAToll * This, - /* [in] */ BOOL fSelect); - - -void __RPC_STUB ICAToll_Select_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAToll_PayToll_Proxy( - ICAToll * This); - - -void __RPC_STUB ICAToll_PayToll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAToll_get_Refundable_Proxy( - ICAToll * This, - /* [retval][out] */ BOOL *pfRefundable); - - -void __RPC_STUB ICAToll_get_Refundable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAToll_RefundToll_Proxy( - ICAToll * This); - - -void __RPC_STUB ICAToll_RefundToll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAToll_get_TolledObject_Proxy( - ICAToll * This, - /* [retval][out] */ IUnknown **ppUnkTolled); - - -void __RPC_STUB ICAToll_get_TolledObject_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAToll_get_Denials_Proxy( - ICAToll * This, - /* [retval][out] */ ICADenials **ppDenials); - - -void __RPC_STUB ICAToll_get_Denials_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAToll_get_Policy_Proxy( - ICAToll * This, - /* [retval][out] */ ICAPolicy **ppPolicy); - - -void __RPC_STUB ICAToll_get_Policy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAToll_get_Description_Proxy( - ICAToll * This, - /* [in] */ CADescFormat enFormat, - /* [retval][out] */ BSTR *pbstr); - - -void __RPC_STUB ICAToll_get_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAToll_get_TimePaid_Proxy( - ICAToll * This, - /* [retval][out] */ DATE *pdtPaid); - - -void __RPC_STUB ICAToll_get_TimePaid_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAToll_get_State_Proxy( - ICAToll * This, - /* [retval][out] */ CATollState *penState); - - -void __RPC_STUB ICAToll_get_State_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAToll_INTERFACE_DEFINED__ */ - - -#ifndef __ICADenial_INTERFACE_DEFINED__ -#define __ICADenial_INTERFACE_DEFINED__ - -/* interface ICADenial */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICADenial; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166340-DF8A-463a-B620-7BEC23542010") - ICADenial : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeniedObject( - /* [retval][out] */ IUnknown **ppUnkDenied) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Policy( - /* [retval][out] */ ICAPolicy **ppPolicy) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( - /* [in] */ CADescFormat enFormat, - /* [retval][out] */ BSTR *pbstr) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( - /* [in] */ CADescFormat enFormat, - /* [in] */ BSTR bstr) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_State( - /* [retval][out] */ CADenialState *penState) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_State( - /* [in] */ CADenialState enState) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Tolls( - /* [retval][out] */ ICATolls **ppTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTollStateChanged( - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateFrom) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICADenialVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICADenial * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICADenial * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICADenial * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICADenial * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICADenial * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICADenial * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICADenial * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeniedObject )( - ICADenial * This, - /* [retval][out] */ IUnknown **ppUnkDenied); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Policy )( - ICADenial * This, - /* [retval][out] */ ICAPolicy **ppPolicy); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - ICADenial * This, - /* [in] */ CADescFormat enFormat, - /* [retval][out] */ BSTR *pbstr); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( - ICADenial * This, - /* [in] */ CADescFormat enFormat, - /* [in] */ BSTR bstr); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( - ICADenial * This, - /* [retval][out] */ CADenialState *penState); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_State )( - ICADenial * This, - /* [in] */ CADenialState enState); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tolls )( - ICADenial * This, - /* [retval][out] */ ICATolls **ppTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTollStateChanged )( - ICADenial * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateFrom); - - END_INTERFACE - } ICADenialVtbl; - - interface ICADenial - { - CONST_VTBL struct ICADenialVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICADenial_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICADenial_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICADenial_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICADenial_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICADenial_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICADenial_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICADenial_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICADenial_get_DeniedObject(This,ppUnkDenied) \ - (This)->lpVtbl -> get_DeniedObject(This,ppUnkDenied) - -#define ICADenial_get_Policy(This,ppPolicy) \ - (This)->lpVtbl -> get_Policy(This,ppPolicy) - -#define ICADenial_get_Description(This,enFormat,pbstr) \ - (This)->lpVtbl -> get_Description(This,enFormat,pbstr) - -#define ICADenial_put_Description(This,enFormat,bstr) \ - (This)->lpVtbl -> put_Description(This,enFormat,bstr) - -#define ICADenial_get_State(This,penState) \ - (This)->lpVtbl -> get_State(This,penState) - -#define ICADenial_put_State(This,enState) \ - (This)->lpVtbl -> put_State(This,enState) - -#define ICADenial_get_Tolls(This,ppTolls) \ - (This)->lpVtbl -> get_Tolls(This,ppTolls) - -#define ICADenial_NotifyTollStateChanged(This,pToll,enStateFrom) \ - (This)->lpVtbl -> NotifyTollStateChanged(This,pToll,enStateFrom) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICADenial_get_DeniedObject_Proxy( - ICADenial * This, - /* [retval][out] */ IUnknown **ppUnkDenied); - - -void __RPC_STUB ICADenial_get_DeniedObject_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICADenial_get_Policy_Proxy( - ICADenial * This, - /* [retval][out] */ ICAPolicy **ppPolicy); - - -void __RPC_STUB ICADenial_get_Policy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICADenial_get_Description_Proxy( - ICADenial * This, - /* [in] */ CADescFormat enFormat, - /* [retval][out] */ BSTR *pbstr); - - -void __RPC_STUB ICADenial_get_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICADenial_put_Description_Proxy( - ICADenial * This, - /* [in] */ CADescFormat enFormat, - /* [in] */ BSTR bstr); - - -void __RPC_STUB ICADenial_put_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICADenial_get_State_Proxy( - ICADenial * This, - /* [retval][out] */ CADenialState *penState); - - -void __RPC_STUB ICADenial_get_State_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICADenial_put_State_Proxy( - ICADenial * This, - /* [in] */ CADenialState enState); - - -void __RPC_STUB ICADenial_put_State_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICADenial_get_Tolls_Proxy( - ICADenial * This, - /* [retval][out] */ ICATolls **ppTolls); - - -void __RPC_STUB ICADenial_get_Tolls_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICADenial_NotifyTollStateChanged_Proxy( - ICADenial * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateFrom); - - -void __RPC_STUB ICADenial_NotifyTollStateChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICADenial_INTERFACE_DEFINED__ */ - - -#ifndef __ICAOffer_INTERFACE_DEFINED__ -#define __ICAOffer_INTERFACE_DEFINED__ - -/* interface ICAOffer */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICAOffer; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166350-DF8A-463a-B620-7BEC23542010") - ICAOffer : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CAManager( - /* [retval][out] */ ICAManager **ppManager) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CAManager( - /* [in] */ ICAManager *pManager) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Policy( - /* [retval][out] */ ICAPolicy **pppolicy) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( - /* [in] */ CADescFormat enFormat, - /* [retval][out] */ BSTR *pbstr) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( - /* [in] */ CADescFormat enFormat, - /* [in] */ BSTR bstr) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartTime( - /* [retval][out] */ DATE *pdtStart) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EndTime( - /* [retval][out] */ DATE *pdtEnd) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Tolls( - /* [retval][out] */ ICATolls **ppTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTollStateChanged( - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateFrom) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICAOfferVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAOffer * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAOffer * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAOffer * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICAOffer * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICAOffer * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICAOffer * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICAOffer * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CAManager )( - ICAOffer * This, - /* [retval][out] */ ICAManager **ppManager); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CAManager )( - ICAOffer * This, - /* [in] */ ICAManager *pManager); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Policy )( - ICAOffer * This, - /* [retval][out] */ ICAPolicy **pppolicy); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - ICAOffer * This, - /* [in] */ CADescFormat enFormat, - /* [retval][out] */ BSTR *pbstr); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( - ICAOffer * This, - /* [in] */ CADescFormat enFormat, - /* [in] */ BSTR bstr); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartTime )( - ICAOffer * This, - /* [retval][out] */ DATE *pdtStart); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EndTime )( - ICAOffer * This, - /* [retval][out] */ DATE *pdtEnd); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tolls )( - ICAOffer * This, - /* [retval][out] */ ICATolls **ppTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTollStateChanged )( - ICAOffer * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateFrom); - - END_INTERFACE - } ICAOfferVtbl; - - interface ICAOffer - { - CONST_VTBL struct ICAOfferVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAOffer_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAOffer_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAOffer_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAOffer_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICAOffer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICAOffer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICAOffer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICAOffer_get_CAManager(This,ppManager) \ - (This)->lpVtbl -> get_CAManager(This,ppManager) - -#define ICAOffer_put_CAManager(This,pManager) \ - (This)->lpVtbl -> put_CAManager(This,pManager) - -#define ICAOffer_get_Policy(This,pppolicy) \ - (This)->lpVtbl -> get_Policy(This,pppolicy) - -#define ICAOffer_get_Description(This,enFormat,pbstr) \ - (This)->lpVtbl -> get_Description(This,enFormat,pbstr) - -#define ICAOffer_put_Description(This,enFormat,bstr) \ - (This)->lpVtbl -> put_Description(This,enFormat,bstr) - -#define ICAOffer_get_StartTime(This,pdtStart) \ - (This)->lpVtbl -> get_StartTime(This,pdtStart) - -#define ICAOffer_get_EndTime(This,pdtEnd) \ - (This)->lpVtbl -> get_EndTime(This,pdtEnd) - -#define ICAOffer_get_Tolls(This,ppTolls) \ - (This)->lpVtbl -> get_Tolls(This,ppTolls) - -#define ICAOffer_NotifyTollStateChanged(This,pToll,enStateFrom) \ - (This)->lpVtbl -> NotifyTollStateChanged(This,pToll,enStateFrom) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAOffer_get_CAManager_Proxy( - ICAOffer * This, - /* [retval][out] */ ICAManager **ppManager); - - -void __RPC_STUB ICAOffer_get_CAManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICAOffer_put_CAManager_Proxy( - ICAOffer * This, - /* [in] */ ICAManager *pManager); - - -void __RPC_STUB ICAOffer_put_CAManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAOffer_get_Policy_Proxy( - ICAOffer * This, - /* [retval][out] */ ICAPolicy **pppolicy); - - -void __RPC_STUB ICAOffer_get_Policy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAOffer_get_Description_Proxy( - ICAOffer * This, - /* [in] */ CADescFormat enFormat, - /* [retval][out] */ BSTR *pbstr); - - -void __RPC_STUB ICAOffer_get_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICAOffer_put_Description_Proxy( - ICAOffer * This, - /* [in] */ CADescFormat enFormat, - /* [in] */ BSTR bstr); - - -void __RPC_STUB ICAOffer_put_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAOffer_get_StartTime_Proxy( - ICAOffer * This, - /* [retval][out] */ DATE *pdtStart); - - -void __RPC_STUB ICAOffer_get_StartTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAOffer_get_EndTime_Proxy( - ICAOffer * This, - /* [retval][out] */ DATE *pdtEnd); - - -void __RPC_STUB ICAOffer_get_EndTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAOffer_get_Tolls_Proxy( - ICAOffer * This, - /* [retval][out] */ ICATolls **ppTolls); - - -void __RPC_STUB ICAOffer_get_Tolls_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAOffer_NotifyTollStateChanged_Proxy( - ICAOffer * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateFrom); - - -void __RPC_STUB ICAOffer_NotifyTollStateChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAOffer_INTERFACE_DEFINED__ */ - - -#ifndef __ICAComponent_INTERFACE_DEFINED__ -#define __ICAComponent_INTERFACE_DEFINED__ - -/* interface ICAComponent */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICAComponent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166360-DF8A-463a-B620-7BEC23542010") - ICAComponent : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Component( - /* [retval][out] */ IComponent **ppComponent) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Denials( - /* [retval][out] */ ICADenials **ppDenials) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Request( - /* [retval][out] */ ICARequest **ppComponent) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICAComponentVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAComponent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAComponent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAComponent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICAComponent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICAComponent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICAComponent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICAComponent * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Component )( - ICAComponent * This, - /* [retval][out] */ IComponent **ppComponent); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Denials )( - ICAComponent * This, - /* [retval][out] */ ICADenials **ppDenials); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Request )( - ICAComponent * This, - /* [retval][out] */ ICARequest **ppComponent); - - END_INTERFACE - } ICAComponentVtbl; - - interface ICAComponent - { - CONST_VTBL struct ICAComponentVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAComponent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAComponent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAComponent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAComponent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICAComponent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICAComponent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICAComponent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICAComponent_get_Component(This,ppComponent) \ - (This)->lpVtbl -> get_Component(This,ppComponent) - -#define ICAComponent_get_Denials(This,ppDenials) \ - (This)->lpVtbl -> get_Denials(This,ppDenials) - -#define ICAComponent_get_Request(This,ppComponent) \ - (This)->lpVtbl -> get_Request(This,ppComponent) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAComponent_get_Component_Proxy( - ICAComponent * This, - /* [retval][out] */ IComponent **ppComponent); - - -void __RPC_STUB ICAComponent_get_Component_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAComponent_get_Denials_Proxy( - ICAComponent * This, - /* [retval][out] */ ICADenials **ppDenials); - - -void __RPC_STUB ICAComponent_get_Denials_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAComponent_get_Request_Proxy( - ICAComponent * This, - /* [retval][out] */ ICARequest **ppComponent); - - -void __RPC_STUB ICAComponent_get_Request_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAComponent_INTERFACE_DEFINED__ */ - - -EXTERN_C const CLSID CLSID_CAManager; - -#ifdef __cplusplus - -class DECLSPEC_UUID("11166100-DF8A-463a-B620-7BEC23542010") -CAManager; -#endif - -EXTERN_C const CLSID CLSID_CAManagerProxy; - -#ifdef __cplusplus - -class DECLSPEC_UUID("11166101-DF8A-463a-B620-7BEC23542010") -CAManagerProxy; -#endif - -EXTERN_C const CLSID CLSID_CADenials; - -#ifdef __cplusplus - -class DECLSPEC_UUID("11166540-DF8A-463a-B620-7BEC23542010") -CADenials; -#endif - -EXTERN_C const CLSID CLSID_CAOffer; - -#ifdef __cplusplus - -class DECLSPEC_UUID("11166550-DF8A-463a-B620-7BEC23542010") -CAOffer; -#endif - -#ifndef __ICAResDenialTree_INTERFACE_DEFINED__ -#define __ICAResDenialTree_INTERFACE_DEFINED__ - -/* interface ICAResDenialTree */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ICAResDenialTree; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166898-DF8A-463a-B620-7BEC23542010") - ICAResDenialTree : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CAManager( - /* [retval][out] */ ICAManager **ppCAManager) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CAManager( - /* [in] */ ICAManager *pCAManager) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayFields( - /* [retval][out] */ long *penFields) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DisplayFields( - /* [in] */ long enFields) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UpdateView( - /* [in] */ IUnknown *pUnk) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyRequestActivated( - /* [in] */ ICARequest *preq) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyRequestDeactivated( - /* [in] */ ICARequest *preq) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOfferAdded( - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOfferRemoved( - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyPolicyAdded( - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyPolicyRemoved( - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyRequestDenialAdded( - /* [in] */ ICARequest *preq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyRequestDenialRemoved( - /* [in] */ ICARequest *preq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDenialTollAdded( - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDenialTollRemoved( - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTollDenialAdded( - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTollDenialRemoved( - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOfferTollAdded( - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOfferTollRemoved( - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTollStateChanged( - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateLast) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDenialStateChanged( - /* [in] */ ICADenial *pDenial, - /* [in] */ CADenialState enStateLast) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyComponentDenialAdded( - /* [in] */ ICAComponent *preq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyComponentDenialRemoved( - /* [in] */ ICAComponent *preq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICAResDenialTreeVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICAResDenialTree * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICAResDenialTree * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICAResDenialTree * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICAResDenialTree * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICAResDenialTree * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICAResDenialTree * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICAResDenialTree * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CAManager )( - ICAResDenialTree * This, - /* [retval][out] */ ICAManager **ppCAManager); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CAManager )( - ICAResDenialTree * This, - /* [in] */ ICAManager *pCAManager); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayFields )( - ICAResDenialTree * This, - /* [retval][out] */ long *penFields); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayFields )( - ICAResDenialTree * This, - /* [in] */ long enFields); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateView )( - ICAResDenialTree * This, - /* [in] */ IUnknown *pUnk); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyRequestActivated )( - ICAResDenialTree * This, - /* [in] */ ICARequest *preq); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyRequestDeactivated )( - ICAResDenialTree * This, - /* [in] */ ICARequest *preq); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOfferAdded )( - ICAResDenialTree * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOfferRemoved )( - ICAResDenialTree * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyPolicyAdded )( - ICAResDenialTree * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyPolicyRemoved )( - ICAResDenialTree * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyRequestDenialAdded )( - ICAResDenialTree * This, - /* [in] */ ICARequest *preq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyRequestDenialRemoved )( - ICAResDenialTree * This, - /* [in] */ ICARequest *preq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDenialTollAdded )( - ICAResDenialTree * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDenialTollRemoved )( - ICAResDenialTree * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTollDenialAdded )( - ICAResDenialTree * This, - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTollDenialRemoved )( - ICAResDenialTree * This, - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOfferTollAdded )( - ICAResDenialTree * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOfferTollRemoved )( - ICAResDenialTree * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTollStateChanged )( - ICAResDenialTree * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateLast); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDenialStateChanged )( - ICAResDenialTree * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ CADenialState enStateLast); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyComponentDenialAdded )( - ICAResDenialTree * This, - /* [in] */ ICAComponent *preq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyComponentDenialRemoved )( - ICAResDenialTree * This, - /* [in] */ ICAComponent *preq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - END_INTERFACE - } ICAResDenialTreeVtbl; - - interface ICAResDenialTree - { - CONST_VTBL struct ICAResDenialTreeVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICAResDenialTree_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICAResDenialTree_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICAResDenialTree_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICAResDenialTree_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICAResDenialTree_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICAResDenialTree_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICAResDenialTree_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICAResDenialTree_get_CAManager(This,ppCAManager) \ - (This)->lpVtbl -> get_CAManager(This,ppCAManager) - -#define ICAResDenialTree_put_CAManager(This,pCAManager) \ - (This)->lpVtbl -> put_CAManager(This,pCAManager) - -#define ICAResDenialTree_get_DisplayFields(This,penFields) \ - (This)->lpVtbl -> get_DisplayFields(This,penFields) - -#define ICAResDenialTree_put_DisplayFields(This,enFields) \ - (This)->lpVtbl -> put_DisplayFields(This,enFields) - -#define ICAResDenialTree_UpdateView(This,pUnk) \ - (This)->lpVtbl -> UpdateView(This,pUnk) - -#define ICAResDenialTree_NotifyRequestActivated(This,preq) \ - (This)->lpVtbl -> NotifyRequestActivated(This,preq) - -#define ICAResDenialTree_NotifyRequestDeactivated(This,preq) \ - (This)->lpVtbl -> NotifyRequestDeactivated(This,preq) - -#define ICAResDenialTree_NotifyOfferAdded(This,pOffer,cOffers) \ - (This)->lpVtbl -> NotifyOfferAdded(This,pOffer,cOffers) - -#define ICAResDenialTree_NotifyOfferRemoved(This,pOffer,cOffers) \ - (This)->lpVtbl -> NotifyOfferRemoved(This,pOffer,cOffers) - -#define ICAResDenialTree_NotifyPolicyAdded(This,pPolicy,cPolicies) \ - (This)->lpVtbl -> NotifyPolicyAdded(This,pPolicy,cPolicies) - -#define ICAResDenialTree_NotifyPolicyRemoved(This,pPolicy,cPolicies) \ - (This)->lpVtbl -> NotifyPolicyRemoved(This,pPolicy,cPolicies) - -#define ICAResDenialTree_NotifyRequestDenialAdded(This,preq,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyRequestDenialAdded(This,preq,pDenial,cDenials) - -#define ICAResDenialTree_NotifyRequestDenialRemoved(This,preq,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyRequestDenialRemoved(This,preq,pDenial,cDenials) - -#define ICAResDenialTree_NotifyDenialTollAdded(This,pDenial,pToll,cTolls) \ - (This)->lpVtbl -> NotifyDenialTollAdded(This,pDenial,pToll,cTolls) - -#define ICAResDenialTree_NotifyDenialTollRemoved(This,pDenial,pToll,cTolls) \ - (This)->lpVtbl -> NotifyDenialTollRemoved(This,pDenial,pToll,cTolls) - -#define ICAResDenialTree_NotifyTollDenialAdded(This,pToll,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyTollDenialAdded(This,pToll,pDenial,cDenials) - -#define ICAResDenialTree_NotifyTollDenialRemoved(This,pToll,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyTollDenialRemoved(This,pToll,pDenial,cDenials) - -#define ICAResDenialTree_NotifyOfferTollAdded(This,pOffer,pToll,cTolls) \ - (This)->lpVtbl -> NotifyOfferTollAdded(This,pOffer,pToll,cTolls) - -#define ICAResDenialTree_NotifyOfferTollRemoved(This,pOffer,pToll,cTolls) \ - (This)->lpVtbl -> NotifyOfferTollRemoved(This,pOffer,pToll,cTolls) - -#define ICAResDenialTree_NotifyTollStateChanged(This,pToll,enStateLast) \ - (This)->lpVtbl -> NotifyTollStateChanged(This,pToll,enStateLast) - -#define ICAResDenialTree_NotifyDenialStateChanged(This,pDenial,enStateLast) \ - (This)->lpVtbl -> NotifyDenialStateChanged(This,pDenial,enStateLast) - -#define ICAResDenialTree_NotifyComponentDenialAdded(This,preq,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyComponentDenialAdded(This,preq,pDenial,cDenials) - -#define ICAResDenialTree_NotifyComponentDenialRemoved(This,preq,pDenial,cDenials) \ - (This)->lpVtbl -> NotifyComponentDenialRemoved(This,preq,pDenial,cDenials) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_get_CAManager_Proxy( - ICAResDenialTree * This, - /* [retval][out] */ ICAManager **ppCAManager); - - -void __RPC_STUB ICAResDenialTree_get_CAManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_put_CAManager_Proxy( - ICAResDenialTree * This, - /* [in] */ ICAManager *pCAManager); - - -void __RPC_STUB ICAResDenialTree_put_CAManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_get_DisplayFields_Proxy( - ICAResDenialTree * This, - /* [retval][out] */ long *penFields); - - -void __RPC_STUB ICAResDenialTree_get_DisplayFields_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_put_DisplayFields_Proxy( - ICAResDenialTree * This, - /* [in] */ long enFields); - - -void __RPC_STUB ICAResDenialTree_put_DisplayFields_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_UpdateView_Proxy( - ICAResDenialTree * This, - /* [in] */ IUnknown *pUnk); - - -void __RPC_STUB ICAResDenialTree_UpdateView_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyRequestActivated_Proxy( - ICAResDenialTree * This, - /* [in] */ ICARequest *preq); - - -void __RPC_STUB ICAResDenialTree_NotifyRequestActivated_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyRequestDeactivated_Proxy( - ICAResDenialTree * This, - /* [in] */ ICARequest *preq); - - -void __RPC_STUB ICAResDenialTree_NotifyRequestDeactivated_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyOfferAdded_Proxy( - ICAResDenialTree * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers); - - -void __RPC_STUB ICAResDenialTree_NotifyOfferAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyOfferRemoved_Proxy( - ICAResDenialTree * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ long cOffers); - - -void __RPC_STUB ICAResDenialTree_NotifyOfferRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyPolicyAdded_Proxy( - ICAResDenialTree * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies); - - -void __RPC_STUB ICAResDenialTree_NotifyPolicyAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyPolicyRemoved_Proxy( - ICAResDenialTree * This, - /* [in] */ ICAPolicy *pPolicy, - /* [in] */ long cPolicies); - - -void __RPC_STUB ICAResDenialTree_NotifyPolicyRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyRequestDenialAdded_Proxy( - ICAResDenialTree * This, - /* [in] */ ICARequest *preq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAResDenialTree_NotifyRequestDenialAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyRequestDenialRemoved_Proxy( - ICAResDenialTree * This, - /* [in] */ ICARequest *preq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAResDenialTree_NotifyRequestDenialRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyDenialTollAdded_Proxy( - ICAResDenialTree * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - -void __RPC_STUB ICAResDenialTree_NotifyDenialTollAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyDenialTollRemoved_Proxy( - ICAResDenialTree * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - -void __RPC_STUB ICAResDenialTree_NotifyDenialTollRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyTollDenialAdded_Proxy( - ICAResDenialTree * This, - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAResDenialTree_NotifyTollDenialAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyTollDenialRemoved_Proxy( - ICAResDenialTree * This, - /* [in] */ ICAToll *pToll, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAResDenialTree_NotifyTollDenialRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyOfferTollAdded_Proxy( - ICAResDenialTree * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - -void __RPC_STUB ICAResDenialTree_NotifyOfferTollAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyOfferTollRemoved_Proxy( - ICAResDenialTree * This, - /* [in] */ ICAOffer *pOffer, - /* [in] */ ICAToll *pToll, - /* [in] */ long cTolls); - - -void __RPC_STUB ICAResDenialTree_NotifyOfferTollRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyTollStateChanged_Proxy( - ICAResDenialTree * This, - /* [in] */ ICAToll *pToll, - /* [in] */ CATollState enStateLast); - - -void __RPC_STUB ICAResDenialTree_NotifyTollStateChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyDenialStateChanged_Proxy( - ICAResDenialTree * This, - /* [in] */ ICADenial *pDenial, - /* [in] */ CADenialState enStateLast); - - -void __RPC_STUB ICAResDenialTree_NotifyDenialStateChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyComponentDenialAdded_Proxy( - ICAResDenialTree * This, - /* [in] */ ICAComponent *preq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAResDenialTree_NotifyComponentDenialAdded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ICAResDenialTree_NotifyComponentDenialRemoved_Proxy( - ICAResDenialTree * This, - /* [in] */ ICAComponent *preq, - /* [in] */ ICADenial *pDenial, - /* [in] */ long cDenials); - - -void __RPC_STUB ICAResDenialTree_NotifyComponentDenialRemoved_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICAResDenialTree_INTERFACE_DEFINED__ */ - - -EXTERN_C const CLSID CLSID_CAResDenialTree; - -#ifdef __cplusplus - -class DECLSPEC_UUID("11166998-DF8A-463a-B620-7BEC23542010") -CAResDenialTree; -#endif - -#ifndef ___ICADefaultDlgEvents_DISPINTERFACE_DEFINED__ -#define ___ICADefaultDlgEvents_DISPINTERFACE_DEFINED__ - -/* dispinterface _ICADefaultDlgEvents */ -/* [helpstring][uuid] */ - - -EXTERN_C const IID DIID__ICADefaultDlgEvents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11166991-DF8A-463a-B620-7BEC23542010") - _ICADefaultDlgEvents : public IDispatch - { - }; - -#else /* C style interface */ - - typedef struct _ICADefaultDlgEventsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - _ICADefaultDlgEvents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - _ICADefaultDlgEvents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - _ICADefaultDlgEvents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - _ICADefaultDlgEvents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - _ICADefaultDlgEvents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - _ICADefaultDlgEvents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - _ICADefaultDlgEvents * 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 - } _ICADefaultDlgEventsVtbl; - - interface _ICADefaultDlgEvents - { - CONST_VTBL struct _ICADefaultDlgEventsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define _ICADefaultDlgEvents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define _ICADefaultDlgEvents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define _ICADefaultDlgEvents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define _ICADefaultDlgEvents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define _ICADefaultDlgEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define _ICADefaultDlgEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define _ICADefaultDlgEvents_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 /* ___ICADefaultDlgEvents_DISPINTERFACE_DEFINED__ */ - - -EXTERN_C const CLSID CLSID_CADefaultDlg; - -#ifdef __cplusplus - -class DECLSPEC_UUID("11166990-DF8A-463a-B620-7BEC23542010") -CADefaultDlg; -#endif -#endif /* __MSTvCALib_LIBRARY_DEFINED__ */ - -/* 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 * ); - -unsigned long __RPC_USER VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); -void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * ); - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/Mstve.h b/sdk/dx8sdk/Include/Mstve.h deleted file mode 100644 index 4cee53a6..00000000 --- a/sdk/dx8sdk/Include/Mstve.h +++ /dev/null @@ -1,13130 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for mstve.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __mstve_h__ -#define __mstve_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __ITVETrigger_FWD_DEFINED__ -#define __ITVETrigger_FWD_DEFINED__ -typedef interface ITVETrigger ITVETrigger; -#endif /* __ITVETrigger_FWD_DEFINED__ */ - - -#ifndef __ITVETrigger_Helper_FWD_DEFINED__ -#define __ITVETrigger_Helper_FWD_DEFINED__ -typedef interface ITVETrigger_Helper ITVETrigger_Helper; -#endif /* __ITVETrigger_Helper_FWD_DEFINED__ */ - - -#ifndef __ITVETrack_FWD_DEFINED__ -#define __ITVETrack_FWD_DEFINED__ -typedef interface ITVETrack ITVETrack; -#endif /* __ITVETrack_FWD_DEFINED__ */ - - -#ifndef __ITVETrack_Helper_FWD_DEFINED__ -#define __ITVETrack_Helper_FWD_DEFINED__ -typedef interface ITVETrack_Helper ITVETrack_Helper; -#endif /* __ITVETrack_Helper_FWD_DEFINED__ */ - - -#ifndef __ITVETracks_FWD_DEFINED__ -#define __ITVETracks_FWD_DEFINED__ -typedef interface ITVETracks ITVETracks; -#endif /* __ITVETracks_FWD_DEFINED__ */ - - -#ifndef __ITVEVariation_FWD_DEFINED__ -#define __ITVEVariation_FWD_DEFINED__ -typedef interface ITVEVariation ITVEVariation; -#endif /* __ITVEVariation_FWD_DEFINED__ */ - - -#ifndef __ITVEVariation_Helper_FWD_DEFINED__ -#define __ITVEVariation_Helper_FWD_DEFINED__ -typedef interface ITVEVariation_Helper ITVEVariation_Helper; -#endif /* __ITVEVariation_Helper_FWD_DEFINED__ */ - - -#ifndef __ITVEVariations_FWD_DEFINED__ -#define __ITVEVariations_FWD_DEFINED__ -typedef interface ITVEVariations ITVEVariations; -#endif /* __ITVEVariations_FWD_DEFINED__ */ - - -#ifndef __ITVEEnhancement_FWD_DEFINED__ -#define __ITVEEnhancement_FWD_DEFINED__ -typedef interface ITVEEnhancement ITVEEnhancement; -#endif /* __ITVEEnhancement_FWD_DEFINED__ */ - - -#ifndef __ITVEEnhancement_Helper_FWD_DEFINED__ -#define __ITVEEnhancement_Helper_FWD_DEFINED__ -typedef interface ITVEEnhancement_Helper ITVEEnhancement_Helper; -#endif /* __ITVEEnhancement_Helper_FWD_DEFINED__ */ - - -#ifndef __ITVEEnhancements_FWD_DEFINED__ -#define __ITVEEnhancements_FWD_DEFINED__ -typedef interface ITVEEnhancements ITVEEnhancements; -#endif /* __ITVEEnhancements_FWD_DEFINED__ */ - - -#ifndef __ITVEService_FWD_DEFINED__ -#define __ITVEService_FWD_DEFINED__ -typedef interface ITVEService ITVEService; -#endif /* __ITVEService_FWD_DEFINED__ */ - - -#ifndef __ITVEService_Helper_FWD_DEFINED__ -#define __ITVEService_Helper_FWD_DEFINED__ -typedef interface ITVEService_Helper ITVEService_Helper; -#endif /* __ITVEService_Helper_FWD_DEFINED__ */ - - -#ifndef __ITVEFeature_FWD_DEFINED__ -#define __ITVEFeature_FWD_DEFINED__ -typedef interface ITVEFeature ITVEFeature; -#endif /* __ITVEFeature_FWD_DEFINED__ */ - - -#ifndef __ITVEServices_FWD_DEFINED__ -#define __ITVEServices_FWD_DEFINED__ -typedef interface ITVEServices ITVEServices; -#endif /* __ITVEServices_FWD_DEFINED__ */ - - -#ifndef __ITVESupervisor_FWD_DEFINED__ -#define __ITVESupervisor_FWD_DEFINED__ -typedef interface ITVESupervisor ITVESupervisor; -#endif /* __ITVESupervisor_FWD_DEFINED__ */ - - -#ifndef __ITVESupervisor_Helper_FWD_DEFINED__ -#define __ITVESupervisor_Helper_FWD_DEFINED__ -typedef interface ITVESupervisor_Helper ITVESupervisor_Helper; -#endif /* __ITVESupervisor_Helper_FWD_DEFINED__ */ - - -#ifndef __ITVESupervisorGITProxy_FWD_DEFINED__ -#define __ITVESupervisorGITProxy_FWD_DEFINED__ -typedef interface ITVESupervisorGITProxy ITVESupervisorGITProxy; -#endif /* __ITVESupervisorGITProxy_FWD_DEFINED__ */ - - -#ifndef __ITVEAttrMap_FWD_DEFINED__ -#define __ITVEAttrMap_FWD_DEFINED__ -typedef interface ITVEAttrMap ITVEAttrMap; -#endif /* __ITVEAttrMap_FWD_DEFINED__ */ - - -#ifndef __ITVEAttrTimeQ_FWD_DEFINED__ -#define __ITVEAttrTimeQ_FWD_DEFINED__ -typedef interface ITVEAttrTimeQ ITVEAttrTimeQ; -#endif /* __ITVEAttrTimeQ_FWD_DEFINED__ */ - - -#ifndef __ITVEMCast_FWD_DEFINED__ -#define __ITVEMCast_FWD_DEFINED__ -typedef interface ITVEMCast ITVEMCast; -#endif /* __ITVEMCast_FWD_DEFINED__ */ - - -#ifndef __ITVEMCasts_FWD_DEFINED__ -#define __ITVEMCasts_FWD_DEFINED__ -typedef interface ITVEMCasts ITVEMCasts; -#endif /* __ITVEMCasts_FWD_DEFINED__ */ - - -#ifndef __ITVEMCastManager_FWD_DEFINED__ -#define __ITVEMCastManager_FWD_DEFINED__ -typedef interface ITVEMCastManager ITVEMCastManager; -#endif /* __ITVEMCastManager_FWD_DEFINED__ */ - - -#ifndef __ITVEMCastManager_Helper_FWD_DEFINED__ -#define __ITVEMCastManager_Helper_FWD_DEFINED__ -typedef interface ITVEMCastManager_Helper ITVEMCastManager_Helper; -#endif /* __ITVEMCastManager_Helper_FWD_DEFINED__ */ - - -#ifndef __ITVEMCastCallback_FWD_DEFINED__ -#define __ITVEMCastCallback_FWD_DEFINED__ -typedef interface ITVEMCastCallback ITVEMCastCallback; -#endif /* __ITVEMCastCallback_FWD_DEFINED__ */ - - -#ifndef __ITVECBAnnc_FWD_DEFINED__ -#define __ITVECBAnnc_FWD_DEFINED__ -typedef interface ITVECBAnnc ITVECBAnnc; -#endif /* __ITVECBAnnc_FWD_DEFINED__ */ - - -#ifndef __ITVECBTrig_FWD_DEFINED__ -#define __ITVECBTrig_FWD_DEFINED__ -typedef interface ITVECBTrig ITVECBTrig; -#endif /* __ITVECBTrig_FWD_DEFINED__ */ - - -#ifndef __ITVECBFile_FWD_DEFINED__ -#define __ITVECBFile_FWD_DEFINED__ -typedef interface ITVECBFile ITVECBFile; -#endif /* __ITVECBFile_FWD_DEFINED__ */ - - -#ifndef __ITVECBDummy_FWD_DEFINED__ -#define __ITVECBDummy_FWD_DEFINED__ -typedef interface ITVECBDummy ITVECBDummy; -#endif /* __ITVECBDummy_FWD_DEFINED__ */ - - -#ifndef __ITVEFile_FWD_DEFINED__ -#define __ITVEFile_FWD_DEFINED__ -typedef interface ITVEFile ITVEFile; -#endif /* __ITVEFile_FWD_DEFINED__ */ - - -#ifndef __ITVENavAid_FWD_DEFINED__ -#define __ITVENavAid_FWD_DEFINED__ -typedef interface ITVENavAid ITVENavAid; -#endif /* __ITVENavAid_FWD_DEFINED__ */ - - -#ifndef __ITVENavAid_NoVidCtl_FWD_DEFINED__ -#define __ITVENavAid_NoVidCtl_FWD_DEFINED__ -typedef interface ITVENavAid_NoVidCtl ITVENavAid_NoVidCtl; -#endif /* __ITVENavAid_NoVidCtl_FWD_DEFINED__ */ - - -#ifndef __ITVENavAid_Helper_FWD_DEFINED__ -#define __ITVENavAid_Helper_FWD_DEFINED__ -typedef interface ITVENavAid_Helper ITVENavAid_Helper; -#endif /* __ITVENavAid_Helper_FWD_DEFINED__ */ - - -#ifndef __ITVEFilter_FWD_DEFINED__ -#define __ITVEFilter_FWD_DEFINED__ -typedef interface ITVEFilter ITVEFilter; -#endif /* __ITVEFilter_FWD_DEFINED__ */ - - -#ifndef __ITVEFilter_Helper_FWD_DEFINED__ -#define __ITVEFilter_Helper_FWD_DEFINED__ -typedef interface ITVEFilter_Helper ITVEFilter_Helper; -#endif /* __ITVEFilter_Helper_FWD_DEFINED__ */ - - -#ifndef __ITVETriggerCtrl_FWD_DEFINED__ -#define __ITVETriggerCtrl_FWD_DEFINED__ -typedef interface ITVETriggerCtrl ITVETriggerCtrl; -#endif /* __ITVETriggerCtrl_FWD_DEFINED__ */ - - -#ifndef __ITVETriggerCtrl_Helper_FWD_DEFINED__ -#define __ITVETriggerCtrl_Helper_FWD_DEFINED__ -typedef interface ITVETriggerCtrl_Helper ITVETriggerCtrl_Helper; -#endif /* __ITVETriggerCtrl_Helper_FWD_DEFINED__ */ - - -#ifndef ___ITVEEvents_FWD_DEFINED__ -#define ___ITVEEvents_FWD_DEFINED__ -typedef interface _ITVEEvents _ITVEEvents; -#endif /* ___ITVEEvents_FWD_DEFINED__ */ - - -#ifndef __TVETrigger_FWD_DEFINED__ -#define __TVETrigger_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVETrigger TVETrigger; -#else -typedef struct TVETrigger TVETrigger; -#endif /* __cplusplus */ - -#endif /* __TVETrigger_FWD_DEFINED__ */ - - -#ifndef __TVETrack_FWD_DEFINED__ -#define __TVETrack_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVETrack TVETrack; -#else -typedef struct TVETrack TVETrack; -#endif /* __cplusplus */ - -#endif /* __TVETrack_FWD_DEFINED__ */ - - -#ifndef __TVEVariation_FWD_DEFINED__ -#define __TVEVariation_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEVariation TVEVariation; -#else -typedef struct TVEVariation TVEVariation; -#endif /* __cplusplus */ - -#endif /* __TVEVariation_FWD_DEFINED__ */ - - -#ifndef __TVEEnhancement_FWD_DEFINED__ -#define __TVEEnhancement_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEEnhancement TVEEnhancement; -#else -typedef struct TVEEnhancement TVEEnhancement; -#endif /* __cplusplus */ - -#endif /* __TVEEnhancement_FWD_DEFINED__ */ - - -#ifndef __TVEEnhancements_FWD_DEFINED__ -#define __TVEEnhancements_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEEnhancements TVEEnhancements; -#else -typedef struct TVEEnhancements TVEEnhancements; -#endif /* __cplusplus */ - -#endif /* __TVEEnhancements_FWD_DEFINED__ */ - - -#ifndef __TVEService_FWD_DEFINED__ -#define __TVEService_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEService TVEService; -#else -typedef struct TVEService TVEService; -#endif /* __cplusplus */ - -#endif /* __TVEService_FWD_DEFINED__ */ - - -#ifndef __TVEFeature_FWD_DEFINED__ -#define __TVEFeature_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEFeature TVEFeature; -#else -typedef struct TVEFeature TVEFeature; -#endif /* __cplusplus */ - -#endif /* __TVEFeature_FWD_DEFINED__ */ - - -#ifndef __TVEServices_FWD_DEFINED__ -#define __TVEServices_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEServices TVEServices; -#else -typedef struct TVEServices TVEServices; -#endif /* __cplusplus */ - -#endif /* __TVEServices_FWD_DEFINED__ */ - - -#ifndef __TVESupervisor_FWD_DEFINED__ -#define __TVESupervisor_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVESupervisor TVESupervisor; -#else -typedef struct TVESupervisor TVESupervisor; -#endif /* __cplusplus */ - -#endif /* __TVESupervisor_FWD_DEFINED__ */ - - -#ifndef __TVEAttrMap_FWD_DEFINED__ -#define __TVEAttrMap_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEAttrMap TVEAttrMap; -#else -typedef struct TVEAttrMap TVEAttrMap; -#endif /* __cplusplus */ - -#endif /* __TVEAttrMap_FWD_DEFINED__ */ - - -#ifndef __TVEAttrTimeQ_FWD_DEFINED__ -#define __TVEAttrTimeQ_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEAttrTimeQ TVEAttrTimeQ; -#else -typedef struct TVEAttrTimeQ TVEAttrTimeQ; -#endif /* __cplusplus */ - -#endif /* __TVEAttrTimeQ_FWD_DEFINED__ */ - - -#ifndef __TVEMCast_FWD_DEFINED__ -#define __TVEMCast_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEMCast TVEMCast; -#else -typedef struct TVEMCast TVEMCast; -#endif /* __cplusplus */ - -#endif /* __TVEMCast_FWD_DEFINED__ */ - - -#ifndef __TVEMCasts_FWD_DEFINED__ -#define __TVEMCasts_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEMCasts TVEMCasts; -#else -typedef struct TVEMCasts TVEMCasts; -#endif /* __cplusplus */ - -#endif /* __TVEMCasts_FWD_DEFINED__ */ - - -#ifndef __TVEMCastManager_FWD_DEFINED__ -#define __TVEMCastManager_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEMCastManager TVEMCastManager; -#else -typedef struct TVEMCastManager TVEMCastManager; -#endif /* __cplusplus */ - -#endif /* __TVEMCastManager_FWD_DEFINED__ */ - - -#ifndef __TVEMCastCallback_FWD_DEFINED__ -#define __TVEMCastCallback_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEMCastCallback TVEMCastCallback; -#else -typedef struct TVEMCastCallback TVEMCastCallback; -#endif /* __cplusplus */ - -#endif /* __TVEMCastCallback_FWD_DEFINED__ */ - - -#ifndef __TVECBAnnc_FWD_DEFINED__ -#define __TVECBAnnc_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVECBAnnc TVECBAnnc; -#else -typedef struct TVECBAnnc TVECBAnnc; -#endif /* __cplusplus */ - -#endif /* __TVECBAnnc_FWD_DEFINED__ */ - - -#ifndef __TVECBTrig_FWD_DEFINED__ -#define __TVECBTrig_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVECBTrig TVECBTrig; -#else -typedef struct TVECBTrig TVECBTrig; -#endif /* __cplusplus */ - -#endif /* __TVECBTrig_FWD_DEFINED__ */ - - -#ifndef __TVECBFile_FWD_DEFINED__ -#define __TVECBFile_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVECBFile TVECBFile; -#else -typedef struct TVECBFile TVECBFile; -#endif /* __cplusplus */ - -#endif /* __TVECBFile_FWD_DEFINED__ */ - - -#ifndef __TVECBDummy_FWD_DEFINED__ -#define __TVECBDummy_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVECBDummy TVECBDummy; -#else -typedef struct TVECBDummy TVECBDummy; -#endif /* __cplusplus */ - -#endif /* __TVECBDummy_FWD_DEFINED__ */ - - -#ifndef __TVEFile_FWD_DEFINED__ -#define __TVEFile_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEFile TVEFile; -#else -typedef struct TVEFile TVEFile; -#endif /* __cplusplus */ - -#endif /* __TVEFile_FWD_DEFINED__ */ - - -#ifndef __TVENavAid_FWD_DEFINED__ -#define __TVENavAid_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVENavAid TVENavAid; -#else -typedef struct TVENavAid TVENavAid; -#endif /* __cplusplus */ - -#endif /* __TVENavAid_FWD_DEFINED__ */ - - -#ifndef __TVEFilter_FWD_DEFINED__ -#define __TVEFilter_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVEFilter TVEFilter; -#else -typedef struct TVEFilter TVEFilter; -#endif /* __cplusplus */ - -#endif /* __TVEFilter_FWD_DEFINED__ */ - - -#ifndef ___ITVETriggerCtrlEvents_FWD_DEFINED__ -#define ___ITVETriggerCtrlEvents_FWD_DEFINED__ -typedef interface _ITVETriggerCtrlEvents _ITVETriggerCtrlEvents; -#endif /* ___ITVETriggerCtrlEvents_FWD_DEFINED__ */ - - -#ifndef __TVETriggerCtrl_FWD_DEFINED__ -#define __TVETriggerCtrl_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TVETriggerCtrl TVETriggerCtrl; -#else -typedef struct TVETriggerCtrl TVETriggerCtrl; -#endif /* __cplusplus */ - -#endif /* __TVETriggerCtrl_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "oaidl.h" -#include "ocidl.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_mstve_0000 */ -/* [local] */ - -//+------------------------------------------------------------------------- -// -// Microsoft Windows -// Copyright (C) Microsoft Corporation, 1999, 2000. -// -//-------------------------------------------------------------------------- -#pragma once - - - - - - - - - - - - - - - - - - - - - - - - - - - - -typedef -enum NENH_Mode - { NENH_New = 0, - NENH_Duplicate = NENH_New + 1, - NENH_Updated = NENH_Duplicate + 1, - NENH_Starting = NENH_Updated + 1, - NENH_Expired = NENH_Starting + 1 - } NENH_Mode; - -typedef -enum NPKG_Mode - { NPKG_Starting = 0, - NPKG_Received = NPKG_Starting + 1, - NPKG_Duplicate = NPKG_Received + 1, - NPKG_Resend = NPKG_Duplicate + 1, - NPKG_Expired = NPKG_Resend + 1 - } NPKG_Mode; - -typedef -enum NTRK_Mode - { NTRK_New = 0, - NTRK_Duplicate = NTRK_New + 1, - NTRK_Updated = NTRK_Duplicate + 1, - NTRK_Starting = NTRK_Updated + 1, - NTRK_Expired = NTRK_Starting + 1 - } NTRK_Mode; - -typedef -enum NFLE_Mode - { NFLE_Received = 0, - NFLE_Expired = NFLE_Received + 1 - } NFLE_Mode; - -typedef -enum NTUN_Mode - { NTUN_New = 0, - NTUN_Retune = NTUN_New + 1, - NTUN_Reactivate = NTUN_Retune + 1, - NTUN_Turnoff = NTUN_Reactivate + 1, - NTUN_Fail = NTUN_Turnoff + 1 - } NTUN_Mode; - -typedef -enum NWHAT_Mode - { NWHAT_Announcement = 0, - NWHAT_Trigger = NWHAT_Announcement + 1, - NWHAT_Data = NWHAT_Trigger + 1, - NWHAT_Other = NWHAT_Data + 1, - NWHAT_Extra = NWHAT_Other + 1 - } NWHAT_Mode; - - - -extern RPC_IF_HANDLE __MIDL_itf_mstve_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_mstve_0000_v0_0_s_ifspec; - -#ifndef __ITVETrigger_INTERFACE_DEFINED__ -#define __ITVETrigger_INTERFACE_DEFINED__ - -/* interface ITVETrigger */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVETrigger; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500101-FAA5-4df9-8246-BFC23AC5CEA8") - ITVETrigger : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Parent( - /* [retval][out] */ IUnknown **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Service( - /* [retval][out] */ ITVEService **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsValid( - /* [retval][out] */ VARIANT_BOOL *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_URL( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Expires( - /* [retval][out] */ DATE *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Executes( - /* [retval][out] */ DATE *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Script( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TVELevel( - /* [retval][out] */ float *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Rest( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ParseTrigger( - /* [in] */ const BSTR rVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVETriggerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVETrigger * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVETrigger * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVETrigger * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVETrigger * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVETrigger * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVETrigger * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVETrigger * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( - ITVETrigger * This, - /* [retval][out] */ IUnknown **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Service )( - ITVETrigger * This, - /* [retval][out] */ ITVEService **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsValid )( - ITVETrigger * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_URL )( - ITVETrigger * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - ITVETrigger * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Expires )( - ITVETrigger * This, - /* [retval][out] */ DATE *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Executes )( - ITVETrigger * This, - /* [retval][out] */ DATE *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Script )( - ITVETrigger * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TVELevel )( - ITVETrigger * This, - /* [retval][out] */ float *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rest )( - ITVETrigger * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ParseTrigger )( - ITVETrigger * This, - /* [in] */ const BSTR rVal); - - END_INTERFACE - } ITVETriggerVtbl; - - interface ITVETrigger - { - CONST_VTBL struct ITVETriggerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVETrigger_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVETrigger_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVETrigger_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVETrigger_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVETrigger_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVETrigger_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVETrigger_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVETrigger_get_Parent(This,pVal) \ - (This)->lpVtbl -> get_Parent(This,pVal) - -#define ITVETrigger_get_Service(This,pVal) \ - (This)->lpVtbl -> get_Service(This,pVal) - -#define ITVETrigger_get_IsValid(This,pVal) \ - (This)->lpVtbl -> get_IsValid(This,pVal) - -#define ITVETrigger_get_URL(This,pVal) \ - (This)->lpVtbl -> get_URL(This,pVal) - -#define ITVETrigger_get_Name(This,pVal) \ - (This)->lpVtbl -> get_Name(This,pVal) - -#define ITVETrigger_get_Expires(This,pVal) \ - (This)->lpVtbl -> get_Expires(This,pVal) - -#define ITVETrigger_get_Executes(This,pVal) \ - (This)->lpVtbl -> get_Executes(This,pVal) - -#define ITVETrigger_get_Script(This,pVal) \ - (This)->lpVtbl -> get_Script(This,pVal) - -#define ITVETrigger_get_TVELevel(This,pVal) \ - (This)->lpVtbl -> get_TVELevel(This,pVal) - -#define ITVETrigger_get_Rest(This,pVal) \ - (This)->lpVtbl -> get_Rest(This,pVal) - -#define ITVETrigger_ParseTrigger(This,rVal) \ - (This)->lpVtbl -> ParseTrigger(This,rVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrigger_get_Parent_Proxy( - ITVETrigger * This, - /* [retval][out] */ IUnknown **pVal); - - -void __RPC_STUB ITVETrigger_get_Parent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrigger_get_Service_Proxy( - ITVETrigger * This, - /* [retval][out] */ ITVEService **pVal); - - -void __RPC_STUB ITVETrigger_get_Service_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrigger_get_IsValid_Proxy( - ITVETrigger * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - -void __RPC_STUB ITVETrigger_get_IsValid_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrigger_get_URL_Proxy( - ITVETrigger * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVETrigger_get_URL_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrigger_get_Name_Proxy( - ITVETrigger * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVETrigger_get_Name_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrigger_get_Expires_Proxy( - ITVETrigger * This, - /* [retval][out] */ DATE *pVal); - - -void __RPC_STUB ITVETrigger_get_Expires_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrigger_get_Executes_Proxy( - ITVETrigger * This, - /* [retval][out] */ DATE *pVal); - - -void __RPC_STUB ITVETrigger_get_Executes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrigger_get_Script_Proxy( - ITVETrigger * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVETrigger_get_Script_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrigger_get_TVELevel_Proxy( - ITVETrigger * This, - /* [retval][out] */ float *pVal); - - -void __RPC_STUB ITVETrigger_get_TVELevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrigger_get_Rest_Proxy( - ITVETrigger * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVETrigger_get_Rest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETrigger_ParseTrigger_Proxy( - ITVETrigger * This, - /* [in] */ const BSTR rVal); - - -void __RPC_STUB ITVETrigger_ParseTrigger_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVETrigger_INTERFACE_DEFINED__ */ - - -#ifndef __ITVETrigger_Helper_INTERFACE_DEFINED__ -#define __ITVETrigger_Helper_INTERFACE_DEFINED__ - -/* interface ITVETrigger_Helper */ -/* [unique][helpstring][hidden][uuid][object] */ - - -EXTERN_C const IID IID_ITVETrigger_Helper; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500201-FAA5-4df9-8246-BFC23AC5CEA8") - ITVETrigger_Helper : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ConnectParent( - /* [in] */ ITVETrack *pTrack) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CRC( - /* [in] */ const BSTR rVal, - /* [retval][out] */ BSTR *pbstrCRC) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UpdateFrom( - /* [in] */ ITVETrigger *pTrigger, - /* [out] */ long *plgrfTRKChanged) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveYourself( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DumpToBSTR( - /* [out] */ BSTR *pbstrBuff) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVETrigger_HelperVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVETrigger_Helper * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVETrigger_Helper * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVETrigger_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectParent )( - ITVETrigger_Helper * This, - /* [in] */ ITVETrack *pTrack); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CRC )( - ITVETrigger_Helper * This, - /* [in] */ const BSTR rVal, - /* [retval][out] */ BSTR *pbstrCRC); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateFrom )( - ITVETrigger_Helper * This, - /* [in] */ ITVETrigger *pTrigger, - /* [out] */ long *plgrfTRKChanged); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveYourself )( - ITVETrigger_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DumpToBSTR )( - ITVETrigger_Helper * This, - /* [out] */ BSTR *pbstrBuff); - - END_INTERFACE - } ITVETrigger_HelperVtbl; - - interface ITVETrigger_Helper - { - CONST_VTBL struct ITVETrigger_HelperVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVETrigger_Helper_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVETrigger_Helper_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVETrigger_Helper_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVETrigger_Helper_ConnectParent(This,pTrack) \ - (This)->lpVtbl -> ConnectParent(This,pTrack) - -#define ITVETrigger_Helper_get_CRC(This,rVal,pbstrCRC) \ - (This)->lpVtbl -> get_CRC(This,rVal,pbstrCRC) - -#define ITVETrigger_Helper_UpdateFrom(This,pTrigger,plgrfTRKChanged) \ - (This)->lpVtbl -> UpdateFrom(This,pTrigger,plgrfTRKChanged) - -#define ITVETrigger_Helper_RemoveYourself(This) \ - (This)->lpVtbl -> RemoveYourself(This) - -#define ITVETrigger_Helper_DumpToBSTR(This,pbstrBuff) \ - (This)->lpVtbl -> DumpToBSTR(This,pbstrBuff) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETrigger_Helper_ConnectParent_Proxy( - ITVETrigger_Helper * This, - /* [in] */ ITVETrack *pTrack); - - -void __RPC_STUB ITVETrigger_Helper_ConnectParent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrigger_Helper_get_CRC_Proxy( - ITVETrigger_Helper * This, - /* [in] */ const BSTR rVal, - /* [retval][out] */ BSTR *pbstrCRC); - - -void __RPC_STUB ITVETrigger_Helper_get_CRC_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETrigger_Helper_UpdateFrom_Proxy( - ITVETrigger_Helper * This, - /* [in] */ ITVETrigger *pTrigger, - /* [out] */ long *plgrfTRKChanged); - - -void __RPC_STUB ITVETrigger_Helper_UpdateFrom_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETrigger_Helper_RemoveYourself_Proxy( - ITVETrigger_Helper * This); - - -void __RPC_STUB ITVETrigger_Helper_RemoveYourself_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETrigger_Helper_DumpToBSTR_Proxy( - ITVETrigger_Helper * This, - /* [out] */ BSTR *pbstrBuff); - - -void __RPC_STUB ITVETrigger_Helper_DumpToBSTR_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVETrigger_Helper_INTERFACE_DEFINED__ */ - - -#ifndef __ITVETrack_INTERFACE_DEFINED__ -#define __ITVETrack_INTERFACE_DEFINED__ - -/* interface ITVETrack */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVETrack; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500102-FAA5-4df9-8246-BFC23AC5CEA8") - ITVETrack : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Parent( - /* [retval][out] */ IUnknown **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Service( - /* [retval][out] */ ITVEService **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Trigger( - /* [retval][out] */ ITVETrigger **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( - /* [in] */ BSTR newVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AttachTrigger( - /* [in] */ ITVETrigger *pTrigger) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReleaseTrigger( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateTrigger( - /* [in] */ const BSTR bstrDescription) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVETrackVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVETrack * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVETrack * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVETrack * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVETrack * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVETrack * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVETrack * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVETrack * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( - ITVETrack * This, - /* [retval][out] */ IUnknown **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Service )( - ITVETrack * This, - /* [retval][out] */ ITVEService **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Trigger )( - ITVETrack * This, - /* [retval][out] */ ITVETrigger **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - ITVETrack * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( - ITVETrack * This, - /* [in] */ BSTR newVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AttachTrigger )( - ITVETrack * This, - /* [in] */ ITVETrigger *pTrigger); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReleaseTrigger )( - ITVETrack * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTrigger )( - ITVETrack * This, - /* [in] */ const BSTR bstrDescription); - - END_INTERFACE - } ITVETrackVtbl; - - interface ITVETrack - { - CONST_VTBL struct ITVETrackVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVETrack_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVETrack_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVETrack_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVETrack_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVETrack_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVETrack_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVETrack_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVETrack_get_Parent(This,pVal) \ - (This)->lpVtbl -> get_Parent(This,pVal) - -#define ITVETrack_get_Service(This,pVal) \ - (This)->lpVtbl -> get_Service(This,pVal) - -#define ITVETrack_get_Trigger(This,pVal) \ - (This)->lpVtbl -> get_Trigger(This,pVal) - -#define ITVETrack_get_Description(This,pVal) \ - (This)->lpVtbl -> get_Description(This,pVal) - -#define ITVETrack_put_Description(This,newVal) \ - (This)->lpVtbl -> put_Description(This,newVal) - -#define ITVETrack_AttachTrigger(This,pTrigger) \ - (This)->lpVtbl -> AttachTrigger(This,pTrigger) - -#define ITVETrack_ReleaseTrigger(This) \ - (This)->lpVtbl -> ReleaseTrigger(This) - -#define ITVETrack_CreateTrigger(This,bstrDescription) \ - (This)->lpVtbl -> CreateTrigger(This,bstrDescription) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrack_get_Parent_Proxy( - ITVETrack * This, - /* [retval][out] */ IUnknown **pVal); - - -void __RPC_STUB ITVETrack_get_Parent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrack_get_Service_Proxy( - ITVETrack * This, - /* [retval][out] */ ITVEService **pVal); - - -void __RPC_STUB ITVETrack_get_Service_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrack_get_Trigger_Proxy( - ITVETrack * This, - /* [retval][out] */ ITVETrigger **pVal); - - -void __RPC_STUB ITVETrack_get_Trigger_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETrack_get_Description_Proxy( - ITVETrack * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVETrack_get_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVETrack_put_Description_Proxy( - ITVETrack * This, - /* [in] */ BSTR newVal); - - -void __RPC_STUB ITVETrack_put_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETrack_AttachTrigger_Proxy( - ITVETrack * This, - /* [in] */ ITVETrigger *pTrigger); - - -void __RPC_STUB ITVETrack_AttachTrigger_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETrack_ReleaseTrigger_Proxy( - ITVETrack * This); - - -void __RPC_STUB ITVETrack_ReleaseTrigger_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETrack_CreateTrigger_Proxy( - ITVETrack * This, - /* [in] */ const BSTR bstrDescription); - - -void __RPC_STUB ITVETrack_CreateTrigger_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVETrack_INTERFACE_DEFINED__ */ - - -#ifndef __ITVETrack_Helper_INTERFACE_DEFINED__ -#define __ITVETrack_Helper_INTERFACE_DEFINED__ - -/* interface ITVETrack_Helper */ -/* [unique][helpstring][hidden][uuid][object] */ - - -EXTERN_C const IID IID_ITVETrack_Helper; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500202-FAA5-4df9-8246-BFC23AC5CEA8") - ITVETrack_Helper : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ConnectParent( - ITVEVariation *pVariation) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveYourself( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DumpToBSTR( - /* [out] */ BSTR *pbstrBuff) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVETrack_HelperVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVETrack_Helper * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVETrack_Helper * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVETrack_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectParent )( - ITVETrack_Helper * This, - ITVEVariation *pVariation); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveYourself )( - ITVETrack_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DumpToBSTR )( - ITVETrack_Helper * This, - /* [out] */ BSTR *pbstrBuff); - - END_INTERFACE - } ITVETrack_HelperVtbl; - - interface ITVETrack_Helper - { - CONST_VTBL struct ITVETrack_HelperVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVETrack_Helper_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVETrack_Helper_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVETrack_Helper_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVETrack_Helper_ConnectParent(This,pVariation) \ - (This)->lpVtbl -> ConnectParent(This,pVariation) - -#define ITVETrack_Helper_RemoveYourself(This) \ - (This)->lpVtbl -> RemoveYourself(This) - -#define ITVETrack_Helper_DumpToBSTR(This,pbstrBuff) \ - (This)->lpVtbl -> DumpToBSTR(This,pbstrBuff) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETrack_Helper_ConnectParent_Proxy( - ITVETrack_Helper * This, - ITVEVariation *pVariation); - - -void __RPC_STUB ITVETrack_Helper_ConnectParent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETrack_Helper_RemoveYourself_Proxy( - ITVETrack_Helper * This); - - -void __RPC_STUB ITVETrack_Helper_RemoveYourself_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETrack_Helper_DumpToBSTR_Proxy( - ITVETrack_Helper * This, - /* [out] */ BSTR *pbstrBuff); - - -void __RPC_STUB ITVETrack_Helper_DumpToBSTR_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVETrack_Helper_INTERFACE_DEFINED__ */ - - -#ifndef __ITVETracks_INTERFACE_DEFINED__ -#define __ITVETracks_INTERFACE_DEFINED__ - -/* interface ITVETracks */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVETracks; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500112-FAA5-4df9-8246-BFC23AC5CEA8") - ITVETracks : public IDispatch - { - public: - virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **pCollection) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT var, - /* [retval][out] */ ITVETrack **pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ ITVETrack *pTrack) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT var) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveAll( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Insert( - /* [in] */ int iLoc, - /* [in] */ ITVETrack *pTrack) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVETracksVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVETracks * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVETracks * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVETracks * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVETracks * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVETracks * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVETracks * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVETracks * 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); - - /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ITVETracks * This, - /* [retval][out] */ IUnknown **pCollection); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ITVETracks * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ITVETracks * This, - /* [in] */ VARIANT var, - /* [retval][out] */ ITVETrack **pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - ITVETracks * This, - /* [in] */ ITVETrack *pTrack); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - ITVETracks * This, - /* [in] */ VARIANT var); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveAll )( - ITVETracks * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Insert )( - ITVETracks * This, - /* [in] */ int iLoc, - /* [in] */ ITVETrack *pTrack); - - END_INTERFACE - } ITVETracksVtbl; - - interface ITVETracks - { - CONST_VTBL struct ITVETracksVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVETracks_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVETracks_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVETracks_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVETracks_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVETracks_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVETracks_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVETracks_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVETracks_get__NewEnum(This,pCollection) \ - (This)->lpVtbl -> get__NewEnum(This,pCollection) - -#define ITVETracks_get_Count(This,pVal) \ - (This)->lpVtbl -> get_Count(This,pVal) - -#define ITVETracks_get_Item(This,var,pVal) \ - (This)->lpVtbl -> get_Item(This,var,pVal) - -#define ITVETracks_Add(This,pTrack) \ - (This)->lpVtbl -> Add(This,pTrack) - -#define ITVETracks_Remove(This,var) \ - (This)->lpVtbl -> Remove(This,var) - -#define ITVETracks_RemoveAll(This) \ - (This)->lpVtbl -> RemoveAll(This) - -#define ITVETracks_Insert(This,iLoc,pTrack) \ - (This)->lpVtbl -> Insert(This,iLoc,pTrack) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETracks_get__NewEnum_Proxy( - ITVETracks * This, - /* [retval][out] */ IUnknown **pCollection); - - -void __RPC_STUB ITVETracks_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETracks_get_Count_Proxy( - ITVETracks * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB ITVETracks_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVETracks_get_Item_Proxy( - ITVETracks * This, - /* [in] */ VARIANT var, - /* [retval][out] */ ITVETrack **pVal); - - -void __RPC_STUB ITVETracks_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETracks_Add_Proxy( - ITVETracks * This, - /* [in] */ ITVETrack *pTrack); - - -void __RPC_STUB ITVETracks_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETracks_Remove_Proxy( - ITVETracks * This, - /* [in] */ VARIANT var); - - -void __RPC_STUB ITVETracks_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETracks_RemoveAll_Proxy( - ITVETracks * This); - - -void __RPC_STUB ITVETracks_RemoveAll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVETracks_Insert_Proxy( - ITVETracks * This, - /* [in] */ int iLoc, - /* [in] */ ITVETrack *pTrack); - - -void __RPC_STUB ITVETracks_Insert_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVETracks_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEVariation_INTERFACE_DEFINED__ -#define __ITVEVariation_INTERFACE_DEFINED__ - -/* interface ITVEVariation */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEVariation; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500103-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEVariation : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Parent( - /* [retval][out] */ IUnknown **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Service( - /* [retval][out] */ ITVEService **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Tracks( - /* [retval][out] */ ITVETracks **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( - /* [in] */ BSTR newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsValid( - /* [retval][out] */ VARIANT_BOOL *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MediaName( - /* [retval][out] */ BSTR *newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MediaTitle( - /* [retval][out] */ BSTR *newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FileIPAdapter( - /* [retval][out] */ BSTR *newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FileIPAddress( - /* [retval][out] */ BSTR *newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FilePort( - /* [retval][out] */ LONG *lPort) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TriggerIPAdapter( - /* [retval][out] */ BSTR *newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TriggerIPAddress( - /* [retval][out] */ BSTR *newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TriggerPort( - /* [retval][out] */ LONG *lPort) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Languages( - /* [retval][out] */ ITVEAttrMap **ppVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SDPLanguages( - /* [retval][out] */ ITVEAttrMap **ppVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Bandwidth( - /* [retval][out] */ LONG *lVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BandwidthInfo( - /* [retval][out] */ BSTR *newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Attributes( - /* [retval][out] */ ITVEAttrMap **ppVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Rest( - /* [retval][out] */ ITVEAttrMap **ppVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Initialize( - /* [in] */ BSTR newVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEVariationVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEVariation * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEVariation * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEVariation * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEVariation * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEVariation * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEVariation * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEVariation * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( - ITVEVariation * This, - /* [retval][out] */ IUnknown **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Service )( - ITVEVariation * This, - /* [retval][out] */ ITVEService **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tracks )( - ITVEVariation * This, - /* [retval][out] */ ITVETracks **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - ITVEVariation * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( - ITVEVariation * This, - /* [in] */ BSTR newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsValid )( - ITVEVariation * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaName )( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaTitle )( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileIPAdapter )( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileIPAddress )( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FilePort )( - ITVEVariation * This, - /* [retval][out] */ LONG *lPort); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TriggerIPAdapter )( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TriggerIPAddress )( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TriggerPort )( - ITVEVariation * This, - /* [retval][out] */ LONG *lPort); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Languages )( - ITVEVariation * This, - /* [retval][out] */ ITVEAttrMap **ppVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SDPLanguages )( - ITVEVariation * This, - /* [retval][out] */ ITVEAttrMap **ppVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Bandwidth )( - ITVEVariation * This, - /* [retval][out] */ LONG *lVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BandwidthInfo )( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( - ITVEVariation * This, - /* [retval][out] */ ITVEAttrMap **ppVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rest )( - ITVEVariation * This, - /* [retval][out] */ ITVEAttrMap **ppVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( - ITVEVariation * This, - /* [in] */ BSTR newVal); - - END_INTERFACE - } ITVEVariationVtbl; - - interface ITVEVariation - { - CONST_VTBL struct ITVEVariationVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEVariation_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEVariation_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEVariation_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEVariation_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEVariation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEVariation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEVariation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEVariation_get_Parent(This,pVal) \ - (This)->lpVtbl -> get_Parent(This,pVal) - -#define ITVEVariation_get_Service(This,pVal) \ - (This)->lpVtbl -> get_Service(This,pVal) - -#define ITVEVariation_get_Tracks(This,pVal) \ - (This)->lpVtbl -> get_Tracks(This,pVal) - -#define ITVEVariation_get_Description(This,pVal) \ - (This)->lpVtbl -> get_Description(This,pVal) - -#define ITVEVariation_put_Description(This,newVal) \ - (This)->lpVtbl -> put_Description(This,newVal) - -#define ITVEVariation_get_IsValid(This,pVal) \ - (This)->lpVtbl -> get_IsValid(This,pVal) - -#define ITVEVariation_get_MediaName(This,newVal) \ - (This)->lpVtbl -> get_MediaName(This,newVal) - -#define ITVEVariation_get_MediaTitle(This,newVal) \ - (This)->lpVtbl -> get_MediaTitle(This,newVal) - -#define ITVEVariation_get_FileIPAdapter(This,newVal) \ - (This)->lpVtbl -> get_FileIPAdapter(This,newVal) - -#define ITVEVariation_get_FileIPAddress(This,newVal) \ - (This)->lpVtbl -> get_FileIPAddress(This,newVal) - -#define ITVEVariation_get_FilePort(This,lPort) \ - (This)->lpVtbl -> get_FilePort(This,lPort) - -#define ITVEVariation_get_TriggerIPAdapter(This,newVal) \ - (This)->lpVtbl -> get_TriggerIPAdapter(This,newVal) - -#define ITVEVariation_get_TriggerIPAddress(This,newVal) \ - (This)->lpVtbl -> get_TriggerIPAddress(This,newVal) - -#define ITVEVariation_get_TriggerPort(This,lPort) \ - (This)->lpVtbl -> get_TriggerPort(This,lPort) - -#define ITVEVariation_get_Languages(This,ppVal) \ - (This)->lpVtbl -> get_Languages(This,ppVal) - -#define ITVEVariation_get_SDPLanguages(This,ppVal) \ - (This)->lpVtbl -> get_SDPLanguages(This,ppVal) - -#define ITVEVariation_get_Bandwidth(This,lVal) \ - (This)->lpVtbl -> get_Bandwidth(This,lVal) - -#define ITVEVariation_get_BandwidthInfo(This,newVal) \ - (This)->lpVtbl -> get_BandwidthInfo(This,newVal) - -#define ITVEVariation_get_Attributes(This,ppVal) \ - (This)->lpVtbl -> get_Attributes(This,ppVal) - -#define ITVEVariation_get_Rest(This,ppVal) \ - (This)->lpVtbl -> get_Rest(This,ppVal) - -#define ITVEVariation_Initialize(This,newVal) \ - (This)->lpVtbl -> Initialize(This,newVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_Parent_Proxy( - ITVEVariation * This, - /* [retval][out] */ IUnknown **pVal); - - -void __RPC_STUB ITVEVariation_get_Parent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_Service_Proxy( - ITVEVariation * This, - /* [retval][out] */ ITVEService **pVal); - - -void __RPC_STUB ITVEVariation_get_Service_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_Tracks_Proxy( - ITVEVariation * This, - /* [retval][out] */ ITVETracks **pVal); - - -void __RPC_STUB ITVEVariation_get_Tracks_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_Description_Proxy( - ITVEVariation * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEVariation_get_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEVariation_put_Description_Proxy( - ITVEVariation * This, - /* [in] */ BSTR newVal); - - -void __RPC_STUB ITVEVariation_put_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_IsValid_Proxy( - ITVEVariation * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - -void __RPC_STUB ITVEVariation_get_IsValid_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_MediaName_Proxy( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - -void __RPC_STUB ITVEVariation_get_MediaName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_MediaTitle_Proxy( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - -void __RPC_STUB ITVEVariation_get_MediaTitle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_FileIPAdapter_Proxy( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - -void __RPC_STUB ITVEVariation_get_FileIPAdapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_FileIPAddress_Proxy( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - -void __RPC_STUB ITVEVariation_get_FileIPAddress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_FilePort_Proxy( - ITVEVariation * This, - /* [retval][out] */ LONG *lPort); - - -void __RPC_STUB ITVEVariation_get_FilePort_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_TriggerIPAdapter_Proxy( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - -void __RPC_STUB ITVEVariation_get_TriggerIPAdapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_TriggerIPAddress_Proxy( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - -void __RPC_STUB ITVEVariation_get_TriggerIPAddress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_TriggerPort_Proxy( - ITVEVariation * This, - /* [retval][out] */ LONG *lPort); - - -void __RPC_STUB ITVEVariation_get_TriggerPort_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_Languages_Proxy( - ITVEVariation * This, - /* [retval][out] */ ITVEAttrMap **ppVal); - - -void __RPC_STUB ITVEVariation_get_Languages_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_SDPLanguages_Proxy( - ITVEVariation * This, - /* [retval][out] */ ITVEAttrMap **ppVal); - - -void __RPC_STUB ITVEVariation_get_SDPLanguages_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_Bandwidth_Proxy( - ITVEVariation * This, - /* [retval][out] */ LONG *lVal); - - -void __RPC_STUB ITVEVariation_get_Bandwidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_BandwidthInfo_Proxy( - ITVEVariation * This, - /* [retval][out] */ BSTR *newVal); - - -void __RPC_STUB ITVEVariation_get_BandwidthInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_Attributes_Proxy( - ITVEVariation * This, - /* [retval][out] */ ITVEAttrMap **ppVal); - - -void __RPC_STUB ITVEVariation_get_Attributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariation_get_Rest_Proxy( - ITVEVariation * This, - /* [retval][out] */ ITVEAttrMap **ppVal); - - -void __RPC_STUB ITVEVariation_get_Rest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Initialize_Proxy( - ITVEVariation * This, - /* [in] */ BSTR newVal); - - -void __RPC_STUB ITVEVariation_Initialize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEVariation_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEVariation_Helper_INTERFACE_DEFINED__ -#define __ITVEVariation_Helper_INTERFACE_DEFINED__ - -/* interface ITVEVariation_Helper */ -/* [unique][helpstring][hidden][uuid][object] */ - - -EXTERN_C const IID IID_ITVEVariation_Helper; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500203-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEVariation_Helper : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ConnectParent( - /* [in] */ ITVEEnhancement *pEnhancement) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DefaultTo( - /* [in] */ ITVEVariation *pVariationBase) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetTriggerIPAdapter( - /* [in] */ BSTR bstrBuff) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetFileIPAdapter( - /* [in] */ BSTR bstrBuff) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SubParseSDP( - const BSTR *pbstrSDP, - BOOL *pfMissingMedia) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ParseCBTrigger( - BSTR bstrTrig) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE FinalParseSDP( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UpdateVariation( - ITVEVariation *pVarNew, - long *plNVAR_grfChanged) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitAsXOver( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NewXOverLink( - /* [in] */ BSTR bstrLine21Trigger) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveYourself( void) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MediaTitle( - /* [in] */ BSTR bstrBuff) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_IsValid( - /* [in] */ VARIANT_BOOL fValid) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DumpToBSTR( - /* [out] */ BSTR *bstrBuff) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEVariation_HelperVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEVariation_Helper * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEVariation_Helper * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEVariation_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectParent )( - ITVEVariation_Helper * This, - /* [in] */ ITVEEnhancement *pEnhancement); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DefaultTo )( - ITVEVariation_Helper * This, - /* [in] */ ITVEVariation *pVariationBase); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetTriggerIPAdapter )( - ITVEVariation_Helper * This, - /* [in] */ BSTR bstrBuff); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetFileIPAdapter )( - ITVEVariation_Helper * This, - /* [in] */ BSTR bstrBuff); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SubParseSDP )( - ITVEVariation_Helper * This, - const BSTR *pbstrSDP, - BOOL *pfMissingMedia); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ParseCBTrigger )( - ITVEVariation_Helper * This, - BSTR bstrTrig); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FinalParseSDP )( - ITVEVariation_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateVariation )( - ITVEVariation_Helper * This, - ITVEVariation *pVarNew, - long *plNVAR_grfChanged); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitAsXOver )( - ITVEVariation_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NewXOverLink )( - ITVEVariation_Helper * This, - /* [in] */ BSTR bstrLine21Trigger); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveYourself )( - ITVEVariation_Helper * This); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaTitle )( - ITVEVariation_Helper * This, - /* [in] */ BSTR bstrBuff); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsValid )( - ITVEVariation_Helper * This, - /* [in] */ VARIANT_BOOL fValid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DumpToBSTR )( - ITVEVariation_Helper * This, - /* [out] */ BSTR *bstrBuff); - - END_INTERFACE - } ITVEVariation_HelperVtbl; - - interface ITVEVariation_Helper - { - CONST_VTBL struct ITVEVariation_HelperVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEVariation_Helper_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEVariation_Helper_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEVariation_Helper_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEVariation_Helper_ConnectParent(This,pEnhancement) \ - (This)->lpVtbl -> ConnectParent(This,pEnhancement) - -#define ITVEVariation_Helper_DefaultTo(This,pVariationBase) \ - (This)->lpVtbl -> DefaultTo(This,pVariationBase) - -#define ITVEVariation_Helper_SetTriggerIPAdapter(This,bstrBuff) \ - (This)->lpVtbl -> SetTriggerIPAdapter(This,bstrBuff) - -#define ITVEVariation_Helper_SetFileIPAdapter(This,bstrBuff) \ - (This)->lpVtbl -> SetFileIPAdapter(This,bstrBuff) - -#define ITVEVariation_Helper_SubParseSDP(This,pbstrSDP,pfMissingMedia) \ - (This)->lpVtbl -> SubParseSDP(This,pbstrSDP,pfMissingMedia) - -#define ITVEVariation_Helper_ParseCBTrigger(This,bstrTrig) \ - (This)->lpVtbl -> ParseCBTrigger(This,bstrTrig) - -#define ITVEVariation_Helper_FinalParseSDP(This) \ - (This)->lpVtbl -> FinalParseSDP(This) - -#define ITVEVariation_Helper_UpdateVariation(This,pVarNew,plNVAR_grfChanged) \ - (This)->lpVtbl -> UpdateVariation(This,pVarNew,plNVAR_grfChanged) - -#define ITVEVariation_Helper_InitAsXOver(This) \ - (This)->lpVtbl -> InitAsXOver(This) - -#define ITVEVariation_Helper_NewXOverLink(This,bstrLine21Trigger) \ - (This)->lpVtbl -> NewXOverLink(This,bstrLine21Trigger) - -#define ITVEVariation_Helper_RemoveYourself(This) \ - (This)->lpVtbl -> RemoveYourself(This) - -#define ITVEVariation_Helper_put_MediaTitle(This,bstrBuff) \ - (This)->lpVtbl -> put_MediaTitle(This,bstrBuff) - -#define ITVEVariation_Helper_put_IsValid(This,fValid) \ - (This)->lpVtbl -> put_IsValid(This,fValid) - -#define ITVEVariation_Helper_DumpToBSTR(This,bstrBuff) \ - (This)->lpVtbl -> DumpToBSTR(This,bstrBuff) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_ConnectParent_Proxy( - ITVEVariation_Helper * This, - /* [in] */ ITVEEnhancement *pEnhancement); - - -void __RPC_STUB ITVEVariation_Helper_ConnectParent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_DefaultTo_Proxy( - ITVEVariation_Helper * This, - /* [in] */ ITVEVariation *pVariationBase); - - -void __RPC_STUB ITVEVariation_Helper_DefaultTo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_SetTriggerIPAdapter_Proxy( - ITVEVariation_Helper * This, - /* [in] */ BSTR bstrBuff); - - -void __RPC_STUB ITVEVariation_Helper_SetTriggerIPAdapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_SetFileIPAdapter_Proxy( - ITVEVariation_Helper * This, - /* [in] */ BSTR bstrBuff); - - -void __RPC_STUB ITVEVariation_Helper_SetFileIPAdapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_SubParseSDP_Proxy( - ITVEVariation_Helper * This, - const BSTR *pbstrSDP, - BOOL *pfMissingMedia); - - -void __RPC_STUB ITVEVariation_Helper_SubParseSDP_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_ParseCBTrigger_Proxy( - ITVEVariation_Helper * This, - BSTR bstrTrig); - - -void __RPC_STUB ITVEVariation_Helper_ParseCBTrigger_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_FinalParseSDP_Proxy( - ITVEVariation_Helper * This); - - -void __RPC_STUB ITVEVariation_Helper_FinalParseSDP_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_UpdateVariation_Proxy( - ITVEVariation_Helper * This, - ITVEVariation *pVarNew, - long *plNVAR_grfChanged); - - -void __RPC_STUB ITVEVariation_Helper_UpdateVariation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_InitAsXOver_Proxy( - ITVEVariation_Helper * This); - - -void __RPC_STUB ITVEVariation_Helper_InitAsXOver_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_NewXOverLink_Proxy( - ITVEVariation_Helper * This, - /* [in] */ BSTR bstrLine21Trigger); - - -void __RPC_STUB ITVEVariation_Helper_NewXOverLink_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_RemoveYourself_Proxy( - ITVEVariation_Helper * This); - - -void __RPC_STUB ITVEVariation_Helper_RemoveYourself_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_put_MediaTitle_Proxy( - ITVEVariation_Helper * This, - /* [in] */ BSTR bstrBuff); - - -void __RPC_STUB ITVEVariation_Helper_put_MediaTitle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_put_IsValid_Proxy( - ITVEVariation_Helper * This, - /* [in] */ VARIANT_BOOL fValid); - - -void __RPC_STUB ITVEVariation_Helper_put_IsValid_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariation_Helper_DumpToBSTR_Proxy( - ITVEVariation_Helper * This, - /* [out] */ BSTR *bstrBuff); - - -void __RPC_STUB ITVEVariation_Helper_DumpToBSTR_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEVariation_Helper_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEVariations_INTERFACE_DEFINED__ -#define __ITVEVariations_INTERFACE_DEFINED__ - -/* interface ITVEVariations */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEVariations; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500113-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEVariations : public IDispatch - { - public: - virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **pCollection) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT var, - /* [retval][out] */ ITVEVariation **pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ ITVEVariation *pEnh) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT var) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveAll( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Insert( - /* [in] */ int iLoc, - /* [in] */ ITVEVariation *pEnh) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEVariationsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEVariations * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEVariations * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEVariations * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEVariations * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEVariations * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEVariations * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEVariations * 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); - - /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ITVEVariations * This, - /* [retval][out] */ IUnknown **pCollection); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ITVEVariations * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ITVEVariations * This, - /* [in] */ VARIANT var, - /* [retval][out] */ ITVEVariation **pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - ITVEVariations * This, - /* [in] */ ITVEVariation *pEnh); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - ITVEVariations * This, - /* [in] */ VARIANT var); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveAll )( - ITVEVariations * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Insert )( - ITVEVariations * This, - /* [in] */ int iLoc, - /* [in] */ ITVEVariation *pEnh); - - END_INTERFACE - } ITVEVariationsVtbl; - - interface ITVEVariations - { - CONST_VTBL struct ITVEVariationsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEVariations_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEVariations_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEVariations_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEVariations_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEVariations_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEVariations_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEVariations_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEVariations_get__NewEnum(This,pCollection) \ - (This)->lpVtbl -> get__NewEnum(This,pCollection) - -#define ITVEVariations_get_Count(This,pVal) \ - (This)->lpVtbl -> get_Count(This,pVal) - -#define ITVEVariations_get_Item(This,var,pVal) \ - (This)->lpVtbl -> get_Item(This,var,pVal) - -#define ITVEVariations_Add(This,pEnh) \ - (This)->lpVtbl -> Add(This,pEnh) - -#define ITVEVariations_Remove(This,var) \ - (This)->lpVtbl -> Remove(This,var) - -#define ITVEVariations_RemoveAll(This) \ - (This)->lpVtbl -> RemoveAll(This) - -#define ITVEVariations_Insert(This,iLoc,pEnh) \ - (This)->lpVtbl -> Insert(This,iLoc,pEnh) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariations_get__NewEnum_Proxy( - ITVEVariations * This, - /* [retval][out] */ IUnknown **pCollection); - - -void __RPC_STUB ITVEVariations_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariations_get_Count_Proxy( - ITVEVariations * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB ITVEVariations_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEVariations_get_Item_Proxy( - ITVEVariations * This, - /* [in] */ VARIANT var, - /* [retval][out] */ ITVEVariation **pVal); - - -void __RPC_STUB ITVEVariations_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariations_Add_Proxy( - ITVEVariations * This, - /* [in] */ ITVEVariation *pEnh); - - -void __RPC_STUB ITVEVariations_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariations_Remove_Proxy( - ITVEVariations * This, - /* [in] */ VARIANT var); - - -void __RPC_STUB ITVEVariations_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariations_RemoveAll_Proxy( - ITVEVariations * This); - - -void __RPC_STUB ITVEVariations_RemoveAll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEVariations_Insert_Proxy( - ITVEVariations * This, - /* [in] */ int iLoc, - /* [in] */ ITVEVariation *pEnh); - - -void __RPC_STUB ITVEVariations_Insert_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEVariations_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEEnhancement_INTERFACE_DEFINED__ -#define __ITVEEnhancement_INTERFACE_DEFINED__ - -/* interface ITVEEnhancement */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEEnhancement; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500104-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEEnhancement : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Parent( - /* [retval][out] */ IUnknown **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Service( - /* [retval][out] */ ITVEService **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Variations( - /* [retval][out] */ ITVEVariations **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsValid( - /* [retval][out] */ VARIANT_BOOL *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProtocolVersion( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SessionUserName( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SessionId( - /* [retval][out] */ LONG *plVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SessionVersion( - /* [retval][out] */ LONG *plVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SessionIPAddress( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SessionName( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EmailAddresses( - /* [retval][out] */ ITVEAttrMap **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PhoneNumbers( - /* [retval][out] */ ITVEAttrMap **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( - /* [in] */ BSTR newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DescriptionURI( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UUID( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartTime( - /* [retval][out] */ DATE *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StopTime( - /* [retval][out] */ DATE *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsPrimary( - /* [retval][out] */ VARIANT_BOOL *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TveType( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TveSize( - /* [retval][out] */ LONG *plVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TveLevel( - /* [retval][out] */ double *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Attributes( - /* [retval][out] */ ITVEAttrMap **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Rest( - /* [retval][out] */ ITVEAttrMap **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SAPHeaderBits( - /* [retval][out] */ short *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SAPAuthLength( - /* [retval][out] */ short *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SAPMsgIDHash( - /* [retval][out] */ LONG *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SAPSendingIP( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SAPAuthData( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ParseAnnouncement( - /* [in] */ BSTR bstrAdapter, - /* [in] */ const BSTR *pbstVal, - /* [out] */ long *plgrfParseError, - /* [out] */ long *plLineError) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEEnhancementVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEEnhancement * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEEnhancement * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEEnhancement * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEEnhancement * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEEnhancement * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEEnhancement * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEEnhancement * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( - ITVEEnhancement * This, - /* [retval][out] */ IUnknown **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Service )( - ITVEEnhancement * This, - /* [retval][out] */ ITVEService **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Variations )( - ITVEEnhancement * This, - /* [retval][out] */ ITVEVariations **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsValid )( - ITVEEnhancement * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProtocolVersion )( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SessionUserName )( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SessionId )( - ITVEEnhancement * This, - /* [retval][out] */ LONG *plVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SessionVersion )( - ITVEEnhancement * This, - /* [retval][out] */ LONG *plVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SessionIPAddress )( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SessionName )( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EmailAddresses )( - ITVEEnhancement * This, - /* [retval][out] */ ITVEAttrMap **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PhoneNumbers )( - ITVEEnhancement * This, - /* [retval][out] */ ITVEAttrMap **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( - ITVEEnhancement * This, - /* [in] */ BSTR newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DescriptionURI )( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UUID )( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartTime )( - ITVEEnhancement * This, - /* [retval][out] */ DATE *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StopTime )( - ITVEEnhancement * This, - /* [retval][out] */ DATE *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsPrimary )( - ITVEEnhancement * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TveType )( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TveSize )( - ITVEEnhancement * This, - /* [retval][out] */ LONG *plVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TveLevel )( - ITVEEnhancement * This, - /* [retval][out] */ double *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( - ITVEEnhancement * This, - /* [retval][out] */ ITVEAttrMap **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rest )( - ITVEEnhancement * This, - /* [retval][out] */ ITVEAttrMap **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SAPHeaderBits )( - ITVEEnhancement * This, - /* [retval][out] */ short *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SAPAuthLength )( - ITVEEnhancement * This, - /* [retval][out] */ short *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SAPMsgIDHash )( - ITVEEnhancement * This, - /* [retval][out] */ LONG *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SAPSendingIP )( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SAPAuthData )( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ParseAnnouncement )( - ITVEEnhancement * This, - /* [in] */ BSTR bstrAdapter, - /* [in] */ const BSTR *pbstVal, - /* [out] */ long *plgrfParseError, - /* [out] */ long *plLineError); - - END_INTERFACE - } ITVEEnhancementVtbl; - - interface ITVEEnhancement - { - CONST_VTBL struct ITVEEnhancementVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEEnhancement_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEEnhancement_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEEnhancement_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEEnhancement_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEEnhancement_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEEnhancement_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEEnhancement_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEEnhancement_get_Parent(This,pVal) \ - (This)->lpVtbl -> get_Parent(This,pVal) - -#define ITVEEnhancement_get_Service(This,pVal) \ - (This)->lpVtbl -> get_Service(This,pVal) - -#define ITVEEnhancement_get_Variations(This,pVal) \ - (This)->lpVtbl -> get_Variations(This,pVal) - -#define ITVEEnhancement_get_IsValid(This,pVal) \ - (This)->lpVtbl -> get_IsValid(This,pVal) - -#define ITVEEnhancement_get_ProtocolVersion(This,pVal) \ - (This)->lpVtbl -> get_ProtocolVersion(This,pVal) - -#define ITVEEnhancement_get_SessionUserName(This,pVal) \ - (This)->lpVtbl -> get_SessionUserName(This,pVal) - -#define ITVEEnhancement_get_SessionId(This,plVal) \ - (This)->lpVtbl -> get_SessionId(This,plVal) - -#define ITVEEnhancement_get_SessionVersion(This,plVal) \ - (This)->lpVtbl -> get_SessionVersion(This,plVal) - -#define ITVEEnhancement_get_SessionIPAddress(This,pVal) \ - (This)->lpVtbl -> get_SessionIPAddress(This,pVal) - -#define ITVEEnhancement_get_SessionName(This,pVal) \ - (This)->lpVtbl -> get_SessionName(This,pVal) - -#define ITVEEnhancement_get_EmailAddresses(This,pVal) \ - (This)->lpVtbl -> get_EmailAddresses(This,pVal) - -#define ITVEEnhancement_get_PhoneNumbers(This,pVal) \ - (This)->lpVtbl -> get_PhoneNumbers(This,pVal) - -#define ITVEEnhancement_get_Description(This,pVal) \ - (This)->lpVtbl -> get_Description(This,pVal) - -#define ITVEEnhancement_put_Description(This,newVal) \ - (This)->lpVtbl -> put_Description(This,newVal) - -#define ITVEEnhancement_get_DescriptionURI(This,pVal) \ - (This)->lpVtbl -> get_DescriptionURI(This,pVal) - -#define ITVEEnhancement_get_UUID(This,pVal) \ - (This)->lpVtbl -> get_UUID(This,pVal) - -#define ITVEEnhancement_get_StartTime(This,pVal) \ - (This)->lpVtbl -> get_StartTime(This,pVal) - -#define ITVEEnhancement_get_StopTime(This,pVal) \ - (This)->lpVtbl -> get_StopTime(This,pVal) - -#define ITVEEnhancement_get_IsPrimary(This,pVal) \ - (This)->lpVtbl -> get_IsPrimary(This,pVal) - -#define ITVEEnhancement_get_Type(This,pVal) \ - (This)->lpVtbl -> get_Type(This,pVal) - -#define ITVEEnhancement_get_TveType(This,pVal) \ - (This)->lpVtbl -> get_TveType(This,pVal) - -#define ITVEEnhancement_get_TveSize(This,plVal) \ - (This)->lpVtbl -> get_TveSize(This,plVal) - -#define ITVEEnhancement_get_TveLevel(This,pVal) \ - (This)->lpVtbl -> get_TveLevel(This,pVal) - -#define ITVEEnhancement_get_Attributes(This,pVal) \ - (This)->lpVtbl -> get_Attributes(This,pVal) - -#define ITVEEnhancement_get_Rest(This,pVal) \ - (This)->lpVtbl -> get_Rest(This,pVal) - -#define ITVEEnhancement_get_SAPHeaderBits(This,pVal) \ - (This)->lpVtbl -> get_SAPHeaderBits(This,pVal) - -#define ITVEEnhancement_get_SAPAuthLength(This,pVal) \ - (This)->lpVtbl -> get_SAPAuthLength(This,pVal) - -#define ITVEEnhancement_get_SAPMsgIDHash(This,pVal) \ - (This)->lpVtbl -> get_SAPMsgIDHash(This,pVal) - -#define ITVEEnhancement_get_SAPSendingIP(This,pVal) \ - (This)->lpVtbl -> get_SAPSendingIP(This,pVal) - -#define ITVEEnhancement_get_SAPAuthData(This,pVal) \ - (This)->lpVtbl -> get_SAPAuthData(This,pVal) - -#define ITVEEnhancement_ParseAnnouncement(This,bstrAdapter,pbstVal,plgrfParseError,plLineError) \ - (This)->lpVtbl -> ParseAnnouncement(This,bstrAdapter,pbstVal,plgrfParseError,plLineError) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_Parent_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ IUnknown **pVal); - - -void __RPC_STUB ITVEEnhancement_get_Parent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_Service_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ ITVEService **pVal); - - -void __RPC_STUB ITVEEnhancement_get_Service_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_Variations_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ ITVEVariations **pVal); - - -void __RPC_STUB ITVEEnhancement_get_Variations_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_IsValid_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - -void __RPC_STUB ITVEEnhancement_get_IsValid_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_ProtocolVersion_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEEnhancement_get_ProtocolVersion_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_SessionUserName_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEEnhancement_get_SessionUserName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_SessionId_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ LONG *plVal); - - -void __RPC_STUB ITVEEnhancement_get_SessionId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_SessionVersion_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ LONG *plVal); - - -void __RPC_STUB ITVEEnhancement_get_SessionVersion_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_SessionIPAddress_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEEnhancement_get_SessionIPAddress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_SessionName_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEEnhancement_get_SessionName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_EmailAddresses_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ ITVEAttrMap **pVal); - - -void __RPC_STUB ITVEEnhancement_get_EmailAddresses_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_PhoneNumbers_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ ITVEAttrMap **pVal); - - -void __RPC_STUB ITVEEnhancement_get_PhoneNumbers_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_Description_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEEnhancement_get_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_put_Description_Proxy( - ITVEEnhancement * This, - /* [in] */ BSTR newVal); - - -void __RPC_STUB ITVEEnhancement_put_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_DescriptionURI_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEEnhancement_get_DescriptionURI_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_UUID_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEEnhancement_get_UUID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_StartTime_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ DATE *pVal); - - -void __RPC_STUB ITVEEnhancement_get_StartTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_StopTime_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ DATE *pVal); - - -void __RPC_STUB ITVEEnhancement_get_StopTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_IsPrimary_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - -void __RPC_STUB ITVEEnhancement_get_IsPrimary_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_Type_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEEnhancement_get_Type_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_TveType_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEEnhancement_get_TveType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_TveSize_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ LONG *plVal); - - -void __RPC_STUB ITVEEnhancement_get_TveSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_TveLevel_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ double *pVal); - - -void __RPC_STUB ITVEEnhancement_get_TveLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_Attributes_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ ITVEAttrMap **pVal); - - -void __RPC_STUB ITVEEnhancement_get_Attributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_Rest_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ ITVEAttrMap **pVal); - - -void __RPC_STUB ITVEEnhancement_get_Rest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_SAPHeaderBits_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ short *pVal); - - -void __RPC_STUB ITVEEnhancement_get_SAPHeaderBits_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_SAPAuthLength_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ short *pVal); - - -void __RPC_STUB ITVEEnhancement_get_SAPAuthLength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_SAPMsgIDHash_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ LONG *pVal); - - -void __RPC_STUB ITVEEnhancement_get_SAPMsgIDHash_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_SAPSendingIP_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEEnhancement_get_SAPSendingIP_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_get_SAPAuthData_Proxy( - ITVEEnhancement * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEEnhancement_get_SAPAuthData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_ParseAnnouncement_Proxy( - ITVEEnhancement * This, - /* [in] */ BSTR bstrAdapter, - /* [in] */ const BSTR *pbstVal, - /* [out] */ long *plgrfParseError, - /* [out] */ long *plLineError); - - -void __RPC_STUB ITVEEnhancement_ParseAnnouncement_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEEnhancement_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEEnhancement_Helper_INTERFACE_DEFINED__ -#define __ITVEEnhancement_Helper_INTERFACE_DEFINED__ - -/* interface ITVEEnhancement_Helper */ -/* [unique][helpstring][hidden][uuid][object] */ - - -EXTERN_C const IID IID_ITVEEnhancement_Helper; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500204-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEEnhancement_Helper : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ConnectParent( - ITVEService *pService) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Activate( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Deactivate( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UpdateEnhancement( - /* [in] */ ITVEEnhancement *pEnhNew, - /* [out] */ long *plNENH_grfChanged) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitAsXOver( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NewXOverLink( - /* [in] */ BSTR bstrLine21Trigger) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveYourself( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DumpToBSTR( - /* [out] */ BSTR *pbstrBuff) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEEnhancement_HelperVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEEnhancement_Helper * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEEnhancement_Helper * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEEnhancement_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectParent )( - ITVEEnhancement_Helper * This, - ITVEService *pService); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Activate )( - ITVEEnhancement_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Deactivate )( - ITVEEnhancement_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateEnhancement )( - ITVEEnhancement_Helper * This, - /* [in] */ ITVEEnhancement *pEnhNew, - /* [out] */ long *plNENH_grfChanged); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitAsXOver )( - ITVEEnhancement_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NewXOverLink )( - ITVEEnhancement_Helper * This, - /* [in] */ BSTR bstrLine21Trigger); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveYourself )( - ITVEEnhancement_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DumpToBSTR )( - ITVEEnhancement_Helper * This, - /* [out] */ BSTR *pbstrBuff); - - END_INTERFACE - } ITVEEnhancement_HelperVtbl; - - interface ITVEEnhancement_Helper - { - CONST_VTBL struct ITVEEnhancement_HelperVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEEnhancement_Helper_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEEnhancement_Helper_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEEnhancement_Helper_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEEnhancement_Helper_ConnectParent(This,pService) \ - (This)->lpVtbl -> ConnectParent(This,pService) - -#define ITVEEnhancement_Helper_Activate(This) \ - (This)->lpVtbl -> Activate(This) - -#define ITVEEnhancement_Helper_Deactivate(This) \ - (This)->lpVtbl -> Deactivate(This) - -#define ITVEEnhancement_Helper_UpdateEnhancement(This,pEnhNew,plNENH_grfChanged) \ - (This)->lpVtbl -> UpdateEnhancement(This,pEnhNew,plNENH_grfChanged) - -#define ITVEEnhancement_Helper_InitAsXOver(This) \ - (This)->lpVtbl -> InitAsXOver(This) - -#define ITVEEnhancement_Helper_NewXOverLink(This,bstrLine21Trigger) \ - (This)->lpVtbl -> NewXOverLink(This,bstrLine21Trigger) - -#define ITVEEnhancement_Helper_RemoveYourself(This) \ - (This)->lpVtbl -> RemoveYourself(This) - -#define ITVEEnhancement_Helper_DumpToBSTR(This,pbstrBuff) \ - (This)->lpVtbl -> DumpToBSTR(This,pbstrBuff) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_Helper_ConnectParent_Proxy( - ITVEEnhancement_Helper * This, - ITVEService *pService); - - -void __RPC_STUB ITVEEnhancement_Helper_ConnectParent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_Helper_Activate_Proxy( - ITVEEnhancement_Helper * This); - - -void __RPC_STUB ITVEEnhancement_Helper_Activate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_Helper_Deactivate_Proxy( - ITVEEnhancement_Helper * This); - - -void __RPC_STUB ITVEEnhancement_Helper_Deactivate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_Helper_UpdateEnhancement_Proxy( - ITVEEnhancement_Helper * This, - /* [in] */ ITVEEnhancement *pEnhNew, - /* [out] */ long *plNENH_grfChanged); - - -void __RPC_STUB ITVEEnhancement_Helper_UpdateEnhancement_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_Helper_InitAsXOver_Proxy( - ITVEEnhancement_Helper * This); - - -void __RPC_STUB ITVEEnhancement_Helper_InitAsXOver_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_Helper_NewXOverLink_Proxy( - ITVEEnhancement_Helper * This, - /* [in] */ BSTR bstrLine21Trigger); - - -void __RPC_STUB ITVEEnhancement_Helper_NewXOverLink_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_Helper_RemoveYourself_Proxy( - ITVEEnhancement_Helper * This); - - -void __RPC_STUB ITVEEnhancement_Helper_RemoveYourself_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancement_Helper_DumpToBSTR_Proxy( - ITVEEnhancement_Helper * This, - /* [out] */ BSTR *pbstrBuff); - - -void __RPC_STUB ITVEEnhancement_Helper_DumpToBSTR_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEEnhancement_Helper_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEEnhancements_INTERFACE_DEFINED__ -#define __ITVEEnhancements_INTERFACE_DEFINED__ - -/* interface ITVEEnhancements */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEEnhancements; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500114-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEEnhancements : public IDispatch - { - public: - virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **pCollection) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT var, - /* [retval][out] */ ITVEEnhancement **pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ ITVEEnhancement *pEnh) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT var) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveAll( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Insert( - /* [in] */ int iLoc, - /* [in] */ ITVEEnhancement *pEnh) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEEnhancementsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEEnhancements * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEEnhancements * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEEnhancements * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEEnhancements * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEEnhancements * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEEnhancements * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEEnhancements * 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); - - /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ITVEEnhancements * This, - /* [retval][out] */ IUnknown **pCollection); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ITVEEnhancements * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ITVEEnhancements * This, - /* [in] */ VARIANT var, - /* [retval][out] */ ITVEEnhancement **pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - ITVEEnhancements * This, - /* [in] */ ITVEEnhancement *pEnh); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - ITVEEnhancements * This, - /* [in] */ VARIANT var); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveAll )( - ITVEEnhancements * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Insert )( - ITVEEnhancements * This, - /* [in] */ int iLoc, - /* [in] */ ITVEEnhancement *pEnh); - - END_INTERFACE - } ITVEEnhancementsVtbl; - - interface ITVEEnhancements - { - CONST_VTBL struct ITVEEnhancementsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEEnhancements_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEEnhancements_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEEnhancements_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEEnhancements_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEEnhancements_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEEnhancements_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEEnhancements_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEEnhancements_get__NewEnum(This,pCollection) \ - (This)->lpVtbl -> get__NewEnum(This,pCollection) - -#define ITVEEnhancements_get_Count(This,pVal) \ - (This)->lpVtbl -> get_Count(This,pVal) - -#define ITVEEnhancements_get_Item(This,var,pVal) \ - (This)->lpVtbl -> get_Item(This,var,pVal) - -#define ITVEEnhancements_Add(This,pEnh) \ - (This)->lpVtbl -> Add(This,pEnh) - -#define ITVEEnhancements_Remove(This,var) \ - (This)->lpVtbl -> Remove(This,var) - -#define ITVEEnhancements_RemoveAll(This) \ - (This)->lpVtbl -> RemoveAll(This) - -#define ITVEEnhancements_Insert(This,iLoc,pEnh) \ - (This)->lpVtbl -> Insert(This,iLoc,pEnh) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancements_get__NewEnum_Proxy( - ITVEEnhancements * This, - /* [retval][out] */ IUnknown **pCollection); - - -void __RPC_STUB ITVEEnhancements_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancements_get_Count_Proxy( - ITVEEnhancements * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB ITVEEnhancements_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEEnhancements_get_Item_Proxy( - ITVEEnhancements * This, - /* [in] */ VARIANT var, - /* [retval][out] */ ITVEEnhancement **pVal); - - -void __RPC_STUB ITVEEnhancements_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancements_Add_Proxy( - ITVEEnhancements * This, - /* [in] */ ITVEEnhancement *pEnh); - - -void __RPC_STUB ITVEEnhancements_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancements_Remove_Proxy( - ITVEEnhancements * This, - /* [in] */ VARIANT var); - - -void __RPC_STUB ITVEEnhancements_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancements_RemoveAll_Proxy( - ITVEEnhancements * This); - - -void __RPC_STUB ITVEEnhancements_RemoveAll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEEnhancements_Insert_Proxy( - ITVEEnhancements * This, - /* [in] */ int iLoc, - /* [in] */ ITVEEnhancement *pEnh); - - -void __RPC_STUB ITVEEnhancements_Insert_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEEnhancements_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEService_INTERFACE_DEFINED__ -#define __ITVEService_INTERFACE_DEFINED__ - -/* interface ITVEService */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEService; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500105-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEService : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Parent( - /* [retval][out] */ IUnknown **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Enhancements( - /* [retval][out] */ ITVEEnhancements **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( - /* [in] */ BSTR newVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Activate( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Deactivate( void) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_XOverLinks( - /* [retval][out] */ ITVETracks **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_XOverEnhancement( - /* [retval][out] */ ITVEEnhancement **pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NewXOverLink( - /* [in] */ BSTR bstrLine21Trigger) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExpireOffset( - /* [retval][out] */ DATE *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ExpireOffset( - /* [in] */ DATE newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExpireQueue( - /* [retval][out] */ ITVEAttrTimeQ **pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExpireForDate( - /* [in] */ DATE dateExpireTime) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsActive( - /* [retval][out] */ VARIANT_BOOL *fIsActive) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Property( - /* [in] */ BSTR bstrPropName, - BSTR bstrPropVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Property( - /* [in] */ BSTR bstrPropName, - /* [retval][out] */ BSTR *pbstrPropVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEServiceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEService * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEService * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEService * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEService * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEService * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEService * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEService * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( - ITVEService * This, - /* [retval][out] */ IUnknown **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enhancements )( - ITVEService * This, - /* [retval][out] */ ITVEEnhancements **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - ITVEService * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( - ITVEService * This, - /* [in] */ BSTR newVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Activate )( - ITVEService * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Deactivate )( - ITVEService * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_XOverLinks )( - ITVEService * This, - /* [retval][out] */ ITVETracks **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_XOverEnhancement )( - ITVEService * This, - /* [retval][out] */ ITVEEnhancement **pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NewXOverLink )( - ITVEService * This, - /* [in] */ BSTR bstrLine21Trigger); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExpireOffset )( - ITVEService * This, - /* [retval][out] */ DATE *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ExpireOffset )( - ITVEService * This, - /* [in] */ DATE newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExpireQueue )( - ITVEService * This, - /* [retval][out] */ ITVEAttrTimeQ **pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExpireForDate )( - ITVEService * This, - /* [in] */ DATE dateExpireTime); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsActive )( - ITVEService * This, - /* [retval][out] */ VARIANT_BOOL *fIsActive); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Property )( - ITVEService * This, - /* [in] */ BSTR bstrPropName, - BSTR bstrPropVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Property )( - ITVEService * This, - /* [in] */ BSTR bstrPropName, - /* [retval][out] */ BSTR *pbstrPropVal); - - END_INTERFACE - } ITVEServiceVtbl; - - interface ITVEService - { - CONST_VTBL struct ITVEServiceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEService_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEService_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEService_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEService_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEService_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEService_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEService_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEService_get_Parent(This,pVal) \ - (This)->lpVtbl -> get_Parent(This,pVal) - -#define ITVEService_get_Enhancements(This,pVal) \ - (This)->lpVtbl -> get_Enhancements(This,pVal) - -#define ITVEService_get_Description(This,pVal) \ - (This)->lpVtbl -> get_Description(This,pVal) - -#define ITVEService_put_Description(This,newVal) \ - (This)->lpVtbl -> put_Description(This,newVal) - -#define ITVEService_Activate(This) \ - (This)->lpVtbl -> Activate(This) - -#define ITVEService_Deactivate(This) \ - (This)->lpVtbl -> Deactivate(This) - -#define ITVEService_get_XOverLinks(This,pVal) \ - (This)->lpVtbl -> get_XOverLinks(This,pVal) - -#define ITVEService_get_XOverEnhancement(This,pVal) \ - (This)->lpVtbl -> get_XOverEnhancement(This,pVal) - -#define ITVEService_NewXOverLink(This,bstrLine21Trigger) \ - (This)->lpVtbl -> NewXOverLink(This,bstrLine21Trigger) - -#define ITVEService_get_ExpireOffset(This,pVal) \ - (This)->lpVtbl -> get_ExpireOffset(This,pVal) - -#define ITVEService_put_ExpireOffset(This,newVal) \ - (This)->lpVtbl -> put_ExpireOffset(This,newVal) - -#define ITVEService_get_ExpireQueue(This,pVal) \ - (This)->lpVtbl -> get_ExpireQueue(This,pVal) - -#define ITVEService_ExpireForDate(This,dateExpireTime) \ - (This)->lpVtbl -> ExpireForDate(This,dateExpireTime) - -#define ITVEService_get_IsActive(This,fIsActive) \ - (This)->lpVtbl -> get_IsActive(This,fIsActive) - -#define ITVEService_put_Property(This,bstrPropName,bstrPropVal) \ - (This)->lpVtbl -> put_Property(This,bstrPropName,bstrPropVal) - -#define ITVEService_get_Property(This,bstrPropName,pbstrPropVal) \ - (This)->lpVtbl -> get_Property(This,bstrPropName,pbstrPropVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEService_get_Parent_Proxy( - ITVEService * This, - /* [retval][out] */ IUnknown **pVal); - - -void __RPC_STUB ITVEService_get_Parent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEService_get_Enhancements_Proxy( - ITVEService * This, - /* [retval][out] */ ITVEEnhancements **pVal); - - -void __RPC_STUB ITVEService_get_Enhancements_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEService_get_Description_Proxy( - ITVEService * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEService_get_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEService_put_Description_Proxy( - ITVEService * This, - /* [in] */ BSTR newVal); - - -void __RPC_STUB ITVEService_put_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Activate_Proxy( - ITVEService * This); - - -void __RPC_STUB ITVEService_Activate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Deactivate_Proxy( - ITVEService * This); - - -void __RPC_STUB ITVEService_Deactivate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEService_get_XOverLinks_Proxy( - ITVEService * This, - /* [retval][out] */ ITVETracks **pVal); - - -void __RPC_STUB ITVEService_get_XOverLinks_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEService_get_XOverEnhancement_Proxy( - ITVEService * This, - /* [retval][out] */ ITVEEnhancement **pVal); - - -void __RPC_STUB ITVEService_get_XOverEnhancement_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_NewXOverLink_Proxy( - ITVEService * This, - /* [in] */ BSTR bstrLine21Trigger); - - -void __RPC_STUB ITVEService_NewXOverLink_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEService_get_ExpireOffset_Proxy( - ITVEService * This, - /* [retval][out] */ DATE *pVal); - - -void __RPC_STUB ITVEService_get_ExpireOffset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEService_put_ExpireOffset_Proxy( - ITVEService * This, - /* [in] */ DATE newVal); - - -void __RPC_STUB ITVEService_put_ExpireOffset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEService_get_ExpireQueue_Proxy( - ITVEService * This, - /* [retval][out] */ ITVEAttrTimeQ **pVal); - - -void __RPC_STUB ITVEService_get_ExpireQueue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_ExpireForDate_Proxy( - ITVEService * This, - /* [in] */ DATE dateExpireTime); - - -void __RPC_STUB ITVEService_ExpireForDate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEService_get_IsActive_Proxy( - ITVEService * This, - /* [retval][out] */ VARIANT_BOOL *fIsActive); - - -void __RPC_STUB ITVEService_get_IsActive_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEService_put_Property_Proxy( - ITVEService * This, - /* [in] */ BSTR bstrPropName, - BSTR bstrPropVal); - - -void __RPC_STUB ITVEService_put_Property_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEService_get_Property_Proxy( - ITVEService * This, - /* [in] */ BSTR bstrPropName, - /* [retval][out] */ BSTR *pbstrPropVal); - - -void __RPC_STUB ITVEService_get_Property_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEService_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEService_Helper_INTERFACE_DEFINED__ -#define __ITVEService_Helper_INTERFACE_DEFINED__ - -/* interface ITVEService_Helper */ -/* [unique][helpstring][hidden][uuid][object] */ - - -EXTERN_C const IID IID_ITVEService_Helper; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500205-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEService_Helper : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ConnectParent( - /* [in] */ ITVESupervisor *pSupervisor) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ParseCBAnnouncement( - /* [in] */ BSTR bstrFileTrigAdapter, - /* [in] */ BSTR *pbstrBuff) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetAnncIPValues( - /* [in] */ BSTR bstrAnncIPAdapter, - /* [in] */ BSTR bstrAnncIPAddress, - /* [in] */ LONG lAnncPort) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetAnncIPValues( - /* [in] */ BSTR *pbstrAnncIPAdapter, - /* [in] */ BSTR *pbstrAnncIPAddress, - /* [in] */ LONG *plAnncPort) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitXOverEnhancement( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddToExpireQueue( - /* [in] */ DATE dateExpires, - /* [in] */ IUnknown *punkItem) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ChangeInExpireQueue( - /* [in] */ DATE dateExpires, - /* [in] */ IUnknown *punkItem) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveFromExpireQueue( - /* [in] */ IUnknown *punkItem) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveEnhFilesFromExpireQueue( - /* [in] */ ITVEEnhancement *pEnhancement) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExpireQueueChangeCount( - /* [retval][out] */ long *pChangeCount) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveYourself( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DumpToBSTR( - /* [out] */ BSTR *pbstrBuff) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEService_HelperVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEService_Helper * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEService_Helper * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEService_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectParent )( - ITVEService_Helper * This, - /* [in] */ ITVESupervisor *pSupervisor); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ParseCBAnnouncement )( - ITVEService_Helper * This, - /* [in] */ BSTR bstrFileTrigAdapter, - /* [in] */ BSTR *pbstrBuff); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetAnncIPValues )( - ITVEService_Helper * This, - /* [in] */ BSTR bstrAnncIPAdapter, - /* [in] */ BSTR bstrAnncIPAddress, - /* [in] */ LONG lAnncPort); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetAnncIPValues )( - ITVEService_Helper * This, - /* [in] */ BSTR *pbstrAnncIPAdapter, - /* [in] */ BSTR *pbstrAnncIPAddress, - /* [in] */ LONG *plAnncPort); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitXOverEnhancement )( - ITVEService_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddToExpireQueue )( - ITVEService_Helper * This, - /* [in] */ DATE dateExpires, - /* [in] */ IUnknown *punkItem); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChangeInExpireQueue )( - ITVEService_Helper * This, - /* [in] */ DATE dateExpires, - /* [in] */ IUnknown *punkItem); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveFromExpireQueue )( - ITVEService_Helper * This, - /* [in] */ IUnknown *punkItem); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveEnhFilesFromExpireQueue )( - ITVEService_Helper * This, - /* [in] */ ITVEEnhancement *pEnhancement); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExpireQueueChangeCount )( - ITVEService_Helper * This, - /* [retval][out] */ long *pChangeCount); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveYourself )( - ITVEService_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DumpToBSTR )( - ITVEService_Helper * This, - /* [out] */ BSTR *pbstrBuff); - - END_INTERFACE - } ITVEService_HelperVtbl; - - interface ITVEService_Helper - { - CONST_VTBL struct ITVEService_HelperVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEService_Helper_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEService_Helper_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEService_Helper_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEService_Helper_ConnectParent(This,pSupervisor) \ - (This)->lpVtbl -> ConnectParent(This,pSupervisor) - -#define ITVEService_Helper_ParseCBAnnouncement(This,bstrFileTrigAdapter,pbstrBuff) \ - (This)->lpVtbl -> ParseCBAnnouncement(This,bstrFileTrigAdapter,pbstrBuff) - -#define ITVEService_Helper_SetAnncIPValues(This,bstrAnncIPAdapter,bstrAnncIPAddress,lAnncPort) \ - (This)->lpVtbl -> SetAnncIPValues(This,bstrAnncIPAdapter,bstrAnncIPAddress,lAnncPort) - -#define ITVEService_Helper_GetAnncIPValues(This,pbstrAnncIPAdapter,pbstrAnncIPAddress,plAnncPort) \ - (This)->lpVtbl -> GetAnncIPValues(This,pbstrAnncIPAdapter,pbstrAnncIPAddress,plAnncPort) - -#define ITVEService_Helper_InitXOverEnhancement(This) \ - (This)->lpVtbl -> InitXOverEnhancement(This) - -#define ITVEService_Helper_AddToExpireQueue(This,dateExpires,punkItem) \ - (This)->lpVtbl -> AddToExpireQueue(This,dateExpires,punkItem) - -#define ITVEService_Helper_ChangeInExpireQueue(This,dateExpires,punkItem) \ - (This)->lpVtbl -> ChangeInExpireQueue(This,dateExpires,punkItem) - -#define ITVEService_Helper_RemoveFromExpireQueue(This,punkItem) \ - (This)->lpVtbl -> RemoveFromExpireQueue(This,punkItem) - -#define ITVEService_Helper_RemoveEnhFilesFromExpireQueue(This,pEnhancement) \ - (This)->lpVtbl -> RemoveEnhFilesFromExpireQueue(This,pEnhancement) - -#define ITVEService_Helper_get_ExpireQueueChangeCount(This,pChangeCount) \ - (This)->lpVtbl -> get_ExpireQueueChangeCount(This,pChangeCount) - -#define ITVEService_Helper_RemoveYourself(This) \ - (This)->lpVtbl -> RemoveYourself(This) - -#define ITVEService_Helper_DumpToBSTR(This,pbstrBuff) \ - (This)->lpVtbl -> DumpToBSTR(This,pbstrBuff) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Helper_ConnectParent_Proxy( - ITVEService_Helper * This, - /* [in] */ ITVESupervisor *pSupervisor); - - -void __RPC_STUB ITVEService_Helper_ConnectParent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Helper_ParseCBAnnouncement_Proxy( - ITVEService_Helper * This, - /* [in] */ BSTR bstrFileTrigAdapter, - /* [in] */ BSTR *pbstrBuff); - - -void __RPC_STUB ITVEService_Helper_ParseCBAnnouncement_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Helper_SetAnncIPValues_Proxy( - ITVEService_Helper * This, - /* [in] */ BSTR bstrAnncIPAdapter, - /* [in] */ BSTR bstrAnncIPAddress, - /* [in] */ LONG lAnncPort); - - -void __RPC_STUB ITVEService_Helper_SetAnncIPValues_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Helper_GetAnncIPValues_Proxy( - ITVEService_Helper * This, - /* [in] */ BSTR *pbstrAnncIPAdapter, - /* [in] */ BSTR *pbstrAnncIPAddress, - /* [in] */ LONG *plAnncPort); - - -void __RPC_STUB ITVEService_Helper_GetAnncIPValues_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Helper_InitXOverEnhancement_Proxy( - ITVEService_Helper * This); - - -void __RPC_STUB ITVEService_Helper_InitXOverEnhancement_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Helper_AddToExpireQueue_Proxy( - ITVEService_Helper * This, - /* [in] */ DATE dateExpires, - /* [in] */ IUnknown *punkItem); - - -void __RPC_STUB ITVEService_Helper_AddToExpireQueue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Helper_ChangeInExpireQueue_Proxy( - ITVEService_Helper * This, - /* [in] */ DATE dateExpires, - /* [in] */ IUnknown *punkItem); - - -void __RPC_STUB ITVEService_Helper_ChangeInExpireQueue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Helper_RemoveFromExpireQueue_Proxy( - ITVEService_Helper * This, - /* [in] */ IUnknown *punkItem); - - -void __RPC_STUB ITVEService_Helper_RemoveFromExpireQueue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Helper_RemoveEnhFilesFromExpireQueue_Proxy( - ITVEService_Helper * This, - /* [in] */ ITVEEnhancement *pEnhancement); - - -void __RPC_STUB ITVEService_Helper_RemoveEnhFilesFromExpireQueue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEService_Helper_get_ExpireQueueChangeCount_Proxy( - ITVEService_Helper * This, - /* [retval][out] */ long *pChangeCount); - - -void __RPC_STUB ITVEService_Helper_get_ExpireQueueChangeCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Helper_RemoveYourself_Proxy( - ITVEService_Helper * This); - - -void __RPC_STUB ITVEService_Helper_RemoveYourself_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEService_Helper_DumpToBSTR_Proxy( - ITVEService_Helper * This, - /* [out] */ BSTR *pbstrBuff); - - -void __RPC_STUB ITVEService_Helper_DumpToBSTR_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEService_Helper_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEFeature_INTERFACE_DEFINED__ -#define __ITVEFeature_INTERFACE_DEFINED__ - -/* interface ITVEFeature */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEFeature; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500305-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEFeature : public ITVEService - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE TuneTo( - /* [in] */ BSTR bstrStation, - /* [in] */ BSTR bstrIPAdapter) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReTune( - /* [in] */ ITVEService *pService) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE BindToSupervisor( - /* [in] */ ITVESupervisor *pTVESupervisor) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVETune( - /* [in] */ NTUN_Mode tuneMode, - /* [in] */ ITVEService *pService, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEEnhancementNew( - /* [in] */ ITVEEnhancement *pEnh) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEEnhancementUpdated( - /* [in] */ ITVEEnhancement *pEnh, - /* [in] */ long lChangedFlags) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEEnhancementStarting( - /* [in] */ ITVEEnhancement *pEnh) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEEnhancementExpired( - /* [in] */ ITVEEnhancement *pEnh) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVETriggerNew( - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVETriggerUpdated( - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive, - /* [in] */ long lChangedFlags) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVETriggerExpired( - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEPackage( - /* [in] */ NPKG_Mode engPkgMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrUUID, - /* [in] */ long cBytesTotal, - /* [in] */ long cBytesReceived) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEFile( - /* [in] */ NFLE_Mode engFileMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrUrlName, - /* [in] */ BSTR bstrFileName) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEAuxInfo( - /* [in] */ NWHAT_Mode engAuxInfoMode, - /* [in] */ BSTR bstrAuxInfoString, - /* [in] */ long lChangedFlags, - /* [in] */ long lErrorLine) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEFeatureVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEFeature * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEFeature * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEFeature * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEFeature * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEFeature * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEFeature * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEFeature * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( - ITVEFeature * This, - /* [retval][out] */ IUnknown **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enhancements )( - ITVEFeature * This, - /* [retval][out] */ ITVEEnhancements **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - ITVEFeature * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( - ITVEFeature * This, - /* [in] */ BSTR newVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Activate )( - ITVEFeature * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Deactivate )( - ITVEFeature * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_XOverLinks )( - ITVEFeature * This, - /* [retval][out] */ ITVETracks **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_XOverEnhancement )( - ITVEFeature * This, - /* [retval][out] */ ITVEEnhancement **pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NewXOverLink )( - ITVEFeature * This, - /* [in] */ BSTR bstrLine21Trigger); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExpireOffset )( - ITVEFeature * This, - /* [retval][out] */ DATE *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ExpireOffset )( - ITVEFeature * This, - /* [in] */ DATE newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExpireQueue )( - ITVEFeature * This, - /* [retval][out] */ ITVEAttrTimeQ **pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExpireForDate )( - ITVEFeature * This, - /* [in] */ DATE dateExpireTime); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsActive )( - ITVEFeature * This, - /* [retval][out] */ VARIANT_BOOL *fIsActive); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Property )( - ITVEFeature * This, - /* [in] */ BSTR bstrPropName, - BSTR bstrPropVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Property )( - ITVEFeature * This, - /* [in] */ BSTR bstrPropName, - /* [retval][out] */ BSTR *pbstrPropVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *TuneTo )( - ITVEFeature * This, - /* [in] */ BSTR bstrStation, - /* [in] */ BSTR bstrIPAdapter); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReTune )( - ITVEFeature * This, - /* [in] */ ITVEService *pService); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *BindToSupervisor )( - ITVEFeature * This, - /* [in] */ ITVESupervisor *pTVESupervisor); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVETune )( - ITVEFeature * This, - /* [in] */ NTUN_Mode tuneMode, - /* [in] */ ITVEService *pService, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEEnhancementNew )( - ITVEFeature * This, - /* [in] */ ITVEEnhancement *pEnh); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEEnhancementUpdated )( - ITVEFeature * This, - /* [in] */ ITVEEnhancement *pEnh, - /* [in] */ long lChangedFlags); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEEnhancementStarting )( - ITVEFeature * This, - /* [in] */ ITVEEnhancement *pEnh); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEEnhancementExpired )( - ITVEFeature * This, - /* [in] */ ITVEEnhancement *pEnh); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVETriggerNew )( - ITVEFeature * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVETriggerUpdated )( - ITVEFeature * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive, - /* [in] */ long lChangedFlags); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVETriggerExpired )( - ITVEFeature * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEPackage )( - ITVEFeature * This, - /* [in] */ NPKG_Mode engPkgMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrUUID, - /* [in] */ long cBytesTotal, - /* [in] */ long cBytesReceived); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEFile )( - ITVEFeature * This, - /* [in] */ NFLE_Mode engFileMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrUrlName, - /* [in] */ BSTR bstrFileName); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEAuxInfo )( - ITVEFeature * This, - /* [in] */ NWHAT_Mode engAuxInfoMode, - /* [in] */ BSTR bstrAuxInfoString, - /* [in] */ long lChangedFlags, - /* [in] */ long lErrorLine); - - END_INTERFACE - } ITVEFeatureVtbl; - - interface ITVEFeature - { - CONST_VTBL struct ITVEFeatureVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEFeature_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEFeature_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEFeature_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEFeature_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEFeature_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEFeature_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEFeature_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEFeature_get_Parent(This,pVal) \ - (This)->lpVtbl -> get_Parent(This,pVal) - -#define ITVEFeature_get_Enhancements(This,pVal) \ - (This)->lpVtbl -> get_Enhancements(This,pVal) - -#define ITVEFeature_get_Description(This,pVal) \ - (This)->lpVtbl -> get_Description(This,pVal) - -#define ITVEFeature_put_Description(This,newVal) \ - (This)->lpVtbl -> put_Description(This,newVal) - -#define ITVEFeature_Activate(This) \ - (This)->lpVtbl -> Activate(This) - -#define ITVEFeature_Deactivate(This) \ - (This)->lpVtbl -> Deactivate(This) - -#define ITVEFeature_get_XOverLinks(This,pVal) \ - (This)->lpVtbl -> get_XOverLinks(This,pVal) - -#define ITVEFeature_get_XOverEnhancement(This,pVal) \ - (This)->lpVtbl -> get_XOverEnhancement(This,pVal) - -#define ITVEFeature_NewXOverLink(This,bstrLine21Trigger) \ - (This)->lpVtbl -> NewXOverLink(This,bstrLine21Trigger) - -#define ITVEFeature_get_ExpireOffset(This,pVal) \ - (This)->lpVtbl -> get_ExpireOffset(This,pVal) - -#define ITVEFeature_put_ExpireOffset(This,newVal) \ - (This)->lpVtbl -> put_ExpireOffset(This,newVal) - -#define ITVEFeature_get_ExpireQueue(This,pVal) \ - (This)->lpVtbl -> get_ExpireQueue(This,pVal) - -#define ITVEFeature_ExpireForDate(This,dateExpireTime) \ - (This)->lpVtbl -> ExpireForDate(This,dateExpireTime) - -#define ITVEFeature_get_IsActive(This,fIsActive) \ - (This)->lpVtbl -> get_IsActive(This,fIsActive) - -#define ITVEFeature_put_Property(This,bstrPropName,bstrPropVal) \ - (This)->lpVtbl -> put_Property(This,bstrPropName,bstrPropVal) - -#define ITVEFeature_get_Property(This,bstrPropName,pbstrPropVal) \ - (This)->lpVtbl -> get_Property(This,bstrPropName,pbstrPropVal) - - -#define ITVEFeature_TuneTo(This,bstrStation,bstrIPAdapter) \ - (This)->lpVtbl -> TuneTo(This,bstrStation,bstrIPAdapter) - -#define ITVEFeature_ReTune(This,pService) \ - (This)->lpVtbl -> ReTune(This,pService) - -#define ITVEFeature_BindToSupervisor(This,pTVESupervisor) \ - (This)->lpVtbl -> BindToSupervisor(This,pTVESupervisor) - -#define ITVEFeature_NotifyTVETune(This,tuneMode,pService,bstrDescription,bstrIPAdapter) \ - (This)->lpVtbl -> NotifyTVETune(This,tuneMode,pService,bstrDescription,bstrIPAdapter) - -#define ITVEFeature_NotifyTVEEnhancementNew(This,pEnh) \ - (This)->lpVtbl -> NotifyTVEEnhancementNew(This,pEnh) - -#define ITVEFeature_NotifyTVEEnhancementUpdated(This,pEnh,lChangedFlags) \ - (This)->lpVtbl -> NotifyTVEEnhancementUpdated(This,pEnh,lChangedFlags) - -#define ITVEFeature_NotifyTVEEnhancementStarting(This,pEnh) \ - (This)->lpVtbl -> NotifyTVEEnhancementStarting(This,pEnh) - -#define ITVEFeature_NotifyTVEEnhancementExpired(This,pEnh) \ - (This)->lpVtbl -> NotifyTVEEnhancementExpired(This,pEnh) - -#define ITVEFeature_NotifyTVETriggerNew(This,pTrigger,fActive) \ - (This)->lpVtbl -> NotifyTVETriggerNew(This,pTrigger,fActive) - -#define ITVEFeature_NotifyTVETriggerUpdated(This,pTrigger,fActive,lChangedFlags) \ - (This)->lpVtbl -> NotifyTVETriggerUpdated(This,pTrigger,fActive,lChangedFlags) - -#define ITVEFeature_NotifyTVETriggerExpired(This,pTrigger,fActive) \ - (This)->lpVtbl -> NotifyTVETriggerExpired(This,pTrigger,fActive) - -#define ITVEFeature_NotifyTVEPackage(This,engPkgMode,pVariation,bstrUUID,cBytesTotal,cBytesReceived) \ - (This)->lpVtbl -> NotifyTVEPackage(This,engPkgMode,pVariation,bstrUUID,cBytesTotal,cBytesReceived) - -#define ITVEFeature_NotifyTVEFile(This,engFileMode,pVariation,bstrUrlName,bstrFileName) \ - (This)->lpVtbl -> NotifyTVEFile(This,engFileMode,pVariation,bstrUrlName,bstrFileName) - -#define ITVEFeature_NotifyTVEAuxInfo(This,engAuxInfoMode,bstrAuxInfoString,lChangedFlags,lErrorLine) \ - (This)->lpVtbl -> NotifyTVEAuxInfo(This,engAuxInfoMode,bstrAuxInfoString,lChangedFlags,lErrorLine) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_TuneTo_Proxy( - ITVEFeature * This, - /* [in] */ BSTR bstrStation, - /* [in] */ BSTR bstrIPAdapter); - - -void __RPC_STUB ITVEFeature_TuneTo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_ReTune_Proxy( - ITVEFeature * This, - /* [in] */ ITVEService *pService); - - -void __RPC_STUB ITVEFeature_ReTune_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_BindToSupervisor_Proxy( - ITVEFeature * This, - /* [in] */ ITVESupervisor *pTVESupervisor); - - -void __RPC_STUB ITVEFeature_BindToSupervisor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_NotifyTVETune_Proxy( - ITVEFeature * This, - /* [in] */ NTUN_Mode tuneMode, - /* [in] */ ITVEService *pService, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter); - - -void __RPC_STUB ITVEFeature_NotifyTVETune_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_NotifyTVEEnhancementNew_Proxy( - ITVEFeature * This, - /* [in] */ ITVEEnhancement *pEnh); - - -void __RPC_STUB ITVEFeature_NotifyTVEEnhancementNew_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_NotifyTVEEnhancementUpdated_Proxy( - ITVEFeature * This, - /* [in] */ ITVEEnhancement *pEnh, - /* [in] */ long lChangedFlags); - - -void __RPC_STUB ITVEFeature_NotifyTVEEnhancementUpdated_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_NotifyTVEEnhancementStarting_Proxy( - ITVEFeature * This, - /* [in] */ ITVEEnhancement *pEnh); - - -void __RPC_STUB ITVEFeature_NotifyTVEEnhancementStarting_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_NotifyTVEEnhancementExpired_Proxy( - ITVEFeature * This, - /* [in] */ ITVEEnhancement *pEnh); - - -void __RPC_STUB ITVEFeature_NotifyTVEEnhancementExpired_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_NotifyTVETriggerNew_Proxy( - ITVEFeature * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive); - - -void __RPC_STUB ITVEFeature_NotifyTVETriggerNew_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_NotifyTVETriggerUpdated_Proxy( - ITVEFeature * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive, - /* [in] */ long lChangedFlags); - - -void __RPC_STUB ITVEFeature_NotifyTVETriggerUpdated_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_NotifyTVETriggerExpired_Proxy( - ITVEFeature * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive); - - -void __RPC_STUB ITVEFeature_NotifyTVETriggerExpired_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_NotifyTVEPackage_Proxy( - ITVEFeature * This, - /* [in] */ NPKG_Mode engPkgMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrUUID, - /* [in] */ long cBytesTotal, - /* [in] */ long cBytesReceived); - - -void __RPC_STUB ITVEFeature_NotifyTVEPackage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_NotifyTVEFile_Proxy( - ITVEFeature * This, - /* [in] */ NFLE_Mode engFileMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrUrlName, - /* [in] */ BSTR bstrFileName); - - -void __RPC_STUB ITVEFeature_NotifyTVEFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFeature_NotifyTVEAuxInfo_Proxy( - ITVEFeature * This, - /* [in] */ NWHAT_Mode engAuxInfoMode, - /* [in] */ BSTR bstrAuxInfoString, - /* [in] */ long lChangedFlags, - /* [in] */ long lErrorLine); - - -void __RPC_STUB ITVEFeature_NotifyTVEAuxInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEFeature_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEServices_INTERFACE_DEFINED__ -#define __ITVEServices_INTERFACE_DEFINED__ - -/* interface ITVEServices */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEServices; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500115-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEServices : public IDispatch - { - public: - virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **pCollection) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT var, - /* [retval][out] */ ITVEService **pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ ITVEService *pService) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT var) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveAll( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Insert( - /* [in] */ int iLoc, - /* [in] */ ITVEService *pService) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEServicesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEServices * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEServices * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEServices * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEServices * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEServices * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEServices * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEServices * 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); - - /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ITVEServices * This, - /* [retval][out] */ IUnknown **pCollection); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ITVEServices * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ITVEServices * This, - /* [in] */ VARIANT var, - /* [retval][out] */ ITVEService **pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - ITVEServices * This, - /* [in] */ ITVEService *pService); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - ITVEServices * This, - /* [in] */ VARIANT var); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveAll )( - ITVEServices * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Insert )( - ITVEServices * This, - /* [in] */ int iLoc, - /* [in] */ ITVEService *pService); - - END_INTERFACE - } ITVEServicesVtbl; - - interface ITVEServices - { - CONST_VTBL struct ITVEServicesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEServices_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEServices_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEServices_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEServices_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEServices_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEServices_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEServices_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEServices_get__NewEnum(This,pCollection) \ - (This)->lpVtbl -> get__NewEnum(This,pCollection) - -#define ITVEServices_get_Count(This,pVal) \ - (This)->lpVtbl -> get_Count(This,pVal) - -#define ITVEServices_get_Item(This,var,pVal) \ - (This)->lpVtbl -> get_Item(This,var,pVal) - -#define ITVEServices_Add(This,pService) \ - (This)->lpVtbl -> Add(This,pService) - -#define ITVEServices_Remove(This,var) \ - (This)->lpVtbl -> Remove(This,var) - -#define ITVEServices_RemoveAll(This) \ - (This)->lpVtbl -> RemoveAll(This) - -#define ITVEServices_Insert(This,iLoc,pService) \ - (This)->lpVtbl -> Insert(This,iLoc,pService) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEServices_get__NewEnum_Proxy( - ITVEServices * This, - /* [retval][out] */ IUnknown **pCollection); - - -void __RPC_STUB ITVEServices_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEServices_get_Count_Proxy( - ITVEServices * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB ITVEServices_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEServices_get_Item_Proxy( - ITVEServices * This, - /* [in] */ VARIANT var, - /* [retval][out] */ ITVEService **pVal); - - -void __RPC_STUB ITVEServices_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEServices_Add_Proxy( - ITVEServices * This, - /* [in] */ ITVEService *pService); - - -void __RPC_STUB ITVEServices_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEServices_Remove_Proxy( - ITVEServices * This, - /* [in] */ VARIANT var); - - -void __RPC_STUB ITVEServices_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEServices_RemoveAll_Proxy( - ITVEServices * This); - - -void __RPC_STUB ITVEServices_RemoveAll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEServices_Insert_Proxy( - ITVEServices * This, - /* [in] */ int iLoc, - /* [in] */ ITVEService *pService); - - -void __RPC_STUB ITVEServices_Insert_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEServices_INTERFACE_DEFINED__ */ - - -#ifndef __ITVESupervisor_INTERFACE_DEFINED__ -#define __ITVESupervisor_INTERFACE_DEFINED__ - -/* interface ITVESupervisor */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVESupervisor; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500106-FAA5-4df9-8246-BFC23AC5CEA8") - ITVESupervisor : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Services( - /* [retval][out] */ ITVEServices **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( - /* [in] */ BSTR newVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE TuneTo( - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReTune( - /* [in] */ ITVEService *pService) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NewXOverLink( - /* [in] */ BSTR bstrLine21Trigger) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExpireForDate( - /* [in] */ DATE dateExpireTime) = 0; - - virtual /* [helpstring][restricted][id] */ HRESULT STDMETHODCALLTYPE InitStats( void) = 0; - - virtual /* [helpstring][restricted][id] */ HRESULT STDMETHODCALLTYPE GetStats( - /* [out] */ BSTR *pbstrBuff) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVESupervisorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVESupervisor * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVESupervisor * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVESupervisor * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVESupervisor * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVESupervisor * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVESupervisor * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVESupervisor * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Services )( - ITVESupervisor * This, - /* [retval][out] */ ITVEServices **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - ITVESupervisor * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( - ITVESupervisor * This, - /* [in] */ BSTR newVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *TuneTo )( - ITVESupervisor * This, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReTune )( - ITVESupervisor * This, - /* [in] */ ITVEService *pService); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NewXOverLink )( - ITVESupervisor * This, - /* [in] */ BSTR bstrLine21Trigger); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExpireForDate )( - ITVESupervisor * This, - /* [in] */ DATE dateExpireTime); - - /* [helpstring][restricted][id] */ HRESULT ( STDMETHODCALLTYPE *InitStats )( - ITVESupervisor * This); - - /* [helpstring][restricted][id] */ HRESULT ( STDMETHODCALLTYPE *GetStats )( - ITVESupervisor * This, - /* [out] */ BSTR *pbstrBuff); - - END_INTERFACE - } ITVESupervisorVtbl; - - interface ITVESupervisor - { - CONST_VTBL struct ITVESupervisorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVESupervisor_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVESupervisor_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVESupervisor_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVESupervisor_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVESupervisor_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVESupervisor_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVESupervisor_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVESupervisor_get_Services(This,pVal) \ - (This)->lpVtbl -> get_Services(This,pVal) - -#define ITVESupervisor_get_Description(This,pVal) \ - (This)->lpVtbl -> get_Description(This,pVal) - -#define ITVESupervisor_put_Description(This,newVal) \ - (This)->lpVtbl -> put_Description(This,newVal) - -#define ITVESupervisor_TuneTo(This,bstrDescription,bstrIPAdapter) \ - (This)->lpVtbl -> TuneTo(This,bstrDescription,bstrIPAdapter) - -#define ITVESupervisor_ReTune(This,pService) \ - (This)->lpVtbl -> ReTune(This,pService) - -#define ITVESupervisor_NewXOverLink(This,bstrLine21Trigger) \ - (This)->lpVtbl -> NewXOverLink(This,bstrLine21Trigger) - -#define ITVESupervisor_ExpireForDate(This,dateExpireTime) \ - (This)->lpVtbl -> ExpireForDate(This,dateExpireTime) - -#define ITVESupervisor_InitStats(This) \ - (This)->lpVtbl -> InitStats(This) - -#define ITVESupervisor_GetStats(This,pbstrBuff) \ - (This)->lpVtbl -> GetStats(This,pbstrBuff) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_get_Services_Proxy( - ITVESupervisor * This, - /* [retval][out] */ ITVEServices **pVal); - - -void __RPC_STUB ITVESupervisor_get_Services_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_get_Description_Proxy( - ITVESupervisor * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVESupervisor_get_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_put_Description_Proxy( - ITVESupervisor * This, - /* [in] */ BSTR newVal); - - -void __RPC_STUB ITVESupervisor_put_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_TuneTo_Proxy( - ITVESupervisor * This, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter); - - -void __RPC_STUB ITVESupervisor_TuneTo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_ReTune_Proxy( - ITVESupervisor * This, - /* [in] */ ITVEService *pService); - - -void __RPC_STUB ITVESupervisor_ReTune_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_NewXOverLink_Proxy( - ITVESupervisor * This, - /* [in] */ BSTR bstrLine21Trigger); - - -void __RPC_STUB ITVESupervisor_NewXOverLink_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_ExpireForDate_Proxy( - ITVESupervisor * This, - /* [in] */ DATE dateExpireTime); - - -void __RPC_STUB ITVESupervisor_ExpireForDate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_InitStats_Proxy( - ITVESupervisor * This); - - -void __RPC_STUB ITVESupervisor_InitStats_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_GetStats_Proxy( - ITVESupervisor * This, - /* [out] */ BSTR *pbstrBuff); - - -void __RPC_STUB ITVESupervisor_GetStats_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVESupervisor_INTERFACE_DEFINED__ */ - - -#ifndef __ITVESupervisor_Helper_INTERFACE_DEFINED__ -#define __ITVESupervisor_Helper_INTERFACE_DEFINED__ - -/* interface ITVESupervisor_Helper */ -/* [unique][helpstring][hidden][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVESupervisor_Helper; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500206-FAA5-4df9-8246-BFC23AC5CEA8") - ITVESupervisor_Helper : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ConnectParent( - /* [in] */ IUnknown *pUnk) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetActiveService( - /* [out] */ ITVEService **ppActiveService) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMCastManager( - /* [out] */ ITVEMCastManager **pMCastManager) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UnpackBuffer( - /* [in] */ IUnknown *pTVEVariation, - /* [in] */ unsigned char *m_rgbData, - /* [in] */ int cBytes) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyEnhancement( - /* [in] */ NENH_Mode enhMode, - /* [in] */ ITVEEnhancement *pEnhancement, - /* [in] */ long lChangedFlags) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTrigger( - /* [in] */ NTRK_Mode trgMode, - /* [in] */ ITVETrack *pTrack, - /* [in] */ long lChangedFlags) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyPackage( - /* [in] */ NPKG_Mode pkgMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrPackageUUID, - /* [in] */ long cBytesTotal, - /* [in] */ long cBytesReceived) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyFile( - /* [in] */ NFLE_Mode fileMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrURLName, - /* [in] */ BSTR bstrFileName) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTune( - /* [in] */ NTUN_Mode tuneMode, - /* [in] */ ITVEService *pService, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyAuxInfo( - /* [in] */ NWHAT_Mode whatMode, - /* [in] */ BSTR bstrAuxInfoString, - /* [in] */ long lgrfWhatDiff, - /* [in] */ long lLineError) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyEnhancement_XProxy( - /* [in] */ NENH_Mode enhMode, - /* [in] */ ITVEEnhancement *pEnhancement, - /* [in] */ long lChangedFlags) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTrigger_XProxy( - /* [in] */ NTRK_Mode trgMode, - /* [in] */ ITVETrack *pTrack, - /* [in] */ long lChangedFlags) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyPackage_XProxy( - NPKG_Mode pkgMode, - ITVEVariation *pVariation, - BSTR bstrPackageUUID, - long cBytesTotal, - long cBytesReceived) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyFile_XProxy( - /* [in] */ NFLE_Mode fileMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrURLName, - /* [in] */ BSTR bstrFileName) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTune_XProxy( - /* [in] */ NTUN_Mode tuneMode, - /* [in] */ ITVEService *pService, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyAuxInfo_XProxy( - /* [in] */ NWHAT_Mode whatMode, - /* [in] */ BSTR bstrAuxInfoString, - /* [in] */ long lgrfWhatDiff, - /* [in] */ long lLineError) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HaltFlags( - /* [retval][out] */ LONG *plGrfHaltFlags) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_HaltFlags( - /* [in] */ LONG lGrfHaltFlags) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveAllListenersOnAdapter( - /* [in] */ BSTR bstrAdapter) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PossibleIPAdapterAddress( - /* [in] */ int iAdapter, - /* [retval][out] */ BSTR *pbstrIPAdapterAddr) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DumpToBSTR( - /* [out] */ BSTR *pbstrBuff) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupervisorGITProxy( - /* [out] */ ITVESupervisorGITProxy **ppSupervisorGITProxy) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVESupervisor_HelperVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVESupervisor_Helper * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVESupervisor_Helper * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVESupervisor_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectParent )( - ITVESupervisor_Helper * This, - /* [in] */ IUnknown *pUnk); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetActiveService )( - ITVESupervisor_Helper * This, - /* [out] */ ITVEService **ppActiveService); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMCastManager )( - ITVESupervisor_Helper * This, - /* [out] */ ITVEMCastManager **pMCastManager); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UnpackBuffer )( - ITVESupervisor_Helper * This, - /* [in] */ IUnknown *pTVEVariation, - /* [in] */ unsigned char *m_rgbData, - /* [in] */ int cBytes); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyEnhancement )( - ITVESupervisor_Helper * This, - /* [in] */ NENH_Mode enhMode, - /* [in] */ ITVEEnhancement *pEnhancement, - /* [in] */ long lChangedFlags); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTrigger )( - ITVESupervisor_Helper * This, - /* [in] */ NTRK_Mode trgMode, - /* [in] */ ITVETrack *pTrack, - /* [in] */ long lChangedFlags); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyPackage )( - ITVESupervisor_Helper * This, - /* [in] */ NPKG_Mode pkgMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrPackageUUID, - /* [in] */ long cBytesTotal, - /* [in] */ long cBytesReceived); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyFile )( - ITVESupervisor_Helper * This, - /* [in] */ NFLE_Mode fileMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrURLName, - /* [in] */ BSTR bstrFileName); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTune )( - ITVESupervisor_Helper * This, - /* [in] */ NTUN_Mode tuneMode, - /* [in] */ ITVEService *pService, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyAuxInfo )( - ITVESupervisor_Helper * This, - /* [in] */ NWHAT_Mode whatMode, - /* [in] */ BSTR bstrAuxInfoString, - /* [in] */ long lgrfWhatDiff, - /* [in] */ long lLineError); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyEnhancement_XProxy )( - ITVESupervisor_Helper * This, - /* [in] */ NENH_Mode enhMode, - /* [in] */ ITVEEnhancement *pEnhancement, - /* [in] */ long lChangedFlags); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTrigger_XProxy )( - ITVESupervisor_Helper * This, - /* [in] */ NTRK_Mode trgMode, - /* [in] */ ITVETrack *pTrack, - /* [in] */ long lChangedFlags); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyPackage_XProxy )( - ITVESupervisor_Helper * This, - NPKG_Mode pkgMode, - ITVEVariation *pVariation, - BSTR bstrPackageUUID, - long cBytesTotal, - long cBytesReceived); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyFile_XProxy )( - ITVESupervisor_Helper * This, - /* [in] */ NFLE_Mode fileMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrURLName, - /* [in] */ BSTR bstrFileName); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTune_XProxy )( - ITVESupervisor_Helper * This, - /* [in] */ NTUN_Mode tuneMode, - /* [in] */ ITVEService *pService, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyAuxInfo_XProxy )( - ITVESupervisor_Helper * This, - /* [in] */ NWHAT_Mode whatMode, - /* [in] */ BSTR bstrAuxInfoString, - /* [in] */ long lgrfWhatDiff, - /* [in] */ long lLineError); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HaltFlags )( - ITVESupervisor_Helper * This, - /* [retval][out] */ LONG *plGrfHaltFlags); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HaltFlags )( - ITVESupervisor_Helper * This, - /* [in] */ LONG lGrfHaltFlags); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveAllListenersOnAdapter )( - ITVESupervisor_Helper * This, - /* [in] */ BSTR bstrAdapter); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PossibleIPAdapterAddress )( - ITVESupervisor_Helper * This, - /* [in] */ int iAdapter, - /* [retval][out] */ BSTR *pbstrIPAdapterAddr); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DumpToBSTR )( - ITVESupervisor_Helper * This, - /* [out] */ BSTR *pbstrBuff); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupervisorGITProxy )( - ITVESupervisor_Helper * This, - /* [out] */ ITVESupervisorGITProxy **ppSupervisorGITProxy); - - END_INTERFACE - } ITVESupervisor_HelperVtbl; - - interface ITVESupervisor_Helper - { - CONST_VTBL struct ITVESupervisor_HelperVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVESupervisor_Helper_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVESupervisor_Helper_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVESupervisor_Helper_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVESupervisor_Helper_ConnectParent(This,pUnk) \ - (This)->lpVtbl -> ConnectParent(This,pUnk) - -#define ITVESupervisor_Helper_GetActiveService(This,ppActiveService) \ - (This)->lpVtbl -> GetActiveService(This,ppActiveService) - -#define ITVESupervisor_Helper_GetMCastManager(This,pMCastManager) \ - (This)->lpVtbl -> GetMCastManager(This,pMCastManager) - -#define ITVESupervisor_Helper_UnpackBuffer(This,pTVEVariation,m_rgbData,cBytes) \ - (This)->lpVtbl -> UnpackBuffer(This,pTVEVariation,m_rgbData,cBytes) - -#define ITVESupervisor_Helper_NotifyEnhancement(This,enhMode,pEnhancement,lChangedFlags) \ - (This)->lpVtbl -> NotifyEnhancement(This,enhMode,pEnhancement,lChangedFlags) - -#define ITVESupervisor_Helper_NotifyTrigger(This,trgMode,pTrack,lChangedFlags) \ - (This)->lpVtbl -> NotifyTrigger(This,trgMode,pTrack,lChangedFlags) - -#define ITVESupervisor_Helper_NotifyPackage(This,pkgMode,pVariation,bstrPackageUUID,cBytesTotal,cBytesReceived) \ - (This)->lpVtbl -> NotifyPackage(This,pkgMode,pVariation,bstrPackageUUID,cBytesTotal,cBytesReceived) - -#define ITVESupervisor_Helper_NotifyFile(This,fileMode,pVariation,bstrURLName,bstrFileName) \ - (This)->lpVtbl -> NotifyFile(This,fileMode,pVariation,bstrURLName,bstrFileName) - -#define ITVESupervisor_Helper_NotifyTune(This,tuneMode,pService,bstrDescription,bstrIPAdapter) \ - (This)->lpVtbl -> NotifyTune(This,tuneMode,pService,bstrDescription,bstrIPAdapter) - -#define ITVESupervisor_Helper_NotifyAuxInfo(This,whatMode,bstrAuxInfoString,lgrfWhatDiff,lLineError) \ - (This)->lpVtbl -> NotifyAuxInfo(This,whatMode,bstrAuxInfoString,lgrfWhatDiff,lLineError) - -#define ITVESupervisor_Helper_NotifyEnhancement_XProxy(This,enhMode,pEnhancement,lChangedFlags) \ - (This)->lpVtbl -> NotifyEnhancement_XProxy(This,enhMode,pEnhancement,lChangedFlags) - -#define ITVESupervisor_Helper_NotifyTrigger_XProxy(This,trgMode,pTrack,lChangedFlags) \ - (This)->lpVtbl -> NotifyTrigger_XProxy(This,trgMode,pTrack,lChangedFlags) - -#define ITVESupervisor_Helper_NotifyPackage_XProxy(This,pkgMode,pVariation,bstrPackageUUID,cBytesTotal,cBytesReceived) \ - (This)->lpVtbl -> NotifyPackage_XProxy(This,pkgMode,pVariation,bstrPackageUUID,cBytesTotal,cBytesReceived) - -#define ITVESupervisor_Helper_NotifyFile_XProxy(This,fileMode,pVariation,bstrURLName,bstrFileName) \ - (This)->lpVtbl -> NotifyFile_XProxy(This,fileMode,pVariation,bstrURLName,bstrFileName) - -#define ITVESupervisor_Helper_NotifyTune_XProxy(This,tuneMode,pService,bstrDescription,bstrIPAdapter) \ - (This)->lpVtbl -> NotifyTune_XProxy(This,tuneMode,pService,bstrDescription,bstrIPAdapter) - -#define ITVESupervisor_Helper_NotifyAuxInfo_XProxy(This,whatMode,bstrAuxInfoString,lgrfWhatDiff,lLineError) \ - (This)->lpVtbl -> NotifyAuxInfo_XProxy(This,whatMode,bstrAuxInfoString,lgrfWhatDiff,lLineError) - -#define ITVESupervisor_Helper_get_HaltFlags(This,plGrfHaltFlags) \ - (This)->lpVtbl -> get_HaltFlags(This,plGrfHaltFlags) - -#define ITVESupervisor_Helper_put_HaltFlags(This,lGrfHaltFlags) \ - (This)->lpVtbl -> put_HaltFlags(This,lGrfHaltFlags) - -#define ITVESupervisor_Helper_RemoveAllListenersOnAdapter(This,bstrAdapter) \ - (This)->lpVtbl -> RemoveAllListenersOnAdapter(This,bstrAdapter) - -#define ITVESupervisor_Helper_get_PossibleIPAdapterAddress(This,iAdapter,pbstrIPAdapterAddr) \ - (This)->lpVtbl -> get_PossibleIPAdapterAddress(This,iAdapter,pbstrIPAdapterAddr) - -#define ITVESupervisor_Helper_DumpToBSTR(This,pbstrBuff) \ - (This)->lpVtbl -> DumpToBSTR(This,pbstrBuff) - -#define ITVESupervisor_Helper_get_SupervisorGITProxy(This,ppSupervisorGITProxy) \ - (This)->lpVtbl -> get_SupervisorGITProxy(This,ppSupervisorGITProxy) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_ConnectParent_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ IUnknown *pUnk); - - -void __RPC_STUB ITVESupervisor_Helper_ConnectParent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_GetActiveService_Proxy( - ITVESupervisor_Helper * This, - /* [out] */ ITVEService **ppActiveService); - - -void __RPC_STUB ITVESupervisor_Helper_GetActiveService_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_GetMCastManager_Proxy( - ITVESupervisor_Helper * This, - /* [out] */ ITVEMCastManager **pMCastManager); - - -void __RPC_STUB ITVESupervisor_Helper_GetMCastManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_UnpackBuffer_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ IUnknown *pTVEVariation, - /* [in] */ unsigned char *m_rgbData, - /* [in] */ int cBytes); - - -void __RPC_STUB ITVESupervisor_Helper_UnpackBuffer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_NotifyEnhancement_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ NENH_Mode enhMode, - /* [in] */ ITVEEnhancement *pEnhancement, - /* [in] */ long lChangedFlags); - - -void __RPC_STUB ITVESupervisor_Helper_NotifyEnhancement_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_NotifyTrigger_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ NTRK_Mode trgMode, - /* [in] */ ITVETrack *pTrack, - /* [in] */ long lChangedFlags); - - -void __RPC_STUB ITVESupervisor_Helper_NotifyTrigger_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_NotifyPackage_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ NPKG_Mode pkgMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrPackageUUID, - /* [in] */ long cBytesTotal, - /* [in] */ long cBytesReceived); - - -void __RPC_STUB ITVESupervisor_Helper_NotifyPackage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_NotifyFile_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ NFLE_Mode fileMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrURLName, - /* [in] */ BSTR bstrFileName); - - -void __RPC_STUB ITVESupervisor_Helper_NotifyFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_NotifyTune_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ NTUN_Mode tuneMode, - /* [in] */ ITVEService *pService, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter); - - -void __RPC_STUB ITVESupervisor_Helper_NotifyTune_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_NotifyAuxInfo_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ NWHAT_Mode whatMode, - /* [in] */ BSTR bstrAuxInfoString, - /* [in] */ long lgrfWhatDiff, - /* [in] */ long lLineError); - - -void __RPC_STUB ITVESupervisor_Helper_NotifyAuxInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_NotifyEnhancement_XProxy_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ NENH_Mode enhMode, - /* [in] */ ITVEEnhancement *pEnhancement, - /* [in] */ long lChangedFlags); - - -void __RPC_STUB ITVESupervisor_Helper_NotifyEnhancement_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_NotifyTrigger_XProxy_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ NTRK_Mode trgMode, - /* [in] */ ITVETrack *pTrack, - /* [in] */ long lChangedFlags); - - -void __RPC_STUB ITVESupervisor_Helper_NotifyTrigger_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_NotifyPackage_XProxy_Proxy( - ITVESupervisor_Helper * This, - NPKG_Mode pkgMode, - ITVEVariation *pVariation, - BSTR bstrPackageUUID, - long cBytesTotal, - long cBytesReceived); - - -void __RPC_STUB ITVESupervisor_Helper_NotifyPackage_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_NotifyFile_XProxy_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ NFLE_Mode fileMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrURLName, - /* [in] */ BSTR bstrFileName); - - -void __RPC_STUB ITVESupervisor_Helper_NotifyFile_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_NotifyTune_XProxy_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ NTUN_Mode tuneMode, - /* [in] */ ITVEService *pService, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter); - - -void __RPC_STUB ITVESupervisor_Helper_NotifyTune_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_NotifyAuxInfo_XProxy_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ NWHAT_Mode whatMode, - /* [in] */ BSTR bstrAuxInfoString, - /* [in] */ long lgrfWhatDiff, - /* [in] */ long lLineError); - - -void __RPC_STUB ITVESupervisor_Helper_NotifyAuxInfo_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_get_HaltFlags_Proxy( - ITVESupervisor_Helper * This, - /* [retval][out] */ LONG *plGrfHaltFlags); - - -void __RPC_STUB ITVESupervisor_Helper_get_HaltFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_put_HaltFlags_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ LONG lGrfHaltFlags); - - -void __RPC_STUB ITVESupervisor_Helper_put_HaltFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_RemoveAllListenersOnAdapter_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ BSTR bstrAdapter); - - -void __RPC_STUB ITVESupervisor_Helper_RemoveAllListenersOnAdapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_get_PossibleIPAdapterAddress_Proxy( - ITVESupervisor_Helper * This, - /* [in] */ int iAdapter, - /* [retval][out] */ BSTR *pbstrIPAdapterAddr); - - -void __RPC_STUB ITVESupervisor_Helper_get_PossibleIPAdapterAddress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_DumpToBSTR_Proxy( - ITVESupervisor_Helper * This, - /* [out] */ BSTR *pbstrBuff); - - -void __RPC_STUB ITVESupervisor_Helper_DumpToBSTR_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVESupervisor_Helper_get_SupervisorGITProxy_Proxy( - ITVESupervisor_Helper * This, - /* [out] */ ITVESupervisorGITProxy **ppSupervisorGITProxy); - - -void __RPC_STUB ITVESupervisor_Helper_get_SupervisorGITProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVESupervisor_Helper_INTERFACE_DEFINED__ */ - - -#ifndef __ITVESupervisorGITProxy_INTERFACE_DEFINED__ -#define __ITVESupervisorGITProxy_INTERFACE_DEFINED__ - -/* interface ITVESupervisorGITProxy */ -/* [unique][helpstring][dual][uuid][object][hidden] */ - - -EXTERN_C const IID IID_ITVESupervisorGITProxy; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500306-FAA5-4df9-8246-BFC23AC5CEA8") - ITVESupervisorGITProxy : public IUnknown - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Supervisor( - /* [retval][out] */ ITVESupervisor **ppVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Supervisor( - /* [in] */ ITVESupervisor *pVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVESupervisorGITProxyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVESupervisorGITProxy * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVESupervisorGITProxy * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVESupervisorGITProxy * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Supervisor )( - ITVESupervisorGITProxy * This, - /* [retval][out] */ ITVESupervisor **ppVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Supervisor )( - ITVESupervisorGITProxy * This, - /* [in] */ ITVESupervisor *pVal); - - END_INTERFACE - } ITVESupervisorGITProxyVtbl; - - interface ITVESupervisorGITProxy - { - CONST_VTBL struct ITVESupervisorGITProxyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVESupervisorGITProxy_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVESupervisorGITProxy_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVESupervisorGITProxy_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVESupervisorGITProxy_get_Supervisor(This,ppVal) \ - (This)->lpVtbl -> get_Supervisor(This,ppVal) - -#define ITVESupervisorGITProxy_put_Supervisor(This,pVal) \ - (This)->lpVtbl -> put_Supervisor(This,pVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVESupervisorGITProxy_get_Supervisor_Proxy( - ITVESupervisorGITProxy * This, - /* [retval][out] */ ITVESupervisor **ppVal); - - -void __RPC_STUB ITVESupervisorGITProxy_get_Supervisor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVESupervisorGITProxy_put_Supervisor_Proxy( - ITVESupervisorGITProxy * This, - /* [in] */ ITVESupervisor *pVal); - - -void __RPC_STUB ITVESupervisorGITProxy_put_Supervisor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVESupervisorGITProxy_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEAttrMap_INTERFACE_DEFINED__ -#define __ITVEAttrMap_INTERFACE_DEFINED__ - -/* interface ITVEAttrMap */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEAttrMap; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500121-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEAttrMap : public IDispatch - { - public: - virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **pCollection) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT var, - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Key( - /* [in] */ VARIANT var, - /* [retval][out] */ BSTR *pKey) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ BSTR bstrKey, - /* [in] */ BSTR bstrValue) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Replace( - /* [in] */ BSTR bstrKey, - /* [in] */ BSTR bstrValue) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT var) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveAll( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add1( - BSTR bstrValue) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DumpToBSTR( - /* [out] */ BSTR *pDump) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEAttrMapVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEAttrMap * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEAttrMap * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEAttrMap * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEAttrMap * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEAttrMap * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEAttrMap * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEAttrMap * 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); - - /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ITVEAttrMap * This, - /* [retval][out] */ IUnknown **pCollection); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ITVEAttrMap * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ITVEAttrMap * This, - /* [in] */ VARIANT var, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Key )( - ITVEAttrMap * This, - /* [in] */ VARIANT var, - /* [retval][out] */ BSTR *pKey); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - ITVEAttrMap * This, - /* [in] */ BSTR bstrKey, - /* [in] */ BSTR bstrValue); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Replace )( - ITVEAttrMap * This, - /* [in] */ BSTR bstrKey, - /* [in] */ BSTR bstrValue); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - ITVEAttrMap * This, - /* [in] */ VARIANT var); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveAll )( - ITVEAttrMap * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add1 )( - ITVEAttrMap * This, - BSTR bstrValue); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DumpToBSTR )( - ITVEAttrMap * This, - /* [out] */ BSTR *pDump); - - END_INTERFACE - } ITVEAttrMapVtbl; - - interface ITVEAttrMap - { - CONST_VTBL struct ITVEAttrMapVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEAttrMap_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEAttrMap_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEAttrMap_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEAttrMap_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEAttrMap_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEAttrMap_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEAttrMap_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEAttrMap_get__NewEnum(This,pCollection) \ - (This)->lpVtbl -> get__NewEnum(This,pCollection) - -#define ITVEAttrMap_get_Count(This,pVal) \ - (This)->lpVtbl -> get_Count(This,pVal) - -#define ITVEAttrMap_get_Item(This,var,pVal) \ - (This)->lpVtbl -> get_Item(This,var,pVal) - -#define ITVEAttrMap_get_Key(This,var,pKey) \ - (This)->lpVtbl -> get_Key(This,var,pKey) - -#define ITVEAttrMap_Add(This,bstrKey,bstrValue) \ - (This)->lpVtbl -> Add(This,bstrKey,bstrValue) - -#define ITVEAttrMap_Replace(This,bstrKey,bstrValue) \ - (This)->lpVtbl -> Replace(This,bstrKey,bstrValue) - -#define ITVEAttrMap_Remove(This,var) \ - (This)->lpVtbl -> Remove(This,var) - -#define ITVEAttrMap_RemoveAll(This) \ - (This)->lpVtbl -> RemoveAll(This) - -#define ITVEAttrMap_Add1(This,bstrValue) \ - (This)->lpVtbl -> Add1(This,bstrValue) - -#define ITVEAttrMap_DumpToBSTR(This,pDump) \ - (This)->lpVtbl -> DumpToBSTR(This,pDump) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEAttrMap_get__NewEnum_Proxy( - ITVEAttrMap * This, - /* [retval][out] */ IUnknown **pCollection); - - -void __RPC_STUB ITVEAttrMap_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEAttrMap_get_Count_Proxy( - ITVEAttrMap * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB ITVEAttrMap_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEAttrMap_get_Item_Proxy( - ITVEAttrMap * This, - /* [in] */ VARIANT var, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEAttrMap_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEAttrMap_get_Key_Proxy( - ITVEAttrMap * This, - /* [in] */ VARIANT var, - /* [retval][out] */ BSTR *pKey); - - -void __RPC_STUB ITVEAttrMap_get_Key_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrMap_Add_Proxy( - ITVEAttrMap * This, - /* [in] */ BSTR bstrKey, - /* [in] */ BSTR bstrValue); - - -void __RPC_STUB ITVEAttrMap_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrMap_Replace_Proxy( - ITVEAttrMap * This, - /* [in] */ BSTR bstrKey, - /* [in] */ BSTR bstrValue); - - -void __RPC_STUB ITVEAttrMap_Replace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrMap_Remove_Proxy( - ITVEAttrMap * This, - /* [in] */ VARIANT var); - - -void __RPC_STUB ITVEAttrMap_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrMap_RemoveAll_Proxy( - ITVEAttrMap * This); - - -void __RPC_STUB ITVEAttrMap_RemoveAll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrMap_Add1_Proxy( - ITVEAttrMap * This, - BSTR bstrValue); - - -void __RPC_STUB ITVEAttrMap_Add1_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrMap_DumpToBSTR_Proxy( - ITVEAttrMap * This, - /* [out] */ BSTR *pDump); - - -void __RPC_STUB ITVEAttrMap_DumpToBSTR_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEAttrMap_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEAttrTimeQ_INTERFACE_DEFINED__ -#define __ITVEAttrTimeQ_INTERFACE_DEFINED__ - -/* interface ITVEAttrTimeQ */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEAttrTimeQ; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500122-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEAttrTimeQ : public IDispatch - { - public: - virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **pCollection) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT var, - /* [retval][out] */ IUnknown **ppVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Key( - /* [in] */ VARIANT var, - /* [retval][out] */ DATE *pKey) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ DATE dateKey, - /* [in] */ IUnknown *pUnk) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT var) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveAll( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Update( - /* [in] */ DATE dateKey, - /* [in] */ IUnknown *pUnk) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LockRead( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LockWrite( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Unlock( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveSimple( - /* [in] */ VARIANT var) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DumpToBSTR( - /* [out] */ BSTR *pDump) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEAttrTimeQVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEAttrTimeQ * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEAttrTimeQ * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEAttrTimeQ * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEAttrTimeQ * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEAttrTimeQ * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEAttrTimeQ * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEAttrTimeQ * 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); - - /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ITVEAttrTimeQ * This, - /* [retval][out] */ IUnknown **pCollection); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ITVEAttrTimeQ * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ITVEAttrTimeQ * This, - /* [in] */ VARIANT var, - /* [retval][out] */ IUnknown **ppVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Key )( - ITVEAttrTimeQ * This, - /* [in] */ VARIANT var, - /* [retval][out] */ DATE *pKey); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - ITVEAttrTimeQ * This, - /* [in] */ DATE dateKey, - /* [in] */ IUnknown *pUnk); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - ITVEAttrTimeQ * This, - /* [in] */ VARIANT var); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveAll )( - ITVEAttrTimeQ * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( - ITVEAttrTimeQ * This, - /* [in] */ DATE dateKey, - /* [in] */ IUnknown *pUnk); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LockRead )( - ITVEAttrTimeQ * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LockWrite )( - ITVEAttrTimeQ * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Unlock )( - ITVEAttrTimeQ * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveSimple )( - ITVEAttrTimeQ * This, - /* [in] */ VARIANT var); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DumpToBSTR )( - ITVEAttrTimeQ * This, - /* [out] */ BSTR *pDump); - - END_INTERFACE - } ITVEAttrTimeQVtbl; - - interface ITVEAttrTimeQ - { - CONST_VTBL struct ITVEAttrTimeQVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEAttrTimeQ_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEAttrTimeQ_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEAttrTimeQ_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEAttrTimeQ_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEAttrTimeQ_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEAttrTimeQ_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEAttrTimeQ_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEAttrTimeQ_get__NewEnum(This,pCollection) \ - (This)->lpVtbl -> get__NewEnum(This,pCollection) - -#define ITVEAttrTimeQ_get_Count(This,pVal) \ - (This)->lpVtbl -> get_Count(This,pVal) - -#define ITVEAttrTimeQ_get_Item(This,var,ppVal) \ - (This)->lpVtbl -> get_Item(This,var,ppVal) - -#define ITVEAttrTimeQ_get_Key(This,var,pKey) \ - (This)->lpVtbl -> get_Key(This,var,pKey) - -#define ITVEAttrTimeQ_Add(This,dateKey,pUnk) \ - (This)->lpVtbl -> Add(This,dateKey,pUnk) - -#define ITVEAttrTimeQ_Remove(This,var) \ - (This)->lpVtbl -> Remove(This,var) - -#define ITVEAttrTimeQ_RemoveAll(This) \ - (This)->lpVtbl -> RemoveAll(This) - -#define ITVEAttrTimeQ_Update(This,dateKey,pUnk) \ - (This)->lpVtbl -> Update(This,dateKey,pUnk) - -#define ITVEAttrTimeQ_LockRead(This) \ - (This)->lpVtbl -> LockRead(This) - -#define ITVEAttrTimeQ_LockWrite(This) \ - (This)->lpVtbl -> LockWrite(This) - -#define ITVEAttrTimeQ_Unlock(This) \ - (This)->lpVtbl -> Unlock(This) - -#define ITVEAttrTimeQ_RemoveSimple(This,var) \ - (This)->lpVtbl -> RemoveSimple(This,var) - -#define ITVEAttrTimeQ_DumpToBSTR(This,pDump) \ - (This)->lpVtbl -> DumpToBSTR(This,pDump) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_get__NewEnum_Proxy( - ITVEAttrTimeQ * This, - /* [retval][out] */ IUnknown **pCollection); - - -void __RPC_STUB ITVEAttrTimeQ_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_get_Count_Proxy( - ITVEAttrTimeQ * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB ITVEAttrTimeQ_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_get_Item_Proxy( - ITVEAttrTimeQ * This, - /* [in] */ VARIANT var, - /* [retval][out] */ IUnknown **ppVal); - - -void __RPC_STUB ITVEAttrTimeQ_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_get_Key_Proxy( - ITVEAttrTimeQ * This, - /* [in] */ VARIANT var, - /* [retval][out] */ DATE *pKey); - - -void __RPC_STUB ITVEAttrTimeQ_get_Key_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_Add_Proxy( - ITVEAttrTimeQ * This, - /* [in] */ DATE dateKey, - /* [in] */ IUnknown *pUnk); - - -void __RPC_STUB ITVEAttrTimeQ_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_Remove_Proxy( - ITVEAttrTimeQ * This, - /* [in] */ VARIANT var); - - -void __RPC_STUB ITVEAttrTimeQ_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_RemoveAll_Proxy( - ITVEAttrTimeQ * This); - - -void __RPC_STUB ITVEAttrTimeQ_RemoveAll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_Update_Proxy( - ITVEAttrTimeQ * This, - /* [in] */ DATE dateKey, - /* [in] */ IUnknown *pUnk); - - -void __RPC_STUB ITVEAttrTimeQ_Update_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_LockRead_Proxy( - ITVEAttrTimeQ * This); - - -void __RPC_STUB ITVEAttrTimeQ_LockRead_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_LockWrite_Proxy( - ITVEAttrTimeQ * This); - - -void __RPC_STUB ITVEAttrTimeQ_LockWrite_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_Unlock_Proxy( - ITVEAttrTimeQ * This); - - -void __RPC_STUB ITVEAttrTimeQ_Unlock_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_RemoveSimple_Proxy( - ITVEAttrTimeQ * This, - /* [in] */ VARIANT var); - - -void __RPC_STUB ITVEAttrTimeQ_RemoveSimple_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEAttrTimeQ_DumpToBSTR_Proxy( - ITVEAttrTimeQ * This, - /* [out] */ BSTR *pDump); - - -void __RPC_STUB ITVEAttrTimeQ_DumpToBSTR_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEAttrTimeQ_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEMCast_INTERFACE_DEFINED__ -#define __ITVEMCast_INTERFACE_DEFINED__ - -/* interface ITVEMCast */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEMCast; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500130-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEMCast : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IPAdapter( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_IPAdapter( - /* [in] */ BSTR newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IPAddress( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_IPAddress( - /* [in] */ BSTR newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IPPort( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_IPPort( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Join( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Leave( void) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsJoined( - /* [retval][out] */ VARIANT_BOOL *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsSuspended( - /* [retval][out] */ VARIANT_BOOL *pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Suspend( - VARIANT_BOOL fSuspend) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PacketCount( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ByteCount( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE KeepStats( - VARIANT_BOOL fKeepStats) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ResetStats( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetReadCallback( - /* [in] */ int nBuffers, - /* [in] */ int iPrioritySetback, - /* [in] */ IUnknown *pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ConnectManager( - /* [in] */ ITVEMCastManager *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Manager( - /* [retval][out] */ IUnknown **ppVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_QueueThreadId( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_QueueThreadId( - /* [in] */ long pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_WhatType( - /* [retval][out] */ NWHAT_Mode *pWhatType) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_WhatType( - /* [in] */ NWHAT_Mode whatType) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEMCastVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEMCast * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEMCast * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEMCast * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEMCast * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEMCast * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEMCast * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEMCast * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IPAdapter )( - ITVEMCast * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IPAdapter )( - ITVEMCast * This, - /* [in] */ BSTR newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IPAddress )( - ITVEMCast * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IPAddress )( - ITVEMCast * This, - /* [in] */ BSTR newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IPPort )( - ITVEMCast * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IPPort )( - ITVEMCast * This, - /* [in] */ long newVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Join )( - ITVEMCast * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Leave )( - ITVEMCast * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsJoined )( - ITVEMCast * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsSuspended )( - ITVEMCast * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Suspend )( - ITVEMCast * This, - VARIANT_BOOL fSuspend); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PacketCount )( - ITVEMCast * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ByteCount )( - ITVEMCast * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *KeepStats )( - ITVEMCast * This, - VARIANT_BOOL fKeepStats); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ResetStats )( - ITVEMCast * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetReadCallback )( - ITVEMCast * This, - /* [in] */ int nBuffers, - /* [in] */ int iPrioritySetback, - /* [in] */ IUnknown *pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectManager )( - ITVEMCast * This, - /* [in] */ ITVEMCastManager *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Manager )( - ITVEMCast * This, - /* [retval][out] */ IUnknown **ppVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QueueThreadId )( - ITVEMCast * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QueueThreadId )( - ITVEMCast * This, - /* [in] */ long pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WhatType )( - ITVEMCast * This, - /* [retval][out] */ NWHAT_Mode *pWhatType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_WhatType )( - ITVEMCast * This, - /* [in] */ NWHAT_Mode whatType); - - END_INTERFACE - } ITVEMCastVtbl; - - interface ITVEMCast - { - CONST_VTBL struct ITVEMCastVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEMCast_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEMCast_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEMCast_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEMCast_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEMCast_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEMCast_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEMCast_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEMCast_get_IPAdapter(This,pVal) \ - (This)->lpVtbl -> get_IPAdapter(This,pVal) - -#define ITVEMCast_put_IPAdapter(This,newVal) \ - (This)->lpVtbl -> put_IPAdapter(This,newVal) - -#define ITVEMCast_get_IPAddress(This,pVal) \ - (This)->lpVtbl -> get_IPAddress(This,pVal) - -#define ITVEMCast_put_IPAddress(This,newVal) \ - (This)->lpVtbl -> put_IPAddress(This,newVal) - -#define ITVEMCast_get_IPPort(This,pVal) \ - (This)->lpVtbl -> get_IPPort(This,pVal) - -#define ITVEMCast_put_IPPort(This,newVal) \ - (This)->lpVtbl -> put_IPPort(This,newVal) - -#define ITVEMCast_Join(This) \ - (This)->lpVtbl -> Join(This) - -#define ITVEMCast_Leave(This) \ - (This)->lpVtbl -> Leave(This) - -#define ITVEMCast_get_IsJoined(This,pVal) \ - (This)->lpVtbl -> get_IsJoined(This,pVal) - -#define ITVEMCast_get_IsSuspended(This,pVal) \ - (This)->lpVtbl -> get_IsSuspended(This,pVal) - -#define ITVEMCast_Suspend(This,fSuspend) \ - (This)->lpVtbl -> Suspend(This,fSuspend) - -#define ITVEMCast_get_PacketCount(This,pVal) \ - (This)->lpVtbl -> get_PacketCount(This,pVal) - -#define ITVEMCast_get_ByteCount(This,pVal) \ - (This)->lpVtbl -> get_ByteCount(This,pVal) - -#define ITVEMCast_KeepStats(This,fKeepStats) \ - (This)->lpVtbl -> KeepStats(This,fKeepStats) - -#define ITVEMCast_ResetStats(This) \ - (This)->lpVtbl -> ResetStats(This) - -#define ITVEMCast_SetReadCallback(This,nBuffers,iPrioritySetback,pVal) \ - (This)->lpVtbl -> SetReadCallback(This,nBuffers,iPrioritySetback,pVal) - -#define ITVEMCast_ConnectManager(This,pVal) \ - (This)->lpVtbl -> ConnectManager(This,pVal) - -#define ITVEMCast_get_Manager(This,ppVal) \ - (This)->lpVtbl -> get_Manager(This,ppVal) - -#define ITVEMCast_get_QueueThreadId(This,pVal) \ - (This)->lpVtbl -> get_QueueThreadId(This,pVal) - -#define ITVEMCast_put_QueueThreadId(This,pVal) \ - (This)->lpVtbl -> put_QueueThreadId(This,pVal) - -#define ITVEMCast_get_WhatType(This,pWhatType) \ - (This)->lpVtbl -> get_WhatType(This,pWhatType) - -#define ITVEMCast_put_WhatType(This,whatType) \ - (This)->lpVtbl -> put_WhatType(This,whatType) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCast_get_IPAdapter_Proxy( - ITVEMCast * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEMCast_get_IPAdapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEMCast_put_IPAdapter_Proxy( - ITVEMCast * This, - /* [in] */ BSTR newVal); - - -void __RPC_STUB ITVEMCast_put_IPAdapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCast_get_IPAddress_Proxy( - ITVEMCast * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVEMCast_get_IPAddress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEMCast_put_IPAddress_Proxy( - ITVEMCast * This, - /* [in] */ BSTR newVal); - - -void __RPC_STUB ITVEMCast_put_IPAddress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCast_get_IPPort_Proxy( - ITVEMCast * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB ITVEMCast_get_IPPort_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEMCast_put_IPPort_Proxy( - ITVEMCast * This, - /* [in] */ long newVal); - - -void __RPC_STUB ITVEMCast_put_IPPort_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCast_Join_Proxy( - ITVEMCast * This); - - -void __RPC_STUB ITVEMCast_Join_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCast_Leave_Proxy( - ITVEMCast * This); - - -void __RPC_STUB ITVEMCast_Leave_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCast_get_IsJoined_Proxy( - ITVEMCast * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - -void __RPC_STUB ITVEMCast_get_IsJoined_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCast_get_IsSuspended_Proxy( - ITVEMCast * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - -void __RPC_STUB ITVEMCast_get_IsSuspended_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCast_Suspend_Proxy( - ITVEMCast * This, - VARIANT_BOOL fSuspend); - - -void __RPC_STUB ITVEMCast_Suspend_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCast_get_PacketCount_Proxy( - ITVEMCast * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB ITVEMCast_get_PacketCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCast_get_ByteCount_Proxy( - ITVEMCast * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB ITVEMCast_get_ByteCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCast_KeepStats_Proxy( - ITVEMCast * This, - VARIANT_BOOL fKeepStats); - - -void __RPC_STUB ITVEMCast_KeepStats_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCast_ResetStats_Proxy( - ITVEMCast * This); - - -void __RPC_STUB ITVEMCast_ResetStats_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCast_SetReadCallback_Proxy( - ITVEMCast * This, - /* [in] */ int nBuffers, - /* [in] */ int iPrioritySetback, - /* [in] */ IUnknown *pVal); - - -void __RPC_STUB ITVEMCast_SetReadCallback_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCast_ConnectManager_Proxy( - ITVEMCast * This, - /* [in] */ ITVEMCastManager *pVal); - - -void __RPC_STUB ITVEMCast_ConnectManager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCast_get_Manager_Proxy( - ITVEMCast * This, - /* [retval][out] */ IUnknown **ppVal); - - -void __RPC_STUB ITVEMCast_get_Manager_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCast_get_QueueThreadId_Proxy( - ITVEMCast * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB ITVEMCast_get_QueueThreadId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEMCast_put_QueueThreadId_Proxy( - ITVEMCast * This, - /* [in] */ long pVal); - - -void __RPC_STUB ITVEMCast_put_QueueThreadId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCast_get_WhatType_Proxy( - ITVEMCast * This, - /* [retval][out] */ NWHAT_Mode *pWhatType); - - -void __RPC_STUB ITVEMCast_get_WhatType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEMCast_put_WhatType_Proxy( - ITVEMCast * This, - /* [in] */ NWHAT_Mode whatType); - - -void __RPC_STUB ITVEMCast_put_WhatType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEMCast_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEMCasts_INTERFACE_DEFINED__ -#define __ITVEMCasts_INTERFACE_DEFINED__ - -/* interface ITVEMCasts */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEMCasts; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500131-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEMCasts : public IDispatch - { - public: - virtual /* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **pCollection) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT var, - /* [retval][out] */ ITVEMCast **pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ ITVEMCast *punk) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT var) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveAll( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEMCastsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEMCasts * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEMCasts * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEMCasts * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEMCasts * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEMCasts * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEMCasts * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEMCasts * 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); - - /* [helpstring][restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ITVEMCasts * This, - /* [retval][out] */ IUnknown **pCollection); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ITVEMCasts * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ITVEMCasts * This, - /* [in] */ VARIANT var, - /* [retval][out] */ ITVEMCast **pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - ITVEMCasts * This, - /* [in] */ ITVEMCast *punk); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - ITVEMCasts * This, - /* [in] */ VARIANT var); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveAll )( - ITVEMCasts * This); - - END_INTERFACE - } ITVEMCastsVtbl; - - interface ITVEMCasts - { - CONST_VTBL struct ITVEMCastsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEMCasts_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEMCasts_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEMCasts_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEMCasts_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEMCasts_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEMCasts_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEMCasts_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEMCasts_get__NewEnum(This,pCollection) \ - (This)->lpVtbl -> get__NewEnum(This,pCollection) - -#define ITVEMCasts_get_Count(This,pVal) \ - (This)->lpVtbl -> get_Count(This,pVal) - -#define ITVEMCasts_get_Item(This,var,pVal) \ - (This)->lpVtbl -> get_Item(This,var,pVal) - -#define ITVEMCasts_Add(This,punk) \ - (This)->lpVtbl -> Add(This,punk) - -#define ITVEMCasts_Remove(This,var) \ - (This)->lpVtbl -> Remove(This,var) - -#define ITVEMCasts_RemoveAll(This) \ - (This)->lpVtbl -> RemoveAll(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][restricted][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCasts_get__NewEnum_Proxy( - ITVEMCasts * This, - /* [retval][out] */ IUnknown **pCollection); - - -void __RPC_STUB ITVEMCasts_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCasts_get_Count_Proxy( - ITVEMCasts * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB ITVEMCasts_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCasts_get_Item_Proxy( - ITVEMCasts * This, - /* [in] */ VARIANT var, - /* [retval][out] */ ITVEMCast **pVal); - - -void __RPC_STUB ITVEMCasts_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCasts_Add_Proxy( - ITVEMCasts * This, - /* [in] */ ITVEMCast *punk); - - -void __RPC_STUB ITVEMCasts_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCasts_Remove_Proxy( - ITVEMCasts * This, - /* [in] */ VARIANT var); - - -void __RPC_STUB ITVEMCasts_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCasts_RemoveAll_Proxy( - ITVEMCasts * This); - - -void __RPC_STUB ITVEMCasts_RemoveAll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEMCasts_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEMCastManager_INTERFACE_DEFINED__ -#define __ITVEMCastManager_INTERFACE_DEFINED__ - -/* interface ITVEMCastManager */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEMCastManager; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500132-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEMCastManager : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MCasts( - /* [retval][out] */ ITVEMCasts **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Supervisor( - /* [retval][out] */ ITVESupervisor **ppSupervisor) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Supervisor( - /* [in] */ ITVESupervisor *pSupervisor) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddMulticast( - /* [in] */ NWHAT_Mode whatType, - /* [in] */ BSTR bsAdapter, - /* [in] */ BSTR bsIPAddress, - /* [in] */ LONG ulIPPort, - /* [in] */ LONG cBuffers, - /* [in] */ IUnknown *pICallback, - /* [out] */ ITVEMCast **ppMCastAdded) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE FindMulticast( - /* [in] */ BSTR bstrIPAdapter, - /* [in] */ BSTR bstrIPAddress, - /* [in] */ LONG sPort, - /* [out] */ ITVEMCast **ppMCast, - /* [out] */ LONG *pcMatches) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveMulticast( - ITVEMCast *pMCast) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE JoinAll( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LeaveAll( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SuspendAll( - /* [in] */ VARIANT_BOOL fSuspend) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Lock_( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Unlock_( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DumpStatsToBSTR( - int iType, - BSTR *pBSTR) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HaltFlags( - /* [retval][out] */ LONG *plGrfHaltFlags) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_HaltFlags( - /* [in] */ LONG lGrfHaltFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEMCastManagerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEMCastManager * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEMCastManager * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEMCastManager * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEMCastManager * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEMCastManager * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEMCastManager * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEMCastManager * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MCasts )( - ITVEMCastManager * This, - /* [retval][out] */ ITVEMCasts **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Supervisor )( - ITVEMCastManager * This, - /* [retval][out] */ ITVESupervisor **ppSupervisor); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Supervisor )( - ITVEMCastManager * This, - /* [in] */ ITVESupervisor *pSupervisor); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddMulticast )( - ITVEMCastManager * This, - /* [in] */ NWHAT_Mode whatType, - /* [in] */ BSTR bsAdapter, - /* [in] */ BSTR bsIPAddress, - /* [in] */ LONG ulIPPort, - /* [in] */ LONG cBuffers, - /* [in] */ IUnknown *pICallback, - /* [out] */ ITVEMCast **ppMCastAdded); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FindMulticast )( - ITVEMCastManager * This, - /* [in] */ BSTR bstrIPAdapter, - /* [in] */ BSTR bstrIPAddress, - /* [in] */ LONG sPort, - /* [out] */ ITVEMCast **ppMCast, - /* [out] */ LONG *pcMatches); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveMulticast )( - ITVEMCastManager * This, - ITVEMCast *pMCast); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *JoinAll )( - ITVEMCastManager * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LeaveAll )( - ITVEMCastManager * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SuspendAll )( - ITVEMCastManager * This, - /* [in] */ VARIANT_BOOL fSuspend); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Lock_ )( - ITVEMCastManager * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Unlock_ )( - ITVEMCastManager * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DumpStatsToBSTR )( - ITVEMCastManager * This, - int iType, - BSTR *pBSTR); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HaltFlags )( - ITVEMCastManager * This, - /* [retval][out] */ LONG *plGrfHaltFlags); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HaltFlags )( - ITVEMCastManager * This, - /* [in] */ LONG lGrfHaltFlags); - - END_INTERFACE - } ITVEMCastManagerVtbl; - - interface ITVEMCastManager - { - CONST_VTBL struct ITVEMCastManagerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEMCastManager_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEMCastManager_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEMCastManager_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEMCastManager_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEMCastManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEMCastManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEMCastManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEMCastManager_get_MCasts(This,pVal) \ - (This)->lpVtbl -> get_MCasts(This,pVal) - -#define ITVEMCastManager_get_Supervisor(This,ppSupervisor) \ - (This)->lpVtbl -> get_Supervisor(This,ppSupervisor) - -#define ITVEMCastManager_put_Supervisor(This,pSupervisor) \ - (This)->lpVtbl -> put_Supervisor(This,pSupervisor) - -#define ITVEMCastManager_AddMulticast(This,whatType,bsAdapter,bsIPAddress,ulIPPort,cBuffers,pICallback,ppMCastAdded) \ - (This)->lpVtbl -> AddMulticast(This,whatType,bsAdapter,bsIPAddress,ulIPPort,cBuffers,pICallback,ppMCastAdded) - -#define ITVEMCastManager_FindMulticast(This,bstrIPAdapter,bstrIPAddress,sPort,ppMCast,pcMatches) \ - (This)->lpVtbl -> FindMulticast(This,bstrIPAdapter,bstrIPAddress,sPort,ppMCast,pcMatches) - -#define ITVEMCastManager_RemoveMulticast(This,pMCast) \ - (This)->lpVtbl -> RemoveMulticast(This,pMCast) - -#define ITVEMCastManager_JoinAll(This) \ - (This)->lpVtbl -> JoinAll(This) - -#define ITVEMCastManager_LeaveAll(This) \ - (This)->lpVtbl -> LeaveAll(This) - -#define ITVEMCastManager_SuspendAll(This,fSuspend) \ - (This)->lpVtbl -> SuspendAll(This,fSuspend) - -#define ITVEMCastManager_Lock_(This) \ - (This)->lpVtbl -> Lock_(This) - -#define ITVEMCastManager_Unlock_(This) \ - (This)->lpVtbl -> Unlock_(This) - -#define ITVEMCastManager_DumpStatsToBSTR(This,iType,pBSTR) \ - (This)->lpVtbl -> DumpStatsToBSTR(This,iType,pBSTR) - -#define ITVEMCastManager_get_HaltFlags(This,plGrfHaltFlags) \ - (This)->lpVtbl -> get_HaltFlags(This,plGrfHaltFlags) - -#define ITVEMCastManager_put_HaltFlags(This,lGrfHaltFlags) \ - (This)->lpVtbl -> put_HaltFlags(This,lGrfHaltFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_get_MCasts_Proxy( - ITVEMCastManager * This, - /* [retval][out] */ ITVEMCasts **pVal); - - -void __RPC_STUB ITVEMCastManager_get_MCasts_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_get_Supervisor_Proxy( - ITVEMCastManager * This, - /* [retval][out] */ ITVESupervisor **ppSupervisor); - - -void __RPC_STUB ITVEMCastManager_get_Supervisor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_put_Supervisor_Proxy( - ITVEMCastManager * This, - /* [in] */ ITVESupervisor *pSupervisor); - - -void __RPC_STUB ITVEMCastManager_put_Supervisor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_AddMulticast_Proxy( - ITVEMCastManager * This, - /* [in] */ NWHAT_Mode whatType, - /* [in] */ BSTR bsAdapter, - /* [in] */ BSTR bsIPAddress, - /* [in] */ LONG ulIPPort, - /* [in] */ LONG cBuffers, - /* [in] */ IUnknown *pICallback, - /* [out] */ ITVEMCast **ppMCastAdded); - - -void __RPC_STUB ITVEMCastManager_AddMulticast_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_FindMulticast_Proxy( - ITVEMCastManager * This, - /* [in] */ BSTR bstrIPAdapter, - /* [in] */ BSTR bstrIPAddress, - /* [in] */ LONG sPort, - /* [out] */ ITVEMCast **ppMCast, - /* [out] */ LONG *pcMatches); - - -void __RPC_STUB ITVEMCastManager_FindMulticast_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_RemoveMulticast_Proxy( - ITVEMCastManager * This, - ITVEMCast *pMCast); - - -void __RPC_STUB ITVEMCastManager_RemoveMulticast_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_JoinAll_Proxy( - ITVEMCastManager * This); - - -void __RPC_STUB ITVEMCastManager_JoinAll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_LeaveAll_Proxy( - ITVEMCastManager * This); - - -void __RPC_STUB ITVEMCastManager_LeaveAll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_SuspendAll_Proxy( - ITVEMCastManager * This, - /* [in] */ VARIANT_BOOL fSuspend); - - -void __RPC_STUB ITVEMCastManager_SuspendAll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_Lock__Proxy( - ITVEMCastManager * This); - - -void __RPC_STUB ITVEMCastManager_Lock__Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_Unlock__Proxy( - ITVEMCastManager * This); - - -void __RPC_STUB ITVEMCastManager_Unlock__Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_DumpStatsToBSTR_Proxy( - ITVEMCastManager * This, - int iType, - BSTR *pBSTR); - - -void __RPC_STUB ITVEMCastManager_DumpStatsToBSTR_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_get_HaltFlags_Proxy( - ITVEMCastManager * This, - /* [retval][out] */ LONG *plGrfHaltFlags); - - -void __RPC_STUB ITVEMCastManager_get_HaltFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_put_HaltFlags_Proxy( - ITVEMCastManager * This, - /* [in] */ LONG lGrfHaltFlags); - - -void __RPC_STUB ITVEMCastManager_put_HaltFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEMCastManager_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEMCastManager_Helper_INTERFACE_DEFINED__ -#define __ITVEMCastManager_Helper_INTERFACE_DEFINED__ - -/* interface ITVEMCastManager_Helper */ -/* [unique][helpstring][hidden][uuid][object] */ - - -EXTERN_C const IID IID_ITVEMCastManager_Helper; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500232-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEMCastManager_Helper : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DumpString( - BSTR bstrDump) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateQueueThread( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE KillQueueThread( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PostToQueueThread( - UINT uiMsg, - WPARAM wParam, - LPARAM lParam) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPacketCounts( - /* [out] */ LONG *pCPackets, - /* [out] */ LONG *pCPacketsDropped, - /* [out] */ LONG *pCPacketsDroppedTotal) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEMCastManager_HelperVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEMCastManager_Helper * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEMCastManager_Helper * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEMCastManager_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DumpString )( - ITVEMCastManager_Helper * This, - BSTR bstrDump); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateQueueThread )( - ITVEMCastManager_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *KillQueueThread )( - ITVEMCastManager_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PostToQueueThread )( - ITVEMCastManager_Helper * This, - UINT uiMsg, - WPARAM wParam, - LPARAM lParam); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPacketCounts )( - ITVEMCastManager_Helper * This, - /* [out] */ LONG *pCPackets, - /* [out] */ LONG *pCPacketsDropped, - /* [out] */ LONG *pCPacketsDroppedTotal); - - END_INTERFACE - } ITVEMCastManager_HelperVtbl; - - interface ITVEMCastManager_Helper - { - CONST_VTBL struct ITVEMCastManager_HelperVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEMCastManager_Helper_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEMCastManager_Helper_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEMCastManager_Helper_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEMCastManager_Helper_DumpString(This,bstrDump) \ - (This)->lpVtbl -> DumpString(This,bstrDump) - -#define ITVEMCastManager_Helper_CreateQueueThread(This) \ - (This)->lpVtbl -> CreateQueueThread(This) - -#define ITVEMCastManager_Helper_KillQueueThread(This) \ - (This)->lpVtbl -> KillQueueThread(This) - -#define ITVEMCastManager_Helper_PostToQueueThread(This,uiMsg,wParam,lParam) \ - (This)->lpVtbl -> PostToQueueThread(This,uiMsg,wParam,lParam) - -#define ITVEMCastManager_Helper_GetPacketCounts(This,pCPackets,pCPacketsDropped,pCPacketsDroppedTotal) \ - (This)->lpVtbl -> GetPacketCounts(This,pCPackets,pCPacketsDropped,pCPacketsDroppedTotal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_Helper_DumpString_Proxy( - ITVEMCastManager_Helper * This, - BSTR bstrDump); - - -void __RPC_STUB ITVEMCastManager_Helper_DumpString_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_Helper_CreateQueueThread_Proxy( - ITVEMCastManager_Helper * This); - - -void __RPC_STUB ITVEMCastManager_Helper_CreateQueueThread_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_Helper_KillQueueThread_Proxy( - ITVEMCastManager_Helper * This); - - -void __RPC_STUB ITVEMCastManager_Helper_KillQueueThread_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_Helper_PostToQueueThread_Proxy( - ITVEMCastManager_Helper * This, - UINT uiMsg, - WPARAM wParam, - LPARAM lParam); - - -void __RPC_STUB ITVEMCastManager_Helper_PostToQueueThread_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastManager_Helper_GetPacketCounts_Proxy( - ITVEMCastManager_Helper * This, - /* [out] */ LONG *pCPackets, - /* [out] */ LONG *pCPacketsDropped, - /* [out] */ LONG *pCPacketsDroppedTotal); - - -void __RPC_STUB ITVEMCastManager_Helper_GetPacketCounts_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEMCastManager_Helper_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEMCastCallback_INTERFACE_DEFINED__ -#define __ITVEMCastCallback_INTERFACE_DEFINED__ - -/* interface ITVEMCastCallback */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEMCastCallback; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500133-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEMCastCallback : public IDispatch - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetMCast( - ITVEMCast *pMCast) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ProcessPacket( - unsigned char *pchBuffer, - long cBytes, - long lPacketId) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PostPacket( - unsigned char *pchBuffer, - long cBytes, - long wPacketId) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEMCastCallbackVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEMCastCallback * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEMCastCallback * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEMCastCallback * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEMCastCallback * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEMCastCallback * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEMCastCallback * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEMCastCallback * 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); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetMCast )( - ITVEMCastCallback * This, - ITVEMCast *pMCast); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ProcessPacket )( - ITVEMCastCallback * This, - unsigned char *pchBuffer, - long cBytes, - long lPacketId); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PostPacket )( - ITVEMCastCallback * This, - unsigned char *pchBuffer, - long cBytes, - long wPacketId); - - END_INTERFACE - } ITVEMCastCallbackVtbl; - - interface ITVEMCastCallback - { - CONST_VTBL struct ITVEMCastCallbackVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEMCastCallback_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEMCastCallback_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEMCastCallback_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEMCastCallback_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEMCastCallback_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEMCastCallback_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEMCastCallback_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEMCastCallback_SetMCast(This,pMCast) \ - (This)->lpVtbl -> SetMCast(This,pMCast) - -#define ITVEMCastCallback_ProcessPacket(This,pchBuffer,cBytes,lPacketId) \ - (This)->lpVtbl -> ProcessPacket(This,pchBuffer,cBytes,lPacketId) - -#define ITVEMCastCallback_PostPacket(This,pchBuffer,cBytes,wPacketId) \ - (This)->lpVtbl -> PostPacket(This,pchBuffer,cBytes,wPacketId) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastCallback_SetMCast_Proxy( - ITVEMCastCallback * This, - ITVEMCast *pMCast); - - -void __RPC_STUB ITVEMCastCallback_SetMCast_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastCallback_ProcessPacket_Proxy( - ITVEMCastCallback * This, - unsigned char *pchBuffer, - long cBytes, - long lPacketId); - - -void __RPC_STUB ITVEMCastCallback_ProcessPacket_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEMCastCallback_PostPacket_Proxy( - ITVEMCastCallback * This, - unsigned char *pchBuffer, - long cBytes, - long wPacketId); - - -void __RPC_STUB ITVEMCastCallback_PostPacket_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEMCastCallback_INTERFACE_DEFINED__ */ - - -#ifndef __ITVECBAnnc_INTERFACE_DEFINED__ -#define __ITVECBAnnc_INTERFACE_DEFINED__ - -/* interface ITVECBAnnc */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVECBAnnc; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500141-FAA5-4df9-8246-BFC23AC5CEA8") - ITVECBAnnc : public IDispatch - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Init( - BSTR bstrFileTrigAdapter, - ITVEService *pService) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVECBAnncVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVECBAnnc * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVECBAnnc * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVECBAnnc * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVECBAnnc * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVECBAnnc * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVECBAnnc * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVECBAnnc * 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); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Init )( - ITVECBAnnc * This, - BSTR bstrFileTrigAdapter, - ITVEService *pService); - - END_INTERFACE - } ITVECBAnncVtbl; - - interface ITVECBAnnc - { - CONST_VTBL struct ITVECBAnncVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVECBAnnc_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVECBAnnc_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVECBAnnc_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVECBAnnc_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVECBAnnc_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVECBAnnc_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVECBAnnc_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVECBAnnc_Init(This,bstrFileTrigAdapter,pService) \ - (This)->lpVtbl -> Init(This,bstrFileTrigAdapter,pService) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVECBAnnc_Init_Proxy( - ITVECBAnnc * This, - BSTR bstrFileTrigAdapter, - ITVEService *pService); - - -void __RPC_STUB ITVECBAnnc_Init_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVECBAnnc_INTERFACE_DEFINED__ */ - - -#ifndef __ITVECBTrig_INTERFACE_DEFINED__ -#define __ITVECBTrig_INTERFACE_DEFINED__ - -/* interface ITVECBTrig */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVECBTrig; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500142-FAA5-4df9-8246-BFC23AC5CEA8") - ITVECBTrig : public IDispatch - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Init( - ITVEVariation *pIVariation) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVECBTrigVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVECBTrig * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVECBTrig * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVECBTrig * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVECBTrig * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVECBTrig * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVECBTrig * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVECBTrig * 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); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Init )( - ITVECBTrig * This, - ITVEVariation *pIVariation); - - END_INTERFACE - } ITVECBTrigVtbl; - - interface ITVECBTrig - { - CONST_VTBL struct ITVECBTrigVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVECBTrig_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVECBTrig_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVECBTrig_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVECBTrig_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVECBTrig_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVECBTrig_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVECBTrig_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVECBTrig_Init(This,pIVariation) \ - (This)->lpVtbl -> Init(This,pIVariation) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVECBTrig_Init_Proxy( - ITVECBTrig * This, - ITVEVariation *pIVariation); - - -void __RPC_STUB ITVECBTrig_Init_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVECBTrig_INTERFACE_DEFINED__ */ - - -#ifndef __ITVECBFile_INTERFACE_DEFINED__ -#define __ITVECBFile_INTERFACE_DEFINED__ - -/* interface ITVECBFile */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVECBFile; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500143-FAA5-4df9-8246-BFC23AC5CEA8") - ITVECBFile : public IDispatch - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Init( - ITVEVariation *pIVariation, - ITVEService *pIService) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVECBFileVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVECBFile * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVECBFile * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVECBFile * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVECBFile * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVECBFile * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVECBFile * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVECBFile * 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); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Init )( - ITVECBFile * This, - ITVEVariation *pIVariation, - ITVEService *pIService); - - END_INTERFACE - } ITVECBFileVtbl; - - interface ITVECBFile - { - CONST_VTBL struct ITVECBFileVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVECBFile_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVECBFile_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVECBFile_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVECBFile_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVECBFile_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVECBFile_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVECBFile_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVECBFile_Init(This,pIVariation,pIService) \ - (This)->lpVtbl -> Init(This,pIVariation,pIService) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVECBFile_Init_Proxy( - ITVECBFile * This, - ITVEVariation *pIVariation, - ITVEService *pIService); - - -void __RPC_STUB ITVECBFile_Init_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVECBFile_INTERFACE_DEFINED__ */ - - -#ifndef __ITVECBDummy_INTERFACE_DEFINED__ -#define __ITVECBDummy_INTERFACE_DEFINED__ - -/* interface ITVECBDummy */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVECBDummy; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500144-FAA5-4df9-8246-BFC23AC5CEA8") - ITVECBDummy : public IDispatch - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Init( - int i) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVECBDummyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVECBDummy * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVECBDummy * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVECBDummy * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVECBDummy * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVECBDummy * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVECBDummy * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVECBDummy * 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); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Init )( - ITVECBDummy * This, - int i); - - END_INTERFACE - } ITVECBDummyVtbl; - - interface ITVECBDummy - { - CONST_VTBL struct ITVECBDummyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVECBDummy_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVECBDummy_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVECBDummy_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVECBDummy_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVECBDummy_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVECBDummy_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVECBDummy_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVECBDummy_Init(This,i) \ - (This)->lpVtbl -> Init(This,i) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVECBDummy_Init_Proxy( - ITVECBDummy * This, - int i); - - -void __RPC_STUB ITVECBDummy_Init_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVECBDummy_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEFile_INTERFACE_DEFINED__ -#define __ITVEFile_INTERFACE_DEFINED__ - -/* interface ITVEFile */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVEFile; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500151-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEFile : public IDispatch - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitializeFile( - /* [in] */ ITVEVariation *pVaria, - /* [in] */ BSTR bsName, - /* [in] */ BSTR bsLoc, - /* [in] */ DATE dateExpires) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitializePackage( - /* [in] */ ITVEVariation *pVaria, - /* [in] */ BSTR bsName, - /* [in] */ BSTR bsLoc, - /* [in] */ DATE dateExpires) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( - /* [retval][out] */ BSTR *pBstrDesc) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Location( - /* [retval][out] */ BSTR *pBstrLoc) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExpireTime( - /* [retval][out] */ DATE *pDateExpires) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsPackage( - /* [retval][out] */ BOOL *pfVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Variation( - /* [retval][out] */ ITVEVariation **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Service( - /* [retval][out] */ ITVEService **pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveYourself( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DumpToBSTR( - /* [out] */ BSTR *pBstrDump) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEFileVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEFile * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEFile * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEFile * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVEFile * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVEFile * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVEFile * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVEFile * 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); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitializeFile )( - ITVEFile * This, - /* [in] */ ITVEVariation *pVaria, - /* [in] */ BSTR bsName, - /* [in] */ BSTR bsLoc, - /* [in] */ DATE dateExpires); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitializePackage )( - ITVEFile * This, - /* [in] */ ITVEVariation *pVaria, - /* [in] */ BSTR bsName, - /* [in] */ BSTR bsLoc, - /* [in] */ DATE dateExpires); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - ITVEFile * This, - /* [retval][out] */ BSTR *pBstrDesc); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Location )( - ITVEFile * This, - /* [retval][out] */ BSTR *pBstrLoc); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExpireTime )( - ITVEFile * This, - /* [retval][out] */ DATE *pDateExpires); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsPackage )( - ITVEFile * This, - /* [retval][out] */ BOOL *pfVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Variation )( - ITVEFile * This, - /* [retval][out] */ ITVEVariation **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Service )( - ITVEFile * This, - /* [retval][out] */ ITVEService **pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveYourself )( - ITVEFile * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DumpToBSTR )( - ITVEFile * This, - /* [out] */ BSTR *pBstrDump); - - END_INTERFACE - } ITVEFileVtbl; - - interface ITVEFile - { - CONST_VTBL struct ITVEFileVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEFile_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEFile_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEFile_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEFile_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVEFile_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVEFile_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVEFile_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVEFile_InitializeFile(This,pVaria,bsName,bsLoc,dateExpires) \ - (This)->lpVtbl -> InitializeFile(This,pVaria,bsName,bsLoc,dateExpires) - -#define ITVEFile_InitializePackage(This,pVaria,bsName,bsLoc,dateExpires) \ - (This)->lpVtbl -> InitializePackage(This,pVaria,bsName,bsLoc,dateExpires) - -#define ITVEFile_get_Description(This,pBstrDesc) \ - (This)->lpVtbl -> get_Description(This,pBstrDesc) - -#define ITVEFile_get_Location(This,pBstrLoc) \ - (This)->lpVtbl -> get_Location(This,pBstrLoc) - -#define ITVEFile_get_ExpireTime(This,pDateExpires) \ - (This)->lpVtbl -> get_ExpireTime(This,pDateExpires) - -#define ITVEFile_get_IsPackage(This,pfVal) \ - (This)->lpVtbl -> get_IsPackage(This,pfVal) - -#define ITVEFile_get_Variation(This,pVal) \ - (This)->lpVtbl -> get_Variation(This,pVal) - -#define ITVEFile_get_Service(This,pVal) \ - (This)->lpVtbl -> get_Service(This,pVal) - -#define ITVEFile_RemoveYourself(This) \ - (This)->lpVtbl -> RemoveYourself(This) - -#define ITVEFile_DumpToBSTR(This,pBstrDump) \ - (This)->lpVtbl -> DumpToBSTR(This,pBstrDump) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFile_InitializeFile_Proxy( - ITVEFile * This, - /* [in] */ ITVEVariation *pVaria, - /* [in] */ BSTR bsName, - /* [in] */ BSTR bsLoc, - /* [in] */ DATE dateExpires); - - -void __RPC_STUB ITVEFile_InitializeFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFile_InitializePackage_Proxy( - ITVEFile * This, - /* [in] */ ITVEVariation *pVaria, - /* [in] */ BSTR bsName, - /* [in] */ BSTR bsLoc, - /* [in] */ DATE dateExpires); - - -void __RPC_STUB ITVEFile_InitializePackage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFile_get_Description_Proxy( - ITVEFile * This, - /* [retval][out] */ BSTR *pBstrDesc); - - -void __RPC_STUB ITVEFile_get_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFile_get_Location_Proxy( - ITVEFile * This, - /* [retval][out] */ BSTR *pBstrLoc); - - -void __RPC_STUB ITVEFile_get_Location_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFile_get_ExpireTime_Proxy( - ITVEFile * This, - /* [retval][out] */ DATE *pDateExpires); - - -void __RPC_STUB ITVEFile_get_ExpireTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFile_get_IsPackage_Proxy( - ITVEFile * This, - /* [retval][out] */ BOOL *pfVal); - - -void __RPC_STUB ITVEFile_get_IsPackage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFile_get_Variation_Proxy( - ITVEFile * This, - /* [retval][out] */ ITVEVariation **pVal); - - -void __RPC_STUB ITVEFile_get_Variation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFile_get_Service_Proxy( - ITVEFile * This, - /* [retval][out] */ ITVEService **pVal); - - -void __RPC_STUB ITVEFile_get_Service_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFile_RemoveYourself_Proxy( - ITVEFile * This); - - -void __RPC_STUB ITVEFile_RemoveYourself_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFile_DumpToBSTR_Proxy( - ITVEFile * This, - /* [out] */ BSTR *pBstrDump); - - -void __RPC_STUB ITVEFile_DumpToBSTR_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEFile_INTERFACE_DEFINED__ */ - - -#ifndef __ITVENavAid_INTERFACE_DEFINED__ -#define __ITVENavAid_INTERFACE_DEFINED__ - -/* interface ITVENavAid */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVENavAid; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500160-FAA5-4df9-8246-BFC23AC5CEA8") - ITVENavAid : public IDispatch - { - public: - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_WebBrowserApp( - /* [in] */ IDispatch *pWebBrowser) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_WebBrowserApp( - /* [retval][out] */ IDispatch **ppWebBrowser) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TVETriggerCtrl( - /* [retval][out] */ ITVETriggerCtrl **ppTriggerCtrl) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_EnableAutoTriggering( - /* [in] */ long lAutoTriggers) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnableAutoTriggering( - /* [retval][out] */ long *plAutoTriggers) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ActiveVariation( - /* [retval][out] */ ITVEVariation **ppActiveVariation) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ActiveVariation( - /* [in] */ ITVEVariation *pActiveVariation) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TVEFeature( - /* [retval][out] */ ITVEFeature **ppTVEFeature) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CacheState( - /* [retval][out] */ BSTR *pbstrBuff) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CacheState( - /* [in] */ BSTR bstrBuff) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NavUsingTVETrigger( - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ long lForceNav, - /* [in] */ long lForceExec) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExecScript( - /* [in] */ BSTR bstrScript, - /* [in] */ BSTR bstrLanguage) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Navigate( - /* [in] */ VARIANT *URL, - /* [in] */ VARIANT *Flags, - /* [in] */ VARIANT *TargetFrameName, - /* [in] */ VARIANT *PostData, - /* [in] */ VARIANT *Headers) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrTVEName( - /* [retval][out] */ BSTR *pbstrName) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrTVEURL( - /* [retval][out] */ BSTR *pbstrURL) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVETune( - /* [in] */ NTUN_Mode tuneMode, - /* [in] */ ITVEService *pService, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEEnhancementNew( - /* [in] */ ITVEEnhancement *pEnh) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEEnhancementUpdated( - /* [in] */ ITVEEnhancement *pEnh, - /* [in] */ long lChangedFlags) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEEnhancementStarting( - /* [in] */ ITVEEnhancement *pEnh) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEEnhancementExpired( - /* [in] */ ITVEEnhancement *pEnh) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVETriggerNew( - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVETriggerUpdated( - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive, - /* [in] */ long lChangedFlags) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVETriggerExpired( - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEPackage( - /* [in] */ NPKG_Mode engPkgMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrUUID, - /* [in] */ long cBytesTotal, - /* [in] */ long cBytesReceived) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEFile( - /* [in] */ NFLE_Mode engFileMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrUrlName, - /* [in] */ BSTR bstrFileName) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVEAuxInfo( - /* [in] */ NWHAT_Mode engAuxInfoMode, - /* [in] */ BSTR bstrAuxInfoString, - /* [in] */ long lChangedFlags, - /* [in] */ long lErrorLine) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyStatusTextChange( - BSTR Text) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyProgressChange( - LONG Progress, - LONG ProgressMax) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyCommandStateChange( - LONG Command, - VARIANT_BOOL Enable) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDownloadBegin( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDownloadComplete( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTitleChange( - BSTR Text) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyPropertyChange( - BSTR szProperty) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyBeforeNavigate2( - IDispatch *pDisp, - VARIANT *URL, - VARIANT *Flags, - VARIANT *TargetFrameName, - VARIANT *PostData, - VARIANT *Headers, - VARIANT_BOOL *Cancel) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyNewWindow2( - IDispatch **ppDisp, - VARIANT_BOOL *Cancel) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyNavigateComplete2( - IDispatch *pDisp, - VARIANT *URL) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDocumentComplete( - IDispatch *pDisp, - VARIANT *URL) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOnQuit( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOnVisible( - VARIANT_BOOL Visible) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOnToolBar( - VARIANT_BOOL ToolBar) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOnMenuBar( - VARIANT_BOOL MenuBar) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOnStatusBar( - VARIANT_BOOL StatusBar) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOnFullScreen( - VARIANT_BOOL FullScreen) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyOnTheaterMode( - VARIANT_BOOL TheaterMode) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVENavAidVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVENavAid * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVENavAid * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVENavAid * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVENavAid * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVENavAid * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVENavAid * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVENavAid * 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); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_WebBrowserApp )( - ITVENavAid * This, - /* [in] */ IDispatch *pWebBrowser); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WebBrowserApp )( - ITVENavAid * This, - /* [retval][out] */ IDispatch **ppWebBrowser); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TVETriggerCtrl )( - ITVENavAid * This, - /* [retval][out] */ ITVETriggerCtrl **ppTriggerCtrl); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EnableAutoTriggering )( - ITVENavAid * This, - /* [in] */ long lAutoTriggers); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnableAutoTriggering )( - ITVENavAid * This, - /* [retval][out] */ long *plAutoTriggers); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveVariation )( - ITVENavAid * This, - /* [retval][out] */ ITVEVariation **ppActiveVariation); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveVariation )( - ITVENavAid * This, - /* [in] */ ITVEVariation *pActiveVariation); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TVEFeature )( - ITVENavAid * This, - /* [retval][out] */ ITVEFeature **ppTVEFeature); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CacheState )( - ITVENavAid * This, - /* [retval][out] */ BSTR *pbstrBuff); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CacheState )( - ITVENavAid * This, - /* [in] */ BSTR bstrBuff); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NavUsingTVETrigger )( - ITVENavAid * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ long lForceNav, - /* [in] */ long lForceExec); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExecScript )( - ITVENavAid * This, - /* [in] */ BSTR bstrScript, - /* [in] */ BSTR bstrLanguage); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Navigate )( - ITVENavAid * This, - /* [in] */ VARIANT *URL, - /* [in] */ VARIANT *Flags, - /* [in] */ VARIANT *TargetFrameName, - /* [in] */ VARIANT *PostData, - /* [in] */ VARIANT *Headers); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrTVEName )( - ITVENavAid * This, - /* [retval][out] */ BSTR *pbstrName); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrTVEURL )( - ITVENavAid * This, - /* [retval][out] */ BSTR *pbstrURL); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVETune )( - ITVENavAid * This, - /* [in] */ NTUN_Mode tuneMode, - /* [in] */ ITVEService *pService, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEEnhancementNew )( - ITVENavAid * This, - /* [in] */ ITVEEnhancement *pEnh); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEEnhancementUpdated )( - ITVENavAid * This, - /* [in] */ ITVEEnhancement *pEnh, - /* [in] */ long lChangedFlags); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEEnhancementStarting )( - ITVENavAid * This, - /* [in] */ ITVEEnhancement *pEnh); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEEnhancementExpired )( - ITVENavAid * This, - /* [in] */ ITVEEnhancement *pEnh); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVETriggerNew )( - ITVENavAid * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVETriggerUpdated )( - ITVENavAid * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive, - /* [in] */ long lChangedFlags); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVETriggerExpired )( - ITVENavAid * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEPackage )( - ITVENavAid * This, - /* [in] */ NPKG_Mode engPkgMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrUUID, - /* [in] */ long cBytesTotal, - /* [in] */ long cBytesReceived); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEFile )( - ITVENavAid * This, - /* [in] */ NFLE_Mode engFileMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrUrlName, - /* [in] */ BSTR bstrFileName); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVEAuxInfo )( - ITVENavAid * This, - /* [in] */ NWHAT_Mode engAuxInfoMode, - /* [in] */ BSTR bstrAuxInfoString, - /* [in] */ long lChangedFlags, - /* [in] */ long lErrorLine); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyStatusTextChange )( - ITVENavAid * This, - BSTR Text); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyProgressChange )( - ITVENavAid * This, - LONG Progress, - LONG ProgressMax); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyCommandStateChange )( - ITVENavAid * This, - LONG Command, - VARIANT_BOOL Enable); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDownloadBegin )( - ITVENavAid * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDownloadComplete )( - ITVENavAid * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTitleChange )( - ITVENavAid * This, - BSTR Text); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyPropertyChange )( - ITVENavAid * This, - BSTR szProperty); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyBeforeNavigate2 )( - ITVENavAid * This, - IDispatch *pDisp, - VARIANT *URL, - VARIANT *Flags, - VARIANT *TargetFrameName, - VARIANT *PostData, - VARIANT *Headers, - VARIANT_BOOL *Cancel); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyNewWindow2 )( - ITVENavAid * This, - IDispatch **ppDisp, - VARIANT_BOOL *Cancel); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyNavigateComplete2 )( - ITVENavAid * This, - IDispatch *pDisp, - VARIANT *URL); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDocumentComplete )( - ITVENavAid * This, - IDispatch *pDisp, - VARIANT *URL); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOnQuit )( - ITVENavAid * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOnVisible )( - ITVENavAid * This, - VARIANT_BOOL Visible); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOnToolBar )( - ITVENavAid * This, - VARIANT_BOOL ToolBar); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOnMenuBar )( - ITVENavAid * This, - VARIANT_BOOL MenuBar); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOnStatusBar )( - ITVENavAid * This, - VARIANT_BOOL StatusBar); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOnFullScreen )( - ITVENavAid * This, - VARIANT_BOOL FullScreen); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyOnTheaterMode )( - ITVENavAid * This, - VARIANT_BOOL TheaterMode); - - END_INTERFACE - } ITVENavAidVtbl; - - interface ITVENavAid - { - CONST_VTBL struct ITVENavAidVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVENavAid_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVENavAid_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVENavAid_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVENavAid_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVENavAid_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVENavAid_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVENavAid_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVENavAid_put_WebBrowserApp(This,pWebBrowser) \ - (This)->lpVtbl -> put_WebBrowserApp(This,pWebBrowser) - -#define ITVENavAid_get_WebBrowserApp(This,ppWebBrowser) \ - (This)->lpVtbl -> get_WebBrowserApp(This,ppWebBrowser) - -#define ITVENavAid_get_TVETriggerCtrl(This,ppTriggerCtrl) \ - (This)->lpVtbl -> get_TVETriggerCtrl(This,ppTriggerCtrl) - -#define ITVENavAid_put_EnableAutoTriggering(This,lAutoTriggers) \ - (This)->lpVtbl -> put_EnableAutoTriggering(This,lAutoTriggers) - -#define ITVENavAid_get_EnableAutoTriggering(This,plAutoTriggers) \ - (This)->lpVtbl -> get_EnableAutoTriggering(This,plAutoTriggers) - -#define ITVENavAid_get_ActiveVariation(This,ppActiveVariation) \ - (This)->lpVtbl -> get_ActiveVariation(This,ppActiveVariation) - -#define ITVENavAid_put_ActiveVariation(This,pActiveVariation) \ - (This)->lpVtbl -> put_ActiveVariation(This,pActiveVariation) - -#define ITVENavAid_get_TVEFeature(This,ppTVEFeature) \ - (This)->lpVtbl -> get_TVEFeature(This,ppTVEFeature) - -#define ITVENavAid_get_CacheState(This,pbstrBuff) \ - (This)->lpVtbl -> get_CacheState(This,pbstrBuff) - -#define ITVENavAid_put_CacheState(This,bstrBuff) \ - (This)->lpVtbl -> put_CacheState(This,bstrBuff) - -#define ITVENavAid_NavUsingTVETrigger(This,pTrigger,lForceNav,lForceExec) \ - (This)->lpVtbl -> NavUsingTVETrigger(This,pTrigger,lForceNav,lForceExec) - -#define ITVENavAid_ExecScript(This,bstrScript,bstrLanguage) \ - (This)->lpVtbl -> ExecScript(This,bstrScript,bstrLanguage) - -#define ITVENavAid_Navigate(This,URL,Flags,TargetFrameName,PostData,Headers) \ - (This)->lpVtbl -> Navigate(This,URL,Flags,TargetFrameName,PostData,Headers) - -#define ITVENavAid_get_CurrTVEName(This,pbstrName) \ - (This)->lpVtbl -> get_CurrTVEName(This,pbstrName) - -#define ITVENavAid_get_CurrTVEURL(This,pbstrURL) \ - (This)->lpVtbl -> get_CurrTVEURL(This,pbstrURL) - -#define ITVENavAid_NotifyTVETune(This,tuneMode,pService,bstrDescription,bstrIPAdapter) \ - (This)->lpVtbl -> NotifyTVETune(This,tuneMode,pService,bstrDescription,bstrIPAdapter) - -#define ITVENavAid_NotifyTVEEnhancementNew(This,pEnh) \ - (This)->lpVtbl -> NotifyTVEEnhancementNew(This,pEnh) - -#define ITVENavAid_NotifyTVEEnhancementUpdated(This,pEnh,lChangedFlags) \ - (This)->lpVtbl -> NotifyTVEEnhancementUpdated(This,pEnh,lChangedFlags) - -#define ITVENavAid_NotifyTVEEnhancementStarting(This,pEnh) \ - (This)->lpVtbl -> NotifyTVEEnhancementStarting(This,pEnh) - -#define ITVENavAid_NotifyTVEEnhancementExpired(This,pEnh) \ - (This)->lpVtbl -> NotifyTVEEnhancementExpired(This,pEnh) - -#define ITVENavAid_NotifyTVETriggerNew(This,pTrigger,fActive) \ - (This)->lpVtbl -> NotifyTVETriggerNew(This,pTrigger,fActive) - -#define ITVENavAid_NotifyTVETriggerUpdated(This,pTrigger,fActive,lChangedFlags) \ - (This)->lpVtbl -> NotifyTVETriggerUpdated(This,pTrigger,fActive,lChangedFlags) - -#define ITVENavAid_NotifyTVETriggerExpired(This,pTrigger,fActive) \ - (This)->lpVtbl -> NotifyTVETriggerExpired(This,pTrigger,fActive) - -#define ITVENavAid_NotifyTVEPackage(This,engPkgMode,pVariation,bstrUUID,cBytesTotal,cBytesReceived) \ - (This)->lpVtbl -> NotifyTVEPackage(This,engPkgMode,pVariation,bstrUUID,cBytesTotal,cBytesReceived) - -#define ITVENavAid_NotifyTVEFile(This,engFileMode,pVariation,bstrUrlName,bstrFileName) \ - (This)->lpVtbl -> NotifyTVEFile(This,engFileMode,pVariation,bstrUrlName,bstrFileName) - -#define ITVENavAid_NotifyTVEAuxInfo(This,engAuxInfoMode,bstrAuxInfoString,lChangedFlags,lErrorLine) \ - (This)->lpVtbl -> NotifyTVEAuxInfo(This,engAuxInfoMode,bstrAuxInfoString,lChangedFlags,lErrorLine) - -#define ITVENavAid_NotifyStatusTextChange(This,Text) \ - (This)->lpVtbl -> NotifyStatusTextChange(This,Text) - -#define ITVENavAid_NotifyProgressChange(This,Progress,ProgressMax) \ - (This)->lpVtbl -> NotifyProgressChange(This,Progress,ProgressMax) - -#define ITVENavAid_NotifyCommandStateChange(This,Command,Enable) \ - (This)->lpVtbl -> NotifyCommandStateChange(This,Command,Enable) - -#define ITVENavAid_NotifyDownloadBegin(This) \ - (This)->lpVtbl -> NotifyDownloadBegin(This) - -#define ITVENavAid_NotifyDownloadComplete(This) \ - (This)->lpVtbl -> NotifyDownloadComplete(This) - -#define ITVENavAid_NotifyTitleChange(This,Text) \ - (This)->lpVtbl -> NotifyTitleChange(This,Text) - -#define ITVENavAid_NotifyPropertyChange(This,szProperty) \ - (This)->lpVtbl -> NotifyPropertyChange(This,szProperty) - -#define ITVENavAid_NotifyBeforeNavigate2(This,pDisp,URL,Flags,TargetFrameName,PostData,Headers,Cancel) \ - (This)->lpVtbl -> NotifyBeforeNavigate2(This,pDisp,URL,Flags,TargetFrameName,PostData,Headers,Cancel) - -#define ITVENavAid_NotifyNewWindow2(This,ppDisp,Cancel) \ - (This)->lpVtbl -> NotifyNewWindow2(This,ppDisp,Cancel) - -#define ITVENavAid_NotifyNavigateComplete2(This,pDisp,URL) \ - (This)->lpVtbl -> NotifyNavigateComplete2(This,pDisp,URL) - -#define ITVENavAid_NotifyDocumentComplete(This,pDisp,URL) \ - (This)->lpVtbl -> NotifyDocumentComplete(This,pDisp,URL) - -#define ITVENavAid_NotifyOnQuit(This) \ - (This)->lpVtbl -> NotifyOnQuit(This) - -#define ITVENavAid_NotifyOnVisible(This,Visible) \ - (This)->lpVtbl -> NotifyOnVisible(This,Visible) - -#define ITVENavAid_NotifyOnToolBar(This,ToolBar) \ - (This)->lpVtbl -> NotifyOnToolBar(This,ToolBar) - -#define ITVENavAid_NotifyOnMenuBar(This,MenuBar) \ - (This)->lpVtbl -> NotifyOnMenuBar(This,MenuBar) - -#define ITVENavAid_NotifyOnStatusBar(This,StatusBar) \ - (This)->lpVtbl -> NotifyOnStatusBar(This,StatusBar) - -#define ITVENavAid_NotifyOnFullScreen(This,FullScreen) \ - (This)->lpVtbl -> NotifyOnFullScreen(This,FullScreen) - -#define ITVENavAid_NotifyOnTheaterMode(This,TheaterMode) \ - (This)->lpVtbl -> NotifyOnTheaterMode(This,TheaterMode) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVENavAid_put_WebBrowserApp_Proxy( - ITVENavAid * This, - /* [in] */ IDispatch *pWebBrowser); - - -void __RPC_STUB ITVENavAid_put_WebBrowserApp_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVENavAid_get_WebBrowserApp_Proxy( - ITVENavAid * This, - /* [retval][out] */ IDispatch **ppWebBrowser); - - -void __RPC_STUB ITVENavAid_get_WebBrowserApp_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVENavAid_get_TVETriggerCtrl_Proxy( - ITVENavAid * This, - /* [retval][out] */ ITVETriggerCtrl **ppTriggerCtrl); - - -void __RPC_STUB ITVENavAid_get_TVETriggerCtrl_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVENavAid_put_EnableAutoTriggering_Proxy( - ITVENavAid * This, - /* [in] */ long lAutoTriggers); - - -void __RPC_STUB ITVENavAid_put_EnableAutoTriggering_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVENavAid_get_EnableAutoTriggering_Proxy( - ITVENavAid * This, - /* [retval][out] */ long *plAutoTriggers); - - -void __RPC_STUB ITVENavAid_get_EnableAutoTriggering_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVENavAid_get_ActiveVariation_Proxy( - ITVENavAid * This, - /* [retval][out] */ ITVEVariation **ppActiveVariation); - - -void __RPC_STUB ITVENavAid_get_ActiveVariation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVENavAid_put_ActiveVariation_Proxy( - ITVENavAid * This, - /* [in] */ ITVEVariation *pActiveVariation); - - -void __RPC_STUB ITVENavAid_put_ActiveVariation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVENavAid_get_TVEFeature_Proxy( - ITVENavAid * This, - /* [retval][out] */ ITVEFeature **ppTVEFeature); - - -void __RPC_STUB ITVENavAid_get_TVEFeature_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVENavAid_get_CacheState_Proxy( - ITVENavAid * This, - /* [retval][out] */ BSTR *pbstrBuff); - - -void __RPC_STUB ITVENavAid_get_CacheState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVENavAid_put_CacheState_Proxy( - ITVENavAid * This, - /* [in] */ BSTR bstrBuff); - - -void __RPC_STUB ITVENavAid_put_CacheState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NavUsingTVETrigger_Proxy( - ITVENavAid * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ long lForceNav, - /* [in] */ long lForceExec); - - -void __RPC_STUB ITVENavAid_NavUsingTVETrigger_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_ExecScript_Proxy( - ITVENavAid * This, - /* [in] */ BSTR bstrScript, - /* [in] */ BSTR bstrLanguage); - - -void __RPC_STUB ITVENavAid_ExecScript_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_Navigate_Proxy( - ITVENavAid * This, - /* [in] */ VARIANT *URL, - /* [in] */ VARIANT *Flags, - /* [in] */ VARIANT *TargetFrameName, - /* [in] */ VARIANT *PostData, - /* [in] */ VARIANT *Headers); - - -void __RPC_STUB ITVENavAid_Navigate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVENavAid_get_CurrTVEName_Proxy( - ITVENavAid * This, - /* [retval][out] */ BSTR *pbstrName); - - -void __RPC_STUB ITVENavAid_get_CurrTVEName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVENavAid_get_CurrTVEURL_Proxy( - ITVENavAid * This, - /* [retval][out] */ BSTR *pbstrURL); - - -void __RPC_STUB ITVENavAid_get_CurrTVEURL_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyTVETune_Proxy( - ITVENavAid * This, - /* [in] */ NTUN_Mode tuneMode, - /* [in] */ ITVEService *pService, - /* [in] */ BSTR bstrDescription, - /* [in] */ BSTR bstrIPAdapter); - - -void __RPC_STUB ITVENavAid_NotifyTVETune_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyTVEEnhancementNew_Proxy( - ITVENavAid * This, - /* [in] */ ITVEEnhancement *pEnh); - - -void __RPC_STUB ITVENavAid_NotifyTVEEnhancementNew_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyTVEEnhancementUpdated_Proxy( - ITVENavAid * This, - /* [in] */ ITVEEnhancement *pEnh, - /* [in] */ long lChangedFlags); - - -void __RPC_STUB ITVENavAid_NotifyTVEEnhancementUpdated_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyTVEEnhancementStarting_Proxy( - ITVENavAid * This, - /* [in] */ ITVEEnhancement *pEnh); - - -void __RPC_STUB ITVENavAid_NotifyTVEEnhancementStarting_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyTVEEnhancementExpired_Proxy( - ITVENavAid * This, - /* [in] */ ITVEEnhancement *pEnh); - - -void __RPC_STUB ITVENavAid_NotifyTVEEnhancementExpired_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyTVETriggerNew_Proxy( - ITVENavAid * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive); - - -void __RPC_STUB ITVENavAid_NotifyTVETriggerNew_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyTVETriggerUpdated_Proxy( - ITVENavAid * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive, - /* [in] */ long lChangedFlags); - - -void __RPC_STUB ITVENavAid_NotifyTVETriggerUpdated_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyTVETriggerExpired_Proxy( - ITVENavAid * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive); - - -void __RPC_STUB ITVENavAid_NotifyTVETriggerExpired_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyTVEPackage_Proxy( - ITVENavAid * This, - /* [in] */ NPKG_Mode engPkgMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrUUID, - /* [in] */ long cBytesTotal, - /* [in] */ long cBytesReceived); - - -void __RPC_STUB ITVENavAid_NotifyTVEPackage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyTVEFile_Proxy( - ITVENavAid * This, - /* [in] */ NFLE_Mode engFileMode, - /* [in] */ ITVEVariation *pVariation, - /* [in] */ BSTR bstrUrlName, - /* [in] */ BSTR bstrFileName); - - -void __RPC_STUB ITVENavAid_NotifyTVEFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyTVEAuxInfo_Proxy( - ITVENavAid * This, - /* [in] */ NWHAT_Mode engAuxInfoMode, - /* [in] */ BSTR bstrAuxInfoString, - /* [in] */ long lChangedFlags, - /* [in] */ long lErrorLine); - - -void __RPC_STUB ITVENavAid_NotifyTVEAuxInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyStatusTextChange_Proxy( - ITVENavAid * This, - BSTR Text); - - -void __RPC_STUB ITVENavAid_NotifyStatusTextChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyProgressChange_Proxy( - ITVENavAid * This, - LONG Progress, - LONG ProgressMax); - - -void __RPC_STUB ITVENavAid_NotifyProgressChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyCommandStateChange_Proxy( - ITVENavAid * This, - LONG Command, - VARIANT_BOOL Enable); - - -void __RPC_STUB ITVENavAid_NotifyCommandStateChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyDownloadBegin_Proxy( - ITVENavAid * This); - - -void __RPC_STUB ITVENavAid_NotifyDownloadBegin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyDownloadComplete_Proxy( - ITVENavAid * This); - - -void __RPC_STUB ITVENavAid_NotifyDownloadComplete_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyTitleChange_Proxy( - ITVENavAid * This, - BSTR Text); - - -void __RPC_STUB ITVENavAid_NotifyTitleChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyPropertyChange_Proxy( - ITVENavAid * This, - BSTR szProperty); - - -void __RPC_STUB ITVENavAid_NotifyPropertyChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyBeforeNavigate2_Proxy( - ITVENavAid * This, - IDispatch *pDisp, - VARIANT *URL, - VARIANT *Flags, - VARIANT *TargetFrameName, - VARIANT *PostData, - VARIANT *Headers, - VARIANT_BOOL *Cancel); - - -void __RPC_STUB ITVENavAid_NotifyBeforeNavigate2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyNewWindow2_Proxy( - ITVENavAid * This, - IDispatch **ppDisp, - VARIANT_BOOL *Cancel); - - -void __RPC_STUB ITVENavAid_NotifyNewWindow2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyNavigateComplete2_Proxy( - ITVENavAid * This, - IDispatch *pDisp, - VARIANT *URL); - - -void __RPC_STUB ITVENavAid_NotifyNavigateComplete2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyDocumentComplete_Proxy( - ITVENavAid * This, - IDispatch *pDisp, - VARIANT *URL); - - -void __RPC_STUB ITVENavAid_NotifyDocumentComplete_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyOnQuit_Proxy( - ITVENavAid * This); - - -void __RPC_STUB ITVENavAid_NotifyOnQuit_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyOnVisible_Proxy( - ITVENavAid * This, - VARIANT_BOOL Visible); - - -void __RPC_STUB ITVENavAid_NotifyOnVisible_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyOnToolBar_Proxy( - ITVENavAid * This, - VARIANT_BOOL ToolBar); - - -void __RPC_STUB ITVENavAid_NotifyOnToolBar_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyOnMenuBar_Proxy( - ITVENavAid * This, - VARIANT_BOOL MenuBar); - - -void __RPC_STUB ITVENavAid_NotifyOnMenuBar_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyOnStatusBar_Proxy( - ITVENavAid * This, - VARIANT_BOOL StatusBar); - - -void __RPC_STUB ITVENavAid_NotifyOnStatusBar_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyOnFullScreen_Proxy( - ITVENavAid * This, - VARIANT_BOOL FullScreen); - - -void __RPC_STUB ITVENavAid_NotifyOnFullScreen_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NotifyOnTheaterMode_Proxy( - ITVENavAid * This, - VARIANT_BOOL TheaterMode); - - -void __RPC_STUB ITVENavAid_NotifyOnTheaterMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVENavAid_INTERFACE_DEFINED__ */ - - -#ifndef __ITVENavAid_NoVidCtl_INTERFACE_DEFINED__ -#define __ITVENavAid_NoVidCtl_INTERFACE_DEFINED__ - -/* interface ITVENavAid_NoVidCtl */ -/* [unique][helpstring][hidden][uuid][object] */ - - -EXTERN_C const IID IID_ITVENavAid_NoVidCtl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500360-FAA5-4df9-8246-BFC23AC5CEA8") - ITVENavAid_NoVidCtl : public IUnknown - { - public: - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_NoVidCtl_Supervisor( - /* [in] */ ITVESupervisor *pSuper) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NoVidCtl_Supervisor( - /* [retval][out] */ ITVESupervisor **ppSuper) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVENavAid_NoVidCtlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVENavAid_NoVidCtl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVENavAid_NoVidCtl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVENavAid_NoVidCtl * This); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NoVidCtl_Supervisor )( - ITVENavAid_NoVidCtl * This, - /* [in] */ ITVESupervisor *pSuper); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NoVidCtl_Supervisor )( - ITVENavAid_NoVidCtl * This, - /* [retval][out] */ ITVESupervisor **ppSuper); - - END_INTERFACE - } ITVENavAid_NoVidCtlVtbl; - - interface ITVENavAid_NoVidCtl - { - CONST_VTBL struct ITVENavAid_NoVidCtlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVENavAid_NoVidCtl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVENavAid_NoVidCtl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVENavAid_NoVidCtl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVENavAid_NoVidCtl_put_NoVidCtl_Supervisor(This,pSuper) \ - (This)->lpVtbl -> put_NoVidCtl_Supervisor(This,pSuper) - -#define ITVENavAid_NoVidCtl_get_NoVidCtl_Supervisor(This,ppSuper) \ - (This)->lpVtbl -> get_NoVidCtl_Supervisor(This,ppSuper) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NoVidCtl_put_NoVidCtl_Supervisor_Proxy( - ITVENavAid_NoVidCtl * This, - /* [in] */ ITVESupervisor *pSuper); - - -void __RPC_STUB ITVENavAid_NoVidCtl_put_NoVidCtl_Supervisor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVENavAid_NoVidCtl_get_NoVidCtl_Supervisor_Proxy( - ITVENavAid_NoVidCtl * This, - /* [retval][out] */ ITVESupervisor **ppSuper); - - -void __RPC_STUB ITVENavAid_NoVidCtl_get_NoVidCtl_Supervisor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVENavAid_NoVidCtl_INTERFACE_DEFINED__ */ - - -#ifndef __ITVENavAid_Helper_INTERFACE_DEFINED__ -#define __ITVENavAid_Helper_INTERFACE_DEFINED__ - -/* interface ITVENavAid_Helper */ -/* [unique][helpstring][dual][hidden][uuid][object] */ - - -EXTERN_C const IID IID_ITVENavAid_Helper; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500260-FAA5-4df9-8246-BFC23AC5CEA8") - ITVENavAid_Helper : public IUnknown - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LocateVidAndTriggerCtrls( - /* [out] */ IDispatch **pVidCtrl, - /* [out] */ IDispatch **pTrigCtrl) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyTVETriggerUpdated_XProxy( - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive, - /* [in] */ long lChangedFlags) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReInitCurrNavState( - /* [in] */ long lReserved) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVENavAid_HelperVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVENavAid_Helper * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVENavAid_Helper * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVENavAid_Helper * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LocateVidAndTriggerCtrls )( - ITVENavAid_Helper * This, - /* [out] */ IDispatch **pVidCtrl, - /* [out] */ IDispatch **pTrigCtrl); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyTVETriggerUpdated_XProxy )( - ITVENavAid_Helper * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive, - /* [in] */ long lChangedFlags); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReInitCurrNavState )( - ITVENavAid_Helper * This, - /* [in] */ long lReserved); - - END_INTERFACE - } ITVENavAid_HelperVtbl; - - interface ITVENavAid_Helper - { - CONST_VTBL struct ITVENavAid_HelperVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVENavAid_Helper_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVENavAid_Helper_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVENavAid_Helper_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVENavAid_Helper_LocateVidAndTriggerCtrls(This,pVidCtrl,pTrigCtrl) \ - (This)->lpVtbl -> LocateVidAndTriggerCtrls(This,pVidCtrl,pTrigCtrl) - -#define ITVENavAid_Helper_NotifyTVETriggerUpdated_XProxy(This,pTrigger,fActive,lChangedFlags) \ - (This)->lpVtbl -> NotifyTVETriggerUpdated_XProxy(This,pTrigger,fActive,lChangedFlags) - -#define ITVENavAid_Helper_ReInitCurrNavState(This,lReserved) \ - (This)->lpVtbl -> ReInitCurrNavState(This,lReserved) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_Helper_LocateVidAndTriggerCtrls_Proxy( - ITVENavAid_Helper * This, - /* [out] */ IDispatch **pVidCtrl, - /* [out] */ IDispatch **pTrigCtrl); - - -void __RPC_STUB ITVENavAid_Helper_LocateVidAndTriggerCtrls_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_Helper_NotifyTVETriggerUpdated_XProxy_Proxy( - ITVENavAid_Helper * This, - /* [in] */ ITVETrigger *pTrigger, - /* [in] */ BOOL fActive, - /* [in] */ long lChangedFlags); - - -void __RPC_STUB ITVENavAid_Helper_NotifyTVETriggerUpdated_XProxy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVENavAid_Helper_ReInitCurrNavState_Proxy( - ITVENavAid_Helper * This, - /* [in] */ long lReserved); - - -void __RPC_STUB ITVENavAid_Helper_ReInitCurrNavState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVENavAid_Helper_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEFilter_INTERFACE_DEFINED__ -#define __ITVEFilter_INTERFACE_DEFINED__ - -/* interface ITVEFilter */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_ITVEFilter; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500180-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEFilter : public IUnknown - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupervisorPunk( - /* [retval][out] */ IUnknown **ppSuperPunk) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IPAdapterAddress( - /* [retval][out] */ BSTR *pbstrIPAddr) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_IPAdapterAddress( - /* [in] */ BSTR bstrIPAddr) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StationID( - /* [retval][out] */ BSTR *pbstrStationID) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_StationID( - /* [in] */ BSTR bstrStationID) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MulticastList( - /* [retval][out] */ BSTR *pbstrMulticastList) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AdapterDescription( - /* [retval][out] */ BSTR *pbstrAdapterDescription) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReTune( void) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HaltFlags( - /* [retval][out] */ LONG *plGrfHaltFlags) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_HaltFlags( - /* [in] */ LONG lGrfHaltFlags) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ParseCCBytePair( - /* [in] */ LONG lByteType, - /* [in] */ BYTE byte1, - /* [in] */ BYTE byte2) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IPSinkAdapterAddress( - /* [retval][out] */ BSTR *pbstrIPAddr) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVEFilterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEFilter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEFilter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEFilter * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupervisorPunk )( - ITVEFilter * This, - /* [retval][out] */ IUnknown **ppSuperPunk); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IPAdapterAddress )( - ITVEFilter * This, - /* [retval][out] */ BSTR *pbstrIPAddr); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IPAdapterAddress )( - ITVEFilter * This, - /* [in] */ BSTR bstrIPAddr); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StationID )( - ITVEFilter * This, - /* [retval][out] */ BSTR *pbstrStationID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StationID )( - ITVEFilter * This, - /* [in] */ BSTR bstrStationID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MulticastList )( - ITVEFilter * This, - /* [retval][out] */ BSTR *pbstrMulticastList); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AdapterDescription )( - ITVEFilter * This, - /* [retval][out] */ BSTR *pbstrAdapterDescription); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReTune )( - ITVEFilter * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HaltFlags )( - ITVEFilter * This, - /* [retval][out] */ LONG *plGrfHaltFlags); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HaltFlags )( - ITVEFilter * This, - /* [in] */ LONG lGrfHaltFlags); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ParseCCBytePair )( - ITVEFilter * This, - /* [in] */ LONG lByteType, - /* [in] */ BYTE byte1, - /* [in] */ BYTE byte2); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IPSinkAdapterAddress )( - ITVEFilter * This, - /* [retval][out] */ BSTR *pbstrIPAddr); - - END_INTERFACE - } ITVEFilterVtbl; - - interface ITVEFilter - { - CONST_VTBL struct ITVEFilterVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEFilter_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEFilter_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEFilter_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVEFilter_get_SupervisorPunk(This,ppSuperPunk) \ - (This)->lpVtbl -> get_SupervisorPunk(This,ppSuperPunk) - -#define ITVEFilter_get_IPAdapterAddress(This,pbstrIPAddr) \ - (This)->lpVtbl -> get_IPAdapterAddress(This,pbstrIPAddr) - -#define ITVEFilter_put_IPAdapterAddress(This,bstrIPAddr) \ - (This)->lpVtbl -> put_IPAdapterAddress(This,bstrIPAddr) - -#define ITVEFilter_get_StationID(This,pbstrStationID) \ - (This)->lpVtbl -> get_StationID(This,pbstrStationID) - -#define ITVEFilter_put_StationID(This,bstrStationID) \ - (This)->lpVtbl -> put_StationID(This,bstrStationID) - -#define ITVEFilter_get_MulticastList(This,pbstrMulticastList) \ - (This)->lpVtbl -> get_MulticastList(This,pbstrMulticastList) - -#define ITVEFilter_get_AdapterDescription(This,pbstrAdapterDescription) \ - (This)->lpVtbl -> get_AdapterDescription(This,pbstrAdapterDescription) - -#define ITVEFilter_ReTune(This) \ - (This)->lpVtbl -> ReTune(This) - -#define ITVEFilter_get_HaltFlags(This,plGrfHaltFlags) \ - (This)->lpVtbl -> get_HaltFlags(This,plGrfHaltFlags) - -#define ITVEFilter_put_HaltFlags(This,lGrfHaltFlags) \ - (This)->lpVtbl -> put_HaltFlags(This,lGrfHaltFlags) - -#define ITVEFilter_ParseCCBytePair(This,lByteType,byte1,byte2) \ - (This)->lpVtbl -> ParseCCBytePair(This,lByteType,byte1,byte2) - -#define ITVEFilter_get_IPSinkAdapterAddress(This,pbstrIPAddr) \ - (This)->lpVtbl -> get_IPSinkAdapterAddress(This,pbstrIPAddr) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFilter_get_SupervisorPunk_Proxy( - ITVEFilter * This, - /* [retval][out] */ IUnknown **ppSuperPunk); - - -void __RPC_STUB ITVEFilter_get_SupervisorPunk_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFilter_get_IPAdapterAddress_Proxy( - ITVEFilter * This, - /* [retval][out] */ BSTR *pbstrIPAddr); - - -void __RPC_STUB ITVEFilter_get_IPAdapterAddress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEFilter_put_IPAdapterAddress_Proxy( - ITVEFilter * This, - /* [in] */ BSTR bstrIPAddr); - - -void __RPC_STUB ITVEFilter_put_IPAdapterAddress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFilter_get_StationID_Proxy( - ITVEFilter * This, - /* [retval][out] */ BSTR *pbstrStationID); - - -void __RPC_STUB ITVEFilter_get_StationID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEFilter_put_StationID_Proxy( - ITVEFilter * This, - /* [in] */ BSTR bstrStationID); - - -void __RPC_STUB ITVEFilter_put_StationID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFilter_get_MulticastList_Proxy( - ITVEFilter * This, - /* [retval][out] */ BSTR *pbstrMulticastList); - - -void __RPC_STUB ITVEFilter_get_MulticastList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFilter_get_AdapterDescription_Proxy( - ITVEFilter * This, - /* [retval][out] */ BSTR *pbstrAdapterDescription); - - -void __RPC_STUB ITVEFilter_get_AdapterDescription_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFilter_ReTune_Proxy( - ITVEFilter * This); - - -void __RPC_STUB ITVEFilter_ReTune_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFilter_get_HaltFlags_Proxy( - ITVEFilter * This, - /* [retval][out] */ LONG *plGrfHaltFlags); - - -void __RPC_STUB ITVEFilter_get_HaltFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITVEFilter_put_HaltFlags_Proxy( - ITVEFilter * This, - /* [in] */ LONG lGrfHaltFlags); - - -void __RPC_STUB ITVEFilter_put_HaltFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITVEFilter_ParseCCBytePair_Proxy( - ITVEFilter * This, - /* [in] */ LONG lByteType, - /* [in] */ BYTE byte1, - /* [in] */ BYTE byte2); - - -void __RPC_STUB ITVEFilter_ParseCCBytePair_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITVEFilter_get_IPSinkAdapterAddress_Proxy( - ITVEFilter * This, - /* [retval][out] */ BSTR *pbstrIPAddr); - - -void __RPC_STUB ITVEFilter_get_IPSinkAdapterAddress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVEFilter_INTERFACE_DEFINED__ */ - - -#ifndef __ITVEFilter_Helper_INTERFACE_DEFINED__ -#define __ITVEFilter_Helper_INTERFACE_DEFINED__ - -/* interface ITVEFilter_Helper */ -/* [unique][helpstring][hidden][uuid][object] */ - - -EXTERN_C const IID IID_ITVEFilter_Helper; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500280-FAA5-4df9-8246-BFC23AC5CEA8") - ITVEFilter_Helper : public IUnknown - { - public: - }; - -#else /* C style interface */ - - typedef struct ITVEFilter_HelperVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVEFilter_Helper * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVEFilter_Helper * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVEFilter_Helper * This); - - END_INTERFACE - } ITVEFilter_HelperVtbl; - - interface ITVEFilter_Helper - { - CONST_VTBL struct ITVEFilter_HelperVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVEFilter_Helper_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVEFilter_Helper_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVEFilter_Helper_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __ITVEFilter_Helper_INTERFACE_DEFINED__ */ - - -#ifndef __ITVETriggerCtrl_INTERFACE_DEFINED__ -#define __ITVETriggerCtrl_INTERFACE_DEFINED__ - -/* interface ITVETriggerCtrl */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITVETriggerCtrl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500190-FAA5-4df9-8246-BFC23AC5CEA8") - ITVETriggerCtrl : public IDispatch - { - public: - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_enabled( - /* [in] */ VARIANT_BOOL newVal) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_enabled( - /* [retval][out] */ VARIANT_BOOL *pVal) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_sourceID( - /* [retval][out] */ BSTR *pbstrID) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_releasable( - /* [in] */ VARIANT_BOOL newVal) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_releasable( - /* [retval][out] */ VARIANT_BOOL *pVal) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_backChannel( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_contentLevel( - /* [retval][out] */ double *pVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVETriggerCtrlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVETriggerCtrl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVETriggerCtrl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVETriggerCtrl * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITVETriggerCtrl * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITVETriggerCtrl * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITVETriggerCtrl * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITVETriggerCtrl * 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][propput] */ HRESULT ( STDMETHODCALLTYPE *put_enabled )( - ITVETriggerCtrl * This, - /* [in] */ VARIANT_BOOL newVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_enabled )( - ITVETriggerCtrl * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_sourceID )( - ITVETriggerCtrl * This, - /* [retval][out] */ BSTR *pbstrID); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_releasable )( - ITVETriggerCtrl * This, - /* [in] */ VARIANT_BOOL newVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_releasable )( - ITVETriggerCtrl * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_backChannel )( - ITVETriggerCtrl * This, - /* [retval][out] */ BSTR *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_contentLevel )( - ITVETriggerCtrl * This, - /* [retval][out] */ double *pVal); - - END_INTERFACE - } ITVETriggerCtrlVtbl; - - interface ITVETriggerCtrl - { - CONST_VTBL struct ITVETriggerCtrlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVETriggerCtrl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVETriggerCtrl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVETriggerCtrl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVETriggerCtrl_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITVETriggerCtrl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITVETriggerCtrl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITVETriggerCtrl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITVETriggerCtrl_put_enabled(This,newVal) \ - (This)->lpVtbl -> put_enabled(This,newVal) - -#define ITVETriggerCtrl_get_enabled(This,pVal) \ - (This)->lpVtbl -> get_enabled(This,pVal) - -#define ITVETriggerCtrl_get_sourceID(This,pbstrID) \ - (This)->lpVtbl -> get_sourceID(This,pbstrID) - -#define ITVETriggerCtrl_put_releasable(This,newVal) \ - (This)->lpVtbl -> put_releasable(This,newVal) - -#define ITVETriggerCtrl_get_releasable(This,pVal) \ - (This)->lpVtbl -> get_releasable(This,pVal) - -#define ITVETriggerCtrl_get_backChannel(This,pVal) \ - (This)->lpVtbl -> get_backChannel(This,pVal) - -#define ITVETriggerCtrl_get_contentLevel(This,pVal) \ - (This)->lpVtbl -> get_contentLevel(This,pVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ITVETriggerCtrl_put_enabled_Proxy( - ITVETriggerCtrl * This, - /* [in] */ VARIANT_BOOL newVal); - - -void __RPC_STUB ITVETriggerCtrl_put_enabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ITVETriggerCtrl_get_enabled_Proxy( - ITVETriggerCtrl * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - -void __RPC_STUB ITVETriggerCtrl_get_enabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ITVETriggerCtrl_get_sourceID_Proxy( - ITVETriggerCtrl * This, - /* [retval][out] */ BSTR *pbstrID); - - -void __RPC_STUB ITVETriggerCtrl_get_sourceID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ITVETriggerCtrl_put_releasable_Proxy( - ITVETriggerCtrl * This, - /* [in] */ VARIANT_BOOL newVal); - - -void __RPC_STUB ITVETriggerCtrl_put_releasable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ITVETriggerCtrl_get_releasable_Proxy( - ITVETriggerCtrl * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - -void __RPC_STUB ITVETriggerCtrl_get_releasable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ITVETriggerCtrl_get_backChannel_Proxy( - ITVETriggerCtrl * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB ITVETriggerCtrl_get_backChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ITVETriggerCtrl_get_contentLevel_Proxy( - ITVETriggerCtrl * This, - /* [retval][out] */ double *pVal); - - -void __RPC_STUB ITVETriggerCtrl_get_contentLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVETriggerCtrl_INTERFACE_DEFINED__ */ - - -#ifndef __ITVETriggerCtrl_Helper_INTERFACE_DEFINED__ -#define __ITVETriggerCtrl_Helper_INTERFACE_DEFINED__ - -/* interface ITVETriggerCtrl_Helper */ -/* [unique][helpstring][hidden][uuid][object] */ - - -EXTERN_C const IID IID_ITVETriggerCtrl_Helper; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500191-FAA5-4df9-8246-BFC23AC5CEA8") - ITVETriggerCtrl_Helper : public IUnknown - { - public: - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_sourceID( - /* [in] */ BSTR pSourceUUID) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TopLevelPage( - /* [retval][out] */ BSTR *pURL) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITVETriggerCtrl_HelperVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITVETriggerCtrl_Helper * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITVETriggerCtrl_Helper * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITVETriggerCtrl_Helper * This); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_sourceID )( - ITVETriggerCtrl_Helper * This, - /* [in] */ BSTR pSourceUUID); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TopLevelPage )( - ITVETriggerCtrl_Helper * This, - /* [retval][out] */ BSTR *pURL); - - END_INTERFACE - } ITVETriggerCtrl_HelperVtbl; - - interface ITVETriggerCtrl_Helper - { - CONST_VTBL struct ITVETriggerCtrl_HelperVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITVETriggerCtrl_Helper_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITVETriggerCtrl_Helper_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITVETriggerCtrl_Helper_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITVETriggerCtrl_Helper_put_sourceID(This,pSourceUUID) \ - (This)->lpVtbl -> put_sourceID(This,pSourceUUID) - -#define ITVETriggerCtrl_Helper_get_TopLevelPage(This,pURL) \ - (This)->lpVtbl -> get_TopLevelPage(This,pURL) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ITVETriggerCtrl_Helper_put_sourceID_Proxy( - ITVETriggerCtrl_Helper * This, - /* [in] */ BSTR pSourceUUID); - - -void __RPC_STUB ITVETriggerCtrl_Helper_put_sourceID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ITVETriggerCtrl_Helper_get_TopLevelPage_Proxy( - ITVETriggerCtrl_Helper * This, - /* [retval][out] */ BSTR *pURL); - - -void __RPC_STUB ITVETriggerCtrl_Helper_get_TopLevelPage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITVETriggerCtrl_Helper_INTERFACE_DEFINED__ */ - - - -#ifndef __MSTvELib_LIBRARY_DEFINED__ -#define __MSTvELib_LIBRARY_DEFINED__ - -/* library MSTvELib */ -/* [helpstring][version][uuid] */ - -typedef -enum NENH_grfDiff - { NENH_grfNone = 0, - NENH_grfDescription = 0x1, - NENH_grfIsPrimary = 0x2, - NENH_grfProtocolVersion = 0x4, - NENH_grfSessionUserName = 0x8, - NENH_grfSessionId = 0x10, - NENH_grfSessionVersion = 0x20, - NENH_grfSessionIPAddress = 0x40, - NENH_grfSessionName = 0x80, - NENH_grfEmailAddresses = 0x100, - NENH_grfPhoneNumbers = 0x200, - NENH_grfUUID = 0x400, - NENH_grfStartTime = 0x800, - NENH_grfStopTime = 0x1000, - NENH_grfType = 0x2000, - NENH_grfTveType = 0x4000, - NENH_grfTveSize = 0x8000, - NENH_grfTveLevel = 0x10000, - NENH_grfAttributes = 0x20000, - NENH_grfRest = 0x40000, - NENH_grfVariationAdded = 0x80000, - NENH_grfVariationRemoved = 0x100000, - NENH_grfDescriptionURI = 0x200000, - NENH_grfSomeVarIP = 0x400000, - NENH_grfSomeVarText = 0x800000, - NENH_grfSomeVarBandwidth = 0x1000000, - NENH_grfSomeVarLanguages = 0x2000000, - NENH_grfSomeVarAttribute = 0x4000000, - NENH_grfUnused = 0x8000000, - NENH_grfSAPVersion = 0x10000000, - NENH_grfSAPAddressType = 0x20000000, - NENH_grfSAPOther = 0x40000000, - NENH_grfSAPEncryptComp = 0x80000000, - NENH_grfAnyIP = NENH_grfSomeVarIP | NENH_grfVariationAdded | NENH_grfVariationRemoved, - NENH_grfAll = (NENH_grfSomeVarAttribute << 1) - 1 - } NENH_grfDiff; - -typedef -enum NVAR_grfDiff - { NVAR_grfNone = 0, - NVAR_grfDescription = 0x1, - NVAR_grfMediaName = 0x2, - NVAR_grfMediaTitle = 0x4, - NVAR_grfFilePort = 0x8, - NVAR_grfFileIPAddress = 0x10, - NVAR_grfFileIPAdapter = 0x20, - NVAR_grfTriggerPort = 0x40, - NVAR_grfTriggerIPAddress = 0x80, - NVAR_grfTriggerIPAdapter = 0x100, - NVAR_grfAttributes = 0x200, - NVAR_grfLanguages = 0x400, - NVAR_grfBandwidth = 0x800, - NVAR_grfBandwidthInfo = 0x1000, - NVAR_grfRest = 0x2000, - NVAR_grfAnyIP = NVAR_grfFilePort | NVAR_grfFileIPAddress | NVAR_grfFileIPAdapter | NVAR_grfTriggerPort | NVAR_grfTriggerIPAddress | NVAR_grfTriggerIPAdapter, - NVAR_grfAnyText = NVAR_grfDescription | NVAR_grfMediaName | NVAR_grfMediaTitle, - NVAR_grfAnyBandwidth = NVAR_grfBandwidth | NVAR_grfBandwidthInfo, - NVAR_grfAnyAttribute = NVAR_grfAttributes | NVAR_grfRest, - NVAR_grfAll = (NVAR_grfRest << 1) - 1 - } NVAR_grfDiff; - -typedef -enum NTRK_grfDiff - { NTRK_grfNone = 0, - NTRK_grfURL = 0x1, - NTRK_grfName = 0x2, - NTRK_grfScript = 0x4, - NTRK_grfDate = 0x8, - NTRK_grfTVELevel = 0x10, - NTRK_grfExpired = 0x20, - NTRK_grfRest = 0x40, - NTRK_grfAll = (NTRK_grfRest << 1) - 1 - } NTRK_grfDiff; - -typedef -enum NFLT_grfHaltFlags - { NFLT_grfNone = 0, - NFLT_grfTA_Listen = 0x1, - NFLT_grfTA_Decode = 0x2, - NFLT_grfTA_Parse = 0x4, - NFLT_grfTB_AnncListen = 0x10, - NFLT_grfTB_AnncDecode = 0x20, - NFLT_grfTB_AnncParse = 0x40, - NFLT_grfTB_TrigListen = 0x100, - NFLT_grfTB_TrigDecode = 0x200, - NFLT_grfTB_TrigParse = 0x400, - NFLT_grfTB_DataListen = 0x1000, - NFLT_grfTB_DataDecode = 0x2000, - NFLT_grfTB_DataParse = 0x4000, - NFLT_grf_ExpireQueue = 0x10000, - NFLT_grf_Extra1 = 0x100000, - NFLT_grf_Extra2 = 0x200000, - NFLT_grf_Extra3 = 0x400000, - NFLT_grf_Extra4 = 0x800000 - } NFLT_grfHaltFlags; - - -EXTERN_C const IID LIBID_MSTvELib; - -#ifndef ___ITVEEvents_DISPINTERFACE_DEFINED__ -#define ___ITVEEvents_DISPINTERFACE_DEFINED__ - -/* dispinterface _ITVEEvents */ -/* [helpstring][uuid] */ - - -EXTERN_C const IID DIID__ITVEEvents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500000-FAA5-4df9-8246-BFC23AC5CEA8") - _ITVEEvents : public IDispatch - { - }; - -#else /* C style interface */ - - typedef struct _ITVEEventsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - _ITVEEvents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - _ITVEEvents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - _ITVEEvents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - _ITVEEvents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - _ITVEEvents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - _ITVEEvents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - _ITVEEvents * 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 - } _ITVEEventsVtbl; - - interface _ITVEEvents - { - CONST_VTBL struct _ITVEEventsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define _ITVEEvents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define _ITVEEvents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define _ITVEEvents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define _ITVEEvents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define _ITVEEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define _ITVEEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define _ITVEEvents_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 /* ___ITVEEvents_DISPINTERFACE_DEFINED__ */ - - -EXTERN_C const CLSID CLSID_TVETrigger; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500001-FAA5-4df9-8246-BFC23AC5CEA8") -TVETrigger; -#endif - -EXTERN_C const CLSID CLSID_TVETrack; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500002-FAA5-4df9-8246-BFC23AC5CEA8") -TVETrack; -#endif - -EXTERN_C const CLSID CLSID_TVEVariation; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500003-FAA5-4df9-8246-BFC23AC5CEA8") -TVEVariation; -#endif - -EXTERN_C const CLSID CLSID_TVEEnhancement; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500004-FAA5-4df9-8246-BFC23AC5CEA8") -TVEEnhancement; -#endif - -EXTERN_C const CLSID CLSID_TVEEnhancements; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500014-FAA5-4df9-8246-BFC23AC5CEA8") -TVEEnhancements; -#endif - -EXTERN_C const CLSID CLSID_TVEService; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500005-FAA5-4df9-8246-BFC23AC5CEA8") -TVEService; -#endif - -EXTERN_C const CLSID CLSID_TVEFeature; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500025-FAA5-4df9-8246-BFC23AC5CEA8") -TVEFeature; -#endif - -EXTERN_C const CLSID CLSID_TVEServices; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500015-FAA5-4df9-8246-BFC23AC5CEA8") -TVEServices; -#endif - -EXTERN_C const CLSID CLSID_TVESupervisor; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500006-FAA5-4df9-8246-BFC23AC5CEA8") -TVESupervisor; -#endif - -EXTERN_C const CLSID CLSID_TVEAttrMap; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500021-FAA5-4df9-8246-BFC23AC5CEA8") -TVEAttrMap; -#endif - -EXTERN_C const CLSID CLSID_TVEAttrTimeQ; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500022-FAA5-4df9-8246-BFC23AC5CEA8") -TVEAttrTimeQ; -#endif - -EXTERN_C const CLSID CLSID_TVEMCast; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500030-FAA5-4df9-8246-BFC23AC5CEA8") -TVEMCast; -#endif - -EXTERN_C const CLSID CLSID_TVEMCasts; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500031-FAA5-4df9-8246-BFC23AC5CEA8") -TVEMCasts; -#endif - -EXTERN_C const CLSID CLSID_TVEMCastManager; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500032-FAA5-4df9-8246-BFC23AC5CEA8") -TVEMCastManager; -#endif - -EXTERN_C const CLSID CLSID_TVEMCastCallback; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500040-FAA5-4df9-8246-BFC23AC5CEA8") -TVEMCastCallback; -#endif - -EXTERN_C const CLSID CLSID_TVECBAnnc; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500041-FAA5-4df9-8246-BFC23AC5CEA8") -TVECBAnnc; -#endif - -EXTERN_C const CLSID CLSID_TVECBTrig; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500042-FAA5-4df9-8246-BFC23AC5CEA8") -TVECBTrig; -#endif - -EXTERN_C const CLSID CLSID_TVECBFile; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500043-FAA5-4df9-8246-BFC23AC5CEA8") -TVECBFile; -#endif - -EXTERN_C const CLSID CLSID_TVECBDummy; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500049-FAA5-4df9-8246-BFC23AC5CEA8") -TVECBDummy; -#endif - -EXTERN_C const CLSID CLSID_TVEFile; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500050-FAA5-4df9-8246-BFC23AC5CEA8") -TVEFile; -#endif - -EXTERN_C const CLSID CLSID_TVENavAid; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500070-FAA5-4df9-8246-BFC23AC5CEA8") -TVENavAid; -#endif - -EXTERN_C const CLSID CLSID_TVEFilter; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500080-FAA5-4df9-8246-BFC23AC5CEA8") -TVEFilter; -#endif - -#ifndef ___ITVETriggerCtrlEvents_DISPINTERFACE_DEFINED__ -#define ___ITVETriggerCtrlEvents_DISPINTERFACE_DEFINED__ - -/* dispinterface _ITVETriggerCtrlEvents */ -/* [helpstring][uuid] */ - - -EXTERN_C const IID DIID__ITVETriggerCtrlEvents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("05500091-FAA5-4df9-8246-BFC23AC5CEA8") - _ITVETriggerCtrlEvents : public IDispatch - { - }; - -#else /* C style interface */ - - typedef struct _ITVETriggerCtrlEventsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - _ITVETriggerCtrlEvents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - _ITVETriggerCtrlEvents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - _ITVETriggerCtrlEvents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - _ITVETriggerCtrlEvents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - _ITVETriggerCtrlEvents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - _ITVETriggerCtrlEvents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - _ITVETriggerCtrlEvents * 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 - } _ITVETriggerCtrlEventsVtbl; - - interface _ITVETriggerCtrlEvents - { - CONST_VTBL struct _ITVETriggerCtrlEventsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define _ITVETriggerCtrlEvents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define _ITVETriggerCtrlEvents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define _ITVETriggerCtrlEvents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define _ITVETriggerCtrlEvents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define _ITVETriggerCtrlEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define _ITVETriggerCtrlEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define _ITVETriggerCtrlEvents_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 /* ___ITVETriggerCtrlEvents_DISPINTERFACE_DEFINED__ */ - - -EXTERN_C const CLSID CLSID_TVETriggerCtrl; - -#ifdef __cplusplus - -class DECLSPEC_UUID("05500090-FAA5-4df9-8246-BFC23AC5CEA8") -TVETriggerCtrl; -#endif -#endif /* __MSTvELib_LIBRARY_DEFINED__ */ - -/* 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 VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); -void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * ); - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/Msvidctl.h b/sdk/dx8sdk/Include/Msvidctl.h deleted file mode 100644 index 82e1e1e3..00000000 --- a/sdk/dx8sdk/Include/Msvidctl.h +++ /dev/null @@ -1,2413 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for msvidctl.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __msvidctl_h__ -#define __msvidctl_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IMSVidCtl_FWD_DEFINED__ -#define __IMSVidCtl_FWD_DEFINED__ -typedef interface IMSVidCtl IMSVidCtl; -#endif /* __IMSVidCtl_FWD_DEFINED__ */ - - -#ifndef __IMSEventBinder_FWD_DEFINED__ -#define __IMSEventBinder_FWD_DEFINED__ -typedef interface IMSEventBinder IMSEventBinder; -#endif /* __IMSEventBinder_FWD_DEFINED__ */ - - -#ifndef ___IMSVidCtlEvents_FWD_DEFINED__ -#define ___IMSVidCtlEvents_FWD_DEFINED__ -typedef interface _IMSVidCtlEvents _IMSVidCtlEvents; -#endif /* ___IMSVidCtlEvents_FWD_DEFINED__ */ - - -#ifndef __MSVidAnalogTunerDevice_FWD_DEFINED__ -#define __MSVidAnalogTunerDevice_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidAnalogTunerDevice MSVidAnalogTunerDevice; -#else -typedef struct MSVidAnalogTunerDevice MSVidAnalogTunerDevice; -#endif /* __cplusplus */ - -#endif /* __MSVidAnalogTunerDevice_FWD_DEFINED__ */ - - -#ifndef __MSVidBDATunerDevice_FWD_DEFINED__ -#define __MSVidBDATunerDevice_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidBDATunerDevice MSVidBDATunerDevice; -#else -typedef struct MSVidBDATunerDevice MSVidBDATunerDevice; -#endif /* __cplusplus */ - -#endif /* __MSVidBDATunerDevice_FWD_DEFINED__ */ - - -#ifndef __MSVidFilePlaybackDevice_FWD_DEFINED__ -#define __MSVidFilePlaybackDevice_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidFilePlaybackDevice MSVidFilePlaybackDevice; -#else -typedef struct MSVidFilePlaybackDevice MSVidFilePlaybackDevice; -#endif /* __cplusplus */ - -#endif /* __MSVidFilePlaybackDevice_FWD_DEFINED__ */ - - -#ifndef __MSVidWebDVD_FWD_DEFINED__ -#define __MSVidWebDVD_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidWebDVD MSVidWebDVD; -#else -typedef struct MSVidWebDVD MSVidWebDVD; -#endif /* __cplusplus */ - -#endif /* __MSVidWebDVD_FWD_DEFINED__ */ - - -#ifndef __MSVidWebDVDAdm_FWD_DEFINED__ -#define __MSVidWebDVDAdm_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidWebDVDAdm MSVidWebDVDAdm; -#else -typedef struct MSVidWebDVDAdm MSVidWebDVDAdm; -#endif /* __cplusplus */ - -#endif /* __MSVidWebDVDAdm_FWD_DEFINED__ */ - - -#ifndef __MSVidVideoRenderer_FWD_DEFINED__ -#define __MSVidVideoRenderer_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidVideoRenderer MSVidVideoRenderer; -#else -typedef struct MSVidVideoRenderer MSVidVideoRenderer; -#endif /* __cplusplus */ - -#endif /* __MSVidVideoRenderer_FWD_DEFINED__ */ - - -#ifndef __MSVidAudioRenderer_FWD_DEFINED__ -#define __MSVidAudioRenderer_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidAudioRenderer MSVidAudioRenderer; -#else -typedef struct MSVidAudioRenderer MSVidAudioRenderer; -#endif /* __cplusplus */ - -#endif /* __MSVidAudioRenderer_FWD_DEFINED__ */ - - -#ifndef __MSVidStreamBufferSink_FWD_DEFINED__ -#define __MSVidStreamBufferSink_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidStreamBufferSink MSVidStreamBufferSink; -#else -typedef struct MSVidStreamBufferSink MSVidStreamBufferSink; -#endif /* __cplusplus */ - -#endif /* __MSVidStreamBufferSink_FWD_DEFINED__ */ - - -#ifndef __MSVidStreamBufferSource_FWD_DEFINED__ -#define __MSVidStreamBufferSource_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidStreamBufferSource MSVidStreamBufferSource; -#else -typedef struct MSVidStreamBufferSource MSVidStreamBufferSource; -#endif /* __cplusplus */ - -#endif /* __MSVidStreamBufferSource_FWD_DEFINED__ */ - - -#ifndef __MSVidDataServices_FWD_DEFINED__ -#define __MSVidDataServices_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidDataServices MSVidDataServices; -#else -typedef struct MSVidDataServices MSVidDataServices; -#endif /* __cplusplus */ - -#endif /* __MSVidDataServices_FWD_DEFINED__ */ - - -#ifndef __MSVidEncoder_FWD_DEFINED__ -#define __MSVidEncoder_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidEncoder MSVidEncoder; -#else -typedef struct MSVidEncoder MSVidEncoder; -#endif /* __cplusplus */ - -#endif /* __MSVidEncoder_FWD_DEFINED__ */ - - -#ifndef __MSVidXDS_FWD_DEFINED__ -#define __MSVidXDS_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidXDS MSVidXDS; -#else -typedef struct MSVidXDS MSVidXDS; -#endif /* __cplusplus */ - -#endif /* __MSVidXDS_FWD_DEFINED__ */ - - -#ifndef __MSVidClosedCaptioning_FWD_DEFINED__ -#define __MSVidClosedCaptioning_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidClosedCaptioning MSVidClosedCaptioning; -#else -typedef struct MSVidClosedCaptioning MSVidClosedCaptioning; -#endif /* __cplusplus */ - -#endif /* __MSVidClosedCaptioning_FWD_DEFINED__ */ - - -#ifndef __MSVidCtl_FWD_DEFINED__ -#define __MSVidCtl_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidCtl MSVidCtl; -#else -typedef struct MSVidCtl MSVidCtl; -#endif /* __cplusplus */ - -#endif /* __MSVidCtl_FWD_DEFINED__ */ - - -#ifndef __MSVidInputDevices_FWD_DEFINED__ -#define __MSVidInputDevices_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidInputDevices MSVidInputDevices; -#else -typedef struct MSVidInputDevices MSVidInputDevices; -#endif /* __cplusplus */ - -#endif /* __MSVidInputDevices_FWD_DEFINED__ */ - - -#ifndef __MSVidOutputDevices_FWD_DEFINED__ -#define __MSVidOutputDevices_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidOutputDevices MSVidOutputDevices; -#else -typedef struct MSVidOutputDevices MSVidOutputDevices; -#endif /* __cplusplus */ - -#endif /* __MSVidOutputDevices_FWD_DEFINED__ */ - - -#ifndef __MSVidVideoRendererDevices_FWD_DEFINED__ -#define __MSVidVideoRendererDevices_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidVideoRendererDevices MSVidVideoRendererDevices; -#else -typedef struct MSVidVideoRendererDevices MSVidVideoRendererDevices; -#endif /* __cplusplus */ - -#endif /* __MSVidVideoRendererDevices_FWD_DEFINED__ */ - - -#ifndef __MSVidAudioRendererDevices_FWD_DEFINED__ -#define __MSVidAudioRendererDevices_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidAudioRendererDevices MSVidAudioRendererDevices; -#else -typedef struct MSVidAudioRendererDevices MSVidAudioRendererDevices; -#endif /* __cplusplus */ - -#endif /* __MSVidAudioRendererDevices_FWD_DEFINED__ */ - - -#ifndef __MSVidFeatures_FWD_DEFINED__ -#define __MSVidFeatures_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidFeatures MSVidFeatures; -#else -typedef struct MSVidFeatures MSVidFeatures; -#endif /* __cplusplus */ - -#endif /* __MSVidFeatures_FWD_DEFINED__ */ - - -#ifndef __MSVidGenericComposite_FWD_DEFINED__ -#define __MSVidGenericComposite_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidGenericComposite MSVidGenericComposite; -#else -typedef struct MSVidGenericComposite MSVidGenericComposite; -#endif /* __cplusplus */ - -#endif /* __MSVidGenericComposite_FWD_DEFINED__ */ - - -#ifndef __MSVidAnalogCaptureToOverlayMixer_FWD_DEFINED__ -#define __MSVidAnalogCaptureToOverlayMixer_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidAnalogCaptureToOverlayMixer MSVidAnalogCaptureToOverlayMixer; -#else -typedef struct MSVidAnalogCaptureToOverlayMixer MSVidAnalogCaptureToOverlayMixer; -#endif /* __cplusplus */ - -#endif /* __MSVidAnalogCaptureToOverlayMixer_FWD_DEFINED__ */ - - -#ifndef __MSVidAnalogCaptureToDataServices_FWD_DEFINED__ -#define __MSVidAnalogCaptureToDataServices_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidAnalogCaptureToDataServices MSVidAnalogCaptureToDataServices; -#else -typedef struct MSVidAnalogCaptureToDataServices MSVidAnalogCaptureToDataServices; -#endif /* __cplusplus */ - -#endif /* __MSVidAnalogCaptureToDataServices_FWD_DEFINED__ */ - - -#ifndef __MSVidWebDVDToVideoRenderer_FWD_DEFINED__ -#define __MSVidWebDVDToVideoRenderer_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidWebDVDToVideoRenderer MSVidWebDVDToVideoRenderer; -#else -typedef struct MSVidWebDVDToVideoRenderer MSVidWebDVDToVideoRenderer; -#endif /* __cplusplus */ - -#endif /* __MSVidWebDVDToVideoRenderer_FWD_DEFINED__ */ - - -#ifndef __MSVidWebDVDToAudioRenderer_FWD_DEFINED__ -#define __MSVidWebDVDToAudioRenderer_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidWebDVDToAudioRenderer MSVidWebDVDToAudioRenderer; -#else -typedef struct MSVidWebDVDToAudioRenderer MSVidWebDVDToAudioRenderer; -#endif /* __cplusplus */ - -#endif /* __MSVidWebDVDToAudioRenderer_FWD_DEFINED__ */ - - -#ifndef __MSVidMPEG2DecoderToClosedCaptioning_FWD_DEFINED__ -#define __MSVidMPEG2DecoderToClosedCaptioning_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidMPEG2DecoderToClosedCaptioning MSVidMPEG2DecoderToClosedCaptioning; -#else -typedef struct MSVidMPEG2DecoderToClosedCaptioning MSVidMPEG2DecoderToClosedCaptioning; -#endif /* __cplusplus */ - -#endif /* __MSVidMPEG2DecoderToClosedCaptioning_FWD_DEFINED__ */ - - -#ifndef __MSVidAnalogCaptureToStreamBufferSink_FWD_DEFINED__ -#define __MSVidAnalogCaptureToStreamBufferSink_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidAnalogCaptureToStreamBufferSink MSVidAnalogCaptureToStreamBufferSink; -#else -typedef struct MSVidAnalogCaptureToStreamBufferSink MSVidAnalogCaptureToStreamBufferSink; -#endif /* __cplusplus */ - -#endif /* __MSVidAnalogCaptureToStreamBufferSink_FWD_DEFINED__ */ - - -#ifndef __MSVidDigitalCaptureToStreamBufferSink_FWD_DEFINED__ -#define __MSVidDigitalCaptureToStreamBufferSink_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidDigitalCaptureToStreamBufferSink MSVidDigitalCaptureToStreamBufferSink; -#else -typedef struct MSVidDigitalCaptureToStreamBufferSink MSVidDigitalCaptureToStreamBufferSink; -#endif /* __cplusplus */ - -#endif /* __MSVidDigitalCaptureToStreamBufferSink_FWD_DEFINED__ */ - - -#ifndef __MSVidDataServicesToStreamBufferSink_FWD_DEFINED__ -#define __MSVidDataServicesToStreamBufferSink_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidDataServicesToStreamBufferSink MSVidDataServicesToStreamBufferSink; -#else -typedef struct MSVidDataServicesToStreamBufferSink MSVidDataServicesToStreamBufferSink; -#endif /* __cplusplus */ - -#endif /* __MSVidDataServicesToStreamBufferSink_FWD_DEFINED__ */ - - -#ifndef __MSVidDataServicesToXDS_FWD_DEFINED__ -#define __MSVidDataServicesToXDS_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidDataServicesToXDS MSVidDataServicesToXDS; -#else -typedef struct MSVidDataServicesToXDS MSVidDataServicesToXDS; -#endif /* __cplusplus */ - -#endif /* __MSVidDataServicesToXDS_FWD_DEFINED__ */ - - -#ifndef __MSVidEncoderToStreamBufferSink_FWD_DEFINED__ -#define __MSVidEncoderToStreamBufferSink_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidEncoderToStreamBufferSink MSVidEncoderToStreamBufferSink; -#else -typedef struct MSVidEncoderToStreamBufferSink MSVidEncoderToStreamBufferSink; -#endif /* __cplusplus */ - -#endif /* __MSVidEncoderToStreamBufferSink_FWD_DEFINED__ */ - - -#ifndef __MSVidFilePlaybackToVideoRenderer_FWD_DEFINED__ -#define __MSVidFilePlaybackToVideoRenderer_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidFilePlaybackToVideoRenderer MSVidFilePlaybackToVideoRenderer; -#else -typedef struct MSVidFilePlaybackToVideoRenderer MSVidFilePlaybackToVideoRenderer; -#endif /* __cplusplus */ - -#endif /* __MSVidFilePlaybackToVideoRenderer_FWD_DEFINED__ */ - - -#ifndef __MSVidFilePlaybackToAudioRenderer_FWD_DEFINED__ -#define __MSVidFilePlaybackToAudioRenderer_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidFilePlaybackToAudioRenderer MSVidFilePlaybackToAudioRenderer; -#else -typedef struct MSVidFilePlaybackToAudioRenderer MSVidFilePlaybackToAudioRenderer; -#endif /* __cplusplus */ - -#endif /* __MSVidFilePlaybackToAudioRenderer_FWD_DEFINED__ */ - - -#ifndef __MSVidAnalogTVToEncoder_FWD_DEFINED__ -#define __MSVidAnalogTVToEncoder_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidAnalogTVToEncoder MSVidAnalogTVToEncoder; -#else -typedef struct MSVidAnalogTVToEncoder MSVidAnalogTVToEncoder; -#endif /* __cplusplus */ - -#endif /* __MSVidAnalogTVToEncoder_FWD_DEFINED__ */ - - -#ifndef __MSVidStreamBufferSourceToVideoRenderer_FWD_DEFINED__ -#define __MSVidStreamBufferSourceToVideoRenderer_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidStreamBufferSourceToVideoRenderer MSVidStreamBufferSourceToVideoRenderer; -#else -typedef struct MSVidStreamBufferSourceToVideoRenderer MSVidStreamBufferSourceToVideoRenderer; -#endif /* __cplusplus */ - -#endif /* __MSVidStreamBufferSourceToVideoRenderer_FWD_DEFINED__ */ - - -#ifndef __MSVidAnalogCaptureToXDS_FWD_DEFINED__ -#define __MSVidAnalogCaptureToXDS_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidAnalogCaptureToXDS MSVidAnalogCaptureToXDS; -#else -typedef struct MSVidAnalogCaptureToXDS MSVidAnalogCaptureToXDS; -#endif /* __cplusplus */ - -#endif /* __MSVidAnalogCaptureToXDS_FWD_DEFINED__ */ - - -#ifndef __MSVidSBESourceToCC_FWD_DEFINED__ -#define __MSVidSBESourceToCC_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidSBESourceToCC MSVidSBESourceToCC; -#else -typedef struct MSVidSBESourceToCC MSVidSBESourceToCC; -#endif /* __cplusplus */ - -#endif /* __MSVidSBESourceToCC_FWD_DEFINED__ */ - - -#ifndef __MSEventBinder_FWD_DEFINED__ -#define __MSEventBinder_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSEventBinder MSEventBinder; -#else -typedef struct MSEventBinder MSEventBinder; -#endif /* __cplusplus */ - -#endif /* __MSEventBinder_FWD_DEFINED__ */ - - -#ifndef __MSVidStreamBufferRecordingControl_FWD_DEFINED__ -#define __MSVidStreamBufferRecordingControl_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidStreamBufferRecordingControl MSVidStreamBufferRecordingControl; -#else -typedef struct MSVidStreamBufferRecordingControl MSVidStreamBufferRecordingControl; -#endif /* __cplusplus */ - -#endif /* __MSVidStreamBufferRecordingControl_FWD_DEFINED__ */ - - -#ifndef __MSVidRect_FWD_DEFINED__ -#define __MSVidRect_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidRect MSVidRect; -#else -typedef struct MSVidRect MSVidRect; -#endif /* __cplusplus */ - -#endif /* __MSVidRect_FWD_DEFINED__ */ - - -#ifndef __MSVidDevice_FWD_DEFINED__ -#define __MSVidDevice_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidDevice MSVidDevice; -#else -typedef struct MSVidDevice MSVidDevice; -#endif /* __cplusplus */ - -#endif /* __MSVidDevice_FWD_DEFINED__ */ - - -#ifndef __MSVidInputDevice_FWD_DEFINED__ -#define __MSVidInputDevice_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidInputDevice MSVidInputDevice; -#else -typedef struct MSVidInputDevice MSVidInputDevice; -#endif /* __cplusplus */ - -#endif /* __MSVidInputDevice_FWD_DEFINED__ */ - - -#ifndef __MSVidVideoInputDevice_FWD_DEFINED__ -#define __MSVidVideoInputDevice_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidVideoInputDevice MSVidVideoInputDevice; -#else -typedef struct MSVidVideoInputDevice MSVidVideoInputDevice; -#endif /* __cplusplus */ - -#endif /* __MSVidVideoInputDevice_FWD_DEFINED__ */ - - -#ifndef __MSVidVideoPlaybackDevice_FWD_DEFINED__ -#define __MSVidVideoPlaybackDevice_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidVideoPlaybackDevice MSVidVideoPlaybackDevice; -#else -typedef struct MSVidVideoPlaybackDevice MSVidVideoPlaybackDevice; -#endif /* __cplusplus */ - -#endif /* __MSVidVideoPlaybackDevice_FWD_DEFINED__ */ - - -#ifndef __MSVidFeature_FWD_DEFINED__ -#define __MSVidFeature_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidFeature MSVidFeature; -#else -typedef struct MSVidFeature MSVidFeature; -#endif /* __cplusplus */ - -#endif /* __MSVidFeature_FWD_DEFINED__ */ - - -#ifndef __MSVidOutput_FWD_DEFINED__ -#define __MSVidOutput_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MSVidOutput MSVidOutput; -#else -typedef struct MSVidOutput MSVidOutput; -#endif /* __cplusplus */ - -#endif /* __MSVidOutput_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "mshtml.h" -#include "segment.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_msvidctl_0000 */ -/* [local] */ - -//+------------------------------------------------------------------------- -// -// Microsoft Windows -// Copyright (C) Microsoft Corporation, 1999-2000. -// -//-------------------------------------------------------------------------- -#pragma once -typedef /* [public] */ -enum __MIDL___MIDL_itf_msvidctl_0000_0001 - { dispidInputs = 0, - dispidOutputs = dispidInputs + 1, - dispid_Inputs = dispidOutputs + 1, - dispid_Outputs = dispid_Inputs + 1, - dispidVideoRenderers = dispid_Outputs + 1, - dispidAudioRenderers = dispidVideoRenderers + 1, - dispidFeatures = dispidAudioRenderers + 1, - dispidInput = dispidFeatures + 1, - dispidOutput = dispidInput + 1, - dispidVideoRenderer = dispidOutput + 1, - dispidAudioRenderer = dispidVideoRenderer + 1, - dispidSelectedFeatures = dispidAudioRenderer + 1, - dispidView = dispidSelectedFeatures + 1, - dispidBuild = dispidView + 1, - dispidPause = dispidBuild + 1, - dispidRun = dispidPause + 1, - dispidStop = dispidRun + 1, - dispidDecompose = dispidStop + 1, - dispidDisplaySize = dispidDecompose + 1, - dispidMaintainAspectRatio = dispidDisplaySize + 1, - dispidColorKey = dispidMaintainAspectRatio + 1, - dispidStateChange = dispidColorKey + 1, - dispidgetState = dispidStateChange + 1, - dispidunbind = dispidgetState + 1, - dispidbind = dispidunbind + 1, - dispidDisableVideo = dispidbind + 1, - dispidDisableAudio = dispidDisableVideo + 1, - dispidViewNext = dispidDisableAudio + 1, - dispidServiceP = dispidViewNext + 1 - } MSViddispidList; - -typedef /* [public][public][public] */ -enum __MIDL___MIDL_itf_msvidctl_0000_0002 - { dslDefaultSize = 0, - dslSourceSize = 0, - dslHalfSourceSize = dslSourceSize + 1, - dslDoubleSourceSize = dslHalfSourceSize + 1, - dslFullScreen = dslDoubleSourceSize + 1, - dslHalfScreen = dslFullScreen + 1, - dslQuarterScreen = dslHalfScreen + 1, - dslSixteenthScreen = dslQuarterScreen + 1 - } DisplaySizeList; - -typedef /* [public][public][public][public] */ -enum __MIDL___MIDL_itf_msvidctl_0000_0003 - { STATE_UNBUILT = -1, - STATE_STOP = STATE_UNBUILT + 1, - STATE_PAUSE = STATE_STOP + 1, - STATE_PLAY = STATE_PAUSE + 1 - } MSVidCtlStateList; - - - -extern RPC_IF_HANDLE __MIDL_itf_msvidctl_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_msvidctl_0000_v0_0_s_ifspec; - -#ifndef __IMSVidCtl_INTERFACE_DEFINED__ -#define __IMSVidCtl_INTERFACE_DEFINED__ - -/* interface IMSVidCtl */ -/* [unique][helpstring][nonextensible][hidden][dual][uuid][object] */ - - -EXTERN_C const IID IID_IMSVidCtl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B0EDF162-910A-11D2-B632-00C04F79498E") - IMSVidCtl : public IDispatch - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AutoSize( - /* [retval][out] */ VARIANT_BOOL *pbool) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_AutoSize( - /* [in] */ VARIANT_BOOL vbool) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_BackColor( - /* [retval][out] */ OLE_COLOR *backcolor) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_BackColor( - /* [in] */ OLE_COLOR backcolor) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Enabled( - /* [retval][out] */ VARIANT_BOOL *pbool) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Enabled( - /* [in] */ VARIANT_BOOL vbool) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TabStop( - /* [retval][out] */ VARIANT_BOOL *pbool) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_TabStop( - /* [in] */ VARIANT_BOOL vbool) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Window( - /* [retval][out] */ HWND *phwnd) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DisplaySize( - /* [retval][out] */ DisplaySizeList *CurrentValue) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DisplaySize( - /* [in] */ DisplaySizeList NewValue) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MaintainAspectRatio( - /* [retval][out] */ VARIANT_BOOL *CurrentValue) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MaintainAspectRatio( - /* [in] */ VARIANT_BOOL NewValue) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ColorKey( - /* [retval][out] */ OLE_COLOR *CurrentValue) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ColorKey( - /* [in] */ OLE_COLOR NewValue) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InputsAvailable( - /* [in] */ BSTR CategoryGuid, - /* [retval][out] */ IMSVidInputDevices **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutputsAvailable( - /* [in] */ BSTR CategoryGuid, - /* [retval][out] */ IMSVidOutputDevices **pVal) = 0; - - virtual /* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__InputsAvailable( - /* [in] */ LPCGUID CategoryGuid, - /* [retval][out] */ IMSVidInputDevices **pVal) = 0; - - virtual /* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__OutputsAvailable( - /* [in] */ LPCGUID CategoryGuid, - /* [retval][out] */ IMSVidOutputDevices **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VideoRenderersAvailable( - /* [retval][out] */ IMSVidVideoRendererDevices **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AudioRenderersAvailable( - /* [retval][out] */ IMSVidAudioRendererDevices **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FeaturesAvailable( - /* [retval][out] */ IMSVidFeatures **pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InputActive( - /* [retval][out] */ IMSVidInputDevice **pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InputActive( - /* [in] */ IMSVidInputDevice *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutputsActive( - /* [retval][out] */ IMSVidOutputDevices **pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OutputsActive( - /* [in] */ IMSVidOutputDevices *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VideoRendererActive( - /* [retval][out] */ IMSVidVideoRenderer **pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_VideoRendererActive( - /* [in] */ IMSVidVideoRenderer *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AudioRendererActive( - /* [retval][out] */ IMSVidAudioRenderer **pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AudioRendererActive( - /* [in] */ IMSVidAudioRenderer *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FeaturesActive( - /* [retval][out] */ IMSVidFeatures **pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FeaturesActive( - /* [in] */ IMSVidFeatures *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_State( - /* [retval][out] */ MSVidCtlStateList *lState) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE View( - /* [in] */ VARIANT *v) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Build( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Pause( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Run( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Stop( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Decompose( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DisableVideo( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DisableAudio( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ViewNext( - /* [in] */ VARIANT *v) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ServiceProvider( - /* [in] */ IUnknown *pServiceP) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidCtlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidCtl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidCtl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidCtl * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidCtl * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidCtl * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidCtl * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidCtl * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AutoSize )( - IMSVidCtl * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AutoSize )( - IMSVidCtl * This, - /* [in] */ VARIANT_BOOL vbool); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackColor )( - IMSVidCtl * This, - /* [retval][out] */ OLE_COLOR *backcolor); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BackColor )( - IMSVidCtl * This, - /* [in] */ OLE_COLOR backcolor); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )( - IMSVidCtl * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enabled )( - IMSVidCtl * This, - /* [in] */ VARIANT_BOOL vbool); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TabStop )( - IMSVidCtl * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TabStop )( - IMSVidCtl * This, - /* [in] */ VARIANT_BOOL vbool); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Window )( - IMSVidCtl * This, - /* [retval][out] */ HWND *phwnd); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( - IMSVidCtl * This); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplaySize )( - IMSVidCtl * This, - /* [retval][out] */ DisplaySizeList *CurrentValue); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisplaySize )( - IMSVidCtl * This, - /* [in] */ DisplaySizeList NewValue); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaintainAspectRatio )( - IMSVidCtl * This, - /* [retval][out] */ VARIANT_BOOL *CurrentValue); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaintainAspectRatio )( - IMSVidCtl * This, - /* [in] */ VARIANT_BOOL NewValue); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ColorKey )( - IMSVidCtl * This, - /* [retval][out] */ OLE_COLOR *CurrentValue); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ColorKey )( - IMSVidCtl * This, - /* [in] */ OLE_COLOR NewValue); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputsAvailable )( - IMSVidCtl * This, - /* [in] */ BSTR CategoryGuid, - /* [retval][out] */ IMSVidInputDevices **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutputsAvailable )( - IMSVidCtl * This, - /* [in] */ BSTR CategoryGuid, - /* [retval][out] */ IMSVidOutputDevices **pVal); - - /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__InputsAvailable )( - IMSVidCtl * This, - /* [in] */ LPCGUID CategoryGuid, - /* [retval][out] */ IMSVidInputDevices **pVal); - - /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__OutputsAvailable )( - IMSVidCtl * This, - /* [in] */ LPCGUID CategoryGuid, - /* [retval][out] */ IMSVidOutputDevices **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoRenderersAvailable )( - IMSVidCtl * This, - /* [retval][out] */ IMSVidVideoRendererDevices **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioRenderersAvailable )( - IMSVidCtl * This, - /* [retval][out] */ IMSVidAudioRendererDevices **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FeaturesAvailable )( - IMSVidCtl * This, - /* [retval][out] */ IMSVidFeatures **pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputActive )( - IMSVidCtl * This, - /* [retval][out] */ IMSVidInputDevice **pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InputActive )( - IMSVidCtl * This, - /* [in] */ IMSVidInputDevice *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutputsActive )( - IMSVidCtl * This, - /* [retval][out] */ IMSVidOutputDevices **pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OutputsActive )( - IMSVidCtl * This, - /* [in] */ IMSVidOutputDevices *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoRendererActive )( - IMSVidCtl * This, - /* [retval][out] */ IMSVidVideoRenderer **pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_VideoRendererActive )( - IMSVidCtl * This, - /* [in] */ IMSVidVideoRenderer *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioRendererActive )( - IMSVidCtl * This, - /* [retval][out] */ IMSVidAudioRenderer **pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AudioRendererActive )( - IMSVidCtl * This, - /* [in] */ IMSVidAudioRenderer *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FeaturesActive )( - IMSVidCtl * This, - /* [retval][out] */ IMSVidFeatures **pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FeaturesActive )( - IMSVidCtl * This, - /* [in] */ IMSVidFeatures *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( - IMSVidCtl * This, - /* [retval][out] */ MSVidCtlStateList *lState); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *View )( - IMSVidCtl * This, - /* [in] */ VARIANT *v); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Build )( - IMSVidCtl * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Pause )( - IMSVidCtl * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Run )( - IMSVidCtl * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( - IMSVidCtl * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Decompose )( - IMSVidCtl * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DisableVideo )( - IMSVidCtl * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DisableAudio )( - IMSVidCtl * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ViewNext )( - IMSVidCtl * This, - /* [in] */ VARIANT *v); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServiceProvider )( - IMSVidCtl * This, - /* [in] */ IUnknown *pServiceP); - - END_INTERFACE - } IMSVidCtlVtbl; - - interface IMSVidCtl - { - CONST_VTBL struct IMSVidCtlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidCtl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidCtl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidCtl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidCtl_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidCtl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidCtl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidCtl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidCtl_get_AutoSize(This,pbool) \ - (This)->lpVtbl -> get_AutoSize(This,pbool) - -#define IMSVidCtl_put_AutoSize(This,vbool) \ - (This)->lpVtbl -> put_AutoSize(This,vbool) - -#define IMSVidCtl_get_BackColor(This,backcolor) \ - (This)->lpVtbl -> get_BackColor(This,backcolor) - -#define IMSVidCtl_put_BackColor(This,backcolor) \ - (This)->lpVtbl -> put_BackColor(This,backcolor) - -#define IMSVidCtl_get_Enabled(This,pbool) \ - (This)->lpVtbl -> get_Enabled(This,pbool) - -#define IMSVidCtl_put_Enabled(This,vbool) \ - (This)->lpVtbl -> put_Enabled(This,vbool) - -#define IMSVidCtl_get_TabStop(This,pbool) \ - (This)->lpVtbl -> get_TabStop(This,pbool) - -#define IMSVidCtl_put_TabStop(This,vbool) \ - (This)->lpVtbl -> put_TabStop(This,vbool) - -#define IMSVidCtl_get_Window(This,phwnd) \ - (This)->lpVtbl -> get_Window(This,phwnd) - -#define IMSVidCtl_Refresh(This) \ - (This)->lpVtbl -> Refresh(This) - -#define IMSVidCtl_get_DisplaySize(This,CurrentValue) \ - (This)->lpVtbl -> get_DisplaySize(This,CurrentValue) - -#define IMSVidCtl_put_DisplaySize(This,NewValue) \ - (This)->lpVtbl -> put_DisplaySize(This,NewValue) - -#define IMSVidCtl_get_MaintainAspectRatio(This,CurrentValue) \ - (This)->lpVtbl -> get_MaintainAspectRatio(This,CurrentValue) - -#define IMSVidCtl_put_MaintainAspectRatio(This,NewValue) \ - (This)->lpVtbl -> put_MaintainAspectRatio(This,NewValue) - -#define IMSVidCtl_get_ColorKey(This,CurrentValue) \ - (This)->lpVtbl -> get_ColorKey(This,CurrentValue) - -#define IMSVidCtl_put_ColorKey(This,NewValue) \ - (This)->lpVtbl -> put_ColorKey(This,NewValue) - -#define IMSVidCtl_get_InputsAvailable(This,CategoryGuid,pVal) \ - (This)->lpVtbl -> get_InputsAvailable(This,CategoryGuid,pVal) - -#define IMSVidCtl_get_OutputsAvailable(This,CategoryGuid,pVal) \ - (This)->lpVtbl -> get_OutputsAvailable(This,CategoryGuid,pVal) - -#define IMSVidCtl_get__InputsAvailable(This,CategoryGuid,pVal) \ - (This)->lpVtbl -> get__InputsAvailable(This,CategoryGuid,pVal) - -#define IMSVidCtl_get__OutputsAvailable(This,CategoryGuid,pVal) \ - (This)->lpVtbl -> get__OutputsAvailable(This,CategoryGuid,pVal) - -#define IMSVidCtl_get_VideoRenderersAvailable(This,pVal) \ - (This)->lpVtbl -> get_VideoRenderersAvailable(This,pVal) - -#define IMSVidCtl_get_AudioRenderersAvailable(This,pVal) \ - (This)->lpVtbl -> get_AudioRenderersAvailable(This,pVal) - -#define IMSVidCtl_get_FeaturesAvailable(This,pVal) \ - (This)->lpVtbl -> get_FeaturesAvailable(This,pVal) - -#define IMSVidCtl_get_InputActive(This,pVal) \ - (This)->lpVtbl -> get_InputActive(This,pVal) - -#define IMSVidCtl_put_InputActive(This,pVal) \ - (This)->lpVtbl -> put_InputActive(This,pVal) - -#define IMSVidCtl_get_OutputsActive(This,pVal) \ - (This)->lpVtbl -> get_OutputsActive(This,pVal) - -#define IMSVidCtl_put_OutputsActive(This,pVal) \ - (This)->lpVtbl -> put_OutputsActive(This,pVal) - -#define IMSVidCtl_get_VideoRendererActive(This,pVal) \ - (This)->lpVtbl -> get_VideoRendererActive(This,pVal) - -#define IMSVidCtl_put_VideoRendererActive(This,pVal) \ - (This)->lpVtbl -> put_VideoRendererActive(This,pVal) - -#define IMSVidCtl_get_AudioRendererActive(This,pVal) \ - (This)->lpVtbl -> get_AudioRendererActive(This,pVal) - -#define IMSVidCtl_put_AudioRendererActive(This,pVal) \ - (This)->lpVtbl -> put_AudioRendererActive(This,pVal) - -#define IMSVidCtl_get_FeaturesActive(This,pVal) \ - (This)->lpVtbl -> get_FeaturesActive(This,pVal) - -#define IMSVidCtl_put_FeaturesActive(This,pVal) \ - (This)->lpVtbl -> put_FeaturesActive(This,pVal) - -#define IMSVidCtl_get_State(This,lState) \ - (This)->lpVtbl -> get_State(This,lState) - -#define IMSVidCtl_View(This,v) \ - (This)->lpVtbl -> View(This,v) - -#define IMSVidCtl_Build(This) \ - (This)->lpVtbl -> Build(This) - -#define IMSVidCtl_Pause(This) \ - (This)->lpVtbl -> Pause(This) - -#define IMSVidCtl_Run(This) \ - (This)->lpVtbl -> Run(This) - -#define IMSVidCtl_Stop(This) \ - (This)->lpVtbl -> Stop(This) - -#define IMSVidCtl_Decompose(This) \ - (This)->lpVtbl -> Decompose(This) - -#define IMSVidCtl_DisableVideo(This) \ - (This)->lpVtbl -> DisableVideo(This) - -#define IMSVidCtl_DisableAudio(This) \ - (This)->lpVtbl -> DisableAudio(This) - -#define IMSVidCtl_ViewNext(This,v) \ - (This)->lpVtbl -> ViewNext(This,v) - -#define IMSVidCtl_put_ServiceProvider(This,pServiceP) \ - (This)->lpVtbl -> put_ServiceProvider(This,pServiceP) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_AutoSize_Proxy( - IMSVidCtl * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - -void __RPC_STUB IMSVidCtl_get_AutoSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_AutoSize_Proxy( - IMSVidCtl * This, - /* [in] */ VARIANT_BOOL vbool); - - -void __RPC_STUB IMSVidCtl_put_AutoSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_BackColor_Proxy( - IMSVidCtl * This, - /* [retval][out] */ OLE_COLOR *backcolor); - - -void __RPC_STUB IMSVidCtl_get_BackColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_BackColor_Proxy( - IMSVidCtl * This, - /* [in] */ OLE_COLOR backcolor); - - -void __RPC_STUB IMSVidCtl_put_BackColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_Enabled_Proxy( - IMSVidCtl * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - -void __RPC_STUB IMSVidCtl_get_Enabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_Enabled_Proxy( - IMSVidCtl * This, - /* [in] */ VARIANT_BOOL vbool); - - -void __RPC_STUB IMSVidCtl_put_Enabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_TabStop_Proxy( - IMSVidCtl * This, - /* [retval][out] */ VARIANT_BOOL *pbool); - - -void __RPC_STUB IMSVidCtl_get_TabStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_TabStop_Proxy( - IMSVidCtl * This, - /* [in] */ VARIANT_BOOL vbool); - - -void __RPC_STUB IMSVidCtl_put_TabStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_Window_Proxy( - IMSVidCtl * This, - /* [retval][out] */ HWND *phwnd); - - -void __RPC_STUB IMSVidCtl_get_Window_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_Refresh_Proxy( - IMSVidCtl * This); - - -void __RPC_STUB IMSVidCtl_Refresh_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_DisplaySize_Proxy( - IMSVidCtl * This, - /* [retval][out] */ DisplaySizeList *CurrentValue); - - -void __RPC_STUB IMSVidCtl_get_DisplaySize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_DisplaySize_Proxy( - IMSVidCtl * This, - /* [in] */ DisplaySizeList NewValue); - - -void __RPC_STUB IMSVidCtl_put_DisplaySize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_MaintainAspectRatio_Proxy( - IMSVidCtl * This, - /* [retval][out] */ VARIANT_BOOL *CurrentValue); - - -void __RPC_STUB IMSVidCtl_get_MaintainAspectRatio_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_MaintainAspectRatio_Proxy( - IMSVidCtl * This, - /* [in] */ VARIANT_BOOL NewValue); - - -void __RPC_STUB IMSVidCtl_put_MaintainAspectRatio_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_ColorKey_Proxy( - IMSVidCtl * This, - /* [retval][out] */ OLE_COLOR *CurrentValue); - - -void __RPC_STUB IMSVidCtl_get_ColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_ColorKey_Proxy( - IMSVidCtl * This, - /* [in] */ OLE_COLOR NewValue); - - -void __RPC_STUB IMSVidCtl_put_ColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_InputsAvailable_Proxy( - IMSVidCtl * This, - /* [in] */ BSTR CategoryGuid, - /* [retval][out] */ IMSVidInputDevices **pVal); - - -void __RPC_STUB IMSVidCtl_get_InputsAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_OutputsAvailable_Proxy( - IMSVidCtl * This, - /* [in] */ BSTR CategoryGuid, - /* [retval][out] */ IMSVidOutputDevices **pVal); - - -void __RPC_STUB IMSVidCtl_get_OutputsAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get__InputsAvailable_Proxy( - IMSVidCtl * This, - /* [in] */ LPCGUID CategoryGuid, - /* [retval][out] */ IMSVidInputDevices **pVal); - - -void __RPC_STUB IMSVidCtl_get__InputsAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get__OutputsAvailable_Proxy( - IMSVidCtl * This, - /* [in] */ LPCGUID CategoryGuid, - /* [retval][out] */ IMSVidOutputDevices **pVal); - - -void __RPC_STUB IMSVidCtl_get__OutputsAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_VideoRenderersAvailable_Proxy( - IMSVidCtl * This, - /* [retval][out] */ IMSVidVideoRendererDevices **pVal); - - -void __RPC_STUB IMSVidCtl_get_VideoRenderersAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_AudioRenderersAvailable_Proxy( - IMSVidCtl * This, - /* [retval][out] */ IMSVidAudioRendererDevices **pVal); - - -void __RPC_STUB IMSVidCtl_get_AudioRenderersAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_FeaturesAvailable_Proxy( - IMSVidCtl * This, - /* [retval][out] */ IMSVidFeatures **pVal); - - -void __RPC_STUB IMSVidCtl_get_FeaturesAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_InputActive_Proxy( - IMSVidCtl * This, - /* [retval][out] */ IMSVidInputDevice **pVal); - - -void __RPC_STUB IMSVidCtl_get_InputActive_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_InputActive_Proxy( - IMSVidCtl * This, - /* [in] */ IMSVidInputDevice *pVal); - - -void __RPC_STUB IMSVidCtl_put_InputActive_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_OutputsActive_Proxy( - IMSVidCtl * This, - /* [retval][out] */ IMSVidOutputDevices **pVal); - - -void __RPC_STUB IMSVidCtl_get_OutputsActive_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_OutputsActive_Proxy( - IMSVidCtl * This, - /* [in] */ IMSVidOutputDevices *pVal); - - -void __RPC_STUB IMSVidCtl_put_OutputsActive_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_VideoRendererActive_Proxy( - IMSVidCtl * This, - /* [retval][out] */ IMSVidVideoRenderer **pVal); - - -void __RPC_STUB IMSVidCtl_get_VideoRendererActive_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_VideoRendererActive_Proxy( - IMSVidCtl * This, - /* [in] */ IMSVidVideoRenderer *pVal); - - -void __RPC_STUB IMSVidCtl_put_VideoRendererActive_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_AudioRendererActive_Proxy( - IMSVidCtl * This, - /* [retval][out] */ IMSVidAudioRenderer **pVal); - - -void __RPC_STUB IMSVidCtl_get_AudioRendererActive_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_AudioRendererActive_Proxy( - IMSVidCtl * This, - /* [in] */ IMSVidAudioRenderer *pVal); - - -void __RPC_STUB IMSVidCtl_put_AudioRendererActive_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_FeaturesActive_Proxy( - IMSVidCtl * This, - /* [retval][out] */ IMSVidFeatures **pVal); - - -void __RPC_STUB IMSVidCtl_get_FeaturesActive_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_FeaturesActive_Proxy( - IMSVidCtl * This, - /* [in] */ IMSVidFeatures *pVal); - - -void __RPC_STUB IMSVidCtl_put_FeaturesActive_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_get_State_Proxy( - IMSVidCtl * This, - /* [retval][out] */ MSVidCtlStateList *lState); - - -void __RPC_STUB IMSVidCtl_get_State_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_View_Proxy( - IMSVidCtl * This, - /* [in] */ VARIANT *v); - - -void __RPC_STUB IMSVidCtl_View_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_Build_Proxy( - IMSVidCtl * This); - - -void __RPC_STUB IMSVidCtl_Build_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_Pause_Proxy( - IMSVidCtl * This); - - -void __RPC_STUB IMSVidCtl_Pause_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_Run_Proxy( - IMSVidCtl * This); - - -void __RPC_STUB IMSVidCtl_Run_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_Stop_Proxy( - IMSVidCtl * This); - - -void __RPC_STUB IMSVidCtl_Stop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_Decompose_Proxy( - IMSVidCtl * This); - - -void __RPC_STUB IMSVidCtl_Decompose_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_DisableVideo_Proxy( - IMSVidCtl * This); - - -void __RPC_STUB IMSVidCtl_DisableVideo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_DisableAudio_Proxy( - IMSVidCtl * This); - - -void __RPC_STUB IMSVidCtl_DisableAudio_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_ViewNext_Proxy( - IMSVidCtl * This, - /* [in] */ VARIANT *v); - - -void __RPC_STUB IMSVidCtl_ViewNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidCtl_put_ServiceProvider_Proxy( - IMSVidCtl * This, - /* [in] */ IUnknown *pServiceP); - - -void __RPC_STUB IMSVidCtl_put_ServiceProvider_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidCtl_INTERFACE_DEFINED__ */ - - -#ifndef __IMSEventBinder_INTERFACE_DEFINED__ -#define __IMSEventBinder_INTERFACE_DEFINED__ - -/* interface IMSEventBinder */ -/* [helpstring][uuid][unique][nonextensible][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSEventBinder; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C3A9F406-2222-436D-86D5-BA3229279EFB") - IMSEventBinder : public IDispatch - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Bind( - /* [in] */ LPDISPATCH pEventObject, - /* [in] */ BSTR EventName, - /* [in] */ BSTR EventHandler, - /* [retval][out] */ LONG *CancelID) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Unbind( - /* [in] */ DWORD CancelCookie) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSEventBinderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSEventBinder * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSEventBinder * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSEventBinder * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSEventBinder * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSEventBinder * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSEventBinder * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSEventBinder * 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); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Bind )( - IMSEventBinder * This, - /* [in] */ LPDISPATCH pEventObject, - /* [in] */ BSTR EventName, - /* [in] */ BSTR EventHandler, - /* [retval][out] */ LONG *CancelID); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Unbind )( - IMSEventBinder * This, - /* [in] */ DWORD CancelCookie); - - END_INTERFACE - } IMSEventBinderVtbl; - - interface IMSEventBinder - { - CONST_VTBL struct IMSEventBinderVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSEventBinder_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSEventBinder_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSEventBinder_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSEventBinder_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSEventBinder_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSEventBinder_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSEventBinder_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSEventBinder_Bind(This,pEventObject,EventName,EventHandler,CancelID) \ - (This)->lpVtbl -> Bind(This,pEventObject,EventName,EventHandler,CancelID) - -#define IMSEventBinder_Unbind(This,CancelCookie) \ - (This)->lpVtbl -> Unbind(This,CancelCookie) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSEventBinder_Bind_Proxy( - IMSEventBinder * This, - /* [in] */ LPDISPATCH pEventObject, - /* [in] */ BSTR EventName, - /* [in] */ BSTR EventHandler, - /* [retval][out] */ LONG *CancelID); - - -void __RPC_STUB IMSEventBinder_Bind_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSEventBinder_Unbind_Proxy( - IMSEventBinder * This, - /* [in] */ DWORD CancelCookie); - - -void __RPC_STUB IMSEventBinder_Unbind_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSEventBinder_INTERFACE_DEFINED__ */ - - - -#ifndef __MSVidCtlLib_LIBRARY_DEFINED__ -#define __MSVidCtlLib_LIBRARY_DEFINED__ - -/* library MSVidCtlLib */ -/* [helpstring][version][uuid] */ - - -EXTERN_C const IID LIBID_MSVidCtlLib; - -#ifndef ___IMSVidCtlEvents_DISPINTERFACE_DEFINED__ -#define ___IMSVidCtlEvents_DISPINTERFACE_DEFINED__ - -/* dispinterface _IMSVidCtlEvents */ -/* [helpstring][uuid] */ - - -EXTERN_C const IID DIID__IMSVidCtlEvents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B0EDF164-910A-11D2-B632-00C04F79498E") - _IMSVidCtlEvents : public IDispatch - { - }; - -#else /* C style interface */ - - typedef struct _IMSVidCtlEventsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - _IMSVidCtlEvents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - _IMSVidCtlEvents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - _IMSVidCtlEvents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - _IMSVidCtlEvents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - _IMSVidCtlEvents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - _IMSVidCtlEvents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - _IMSVidCtlEvents * 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 - } _IMSVidCtlEventsVtbl; - - interface _IMSVidCtlEvents - { - CONST_VTBL struct _IMSVidCtlEventsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define _IMSVidCtlEvents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define _IMSVidCtlEvents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define _IMSVidCtlEvents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define _IMSVidCtlEvents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define _IMSVidCtlEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define _IMSVidCtlEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define _IMSVidCtlEvents_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 /* ___IMSVidCtlEvents_DISPINTERFACE_DEFINED__ */ - - -EXTERN_C const CLSID CLSID_MSVidAnalogTunerDevice; - -#ifdef __cplusplus - -class DECLSPEC_UUID("1C15D484-911D-11d2-B632-00C04F79498E") -MSVidAnalogTunerDevice; -#endif - -EXTERN_C const CLSID CLSID_MSVidBDATunerDevice; - -#ifdef __cplusplus - -class DECLSPEC_UUID("A2E3074E-6C3D-11d3-B653-00C04F79498E") -MSVidBDATunerDevice; -#endif - -EXTERN_C const CLSID CLSID_MSVidFilePlaybackDevice; - -#ifdef __cplusplus - -class DECLSPEC_UUID("37B0353C-A4C8-11d2-B634-00C04F79498E") -MSVidFilePlaybackDevice; -#endif - -EXTERN_C const CLSID CLSID_MSVidWebDVD; - -#ifdef __cplusplus - -class DECLSPEC_UUID("011B3619-FE63-4814-8A84-15A194CE9CE3") -MSVidWebDVD; -#endif - -EXTERN_C const CLSID CLSID_MSVidWebDVDAdm; - -#ifdef __cplusplus - -class DECLSPEC_UUID("FA7C375B-66A7-4280-879D-FD459C84BB02") -MSVidWebDVDAdm; -#endif - -EXTERN_C const CLSID CLSID_MSVidVideoRenderer; - -#ifdef __cplusplus - -class DECLSPEC_UUID("37B03543-A4C8-11d2-B634-00C04F79498E") -MSVidVideoRenderer; -#endif - -EXTERN_C const CLSID CLSID_MSVidAudioRenderer; - -#ifdef __cplusplus - -class DECLSPEC_UUID("37B03544-A4C8-11d2-B634-00C04F79498E") -MSVidAudioRenderer; -#endif - -EXTERN_C const CLSID CLSID_MSVidStreamBufferSink; - -#ifdef __cplusplus - -class DECLSPEC_UUID("9E77AAC4-35E5-42a1-BDC2-8F3FF399847C") -MSVidStreamBufferSink; -#endif - -EXTERN_C const CLSID CLSID_MSVidStreamBufferSource; - -#ifdef __cplusplus - -class DECLSPEC_UUID("AD8E510D-217F-409b-8076-29C5E73B98E8") -MSVidStreamBufferSource; -#endif - -EXTERN_C const CLSID CLSID_MSVidDataServices; - -#ifdef __cplusplus - -class DECLSPEC_UUID("334125C0-77E5-11d3-B653-00C04F79498E") -MSVidDataServices; -#endif - -EXTERN_C const CLSID CLSID_MSVidEncoder; - -#ifdef __cplusplus - -class DECLSPEC_UUID("BB530C63-D9DF-4b49-9439-63453962E598") -MSVidEncoder; -#endif - -EXTERN_C const CLSID CLSID_MSVidXDS; - -#ifdef __cplusplus - -class DECLSPEC_UUID("0149EEDF-D08F-4142-8D73-D23903D21E90") -MSVidXDS; -#endif - -EXTERN_C const CLSID CLSID_MSVidClosedCaptioning; - -#ifdef __cplusplus - -class DECLSPEC_UUID("7F9CB14D-48E4-43b6-9346-1AEBC39C64D3") -MSVidClosedCaptioning; -#endif - -EXTERN_C const CLSID CLSID_MSVidCtl; - -#ifdef __cplusplus - -class DECLSPEC_UUID("B0EDF163-910A-11D2-B632-00C04F79498E") -MSVidCtl; -#endif - -EXTERN_C const CLSID CLSID_MSVidInputDevices; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C5702CCC-9B79-11d3-B654-00C04F79498E") -MSVidInputDevices; -#endif - -EXTERN_C const CLSID CLSID_MSVidOutputDevices; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C5702CCD-9B79-11d3-B654-00C04F79498E") -MSVidOutputDevices; -#endif - -EXTERN_C const CLSID CLSID_MSVidVideoRendererDevices; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C5702CCE-9B79-11d3-B654-00C04F79498E") -MSVidVideoRendererDevices; -#endif - -EXTERN_C const CLSID CLSID_MSVidAudioRendererDevices; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C5702CCF-9B79-11d3-B654-00C04F79498E") -MSVidAudioRendererDevices; -#endif - -EXTERN_C const CLSID CLSID_MSVidFeatures; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C5702CD0-9B79-11d3-B654-00C04F79498E") -MSVidFeatures; -#endif - -EXTERN_C const CLSID CLSID_MSVidGenericComposite; - -#ifdef __cplusplus - -class DECLSPEC_UUID("2764BCE5-CC39-11D2-B639-00C04F79498E") -MSVidGenericComposite; -#endif - -EXTERN_C const CLSID CLSID_MSVidAnalogCaptureToOverlayMixer; - -#ifdef __cplusplus - -class DECLSPEC_UUID("E18AF75A-08AF-11d3-B64A-00C04F79498E") -MSVidAnalogCaptureToOverlayMixer; -#endif - -EXTERN_C const CLSID CLSID_MSVidAnalogCaptureToDataServices; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C5702CD6-9B79-11d3-B654-00C04F79498E") -MSVidAnalogCaptureToDataServices; -#endif - -EXTERN_C const CLSID CLSID_MSVidWebDVDToVideoRenderer; - -#ifdef __cplusplus - -class DECLSPEC_UUID("267db0b3-55e3-4902-949b-df8f5cec0191") -MSVidWebDVDToVideoRenderer; -#endif - -EXTERN_C const CLSID CLSID_MSVidWebDVDToAudioRenderer; - -#ifdef __cplusplus - -class DECLSPEC_UUID("8D04238E-9FD1-41c6-8DE3-9E1EE309E935") -MSVidWebDVDToAudioRenderer; -#endif - -EXTERN_C const CLSID CLSID_MSVidMPEG2DecoderToClosedCaptioning; - -#ifdef __cplusplus - -class DECLSPEC_UUID("6AD28EE1-5002-4e71-AAF7-BD077907B1A4") -MSVidMPEG2DecoderToClosedCaptioning; -#endif - -EXTERN_C const CLSID CLSID_MSVidAnalogCaptureToStreamBufferSink; - -#ifdef __cplusplus - -class DECLSPEC_UUID("9F50E8B1-9530-4ddc-825E-1AF81D47AED6") -MSVidAnalogCaptureToStreamBufferSink; -#endif - -EXTERN_C const CLSID CLSID_MSVidDigitalCaptureToStreamBufferSink; - -#ifdef __cplusplus - -class DECLSPEC_UUID("ABE40035-27C3-4a2f-8153-6624471608AF") -MSVidDigitalCaptureToStreamBufferSink; -#endif - -EXTERN_C const CLSID CLSID_MSVidDataServicesToStreamBufferSink; - -#ifdef __cplusplus - -class DECLSPEC_UUID("38F03426-E83B-4e68-B65B-DCAE73304838") -MSVidDataServicesToStreamBufferSink; -#endif - -EXTERN_C const CLSID CLSID_MSVidDataServicesToXDS; - -#ifdef __cplusplus - -class DECLSPEC_UUID("0429EC6E-1144-4bed-B88B-2FB9899A4A3D") -MSVidDataServicesToXDS; -#endif - -EXTERN_C const CLSID CLSID_MSVidEncoderToStreamBufferSink; - -#ifdef __cplusplus - -class DECLSPEC_UUID("A0B9B497-AFBC-45ad-A8A6-9B077C40D4F2") -MSVidEncoderToStreamBufferSink; -#endif - -EXTERN_C const CLSID CLSID_MSVidFilePlaybackToVideoRenderer; - -#ifdef __cplusplus - -class DECLSPEC_UUID("B401C5EB-8457-427f-84EA-A4D2363364B0") -MSVidFilePlaybackToVideoRenderer; -#endif - -EXTERN_C const CLSID CLSID_MSVidFilePlaybackToAudioRenderer; - -#ifdef __cplusplus - -class DECLSPEC_UUID("CC23F537-18D4-4ece-93BD-207A84726979") -MSVidFilePlaybackToAudioRenderer; -#endif - -EXTERN_C const CLSID CLSID_MSVidAnalogTVToEncoder; - -#ifdef __cplusplus - -class DECLSPEC_UUID("28953661-0231-41db-8986-21FF4388EE9B") -MSVidAnalogTVToEncoder; -#endif - -EXTERN_C const CLSID CLSID_MSVidStreamBufferSourceToVideoRenderer; - -#ifdef __cplusplus - -class DECLSPEC_UUID("3C4708DC-B181-46a8-8DA8-4AB0371758CD") -MSVidStreamBufferSourceToVideoRenderer; -#endif - -EXTERN_C const CLSID CLSID_MSVidAnalogCaptureToXDS; - -#ifdef __cplusplus - -class DECLSPEC_UUID("3540D440-5B1D-49cb-821A-E84B8CF065A7") -MSVidAnalogCaptureToXDS; -#endif - -EXTERN_C const CLSID CLSID_MSVidSBESourceToCC; - -#ifdef __cplusplus - -class DECLSPEC_UUID("9193A8F9-0CBA-400e-AA97-EB4709164576") -MSVidSBESourceToCC; -#endif - -EXTERN_C const CLSID CLSID_MSEventBinder; - -#ifdef __cplusplus - -class DECLSPEC_UUID("577FAA18-4518-445E-8F70-1473F8CF4BA4") -MSEventBinder; -#endif - -EXTERN_C const CLSID CLSID_MSVidStreamBufferRecordingControl; - -#ifdef __cplusplus - -class DECLSPEC_UUID("CAAFDD83-CEFC-4e3d-BA03-175F17A24F91") -MSVidStreamBufferRecordingControl; -#endif - -EXTERN_C const CLSID CLSID_MSVidRect; - -#ifdef __cplusplus - -class DECLSPEC_UUID("CB4276E6-7D5F-4cf1-9727-629C5E6DB6AE") -MSVidRect; -#endif - -EXTERN_C const CLSID CLSID_MSVidDevice; - -#ifdef __cplusplus - -class DECLSPEC_UUID("6E40476F-9C49-4c3e-8BB9-8587958EFF74") -MSVidDevice; -#endif - -EXTERN_C const CLSID CLSID_MSVidInputDevice; - -#ifdef __cplusplus - -class DECLSPEC_UUID("AC1972F2-138A-4ca3-90DA-AE51112EDA28") -MSVidInputDevice; -#endif - -EXTERN_C const CLSID CLSID_MSVidVideoInputDevice; - -#ifdef __cplusplus - -class DECLSPEC_UUID("95F4820B-BB3A-4e2d-BC64-5B817BC2C30E") -MSVidVideoInputDevice; -#endif - -EXTERN_C const CLSID CLSID_MSVidVideoPlaybackDevice; - -#ifdef __cplusplus - -class DECLSPEC_UUID("1990D634-1A5E-4071-A34A-53AAFFCE9F36") -MSVidVideoPlaybackDevice; -#endif - -EXTERN_C const CLSID CLSID_MSVidFeature; - -#ifdef __cplusplus - -class DECLSPEC_UUID("7748530B-C08A-47ea-B24C-BE8695FF405F") -MSVidFeature; -#endif - -EXTERN_C const CLSID CLSID_MSVidOutput; - -#ifdef __cplusplus - -class DECLSPEC_UUID("87EB890D-03AD-4e9d-9866-376E5EC572ED") -MSVidOutput; -#endif -#endif /* __MSVidCtlLib_LIBRARY_DEFINED__ */ - -/* 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 * ); - -unsigned long __RPC_USER VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); -void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * ); - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/PixPlugin.h b/sdk/dx8sdk/Include/PixPlugin.h deleted file mode 100644 index 4825cd3a..00000000 --- a/sdk/dx8sdk/Include/PixPlugin.h +++ /dev/null @@ -1,115 +0,0 @@ -//================================================================================================== -// PIXPlugin.h -// -// Microsoft PIX Plugin Header -// -// Copyright (c) Microsoft Corporation, All rights reserved -//================================================================================================== - -#pragma once - -#ifdef __cplusplus -extern "C" -{ -#endif - - -//================================================================================================== -// PIX_PLUGIN_SYSTEM_VERSION - Indicates version of the plugin interface the plugin is built with. -//================================================================================================== -#define PIX_PLUGIN_SYSTEM_VERSION 0x101 - - -//================================================================================================== -// PIXCOUNTERID - A unique identifier for each PIX plugin counter. -//================================================================================================== -typedef int PIXCOUNTERID; - - -//================================================================================================== -// PIXCOUNTERDATATYPE - Indicates what type of data the counter produces. -//================================================================================================== -enum PIXCOUNTERDATATYPE -{ - PCDT_RESERVED, - PCDT_FLOAT, - PCDT_INT, - PCDT_INT64, - PCDT_STRING, -}; - - -//================================================================================================== -// PIXPLUGININFO - This structure is filled out by PIXGetPluginInfo and passed back to PIX. -//================================================================================================== -struct PIXPLUGININFO -{ - // Filled in by caller: - HINSTANCE hinst; - - // Filled in by PIXGetPluginInfo: - WCHAR* pstrPluginName; // Name of plugin - int iPluginVersion; // Version of this particular plugin - int iPluginSystemVersion; // Version of PIX's plugin system this plugin was designed for -}; - - -//================================================================================================== -// PIXCOUNTERINFO - This structure is filled out by PIXGetCounterInfo and passed back to PIX -// to allow PIX to determine information about the counters in the plugin. -//================================================================================================== -struct PIXCOUNTERINFO -{ - PIXCOUNTERID counterID; // Used to uniquely ID this counter - WCHAR* pstrName; // String name of the counter - PIXCOUNTERDATATYPE pcdtDataType; // Data type returned by this counter -}; - - -//================================================================================================== -// PIXGetPluginInfo - This returns basic information about this plugin to PIX. -//================================================================================================== -BOOL WINAPI PIXGetPluginInfo( PIXPLUGININFO* pPIXPluginInfo ); - - -//================================================================================================== -// PIXGetCounterInfo - This returns an array of PIXCOUNTERINFO structs to PIX. -// These PIXCOUNTERINFOs allow PIX to enumerate the counters contained -// in this plugin. -//================================================================================================== -BOOL WINAPI PIXGetCounterInfo( DWORD* pdwReturnCounters, PIXCOUNTERINFO** ppCounterInfoList ); - - -//================================================================================================== -// PIXGetCounterDesc - This is called by PIX to request a description of the indicated counter. -//================================================================================================== -BOOL WINAPI PIXGetCounterDesc( PIXCOUNTERID id, WCHAR** ppstrCounterDesc ); - - -//================================================================================================== -// PIXBeginExperiment - This called by PIX once per counter when instrumentation starts. -//================================================================================================== -BOOL WINAPI PIXBeginExperiment( PIXCOUNTERID id, const WCHAR* pstrApplication ); - - -//================================================================================================== -// PIXEndFrame - This is called by PIX once per counter at the end of each frame to gather the -// counter value for that frame. -//================================================================================================== -BOOL WINAPI PIXEndFrame( PIXCOUNTERID id, UINT iFrame, DWORD* pdwReturnBytes, BYTE** ppReturnData ); - - -//================================================================================================== -// PIXEndExperiment - This is called by PIX once per counter when instrumentation ends. -//================================================================================================== -BOOL WINAPI PIXEndExperiment( PIXCOUNTERID id ); - - -#ifdef __cplusplus -}; -#endif - -//================================================================================================== -// eof: PIXPlugin.h -//================================================================================================== - diff --git a/sdk/dx8sdk/Include/Segment.h b/sdk/dx8sdk/Include/Segment.h deleted file mode 100644 index da51f252..00000000 --- a/sdk/dx8sdk/Include/Segment.h +++ /dev/null @@ -1,16115 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for segment.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __segment_h__ -#define __segment_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IMSVidRect_FWD_DEFINED__ -#define __IMSVidRect_FWD_DEFINED__ -typedef interface IMSVidRect IMSVidRect; -#endif /* __IMSVidRect_FWD_DEFINED__ */ - - -#ifndef __IMSVidGraphSegmentContainer_FWD_DEFINED__ -#define __IMSVidGraphSegmentContainer_FWD_DEFINED__ -typedef interface IMSVidGraphSegmentContainer IMSVidGraphSegmentContainer; -#endif /* __IMSVidGraphSegmentContainer_FWD_DEFINED__ */ - - -#ifndef __IMSVidGraphSegment_FWD_DEFINED__ -#define __IMSVidGraphSegment_FWD_DEFINED__ -typedef interface IMSVidGraphSegment IMSVidGraphSegment; -#endif /* __IMSVidGraphSegment_FWD_DEFINED__ */ - - -#ifndef __IMSVidGraphSegmentUserInput_FWD_DEFINED__ -#define __IMSVidGraphSegmentUserInput_FWD_DEFINED__ -typedef interface IMSVidGraphSegmentUserInput IMSVidGraphSegmentUserInput; -#endif /* __IMSVidGraphSegmentUserInput_FWD_DEFINED__ */ - - -#ifndef __IMSVidCompositionSegment_FWD_DEFINED__ -#define __IMSVidCompositionSegment_FWD_DEFINED__ -typedef interface IMSVidCompositionSegment IMSVidCompositionSegment; -#endif /* __IMSVidCompositionSegment_FWD_DEFINED__ */ - - -#ifndef __IEnumMSVidGraphSegment_FWD_DEFINED__ -#define __IEnumMSVidGraphSegment_FWD_DEFINED__ -typedef interface IEnumMSVidGraphSegment IEnumMSVidGraphSegment; -#endif /* __IEnumMSVidGraphSegment_FWD_DEFINED__ */ - - -#ifndef __IMSVidVRGraphSegment_FWD_DEFINED__ -#define __IMSVidVRGraphSegment_FWD_DEFINED__ -typedef interface IMSVidVRGraphSegment IMSVidVRGraphSegment; -#endif /* __IMSVidVRGraphSegment_FWD_DEFINED__ */ - - -#ifndef __IMSVidDevice_FWD_DEFINED__ -#define __IMSVidDevice_FWD_DEFINED__ -typedef interface IMSVidDevice IMSVidDevice; -#endif /* __IMSVidDevice_FWD_DEFINED__ */ - - -#ifndef __IMSVidInputDevice_FWD_DEFINED__ -#define __IMSVidInputDevice_FWD_DEFINED__ -typedef interface IMSVidInputDevice IMSVidInputDevice; -#endif /* __IMSVidInputDevice_FWD_DEFINED__ */ - - -#ifndef __IMSVidDeviceEvent_FWD_DEFINED__ -#define __IMSVidDeviceEvent_FWD_DEFINED__ -typedef interface IMSVidDeviceEvent IMSVidDeviceEvent; -#endif /* __IMSVidDeviceEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidInputDeviceEvent_FWD_DEFINED__ -#define __IMSVidInputDeviceEvent_FWD_DEFINED__ -typedef interface IMSVidInputDeviceEvent IMSVidInputDeviceEvent; -#endif /* __IMSVidInputDeviceEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidVideoInputDevice_FWD_DEFINED__ -#define __IMSVidVideoInputDevice_FWD_DEFINED__ -typedef interface IMSVidVideoInputDevice IMSVidVideoInputDevice; -#endif /* __IMSVidVideoInputDevice_FWD_DEFINED__ */ - - -#ifndef __IMSVidPlayback_FWD_DEFINED__ -#define __IMSVidPlayback_FWD_DEFINED__ -typedef interface IMSVidPlayback IMSVidPlayback; -#endif /* __IMSVidPlayback_FWD_DEFINED__ */ - - -#ifndef __IMSVidPlaybackEvent_FWD_DEFINED__ -#define __IMSVidPlaybackEvent_FWD_DEFINED__ -typedef interface IMSVidPlaybackEvent IMSVidPlaybackEvent; -#endif /* __IMSVidPlaybackEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidTuner_FWD_DEFINED__ -#define __IMSVidTuner_FWD_DEFINED__ -typedef interface IMSVidTuner IMSVidTuner; -#endif /* __IMSVidTuner_FWD_DEFINED__ */ - - -#ifndef __IMSVidTunerEvent_FWD_DEFINED__ -#define __IMSVidTunerEvent_FWD_DEFINED__ -typedef interface IMSVidTunerEvent IMSVidTunerEvent; -#endif /* __IMSVidTunerEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidAnalogTuner_FWD_DEFINED__ -#define __IMSVidAnalogTuner_FWD_DEFINED__ -typedef interface IMSVidAnalogTuner IMSVidAnalogTuner; -#endif /* __IMSVidAnalogTuner_FWD_DEFINED__ */ - - -#ifndef __IMSVidAnalogTunerEvent_FWD_DEFINED__ -#define __IMSVidAnalogTunerEvent_FWD_DEFINED__ -typedef interface IMSVidAnalogTunerEvent IMSVidAnalogTunerEvent; -#endif /* __IMSVidAnalogTunerEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidFilePlayback_FWD_DEFINED__ -#define __IMSVidFilePlayback_FWD_DEFINED__ -typedef interface IMSVidFilePlayback IMSVidFilePlayback; -#endif /* __IMSVidFilePlayback_FWD_DEFINED__ */ - - -#ifndef __IMSVidFilePlaybackEvent_FWD_DEFINED__ -#define __IMSVidFilePlaybackEvent_FWD_DEFINED__ -typedef interface IMSVidFilePlaybackEvent IMSVidFilePlaybackEvent; -#endif /* __IMSVidFilePlaybackEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidWebDVD_FWD_DEFINED__ -#define __IMSVidWebDVD_FWD_DEFINED__ -typedef interface IMSVidWebDVD IMSVidWebDVD; -#endif /* __IMSVidWebDVD_FWD_DEFINED__ */ - - -#ifndef __IMSVidWebDVDEvent_FWD_DEFINED__ -#define __IMSVidWebDVDEvent_FWD_DEFINED__ -typedef interface IMSVidWebDVDEvent IMSVidWebDVDEvent; -#endif /* __IMSVidWebDVDEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidWebDVDAdm_FWD_DEFINED__ -#define __IMSVidWebDVDAdm_FWD_DEFINED__ -typedef interface IMSVidWebDVDAdm IMSVidWebDVDAdm; -#endif /* __IMSVidWebDVDAdm_FWD_DEFINED__ */ - - -#ifndef __IMSVidOutputDevice_FWD_DEFINED__ -#define __IMSVidOutputDevice_FWD_DEFINED__ -typedef interface IMSVidOutputDevice IMSVidOutputDevice; -#endif /* __IMSVidOutputDevice_FWD_DEFINED__ */ - - -#ifndef __IMSVidOutputDeviceEvent_FWD_DEFINED__ -#define __IMSVidOutputDeviceEvent_FWD_DEFINED__ -typedef interface IMSVidOutputDeviceEvent IMSVidOutputDeviceEvent; -#endif /* __IMSVidOutputDeviceEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidFeature_FWD_DEFINED__ -#define __IMSVidFeature_FWD_DEFINED__ -typedef interface IMSVidFeature IMSVidFeature; -#endif /* __IMSVidFeature_FWD_DEFINED__ */ - - -#ifndef __IMSVidFeatureEvent_FWD_DEFINED__ -#define __IMSVidFeatureEvent_FWD_DEFINED__ -typedef interface IMSVidFeatureEvent IMSVidFeatureEvent; -#endif /* __IMSVidFeatureEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidEncoder_FWD_DEFINED__ -#define __IMSVidEncoder_FWD_DEFINED__ -typedef interface IMSVidEncoder IMSVidEncoder; -#endif /* __IMSVidEncoder_FWD_DEFINED__ */ - - -#ifndef __IMSVidXDS_FWD_DEFINED__ -#define __IMSVidXDS_FWD_DEFINED__ -typedef interface IMSVidXDS IMSVidXDS; -#endif /* __IMSVidXDS_FWD_DEFINED__ */ - - -#ifndef __IMSVidDataServices_FWD_DEFINED__ -#define __IMSVidDataServices_FWD_DEFINED__ -typedef interface IMSVidDataServices IMSVidDataServices; -#endif /* __IMSVidDataServices_FWD_DEFINED__ */ - - -#ifndef __IMSVidDataServicesEvent_FWD_DEFINED__ -#define __IMSVidDataServicesEvent_FWD_DEFINED__ -typedef interface IMSVidDataServicesEvent IMSVidDataServicesEvent; -#endif /* __IMSVidDataServicesEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidClosedCaptioning_FWD_DEFINED__ -#define __IMSVidClosedCaptioning_FWD_DEFINED__ -typedef interface IMSVidClosedCaptioning IMSVidClosedCaptioning; -#endif /* __IMSVidClosedCaptioning_FWD_DEFINED__ */ - - -#ifndef __IMSVidClosedCaptioning2_FWD_DEFINED__ -#define __IMSVidClosedCaptioning2_FWD_DEFINED__ -typedef interface IMSVidClosedCaptioning2 IMSVidClosedCaptioning2; -#endif /* __IMSVidClosedCaptioning2_FWD_DEFINED__ */ - - -#ifndef __IMSVidVideoRenderer_FWD_DEFINED__ -#define __IMSVidVideoRenderer_FWD_DEFINED__ -typedef interface IMSVidVideoRenderer IMSVidVideoRenderer; -#endif /* __IMSVidVideoRenderer_FWD_DEFINED__ */ - - -#ifndef __IMSVidVideoRendererEvent_FWD_DEFINED__ -#define __IMSVidVideoRendererEvent_FWD_DEFINED__ -typedef interface IMSVidVideoRendererEvent IMSVidVideoRendererEvent; -#endif /* __IMSVidVideoRendererEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidStreamBufferRecordingControl_FWD_DEFINED__ -#define __IMSVidStreamBufferRecordingControl_FWD_DEFINED__ -typedef interface IMSVidStreamBufferRecordingControl IMSVidStreamBufferRecordingControl; -#endif /* __IMSVidStreamBufferRecordingControl_FWD_DEFINED__ */ - - -#ifndef __IMSVidStreamBufferSink_FWD_DEFINED__ -#define __IMSVidStreamBufferSink_FWD_DEFINED__ -typedef interface IMSVidStreamBufferSink IMSVidStreamBufferSink; -#endif /* __IMSVidStreamBufferSink_FWD_DEFINED__ */ - - -#ifndef __IMSVidStreamBufferSinkEvent_FWD_DEFINED__ -#define __IMSVidStreamBufferSinkEvent_FWD_DEFINED__ -typedef interface IMSVidStreamBufferSinkEvent IMSVidStreamBufferSinkEvent; -#endif /* __IMSVidStreamBufferSinkEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidStreamBufferSource_FWD_DEFINED__ -#define __IMSVidStreamBufferSource_FWD_DEFINED__ -typedef interface IMSVidStreamBufferSource IMSVidStreamBufferSource; -#endif /* __IMSVidStreamBufferSource_FWD_DEFINED__ */ - - -#ifndef __IMSVidStreamBufferSourceEvent_FWD_DEFINED__ -#define __IMSVidStreamBufferSourceEvent_FWD_DEFINED__ -typedef interface IMSVidStreamBufferSourceEvent IMSVidStreamBufferSourceEvent; -#endif /* __IMSVidStreamBufferSourceEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidVideoRenderer2_FWD_DEFINED__ -#define __IMSVidVideoRenderer2_FWD_DEFINED__ -typedef interface IMSVidVideoRenderer2 IMSVidVideoRenderer2; -#endif /* __IMSVidVideoRenderer2_FWD_DEFINED__ */ - - -#ifndef __IMSVidVideoRendererEvent2_FWD_DEFINED__ -#define __IMSVidVideoRendererEvent2_FWD_DEFINED__ -typedef interface IMSVidVideoRendererEvent2 IMSVidVideoRendererEvent2; -#endif /* __IMSVidVideoRendererEvent2_FWD_DEFINED__ */ - - -#ifndef __IMSVidAudioRenderer_FWD_DEFINED__ -#define __IMSVidAudioRenderer_FWD_DEFINED__ -typedef interface IMSVidAudioRenderer IMSVidAudioRenderer; -#endif /* __IMSVidAudioRenderer_FWD_DEFINED__ */ - - -#ifndef __IMSVidAudioRendererEvent_FWD_DEFINED__ -#define __IMSVidAudioRendererEvent_FWD_DEFINED__ -typedef interface IMSVidAudioRendererEvent IMSVidAudioRendererEvent; -#endif /* __IMSVidAudioRendererEvent_FWD_DEFINED__ */ - - -#ifndef __IMSVidInputDevices_FWD_DEFINED__ -#define __IMSVidInputDevices_FWD_DEFINED__ -typedef interface IMSVidInputDevices IMSVidInputDevices; -#endif /* __IMSVidInputDevices_FWD_DEFINED__ */ - - -#ifndef __IMSVidOutputDevices_FWD_DEFINED__ -#define __IMSVidOutputDevices_FWD_DEFINED__ -typedef interface IMSVidOutputDevices IMSVidOutputDevices; -#endif /* __IMSVidOutputDevices_FWD_DEFINED__ */ - - -#ifndef __IMSVidVideoRendererDevices_FWD_DEFINED__ -#define __IMSVidVideoRendererDevices_FWD_DEFINED__ -typedef interface IMSVidVideoRendererDevices IMSVidVideoRendererDevices; -#endif /* __IMSVidVideoRendererDevices_FWD_DEFINED__ */ - - -#ifndef __IMSVidAudioRendererDevices_FWD_DEFINED__ -#define __IMSVidAudioRendererDevices_FWD_DEFINED__ -typedef interface IMSVidAudioRendererDevices IMSVidAudioRendererDevices; -#endif /* __IMSVidAudioRendererDevices_FWD_DEFINED__ */ - - -#ifndef __IMSVidFeatures_FWD_DEFINED__ -#define __IMSVidFeatures_FWD_DEFINED__ -typedef interface IMSVidFeatures IMSVidFeatures; -#endif /* __IMSVidFeatures_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "oaidl.h" -#include "ocidl.h" -#include "strmif.h" -#include "tuner.h" -#include "tvratings.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_segment_0000 */ -/* [local] */ - -//+------------------------------------------------------------------------- -// -// Microsoft Windows -// Copyright (C) Microsoft Corporation, 1999-2000. -// -//-------------------------------------------------------------------------- -#pragma once -#include -typedef /* [public] */ -enum __MIDL___MIDL_itf_segment_0000_0001 - { dispidName = 0, - dispidStatus = dispidName + 1, - dispidDevImageSourceWidth = dispidStatus + 1, - dispidDevImageSourceHeight = dispidDevImageSourceWidth + 1, - dispidDevCountryCode = dispidDevImageSourceHeight + 1, - dispidDevOverScan = dispidDevCountryCode + 1, - dispidSegment = dispidDevOverScan + 1, - dispidDevVolume = dispidSegment + 1, - dispidDevBalance = dispidDevVolume + 1, - dispidDevPower = dispidDevBalance + 1, - dispidTuneChan = dispidDevPower + 1, - dispidDevVideoSubchannel = dispidTuneChan + 1, - dispidDevAudioSubchannel = dispidDevVideoSubchannel + 1, - dispidChannelAvailable = dispidDevAudioSubchannel + 1, - dispidDevVideoFrequency = dispidChannelAvailable + 1, - dispidDevAudioFrequency = dispidDevVideoFrequency + 1, - dispidCount = dispidDevAudioFrequency + 1, - dispidDevFileName = dispidCount + 1, - dispidVisible = dispidDevFileName + 1, - dispidOwner = dispidVisible + 1, - dispidMessageDrain = dispidOwner + 1, - dispidViewable = dispidMessageDrain + 1, - dispidDevView = dispidViewable + 1, - dispidKSCat = dispidDevView + 1, - dispidCLSID = dispidKSCat + 1, - dispid_KSCat = dispidCLSID + 1, - dispid_CLSID = dispid_KSCat + 1, - dispidTune = dispid_CLSID + 1, - dispidTS = dispidTune + 1, - dispidDevSAP = dispidTS + 1, - dispidClip = dispidDevSAP + 1, - dispidRequestedClipRect = dispidClip + 1, - dispidClippedSourceRect = dispidRequestedClipRect + 1, - dispidAvailableSourceRect = dispidClippedSourceRect + 1, - dispidMediaPosition = dispidAvailableSourceRect + 1, - dispidDevRun = dispidMediaPosition + 1, - dispidDevPause = dispidDevRun + 1, - dispidDevStop = dispidDevPause + 1, - dispidCCEnable = dispidDevStop + 1, - dispidDevStep = dispidCCEnable + 1, - dispidDevCanStep = dispidDevStep + 1, - dispidSourceSize = dispidDevCanStep + 1, - dispid_playtitle = dispidSourceSize + 1, - dispid_playchapterintitle = dispid_playtitle + 1, - dispid_playchapter = dispid_playchapterintitle + 1, - dispid_playchaptersautostop = dispid_playchapter + 1, - dispid_playattime = dispid_playchaptersautostop + 1, - dispid_playattimeintitle = dispid_playattime + 1, - dispid_playperiodintitleautostop = dispid_playattimeintitle + 1, - dispid_replaychapter = dispid_playperiodintitleautostop + 1, - dispid_playprevchapter = dispid_replaychapter + 1, - dispid_playnextchapter = dispid_playprevchapter + 1, - dispid_playforwards = dispid_playnextchapter + 1, - dispid_playbackwards = dispid_playforwards + 1, - dispid_stilloff = dispid_playbackwards + 1, - dispid_audiolanguage = dispid_stilloff + 1, - dispid_showmenu = dispid_audiolanguage + 1, - dispid_resume = dispid_showmenu + 1, - dispid_returnfromsubmenu = dispid_resume + 1, - dispid_buttonsavailable = dispid_returnfromsubmenu + 1, - dispid_currentbutton = dispid_buttonsavailable + 1, - dispid_SelectAndActivateButton = dispid_currentbutton + 1, - dispid_ActivateButton = dispid_SelectAndActivateButton + 1, - dispid_SelectRightButton = dispid_ActivateButton + 1, - dispid_SelectLeftButton = dispid_SelectRightButton + 1, - dispid_SelectLowerButton = dispid_SelectLeftButton + 1, - dispid_SelectUpperButton = dispid_SelectLowerButton + 1, - dispid_ActivateAtPosition = dispid_SelectUpperButton + 1, - dispid_SelectAtPosition = dispid_ActivateAtPosition + 1, - dispid_ButtonAtPosition = dispid_SelectAtPosition + 1, - dispid_NumberOfChapters = dispid_ButtonAtPosition + 1, - dispid_TotalTitleTime = dispid_NumberOfChapters + 1, - dispid_TitlesAvailable = dispid_TotalTitleTime + 1, - dispid_VolumesAvailable = dispid_TitlesAvailable + 1, - dispid_CurrentVolume = dispid_VolumesAvailable + 1, - dispid_CurrentDiscSide = dispid_CurrentVolume + 1, - dispid_CurrentDomain = dispid_CurrentDiscSide + 1, - dispid_CurrentChapter = dispid_CurrentDomain + 1, - dispid_CurrentTitle = dispid_CurrentChapter + 1, - dispid_CurrentTime = dispid_CurrentTitle + 1, - dispid_FramesPerSecond = dispid_CurrentTime + 1, - dispid_DVDTimeCode2bstr = dispid_FramesPerSecond + 1, - dispid_DVDDirectory = dispid_DVDTimeCode2bstr + 1, - dispid_IsSubpictureStreamEnabled = dispid_DVDDirectory + 1, - dispid_IsAudioStreamEnabled = dispid_IsSubpictureStreamEnabled + 1, - dispid_CurrentSubpictureStream = dispid_IsAudioStreamEnabled + 1, - dispid_SubpictureLanguage = dispid_CurrentSubpictureStream + 1, - dispid_CurrentAudioStream = dispid_SubpictureLanguage + 1, - dispid_AudioStreamsAvailable = dispid_CurrentAudioStream + 1, - dispid_AnglesAvailable = dispid_AudioStreamsAvailable + 1, - dispid_CurrentAngle = dispid_AnglesAvailable + 1, - dispid_CCActive = dispid_CurrentAngle + 1, - dispid_CurrentCCService = dispid_CCActive + 1, - dispid_SubpictureStreamsAvailable = dispid_CurrentCCService + 1, - dispid_SubpictureOn = dispid_SubpictureStreamsAvailable + 1, - dispid_DVDUniqueID = dispid_SubpictureOn + 1, - dispid_EnableResetOnStop = dispid_DVDUniqueID + 1, - dispid_AcceptParentalLevelChange = dispid_EnableResetOnStop + 1, - dispid_NotifyParentalLevelChange = dispid_AcceptParentalLevelChange + 1, - dispid_SelectParentalCountry = dispid_NotifyParentalLevelChange + 1, - dispid_SelectParentalLevel = dispid_SelectParentalCountry + 1, - dispid_TitleParentalLevels = dispid_SelectParentalLevel + 1, - dispid_PlayerParentalCountry = dispid_TitleParentalLevels + 1, - dispid_PlayerParentalLevel = dispid_PlayerParentalCountry + 1, - dispid_Eject = dispid_PlayerParentalLevel + 1, - dispid_UOPValid = dispid_Eject + 1, - dispid_SPRM = dispid_UOPValid + 1, - dispid_GPRM = dispid_SPRM + 1, - dispid_DVDTextStringType = dispid_GPRM + 1, - dispid_DVDTextString = dispid_DVDTextStringType + 1, - dispid_DVDTextNumberOfStrings = dispid_DVDTextString + 1, - dispid_DVDTextNumberOfLanguages = dispid_DVDTextNumberOfStrings + 1, - dispid_DVDTextLanguageLCID = dispid_DVDTextNumberOfLanguages + 1, - dispid_RegionChange = dispid_DVDTextLanguageLCID + 1, - dispid_DVDAdm = dispid_RegionChange + 1, - dispid_DeleteBookmark = dispid_DVDAdm + 1, - dispid_RestoreBookmark = dispid_DeleteBookmark + 1, - dispid_SaveBookmark = dispid_RestoreBookmark + 1, - dispid_SelectDefaultAudioLanguage = dispid_SaveBookmark + 1, - dispid_SelectDefaultSubpictureLanguage = dispid_SelectDefaultAudioLanguage + 1, - dispid_PreferredSubpictureStream = dispid_SelectDefaultSubpictureLanguage + 1, - dispid_DefaultMenuLanguage = dispid_PreferredSubpictureStream + 1, - dispid_DefaultSubpictureLanguage = dispid_DefaultMenuLanguage + 1, - dispid_DefaultAudioLanguage = dispid_DefaultSubpictureLanguage + 1, - dispid_DefaultSubpictureLanguageExt = dispid_DefaultAudioLanguage + 1, - dispid_DefaultAudioLanguageExt = dispid_DefaultSubpictureLanguageExt + 1, - dispid_LanguageFromLCID = dispid_DefaultAudioLanguageExt + 1, - dispid_KaraokeAudioPresentationMode = dispid_LanguageFromLCID + 1, - dispid_KaraokeChannelContent = dispid_KaraokeAudioPresentationMode + 1, - dispid_KaraokeChannelAssignment = dispid_KaraokeChannelContent + 1, - dispid_RestorePreferredSettings = dispid_KaraokeChannelAssignment + 1, - dispid_ButtonRect = dispid_RestorePreferredSettings + 1, - dispid_DVDScreenInMouseCoordinates = dispid_ButtonRect + 1, - dispid_CustomCompositorClass = dispid_DVDScreenInMouseCoordinates + 1, - dispidCustomCompositorClass = dispid_CustomCompositorClass + 1, - dispid_CustomCompositor = dispidCustomCompositorClass + 1, - dispidMixerBitmap = dispid_CustomCompositor + 1, - dispid_MixerBitmap = dispidMixerBitmap + 1, - dispidMixerBitmapOpacity = dispid_MixerBitmap + 1, - dispidMixerBitmapRect = dispidMixerBitmapOpacity + 1, - dispidSetupMixerBitmap = dispidMixerBitmapRect + 1, - dispidUsingOverlay = dispidSetupMixerBitmap + 1, - dispidDisplayChange = dispidUsingOverlay + 1, - dispidRePaint = dispidDisplayChange + 1, - dispid_IsEqualDevice = dispidRePaint + 1, - dispidrate = dispid_IsEqualDevice + 1, - dispidposition = dispidrate + 1, - dispidpositionmode = dispidposition + 1, - dispidlength = dispidpositionmode + 1, - dispidChangePassword = dispidlength + 1, - dispidSaveParentalLevel = dispidChangePassword + 1, - dispidSaveParentalCountry = dispidSaveParentalLevel + 1, - dispidConfirmPassword = dispidSaveParentalCountry + 1, - dispidGetParentalLevel = dispidConfirmPassword + 1, - dispidGetParentalCountry = dispidGetParentalLevel + 1, - dispidDefaultAudioLCID = dispidGetParentalCountry + 1, - dispidDefaultSubpictureLCID = dispidDefaultAudioLCID + 1, - dispidDefaultMenuLCID = dispidDefaultSubpictureLCID + 1, - dispidBookmarkOnStop = dispidDefaultMenuLCID + 1, - dispidMaxVidRect = dispidBookmarkOnStop + 1, - dispidMinVidRect = dispidMaxVidRect + 1, - dispidCapture = dispidMinVidRect + 1, - dispid_DecimateInput = dispidCapture + 1, - dispidAlloctor = dispid_DecimateInput + 1, - dispid_Allocator = dispidAlloctor + 1, - dispidAllocPresentID = dispid_Allocator + 1, - dispidSetAllocator = dispidAllocPresentID + 1, - dispid_SetAllocator = dispidSetAllocator + 1, - dispidStreamBufferSinkName = dispid_SetAllocator + 1, - dispidStreamBufferSourceName = dispidStreamBufferSinkName + 1, - dispidStreamBufferContentRecording = dispidStreamBufferSourceName + 1, - dispidStreamBufferReferenceRecording = dispidStreamBufferContentRecording + 1, - dispidstarttime = dispidStreamBufferReferenceRecording + 1, - dispidstoptime = dispidstarttime + 1, - dispidrecordingstopped = dispidstoptime + 1, - dispidrecordingstarted = dispidrecordingstopped + 1, - dispidNameSetLock = dispidrecordingstarted + 1, - dispidrecordingtype = dispidNameSetLock + 1, - dispidstart = dispidrecordingtype + 1, - dispidRecordingAttribute = dispidstart + 1, - dispid_RecordingAttribute = dispidRecordingAttribute + 1, - dispidSBEConfigure = dispid_RecordingAttribute + 1, - dispid_CurrentRatings = dispidSBEConfigure + 1, - dispid_MaxRatingsLevel = dispid_CurrentRatings + 1, - dispid_audioencoderint = dispid_MaxRatingsLevel + 1, - dispid_videoencoderint = dispid_audioencoderint + 1, - dispidService = dispid_videoencoderint + 1, - dispid_BlockUnrated = dispidService + 1, - dispid_UnratedDelay = dispid_BlockUnrated + 1, - dispid_SuppressEffects = dispid_UnratedDelay + 1, - dispidsbesource = dispid_SuppressEffects + 1, - LastReservedDeviceDispid = 0x3fff - } SegDispidList; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_segment_0000_0002 - { eventidStateChange = 0, - eventidOnTuneChanged = eventidStateChange + 1, - eventidEndOfMedia = eventidOnTuneChanged + 1, - eventidDVDNotify = eventidEndOfMedia + 1, - eventidPlayForwards = eventidDVDNotify + 1, - eventidPlayBackwards = eventidPlayForwards + 1, - eventidShowMenu = eventidPlayBackwards + 1, - eventidResume = eventidShowMenu + 1, - eventidSelectOrActivateButton = eventidResume + 1, - eventidStillOff = eventidSelectOrActivateButton + 1, - eventidPauseOn = eventidStillOff + 1, - eventidChangeCurrentAudioStream = eventidPauseOn + 1, - eventidChangeCurrentSubpictureStream = eventidChangeCurrentAudioStream + 1, - eventidChangeCurrentAngle = eventidChangeCurrentSubpictureStream + 1, - eventidPlayAtTimeInTitle = eventidChangeCurrentAngle + 1, - eventidPlayAtTime = eventidPlayAtTimeInTitle + 1, - eventidPlayChapterInTitle = eventidPlayAtTime + 1, - eventidPlayChapter = eventidPlayChapterInTitle + 1, - eventidReplayChapter = eventidPlayChapter + 1, - eventidPlayNextChapter = eventidReplayChapter + 1, - eventidStop = eventidPlayNextChapter + 1, - eventidReturnFromSubmenu = eventidStop + 1, - eventidPlayTitle = eventidReturnFromSubmenu + 1, - eventidPlayPrevChapter = eventidPlayTitle + 1, - eventidChangeKaraokePresMode = eventidPlayPrevChapter + 1, - eventidChangeVideoPresMode = eventidChangeKaraokePresMode + 1, - eventidOverlayUnavailable = eventidChangeVideoPresMode + 1, - eventidSinkCertificateFailure = eventidOverlayUnavailable + 1, - eventidSinkCertificateSuccess = eventidSinkCertificateFailure + 1, - eventidSourceCertificateFailure = eventidSinkCertificateSuccess + 1, - eventidSourceCertificateSuccess = eventidSourceCertificateFailure + 1, - eventidRatingsBlocked = eventidSourceCertificateSuccess + 1, - eventidRatingsUnlocked = eventidRatingsBlocked + 1, - eventidRatingsChanged = eventidRatingsUnlocked + 1, - eventidWriteFailure = eventidRatingsChanged + 1, - eventidTimeHole = eventidWriteFailure + 1, - eventidStaleDataRead = eventidTimeHole + 1, - eventidContentBecomingStale = eventidStaleDataRead + 1, - eventidStaleFileDeleted = eventidContentBecomingStale + 1, - LastReservedDeviceEvent = 0x3fff - } SegEventidList; - -typedef /* [public][public][public] */ -enum __MIDL___MIDL_itf_segment_0000_0003 - { FrameMode = 0, - TenthsSecondsMode = FrameMode + 1 - } PositionModeList; - -typedef /* [public][public] */ -enum __MIDL___MIDL_itf_segment_0000_0004 - { CONTENT = 0, - REFERENCE = CONTENT + 1 - } RecordingType; - -typedef /* [public][public][public] */ -enum __MIDL___MIDL_itf_segment_0000_0005 - { None = 0, - Caption1 = None + 1, - Caption2 = Caption1 + 1, - Text1 = Caption2 + 1, - Text2 = Text1 + 1, - XDS = Text2 + 1 - } MSVidCCService; - - - - -extern RPC_IF_HANDLE __MIDL_itf_segment_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_segment_0000_v0_0_s_ifspec; - -#ifndef __IMSVidRect_INTERFACE_DEFINED__ -#define __IMSVidRect_INTERFACE_DEFINED__ - -/* interface IMSVidRect */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IMSVidRect; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("7F5000A6-A440-47ca-8ACC-C0E75531A2C2") - IMSVidRect : public IDispatch - { - public: - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Top( - /* [retval][out] */ LONG *TopVal) = 0; - - virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Top( - /* [in] */ LONG TopVal) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Left( - /* [retval][out] */ LONG *LeftVal) = 0; - - virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Left( - /* [in] */ LONG LeftVal) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Width( - /* [retval][out] */ LONG *WidthVal) = 0; - - virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Width( - /* [in] */ LONG WidthVal) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Height( - /* [retval][out] */ LONG *HeightVal) = 0; - - virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Height( - /* [in] */ LONG HeightVal) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_HWnd( - /* [retval][out] */ HWND *HWndVal) = 0; - - virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_HWnd( - /* [in] */ HWND HWndVal) = 0; - - virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Rect( - /* [in] */ IMSVidRect *RectVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidRectVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidRect * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidRect * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidRect * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidRect * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidRect * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidRect * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidRect * 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); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Top )( - IMSVidRect * This, - /* [retval][out] */ LONG *TopVal); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Top )( - IMSVidRect * This, - /* [in] */ LONG TopVal); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Left )( - IMSVidRect * This, - /* [retval][out] */ LONG *LeftVal); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Left )( - IMSVidRect * This, - /* [in] */ LONG LeftVal); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Width )( - IMSVidRect * This, - /* [retval][out] */ LONG *WidthVal); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Width )( - IMSVidRect * This, - /* [in] */ LONG WidthVal); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Height )( - IMSVidRect * This, - /* [retval][out] */ LONG *HeightVal); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Height )( - IMSVidRect * This, - /* [in] */ LONG HeightVal); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HWnd )( - IMSVidRect * This, - /* [retval][out] */ HWND *HWndVal); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HWnd )( - IMSVidRect * This, - /* [in] */ HWND HWndVal); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Rect )( - IMSVidRect * This, - /* [in] */ IMSVidRect *RectVal); - - END_INTERFACE - } IMSVidRectVtbl; - - interface IMSVidRect - { - CONST_VTBL struct IMSVidRectVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidRect_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidRect_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidRect_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidRect_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidRect_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidRect_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidRect_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidRect_get_Top(This,TopVal) \ - (This)->lpVtbl -> get_Top(This,TopVal) - -#define IMSVidRect_put_Top(This,TopVal) \ - (This)->lpVtbl -> put_Top(This,TopVal) - -#define IMSVidRect_get_Left(This,LeftVal) \ - (This)->lpVtbl -> get_Left(This,LeftVal) - -#define IMSVidRect_put_Left(This,LeftVal) \ - (This)->lpVtbl -> put_Left(This,LeftVal) - -#define IMSVidRect_get_Width(This,WidthVal) \ - (This)->lpVtbl -> get_Width(This,WidthVal) - -#define IMSVidRect_put_Width(This,WidthVal) \ - (This)->lpVtbl -> put_Width(This,WidthVal) - -#define IMSVidRect_get_Height(This,HeightVal) \ - (This)->lpVtbl -> get_Height(This,HeightVal) - -#define IMSVidRect_put_Height(This,HeightVal) \ - (This)->lpVtbl -> put_Height(This,HeightVal) - -#define IMSVidRect_get_HWnd(This,HWndVal) \ - (This)->lpVtbl -> get_HWnd(This,HWndVal) - -#define IMSVidRect_put_HWnd(This,HWndVal) \ - (This)->lpVtbl -> put_HWnd(This,HWndVal) - -#define IMSVidRect_put_Rect(This,RectVal) \ - (This)->lpVtbl -> put_Rect(This,RectVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidRect_get_Top_Proxy( - IMSVidRect * This, - /* [retval][out] */ LONG *TopVal); - - -void __RPC_STUB IMSVidRect_get_Top_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE IMSVidRect_put_Top_Proxy( - IMSVidRect * This, - /* [in] */ LONG TopVal); - - -void __RPC_STUB IMSVidRect_put_Top_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidRect_get_Left_Proxy( - IMSVidRect * This, - /* [retval][out] */ LONG *LeftVal); - - -void __RPC_STUB IMSVidRect_get_Left_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE IMSVidRect_put_Left_Proxy( - IMSVidRect * This, - /* [in] */ LONG LeftVal); - - -void __RPC_STUB IMSVidRect_put_Left_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidRect_get_Width_Proxy( - IMSVidRect * This, - /* [retval][out] */ LONG *WidthVal); - - -void __RPC_STUB IMSVidRect_get_Width_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE IMSVidRect_put_Width_Proxy( - IMSVidRect * This, - /* [in] */ LONG WidthVal); - - -void __RPC_STUB IMSVidRect_put_Width_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidRect_get_Height_Proxy( - IMSVidRect * This, - /* [retval][out] */ LONG *HeightVal); - - -void __RPC_STUB IMSVidRect_get_Height_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE IMSVidRect_put_Height_Proxy( - IMSVidRect * This, - /* [in] */ LONG HeightVal); - - -void __RPC_STUB IMSVidRect_put_Height_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidRect_get_HWnd_Proxy( - IMSVidRect * This, - /* [retval][out] */ HWND *HWndVal); - - -void __RPC_STUB IMSVidRect_get_HWnd_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE IMSVidRect_put_HWnd_Proxy( - IMSVidRect * This, - /* [in] */ HWND HWndVal); - - -void __RPC_STUB IMSVidRect_put_HWnd_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE IMSVidRect_put_Rect_Proxy( - IMSVidRect * This, - /* [in] */ IMSVidRect *RectVal); - - -void __RPC_STUB IMSVidRect_put_Rect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidRect_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_segment_0463 */ -/* [local] */ - - - - - - -extern RPC_IF_HANDLE __MIDL_itf_segment_0463_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_segment_0463_v0_0_s_ifspec; - -#ifndef __IMSVidGraphSegmentContainer_INTERFACE_DEFINED__ -#define __IMSVidGraphSegmentContainer_INTERFACE_DEFINED__ - -/* interface IMSVidGraphSegmentContainer */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IMSVidGraphSegmentContainer; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("3DD2903D-E0AA-11d2-B63A-00C04F79498E") - IMSVidGraphSegmentContainer : public IUnknown - { - public: - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Graph( - /* [out] */ IGraphBuilder **ppGraph) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Input( - /* [out] */ IMSVidGraphSegment **pInput) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Outputs( - /* [out] */ IEnumMSVidGraphSegment **pOutputs) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_VideoRenderer( - /* [out] */ IMSVidGraphSegment **pVR) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioRenderer( - /* [out] */ IMSVidGraphSegment **pAR) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Features( - /* [out] */ IEnumMSVidGraphSegment **pOutputs) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Composites( - /* [out] */ IEnumMSVidGraphSegment **pComposites) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ParentContainer( - /* [out] */ IUnknown **ppContainer) = 0; - - virtual HRESULT STDMETHODCALLTYPE Decompose( - IMSVidGraphSegment *pSegment) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsWindowless( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFocus( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidGraphSegmentContainerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidGraphSegmentContainer * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidGraphSegmentContainer * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidGraphSegmentContainer * This); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Graph )( - IMSVidGraphSegmentContainer * This, - /* [out] */ IGraphBuilder **ppGraph); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Input )( - IMSVidGraphSegmentContainer * This, - /* [out] */ IMSVidGraphSegment **pInput); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Outputs )( - IMSVidGraphSegmentContainer * This, - /* [out] */ IEnumMSVidGraphSegment **pOutputs); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoRenderer )( - IMSVidGraphSegmentContainer * This, - /* [out] */ IMSVidGraphSegment **pVR); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioRenderer )( - IMSVidGraphSegmentContainer * This, - /* [out] */ IMSVidGraphSegment **pAR); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Features )( - IMSVidGraphSegmentContainer * This, - /* [out] */ IEnumMSVidGraphSegment **pOutputs); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Composites )( - IMSVidGraphSegmentContainer * This, - /* [out] */ IEnumMSVidGraphSegment **pComposites); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentContainer )( - IMSVidGraphSegmentContainer * This, - /* [out] */ IUnknown **ppContainer); - - HRESULT ( STDMETHODCALLTYPE *Decompose )( - IMSVidGraphSegmentContainer * This, - IMSVidGraphSegment *pSegment); - - HRESULT ( STDMETHODCALLTYPE *IsWindowless )( - IMSVidGraphSegmentContainer * This); - - HRESULT ( STDMETHODCALLTYPE *GetFocus )( - IMSVidGraphSegmentContainer * This); - - END_INTERFACE - } IMSVidGraphSegmentContainerVtbl; - - interface IMSVidGraphSegmentContainer - { - CONST_VTBL struct IMSVidGraphSegmentContainerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidGraphSegmentContainer_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidGraphSegmentContainer_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidGraphSegmentContainer_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidGraphSegmentContainer_get_Graph(This,ppGraph) \ - (This)->lpVtbl -> get_Graph(This,ppGraph) - -#define IMSVidGraphSegmentContainer_get_Input(This,pInput) \ - (This)->lpVtbl -> get_Input(This,pInput) - -#define IMSVidGraphSegmentContainer_get_Outputs(This,pOutputs) \ - (This)->lpVtbl -> get_Outputs(This,pOutputs) - -#define IMSVidGraphSegmentContainer_get_VideoRenderer(This,pVR) \ - (This)->lpVtbl -> get_VideoRenderer(This,pVR) - -#define IMSVidGraphSegmentContainer_get_AudioRenderer(This,pAR) \ - (This)->lpVtbl -> get_AudioRenderer(This,pAR) - -#define IMSVidGraphSegmentContainer_get_Features(This,pOutputs) \ - (This)->lpVtbl -> get_Features(This,pOutputs) - -#define IMSVidGraphSegmentContainer_get_Composites(This,pComposites) \ - (This)->lpVtbl -> get_Composites(This,pComposites) - -#define IMSVidGraphSegmentContainer_get_ParentContainer(This,ppContainer) \ - (This)->lpVtbl -> get_ParentContainer(This,ppContainer) - -#define IMSVidGraphSegmentContainer_Decompose(This,pSegment) \ - (This)->lpVtbl -> Decompose(This,pSegment) - -#define IMSVidGraphSegmentContainer_IsWindowless(This) \ - (This)->lpVtbl -> IsWindowless(This) - -#define IMSVidGraphSegmentContainer_GetFocus(This) \ - (This)->lpVtbl -> GetFocus(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentContainer_get_Graph_Proxy( - IMSVidGraphSegmentContainer * This, - /* [out] */ IGraphBuilder **ppGraph); - - -void __RPC_STUB IMSVidGraphSegmentContainer_get_Graph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentContainer_get_Input_Proxy( - IMSVidGraphSegmentContainer * This, - /* [out] */ IMSVidGraphSegment **pInput); - - -void __RPC_STUB IMSVidGraphSegmentContainer_get_Input_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentContainer_get_Outputs_Proxy( - IMSVidGraphSegmentContainer * This, - /* [out] */ IEnumMSVidGraphSegment **pOutputs); - - -void __RPC_STUB IMSVidGraphSegmentContainer_get_Outputs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentContainer_get_VideoRenderer_Proxy( - IMSVidGraphSegmentContainer * This, - /* [out] */ IMSVidGraphSegment **pVR); - - -void __RPC_STUB IMSVidGraphSegmentContainer_get_VideoRenderer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentContainer_get_AudioRenderer_Proxy( - IMSVidGraphSegmentContainer * This, - /* [out] */ IMSVidGraphSegment **pAR); - - -void __RPC_STUB IMSVidGraphSegmentContainer_get_AudioRenderer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentContainer_get_Features_Proxy( - IMSVidGraphSegmentContainer * This, - /* [out] */ IEnumMSVidGraphSegment **pOutputs); - - -void __RPC_STUB IMSVidGraphSegmentContainer_get_Features_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentContainer_get_Composites_Proxy( - IMSVidGraphSegmentContainer * This, - /* [out] */ IEnumMSVidGraphSegment **pComposites); - - -void __RPC_STUB IMSVidGraphSegmentContainer_get_Composites_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentContainer_get_ParentContainer_Proxy( - IMSVidGraphSegmentContainer * This, - /* [out] */ IUnknown **ppContainer); - - -void __RPC_STUB IMSVidGraphSegmentContainer_get_ParentContainer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentContainer_Decompose_Proxy( - IMSVidGraphSegmentContainer * This, - IMSVidGraphSegment *pSegment); - - -void __RPC_STUB IMSVidGraphSegmentContainer_Decompose_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentContainer_IsWindowless_Proxy( - IMSVidGraphSegmentContainer * This); - - -void __RPC_STUB IMSVidGraphSegmentContainer_IsWindowless_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentContainer_GetFocus_Proxy( - IMSVidGraphSegmentContainer * This); - - -void __RPC_STUB IMSVidGraphSegmentContainer_GetFocus_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidGraphSegmentContainer_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_segment_0464 */ -/* [local] */ - -typedef -enum MSVidSegmentType - { MSVidSEG_SOURCE = 0, - MSVidSEG_XFORM = MSVidSEG_SOURCE + 1, - MSVidSEG_DEST = MSVidSEG_XFORM + 1 - } MSVidSegmentType; - - - -extern RPC_IF_HANDLE __MIDL_itf_segment_0464_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_segment_0464_v0_0_s_ifspec; - -#ifndef __IMSVidGraphSegment_INTERFACE_DEFINED__ -#define __IMSVidGraphSegment_INTERFACE_DEFINED__ - -/* interface IMSVidGraphSegment */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IMSVidGraphSegment; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1C15D482-911D-11d2-B632-00C04F79498E") - IMSVidGraphSegment : public IPersist - { - public: - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Init( - /* [retval][out] */ IUnknown **pInit) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Init( - /* [in] */ IUnknown *pInit) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumFilters( - /* [out] */ IEnumFilters **pNewEnum) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Container( - /* [retval][out] */ IMSVidGraphSegmentContainer **ppCtl) = 0; - - virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Container( - /* [in] */ IMSVidGraphSegmentContainer *pCtl) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Type( - /* [retval][out] */ MSVidSegmentType *pType) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Category( - /* [retval][out] */ GUID *pGuid) = 0; - - virtual HRESULT STDMETHODCALLTYPE Build( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE PreRun( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE PostRun( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE PreStop( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE PostStop( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnEventNotify( - LONG lEventCode, - LONG_PTR lEventParm1, - LONG_PTR lEventParm2) = 0; - - virtual HRESULT STDMETHODCALLTYPE Decompose( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidGraphSegmentVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidGraphSegment * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidGraphSegment * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *GetClassID )( - IMSVidGraphSegment * This, - /* [out] */ CLSID *pClassID); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Init )( - IMSVidGraphSegment * This, - /* [retval][out] */ IUnknown **pInit); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Init )( - IMSVidGraphSegment * This, - /* [in] */ IUnknown *pInit); - - HRESULT ( STDMETHODCALLTYPE *EnumFilters )( - IMSVidGraphSegment * This, - /* [out] */ IEnumFilters **pNewEnum); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Container )( - IMSVidGraphSegment * This, - /* [retval][out] */ IMSVidGraphSegmentContainer **ppCtl); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Container )( - IMSVidGraphSegment * This, - /* [in] */ IMSVidGraphSegmentContainer *pCtl); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( - IMSVidGraphSegment * This, - /* [retval][out] */ MSVidSegmentType *pType); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidGraphSegment * This, - /* [retval][out] */ GUID *pGuid); - - HRESULT ( STDMETHODCALLTYPE *Build )( - IMSVidGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *PreRun )( - IMSVidGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *PostRun )( - IMSVidGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *PreStop )( - IMSVidGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *PostStop )( - IMSVidGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *OnEventNotify )( - IMSVidGraphSegment * This, - LONG lEventCode, - LONG_PTR lEventParm1, - LONG_PTR lEventParm2); - - HRESULT ( STDMETHODCALLTYPE *Decompose )( - IMSVidGraphSegment * This); - - END_INTERFACE - } IMSVidGraphSegmentVtbl; - - interface IMSVidGraphSegment - { - CONST_VTBL struct IMSVidGraphSegmentVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidGraphSegment_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidGraphSegment_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidGraphSegment_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidGraphSegment_GetClassID(This,pClassID) \ - (This)->lpVtbl -> GetClassID(This,pClassID) - - -#define IMSVidGraphSegment_get_Init(This,pInit) \ - (This)->lpVtbl -> get_Init(This,pInit) - -#define IMSVidGraphSegment_put_Init(This,pInit) \ - (This)->lpVtbl -> put_Init(This,pInit) - -#define IMSVidGraphSegment_EnumFilters(This,pNewEnum) \ - (This)->lpVtbl -> EnumFilters(This,pNewEnum) - -#define IMSVidGraphSegment_get_Container(This,ppCtl) \ - (This)->lpVtbl -> get_Container(This,ppCtl) - -#define IMSVidGraphSegment_put_Container(This,pCtl) \ - (This)->lpVtbl -> put_Container(This,pCtl) - -#define IMSVidGraphSegment_get_Type(This,pType) \ - (This)->lpVtbl -> get_Type(This,pType) - -#define IMSVidGraphSegment_get_Category(This,pGuid) \ - (This)->lpVtbl -> get_Category(This,pGuid) - -#define IMSVidGraphSegment_Build(This) \ - (This)->lpVtbl -> Build(This) - -#define IMSVidGraphSegment_PreRun(This) \ - (This)->lpVtbl -> PreRun(This) - -#define IMSVidGraphSegment_PostRun(This) \ - (This)->lpVtbl -> PostRun(This) - -#define IMSVidGraphSegment_PreStop(This) \ - (This)->lpVtbl -> PreStop(This) - -#define IMSVidGraphSegment_PostStop(This) \ - (This)->lpVtbl -> PostStop(This) - -#define IMSVidGraphSegment_OnEventNotify(This,lEventCode,lEventParm1,lEventParm2) \ - (This)->lpVtbl -> OnEventNotify(This,lEventCode,lEventParm1,lEventParm2) - -#define IMSVidGraphSegment_Decompose(This) \ - (This)->lpVtbl -> Decompose(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_get_Init_Proxy( - IMSVidGraphSegment * This, - /* [retval][out] */ IUnknown **pInit); - - -void __RPC_STUB IMSVidGraphSegment_get_Init_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_put_Init_Proxy( - IMSVidGraphSegment * This, - /* [in] */ IUnknown *pInit); - - -void __RPC_STUB IMSVidGraphSegment_put_Init_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_EnumFilters_Proxy( - IMSVidGraphSegment * This, - /* [out] */ IEnumFilters **pNewEnum); - - -void __RPC_STUB IMSVidGraphSegment_EnumFilters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_get_Container_Proxy( - IMSVidGraphSegment * This, - /* [retval][out] */ IMSVidGraphSegmentContainer **ppCtl); - - -void __RPC_STUB IMSVidGraphSegment_get_Container_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_put_Container_Proxy( - IMSVidGraphSegment * This, - /* [in] */ IMSVidGraphSegmentContainer *pCtl); - - -void __RPC_STUB IMSVidGraphSegment_put_Container_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_get_Type_Proxy( - IMSVidGraphSegment * This, - /* [retval][out] */ MSVidSegmentType *pType); - - -void __RPC_STUB IMSVidGraphSegment_get_Type_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_get_Category_Proxy( - IMSVidGraphSegment * This, - /* [retval][out] */ GUID *pGuid); - - -void __RPC_STUB IMSVidGraphSegment_get_Category_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_Build_Proxy( - IMSVidGraphSegment * This); - - -void __RPC_STUB IMSVidGraphSegment_Build_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_PreRun_Proxy( - IMSVidGraphSegment * This); - - -void __RPC_STUB IMSVidGraphSegment_PreRun_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_PostRun_Proxy( - IMSVidGraphSegment * This); - - -void __RPC_STUB IMSVidGraphSegment_PostRun_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_PreStop_Proxy( - IMSVidGraphSegment * This); - - -void __RPC_STUB IMSVidGraphSegment_PreStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_PostStop_Proxy( - IMSVidGraphSegment * This); - - -void __RPC_STUB IMSVidGraphSegment_PostStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_OnEventNotify_Proxy( - IMSVidGraphSegment * This, - LONG lEventCode, - LONG_PTR lEventParm1, - LONG_PTR lEventParm2); - - -void __RPC_STUB IMSVidGraphSegment_OnEventNotify_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegment_Decompose_Proxy( - IMSVidGraphSegment * This); - - -void __RPC_STUB IMSVidGraphSegment_Decompose_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidGraphSegment_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_segment_0465 */ -/* [local] */ - - -enum __MIDL___MIDL_itf_segment_0465_0001 - { MSVIDCTL_LEFT_BUTTON = 0x1, - MSVIDCTL_RIGHT_BUTTON = 0x2, - MSVIDCTL_MIDDLE_BUTTON = 0x4, - MSVIDCTL_X_BUTTON1 = 0x8, - MSVIDCTL_X_BUTTON2 = 0x10, - MSVIDCTL_SHIFT = 0x1, - MSVIDCTL_CTRL = 0x2, - MSVIDCTL_ALT = 0x4 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_segment_0465_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_segment_0465_v0_0_s_ifspec; - -#ifndef __IMSVidGraphSegmentUserInput_INTERFACE_DEFINED__ -#define __IMSVidGraphSegmentUserInput_INTERFACE_DEFINED__ - -/* interface IMSVidGraphSegmentUserInput */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IMSVidGraphSegmentUserInput; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("301C060E-20D9-4587-9B03-F82ED9A9943C") - IMSVidGraphSegmentUserInput : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Click( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE DblClick( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE KeyDown( - short *KeyCode, - short ShiftState) = 0; - - virtual HRESULT STDMETHODCALLTYPE KeyPress( - short *KeyAscii) = 0; - - virtual HRESULT STDMETHODCALLTYPE KeyUp( - short *KeyCode, - short ShiftState) = 0; - - virtual HRESULT STDMETHODCALLTYPE MouseDown( - short ButtonState, - short ShiftState, - /* external definition not present */ OLE_XPOS_PIXELS x, - /* external definition not present */ OLE_YPOS_PIXELS y) = 0; - - virtual HRESULT STDMETHODCALLTYPE MouseMove( - short ButtonState, - short ShiftState, - /* external definition not present */ OLE_XPOS_PIXELS x, - /* external definition not present */ OLE_YPOS_PIXELS y) = 0; - - virtual HRESULT STDMETHODCALLTYPE MouseUp( - short ButtonState, - short ShiftState, - /* external definition not present */ OLE_XPOS_PIXELS x, - /* external definition not present */ OLE_YPOS_PIXELS y) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidGraphSegmentUserInputVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidGraphSegmentUserInput * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidGraphSegmentUserInput * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidGraphSegmentUserInput * This); - - HRESULT ( STDMETHODCALLTYPE *Click )( - IMSVidGraphSegmentUserInput * This); - - HRESULT ( STDMETHODCALLTYPE *DblClick )( - IMSVidGraphSegmentUserInput * This); - - HRESULT ( STDMETHODCALLTYPE *KeyDown )( - IMSVidGraphSegmentUserInput * This, - short *KeyCode, - short ShiftState); - - HRESULT ( STDMETHODCALLTYPE *KeyPress )( - IMSVidGraphSegmentUserInput * This, - short *KeyAscii); - - HRESULT ( STDMETHODCALLTYPE *KeyUp )( - IMSVidGraphSegmentUserInput * This, - short *KeyCode, - short ShiftState); - - HRESULT ( STDMETHODCALLTYPE *MouseDown )( - IMSVidGraphSegmentUserInput * This, - short ButtonState, - short ShiftState, - /* external definition not present */ OLE_XPOS_PIXELS x, - /* external definition not present */ OLE_YPOS_PIXELS y); - - HRESULT ( STDMETHODCALLTYPE *MouseMove )( - IMSVidGraphSegmentUserInput * This, - short ButtonState, - short ShiftState, - /* external definition not present */ OLE_XPOS_PIXELS x, - /* external definition not present */ OLE_YPOS_PIXELS y); - - HRESULT ( STDMETHODCALLTYPE *MouseUp )( - IMSVidGraphSegmentUserInput * This, - short ButtonState, - short ShiftState, - /* external definition not present */ OLE_XPOS_PIXELS x, - /* external definition not present */ OLE_YPOS_PIXELS y); - - END_INTERFACE - } IMSVidGraphSegmentUserInputVtbl; - - interface IMSVidGraphSegmentUserInput - { - CONST_VTBL struct IMSVidGraphSegmentUserInputVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidGraphSegmentUserInput_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidGraphSegmentUserInput_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidGraphSegmentUserInput_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidGraphSegmentUserInput_Click(This) \ - (This)->lpVtbl -> Click(This) - -#define IMSVidGraphSegmentUserInput_DblClick(This) \ - (This)->lpVtbl -> DblClick(This) - -#define IMSVidGraphSegmentUserInput_KeyDown(This,KeyCode,ShiftState) \ - (This)->lpVtbl -> KeyDown(This,KeyCode,ShiftState) - -#define IMSVidGraphSegmentUserInput_KeyPress(This,KeyAscii) \ - (This)->lpVtbl -> KeyPress(This,KeyAscii) - -#define IMSVidGraphSegmentUserInput_KeyUp(This,KeyCode,ShiftState) \ - (This)->lpVtbl -> KeyUp(This,KeyCode,ShiftState) - -#define IMSVidGraphSegmentUserInput_MouseDown(This,ButtonState,ShiftState,x,y) \ - (This)->lpVtbl -> MouseDown(This,ButtonState,ShiftState,x,y) - -#define IMSVidGraphSegmentUserInput_MouseMove(This,ButtonState,ShiftState,x,y) \ - (This)->lpVtbl -> MouseMove(This,ButtonState,ShiftState,x,y) - -#define IMSVidGraphSegmentUserInput_MouseUp(This,ButtonState,ShiftState,x,y) \ - (This)->lpVtbl -> MouseUp(This,ButtonState,ShiftState,x,y) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentUserInput_Click_Proxy( - IMSVidGraphSegmentUserInput * This); - - -void __RPC_STUB IMSVidGraphSegmentUserInput_Click_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentUserInput_DblClick_Proxy( - IMSVidGraphSegmentUserInput * This); - - -void __RPC_STUB IMSVidGraphSegmentUserInput_DblClick_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentUserInput_KeyDown_Proxy( - IMSVidGraphSegmentUserInput * This, - short *KeyCode, - short ShiftState); - - -void __RPC_STUB IMSVidGraphSegmentUserInput_KeyDown_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentUserInput_KeyPress_Proxy( - IMSVidGraphSegmentUserInput * This, - short *KeyAscii); - - -void __RPC_STUB IMSVidGraphSegmentUserInput_KeyPress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentUserInput_KeyUp_Proxy( - IMSVidGraphSegmentUserInput * This, - short *KeyCode, - short ShiftState); - - -void __RPC_STUB IMSVidGraphSegmentUserInput_KeyUp_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentUserInput_MouseDown_Proxy( - IMSVidGraphSegmentUserInput * This, - short ButtonState, - short ShiftState, - /* external definition not present */ OLE_XPOS_PIXELS x, - /* external definition not present */ OLE_YPOS_PIXELS y); - - -void __RPC_STUB IMSVidGraphSegmentUserInput_MouseDown_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentUserInput_MouseMove_Proxy( - IMSVidGraphSegmentUserInput * This, - short ButtonState, - short ShiftState, - /* external definition not present */ OLE_XPOS_PIXELS x, - /* external definition not present */ OLE_YPOS_PIXELS y); - - -void __RPC_STUB IMSVidGraphSegmentUserInput_MouseMove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMSVidGraphSegmentUserInput_MouseUp_Proxy( - IMSVidGraphSegmentUserInput * This, - short ButtonState, - short ShiftState, - /* external definition not present */ OLE_XPOS_PIXELS x, - /* external definition not present */ OLE_YPOS_PIXELS y); - - -void __RPC_STUB IMSVidGraphSegmentUserInput_MouseUp_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidGraphSegmentUserInput_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidCompositionSegment_INTERFACE_DEFINED__ -#define __IMSVidCompositionSegment_INTERFACE_DEFINED__ - -/* interface IMSVidCompositionSegment */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IMSVidCompositionSegment; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1C15D483-911D-11d2-B632-00C04F79498E") - IMSVidCompositionSegment : public IMSVidGraphSegment - { - public: - virtual HRESULT STDMETHODCALLTYPE Compose( - /* [in] */ IMSVidGraphSegment *upstream, - /* [in] */ IMSVidGraphSegment *downstream) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Up( - /* [out] */ IMSVidGraphSegment **upstream) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Down( - /* [out] */ IMSVidGraphSegment **downstream) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidCompositionSegmentVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidCompositionSegment * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidCompositionSegment * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidCompositionSegment * This); - - HRESULT ( STDMETHODCALLTYPE *GetClassID )( - IMSVidCompositionSegment * This, - /* [out] */ CLSID *pClassID); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Init )( - IMSVidCompositionSegment * This, - /* [retval][out] */ IUnknown **pInit); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Init )( - IMSVidCompositionSegment * This, - /* [in] */ IUnknown *pInit); - - HRESULT ( STDMETHODCALLTYPE *EnumFilters )( - IMSVidCompositionSegment * This, - /* [out] */ IEnumFilters **pNewEnum); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Container )( - IMSVidCompositionSegment * This, - /* [retval][out] */ IMSVidGraphSegmentContainer **ppCtl); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Container )( - IMSVidCompositionSegment * This, - /* [in] */ IMSVidGraphSegmentContainer *pCtl); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( - IMSVidCompositionSegment * This, - /* [retval][out] */ MSVidSegmentType *pType); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidCompositionSegment * This, - /* [retval][out] */ GUID *pGuid); - - HRESULT ( STDMETHODCALLTYPE *Build )( - IMSVidCompositionSegment * This); - - HRESULT ( STDMETHODCALLTYPE *PreRun )( - IMSVidCompositionSegment * This); - - HRESULT ( STDMETHODCALLTYPE *PostRun )( - IMSVidCompositionSegment * This); - - HRESULT ( STDMETHODCALLTYPE *PreStop )( - IMSVidCompositionSegment * This); - - HRESULT ( STDMETHODCALLTYPE *PostStop )( - IMSVidCompositionSegment * This); - - HRESULT ( STDMETHODCALLTYPE *OnEventNotify )( - IMSVidCompositionSegment * This, - LONG lEventCode, - LONG_PTR lEventParm1, - LONG_PTR lEventParm2); - - HRESULT ( STDMETHODCALLTYPE *Decompose )( - IMSVidCompositionSegment * This); - - HRESULT ( STDMETHODCALLTYPE *Compose )( - IMSVidCompositionSegment * This, - /* [in] */ IMSVidGraphSegment *upstream, - /* [in] */ IMSVidGraphSegment *downstream); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Up )( - IMSVidCompositionSegment * This, - /* [out] */ IMSVidGraphSegment **upstream); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Down )( - IMSVidCompositionSegment * This, - /* [out] */ IMSVidGraphSegment **downstream); - - END_INTERFACE - } IMSVidCompositionSegmentVtbl; - - interface IMSVidCompositionSegment - { - CONST_VTBL struct IMSVidCompositionSegmentVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidCompositionSegment_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidCompositionSegment_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidCompositionSegment_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidCompositionSegment_GetClassID(This,pClassID) \ - (This)->lpVtbl -> GetClassID(This,pClassID) - - -#define IMSVidCompositionSegment_get_Init(This,pInit) \ - (This)->lpVtbl -> get_Init(This,pInit) - -#define IMSVidCompositionSegment_put_Init(This,pInit) \ - (This)->lpVtbl -> put_Init(This,pInit) - -#define IMSVidCompositionSegment_EnumFilters(This,pNewEnum) \ - (This)->lpVtbl -> EnumFilters(This,pNewEnum) - -#define IMSVidCompositionSegment_get_Container(This,ppCtl) \ - (This)->lpVtbl -> get_Container(This,ppCtl) - -#define IMSVidCompositionSegment_put_Container(This,pCtl) \ - (This)->lpVtbl -> put_Container(This,pCtl) - -#define IMSVidCompositionSegment_get_Type(This,pType) \ - (This)->lpVtbl -> get_Type(This,pType) - -#define IMSVidCompositionSegment_get_Category(This,pGuid) \ - (This)->lpVtbl -> get_Category(This,pGuid) - -#define IMSVidCompositionSegment_Build(This) \ - (This)->lpVtbl -> Build(This) - -#define IMSVidCompositionSegment_PreRun(This) \ - (This)->lpVtbl -> PreRun(This) - -#define IMSVidCompositionSegment_PostRun(This) \ - (This)->lpVtbl -> PostRun(This) - -#define IMSVidCompositionSegment_PreStop(This) \ - (This)->lpVtbl -> PreStop(This) - -#define IMSVidCompositionSegment_PostStop(This) \ - (This)->lpVtbl -> PostStop(This) - -#define IMSVidCompositionSegment_OnEventNotify(This,lEventCode,lEventParm1,lEventParm2) \ - (This)->lpVtbl -> OnEventNotify(This,lEventCode,lEventParm1,lEventParm2) - -#define IMSVidCompositionSegment_Decompose(This) \ - (This)->lpVtbl -> Decompose(This) - - -#define IMSVidCompositionSegment_Compose(This,upstream,downstream) \ - (This)->lpVtbl -> Compose(This,upstream,downstream) - -#define IMSVidCompositionSegment_get_Up(This,upstream) \ - (This)->lpVtbl -> get_Up(This,upstream) - -#define IMSVidCompositionSegment_get_Down(This,downstream) \ - (This)->lpVtbl -> get_Down(This,downstream) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMSVidCompositionSegment_Compose_Proxy( - IMSVidCompositionSegment * This, - /* [in] */ IMSVidGraphSegment *upstream, - /* [in] */ IMSVidGraphSegment *downstream); - - -void __RPC_STUB IMSVidCompositionSegment_Compose_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCompositionSegment_get_Up_Proxy( - IMSVidCompositionSegment * This, - /* [out] */ IMSVidGraphSegment **upstream); - - -void __RPC_STUB IMSVidCompositionSegment_get_Up_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IMSVidCompositionSegment_get_Down_Proxy( - IMSVidCompositionSegment * This, - /* [out] */ IMSVidGraphSegment **downstream); - - -void __RPC_STUB IMSVidCompositionSegment_get_Down_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidCompositionSegment_INTERFACE_DEFINED__ */ - - -#ifndef __IEnumMSVidGraphSegment_INTERFACE_DEFINED__ -#define __IEnumMSVidGraphSegment_INTERFACE_DEFINED__ - -/* interface IEnumMSVidGraphSegment */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IEnumMSVidGraphSegment; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("3DD2903E-E0AA-11d2-B63A-00C04F79498E") - IEnumMSVidGraphSegment : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Next( - /* [in] */ ULONG celt, - /* [out] */ IMSVidGraphSegment **rgelt, - /* [out] */ ULONG *pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - /* [in] */ ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IEnumMSVidGraphSegment **ppenum) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumMSVidGraphSegmentVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumMSVidGraphSegment * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumMSVidGraphSegment * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumMSVidGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumMSVidGraphSegment * This, - /* [in] */ ULONG celt, - /* [out] */ IMSVidGraphSegment **rgelt, - /* [out] */ ULONG *pceltFetched); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumMSVidGraphSegment * This, - /* [in] */ ULONG celt); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumMSVidGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumMSVidGraphSegment * This, - /* [out] */ IEnumMSVidGraphSegment **ppenum); - - END_INTERFACE - } IEnumMSVidGraphSegmentVtbl; - - interface IEnumMSVidGraphSegment - { - CONST_VTBL struct IEnumMSVidGraphSegmentVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEnumMSVidGraphSegment_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEnumMSVidGraphSegment_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEnumMSVidGraphSegment_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEnumMSVidGraphSegment_Next(This,celt,rgelt,pceltFetched) \ - (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) - -#define IEnumMSVidGraphSegment_Skip(This,celt) \ - (This)->lpVtbl -> Skip(This,celt) - -#define IEnumMSVidGraphSegment_Reset(This) \ - (This)->lpVtbl -> Reset(This) - -#define IEnumMSVidGraphSegment_Clone(This,ppenum) \ - (This)->lpVtbl -> Clone(This,ppenum) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IEnumMSVidGraphSegment_Next_Proxy( - IEnumMSVidGraphSegment * This, - /* [in] */ ULONG celt, - /* [out] */ IMSVidGraphSegment **rgelt, - /* [out] */ ULONG *pceltFetched); - - -void __RPC_STUB IEnumMSVidGraphSegment_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumMSVidGraphSegment_Skip_Proxy( - IEnumMSVidGraphSegment * This, - /* [in] */ ULONG celt); - - -void __RPC_STUB IEnumMSVidGraphSegment_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumMSVidGraphSegment_Reset_Proxy( - IEnumMSVidGraphSegment * This); - - -void __RPC_STUB IEnumMSVidGraphSegment_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumMSVidGraphSegment_Clone_Proxy( - IEnumMSVidGraphSegment * This, - /* [out] */ IEnumMSVidGraphSegment **ppenum); - - -void __RPC_STUB IEnumMSVidGraphSegment_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEnumMSVidGraphSegment_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidVRGraphSegment_INTERFACE_DEFINED__ -#define __IMSVidVRGraphSegment_INTERFACE_DEFINED__ - -/* interface IMSVidVRGraphSegment */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IMSVidVRGraphSegment; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("DD47DE3F-9874-4f7b-8B22-7CB2688461E7") - IMSVidVRGraphSegment : public IMSVidGraphSegment - { - public: - virtual /* [propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE put__VMRendererMode( - /* [in] */ LONG dwMode) = 0; - - virtual /* [propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE put_Owner( - /* [in] */ HWND Window) = 0; - - virtual /* [propget][restricted][hidden] */ HRESULT STDMETHODCALLTYPE get_Owner( - /* [retval][out] */ HWND *Window) = 0; - - virtual /* [propget][restricted][hidden] */ HRESULT STDMETHODCALLTYPE get_UseOverlay( - /* [retval][out] */ VARIANT_BOOL *UseOverlayVal) = 0; - - virtual /* [propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE put_UseOverlay( - /* [in] */ VARIANT_BOOL UseOverlayVal) = 0; - - virtual /* [propget][restricted][hidden] */ HRESULT STDMETHODCALLTYPE get_Visible( - /* [retval][out] */ VARIANT_BOOL *Visible) = 0; - - virtual /* [propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE put_Visible( - /* [in] */ VARIANT_BOOL Visible) = 0; - - virtual /* [restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_ColorKey( - /* [retval][out] */ OLE_COLOR *ColorKey) = 0; - - virtual /* [restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_ColorKey( - /* [in] */ OLE_COLOR ColorKey) = 0; - - virtual /* [restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_Source( - /* [retval][out] */ LPRECT r) = 0; - - virtual /* [restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_Source( - /* [in] */ RECT r) = 0; - - virtual /* [restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_Destination( - /* [retval][out] */ LPRECT r) = 0; - - virtual /* [restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_Destination( - /* [in] */ RECT r) = 0; - - virtual /* [restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_NativeSize( - /* [out] */ LPSIZE sizeval, - /* [out] */ LPSIZE aspectratio) = 0; - - virtual /* [restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_BorderColor( - /* [retval][out] */ OLE_COLOR *color) = 0; - - virtual /* [restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_BorderColor( - /* [in] */ OLE_COLOR color) = 0; - - virtual /* [restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_MaintainAspectRatio( - /* [retval][out] */ VARIANT_BOOL *fMaintain) = 0; - - virtual /* [restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_MaintainAspectRatio( - /* [in] */ VARIANT_BOOL fMaintain) = 0; - - virtual /* [restricted][hidden] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; - - virtual /* [restricted][hidden] */ HRESULT STDMETHODCALLTYPE DisplayChange( void) = 0; - - virtual /* [restricted][hidden] */ HRESULT STDMETHODCALLTYPE RePaint( - /* [in] */ HDC hdc) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidVRGraphSegmentVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidVRGraphSegment * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidVRGraphSegment * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidVRGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *GetClassID )( - IMSVidVRGraphSegment * This, - /* [out] */ CLSID *pClassID); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Init )( - IMSVidVRGraphSegment * This, - /* [retval][out] */ IUnknown **pInit); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Init )( - IMSVidVRGraphSegment * This, - /* [in] */ IUnknown *pInit); - - HRESULT ( STDMETHODCALLTYPE *EnumFilters )( - IMSVidVRGraphSegment * This, - /* [out] */ IEnumFilters **pNewEnum); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Container )( - IMSVidVRGraphSegment * This, - /* [retval][out] */ IMSVidGraphSegmentContainer **ppCtl); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Container )( - IMSVidVRGraphSegment * This, - /* [in] */ IMSVidGraphSegmentContainer *pCtl); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( - IMSVidVRGraphSegment * This, - /* [retval][out] */ MSVidSegmentType *pType); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidVRGraphSegment * This, - /* [retval][out] */ GUID *pGuid); - - HRESULT ( STDMETHODCALLTYPE *Build )( - IMSVidVRGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *PreRun )( - IMSVidVRGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *PostRun )( - IMSVidVRGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *PreStop )( - IMSVidVRGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *PostStop )( - IMSVidVRGraphSegment * This); - - HRESULT ( STDMETHODCALLTYPE *OnEventNotify )( - IMSVidVRGraphSegment * This, - LONG lEventCode, - LONG_PTR lEventParm1, - LONG_PTR lEventParm2); - - HRESULT ( STDMETHODCALLTYPE *Decompose )( - IMSVidVRGraphSegment * This); - - /* [propput][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *put__VMRendererMode )( - IMSVidVRGraphSegment * This, - /* [in] */ LONG dwMode); - - /* [propput][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *put_Owner )( - IMSVidVRGraphSegment * This, - /* [in] */ HWND Window); - - /* [propget][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *get_Owner )( - IMSVidVRGraphSegment * This, - /* [retval][out] */ HWND *Window); - - /* [propget][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *get_UseOverlay )( - IMSVidVRGraphSegment * This, - /* [retval][out] */ VARIANT_BOOL *UseOverlayVal); - - /* [propput][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *put_UseOverlay )( - IMSVidVRGraphSegment * This, - /* [in] */ VARIANT_BOOL UseOverlayVal); - - /* [propget][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *get_Visible )( - IMSVidVRGraphSegment * This, - /* [retval][out] */ VARIANT_BOOL *Visible); - - /* [propput][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *put_Visible )( - IMSVidVRGraphSegment * This, - /* [in] */ VARIANT_BOOL Visible); - - /* [restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ColorKey )( - IMSVidVRGraphSegment * This, - /* [retval][out] */ OLE_COLOR *ColorKey); - - /* [restricted][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ColorKey )( - IMSVidVRGraphSegment * This, - /* [in] */ OLE_COLOR ColorKey); - - /* [restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( - IMSVidVRGraphSegment * This, - /* [retval][out] */ LPRECT r); - - /* [restricted][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Source )( - IMSVidVRGraphSegment * This, - /* [in] */ RECT r); - - /* [restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Destination )( - IMSVidVRGraphSegment * This, - /* [retval][out] */ LPRECT r); - - /* [restricted][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Destination )( - IMSVidVRGraphSegment * This, - /* [in] */ RECT r); - - /* [restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NativeSize )( - IMSVidVRGraphSegment * This, - /* [out] */ LPSIZE sizeval, - /* [out] */ LPSIZE aspectratio); - - /* [restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BorderColor )( - IMSVidVRGraphSegment * This, - /* [retval][out] */ OLE_COLOR *color); - - /* [restricted][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BorderColor )( - IMSVidVRGraphSegment * This, - /* [in] */ OLE_COLOR color); - - /* [restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaintainAspectRatio )( - IMSVidVRGraphSegment * This, - /* [retval][out] */ VARIANT_BOOL *fMaintain); - - /* [restricted][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaintainAspectRatio )( - IMSVidVRGraphSegment * This, - /* [in] */ VARIANT_BOOL fMaintain); - - /* [restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( - IMSVidVRGraphSegment * This); - - /* [restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *DisplayChange )( - IMSVidVRGraphSegment * This); - - /* [restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *RePaint )( - IMSVidVRGraphSegment * This, - /* [in] */ HDC hdc); - - END_INTERFACE - } IMSVidVRGraphSegmentVtbl; - - interface IMSVidVRGraphSegment - { - CONST_VTBL struct IMSVidVRGraphSegmentVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidVRGraphSegment_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidVRGraphSegment_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidVRGraphSegment_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidVRGraphSegment_GetClassID(This,pClassID) \ - (This)->lpVtbl -> GetClassID(This,pClassID) - - -#define IMSVidVRGraphSegment_get_Init(This,pInit) \ - (This)->lpVtbl -> get_Init(This,pInit) - -#define IMSVidVRGraphSegment_put_Init(This,pInit) \ - (This)->lpVtbl -> put_Init(This,pInit) - -#define IMSVidVRGraphSegment_EnumFilters(This,pNewEnum) \ - (This)->lpVtbl -> EnumFilters(This,pNewEnum) - -#define IMSVidVRGraphSegment_get_Container(This,ppCtl) \ - (This)->lpVtbl -> get_Container(This,ppCtl) - -#define IMSVidVRGraphSegment_put_Container(This,pCtl) \ - (This)->lpVtbl -> put_Container(This,pCtl) - -#define IMSVidVRGraphSegment_get_Type(This,pType) \ - (This)->lpVtbl -> get_Type(This,pType) - -#define IMSVidVRGraphSegment_get_Category(This,pGuid) \ - (This)->lpVtbl -> get_Category(This,pGuid) - -#define IMSVidVRGraphSegment_Build(This) \ - (This)->lpVtbl -> Build(This) - -#define IMSVidVRGraphSegment_PreRun(This) \ - (This)->lpVtbl -> PreRun(This) - -#define IMSVidVRGraphSegment_PostRun(This) \ - (This)->lpVtbl -> PostRun(This) - -#define IMSVidVRGraphSegment_PreStop(This) \ - (This)->lpVtbl -> PreStop(This) - -#define IMSVidVRGraphSegment_PostStop(This) \ - (This)->lpVtbl -> PostStop(This) - -#define IMSVidVRGraphSegment_OnEventNotify(This,lEventCode,lEventParm1,lEventParm2) \ - (This)->lpVtbl -> OnEventNotify(This,lEventCode,lEventParm1,lEventParm2) - -#define IMSVidVRGraphSegment_Decompose(This) \ - (This)->lpVtbl -> Decompose(This) - - -#define IMSVidVRGraphSegment_put__VMRendererMode(This,dwMode) \ - (This)->lpVtbl -> put__VMRendererMode(This,dwMode) - -#define IMSVidVRGraphSegment_put_Owner(This,Window) \ - (This)->lpVtbl -> put_Owner(This,Window) - -#define IMSVidVRGraphSegment_get_Owner(This,Window) \ - (This)->lpVtbl -> get_Owner(This,Window) - -#define IMSVidVRGraphSegment_get_UseOverlay(This,UseOverlayVal) \ - (This)->lpVtbl -> get_UseOverlay(This,UseOverlayVal) - -#define IMSVidVRGraphSegment_put_UseOverlay(This,UseOverlayVal) \ - (This)->lpVtbl -> put_UseOverlay(This,UseOverlayVal) - -#define IMSVidVRGraphSegment_get_Visible(This,Visible) \ - (This)->lpVtbl -> get_Visible(This,Visible) - -#define IMSVidVRGraphSegment_put_Visible(This,Visible) \ - (This)->lpVtbl -> put_Visible(This,Visible) - -#define IMSVidVRGraphSegment_get_ColorKey(This,ColorKey) \ - (This)->lpVtbl -> get_ColorKey(This,ColorKey) - -#define IMSVidVRGraphSegment_put_ColorKey(This,ColorKey) \ - (This)->lpVtbl -> put_ColorKey(This,ColorKey) - -#define IMSVidVRGraphSegment_get_Source(This,r) \ - (This)->lpVtbl -> get_Source(This,r) - -#define IMSVidVRGraphSegment_put_Source(This,r) \ - (This)->lpVtbl -> put_Source(This,r) - -#define IMSVidVRGraphSegment_get_Destination(This,r) \ - (This)->lpVtbl -> get_Destination(This,r) - -#define IMSVidVRGraphSegment_put_Destination(This,r) \ - (This)->lpVtbl -> put_Destination(This,r) - -#define IMSVidVRGraphSegment_get_NativeSize(This,sizeval,aspectratio) \ - (This)->lpVtbl -> get_NativeSize(This,sizeval,aspectratio) - -#define IMSVidVRGraphSegment_get_BorderColor(This,color) \ - (This)->lpVtbl -> get_BorderColor(This,color) - -#define IMSVidVRGraphSegment_put_BorderColor(This,color) \ - (This)->lpVtbl -> put_BorderColor(This,color) - -#define IMSVidVRGraphSegment_get_MaintainAspectRatio(This,fMaintain) \ - (This)->lpVtbl -> get_MaintainAspectRatio(This,fMaintain) - -#define IMSVidVRGraphSegment_put_MaintainAspectRatio(This,fMaintain) \ - (This)->lpVtbl -> put_MaintainAspectRatio(This,fMaintain) - -#define IMSVidVRGraphSegment_Refresh(This) \ - (This)->lpVtbl -> Refresh(This) - -#define IMSVidVRGraphSegment_DisplayChange(This) \ - (This)->lpVtbl -> DisplayChange(This) - -#define IMSVidVRGraphSegment_RePaint(This,hdc) \ - (This)->lpVtbl -> RePaint(This,hdc) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_put__VMRendererMode_Proxy( - IMSVidVRGraphSegment * This, - /* [in] */ LONG dwMode); - - -void __RPC_STUB IMSVidVRGraphSegment_put__VMRendererMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_put_Owner_Proxy( - IMSVidVRGraphSegment * This, - /* [in] */ HWND Window); - - -void __RPC_STUB IMSVidVRGraphSegment_put_Owner_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget][restricted][hidden] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_get_Owner_Proxy( - IMSVidVRGraphSegment * This, - /* [retval][out] */ HWND *Window); - - -void __RPC_STUB IMSVidVRGraphSegment_get_Owner_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget][restricted][hidden] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_get_UseOverlay_Proxy( - IMSVidVRGraphSegment * This, - /* [retval][out] */ VARIANT_BOOL *UseOverlayVal); - - -void __RPC_STUB IMSVidVRGraphSegment_get_UseOverlay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_put_UseOverlay_Proxy( - IMSVidVRGraphSegment * This, - /* [in] */ VARIANT_BOOL UseOverlayVal); - - -void __RPC_STUB IMSVidVRGraphSegment_put_UseOverlay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget][restricted][hidden] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_get_Visible_Proxy( - IMSVidVRGraphSegment * This, - /* [retval][out] */ VARIANT_BOOL *Visible); - - -void __RPC_STUB IMSVidVRGraphSegment_get_Visible_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_put_Visible_Proxy( - IMSVidVRGraphSegment * This, - /* [in] */ VARIANT_BOOL Visible); - - -void __RPC_STUB IMSVidVRGraphSegment_put_Visible_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_get_ColorKey_Proxy( - IMSVidVRGraphSegment * This, - /* [retval][out] */ OLE_COLOR *ColorKey); - - -void __RPC_STUB IMSVidVRGraphSegment_get_ColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_put_ColorKey_Proxy( - IMSVidVRGraphSegment * This, - /* [in] */ OLE_COLOR ColorKey); - - -void __RPC_STUB IMSVidVRGraphSegment_put_ColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_get_Source_Proxy( - IMSVidVRGraphSegment * This, - /* [retval][out] */ LPRECT r); - - -void __RPC_STUB IMSVidVRGraphSegment_get_Source_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_put_Source_Proxy( - IMSVidVRGraphSegment * This, - /* [in] */ RECT r); - - -void __RPC_STUB IMSVidVRGraphSegment_put_Source_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_get_Destination_Proxy( - IMSVidVRGraphSegment * This, - /* [retval][out] */ LPRECT r); - - -void __RPC_STUB IMSVidVRGraphSegment_get_Destination_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_put_Destination_Proxy( - IMSVidVRGraphSegment * This, - /* [in] */ RECT r); - - -void __RPC_STUB IMSVidVRGraphSegment_put_Destination_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_get_NativeSize_Proxy( - IMSVidVRGraphSegment * This, - /* [out] */ LPSIZE sizeval, - /* [out] */ LPSIZE aspectratio); - - -void __RPC_STUB IMSVidVRGraphSegment_get_NativeSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_get_BorderColor_Proxy( - IMSVidVRGraphSegment * This, - /* [retval][out] */ OLE_COLOR *color); - - -void __RPC_STUB IMSVidVRGraphSegment_get_BorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_put_BorderColor_Proxy( - IMSVidVRGraphSegment * This, - /* [in] */ OLE_COLOR color); - - -void __RPC_STUB IMSVidVRGraphSegment_put_BorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_get_MaintainAspectRatio_Proxy( - IMSVidVRGraphSegment * This, - /* [retval][out] */ VARIANT_BOOL *fMaintain); - - -void __RPC_STUB IMSVidVRGraphSegment_get_MaintainAspectRatio_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_put_MaintainAspectRatio_Proxy( - IMSVidVRGraphSegment * This, - /* [in] */ VARIANT_BOOL fMaintain); - - -void __RPC_STUB IMSVidVRGraphSegment_put_MaintainAspectRatio_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_Refresh_Proxy( - IMSVidVRGraphSegment * This); - - -void __RPC_STUB IMSVidVRGraphSegment_Refresh_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_DisplayChange_Proxy( - IMSVidVRGraphSegment * This); - - -void __RPC_STUB IMSVidVRGraphSegment_DisplayChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden] */ HRESULT STDMETHODCALLTYPE IMSVidVRGraphSegment_RePaint_Proxy( - IMSVidVRGraphSegment * This, - /* [in] */ HDC hdc); - - -void __RPC_STUB IMSVidVRGraphSegment_RePaint_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidVRGraphSegment_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidDevice_INTERFACE_DEFINED__ -#define __IMSVidDevice_INTERFACE_DEFINED__ - -/* interface IMSVidDevice */ -/* [unique][helpstring][uuid][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidDevice; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1C15D47C-911D-11d2-B632-00C04F79498E") - IMSVidDevice : public IDispatch - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( - /* [retval][out] */ BSTR *Name) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( - /* [retval][out] */ long *Status) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Power( - /* [in] */ VARIANT_BOOL Power) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Power( - /* [out][retval] */ VARIANT_BOOL *Power) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Category( - /* [retval][out] */ BSTR *Guid) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ClassID( - /* [retval][out] */ BSTR *Clsid) = 0; - - virtual /* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__Category( - /* [retval][out] */ GUID *Guid) = 0; - - virtual /* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__ClassID( - /* [retval][out] */ GUID *Clsid) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsEqualDevice( - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidDeviceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidDevice * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidDevice * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidDevice * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidDevice * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidDevice * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidDevice * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidDevice * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidDevice * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidDevice * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidDevice * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidDevice * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidDevice * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidDevice * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidDevice * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidDevice * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidDevice * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - END_INTERFACE - } IMSVidDeviceVtbl; - - interface IMSVidDevice - { - CONST_VTBL struct IMSVidDeviceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidDevice_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidDevice_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidDevice_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidDevice_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidDevice_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidDevice_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidDevice_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidDevice_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidDevice_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidDevice_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidDevice_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidDevice_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidDevice_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidDevice_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidDevice_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidDevice_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidDevice_get_Name_Proxy( - IMSVidDevice * This, - /* [retval][out] */ BSTR *Name); - - -void __RPC_STUB IMSVidDevice_get_Name_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidDevice_get_Status_Proxy( - IMSVidDevice * This, - /* [retval][out] */ long *Status); - - -void __RPC_STUB IMSVidDevice_get_Status_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidDevice_put_Power_Proxy( - IMSVidDevice * This, - /* [in] */ VARIANT_BOOL Power); - - -void __RPC_STUB IMSVidDevice_put_Power_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidDevice_get_Power_Proxy( - IMSVidDevice * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - -void __RPC_STUB IMSVidDevice_get_Power_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidDevice_get_Category_Proxy( - IMSVidDevice * This, - /* [retval][out] */ BSTR *Guid); - - -void __RPC_STUB IMSVidDevice_get_Category_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidDevice_get_ClassID_Proxy( - IMSVidDevice * This, - /* [retval][out] */ BSTR *Clsid); - - -void __RPC_STUB IMSVidDevice_get_ClassID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidDevice_get__Category_Proxy( - IMSVidDevice * This, - /* [retval][out] */ GUID *Guid); - - -void __RPC_STUB IMSVidDevice_get__Category_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidDevice_get__ClassID_Proxy( - IMSVidDevice * This, - /* [retval][out] */ GUID *Clsid); - - -void __RPC_STUB IMSVidDevice_get__ClassID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidDevice_IsEqualDevice_Proxy( - IMSVidDevice * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - -void __RPC_STUB IMSVidDevice_IsEqualDevice_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidDevice_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidInputDevice_INTERFACE_DEFINED__ -#define __IMSVidInputDevice_INTERFACE_DEFINED__ - -/* interface IMSVidInputDevice */ -/* [unique][helpstring][uuid][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidInputDevice; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("37B0353D-A4C8-11d2-B634-00C04F79498E") - IMSVidInputDevice : public IMSVidDevice - { - public: - virtual /* [id] */ HRESULT STDMETHODCALLTYPE IsViewable( - /* [in] */ VARIANT *v, - /* [retval][out] */ VARIANT_BOOL *pfViewable) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE View( - /* [in] */ VARIANT *v) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidInputDeviceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidInputDevice * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidInputDevice * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidInputDevice * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidInputDevice * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidInputDevice * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidInputDevice * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidInputDevice * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidInputDevice * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidInputDevice * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidInputDevice * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidInputDevice * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidInputDevice * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidInputDevice * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidInputDevice * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidInputDevice * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidInputDevice * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsViewable )( - IMSVidInputDevice * This, - /* [in] */ VARIANT *v, - /* [retval][out] */ VARIANT_BOOL *pfViewable); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *View )( - IMSVidInputDevice * This, - /* [in] */ VARIANT *v); - - END_INTERFACE - } IMSVidInputDeviceVtbl; - - interface IMSVidInputDevice - { - CONST_VTBL struct IMSVidInputDeviceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidInputDevice_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidInputDevice_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidInputDevice_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidInputDevice_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidInputDevice_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidInputDevice_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidInputDevice_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidInputDevice_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidInputDevice_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidInputDevice_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidInputDevice_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidInputDevice_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidInputDevice_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidInputDevice_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidInputDevice_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidInputDevice_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - -#define IMSVidInputDevice_IsViewable(This,v,pfViewable) \ - (This)->lpVtbl -> IsViewable(This,v,pfViewable) - -#define IMSVidInputDevice_View(This,v) \ - (This)->lpVtbl -> View(This,v) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidInputDevice_IsViewable_Proxy( - IMSVidInputDevice * This, - /* [in] */ VARIANT *v, - /* [retval][out] */ VARIANT_BOOL *pfViewable); - - -void __RPC_STUB IMSVidInputDevice_IsViewable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidInputDevice_View_Proxy( - IMSVidInputDevice * This, - /* [in] */ VARIANT *v); - - -void __RPC_STUB IMSVidInputDevice_View_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidInputDevice_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidDeviceEvent_INTERFACE_DEFINED__ -#define __IMSVidDeviceEvent_INTERFACE_DEFINED__ - -/* interface IMSVidDeviceEvent */ -/* [unique][helpstring][uuid][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidDeviceEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1C15D480-911D-11d2-B632-00C04F79498E") - IMSVidDeviceEvent : public IDispatch - { - public: - virtual /* [id] */ HRESULT STDMETHODCALLTYPE StateChange( - /* [in] */ IMSVidDevice *lpd, - /* [in] */ long oldState, - /* [in] */ long newState) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidDeviceEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidDeviceEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidDeviceEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidDeviceEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidDeviceEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidDeviceEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidDeviceEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidDeviceEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *StateChange )( - IMSVidDeviceEvent * This, - /* [in] */ IMSVidDevice *lpd, - /* [in] */ long oldState, - /* [in] */ long newState); - - END_INTERFACE - } IMSVidDeviceEventVtbl; - - interface IMSVidDeviceEvent - { - CONST_VTBL struct IMSVidDeviceEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidDeviceEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidDeviceEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidDeviceEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidDeviceEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidDeviceEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidDeviceEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidDeviceEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidDeviceEvent_StateChange(This,lpd,oldState,newState) \ - (This)->lpVtbl -> StateChange(This,lpd,oldState,newState) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidDeviceEvent_StateChange_Proxy( - IMSVidDeviceEvent * This, - /* [in] */ IMSVidDevice *lpd, - /* [in] */ long oldState, - /* [in] */ long newState); - - -void __RPC_STUB IMSVidDeviceEvent_StateChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidDeviceEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidInputDeviceEvent_INTERFACE_DEFINED__ -#define __IMSVidInputDeviceEvent_INTERFACE_DEFINED__ - -/* interface IMSVidInputDeviceEvent */ -/* [unique][helpstring][uuid][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidInputDeviceEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("37B0353E-A4C8-11d2-B634-00C04F79498E") - IMSVidInputDeviceEvent : public IDispatch - { - public: - }; - -#else /* C style interface */ - - typedef struct IMSVidInputDeviceEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidInputDeviceEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidInputDeviceEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidInputDeviceEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidInputDeviceEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidInputDeviceEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidInputDeviceEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidInputDeviceEvent * 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 - } IMSVidInputDeviceEventVtbl; - - interface IMSVidInputDeviceEvent - { - CONST_VTBL struct IMSVidInputDeviceEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidInputDeviceEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidInputDeviceEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidInputDeviceEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidInputDeviceEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidInputDeviceEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidInputDeviceEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidInputDeviceEvent_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 /* __IMSVidInputDeviceEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidVideoInputDevice_INTERFACE_DEFINED__ -#define __IMSVidVideoInputDevice_INTERFACE_DEFINED__ - -/* interface IMSVidVideoInputDevice */ -/* [unique][helpstring][uuid][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidVideoInputDevice; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1C15D47F-911D-11d2-B632-00C04F79498E") - IMSVidVideoInputDevice : public IMSVidInputDevice - { - public: - }; - -#else /* C style interface */ - - typedef struct IMSVidVideoInputDeviceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidVideoInputDevice * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidVideoInputDevice * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidVideoInputDevice * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidVideoInputDevice * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidVideoInputDevice * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidVideoInputDevice * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidVideoInputDevice * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidVideoInputDevice * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidVideoInputDevice * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidVideoInputDevice * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidVideoInputDevice * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidVideoInputDevice * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidVideoInputDevice * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidVideoInputDevice * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidVideoInputDevice * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidVideoInputDevice * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsViewable )( - IMSVidVideoInputDevice * This, - /* [in] */ VARIANT *v, - /* [retval][out] */ VARIANT_BOOL *pfViewable); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *View )( - IMSVidVideoInputDevice * This, - /* [in] */ VARIANT *v); - - END_INTERFACE - } IMSVidVideoInputDeviceVtbl; - - interface IMSVidVideoInputDevice - { - CONST_VTBL struct IMSVidVideoInputDeviceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidVideoInputDevice_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidVideoInputDevice_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidVideoInputDevice_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidVideoInputDevice_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidVideoInputDevice_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidVideoInputDevice_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidVideoInputDevice_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidVideoInputDevice_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidVideoInputDevice_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidVideoInputDevice_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidVideoInputDevice_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidVideoInputDevice_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidVideoInputDevice_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidVideoInputDevice_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidVideoInputDevice_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidVideoInputDevice_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - -#define IMSVidVideoInputDevice_IsViewable(This,v,pfViewable) \ - (This)->lpVtbl -> IsViewable(This,v,pfViewable) - -#define IMSVidVideoInputDevice_View(This,v) \ - (This)->lpVtbl -> View(This,v) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IMSVidVideoInputDevice_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidPlayback_INTERFACE_DEFINED__ -#define __IMSVidPlayback_INTERFACE_DEFINED__ - -/* interface IMSVidPlayback */ -/* [unique][helpstring][uuid][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidPlayback; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("37B03538-A4C8-11d2-B634-00C04F79498E") - IMSVidPlayback : public IMSVidInputDevice - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnableResetOnStop( - /* [retval][out] */ VARIANT_BOOL *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_EnableResetOnStop( - /* [in] */ VARIANT_BOOL newVal) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Run( void) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Pause( void) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Stop( void) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CanStep( - /* [in] */ VARIANT_BOOL fBackwards, - /* [retval][out] */ VARIANT_BOOL *pfCan) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Step( - /* [in] */ long lStep) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Rate( - /* [in] */ double plRate) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Rate( - /* [retval][out] */ double *plRate) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CurrentPosition( - /* [in] */ long lPosition) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPosition( - /* [retval][out] */ long *lPosition) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PositionMode( - /* [in] */ PositionModeList lPositionMode) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PositionMode( - /* [retval][out] */ PositionModeList *lPositionMode) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Length( - /* [retval][out] */ long *lLength) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidPlaybackVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidPlayback * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidPlayback * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidPlayback * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidPlayback * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidPlayback * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidPlayback * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidPlayback * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidPlayback * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidPlayback * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidPlayback * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidPlayback * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidPlayback * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidPlayback * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidPlayback * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidPlayback * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidPlayback * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsViewable )( - IMSVidPlayback * This, - /* [in] */ VARIANT *v, - /* [retval][out] */ VARIANT_BOOL *pfViewable); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *View )( - IMSVidPlayback * This, - /* [in] */ VARIANT *v); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnableResetOnStop )( - IMSVidPlayback * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EnableResetOnStop )( - IMSVidPlayback * This, - /* [in] */ VARIANT_BOOL newVal); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Run )( - IMSVidPlayback * This); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Pause )( - IMSVidPlayback * This); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( - IMSVidPlayback * This); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CanStep )( - IMSVidPlayback * This, - /* [in] */ VARIANT_BOOL fBackwards, - /* [retval][out] */ VARIANT_BOOL *pfCan); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Step )( - IMSVidPlayback * This, - /* [in] */ long lStep); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Rate )( - IMSVidPlayback * This, - /* [in] */ double plRate); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rate )( - IMSVidPlayback * This, - /* [retval][out] */ double *plRate); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CurrentPosition )( - IMSVidPlayback * This, - /* [in] */ long lPosition); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPosition )( - IMSVidPlayback * This, - /* [retval][out] */ long *lPosition); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PositionMode )( - IMSVidPlayback * This, - /* [in] */ PositionModeList lPositionMode); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PositionMode )( - IMSVidPlayback * This, - /* [retval][out] */ PositionModeList *lPositionMode); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Length )( - IMSVidPlayback * This, - /* [retval][out] */ long *lLength); - - END_INTERFACE - } IMSVidPlaybackVtbl; - - interface IMSVidPlayback - { - CONST_VTBL struct IMSVidPlaybackVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidPlayback_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidPlayback_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidPlayback_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidPlayback_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidPlayback_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidPlayback_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidPlayback_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidPlayback_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidPlayback_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidPlayback_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidPlayback_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidPlayback_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidPlayback_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidPlayback_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidPlayback_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidPlayback_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - -#define IMSVidPlayback_IsViewable(This,v,pfViewable) \ - (This)->lpVtbl -> IsViewable(This,v,pfViewable) - -#define IMSVidPlayback_View(This,v) \ - (This)->lpVtbl -> View(This,v) - - -#define IMSVidPlayback_get_EnableResetOnStop(This,pVal) \ - (This)->lpVtbl -> get_EnableResetOnStop(This,pVal) - -#define IMSVidPlayback_put_EnableResetOnStop(This,newVal) \ - (This)->lpVtbl -> put_EnableResetOnStop(This,newVal) - -#define IMSVidPlayback_Run(This) \ - (This)->lpVtbl -> Run(This) - -#define IMSVidPlayback_Pause(This) \ - (This)->lpVtbl -> Pause(This) - -#define IMSVidPlayback_Stop(This) \ - (This)->lpVtbl -> Stop(This) - -#define IMSVidPlayback_get_CanStep(This,fBackwards,pfCan) \ - (This)->lpVtbl -> get_CanStep(This,fBackwards,pfCan) - -#define IMSVidPlayback_Step(This,lStep) \ - (This)->lpVtbl -> Step(This,lStep) - -#define IMSVidPlayback_put_Rate(This,plRate) \ - (This)->lpVtbl -> put_Rate(This,plRate) - -#define IMSVidPlayback_get_Rate(This,plRate) \ - (This)->lpVtbl -> get_Rate(This,plRate) - -#define IMSVidPlayback_put_CurrentPosition(This,lPosition) \ - (This)->lpVtbl -> put_CurrentPosition(This,lPosition) - -#define IMSVidPlayback_get_CurrentPosition(This,lPosition) \ - (This)->lpVtbl -> get_CurrentPosition(This,lPosition) - -#define IMSVidPlayback_put_PositionMode(This,lPositionMode) \ - (This)->lpVtbl -> put_PositionMode(This,lPositionMode) - -#define IMSVidPlayback_get_PositionMode(This,lPositionMode) \ - (This)->lpVtbl -> get_PositionMode(This,lPositionMode) - -#define IMSVidPlayback_get_Length(This,lLength) \ - (This)->lpVtbl -> get_Length(This,lLength) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_get_EnableResetOnStop_Proxy( - IMSVidPlayback * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - -void __RPC_STUB IMSVidPlayback_get_EnableResetOnStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_put_EnableResetOnStop_Proxy( - IMSVidPlayback * This, - /* [in] */ VARIANT_BOOL newVal); - - -void __RPC_STUB IMSVidPlayback_put_EnableResetOnStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_Run_Proxy( - IMSVidPlayback * This); - - -void __RPC_STUB IMSVidPlayback_Run_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_Pause_Proxy( - IMSVidPlayback * This); - - -void __RPC_STUB IMSVidPlayback_Pause_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_Stop_Proxy( - IMSVidPlayback * This); - - -void __RPC_STUB IMSVidPlayback_Stop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_get_CanStep_Proxy( - IMSVidPlayback * This, - /* [in] */ VARIANT_BOOL fBackwards, - /* [retval][out] */ VARIANT_BOOL *pfCan); - - -void __RPC_STUB IMSVidPlayback_get_CanStep_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_Step_Proxy( - IMSVidPlayback * This, - /* [in] */ long lStep); - - -void __RPC_STUB IMSVidPlayback_Step_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_put_Rate_Proxy( - IMSVidPlayback * This, - /* [in] */ double plRate); - - -void __RPC_STUB IMSVidPlayback_put_Rate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_get_Rate_Proxy( - IMSVidPlayback * This, - /* [retval][out] */ double *plRate); - - -void __RPC_STUB IMSVidPlayback_get_Rate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_put_CurrentPosition_Proxy( - IMSVidPlayback * This, - /* [in] */ long lPosition); - - -void __RPC_STUB IMSVidPlayback_put_CurrentPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_get_CurrentPosition_Proxy( - IMSVidPlayback * This, - /* [retval][out] */ long *lPosition); - - -void __RPC_STUB IMSVidPlayback_get_CurrentPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_put_PositionMode_Proxy( - IMSVidPlayback * This, - /* [in] */ PositionModeList lPositionMode); - - -void __RPC_STUB IMSVidPlayback_put_PositionMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_get_PositionMode_Proxy( - IMSVidPlayback * This, - /* [retval][out] */ PositionModeList *lPositionMode); - - -void __RPC_STUB IMSVidPlayback_get_PositionMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidPlayback_get_Length_Proxy( - IMSVidPlayback * This, - /* [retval][out] */ long *lLength); - - -void __RPC_STUB IMSVidPlayback_get_Length_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidPlayback_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidPlaybackEvent_INTERFACE_DEFINED__ -#define __IMSVidPlaybackEvent_INTERFACE_DEFINED__ - -/* interface IMSVidPlaybackEvent */ -/* [unique][helpstring][uuid][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidPlaybackEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("37B0353B-A4C8-11d2-B634-00C04F79498E") - IMSVidPlaybackEvent : public IMSVidInputDeviceEvent - { - public: - virtual /* [id] */ HRESULT STDMETHODCALLTYPE EndOfMedia( - /* [in] */ IMSVidPlayback *lpd) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidPlaybackEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidPlaybackEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidPlaybackEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidPlaybackEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidPlaybackEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidPlaybackEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidPlaybackEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidPlaybackEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *EndOfMedia )( - IMSVidPlaybackEvent * This, - /* [in] */ IMSVidPlayback *lpd); - - END_INTERFACE - } IMSVidPlaybackEventVtbl; - - interface IMSVidPlaybackEvent - { - CONST_VTBL struct IMSVidPlaybackEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidPlaybackEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidPlaybackEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidPlaybackEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidPlaybackEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidPlaybackEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidPlaybackEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidPlaybackEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - - -#define IMSVidPlaybackEvent_EndOfMedia(This,lpd) \ - (This)->lpVtbl -> EndOfMedia(This,lpd) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidPlaybackEvent_EndOfMedia_Proxy( - IMSVidPlaybackEvent * This, - /* [in] */ IMSVidPlayback *lpd); - - -void __RPC_STUB IMSVidPlaybackEvent_EndOfMedia_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidPlaybackEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidTuner_INTERFACE_DEFINED__ -#define __IMSVidTuner_INTERFACE_DEFINED__ - -/* interface IMSVidTuner */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidTuner; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1C15D47D-911D-11d2-B632-00C04F79498E") - IMSVidTuner : public IMSVidVideoInputDevice - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Tune( - /* [retval][out] */ ITuneRequest **ppTR) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Tune( - /* [in] */ ITuneRequest *pTR) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TuningSpace( - /* [retval][out] */ ITuningSpace **plTS) = 0; - - virtual /* [id][propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE put_TuningSpace( - /* [in] */ ITuningSpace *plTS) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidTunerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidTuner * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidTuner * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidTuner * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidTuner * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidTuner * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidTuner * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidTuner * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidTuner * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidTuner * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidTuner * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidTuner * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidTuner * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidTuner * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidTuner * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidTuner * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidTuner * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsViewable )( - IMSVidTuner * This, - /* [in] */ VARIANT *v, - /* [retval][out] */ VARIANT_BOOL *pfViewable); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *View )( - IMSVidTuner * This, - /* [in] */ VARIANT *v); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tune )( - IMSVidTuner * This, - /* [retval][out] */ ITuneRequest **ppTR); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Tune )( - IMSVidTuner * This, - /* [in] */ ITuneRequest *pTR); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TuningSpace )( - IMSVidTuner * This, - /* [retval][out] */ ITuningSpace **plTS); - - /* [id][propput][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *put_TuningSpace )( - IMSVidTuner * This, - /* [in] */ ITuningSpace *plTS); - - END_INTERFACE - } IMSVidTunerVtbl; - - interface IMSVidTuner - { - CONST_VTBL struct IMSVidTunerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidTuner_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidTuner_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidTuner_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidTuner_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidTuner_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidTuner_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidTuner_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidTuner_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidTuner_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidTuner_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidTuner_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidTuner_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidTuner_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidTuner_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidTuner_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidTuner_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - -#define IMSVidTuner_IsViewable(This,v,pfViewable) \ - (This)->lpVtbl -> IsViewable(This,v,pfViewable) - -#define IMSVidTuner_View(This,v) \ - (This)->lpVtbl -> View(This,v) - - - -#define IMSVidTuner_get_Tune(This,ppTR) \ - (This)->lpVtbl -> get_Tune(This,ppTR) - -#define IMSVidTuner_put_Tune(This,pTR) \ - (This)->lpVtbl -> put_Tune(This,pTR) - -#define IMSVidTuner_get_TuningSpace(This,plTS) \ - (This)->lpVtbl -> get_TuningSpace(This,plTS) - -#define IMSVidTuner_put_TuningSpace(This,plTS) \ - (This)->lpVtbl -> put_TuningSpace(This,plTS) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidTuner_get_Tune_Proxy( - IMSVidTuner * This, - /* [retval][out] */ ITuneRequest **ppTR); - - -void __RPC_STUB IMSVidTuner_get_Tune_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidTuner_put_Tune_Proxy( - IMSVidTuner * This, - /* [in] */ ITuneRequest *pTR); - - -void __RPC_STUB IMSVidTuner_put_Tune_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidTuner_get_TuningSpace_Proxy( - IMSVidTuner * This, - /* [retval][out] */ ITuningSpace **plTS); - - -void __RPC_STUB IMSVidTuner_get_TuningSpace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE IMSVidTuner_put_TuningSpace_Proxy( - IMSVidTuner * This, - /* [in] */ ITuningSpace *plTS); - - -void __RPC_STUB IMSVidTuner_put_TuningSpace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidTuner_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidTunerEvent_INTERFACE_DEFINED__ -#define __IMSVidTunerEvent_INTERFACE_DEFINED__ - -/* interface IMSVidTunerEvent */ -/* [unique][helpstring][uuid][hidden][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidTunerEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1C15D485-911D-11d2-B632-00C04F79498E") - IMSVidTunerEvent : public IMSVidInputDeviceEvent - { - public: - virtual /* [id] */ HRESULT STDMETHODCALLTYPE TuneChanged( - /* [in] */ IMSVidTuner *lpd) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidTunerEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidTunerEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidTunerEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidTunerEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidTunerEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidTunerEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidTunerEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidTunerEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *TuneChanged )( - IMSVidTunerEvent * This, - /* [in] */ IMSVidTuner *lpd); - - END_INTERFACE - } IMSVidTunerEventVtbl; - - interface IMSVidTunerEvent - { - CONST_VTBL struct IMSVidTunerEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidTunerEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidTunerEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidTunerEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidTunerEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidTunerEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidTunerEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidTunerEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - - -#define IMSVidTunerEvent_TuneChanged(This,lpd) \ - (This)->lpVtbl -> TuneChanged(This,lpd) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidTunerEvent_TuneChanged_Proxy( - IMSVidTunerEvent * This, - /* [in] */ IMSVidTuner *lpd); - - -void __RPC_STUB IMSVidTunerEvent_TuneChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidTunerEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidAnalogTuner_INTERFACE_DEFINED__ -#define __IMSVidAnalogTuner_INTERFACE_DEFINED__ - -/* interface IMSVidAnalogTuner */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidAnalogTuner; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1C15D47E-911D-11d2-B632-00C04F79498E") - IMSVidAnalogTuner : public IMSVidTuner - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Channel( - /* [retval][out] */ long *Channel) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Channel( - /* [in] */ long Channel) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_VideoFrequency( - /* [out][retval] */ long *lcc) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AudioFrequency( - /* [out][retval] */ long *lcc) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CountryCode( - /* [out][retval] */ long *lcc) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_CountryCode( - /* [in] */ long lcc) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SAP( - /* [retval][out] */ VARIANT_BOOL *pfSapOn) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SAP( - /* [in] */ VARIANT_BOOL fSapOn) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE ChannelAvailable( - /* [in] */ long nChannel, - /* [out] */ long *SignalStrength, - /* [out][retval] */ VARIANT_BOOL *fSignalPresent) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidAnalogTunerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidAnalogTuner * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidAnalogTuner * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidAnalogTuner * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidAnalogTuner * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidAnalogTuner * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidAnalogTuner * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidAnalogTuner * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidAnalogTuner * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidAnalogTuner * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidAnalogTuner * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidAnalogTuner * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidAnalogTuner * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidAnalogTuner * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidAnalogTuner * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidAnalogTuner * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidAnalogTuner * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsViewable )( - IMSVidAnalogTuner * This, - /* [in] */ VARIANT *v, - /* [retval][out] */ VARIANT_BOOL *pfViewable); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *View )( - IMSVidAnalogTuner * This, - /* [in] */ VARIANT *v); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tune )( - IMSVidAnalogTuner * This, - /* [retval][out] */ ITuneRequest **ppTR); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Tune )( - IMSVidAnalogTuner * This, - /* [in] */ ITuneRequest *pTR); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TuningSpace )( - IMSVidAnalogTuner * This, - /* [retval][out] */ ITuningSpace **plTS); - - /* [id][propput][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *put_TuningSpace )( - IMSVidAnalogTuner * This, - /* [in] */ ITuningSpace *plTS); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Channel )( - IMSVidAnalogTuner * This, - /* [retval][out] */ long *Channel); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Channel )( - IMSVidAnalogTuner * This, - /* [in] */ long Channel); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoFrequency )( - IMSVidAnalogTuner * This, - /* [out][retval] */ long *lcc); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioFrequency )( - IMSVidAnalogTuner * This, - /* [out][retval] */ long *lcc); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CountryCode )( - IMSVidAnalogTuner * This, - /* [out][retval] */ long *lcc); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CountryCode )( - IMSVidAnalogTuner * This, - /* [in] */ long lcc); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SAP )( - IMSVidAnalogTuner * This, - /* [retval][out] */ VARIANT_BOOL *pfSapOn); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SAP )( - IMSVidAnalogTuner * This, - /* [in] */ VARIANT_BOOL fSapOn); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *ChannelAvailable )( - IMSVidAnalogTuner * This, - /* [in] */ long nChannel, - /* [out] */ long *SignalStrength, - /* [out][retval] */ VARIANT_BOOL *fSignalPresent); - - END_INTERFACE - } IMSVidAnalogTunerVtbl; - - interface IMSVidAnalogTuner - { - CONST_VTBL struct IMSVidAnalogTunerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidAnalogTuner_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidAnalogTuner_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidAnalogTuner_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidAnalogTuner_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidAnalogTuner_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidAnalogTuner_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidAnalogTuner_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidAnalogTuner_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidAnalogTuner_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidAnalogTuner_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidAnalogTuner_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidAnalogTuner_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidAnalogTuner_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidAnalogTuner_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidAnalogTuner_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidAnalogTuner_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - -#define IMSVidAnalogTuner_IsViewable(This,v,pfViewable) \ - (This)->lpVtbl -> IsViewable(This,v,pfViewable) - -#define IMSVidAnalogTuner_View(This,v) \ - (This)->lpVtbl -> View(This,v) - - - -#define IMSVidAnalogTuner_get_Tune(This,ppTR) \ - (This)->lpVtbl -> get_Tune(This,ppTR) - -#define IMSVidAnalogTuner_put_Tune(This,pTR) \ - (This)->lpVtbl -> put_Tune(This,pTR) - -#define IMSVidAnalogTuner_get_TuningSpace(This,plTS) \ - (This)->lpVtbl -> get_TuningSpace(This,plTS) - -#define IMSVidAnalogTuner_put_TuningSpace(This,plTS) \ - (This)->lpVtbl -> put_TuningSpace(This,plTS) - - -#define IMSVidAnalogTuner_get_Channel(This,Channel) \ - (This)->lpVtbl -> get_Channel(This,Channel) - -#define IMSVidAnalogTuner_put_Channel(This,Channel) \ - (This)->lpVtbl -> put_Channel(This,Channel) - -#define IMSVidAnalogTuner_get_VideoFrequency(This,lcc) \ - (This)->lpVtbl -> get_VideoFrequency(This,lcc) - -#define IMSVidAnalogTuner_get_AudioFrequency(This,lcc) \ - (This)->lpVtbl -> get_AudioFrequency(This,lcc) - -#define IMSVidAnalogTuner_get_CountryCode(This,lcc) \ - (This)->lpVtbl -> get_CountryCode(This,lcc) - -#define IMSVidAnalogTuner_put_CountryCode(This,lcc) \ - (This)->lpVtbl -> put_CountryCode(This,lcc) - -#define IMSVidAnalogTuner_get_SAP(This,pfSapOn) \ - (This)->lpVtbl -> get_SAP(This,pfSapOn) - -#define IMSVidAnalogTuner_put_SAP(This,fSapOn) \ - (This)->lpVtbl -> put_SAP(This,fSapOn) - -#define IMSVidAnalogTuner_ChannelAvailable(This,nChannel,SignalStrength,fSignalPresent) \ - (This)->lpVtbl -> ChannelAvailable(This,nChannel,SignalStrength,fSignalPresent) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidAnalogTuner_get_Channel_Proxy( - IMSVidAnalogTuner * This, - /* [retval][out] */ long *Channel); - - -void __RPC_STUB IMSVidAnalogTuner_get_Channel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidAnalogTuner_put_Channel_Proxy( - IMSVidAnalogTuner * This, - /* [in] */ long Channel); - - -void __RPC_STUB IMSVidAnalogTuner_put_Channel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidAnalogTuner_get_VideoFrequency_Proxy( - IMSVidAnalogTuner * This, - /* [out][retval] */ long *lcc); - - -void __RPC_STUB IMSVidAnalogTuner_get_VideoFrequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidAnalogTuner_get_AudioFrequency_Proxy( - IMSVidAnalogTuner * This, - /* [out][retval] */ long *lcc); - - -void __RPC_STUB IMSVidAnalogTuner_get_AudioFrequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidAnalogTuner_get_CountryCode_Proxy( - IMSVidAnalogTuner * This, - /* [out][retval] */ long *lcc); - - -void __RPC_STUB IMSVidAnalogTuner_get_CountryCode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidAnalogTuner_put_CountryCode_Proxy( - IMSVidAnalogTuner * This, - /* [in] */ long lcc); - - -void __RPC_STUB IMSVidAnalogTuner_put_CountryCode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidAnalogTuner_get_SAP_Proxy( - IMSVidAnalogTuner * This, - /* [retval][out] */ VARIANT_BOOL *pfSapOn); - - -void __RPC_STUB IMSVidAnalogTuner_get_SAP_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidAnalogTuner_put_SAP_Proxy( - IMSVidAnalogTuner * This, - /* [in] */ VARIANT_BOOL fSapOn); - - -void __RPC_STUB IMSVidAnalogTuner_put_SAP_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidAnalogTuner_ChannelAvailable_Proxy( - IMSVidAnalogTuner * This, - /* [in] */ long nChannel, - /* [out] */ long *SignalStrength, - /* [out][retval] */ VARIANT_BOOL *fSignalPresent); - - -void __RPC_STUB IMSVidAnalogTuner_ChannelAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidAnalogTuner_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidAnalogTunerEvent_INTERFACE_DEFINED__ -#define __IMSVidAnalogTunerEvent_INTERFACE_DEFINED__ - -/* interface IMSVidAnalogTunerEvent */ -/* [unique][helpstring][uuid][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidAnalogTunerEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1C15D486-911D-11d2-B632-00C04F79498E") - IMSVidAnalogTunerEvent : public IMSVidTunerEvent - { - public: - }; - -#else /* C style interface */ - - typedef struct IMSVidAnalogTunerEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidAnalogTunerEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidAnalogTunerEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidAnalogTunerEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidAnalogTunerEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidAnalogTunerEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidAnalogTunerEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidAnalogTunerEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *TuneChanged )( - IMSVidAnalogTunerEvent * This, - /* [in] */ IMSVidTuner *lpd); - - END_INTERFACE - } IMSVidAnalogTunerEventVtbl; - - interface IMSVidAnalogTunerEvent - { - CONST_VTBL struct IMSVidAnalogTunerEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidAnalogTunerEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidAnalogTunerEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidAnalogTunerEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidAnalogTunerEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidAnalogTunerEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidAnalogTunerEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidAnalogTunerEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - - -#define IMSVidAnalogTunerEvent_TuneChanged(This,lpd) \ - (This)->lpVtbl -> TuneChanged(This,lpd) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IMSVidAnalogTunerEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidFilePlayback_INTERFACE_DEFINED__ -#define __IMSVidFilePlayback_INTERFACE_DEFINED__ - -/* interface IMSVidFilePlayback */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidFilePlayback; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("37B03539-A4C8-11d2-B634-00C04F79498E") - IMSVidFilePlayback : public IMSVidPlayback - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FileName( - /* [retval][out] */ BSTR *FileName) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_FileName( - /* [in] */ BSTR FileName) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidFilePlaybackVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidFilePlayback * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidFilePlayback * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidFilePlayback * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidFilePlayback * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidFilePlayback * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidFilePlayback * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidFilePlayback * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidFilePlayback * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidFilePlayback * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidFilePlayback * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidFilePlayback * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidFilePlayback * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidFilePlayback * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidFilePlayback * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidFilePlayback * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidFilePlayback * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsViewable )( - IMSVidFilePlayback * This, - /* [in] */ VARIANT *v, - /* [retval][out] */ VARIANT_BOOL *pfViewable); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *View )( - IMSVidFilePlayback * This, - /* [in] */ VARIANT *v); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnableResetOnStop )( - IMSVidFilePlayback * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EnableResetOnStop )( - IMSVidFilePlayback * This, - /* [in] */ VARIANT_BOOL newVal); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Run )( - IMSVidFilePlayback * This); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Pause )( - IMSVidFilePlayback * This); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( - IMSVidFilePlayback * This); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CanStep )( - IMSVidFilePlayback * This, - /* [in] */ VARIANT_BOOL fBackwards, - /* [retval][out] */ VARIANT_BOOL *pfCan); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Step )( - IMSVidFilePlayback * This, - /* [in] */ long lStep); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Rate )( - IMSVidFilePlayback * This, - /* [in] */ double plRate); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rate )( - IMSVidFilePlayback * This, - /* [retval][out] */ double *plRate); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CurrentPosition )( - IMSVidFilePlayback * This, - /* [in] */ long lPosition); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPosition )( - IMSVidFilePlayback * This, - /* [retval][out] */ long *lPosition); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PositionMode )( - IMSVidFilePlayback * This, - /* [in] */ PositionModeList lPositionMode); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PositionMode )( - IMSVidFilePlayback * This, - /* [retval][out] */ PositionModeList *lPositionMode); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Length )( - IMSVidFilePlayback * This, - /* [retval][out] */ long *lLength); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileName )( - IMSVidFilePlayback * This, - /* [retval][out] */ BSTR *FileName); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FileName )( - IMSVidFilePlayback * This, - /* [in] */ BSTR FileName); - - END_INTERFACE - } IMSVidFilePlaybackVtbl; - - interface IMSVidFilePlayback - { - CONST_VTBL struct IMSVidFilePlaybackVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidFilePlayback_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidFilePlayback_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidFilePlayback_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidFilePlayback_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidFilePlayback_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidFilePlayback_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidFilePlayback_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidFilePlayback_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidFilePlayback_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidFilePlayback_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidFilePlayback_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidFilePlayback_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidFilePlayback_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidFilePlayback_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidFilePlayback_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidFilePlayback_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - -#define IMSVidFilePlayback_IsViewable(This,v,pfViewable) \ - (This)->lpVtbl -> IsViewable(This,v,pfViewable) - -#define IMSVidFilePlayback_View(This,v) \ - (This)->lpVtbl -> View(This,v) - - -#define IMSVidFilePlayback_get_EnableResetOnStop(This,pVal) \ - (This)->lpVtbl -> get_EnableResetOnStop(This,pVal) - -#define IMSVidFilePlayback_put_EnableResetOnStop(This,newVal) \ - (This)->lpVtbl -> put_EnableResetOnStop(This,newVal) - -#define IMSVidFilePlayback_Run(This) \ - (This)->lpVtbl -> Run(This) - -#define IMSVidFilePlayback_Pause(This) \ - (This)->lpVtbl -> Pause(This) - -#define IMSVidFilePlayback_Stop(This) \ - (This)->lpVtbl -> Stop(This) - -#define IMSVidFilePlayback_get_CanStep(This,fBackwards,pfCan) \ - (This)->lpVtbl -> get_CanStep(This,fBackwards,pfCan) - -#define IMSVidFilePlayback_Step(This,lStep) \ - (This)->lpVtbl -> Step(This,lStep) - -#define IMSVidFilePlayback_put_Rate(This,plRate) \ - (This)->lpVtbl -> put_Rate(This,plRate) - -#define IMSVidFilePlayback_get_Rate(This,plRate) \ - (This)->lpVtbl -> get_Rate(This,plRate) - -#define IMSVidFilePlayback_put_CurrentPosition(This,lPosition) \ - (This)->lpVtbl -> put_CurrentPosition(This,lPosition) - -#define IMSVidFilePlayback_get_CurrentPosition(This,lPosition) \ - (This)->lpVtbl -> get_CurrentPosition(This,lPosition) - -#define IMSVidFilePlayback_put_PositionMode(This,lPositionMode) \ - (This)->lpVtbl -> put_PositionMode(This,lPositionMode) - -#define IMSVidFilePlayback_get_PositionMode(This,lPositionMode) \ - (This)->lpVtbl -> get_PositionMode(This,lPositionMode) - -#define IMSVidFilePlayback_get_Length(This,lLength) \ - (This)->lpVtbl -> get_Length(This,lLength) - - -#define IMSVidFilePlayback_get_FileName(This,FileName) \ - (This)->lpVtbl -> get_FileName(This,FileName) - -#define IMSVidFilePlayback_put_FileName(This,FileName) \ - (This)->lpVtbl -> put_FileName(This,FileName) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidFilePlayback_get_FileName_Proxy( - IMSVidFilePlayback * This, - /* [retval][out] */ BSTR *FileName); - - -void __RPC_STUB IMSVidFilePlayback_get_FileName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidFilePlayback_put_FileName_Proxy( - IMSVidFilePlayback * This, - /* [in] */ BSTR FileName); - - -void __RPC_STUB IMSVidFilePlayback_put_FileName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidFilePlayback_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidFilePlaybackEvent_INTERFACE_DEFINED__ -#define __IMSVidFilePlaybackEvent_INTERFACE_DEFINED__ - -/* interface IMSVidFilePlaybackEvent */ -/* [unique][helpstring][uuid][hidden][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidFilePlaybackEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("37B0353A-A4C8-11d2-B634-00C04F79498E") - IMSVidFilePlaybackEvent : public IMSVidPlaybackEvent - { - public: - }; - -#else /* C style interface */ - - typedef struct IMSVidFilePlaybackEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidFilePlaybackEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidFilePlaybackEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidFilePlaybackEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidFilePlaybackEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidFilePlaybackEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidFilePlaybackEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidFilePlaybackEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *EndOfMedia )( - IMSVidFilePlaybackEvent * This, - /* [in] */ IMSVidPlayback *lpd); - - END_INTERFACE - } IMSVidFilePlaybackEventVtbl; - - interface IMSVidFilePlaybackEvent - { - CONST_VTBL struct IMSVidFilePlaybackEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidFilePlaybackEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidFilePlaybackEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidFilePlaybackEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidFilePlaybackEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidFilePlaybackEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidFilePlaybackEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidFilePlaybackEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - - -#define IMSVidFilePlaybackEvent_EndOfMedia(This,lpd) \ - (This)->lpVtbl -> EndOfMedia(This,lpd) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IMSVidFilePlaybackEvent_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_segment_0482 */ -/* [local] */ - -typedef /* [public][public][public] */ -enum __MIDL___MIDL_itf_segment_0482_0001 - { dvdMenu_Title = 2, - dvdMenu_Root = dvdMenu_Title + 1, - dvdMenu_Subpicture = dvdMenu_Root + 1, - dvdMenu_Audio = dvdMenu_Subpicture + 1, - dvdMenu_Angle = dvdMenu_Audio + 1, - dvdMenu_Chapter = dvdMenu_Angle + 1 - } DVDMenuIDConstants; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_segment_0482_0002 - { dvdState_Undefined = -2, - dvdState_Unitialized = dvdState_Undefined + 1, - dvdState_Stopped = dvdState_Unitialized + 1, - dvdState_Paused = dvdState_Stopped + 1, - dvdState_Running = dvdState_Paused + 1 - } DVDFilterState; - -typedef /* [public][public] */ -enum __MIDL___MIDL_itf_segment_0482_0003 - { dvdStruct_Volume = 0x1, - dvdStruct_Title = 0x2, - dvdStruct_ParentalID = 0x3, - dvdStruct_PartOfTitle = 0x4, - dvdStruct_Cell = 0x5, - dvdStream_Audio = 0x10, - dvdStream_Subpicture = 0x11, - dvdStream_Angle = 0x12, - dvdChannel_Audio = 0x20, - dvdGeneral_Name = 0x30, - dvdGeneral_Comments = 0x31, - dvdTitle_Series = 0x38, - dvdTitle_Movie = 0x39, - dvdTitle_Video = 0x3a, - dvdTitle_Album = 0x3b, - dvdTitle_Song = 0x3c, - dvdTitle_Other = 0x3f, - dvdTitle_Sub_Series = 0x40, - dvdTitle_Sub_Movie = 0x41, - dvdTitle_Sub_Video = 0x42, - dvdTitle_Sub_Album = 0x43, - dvdTitle_Sub_Song = 0x44, - dvdTitle_Sub_Other = 0x47, - dvdTitle_Orig_Series = 0x48, - dvdTitle_Orig_Movie = 0x49, - dvdTitle_Orig_Video = 0x4a, - dvdTitle_Orig_Album = 0x4b, - dvdTitle_Orig_Song = 0x4c, - dvdTitle_Orig_Other = 0x4f, - dvdOther_Scene = 0x50, - dvdOther_Cut = 0x51, - dvdOther_Take = 0x52 - } DVDTextStringType; - -typedef /* [public][public][public] */ -enum __MIDL___MIDL_itf_segment_0482_0004 - { dvdSPExt_NotSpecified = 0, - dvdSPExt_Caption_Normal = 1, - dvdSPExt_Caption_Big = 2, - dvdSPExt_Caption_Children = 3, - dvdSPExt_CC_Normal = 5, - dvdSPExt_CC_Big = 6, - dvdSPExt_CC_Children = 7, - dvdSPExt_Forced = 9, - dvdSPExt_DirectorComments_Normal = 13, - dvdSPExt_DirectorComments_Big = 14, - dvdSPExt_DirectorComments_Children = 15 - } DVDSPExt; - - - -extern RPC_IF_HANDLE __MIDL_itf_segment_0482_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_segment_0482_v0_0_s_ifspec; - -#ifndef __IMSVidWebDVD_INTERFACE_DEFINED__ -#define __IMSVidWebDVD_INTERFACE_DEFINED__ - -/* interface IMSVidWebDVD */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidWebDVD; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("CF45F88B-AC56-4EE2-A73A-ED04E2885D3C") - IMSVidWebDVD : public IMSVidPlayback - { - public: - virtual HRESULT STDMETHODCALLTYPE OnDVDEvent( - /* [in] */ long lEvent, - /* [in] */ LONG_PTR lParam1, - /* [in] */ LONG_PTR lParam2) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayTitle( - /* [in] */ long lTitle) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayChapterInTitle( - /* [in] */ long lTitle, - /* [in] */ long lChapter) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayChapter( - /* [in] */ long lChapter) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayChaptersAutoStop( - /* [in] */ long lTitle, - /* [in] */ long lstrChapter, - /* [in] */ long lChapterCount) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayAtTime( - /* [in] */ BSTR strTime) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayAtTimeInTitle( - /* [in] */ long lTitle, - /* [in] */ BSTR strTime) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayPeriodInTitleAutoStop( - /* [in] */ long lTitle, - /* [in] */ BSTR strStartTime, - /* [in] */ BSTR strEndTime) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReplayChapter( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayPrevChapter( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayNextChapter( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE StillOff( void) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AudioLanguage( - /* [in] */ long lStream, - /* [defaultvalue][in] */ VARIANT_BOOL fFormat, - /* [retval][out] */ BSTR *strAudioLang) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ShowMenu( - /* [in] */ DVDMenuIDConstants MenuID) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Resume( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReturnFromSubmenu( void) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ButtonsAvailable( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentButton( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectAndActivateButton( - /* [in] */ long lButton) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ActivateButton( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectRightButton( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectLeftButton( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectLowerButton( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectUpperButton( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ActivateAtPosition( - /* [in] */ long xPos, - /* [in] */ long yPos) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectAtPosition( - /* [in] */ long xPos, - /* [in] */ long yPos) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ButtonAtPosition( - /* [in] */ long xPos, - /* [in] */ long yPos, - /* [retval][out] */ long *plButton) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfChapters( - /* [in] */ long lTitle, - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalTitleTime( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TitlesAvailable( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VolumesAvailable( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentVolume( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentDiscSide( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentDomain( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentChapter( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentTitle( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentTime( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DVDTimeCode2bstr( - /* [in] */ long timeCode, - /* [retval][out] */ BSTR *pTimeStr) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DVDDirectory( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DVDDirectory( - /* [in] */ BSTR newVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsSubpictureStreamEnabled( - /* [in] */ long lstream, - /* [retval][out] */ VARIANT_BOOL *fEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsAudioStreamEnabled( - /* [in] */ long lstream, - /* [retval][out] */ VARIANT_BOOL *fEnabled) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentSubpictureStream( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CurrentSubpictureStream( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubpictureLanguage( - long lStream, - /* [retval][out] */ BSTR *strLanguage) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentAudioStream( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CurrentAudioStream( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AudioStreamsAvailable( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AnglesAvailable( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentAngle( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CurrentAngle( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubpictureStreamsAvailable( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubpictureOn( - /* [retval][out] */ VARIANT_BOOL *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SubpictureOn( - /* [in] */ VARIANT_BOOL newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DVDUniqueID( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AcceptParentalLevelChange( - /* [in] */ VARIANT_BOOL fAccept, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyParentalLevelChange( - /* [in] */ VARIANT_BOOL newVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectParentalCountry( - /* [in] */ long lCountry, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectParentalLevel( - /* [in] */ long lParentalLevel, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TitleParentalLevels( - /* [in] */ long lTitle, - /* [retval][out] */ long *plParentalLevels) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlayerParentalCountry( - /* [retval][out] */ long *plCountryCode) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlayerParentalLevel( - /* [retval][out] */ long *plParentalLevel) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Eject( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UOPValid( - /* [in] */ long lUOP, - /* [retval][out] */ VARIANT_BOOL *pfValid) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SPRM( - /* [in] */ long lIndex, - /* [retval][out] */ short *psSPRM) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GPRM( - /* [in] */ long lIndex, - /* [retval][out] */ short *psSPRM) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_GPRM( - /* [in] */ long lIndex, - /* [in] */ short sValue) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DVDTextStringType( - /* [in] */ long lLangIndex, - /* [in] */ long lStringIndex, - /* [retval][out] */ DVDTextStringType *pType) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DVDTextString( - /* [in] */ long lLangIndex, - /* [in] */ long lStringIndex, - /* [retval][out] */ BSTR *pstrText) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DVDTextNumberOfStrings( - /* [in] */ long lLangIndex, - /* [retval][out] */ long *plNumOfStrings) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DVDTextNumberOfLanguages( - /* [retval][out] */ long *plNumOfLangs) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DVDTextLanguageLCID( - /* [in] */ long lLangIndex, - /* [retval][out] */ long *lcid) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RegionChange( void) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DVDAdm( - /* [retval][out] */ IDispatch **pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteBookmark( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RestoreBookmark( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveBookmark( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectDefaultAudioLanguage( - /* [in] */ long lang, - /* [in] */ long ext) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectDefaultSubpictureLanguage( - /* [in] */ long lang, - /* [in] */ DVDSPExt ext) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PreferredSubpictureStream( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultMenuLanguage( - /* [retval][out] */ long *lang) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DefaultMenuLanguage( - /* [in] */ long lang) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultSubpictureLanguage( - /* [retval][out] */ long *lang) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultAudioLanguage( - /* [retval][out] */ long *lang) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultSubpictureLanguageExt( - /* [retval][out] */ DVDSPExt *ext) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultAudioLanguageExt( - /* [retval][out] */ long *ext) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LanguageFromLCID( - /* [in] */ long lcid, - /* [retval][out] */ BSTR *lang) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_KaraokeAudioPresentationMode( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_KaraokeAudioPresentationMode( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_KaraokeChannelContent( - /* [in] */ long lStream, - /* [in] */ long lChan, - /* [retval][out] */ long *lContent) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_KaraokeChannelAssignment( - /* [in] */ long lStream, - /* [retval][out] */ long *lChannelAssignment) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RestorePreferredSettings( void) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ButtonRect( - /* [in] */ long lButton, - /* [retval][out] */ IMSVidRect **pRect) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DVDScreenInMouseCoordinates( - /* [retval][out] */ IMSVidRect **ppRect) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DVDScreenInMouseCoordinates( - /* [in] */ IMSVidRect *pRect) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidWebDVDVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidWebDVD * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidWebDVD * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidWebDVD * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidWebDVD * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidWebDVD * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidWebDVD * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidWebDVD * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidWebDVD * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidWebDVD * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidWebDVD * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidWebDVD * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidWebDVD * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidWebDVD * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidWebDVD * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidWebDVD * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidWebDVD * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsViewable )( - IMSVidWebDVD * This, - /* [in] */ VARIANT *v, - /* [retval][out] */ VARIANT_BOOL *pfViewable); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *View )( - IMSVidWebDVD * This, - /* [in] */ VARIANT *v); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnableResetOnStop )( - IMSVidWebDVD * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EnableResetOnStop )( - IMSVidWebDVD * This, - /* [in] */ VARIANT_BOOL newVal); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Run )( - IMSVidWebDVD * This); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Pause )( - IMSVidWebDVD * This); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( - IMSVidWebDVD * This); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CanStep )( - IMSVidWebDVD * This, - /* [in] */ VARIANT_BOOL fBackwards, - /* [retval][out] */ VARIANT_BOOL *pfCan); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Step )( - IMSVidWebDVD * This, - /* [in] */ long lStep); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Rate )( - IMSVidWebDVD * This, - /* [in] */ double plRate); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rate )( - IMSVidWebDVD * This, - /* [retval][out] */ double *plRate); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CurrentPosition )( - IMSVidWebDVD * This, - /* [in] */ long lPosition); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPosition )( - IMSVidWebDVD * This, - /* [retval][out] */ long *lPosition); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PositionMode )( - IMSVidWebDVD * This, - /* [in] */ PositionModeList lPositionMode); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PositionMode )( - IMSVidWebDVD * This, - /* [retval][out] */ PositionModeList *lPositionMode); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Length )( - IMSVidWebDVD * This, - /* [retval][out] */ long *lLength); - - HRESULT ( STDMETHODCALLTYPE *OnDVDEvent )( - IMSVidWebDVD * This, - /* [in] */ long lEvent, - /* [in] */ LONG_PTR lParam1, - /* [in] */ LONG_PTR lParam2); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayTitle )( - IMSVidWebDVD * This, - /* [in] */ long lTitle); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayChapterInTitle )( - IMSVidWebDVD * This, - /* [in] */ long lTitle, - /* [in] */ long lChapter); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayChapter )( - IMSVidWebDVD * This, - /* [in] */ long lChapter); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayChaptersAutoStop )( - IMSVidWebDVD * This, - /* [in] */ long lTitle, - /* [in] */ long lstrChapter, - /* [in] */ long lChapterCount); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayAtTime )( - IMSVidWebDVD * This, - /* [in] */ BSTR strTime); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayAtTimeInTitle )( - IMSVidWebDVD * This, - /* [in] */ long lTitle, - /* [in] */ BSTR strTime); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayPeriodInTitleAutoStop )( - IMSVidWebDVD * This, - /* [in] */ long lTitle, - /* [in] */ BSTR strStartTime, - /* [in] */ BSTR strEndTime); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReplayChapter )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayPrevChapter )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayNextChapter )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StillOff )( - IMSVidWebDVD * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioLanguage )( - IMSVidWebDVD * This, - /* [in] */ long lStream, - /* [defaultvalue][in] */ VARIANT_BOOL fFormat, - /* [retval][out] */ BSTR *strAudioLang); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ShowMenu )( - IMSVidWebDVD * This, - /* [in] */ DVDMenuIDConstants MenuID); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Resume )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReturnFromSubmenu )( - IMSVidWebDVD * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ButtonsAvailable )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentButton )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectAndActivateButton )( - IMSVidWebDVD * This, - /* [in] */ long lButton); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ActivateButton )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectRightButton )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectLeftButton )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectLowerButton )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectUpperButton )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ActivateAtPosition )( - IMSVidWebDVD * This, - /* [in] */ long xPos, - /* [in] */ long yPos); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectAtPosition )( - IMSVidWebDVD * This, - /* [in] */ long xPos, - /* [in] */ long yPos); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ButtonAtPosition )( - IMSVidWebDVD * This, - /* [in] */ long xPos, - /* [in] */ long yPos, - /* [retval][out] */ long *plButton); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfChapters )( - IMSVidWebDVD * This, - /* [in] */ long lTitle, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalTitleTime )( - IMSVidWebDVD * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TitlesAvailable )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumesAvailable )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentVolume )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentDiscSide )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentDomain )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentChapter )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentTitle )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentTime )( - IMSVidWebDVD * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DVDTimeCode2bstr )( - IMSVidWebDVD * This, - /* [in] */ long timeCode, - /* [retval][out] */ BSTR *pTimeStr); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DVDDirectory )( - IMSVidWebDVD * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DVDDirectory )( - IMSVidWebDVD * This, - /* [in] */ BSTR newVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsSubpictureStreamEnabled )( - IMSVidWebDVD * This, - /* [in] */ long lstream, - /* [retval][out] */ VARIANT_BOOL *fEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsAudioStreamEnabled )( - IMSVidWebDVD * This, - /* [in] */ long lstream, - /* [retval][out] */ VARIANT_BOOL *fEnabled); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentSubpictureStream )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CurrentSubpictureStream )( - IMSVidWebDVD * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubpictureLanguage )( - IMSVidWebDVD * This, - long lStream, - /* [retval][out] */ BSTR *strLanguage); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentAudioStream )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CurrentAudioStream )( - IMSVidWebDVD * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioStreamsAvailable )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AnglesAvailable )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentAngle )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CurrentAngle )( - IMSVidWebDVD * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubpictureStreamsAvailable )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubpictureOn )( - IMSVidWebDVD * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SubpictureOn )( - IMSVidWebDVD * This, - /* [in] */ VARIANT_BOOL newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DVDUniqueID )( - IMSVidWebDVD * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AcceptParentalLevelChange )( - IMSVidWebDVD * This, - /* [in] */ VARIANT_BOOL fAccept, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyParentalLevelChange )( - IMSVidWebDVD * This, - /* [in] */ VARIANT_BOOL newVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectParentalCountry )( - IMSVidWebDVD * This, - /* [in] */ long lCountry, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectParentalLevel )( - IMSVidWebDVD * This, - /* [in] */ long lParentalLevel, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TitleParentalLevels )( - IMSVidWebDVD * This, - /* [in] */ long lTitle, - /* [retval][out] */ long *plParentalLevels); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlayerParentalCountry )( - IMSVidWebDVD * This, - /* [retval][out] */ long *plCountryCode); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlayerParentalLevel )( - IMSVidWebDVD * This, - /* [retval][out] */ long *plParentalLevel); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Eject )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UOPValid )( - IMSVidWebDVD * This, - /* [in] */ long lUOP, - /* [retval][out] */ VARIANT_BOOL *pfValid); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SPRM )( - IMSVidWebDVD * This, - /* [in] */ long lIndex, - /* [retval][out] */ short *psSPRM); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GPRM )( - IMSVidWebDVD * This, - /* [in] */ long lIndex, - /* [retval][out] */ short *psSPRM); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_GPRM )( - IMSVidWebDVD * This, - /* [in] */ long lIndex, - /* [in] */ short sValue); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DVDTextStringType )( - IMSVidWebDVD * This, - /* [in] */ long lLangIndex, - /* [in] */ long lStringIndex, - /* [retval][out] */ DVDTextStringType *pType); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DVDTextString )( - IMSVidWebDVD * This, - /* [in] */ long lLangIndex, - /* [in] */ long lStringIndex, - /* [retval][out] */ BSTR *pstrText); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DVDTextNumberOfStrings )( - IMSVidWebDVD * This, - /* [in] */ long lLangIndex, - /* [retval][out] */ long *plNumOfStrings); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DVDTextNumberOfLanguages )( - IMSVidWebDVD * This, - /* [retval][out] */ long *plNumOfLangs); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DVDTextLanguageLCID )( - IMSVidWebDVD * This, - /* [in] */ long lLangIndex, - /* [retval][out] */ long *lcid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RegionChange )( - IMSVidWebDVD * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DVDAdm )( - IMSVidWebDVD * This, - /* [retval][out] */ IDispatch **pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteBookmark )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RestoreBookmark )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveBookmark )( - IMSVidWebDVD * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectDefaultAudioLanguage )( - IMSVidWebDVD * This, - /* [in] */ long lang, - /* [in] */ long ext); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectDefaultSubpictureLanguage )( - IMSVidWebDVD * This, - /* [in] */ long lang, - /* [in] */ DVDSPExt ext); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PreferredSubpictureStream )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultMenuLanguage )( - IMSVidWebDVD * This, - /* [retval][out] */ long *lang); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultMenuLanguage )( - IMSVidWebDVD * This, - /* [in] */ long lang); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultSubpictureLanguage )( - IMSVidWebDVD * This, - /* [retval][out] */ long *lang); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultAudioLanguage )( - IMSVidWebDVD * This, - /* [retval][out] */ long *lang); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultSubpictureLanguageExt )( - IMSVidWebDVD * This, - /* [retval][out] */ DVDSPExt *ext); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultAudioLanguageExt )( - IMSVidWebDVD * This, - /* [retval][out] */ long *ext); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LanguageFromLCID )( - IMSVidWebDVD * This, - /* [in] */ long lcid, - /* [retval][out] */ BSTR *lang); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KaraokeAudioPresentationMode )( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_KaraokeAudioPresentationMode )( - IMSVidWebDVD * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KaraokeChannelContent )( - IMSVidWebDVD * This, - /* [in] */ long lStream, - /* [in] */ long lChan, - /* [retval][out] */ long *lContent); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KaraokeChannelAssignment )( - IMSVidWebDVD * This, - /* [in] */ long lStream, - /* [retval][out] */ long *lChannelAssignment); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RestorePreferredSettings )( - IMSVidWebDVD * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ButtonRect )( - IMSVidWebDVD * This, - /* [in] */ long lButton, - /* [retval][out] */ IMSVidRect **pRect); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DVDScreenInMouseCoordinates )( - IMSVidWebDVD * This, - /* [retval][out] */ IMSVidRect **ppRect); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DVDScreenInMouseCoordinates )( - IMSVidWebDVD * This, - /* [in] */ IMSVidRect *pRect); - - END_INTERFACE - } IMSVidWebDVDVtbl; - - interface IMSVidWebDVD - { - CONST_VTBL struct IMSVidWebDVDVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidWebDVD_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidWebDVD_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidWebDVD_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidWebDVD_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidWebDVD_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidWebDVD_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidWebDVD_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidWebDVD_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidWebDVD_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidWebDVD_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidWebDVD_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidWebDVD_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidWebDVD_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidWebDVD_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidWebDVD_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidWebDVD_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - -#define IMSVidWebDVD_IsViewable(This,v,pfViewable) \ - (This)->lpVtbl -> IsViewable(This,v,pfViewable) - -#define IMSVidWebDVD_View(This,v) \ - (This)->lpVtbl -> View(This,v) - - -#define IMSVidWebDVD_get_EnableResetOnStop(This,pVal) \ - (This)->lpVtbl -> get_EnableResetOnStop(This,pVal) - -#define IMSVidWebDVD_put_EnableResetOnStop(This,newVal) \ - (This)->lpVtbl -> put_EnableResetOnStop(This,newVal) - -#define IMSVidWebDVD_Run(This) \ - (This)->lpVtbl -> Run(This) - -#define IMSVidWebDVD_Pause(This) \ - (This)->lpVtbl -> Pause(This) - -#define IMSVidWebDVD_Stop(This) \ - (This)->lpVtbl -> Stop(This) - -#define IMSVidWebDVD_get_CanStep(This,fBackwards,pfCan) \ - (This)->lpVtbl -> get_CanStep(This,fBackwards,pfCan) - -#define IMSVidWebDVD_Step(This,lStep) \ - (This)->lpVtbl -> Step(This,lStep) - -#define IMSVidWebDVD_put_Rate(This,plRate) \ - (This)->lpVtbl -> put_Rate(This,plRate) - -#define IMSVidWebDVD_get_Rate(This,plRate) \ - (This)->lpVtbl -> get_Rate(This,plRate) - -#define IMSVidWebDVD_put_CurrentPosition(This,lPosition) \ - (This)->lpVtbl -> put_CurrentPosition(This,lPosition) - -#define IMSVidWebDVD_get_CurrentPosition(This,lPosition) \ - (This)->lpVtbl -> get_CurrentPosition(This,lPosition) - -#define IMSVidWebDVD_put_PositionMode(This,lPositionMode) \ - (This)->lpVtbl -> put_PositionMode(This,lPositionMode) - -#define IMSVidWebDVD_get_PositionMode(This,lPositionMode) \ - (This)->lpVtbl -> get_PositionMode(This,lPositionMode) - -#define IMSVidWebDVD_get_Length(This,lLength) \ - (This)->lpVtbl -> get_Length(This,lLength) - - -#define IMSVidWebDVD_OnDVDEvent(This,lEvent,lParam1,lParam2) \ - (This)->lpVtbl -> OnDVDEvent(This,lEvent,lParam1,lParam2) - -#define IMSVidWebDVD_PlayTitle(This,lTitle) \ - (This)->lpVtbl -> PlayTitle(This,lTitle) - -#define IMSVidWebDVD_PlayChapterInTitle(This,lTitle,lChapter) \ - (This)->lpVtbl -> PlayChapterInTitle(This,lTitle,lChapter) - -#define IMSVidWebDVD_PlayChapter(This,lChapter) \ - (This)->lpVtbl -> PlayChapter(This,lChapter) - -#define IMSVidWebDVD_PlayChaptersAutoStop(This,lTitle,lstrChapter,lChapterCount) \ - (This)->lpVtbl -> PlayChaptersAutoStop(This,lTitle,lstrChapter,lChapterCount) - -#define IMSVidWebDVD_PlayAtTime(This,strTime) \ - (This)->lpVtbl -> PlayAtTime(This,strTime) - -#define IMSVidWebDVD_PlayAtTimeInTitle(This,lTitle,strTime) \ - (This)->lpVtbl -> PlayAtTimeInTitle(This,lTitle,strTime) - -#define IMSVidWebDVD_PlayPeriodInTitleAutoStop(This,lTitle,strStartTime,strEndTime) \ - (This)->lpVtbl -> PlayPeriodInTitleAutoStop(This,lTitle,strStartTime,strEndTime) - -#define IMSVidWebDVD_ReplayChapter(This) \ - (This)->lpVtbl -> ReplayChapter(This) - -#define IMSVidWebDVD_PlayPrevChapter(This) \ - (This)->lpVtbl -> PlayPrevChapter(This) - -#define IMSVidWebDVD_PlayNextChapter(This) \ - (This)->lpVtbl -> PlayNextChapter(This) - -#define IMSVidWebDVD_StillOff(This) \ - (This)->lpVtbl -> StillOff(This) - -#define IMSVidWebDVD_get_AudioLanguage(This,lStream,fFormat,strAudioLang) \ - (This)->lpVtbl -> get_AudioLanguage(This,lStream,fFormat,strAudioLang) - -#define IMSVidWebDVD_ShowMenu(This,MenuID) \ - (This)->lpVtbl -> ShowMenu(This,MenuID) - -#define IMSVidWebDVD_Resume(This) \ - (This)->lpVtbl -> Resume(This) - -#define IMSVidWebDVD_ReturnFromSubmenu(This) \ - (This)->lpVtbl -> ReturnFromSubmenu(This) - -#define IMSVidWebDVD_get_ButtonsAvailable(This,pVal) \ - (This)->lpVtbl -> get_ButtonsAvailable(This,pVal) - -#define IMSVidWebDVD_get_CurrentButton(This,pVal) \ - (This)->lpVtbl -> get_CurrentButton(This,pVal) - -#define IMSVidWebDVD_SelectAndActivateButton(This,lButton) \ - (This)->lpVtbl -> SelectAndActivateButton(This,lButton) - -#define IMSVidWebDVD_ActivateButton(This) \ - (This)->lpVtbl -> ActivateButton(This) - -#define IMSVidWebDVD_SelectRightButton(This) \ - (This)->lpVtbl -> SelectRightButton(This) - -#define IMSVidWebDVD_SelectLeftButton(This) \ - (This)->lpVtbl -> SelectLeftButton(This) - -#define IMSVidWebDVD_SelectLowerButton(This) \ - (This)->lpVtbl -> SelectLowerButton(This) - -#define IMSVidWebDVD_SelectUpperButton(This) \ - (This)->lpVtbl -> SelectUpperButton(This) - -#define IMSVidWebDVD_ActivateAtPosition(This,xPos,yPos) \ - (This)->lpVtbl -> ActivateAtPosition(This,xPos,yPos) - -#define IMSVidWebDVD_SelectAtPosition(This,xPos,yPos) \ - (This)->lpVtbl -> SelectAtPosition(This,xPos,yPos) - -#define IMSVidWebDVD_get_ButtonAtPosition(This,xPos,yPos,plButton) \ - (This)->lpVtbl -> get_ButtonAtPosition(This,xPos,yPos,plButton) - -#define IMSVidWebDVD_get_NumberOfChapters(This,lTitle,pVal) \ - (This)->lpVtbl -> get_NumberOfChapters(This,lTitle,pVal) - -#define IMSVidWebDVD_get_TotalTitleTime(This,pVal) \ - (This)->lpVtbl -> get_TotalTitleTime(This,pVal) - -#define IMSVidWebDVD_get_TitlesAvailable(This,pVal) \ - (This)->lpVtbl -> get_TitlesAvailable(This,pVal) - -#define IMSVidWebDVD_get_VolumesAvailable(This,pVal) \ - (This)->lpVtbl -> get_VolumesAvailable(This,pVal) - -#define IMSVidWebDVD_get_CurrentVolume(This,pVal) \ - (This)->lpVtbl -> get_CurrentVolume(This,pVal) - -#define IMSVidWebDVD_get_CurrentDiscSide(This,pVal) \ - (This)->lpVtbl -> get_CurrentDiscSide(This,pVal) - -#define IMSVidWebDVD_get_CurrentDomain(This,pVal) \ - (This)->lpVtbl -> get_CurrentDomain(This,pVal) - -#define IMSVidWebDVD_get_CurrentChapter(This,pVal) \ - (This)->lpVtbl -> get_CurrentChapter(This,pVal) - -#define IMSVidWebDVD_get_CurrentTitle(This,pVal) \ - (This)->lpVtbl -> get_CurrentTitle(This,pVal) - -#define IMSVidWebDVD_get_CurrentTime(This,pVal) \ - (This)->lpVtbl -> get_CurrentTime(This,pVal) - -#define IMSVidWebDVD_DVDTimeCode2bstr(This,timeCode,pTimeStr) \ - (This)->lpVtbl -> DVDTimeCode2bstr(This,timeCode,pTimeStr) - -#define IMSVidWebDVD_get_DVDDirectory(This,pVal) \ - (This)->lpVtbl -> get_DVDDirectory(This,pVal) - -#define IMSVidWebDVD_put_DVDDirectory(This,newVal) \ - (This)->lpVtbl -> put_DVDDirectory(This,newVal) - -#define IMSVidWebDVD_IsSubpictureStreamEnabled(This,lstream,fEnabled) \ - (This)->lpVtbl -> IsSubpictureStreamEnabled(This,lstream,fEnabled) - -#define IMSVidWebDVD_IsAudioStreamEnabled(This,lstream,fEnabled) \ - (This)->lpVtbl -> IsAudioStreamEnabled(This,lstream,fEnabled) - -#define IMSVidWebDVD_get_CurrentSubpictureStream(This,pVal) \ - (This)->lpVtbl -> get_CurrentSubpictureStream(This,pVal) - -#define IMSVidWebDVD_put_CurrentSubpictureStream(This,newVal) \ - (This)->lpVtbl -> put_CurrentSubpictureStream(This,newVal) - -#define IMSVidWebDVD_get_SubpictureLanguage(This,lStream,strLanguage) \ - (This)->lpVtbl -> get_SubpictureLanguage(This,lStream,strLanguage) - -#define IMSVidWebDVD_get_CurrentAudioStream(This,pVal) \ - (This)->lpVtbl -> get_CurrentAudioStream(This,pVal) - -#define IMSVidWebDVD_put_CurrentAudioStream(This,newVal) \ - (This)->lpVtbl -> put_CurrentAudioStream(This,newVal) - -#define IMSVidWebDVD_get_AudioStreamsAvailable(This,pVal) \ - (This)->lpVtbl -> get_AudioStreamsAvailable(This,pVal) - -#define IMSVidWebDVD_get_AnglesAvailable(This,pVal) \ - (This)->lpVtbl -> get_AnglesAvailable(This,pVal) - -#define IMSVidWebDVD_get_CurrentAngle(This,pVal) \ - (This)->lpVtbl -> get_CurrentAngle(This,pVal) - -#define IMSVidWebDVD_put_CurrentAngle(This,newVal) \ - (This)->lpVtbl -> put_CurrentAngle(This,newVal) - -#define IMSVidWebDVD_get_SubpictureStreamsAvailable(This,pVal) \ - (This)->lpVtbl -> get_SubpictureStreamsAvailable(This,pVal) - -#define IMSVidWebDVD_get_SubpictureOn(This,pVal) \ - (This)->lpVtbl -> get_SubpictureOn(This,pVal) - -#define IMSVidWebDVD_put_SubpictureOn(This,newVal) \ - (This)->lpVtbl -> put_SubpictureOn(This,newVal) - -#define IMSVidWebDVD_get_DVDUniqueID(This,pVal) \ - (This)->lpVtbl -> get_DVDUniqueID(This,pVal) - -#define IMSVidWebDVD_AcceptParentalLevelChange(This,fAccept,strUserName,strPassword) \ - (This)->lpVtbl -> AcceptParentalLevelChange(This,fAccept,strUserName,strPassword) - -#define IMSVidWebDVD_NotifyParentalLevelChange(This,newVal) \ - (This)->lpVtbl -> NotifyParentalLevelChange(This,newVal) - -#define IMSVidWebDVD_SelectParentalCountry(This,lCountry,strUserName,strPassword) \ - (This)->lpVtbl -> SelectParentalCountry(This,lCountry,strUserName,strPassword) - -#define IMSVidWebDVD_SelectParentalLevel(This,lParentalLevel,strUserName,strPassword) \ - (This)->lpVtbl -> SelectParentalLevel(This,lParentalLevel,strUserName,strPassword) - -#define IMSVidWebDVD_get_TitleParentalLevels(This,lTitle,plParentalLevels) \ - (This)->lpVtbl -> get_TitleParentalLevels(This,lTitle,plParentalLevels) - -#define IMSVidWebDVD_get_PlayerParentalCountry(This,plCountryCode) \ - (This)->lpVtbl -> get_PlayerParentalCountry(This,plCountryCode) - -#define IMSVidWebDVD_get_PlayerParentalLevel(This,plParentalLevel) \ - (This)->lpVtbl -> get_PlayerParentalLevel(This,plParentalLevel) - -#define IMSVidWebDVD_Eject(This) \ - (This)->lpVtbl -> Eject(This) - -#define IMSVidWebDVD_UOPValid(This,lUOP,pfValid) \ - (This)->lpVtbl -> UOPValid(This,lUOP,pfValid) - -#define IMSVidWebDVD_get_SPRM(This,lIndex,psSPRM) \ - (This)->lpVtbl -> get_SPRM(This,lIndex,psSPRM) - -#define IMSVidWebDVD_get_GPRM(This,lIndex,psSPRM) \ - (This)->lpVtbl -> get_GPRM(This,lIndex,psSPRM) - -#define IMSVidWebDVD_put_GPRM(This,lIndex,sValue) \ - (This)->lpVtbl -> put_GPRM(This,lIndex,sValue) - -#define IMSVidWebDVD_get_DVDTextStringType(This,lLangIndex,lStringIndex,pType) \ - (This)->lpVtbl -> get_DVDTextStringType(This,lLangIndex,lStringIndex,pType) - -#define IMSVidWebDVD_get_DVDTextString(This,lLangIndex,lStringIndex,pstrText) \ - (This)->lpVtbl -> get_DVDTextString(This,lLangIndex,lStringIndex,pstrText) - -#define IMSVidWebDVD_get_DVDTextNumberOfStrings(This,lLangIndex,plNumOfStrings) \ - (This)->lpVtbl -> get_DVDTextNumberOfStrings(This,lLangIndex,plNumOfStrings) - -#define IMSVidWebDVD_get_DVDTextNumberOfLanguages(This,plNumOfLangs) \ - (This)->lpVtbl -> get_DVDTextNumberOfLanguages(This,plNumOfLangs) - -#define IMSVidWebDVD_get_DVDTextLanguageLCID(This,lLangIndex,lcid) \ - (This)->lpVtbl -> get_DVDTextLanguageLCID(This,lLangIndex,lcid) - -#define IMSVidWebDVD_RegionChange(This) \ - (This)->lpVtbl -> RegionChange(This) - -#define IMSVidWebDVD_get_DVDAdm(This,pVal) \ - (This)->lpVtbl -> get_DVDAdm(This,pVal) - -#define IMSVidWebDVD_DeleteBookmark(This) \ - (This)->lpVtbl -> DeleteBookmark(This) - -#define IMSVidWebDVD_RestoreBookmark(This) \ - (This)->lpVtbl -> RestoreBookmark(This) - -#define IMSVidWebDVD_SaveBookmark(This) \ - (This)->lpVtbl -> SaveBookmark(This) - -#define IMSVidWebDVD_SelectDefaultAudioLanguage(This,lang,ext) \ - (This)->lpVtbl -> SelectDefaultAudioLanguage(This,lang,ext) - -#define IMSVidWebDVD_SelectDefaultSubpictureLanguage(This,lang,ext) \ - (This)->lpVtbl -> SelectDefaultSubpictureLanguage(This,lang,ext) - -#define IMSVidWebDVD_get_PreferredSubpictureStream(This,pVal) \ - (This)->lpVtbl -> get_PreferredSubpictureStream(This,pVal) - -#define IMSVidWebDVD_get_DefaultMenuLanguage(This,lang) \ - (This)->lpVtbl -> get_DefaultMenuLanguage(This,lang) - -#define IMSVidWebDVD_put_DefaultMenuLanguage(This,lang) \ - (This)->lpVtbl -> put_DefaultMenuLanguage(This,lang) - -#define IMSVidWebDVD_get_DefaultSubpictureLanguage(This,lang) \ - (This)->lpVtbl -> get_DefaultSubpictureLanguage(This,lang) - -#define IMSVidWebDVD_get_DefaultAudioLanguage(This,lang) \ - (This)->lpVtbl -> get_DefaultAudioLanguage(This,lang) - -#define IMSVidWebDVD_get_DefaultSubpictureLanguageExt(This,ext) \ - (This)->lpVtbl -> get_DefaultSubpictureLanguageExt(This,ext) - -#define IMSVidWebDVD_get_DefaultAudioLanguageExt(This,ext) \ - (This)->lpVtbl -> get_DefaultAudioLanguageExt(This,ext) - -#define IMSVidWebDVD_get_LanguageFromLCID(This,lcid,lang) \ - (This)->lpVtbl -> get_LanguageFromLCID(This,lcid,lang) - -#define IMSVidWebDVD_get_KaraokeAudioPresentationMode(This,pVal) \ - (This)->lpVtbl -> get_KaraokeAudioPresentationMode(This,pVal) - -#define IMSVidWebDVD_put_KaraokeAudioPresentationMode(This,newVal) \ - (This)->lpVtbl -> put_KaraokeAudioPresentationMode(This,newVal) - -#define IMSVidWebDVD_get_KaraokeChannelContent(This,lStream,lChan,lContent) \ - (This)->lpVtbl -> get_KaraokeChannelContent(This,lStream,lChan,lContent) - -#define IMSVidWebDVD_get_KaraokeChannelAssignment(This,lStream,lChannelAssignment) \ - (This)->lpVtbl -> get_KaraokeChannelAssignment(This,lStream,lChannelAssignment) - -#define IMSVidWebDVD_RestorePreferredSettings(This) \ - (This)->lpVtbl -> RestorePreferredSettings(This) - -#define IMSVidWebDVD_get_ButtonRect(This,lButton,pRect) \ - (This)->lpVtbl -> get_ButtonRect(This,lButton,pRect) - -#define IMSVidWebDVD_get_DVDScreenInMouseCoordinates(This,ppRect) \ - (This)->lpVtbl -> get_DVDScreenInMouseCoordinates(This,ppRect) - -#define IMSVidWebDVD_put_DVDScreenInMouseCoordinates(This,pRect) \ - (This)->lpVtbl -> put_DVDScreenInMouseCoordinates(This,pRect) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMSVidWebDVD_OnDVDEvent_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lEvent, - /* [in] */ LONG_PTR lParam1, - /* [in] */ LONG_PTR lParam2); - - -void __RPC_STUB IMSVidWebDVD_OnDVDEvent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_PlayTitle_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lTitle); - - -void __RPC_STUB IMSVidWebDVD_PlayTitle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_PlayChapterInTitle_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lTitle, - /* [in] */ long lChapter); - - -void __RPC_STUB IMSVidWebDVD_PlayChapterInTitle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_PlayChapter_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lChapter); - - -void __RPC_STUB IMSVidWebDVD_PlayChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_PlayChaptersAutoStop_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lTitle, - /* [in] */ long lstrChapter, - /* [in] */ long lChapterCount); - - -void __RPC_STUB IMSVidWebDVD_PlayChaptersAutoStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_PlayAtTime_Proxy( - IMSVidWebDVD * This, - /* [in] */ BSTR strTime); - - -void __RPC_STUB IMSVidWebDVD_PlayAtTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_PlayAtTimeInTitle_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lTitle, - /* [in] */ BSTR strTime); - - -void __RPC_STUB IMSVidWebDVD_PlayAtTimeInTitle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_PlayPeriodInTitleAutoStop_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lTitle, - /* [in] */ BSTR strStartTime, - /* [in] */ BSTR strEndTime); - - -void __RPC_STUB IMSVidWebDVD_PlayPeriodInTitleAutoStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_ReplayChapter_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_ReplayChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_PlayPrevChapter_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_PlayPrevChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_PlayNextChapter_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_PlayNextChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_StillOff_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_StillOff_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_AudioLanguage_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lStream, - /* [defaultvalue][in] */ VARIANT_BOOL fFormat, - /* [retval][out] */ BSTR *strAudioLang); - - -void __RPC_STUB IMSVidWebDVD_get_AudioLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_ShowMenu_Proxy( - IMSVidWebDVD * This, - /* [in] */ DVDMenuIDConstants MenuID); - - -void __RPC_STUB IMSVidWebDVD_ShowMenu_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_Resume_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_Resume_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_ReturnFromSubmenu_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_ReturnFromSubmenu_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_ButtonsAvailable_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_ButtonsAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_CurrentButton_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_CurrentButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_SelectAndActivateButton_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lButton); - - -void __RPC_STUB IMSVidWebDVD_SelectAndActivateButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_ActivateButton_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_ActivateButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_SelectRightButton_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_SelectRightButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_SelectLeftButton_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_SelectLeftButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_SelectLowerButton_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_SelectLowerButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_SelectUpperButton_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_SelectUpperButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_ActivateAtPosition_Proxy( - IMSVidWebDVD * This, - /* [in] */ long xPos, - /* [in] */ long yPos); - - -void __RPC_STUB IMSVidWebDVD_ActivateAtPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_SelectAtPosition_Proxy( - IMSVidWebDVD * This, - /* [in] */ long xPos, - /* [in] */ long yPos); - - -void __RPC_STUB IMSVidWebDVD_SelectAtPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_ButtonAtPosition_Proxy( - IMSVidWebDVD * This, - /* [in] */ long xPos, - /* [in] */ long yPos, - /* [retval][out] */ long *plButton); - - -void __RPC_STUB IMSVidWebDVD_get_ButtonAtPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_NumberOfChapters_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lTitle, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_NumberOfChapters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_TotalTitleTime_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_TotalTitleTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_TitlesAvailable_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_TitlesAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_VolumesAvailable_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_VolumesAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_CurrentVolume_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_CurrentVolume_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_CurrentDiscSide_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_CurrentDiscSide_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_CurrentDomain_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_CurrentDomain_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_CurrentChapter_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_CurrentChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_CurrentTitle_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_CurrentTitle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_CurrentTime_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_CurrentTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_DVDTimeCode2bstr_Proxy( - IMSVidWebDVD * This, - /* [in] */ long timeCode, - /* [retval][out] */ BSTR *pTimeStr); - - -void __RPC_STUB IMSVidWebDVD_DVDTimeCode2bstr_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DVDDirectory_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_DVDDirectory_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_put_DVDDirectory_Proxy( - IMSVidWebDVD * This, - /* [in] */ BSTR newVal); - - -void __RPC_STUB IMSVidWebDVD_put_DVDDirectory_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_IsSubpictureStreamEnabled_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lstream, - /* [retval][out] */ VARIANT_BOOL *fEnabled); - - -void __RPC_STUB IMSVidWebDVD_IsSubpictureStreamEnabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_IsAudioStreamEnabled_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lstream, - /* [retval][out] */ VARIANT_BOOL *fEnabled); - - -void __RPC_STUB IMSVidWebDVD_IsAudioStreamEnabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_CurrentSubpictureStream_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_CurrentSubpictureStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_put_CurrentSubpictureStream_Proxy( - IMSVidWebDVD * This, - /* [in] */ long newVal); - - -void __RPC_STUB IMSVidWebDVD_put_CurrentSubpictureStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_SubpictureLanguage_Proxy( - IMSVidWebDVD * This, - long lStream, - /* [retval][out] */ BSTR *strLanguage); - - -void __RPC_STUB IMSVidWebDVD_get_SubpictureLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_CurrentAudioStream_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_CurrentAudioStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_put_CurrentAudioStream_Proxy( - IMSVidWebDVD * This, - /* [in] */ long newVal); - - -void __RPC_STUB IMSVidWebDVD_put_CurrentAudioStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_AudioStreamsAvailable_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_AudioStreamsAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_AnglesAvailable_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_AnglesAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_CurrentAngle_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_CurrentAngle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_put_CurrentAngle_Proxy( - IMSVidWebDVD * This, - /* [in] */ long newVal); - - -void __RPC_STUB IMSVidWebDVD_put_CurrentAngle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_SubpictureStreamsAvailable_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_SubpictureStreamsAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_SubpictureOn_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_SubpictureOn_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_put_SubpictureOn_Proxy( - IMSVidWebDVD * This, - /* [in] */ VARIANT_BOOL newVal); - - -void __RPC_STUB IMSVidWebDVD_put_SubpictureOn_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DVDUniqueID_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_DVDUniqueID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_AcceptParentalLevelChange_Proxy( - IMSVidWebDVD * This, - /* [in] */ VARIANT_BOOL fAccept, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword); - - -void __RPC_STUB IMSVidWebDVD_AcceptParentalLevelChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_NotifyParentalLevelChange_Proxy( - IMSVidWebDVD * This, - /* [in] */ VARIANT_BOOL newVal); - - -void __RPC_STUB IMSVidWebDVD_NotifyParentalLevelChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_SelectParentalCountry_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lCountry, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword); - - -void __RPC_STUB IMSVidWebDVD_SelectParentalCountry_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_SelectParentalLevel_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lParentalLevel, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword); - - -void __RPC_STUB IMSVidWebDVD_SelectParentalLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_TitleParentalLevels_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lTitle, - /* [retval][out] */ long *plParentalLevels); - - -void __RPC_STUB IMSVidWebDVD_get_TitleParentalLevels_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_PlayerParentalCountry_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *plCountryCode); - - -void __RPC_STUB IMSVidWebDVD_get_PlayerParentalCountry_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_PlayerParentalLevel_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *plParentalLevel); - - -void __RPC_STUB IMSVidWebDVD_get_PlayerParentalLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_Eject_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_Eject_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_UOPValid_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lUOP, - /* [retval][out] */ VARIANT_BOOL *pfValid); - - -void __RPC_STUB IMSVidWebDVD_UOPValid_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_SPRM_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lIndex, - /* [retval][out] */ short *psSPRM); - - -void __RPC_STUB IMSVidWebDVD_get_SPRM_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_GPRM_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lIndex, - /* [retval][out] */ short *psSPRM); - - -void __RPC_STUB IMSVidWebDVD_get_GPRM_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_put_GPRM_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lIndex, - /* [in] */ short sValue); - - -void __RPC_STUB IMSVidWebDVD_put_GPRM_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DVDTextStringType_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lLangIndex, - /* [in] */ long lStringIndex, - /* [retval][out] */ DVDTextStringType *pType); - - -void __RPC_STUB IMSVidWebDVD_get_DVDTextStringType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DVDTextString_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lLangIndex, - /* [in] */ long lStringIndex, - /* [retval][out] */ BSTR *pstrText); - - -void __RPC_STUB IMSVidWebDVD_get_DVDTextString_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DVDTextNumberOfStrings_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lLangIndex, - /* [retval][out] */ long *plNumOfStrings); - - -void __RPC_STUB IMSVidWebDVD_get_DVDTextNumberOfStrings_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DVDTextNumberOfLanguages_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *plNumOfLangs); - - -void __RPC_STUB IMSVidWebDVD_get_DVDTextNumberOfLanguages_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DVDTextLanguageLCID_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lLangIndex, - /* [retval][out] */ long *lcid); - - -void __RPC_STUB IMSVidWebDVD_get_DVDTextLanguageLCID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_RegionChange_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_RegionChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DVDAdm_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ IDispatch **pVal); - - -void __RPC_STUB IMSVidWebDVD_get_DVDAdm_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_DeleteBookmark_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_DeleteBookmark_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_RestoreBookmark_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_RestoreBookmark_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_SaveBookmark_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_SaveBookmark_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_SelectDefaultAudioLanguage_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lang, - /* [in] */ long ext); - - -void __RPC_STUB IMSVidWebDVD_SelectDefaultAudioLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_SelectDefaultSubpictureLanguage_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lang, - /* [in] */ DVDSPExt ext); - - -void __RPC_STUB IMSVidWebDVD_SelectDefaultSubpictureLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_PreferredSubpictureStream_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_PreferredSubpictureStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DefaultMenuLanguage_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *lang); - - -void __RPC_STUB IMSVidWebDVD_get_DefaultMenuLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_put_DefaultMenuLanguage_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lang); - - -void __RPC_STUB IMSVidWebDVD_put_DefaultMenuLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DefaultSubpictureLanguage_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *lang); - - -void __RPC_STUB IMSVidWebDVD_get_DefaultSubpictureLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DefaultAudioLanguage_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *lang); - - -void __RPC_STUB IMSVidWebDVD_get_DefaultAudioLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DefaultSubpictureLanguageExt_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ DVDSPExt *ext); - - -void __RPC_STUB IMSVidWebDVD_get_DefaultSubpictureLanguageExt_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DefaultAudioLanguageExt_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *ext); - - -void __RPC_STUB IMSVidWebDVD_get_DefaultAudioLanguageExt_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_LanguageFromLCID_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lcid, - /* [retval][out] */ BSTR *lang); - - -void __RPC_STUB IMSVidWebDVD_get_LanguageFromLCID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_KaraokeAudioPresentationMode_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVD_get_KaraokeAudioPresentationMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_put_KaraokeAudioPresentationMode_Proxy( - IMSVidWebDVD * This, - /* [in] */ long newVal); - - -void __RPC_STUB IMSVidWebDVD_put_KaraokeAudioPresentationMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_KaraokeChannelContent_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lStream, - /* [in] */ long lChan, - /* [retval][out] */ long *lContent); - - -void __RPC_STUB IMSVidWebDVD_get_KaraokeChannelContent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_KaraokeChannelAssignment_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lStream, - /* [retval][out] */ long *lChannelAssignment); - - -void __RPC_STUB IMSVidWebDVD_get_KaraokeChannelAssignment_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_RestorePreferredSettings_Proxy( - IMSVidWebDVD * This); - - -void __RPC_STUB IMSVidWebDVD_RestorePreferredSettings_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_ButtonRect_Proxy( - IMSVidWebDVD * This, - /* [in] */ long lButton, - /* [retval][out] */ IMSVidRect **pRect); - - -void __RPC_STUB IMSVidWebDVD_get_ButtonRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_get_DVDScreenInMouseCoordinates_Proxy( - IMSVidWebDVD * This, - /* [retval][out] */ IMSVidRect **ppRect); - - -void __RPC_STUB IMSVidWebDVD_get_DVDScreenInMouseCoordinates_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVD_put_DVDScreenInMouseCoordinates_Proxy( - IMSVidWebDVD * This, - /* [in] */ IMSVidRect *pRect); - - -void __RPC_STUB IMSVidWebDVD_put_DVDScreenInMouseCoordinates_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidWebDVD_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidWebDVDEvent_INTERFACE_DEFINED__ -#define __IMSVidWebDVDEvent_INTERFACE_DEFINED__ - -/* interface IMSVidWebDVDEvent */ -/* [unique][helpstring][uuid][hidden][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidWebDVDEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B4F7A674-9B83-49cb-A357-C63B871BE958") - IMSVidWebDVDEvent : public IMSVidPlaybackEvent - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DVDNotify( - /* [in] */ long lEventCode, - /* [in] */ VARIANT lParam1, - /* [in] */ VARIANT lParam2) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayForwards( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayBackwards( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ShowMenu( - /* [in] */ DVDMenuIDConstants __MIDL_0019, - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Resume( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectOrActivateButton( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE StillOff( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PauseOn( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ChangeCurrentAudioStream( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ChangeCurrentSubpictureStream( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ChangeCurrentAngle( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayAtTimeInTitle( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayAtTime( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayChapterInTitle( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayChapter( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReplayChapter( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayNextChapter( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Stop( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReturnFromSubmenu( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayTitle( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PlayPrevChapter( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ChangeKaraokePresMode( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ChangeVideoPresMode( - /* [in] */ VARIANT_BOOL bEnabled) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidWebDVDEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidWebDVDEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidWebDVDEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidWebDVDEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidWebDVDEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidWebDVDEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidWebDVDEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidWebDVDEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *EndOfMedia )( - IMSVidWebDVDEvent * This, - /* [in] */ IMSVidPlayback *lpd); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DVDNotify )( - IMSVidWebDVDEvent * This, - /* [in] */ long lEventCode, - /* [in] */ VARIANT lParam1, - /* [in] */ VARIANT lParam2); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayForwards )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayBackwards )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ShowMenu )( - IMSVidWebDVDEvent * This, - /* [in] */ DVDMenuIDConstants __MIDL_0019, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Resume )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectOrActivateButton )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StillOff )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PauseOn )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChangeCurrentAudioStream )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChangeCurrentSubpictureStream )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChangeCurrentAngle )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayAtTimeInTitle )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayAtTime )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayChapterInTitle )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayChapter )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReplayChapter )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayNextChapter )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReturnFromSubmenu )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayTitle )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PlayPrevChapter )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChangeKaraokePresMode )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChangeVideoPresMode )( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - END_INTERFACE - } IMSVidWebDVDEventVtbl; - - interface IMSVidWebDVDEvent - { - CONST_VTBL struct IMSVidWebDVDEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidWebDVDEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidWebDVDEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidWebDVDEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidWebDVDEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidWebDVDEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidWebDVDEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidWebDVDEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - - -#define IMSVidWebDVDEvent_EndOfMedia(This,lpd) \ - (This)->lpVtbl -> EndOfMedia(This,lpd) - - -#define IMSVidWebDVDEvent_DVDNotify(This,lEventCode,lParam1,lParam2) \ - (This)->lpVtbl -> DVDNotify(This,lEventCode,lParam1,lParam2) - -#define IMSVidWebDVDEvent_PlayForwards(This,bEnabled) \ - (This)->lpVtbl -> PlayForwards(This,bEnabled) - -#define IMSVidWebDVDEvent_PlayBackwards(This,bEnabled) \ - (This)->lpVtbl -> PlayBackwards(This,bEnabled) - -#define IMSVidWebDVDEvent_ShowMenu(This,__MIDL_0019,bEnabled) \ - (This)->lpVtbl -> ShowMenu(This,__MIDL_0019,bEnabled) - -#define IMSVidWebDVDEvent_Resume(This,bEnabled) \ - (This)->lpVtbl -> Resume(This,bEnabled) - -#define IMSVidWebDVDEvent_SelectOrActivateButton(This,bEnabled) \ - (This)->lpVtbl -> SelectOrActivateButton(This,bEnabled) - -#define IMSVidWebDVDEvent_StillOff(This,bEnabled) \ - (This)->lpVtbl -> StillOff(This,bEnabled) - -#define IMSVidWebDVDEvent_PauseOn(This,bEnabled) \ - (This)->lpVtbl -> PauseOn(This,bEnabled) - -#define IMSVidWebDVDEvent_ChangeCurrentAudioStream(This,bEnabled) \ - (This)->lpVtbl -> ChangeCurrentAudioStream(This,bEnabled) - -#define IMSVidWebDVDEvent_ChangeCurrentSubpictureStream(This,bEnabled) \ - (This)->lpVtbl -> ChangeCurrentSubpictureStream(This,bEnabled) - -#define IMSVidWebDVDEvent_ChangeCurrentAngle(This,bEnabled) \ - (This)->lpVtbl -> ChangeCurrentAngle(This,bEnabled) - -#define IMSVidWebDVDEvent_PlayAtTimeInTitle(This,bEnabled) \ - (This)->lpVtbl -> PlayAtTimeInTitle(This,bEnabled) - -#define IMSVidWebDVDEvent_PlayAtTime(This,bEnabled) \ - (This)->lpVtbl -> PlayAtTime(This,bEnabled) - -#define IMSVidWebDVDEvent_PlayChapterInTitle(This,bEnabled) \ - (This)->lpVtbl -> PlayChapterInTitle(This,bEnabled) - -#define IMSVidWebDVDEvent_PlayChapter(This,bEnabled) \ - (This)->lpVtbl -> PlayChapter(This,bEnabled) - -#define IMSVidWebDVDEvent_ReplayChapter(This,bEnabled) \ - (This)->lpVtbl -> ReplayChapter(This,bEnabled) - -#define IMSVidWebDVDEvent_PlayNextChapter(This,bEnabled) \ - (This)->lpVtbl -> PlayNextChapter(This,bEnabled) - -#define IMSVidWebDVDEvent_Stop(This,bEnabled) \ - (This)->lpVtbl -> Stop(This,bEnabled) - -#define IMSVidWebDVDEvent_ReturnFromSubmenu(This,bEnabled) \ - (This)->lpVtbl -> ReturnFromSubmenu(This,bEnabled) - -#define IMSVidWebDVDEvent_PlayTitle(This,bEnabled) \ - (This)->lpVtbl -> PlayTitle(This,bEnabled) - -#define IMSVidWebDVDEvent_PlayPrevChapter(This,bEnabled) \ - (This)->lpVtbl -> PlayPrevChapter(This,bEnabled) - -#define IMSVidWebDVDEvent_ChangeKaraokePresMode(This,bEnabled) \ - (This)->lpVtbl -> ChangeKaraokePresMode(This,bEnabled) - -#define IMSVidWebDVDEvent_ChangeVideoPresMode(This,bEnabled) \ - (This)->lpVtbl -> ChangeVideoPresMode(This,bEnabled) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_DVDNotify_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ long lEventCode, - /* [in] */ VARIANT lParam1, - /* [in] */ VARIANT lParam2); - - -void __RPC_STUB IMSVidWebDVDEvent_DVDNotify_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_PlayForwards_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_PlayForwards_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_PlayBackwards_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_PlayBackwards_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_ShowMenu_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ DVDMenuIDConstants __MIDL_0019, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_ShowMenu_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_Resume_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_Resume_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_SelectOrActivateButton_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_SelectOrActivateButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_StillOff_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_StillOff_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_PauseOn_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_PauseOn_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_ChangeCurrentAudioStream_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_ChangeCurrentAudioStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_ChangeCurrentSubpictureStream_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_ChangeCurrentSubpictureStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_ChangeCurrentAngle_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_ChangeCurrentAngle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_PlayAtTimeInTitle_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_PlayAtTimeInTitle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_PlayAtTime_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_PlayAtTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_PlayChapterInTitle_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_PlayChapterInTitle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_PlayChapter_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_PlayChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_ReplayChapter_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_ReplayChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_PlayNextChapter_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_PlayNextChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_Stop_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_Stop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_ReturnFromSubmenu_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_ReturnFromSubmenu_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_PlayTitle_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_PlayTitle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_PlayPrevChapter_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_PlayPrevChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_ChangeKaraokePresMode_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_ChangeKaraokePresMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDEvent_ChangeVideoPresMode_Proxy( - IMSVidWebDVDEvent * This, - /* [in] */ VARIANT_BOOL bEnabled); - - -void __RPC_STUB IMSVidWebDVDEvent_ChangeVideoPresMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidWebDVDEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidWebDVDAdm_INTERFACE_DEFINED__ -#define __IMSVidWebDVDAdm_INTERFACE_DEFINED__ - -/* interface IMSVidWebDVDAdm */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidWebDVDAdm; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B8BE681A-EB2C-47f0-B415-94D5452F0E05") - IMSVidWebDVDAdm : public IDispatch - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ChangePassword( - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strOld, - /* [in] */ BSTR strNew) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveParentalLevel( - /* [in] */ long level, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveParentalCountry( - /* [in] */ long country, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword) = 0; - - virtual /* [helpstring][restricted][hidden][id] */ HRESULT STDMETHODCALLTYPE ConfirmPassword( - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword, - /* [retval][out] */ VARIANT_BOOL *pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetParentalLevel( - /* [retval][out] */ long *lLevel) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetParentalCountry( - /* [retval][out] */ long *lCountry) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultAudioLCID( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DefaultAudioLCID( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultSubpictureLCID( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DefaultSubpictureLCID( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultMenuLCID( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DefaultMenuLCID( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BookmarkOnStop( - /* [retval][out] */ VARIANT_BOOL *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BookmarkOnStop( - /* [in] */ VARIANT_BOOL newVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidWebDVDAdmVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidWebDVDAdm * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidWebDVDAdm * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidWebDVDAdm * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidWebDVDAdm * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidWebDVDAdm * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidWebDVDAdm * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidWebDVDAdm * 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); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChangePassword )( - IMSVidWebDVDAdm * This, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strOld, - /* [in] */ BSTR strNew); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveParentalLevel )( - IMSVidWebDVDAdm * This, - /* [in] */ long level, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveParentalCountry )( - IMSVidWebDVDAdm * This, - /* [in] */ long country, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword); - - /* [helpstring][restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *ConfirmPassword )( - IMSVidWebDVDAdm * This, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetParentalLevel )( - IMSVidWebDVDAdm * This, - /* [retval][out] */ long *lLevel); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetParentalCountry )( - IMSVidWebDVDAdm * This, - /* [retval][out] */ long *lCountry); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultAudioLCID )( - IMSVidWebDVDAdm * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultAudioLCID )( - IMSVidWebDVDAdm * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultSubpictureLCID )( - IMSVidWebDVDAdm * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultSubpictureLCID )( - IMSVidWebDVDAdm * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultMenuLCID )( - IMSVidWebDVDAdm * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultMenuLCID )( - IMSVidWebDVDAdm * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BookmarkOnStop )( - IMSVidWebDVDAdm * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BookmarkOnStop )( - IMSVidWebDVDAdm * This, - /* [in] */ VARIANT_BOOL newVal); - - END_INTERFACE - } IMSVidWebDVDAdmVtbl; - - interface IMSVidWebDVDAdm - { - CONST_VTBL struct IMSVidWebDVDAdmVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidWebDVDAdm_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidWebDVDAdm_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidWebDVDAdm_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidWebDVDAdm_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidWebDVDAdm_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidWebDVDAdm_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidWebDVDAdm_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidWebDVDAdm_ChangePassword(This,strUserName,strOld,strNew) \ - (This)->lpVtbl -> ChangePassword(This,strUserName,strOld,strNew) - -#define IMSVidWebDVDAdm_SaveParentalLevel(This,level,strUserName,strPassword) \ - (This)->lpVtbl -> SaveParentalLevel(This,level,strUserName,strPassword) - -#define IMSVidWebDVDAdm_SaveParentalCountry(This,country,strUserName,strPassword) \ - (This)->lpVtbl -> SaveParentalCountry(This,country,strUserName,strPassword) - -#define IMSVidWebDVDAdm_ConfirmPassword(This,strUserName,strPassword,pVal) \ - (This)->lpVtbl -> ConfirmPassword(This,strUserName,strPassword,pVal) - -#define IMSVidWebDVDAdm_GetParentalLevel(This,lLevel) \ - (This)->lpVtbl -> GetParentalLevel(This,lLevel) - -#define IMSVidWebDVDAdm_GetParentalCountry(This,lCountry) \ - (This)->lpVtbl -> GetParentalCountry(This,lCountry) - -#define IMSVidWebDVDAdm_get_DefaultAudioLCID(This,pVal) \ - (This)->lpVtbl -> get_DefaultAudioLCID(This,pVal) - -#define IMSVidWebDVDAdm_put_DefaultAudioLCID(This,newVal) \ - (This)->lpVtbl -> put_DefaultAudioLCID(This,newVal) - -#define IMSVidWebDVDAdm_get_DefaultSubpictureLCID(This,pVal) \ - (This)->lpVtbl -> get_DefaultSubpictureLCID(This,pVal) - -#define IMSVidWebDVDAdm_put_DefaultSubpictureLCID(This,newVal) \ - (This)->lpVtbl -> put_DefaultSubpictureLCID(This,newVal) - -#define IMSVidWebDVDAdm_get_DefaultMenuLCID(This,pVal) \ - (This)->lpVtbl -> get_DefaultMenuLCID(This,pVal) - -#define IMSVidWebDVDAdm_put_DefaultMenuLCID(This,newVal) \ - (This)->lpVtbl -> put_DefaultMenuLCID(This,newVal) - -#define IMSVidWebDVDAdm_get_BookmarkOnStop(This,pVal) \ - (This)->lpVtbl -> get_BookmarkOnStop(This,pVal) - -#define IMSVidWebDVDAdm_put_BookmarkOnStop(This,newVal) \ - (This)->lpVtbl -> put_BookmarkOnStop(This,newVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_ChangePassword_Proxy( - IMSVidWebDVDAdm * This, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strOld, - /* [in] */ BSTR strNew); - - -void __RPC_STUB IMSVidWebDVDAdm_ChangePassword_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_SaveParentalLevel_Proxy( - IMSVidWebDVDAdm * This, - /* [in] */ long level, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword); - - -void __RPC_STUB IMSVidWebDVDAdm_SaveParentalLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_SaveParentalCountry_Proxy( - IMSVidWebDVDAdm * This, - /* [in] */ long country, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword); - - -void __RPC_STUB IMSVidWebDVDAdm_SaveParentalCountry_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][hidden][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_ConfirmPassword_Proxy( - IMSVidWebDVDAdm * This, - /* [in] */ BSTR strUserName, - /* [in] */ BSTR strPassword, - /* [retval][out] */ VARIANT_BOOL *pVal); - - -void __RPC_STUB IMSVidWebDVDAdm_ConfirmPassword_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_GetParentalLevel_Proxy( - IMSVidWebDVDAdm * This, - /* [retval][out] */ long *lLevel); - - -void __RPC_STUB IMSVidWebDVDAdm_GetParentalLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_GetParentalCountry_Proxy( - IMSVidWebDVDAdm * This, - /* [retval][out] */ long *lCountry); - - -void __RPC_STUB IMSVidWebDVDAdm_GetParentalCountry_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_get_DefaultAudioLCID_Proxy( - IMSVidWebDVDAdm * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVDAdm_get_DefaultAudioLCID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_put_DefaultAudioLCID_Proxy( - IMSVidWebDVDAdm * This, - /* [in] */ long newVal); - - -void __RPC_STUB IMSVidWebDVDAdm_put_DefaultAudioLCID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_get_DefaultSubpictureLCID_Proxy( - IMSVidWebDVDAdm * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVDAdm_get_DefaultSubpictureLCID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_put_DefaultSubpictureLCID_Proxy( - IMSVidWebDVDAdm * This, - /* [in] */ long newVal); - - -void __RPC_STUB IMSVidWebDVDAdm_put_DefaultSubpictureLCID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_get_DefaultMenuLCID_Proxy( - IMSVidWebDVDAdm * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidWebDVDAdm_get_DefaultMenuLCID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_put_DefaultMenuLCID_Proxy( - IMSVidWebDVDAdm * This, - /* [in] */ long newVal); - - -void __RPC_STUB IMSVidWebDVDAdm_put_DefaultMenuLCID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_get_BookmarkOnStop_Proxy( - IMSVidWebDVDAdm * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - -void __RPC_STUB IMSVidWebDVDAdm_get_BookmarkOnStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidWebDVDAdm_put_BookmarkOnStop_Proxy( - IMSVidWebDVDAdm * This, - /* [in] */ VARIANT_BOOL newVal); - - -void __RPC_STUB IMSVidWebDVDAdm_put_BookmarkOnStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidWebDVDAdm_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidOutputDevice_INTERFACE_DEFINED__ -#define __IMSVidOutputDevice_INTERFACE_DEFINED__ - -/* interface IMSVidOutputDevice */ -/* [unique][helpstring][uuid][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidOutputDevice; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("37B03546-A4C8-11d2-B634-00C04F79498E") - IMSVidOutputDevice : public IMSVidDevice - { - public: - }; - -#else /* C style interface */ - - typedef struct IMSVidOutputDeviceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidOutputDevice * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidOutputDevice * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidOutputDevice * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidOutputDevice * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidOutputDevice * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidOutputDevice * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidOutputDevice * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidOutputDevice * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidOutputDevice * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidOutputDevice * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidOutputDevice * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidOutputDevice * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidOutputDevice * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidOutputDevice * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidOutputDevice * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidOutputDevice * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - END_INTERFACE - } IMSVidOutputDeviceVtbl; - - interface IMSVidOutputDevice - { - CONST_VTBL struct IMSVidOutputDeviceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidOutputDevice_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidOutputDevice_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidOutputDevice_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidOutputDevice_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidOutputDevice_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidOutputDevice_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidOutputDevice_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidOutputDevice_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidOutputDevice_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidOutputDevice_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidOutputDevice_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidOutputDevice_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidOutputDevice_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidOutputDevice_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidOutputDevice_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidOutputDevice_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IMSVidOutputDevice_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidOutputDeviceEvent_INTERFACE_DEFINED__ -#define __IMSVidOutputDeviceEvent_INTERFACE_DEFINED__ - -/* interface IMSVidOutputDeviceEvent */ -/* [unique][helpstring][uuid][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidOutputDeviceEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("2E6A14E2-571C-11d3-B652-00C04F79498E") - IMSVidOutputDeviceEvent : public IMSVidDeviceEvent - { - public: - }; - -#else /* C style interface */ - - typedef struct IMSVidOutputDeviceEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidOutputDeviceEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidOutputDeviceEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidOutputDeviceEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidOutputDeviceEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidOutputDeviceEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidOutputDeviceEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidOutputDeviceEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *StateChange )( - IMSVidOutputDeviceEvent * This, - /* [in] */ IMSVidDevice *lpd, - /* [in] */ long oldState, - /* [in] */ long newState); - - END_INTERFACE - } IMSVidOutputDeviceEventVtbl; - - interface IMSVidOutputDeviceEvent - { - CONST_VTBL struct IMSVidOutputDeviceEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidOutputDeviceEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidOutputDeviceEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidOutputDeviceEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidOutputDeviceEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidOutputDeviceEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidOutputDeviceEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidOutputDeviceEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidOutputDeviceEvent_StateChange(This,lpd,oldState,newState) \ - (This)->lpVtbl -> StateChange(This,lpd,oldState,newState) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IMSVidOutputDeviceEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidFeature_INTERFACE_DEFINED__ -#define __IMSVidFeature_INTERFACE_DEFINED__ - -/* interface IMSVidFeature */ -/* [unique][helpstring][uuid][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidFeature; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("37B03547-A4C8-11d2-B634-00C04F79498E") - IMSVidFeature : public IMSVidDevice - { - public: - }; - -#else /* C style interface */ - - typedef struct IMSVidFeatureVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidFeature * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidFeature * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidFeature * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidFeature * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidFeature * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidFeature * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidFeature * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidFeature * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidFeature * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidFeature * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidFeature * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidFeature * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidFeature * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidFeature * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidFeature * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidFeature * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - END_INTERFACE - } IMSVidFeatureVtbl; - - interface IMSVidFeature - { - CONST_VTBL struct IMSVidFeatureVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidFeature_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidFeature_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidFeature_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidFeature_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidFeature_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidFeature_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidFeature_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidFeature_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidFeature_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidFeature_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidFeature_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidFeature_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidFeature_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidFeature_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidFeature_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidFeature_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IMSVidFeature_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidFeatureEvent_INTERFACE_DEFINED__ -#define __IMSVidFeatureEvent_INTERFACE_DEFINED__ - -/* interface IMSVidFeatureEvent */ -/* [unique][helpstring][uuid][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidFeatureEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("3DD2903C-E0AA-11d2-B63A-00C04F79498E") - IMSVidFeatureEvent : public IMSVidDeviceEvent - { - public: - }; - -#else /* C style interface */ - - typedef struct IMSVidFeatureEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidFeatureEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidFeatureEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidFeatureEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidFeatureEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidFeatureEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidFeatureEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidFeatureEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *StateChange )( - IMSVidFeatureEvent * This, - /* [in] */ IMSVidDevice *lpd, - /* [in] */ long oldState, - /* [in] */ long newState); - - END_INTERFACE - } IMSVidFeatureEventVtbl; - - interface IMSVidFeatureEvent - { - CONST_VTBL struct IMSVidFeatureEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidFeatureEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidFeatureEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidFeatureEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidFeatureEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidFeatureEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidFeatureEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidFeatureEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidFeatureEvent_StateChange(This,lpd,oldState,newState) \ - (This)->lpVtbl -> StateChange(This,lpd,oldState,newState) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IMSVidFeatureEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidEncoder_INTERFACE_DEFINED__ -#define __IMSVidEncoder_INTERFACE_DEFINED__ - -/* interface IMSVidEncoder */ -/* [unique][helpstring][uuid][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidEncoder; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C0020FD4-BEE7-43d9-A495-9F213117103D") - IMSVidEncoder : public IMSVidFeature - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_VideoEncoderInterface( - /* [retval][out] */ IUnknown **ppEncInt) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AudioEncoderInterface( - /* [retval][out] */ IUnknown **ppEncInt) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidEncoderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidEncoder * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidEncoder * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidEncoder * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidEncoder * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidEncoder * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidEncoder * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidEncoder * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidEncoder * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidEncoder * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidEncoder * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidEncoder * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidEncoder * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidEncoder * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidEncoder * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidEncoder * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidEncoder * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoEncoderInterface )( - IMSVidEncoder * This, - /* [retval][out] */ IUnknown **ppEncInt); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioEncoderInterface )( - IMSVidEncoder * This, - /* [retval][out] */ IUnknown **ppEncInt); - - END_INTERFACE - } IMSVidEncoderVtbl; - - interface IMSVidEncoder - { - CONST_VTBL struct IMSVidEncoderVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidEncoder_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidEncoder_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidEncoder_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidEncoder_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidEncoder_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidEncoder_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidEncoder_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidEncoder_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidEncoder_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidEncoder_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidEncoder_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidEncoder_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidEncoder_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidEncoder_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidEncoder_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidEncoder_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - - -#define IMSVidEncoder_get_VideoEncoderInterface(This,ppEncInt) \ - (This)->lpVtbl -> get_VideoEncoderInterface(This,ppEncInt) - -#define IMSVidEncoder_get_AudioEncoderInterface(This,ppEncInt) \ - (This)->lpVtbl -> get_AudioEncoderInterface(This,ppEncInt) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidEncoder_get_VideoEncoderInterface_Proxy( - IMSVidEncoder * This, - /* [retval][out] */ IUnknown **ppEncInt); - - -void __RPC_STUB IMSVidEncoder_get_VideoEncoderInterface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidEncoder_get_AudioEncoderInterface_Proxy( - IMSVidEncoder * This, - /* [retval][out] */ IUnknown **ppEncInt); - - -void __RPC_STUB IMSVidEncoder_get_AudioEncoderInterface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidEncoder_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidXDS_INTERFACE_DEFINED__ -#define __IMSVidXDS_INTERFACE_DEFINED__ - -/* interface IMSVidXDS */ -/* [unique][helpstring][uuid][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidXDS; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11EBC158-E712-4d1f-8BB3-01ED5274C4CE") - IMSVidXDS : public IMSVidFeature - { - public: - }; - -#else /* C style interface */ - - typedef struct IMSVidXDSVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidXDS * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidXDS * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidXDS * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidXDS * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidXDS * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidXDS * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidXDS * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidXDS * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidXDS * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidXDS * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidXDS * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidXDS * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidXDS * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidXDS * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidXDS * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidXDS * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - END_INTERFACE - } IMSVidXDSVtbl; - - interface IMSVidXDS - { - CONST_VTBL struct IMSVidXDSVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidXDS_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidXDS_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidXDS_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidXDS_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidXDS_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidXDS_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidXDS_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidXDS_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidXDS_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidXDS_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidXDS_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidXDS_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidXDS_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidXDS_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidXDS_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidXDS_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IMSVidXDS_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidDataServices_INTERFACE_DEFINED__ -#define __IMSVidDataServices_INTERFACE_DEFINED__ - -/* interface IMSVidDataServices */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidDataServices; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("334125C1-77E5-11d3-B653-00C04F79498E") - IMSVidDataServices : public IMSVidFeature - { - public: - }; - -#else /* C style interface */ - - typedef struct IMSVidDataServicesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidDataServices * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidDataServices * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidDataServices * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidDataServices * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidDataServices * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidDataServices * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidDataServices * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidDataServices * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidDataServices * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidDataServices * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidDataServices * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidDataServices * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidDataServices * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidDataServices * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidDataServices * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidDataServices * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - END_INTERFACE - } IMSVidDataServicesVtbl; - - interface IMSVidDataServices - { - CONST_VTBL struct IMSVidDataServicesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidDataServices_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidDataServices_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidDataServices_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidDataServices_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidDataServices_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidDataServices_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidDataServices_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidDataServices_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidDataServices_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidDataServices_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidDataServices_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidDataServices_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidDataServices_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidDataServices_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidDataServices_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidDataServices_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IMSVidDataServices_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidDataServicesEvent_INTERFACE_DEFINED__ -#define __IMSVidDataServicesEvent_INTERFACE_DEFINED__ - -/* interface IMSVidDataServicesEvent */ -/* [unique][helpstring][uuid][hidden][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidDataServicesEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("334125C2-77E5-11d3-B653-00C04F79498E") - IMSVidDataServicesEvent : public IMSVidDeviceEvent - { - public: - }; - -#else /* C style interface */ - - typedef struct IMSVidDataServicesEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidDataServicesEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidDataServicesEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidDataServicesEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidDataServicesEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidDataServicesEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidDataServicesEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidDataServicesEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *StateChange )( - IMSVidDataServicesEvent * This, - /* [in] */ IMSVidDevice *lpd, - /* [in] */ long oldState, - /* [in] */ long newState); - - END_INTERFACE - } IMSVidDataServicesEventVtbl; - - interface IMSVidDataServicesEvent - { - CONST_VTBL struct IMSVidDataServicesEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidDataServicesEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidDataServicesEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidDataServicesEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidDataServicesEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidDataServicesEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidDataServicesEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidDataServicesEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidDataServicesEvent_StateChange(This,lpd,oldState,newState) \ - (This)->lpVtbl -> StateChange(This,lpd,oldState,newState) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IMSVidDataServicesEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidClosedCaptioning_INTERFACE_DEFINED__ -#define __IMSVidClosedCaptioning_INTERFACE_DEFINED__ - -/* interface IMSVidClosedCaptioning */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidClosedCaptioning; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("99652EA1-C1F7-414f-BB7B-1C967DE75983") - IMSVidClosedCaptioning : public IMSVidFeature - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Enable( - /* [retval][out] */ VARIANT_BOOL *On) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Enable( - /* [in] */ VARIANT_BOOL On) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidClosedCaptioningVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidClosedCaptioning * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidClosedCaptioning * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidClosedCaptioning * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidClosedCaptioning * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidClosedCaptioning * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidClosedCaptioning * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidClosedCaptioning * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidClosedCaptioning * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidClosedCaptioning * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidClosedCaptioning * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidClosedCaptioning * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidClosedCaptioning * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidClosedCaptioning * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidClosedCaptioning * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidClosedCaptioning * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidClosedCaptioning * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enable )( - IMSVidClosedCaptioning * This, - /* [retval][out] */ VARIANT_BOOL *On); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enable )( - IMSVidClosedCaptioning * This, - /* [in] */ VARIANT_BOOL On); - - END_INTERFACE - } IMSVidClosedCaptioningVtbl; - - interface IMSVidClosedCaptioning - { - CONST_VTBL struct IMSVidClosedCaptioningVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidClosedCaptioning_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidClosedCaptioning_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidClosedCaptioning_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidClosedCaptioning_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidClosedCaptioning_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidClosedCaptioning_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidClosedCaptioning_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidClosedCaptioning_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidClosedCaptioning_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidClosedCaptioning_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidClosedCaptioning_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidClosedCaptioning_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidClosedCaptioning_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidClosedCaptioning_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidClosedCaptioning_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidClosedCaptioning_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - - -#define IMSVidClosedCaptioning_get_Enable(This,On) \ - (This)->lpVtbl -> get_Enable(This,On) - -#define IMSVidClosedCaptioning_put_Enable(This,On) \ - (This)->lpVtbl -> put_Enable(This,On) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidClosedCaptioning_get_Enable_Proxy( - IMSVidClosedCaptioning * This, - /* [retval][out] */ VARIANT_BOOL *On); - - -void __RPC_STUB IMSVidClosedCaptioning_get_Enable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidClosedCaptioning_put_Enable_Proxy( - IMSVidClosedCaptioning * This, - /* [in] */ VARIANT_BOOL On); - - -void __RPC_STUB IMSVidClosedCaptioning_put_Enable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidClosedCaptioning_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidClosedCaptioning2_INTERFACE_DEFINED__ -#define __IMSVidClosedCaptioning2_INTERFACE_DEFINED__ - -/* interface IMSVidClosedCaptioning2 */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidClosedCaptioning2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("E00CB864-A029-4310-9987-A873F5887D97") - IMSVidClosedCaptioning2 : public IMSVidClosedCaptioning - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Service( - /* [retval][out] */ MSVidCCService *On) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Service( - /* [in] */ MSVidCCService On) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidClosedCaptioning2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidClosedCaptioning2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidClosedCaptioning2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidClosedCaptioning2 * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidClosedCaptioning2 * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidClosedCaptioning2 * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidClosedCaptioning2 * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidClosedCaptioning2 * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidClosedCaptioning2 * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidClosedCaptioning2 * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidClosedCaptioning2 * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidClosedCaptioning2 * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidClosedCaptioning2 * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidClosedCaptioning2 * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidClosedCaptioning2 * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidClosedCaptioning2 * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidClosedCaptioning2 * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enable )( - IMSVidClosedCaptioning2 * This, - /* [retval][out] */ VARIANT_BOOL *On); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enable )( - IMSVidClosedCaptioning2 * This, - /* [in] */ VARIANT_BOOL On); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Service )( - IMSVidClosedCaptioning2 * This, - /* [retval][out] */ MSVidCCService *On); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Service )( - IMSVidClosedCaptioning2 * This, - /* [in] */ MSVidCCService On); - - END_INTERFACE - } IMSVidClosedCaptioning2Vtbl; - - interface IMSVidClosedCaptioning2 - { - CONST_VTBL struct IMSVidClosedCaptioning2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidClosedCaptioning2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidClosedCaptioning2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidClosedCaptioning2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidClosedCaptioning2_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidClosedCaptioning2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidClosedCaptioning2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidClosedCaptioning2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidClosedCaptioning2_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidClosedCaptioning2_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidClosedCaptioning2_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidClosedCaptioning2_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidClosedCaptioning2_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidClosedCaptioning2_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidClosedCaptioning2_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidClosedCaptioning2_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidClosedCaptioning2_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - - -#define IMSVidClosedCaptioning2_get_Enable(This,On) \ - (This)->lpVtbl -> get_Enable(This,On) - -#define IMSVidClosedCaptioning2_put_Enable(This,On) \ - (This)->lpVtbl -> put_Enable(This,On) - - -#define IMSVidClosedCaptioning2_get_Service(This,On) \ - (This)->lpVtbl -> get_Service(This,On) - -#define IMSVidClosedCaptioning2_put_Service(This,On) \ - (This)->lpVtbl -> put_Service(This,On) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidClosedCaptioning2_get_Service_Proxy( - IMSVidClosedCaptioning2 * This, - /* [retval][out] */ MSVidCCService *On); - - -void __RPC_STUB IMSVidClosedCaptioning2_get_Service_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidClosedCaptioning2_put_Service_Proxy( - IMSVidClosedCaptioning2 * This, - /* [in] */ MSVidCCService On); - - -void __RPC_STUB IMSVidClosedCaptioning2_put_Service_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidClosedCaptioning2_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_segment_0495 */ -/* [local] */ - -typedef /* [public][public][public] */ -enum __MIDL___MIDL_itf_segment_0495_0001 - { sslFullSize = 0, - sslClipByOverScan = sslFullSize + 1, - sslClipByClipRect = sslClipByOverScan + 1 - } SourceSizeList; - - - -extern RPC_IF_HANDLE __MIDL_itf_segment_0495_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_segment_0495_v0_0_s_ifspec; - -#ifndef __IMSVidVideoRenderer_INTERFACE_DEFINED__ -#define __IMSVidVideoRenderer_INTERFACE_DEFINED__ - -/* interface IMSVidVideoRenderer */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidVideoRenderer; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("37B03540-A4C8-11d2-B634-00C04F79498E") - IMSVidVideoRenderer : public IMSVidOutputDevice - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CustomCompositorClass( - /* [retval][out] */ BSTR *CompositorCLSID) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_CustomCompositorClass( - /* [in] */ BSTR CompositorCLSID) = 0; - - virtual /* [id][restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE get__CustomCompositorClass( - /* [retval][out] */ GUID *CompositorCLSID) = 0; - - virtual /* [id][restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE put__CustomCompositorClass( - /* [in] */ REFCLSID CompositorCLSID) = 0; - - virtual /* [id][restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE get__CustomCompositor( - /* [retval][out] */ IVMRImageCompositor **Compositor) = 0; - - virtual /* [id][restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE put__CustomCompositor( - /* [in] */ IVMRImageCompositor *Compositor) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MixerBitmap( - /* [retval][out] */ IPictureDisp **MixerPictureDisp) = 0; - - virtual /* [id][restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE get__MixerBitmap( - /* [retval][out] */ IVMRMixerBitmap **MixerPicture) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MixerBitmap( - /* [in] */ IPictureDisp *MixerPictureDisp) = 0; - - virtual /* [id][restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE put__MixerBitmap( - /* [in] */ VMRALPHABITMAP *MixerPicture) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MixerBitmapPositionRect( - /* [retval][out] */ IMSVidRect **rDest) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MixerBitmapPositionRect( - /* [in] */ IMSVidRect *rDest) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MixerBitmapOpacity( - /* [retval][out] */ int *opacity) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MixerBitmapOpacity( - /* [in] */ int opacity) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetupMixerBitmap( - /* [in] */ IPictureDisp *MixerPictureDisp, - /* [in] */ long Opacity, - /* [in] */ IMSVidRect *rDest) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SourceSize( - /* [out][retval] */ SourceSizeList *CurrentSize) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SourceSize( - /* [in] */ SourceSizeList NewSize) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OverScan( - /* [out][retval] */ long *plPercent) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OverScan( - /* [in] */ long lPercent) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AvailableSourceRect( - /* [retval][out] */ IMSVidRect **pRect) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MaxVidRect( - /* [retval][out] */ IMSVidRect **ppVidRect) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MinVidRect( - /* [retval][out] */ IMSVidRect **ppVidRect) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ClippedSourceRect( - /* [retval][out] */ IMSVidRect **pRect) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ClippedSourceRect( - /* [in] */ IMSVidRect *pRect) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_UsingOverlay( - /* [retval][out] */ VARIANT_BOOL *UseOverlayVal) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_UsingOverlay( - /* [in] */ VARIANT_BOOL UseOverlayVal) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Capture( - /* [retval][out] */ IPictureDisp **currentImage) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FramesPerSecond( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DecimateInput( - /* [retval][out] */ VARIANT_BOOL *pDeci) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DecimateInput( - /* [in] */ VARIANT_BOOL pDeci) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidVideoRendererVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidVideoRenderer * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidVideoRenderer * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidVideoRenderer * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidVideoRenderer * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidVideoRenderer * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidVideoRenderer * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidVideoRenderer * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidVideoRenderer * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidVideoRenderer * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidVideoRenderer * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidVideoRenderer * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidVideoRenderer * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidVideoRenderer * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidVideoRenderer * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidVideoRenderer * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidVideoRenderer * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CustomCompositorClass )( - IMSVidVideoRenderer * This, - /* [retval][out] */ BSTR *CompositorCLSID); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CustomCompositorClass )( - IMSVidVideoRenderer * This, - /* [in] */ BSTR CompositorCLSID); - - /* [id][restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get__CustomCompositorClass )( - IMSVidVideoRenderer * This, - /* [retval][out] */ GUID *CompositorCLSID); - - /* [id][restricted][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put__CustomCompositorClass )( - IMSVidVideoRenderer * This, - /* [in] */ REFCLSID CompositorCLSID); - - /* [id][restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get__CustomCompositor )( - IMSVidVideoRenderer * This, - /* [retval][out] */ IVMRImageCompositor **Compositor); - - /* [id][restricted][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put__CustomCompositor )( - IMSVidVideoRenderer * This, - /* [in] */ IVMRImageCompositor *Compositor); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MixerBitmap )( - IMSVidVideoRenderer * This, - /* [retval][out] */ IPictureDisp **MixerPictureDisp); - - /* [id][restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MixerBitmap )( - IMSVidVideoRenderer * This, - /* [retval][out] */ IVMRMixerBitmap **MixerPicture); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MixerBitmap )( - IMSVidVideoRenderer * This, - /* [in] */ IPictureDisp *MixerPictureDisp); - - /* [id][restricted][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MixerBitmap )( - IMSVidVideoRenderer * This, - /* [in] */ VMRALPHABITMAP *MixerPicture); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MixerBitmapPositionRect )( - IMSVidVideoRenderer * This, - /* [retval][out] */ IMSVidRect **rDest); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MixerBitmapPositionRect )( - IMSVidVideoRenderer * This, - /* [in] */ IMSVidRect *rDest); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MixerBitmapOpacity )( - IMSVidVideoRenderer * This, - /* [retval][out] */ int *opacity); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MixerBitmapOpacity )( - IMSVidVideoRenderer * This, - /* [in] */ int opacity); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetupMixerBitmap )( - IMSVidVideoRenderer * This, - /* [in] */ IPictureDisp *MixerPictureDisp, - /* [in] */ long Opacity, - /* [in] */ IMSVidRect *rDest); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceSize )( - IMSVidVideoRenderer * This, - /* [out][retval] */ SourceSizeList *CurrentSize); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceSize )( - IMSVidVideoRenderer * This, - /* [in] */ SourceSizeList NewSize); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OverScan )( - IMSVidVideoRenderer * This, - /* [out][retval] */ long *plPercent); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OverScan )( - IMSVidVideoRenderer * This, - /* [in] */ long lPercent); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AvailableSourceRect )( - IMSVidVideoRenderer * This, - /* [retval][out] */ IMSVidRect **pRect); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxVidRect )( - IMSVidVideoRenderer * This, - /* [retval][out] */ IMSVidRect **ppVidRect); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinVidRect )( - IMSVidVideoRenderer * This, - /* [retval][out] */ IMSVidRect **ppVidRect); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClippedSourceRect )( - IMSVidVideoRenderer * This, - /* [retval][out] */ IMSVidRect **pRect); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClippedSourceRect )( - IMSVidVideoRenderer * This, - /* [in] */ IMSVidRect *pRect); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsingOverlay )( - IMSVidVideoRenderer * This, - /* [retval][out] */ VARIANT_BOOL *UseOverlayVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UsingOverlay )( - IMSVidVideoRenderer * This, - /* [in] */ VARIANT_BOOL UseOverlayVal); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Capture )( - IMSVidVideoRenderer * This, - /* [retval][out] */ IPictureDisp **currentImage); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FramesPerSecond )( - IMSVidVideoRenderer * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DecimateInput )( - IMSVidVideoRenderer * This, - /* [retval][out] */ VARIANT_BOOL *pDeci); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DecimateInput )( - IMSVidVideoRenderer * This, - /* [in] */ VARIANT_BOOL pDeci); - - END_INTERFACE - } IMSVidVideoRendererVtbl; - - interface IMSVidVideoRenderer - { - CONST_VTBL struct IMSVidVideoRendererVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidVideoRenderer_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidVideoRenderer_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidVideoRenderer_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidVideoRenderer_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidVideoRenderer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidVideoRenderer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidVideoRenderer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidVideoRenderer_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidVideoRenderer_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidVideoRenderer_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidVideoRenderer_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidVideoRenderer_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidVideoRenderer_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidVideoRenderer_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidVideoRenderer_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidVideoRenderer_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - - -#define IMSVidVideoRenderer_get_CustomCompositorClass(This,CompositorCLSID) \ - (This)->lpVtbl -> get_CustomCompositorClass(This,CompositorCLSID) - -#define IMSVidVideoRenderer_put_CustomCompositorClass(This,CompositorCLSID) \ - (This)->lpVtbl -> put_CustomCompositorClass(This,CompositorCLSID) - -#define IMSVidVideoRenderer_get__CustomCompositorClass(This,CompositorCLSID) \ - (This)->lpVtbl -> get__CustomCompositorClass(This,CompositorCLSID) - -#define IMSVidVideoRenderer_put__CustomCompositorClass(This,CompositorCLSID) \ - (This)->lpVtbl -> put__CustomCompositorClass(This,CompositorCLSID) - -#define IMSVidVideoRenderer_get__CustomCompositor(This,Compositor) \ - (This)->lpVtbl -> get__CustomCompositor(This,Compositor) - -#define IMSVidVideoRenderer_put__CustomCompositor(This,Compositor) \ - (This)->lpVtbl -> put__CustomCompositor(This,Compositor) - -#define IMSVidVideoRenderer_get_MixerBitmap(This,MixerPictureDisp) \ - (This)->lpVtbl -> get_MixerBitmap(This,MixerPictureDisp) - -#define IMSVidVideoRenderer_get__MixerBitmap(This,MixerPicture) \ - (This)->lpVtbl -> get__MixerBitmap(This,MixerPicture) - -#define IMSVidVideoRenderer_put_MixerBitmap(This,MixerPictureDisp) \ - (This)->lpVtbl -> put_MixerBitmap(This,MixerPictureDisp) - -#define IMSVidVideoRenderer_put__MixerBitmap(This,MixerPicture) \ - (This)->lpVtbl -> put__MixerBitmap(This,MixerPicture) - -#define IMSVidVideoRenderer_get_MixerBitmapPositionRect(This,rDest) \ - (This)->lpVtbl -> get_MixerBitmapPositionRect(This,rDest) - -#define IMSVidVideoRenderer_put_MixerBitmapPositionRect(This,rDest) \ - (This)->lpVtbl -> put_MixerBitmapPositionRect(This,rDest) - -#define IMSVidVideoRenderer_get_MixerBitmapOpacity(This,opacity) \ - (This)->lpVtbl -> get_MixerBitmapOpacity(This,opacity) - -#define IMSVidVideoRenderer_put_MixerBitmapOpacity(This,opacity) \ - (This)->lpVtbl -> put_MixerBitmapOpacity(This,opacity) - -#define IMSVidVideoRenderer_SetupMixerBitmap(This,MixerPictureDisp,Opacity,rDest) \ - (This)->lpVtbl -> SetupMixerBitmap(This,MixerPictureDisp,Opacity,rDest) - -#define IMSVidVideoRenderer_get_SourceSize(This,CurrentSize) \ - (This)->lpVtbl -> get_SourceSize(This,CurrentSize) - -#define IMSVidVideoRenderer_put_SourceSize(This,NewSize) \ - (This)->lpVtbl -> put_SourceSize(This,NewSize) - -#define IMSVidVideoRenderer_get_OverScan(This,plPercent) \ - (This)->lpVtbl -> get_OverScan(This,plPercent) - -#define IMSVidVideoRenderer_put_OverScan(This,lPercent) \ - (This)->lpVtbl -> put_OverScan(This,lPercent) - -#define IMSVidVideoRenderer_get_AvailableSourceRect(This,pRect) \ - (This)->lpVtbl -> get_AvailableSourceRect(This,pRect) - -#define IMSVidVideoRenderer_get_MaxVidRect(This,ppVidRect) \ - (This)->lpVtbl -> get_MaxVidRect(This,ppVidRect) - -#define IMSVidVideoRenderer_get_MinVidRect(This,ppVidRect) \ - (This)->lpVtbl -> get_MinVidRect(This,ppVidRect) - -#define IMSVidVideoRenderer_get_ClippedSourceRect(This,pRect) \ - (This)->lpVtbl -> get_ClippedSourceRect(This,pRect) - -#define IMSVidVideoRenderer_put_ClippedSourceRect(This,pRect) \ - (This)->lpVtbl -> put_ClippedSourceRect(This,pRect) - -#define IMSVidVideoRenderer_get_UsingOverlay(This,UseOverlayVal) \ - (This)->lpVtbl -> get_UsingOverlay(This,UseOverlayVal) - -#define IMSVidVideoRenderer_put_UsingOverlay(This,UseOverlayVal) \ - (This)->lpVtbl -> put_UsingOverlay(This,UseOverlayVal) - -#define IMSVidVideoRenderer_Capture(This,currentImage) \ - (This)->lpVtbl -> Capture(This,currentImage) - -#define IMSVidVideoRenderer_get_FramesPerSecond(This,pVal) \ - (This)->lpVtbl -> get_FramesPerSecond(This,pVal) - -#define IMSVidVideoRenderer_get_DecimateInput(This,pDeci) \ - (This)->lpVtbl -> get_DecimateInput(This,pDeci) - -#define IMSVidVideoRenderer_put_DecimateInput(This,pDeci) \ - (This)->lpVtbl -> put_DecimateInput(This,pDeci) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_CustomCompositorClass_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ BSTR *CompositorCLSID); - - -void __RPC_STUB IMSVidVideoRenderer_get_CustomCompositorClass_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_put_CustomCompositorClass_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ BSTR CompositorCLSID); - - -void __RPC_STUB IMSVidVideoRenderer_put_CustomCompositorClass_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get__CustomCompositorClass_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ GUID *CompositorCLSID); - - -void __RPC_STUB IMSVidVideoRenderer_get__CustomCompositorClass_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_put__CustomCompositorClass_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ REFCLSID CompositorCLSID); - - -void __RPC_STUB IMSVidVideoRenderer_put__CustomCompositorClass_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get__CustomCompositor_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ IVMRImageCompositor **Compositor); - - -void __RPC_STUB IMSVidVideoRenderer_get__CustomCompositor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_put__CustomCompositor_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ IVMRImageCompositor *Compositor); - - -void __RPC_STUB IMSVidVideoRenderer_put__CustomCompositor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_MixerBitmap_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ IPictureDisp **MixerPictureDisp); - - -void __RPC_STUB IMSVidVideoRenderer_get_MixerBitmap_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get__MixerBitmap_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ IVMRMixerBitmap **MixerPicture); - - -void __RPC_STUB IMSVidVideoRenderer_get__MixerBitmap_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_put_MixerBitmap_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ IPictureDisp *MixerPictureDisp); - - -void __RPC_STUB IMSVidVideoRenderer_put_MixerBitmap_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_put__MixerBitmap_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ VMRALPHABITMAP *MixerPicture); - - -void __RPC_STUB IMSVidVideoRenderer_put__MixerBitmap_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_MixerBitmapPositionRect_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ IMSVidRect **rDest); - - -void __RPC_STUB IMSVidVideoRenderer_get_MixerBitmapPositionRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_put_MixerBitmapPositionRect_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ IMSVidRect *rDest); - - -void __RPC_STUB IMSVidVideoRenderer_put_MixerBitmapPositionRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_MixerBitmapOpacity_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ int *opacity); - - -void __RPC_STUB IMSVidVideoRenderer_get_MixerBitmapOpacity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_put_MixerBitmapOpacity_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ int opacity); - - -void __RPC_STUB IMSVidVideoRenderer_put_MixerBitmapOpacity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_SetupMixerBitmap_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ IPictureDisp *MixerPictureDisp, - /* [in] */ long Opacity, - /* [in] */ IMSVidRect *rDest); - - -void __RPC_STUB IMSVidVideoRenderer_SetupMixerBitmap_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_SourceSize_Proxy( - IMSVidVideoRenderer * This, - /* [out][retval] */ SourceSizeList *CurrentSize); - - -void __RPC_STUB IMSVidVideoRenderer_get_SourceSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_put_SourceSize_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ SourceSizeList NewSize); - - -void __RPC_STUB IMSVidVideoRenderer_put_SourceSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_OverScan_Proxy( - IMSVidVideoRenderer * This, - /* [out][retval] */ long *plPercent); - - -void __RPC_STUB IMSVidVideoRenderer_get_OverScan_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_put_OverScan_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ long lPercent); - - -void __RPC_STUB IMSVidVideoRenderer_put_OverScan_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_AvailableSourceRect_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ IMSVidRect **pRect); - - -void __RPC_STUB IMSVidVideoRenderer_get_AvailableSourceRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_MaxVidRect_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ IMSVidRect **ppVidRect); - - -void __RPC_STUB IMSVidVideoRenderer_get_MaxVidRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_MinVidRect_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ IMSVidRect **ppVidRect); - - -void __RPC_STUB IMSVidVideoRenderer_get_MinVidRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_ClippedSourceRect_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ IMSVidRect **pRect); - - -void __RPC_STUB IMSVidVideoRenderer_get_ClippedSourceRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_put_ClippedSourceRect_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ IMSVidRect *pRect); - - -void __RPC_STUB IMSVidVideoRenderer_put_ClippedSourceRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_UsingOverlay_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ VARIANT_BOOL *UseOverlayVal); - - -void __RPC_STUB IMSVidVideoRenderer_get_UsingOverlay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_put_UsingOverlay_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ VARIANT_BOOL UseOverlayVal); - - -void __RPC_STUB IMSVidVideoRenderer_put_UsingOverlay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_Capture_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ IPictureDisp **currentImage); - - -void __RPC_STUB IMSVidVideoRenderer_Capture_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_FramesPerSecond_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMSVidVideoRenderer_get_FramesPerSecond_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_get_DecimateInput_Proxy( - IMSVidVideoRenderer * This, - /* [retval][out] */ VARIANT_BOOL *pDeci); - - -void __RPC_STUB IMSVidVideoRenderer_get_DecimateInput_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer_put_DecimateInput_Proxy( - IMSVidVideoRenderer * This, - /* [in] */ VARIANT_BOOL pDeci); - - -void __RPC_STUB IMSVidVideoRenderer_put_DecimateInput_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidVideoRenderer_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidVideoRendererEvent_INTERFACE_DEFINED__ -#define __IMSVidVideoRendererEvent_INTERFACE_DEFINED__ - -/* interface IMSVidVideoRendererEvent */ -/* [unique][helpstring][uuid][hidden][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidVideoRendererEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("37B03545-A4C8-11d2-B634-00C04F79498E") - IMSVidVideoRendererEvent : public IMSVidOutputDeviceEvent - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OverlayUnavailable( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidVideoRendererEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidVideoRendererEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidVideoRendererEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidVideoRendererEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidVideoRendererEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidVideoRendererEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidVideoRendererEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidVideoRendererEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *StateChange )( - IMSVidVideoRendererEvent * This, - /* [in] */ IMSVidDevice *lpd, - /* [in] */ long oldState, - /* [in] */ long newState); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OverlayUnavailable )( - IMSVidVideoRendererEvent * This); - - END_INTERFACE - } IMSVidVideoRendererEventVtbl; - - interface IMSVidVideoRendererEvent - { - CONST_VTBL struct IMSVidVideoRendererEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidVideoRendererEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidVideoRendererEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidVideoRendererEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidVideoRendererEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidVideoRendererEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidVideoRendererEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidVideoRendererEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidVideoRendererEvent_StateChange(This,lpd,oldState,newState) \ - (This)->lpVtbl -> StateChange(This,lpd,oldState,newState) - - - -#define IMSVidVideoRendererEvent_OverlayUnavailable(This) \ - (This)->lpVtbl -> OverlayUnavailable(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRendererEvent_OverlayUnavailable_Proxy( - IMSVidVideoRendererEvent * This); - - -void __RPC_STUB IMSVidVideoRendererEvent_OverlayUnavailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidVideoRendererEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidStreamBufferRecordingControl_INTERFACE_DEFINED__ -#define __IMSVidStreamBufferRecordingControl_INTERFACE_DEFINED__ - -/* interface IMSVidStreamBufferRecordingControl */ -/* [helpstring][uuid][unique][nonextensible][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidStreamBufferRecordingControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("160621AA-BBBC-4326-A824-C395AEBC6E74") - IMSVidStreamBufferRecordingControl : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartTime( - /* [retval][out] */ long *rtStart) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_StartTime( - /* [in] */ long rtStart) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StopTime( - /* [retval][out] */ long *rtStop) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_StopTime( - /* [in] */ long rtStop) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecordingStopped( - /* [retval][out] */ VARIANT_BOOL *phResult) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecordingStarted( - /* [retval][out] */ VARIANT_BOOL *phResult) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecordingType( - /* [retval][out] */ RecordingType *dwType) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecordingAttribute( - /* [retval][out] */ IUnknown **pRecordingAttribute) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidStreamBufferRecordingControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidStreamBufferRecordingControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidStreamBufferRecordingControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidStreamBufferRecordingControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidStreamBufferRecordingControl * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidStreamBufferRecordingControl * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidStreamBufferRecordingControl * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidStreamBufferRecordingControl * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartTime )( - IMSVidStreamBufferRecordingControl * This, - /* [retval][out] */ long *rtStart); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StartTime )( - IMSVidStreamBufferRecordingControl * This, - /* [in] */ long rtStart); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StopTime )( - IMSVidStreamBufferRecordingControl * This, - /* [retval][out] */ long *rtStop); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StopTime )( - IMSVidStreamBufferRecordingControl * This, - /* [in] */ long rtStop); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecordingStopped )( - IMSVidStreamBufferRecordingControl * This, - /* [retval][out] */ VARIANT_BOOL *phResult); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecordingStarted )( - IMSVidStreamBufferRecordingControl * This, - /* [retval][out] */ VARIANT_BOOL *phResult); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecordingType )( - IMSVidStreamBufferRecordingControl * This, - /* [retval][out] */ RecordingType *dwType); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecordingAttribute )( - IMSVidStreamBufferRecordingControl * This, - /* [retval][out] */ IUnknown **pRecordingAttribute); - - END_INTERFACE - } IMSVidStreamBufferRecordingControlVtbl; - - interface IMSVidStreamBufferRecordingControl - { - CONST_VTBL struct IMSVidStreamBufferRecordingControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidStreamBufferRecordingControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidStreamBufferRecordingControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidStreamBufferRecordingControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidStreamBufferRecordingControl_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidStreamBufferRecordingControl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidStreamBufferRecordingControl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidStreamBufferRecordingControl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidStreamBufferRecordingControl_get_StartTime(This,rtStart) \ - (This)->lpVtbl -> get_StartTime(This,rtStart) - -#define IMSVidStreamBufferRecordingControl_put_StartTime(This,rtStart) \ - (This)->lpVtbl -> put_StartTime(This,rtStart) - -#define IMSVidStreamBufferRecordingControl_get_StopTime(This,rtStop) \ - (This)->lpVtbl -> get_StopTime(This,rtStop) - -#define IMSVidStreamBufferRecordingControl_put_StopTime(This,rtStop) \ - (This)->lpVtbl -> put_StopTime(This,rtStop) - -#define IMSVidStreamBufferRecordingControl_get_RecordingStopped(This,phResult) \ - (This)->lpVtbl -> get_RecordingStopped(This,phResult) - -#define IMSVidStreamBufferRecordingControl_get_RecordingStarted(This,phResult) \ - (This)->lpVtbl -> get_RecordingStarted(This,phResult) - -#define IMSVidStreamBufferRecordingControl_get_RecordingType(This,dwType) \ - (This)->lpVtbl -> get_RecordingType(This,dwType) - -#define IMSVidStreamBufferRecordingControl_get_RecordingAttribute(This,pRecordingAttribute) \ - (This)->lpVtbl -> get_RecordingAttribute(This,pRecordingAttribute) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferRecordingControl_get_StartTime_Proxy( - IMSVidStreamBufferRecordingControl * This, - /* [retval][out] */ long *rtStart); - - -void __RPC_STUB IMSVidStreamBufferRecordingControl_get_StartTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferRecordingControl_put_StartTime_Proxy( - IMSVidStreamBufferRecordingControl * This, - /* [in] */ long rtStart); - - -void __RPC_STUB IMSVidStreamBufferRecordingControl_put_StartTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferRecordingControl_get_StopTime_Proxy( - IMSVidStreamBufferRecordingControl * This, - /* [retval][out] */ long *rtStop); - - -void __RPC_STUB IMSVidStreamBufferRecordingControl_get_StopTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferRecordingControl_put_StopTime_Proxy( - IMSVidStreamBufferRecordingControl * This, - /* [in] */ long rtStop); - - -void __RPC_STUB IMSVidStreamBufferRecordingControl_put_StopTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferRecordingControl_get_RecordingStopped_Proxy( - IMSVidStreamBufferRecordingControl * This, - /* [retval][out] */ VARIANT_BOOL *phResult); - - -void __RPC_STUB IMSVidStreamBufferRecordingControl_get_RecordingStopped_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferRecordingControl_get_RecordingStarted_Proxy( - IMSVidStreamBufferRecordingControl * This, - /* [retval][out] */ VARIANT_BOOL *phResult); - - -void __RPC_STUB IMSVidStreamBufferRecordingControl_get_RecordingStarted_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferRecordingControl_get_RecordingType_Proxy( - IMSVidStreamBufferRecordingControl * This, - /* [retval][out] */ RecordingType *dwType); - - -void __RPC_STUB IMSVidStreamBufferRecordingControl_get_RecordingType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferRecordingControl_get_RecordingAttribute_Proxy( - IMSVidStreamBufferRecordingControl * This, - /* [retval][out] */ IUnknown **pRecordingAttribute); - - -void __RPC_STUB IMSVidStreamBufferRecordingControl_get_RecordingAttribute_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidStreamBufferRecordingControl_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidStreamBufferSink_INTERFACE_DEFINED__ -#define __IMSVidStreamBufferSink_INTERFACE_DEFINED__ - -/* interface IMSVidStreamBufferSink */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidStreamBufferSink; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("159DBB45-CD1B-4dab-83EA-5CB1F4F21D07") - IMSVidStreamBufferSink : public IMSVidOutputDevice - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ContentRecorder( - /* [in] */ BSTR pszFilename, - /* [out][retval] */ IMSVidStreamBufferRecordingControl **pRecordingIUnknown) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReferenceRecorder( - /* [in] */ BSTR pszFilename, - /* [out][retval] */ IMSVidStreamBufferRecordingControl **pRecordingIUnknown) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SinkName( - /* [out][retval] */ BSTR *pName) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SinkName( - /* [in] */ BSTR Name) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NameSetLock( void) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SBESink( - /* [out][retval] */ IUnknown **sbeConfig) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidStreamBufferSinkVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidStreamBufferSink * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidStreamBufferSink * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidStreamBufferSink * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidStreamBufferSink * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidStreamBufferSink * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidStreamBufferSink * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidStreamBufferSink * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidStreamBufferSink * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidStreamBufferSink * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidStreamBufferSink * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidStreamBufferSink * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidStreamBufferSink * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidStreamBufferSink * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidStreamBufferSink * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidStreamBufferSink * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidStreamBufferSink * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ContentRecorder )( - IMSVidStreamBufferSink * This, - /* [in] */ BSTR pszFilename, - /* [out][retval] */ IMSVidStreamBufferRecordingControl **pRecordingIUnknown); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReferenceRecorder )( - IMSVidStreamBufferSink * This, - /* [in] */ BSTR pszFilename, - /* [out][retval] */ IMSVidStreamBufferRecordingControl **pRecordingIUnknown); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SinkName )( - IMSVidStreamBufferSink * This, - /* [out][retval] */ BSTR *pName); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SinkName )( - IMSVidStreamBufferSink * This, - /* [in] */ BSTR Name); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NameSetLock )( - IMSVidStreamBufferSink * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SBESink )( - IMSVidStreamBufferSink * This, - /* [out][retval] */ IUnknown **sbeConfig); - - END_INTERFACE - } IMSVidStreamBufferSinkVtbl; - - interface IMSVidStreamBufferSink - { - CONST_VTBL struct IMSVidStreamBufferSinkVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidStreamBufferSink_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidStreamBufferSink_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidStreamBufferSink_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidStreamBufferSink_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidStreamBufferSink_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidStreamBufferSink_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidStreamBufferSink_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidStreamBufferSink_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidStreamBufferSink_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidStreamBufferSink_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidStreamBufferSink_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidStreamBufferSink_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidStreamBufferSink_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidStreamBufferSink_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidStreamBufferSink_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidStreamBufferSink_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - - -#define IMSVidStreamBufferSink_get_ContentRecorder(This,pszFilename,pRecordingIUnknown) \ - (This)->lpVtbl -> get_ContentRecorder(This,pszFilename,pRecordingIUnknown) - -#define IMSVidStreamBufferSink_get_ReferenceRecorder(This,pszFilename,pRecordingIUnknown) \ - (This)->lpVtbl -> get_ReferenceRecorder(This,pszFilename,pRecordingIUnknown) - -#define IMSVidStreamBufferSink_get_SinkName(This,pName) \ - (This)->lpVtbl -> get_SinkName(This,pName) - -#define IMSVidStreamBufferSink_put_SinkName(This,Name) \ - (This)->lpVtbl -> put_SinkName(This,Name) - -#define IMSVidStreamBufferSink_NameSetLock(This) \ - (This)->lpVtbl -> NameSetLock(This) - -#define IMSVidStreamBufferSink_get_SBESink(This,sbeConfig) \ - (This)->lpVtbl -> get_SBESink(This,sbeConfig) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSink_get_ContentRecorder_Proxy( - IMSVidStreamBufferSink * This, - /* [in] */ BSTR pszFilename, - /* [out][retval] */ IMSVidStreamBufferRecordingControl **pRecordingIUnknown); - - -void __RPC_STUB IMSVidStreamBufferSink_get_ContentRecorder_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSink_get_ReferenceRecorder_Proxy( - IMSVidStreamBufferSink * This, - /* [in] */ BSTR pszFilename, - /* [out][retval] */ IMSVidStreamBufferRecordingControl **pRecordingIUnknown); - - -void __RPC_STUB IMSVidStreamBufferSink_get_ReferenceRecorder_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSink_get_SinkName_Proxy( - IMSVidStreamBufferSink * This, - /* [out][retval] */ BSTR *pName); - - -void __RPC_STUB IMSVidStreamBufferSink_get_SinkName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSink_put_SinkName_Proxy( - IMSVidStreamBufferSink * This, - /* [in] */ BSTR Name); - - -void __RPC_STUB IMSVidStreamBufferSink_put_SinkName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSink_NameSetLock_Proxy( - IMSVidStreamBufferSink * This); - - -void __RPC_STUB IMSVidStreamBufferSink_NameSetLock_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSink_get_SBESink_Proxy( - IMSVidStreamBufferSink * This, - /* [out][retval] */ IUnknown **sbeConfig); - - -void __RPC_STUB IMSVidStreamBufferSink_get_SBESink_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidStreamBufferSink_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidStreamBufferSinkEvent_INTERFACE_DEFINED__ -#define __IMSVidStreamBufferSinkEvent_INTERFACE_DEFINED__ - -/* interface IMSVidStreamBufferSinkEvent */ -/* [unique][helpstring][uuid][hidden][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidStreamBufferSinkEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("F798A36B-B05B-4bbe-9703-EAEA7D61CD51") - IMSVidStreamBufferSinkEvent : public IMSVidOutputDeviceEvent - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CertificateFailure( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CertificateSuccess( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteFailure( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidStreamBufferSinkEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidStreamBufferSinkEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidStreamBufferSinkEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidStreamBufferSinkEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidStreamBufferSinkEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidStreamBufferSinkEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidStreamBufferSinkEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidStreamBufferSinkEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *StateChange )( - IMSVidStreamBufferSinkEvent * This, - /* [in] */ IMSVidDevice *lpd, - /* [in] */ long oldState, - /* [in] */ long newState); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CertificateFailure )( - IMSVidStreamBufferSinkEvent * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CertificateSuccess )( - IMSVidStreamBufferSinkEvent * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WriteFailure )( - IMSVidStreamBufferSinkEvent * This); - - END_INTERFACE - } IMSVidStreamBufferSinkEventVtbl; - - interface IMSVidStreamBufferSinkEvent - { - CONST_VTBL struct IMSVidStreamBufferSinkEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidStreamBufferSinkEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidStreamBufferSinkEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidStreamBufferSinkEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidStreamBufferSinkEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidStreamBufferSinkEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidStreamBufferSinkEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidStreamBufferSinkEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidStreamBufferSinkEvent_StateChange(This,lpd,oldState,newState) \ - (This)->lpVtbl -> StateChange(This,lpd,oldState,newState) - - - -#define IMSVidStreamBufferSinkEvent_CertificateFailure(This) \ - (This)->lpVtbl -> CertificateFailure(This) - -#define IMSVidStreamBufferSinkEvent_CertificateSuccess(This) \ - (This)->lpVtbl -> CertificateSuccess(This) - -#define IMSVidStreamBufferSinkEvent_WriteFailure(This) \ - (This)->lpVtbl -> WriteFailure(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSinkEvent_CertificateFailure_Proxy( - IMSVidStreamBufferSinkEvent * This); - - -void __RPC_STUB IMSVidStreamBufferSinkEvent_CertificateFailure_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSinkEvent_CertificateSuccess_Proxy( - IMSVidStreamBufferSinkEvent * This); - - -void __RPC_STUB IMSVidStreamBufferSinkEvent_CertificateSuccess_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSinkEvent_WriteFailure_Proxy( - IMSVidStreamBufferSinkEvent * This); - - -void __RPC_STUB IMSVidStreamBufferSinkEvent_WriteFailure_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidStreamBufferSinkEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidStreamBufferSource_INTERFACE_DEFINED__ -#define __IMSVidStreamBufferSource_INTERFACE_DEFINED__ - -/* interface IMSVidStreamBufferSource */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidStreamBufferSource; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("EB0C8CF9-6950-4772-87B1-47D11CF3A02F") - IMSVidStreamBufferSource : public IMSVidFilePlayback - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Start( - /* [retval][out] */ long *lStart) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecordingAttribute( - /* [retval][out] */ IUnknown **pRecordingAttribute) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CurrentRatings( - /* [out] */ EnTvRat_System *pEnSystem, - /* [out] */ EnTvRat_GenericLevel *pEnRating, - /* [out] */ LONG *pBfEnAttr) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MaxRatingsLevel( - /* [in] */ EnTvRat_System enSystem, - /* [in] */ EnTvRat_GenericLevel enRating, - /* [in] */ LONG lbfEnAttr) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BlockUnrated( - /* [in] */ VARIANT_BOOL bBlock) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UnratedDelay( - /* [in] */ long dwDelay) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SBESource( - /* [retval][out] */ IUnknown **sbeFilter) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidStreamBufferSourceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidStreamBufferSource * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidStreamBufferSource * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidStreamBufferSource * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidStreamBufferSource * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidStreamBufferSource * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidStreamBufferSource * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidStreamBufferSource * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidStreamBufferSource * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidStreamBufferSource * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidStreamBufferSource * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsViewable )( - IMSVidStreamBufferSource * This, - /* [in] */ VARIANT *v, - /* [retval][out] */ VARIANT_BOOL *pfViewable); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *View )( - IMSVidStreamBufferSource * This, - /* [in] */ VARIANT *v); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnableResetOnStop )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ VARIANT_BOOL *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EnableResetOnStop )( - IMSVidStreamBufferSource * This, - /* [in] */ VARIANT_BOOL newVal); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Run )( - IMSVidStreamBufferSource * This); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Pause )( - IMSVidStreamBufferSource * This); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( - IMSVidStreamBufferSource * This); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CanStep )( - IMSVidStreamBufferSource * This, - /* [in] */ VARIANT_BOOL fBackwards, - /* [retval][out] */ VARIANT_BOOL *pfCan); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Step )( - IMSVidStreamBufferSource * This, - /* [in] */ long lStep); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Rate )( - IMSVidStreamBufferSource * This, - /* [in] */ double plRate); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rate )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ double *plRate); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CurrentPosition )( - IMSVidStreamBufferSource * This, - /* [in] */ long lPosition); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPosition )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ long *lPosition); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PositionMode )( - IMSVidStreamBufferSource * This, - /* [in] */ PositionModeList lPositionMode); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PositionMode )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ PositionModeList *lPositionMode); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Length )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ long *lLength); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileName )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ BSTR *FileName); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FileName )( - IMSVidStreamBufferSource * This, - /* [in] */ BSTR FileName); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Start )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ long *lStart); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecordingAttribute )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ IUnknown **pRecordingAttribute); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CurrentRatings )( - IMSVidStreamBufferSource * This, - /* [out] */ EnTvRat_System *pEnSystem, - /* [out] */ EnTvRat_GenericLevel *pEnRating, - /* [out] */ LONG *pBfEnAttr); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MaxRatingsLevel )( - IMSVidStreamBufferSource * This, - /* [in] */ EnTvRat_System enSystem, - /* [in] */ EnTvRat_GenericLevel enRating, - /* [in] */ LONG lbfEnAttr); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnrated )( - IMSVidStreamBufferSource * This, - /* [in] */ VARIANT_BOOL bBlock); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UnratedDelay )( - IMSVidStreamBufferSource * This, - /* [in] */ long dwDelay); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SBESource )( - IMSVidStreamBufferSource * This, - /* [retval][out] */ IUnknown **sbeFilter); - - END_INTERFACE - } IMSVidStreamBufferSourceVtbl; - - interface IMSVidStreamBufferSource - { - CONST_VTBL struct IMSVidStreamBufferSourceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidStreamBufferSource_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidStreamBufferSource_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidStreamBufferSource_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidStreamBufferSource_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidStreamBufferSource_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidStreamBufferSource_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidStreamBufferSource_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidStreamBufferSource_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidStreamBufferSource_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidStreamBufferSource_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidStreamBufferSource_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidStreamBufferSource_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidStreamBufferSource_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidStreamBufferSource_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidStreamBufferSource_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidStreamBufferSource_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - -#define IMSVidStreamBufferSource_IsViewable(This,v,pfViewable) \ - (This)->lpVtbl -> IsViewable(This,v,pfViewable) - -#define IMSVidStreamBufferSource_View(This,v) \ - (This)->lpVtbl -> View(This,v) - - -#define IMSVidStreamBufferSource_get_EnableResetOnStop(This,pVal) \ - (This)->lpVtbl -> get_EnableResetOnStop(This,pVal) - -#define IMSVidStreamBufferSource_put_EnableResetOnStop(This,newVal) \ - (This)->lpVtbl -> put_EnableResetOnStop(This,newVal) - -#define IMSVidStreamBufferSource_Run(This) \ - (This)->lpVtbl -> Run(This) - -#define IMSVidStreamBufferSource_Pause(This) \ - (This)->lpVtbl -> Pause(This) - -#define IMSVidStreamBufferSource_Stop(This) \ - (This)->lpVtbl -> Stop(This) - -#define IMSVidStreamBufferSource_get_CanStep(This,fBackwards,pfCan) \ - (This)->lpVtbl -> get_CanStep(This,fBackwards,pfCan) - -#define IMSVidStreamBufferSource_Step(This,lStep) \ - (This)->lpVtbl -> Step(This,lStep) - -#define IMSVidStreamBufferSource_put_Rate(This,plRate) \ - (This)->lpVtbl -> put_Rate(This,plRate) - -#define IMSVidStreamBufferSource_get_Rate(This,plRate) \ - (This)->lpVtbl -> get_Rate(This,plRate) - -#define IMSVidStreamBufferSource_put_CurrentPosition(This,lPosition) \ - (This)->lpVtbl -> put_CurrentPosition(This,lPosition) - -#define IMSVidStreamBufferSource_get_CurrentPosition(This,lPosition) \ - (This)->lpVtbl -> get_CurrentPosition(This,lPosition) - -#define IMSVidStreamBufferSource_put_PositionMode(This,lPositionMode) \ - (This)->lpVtbl -> put_PositionMode(This,lPositionMode) - -#define IMSVidStreamBufferSource_get_PositionMode(This,lPositionMode) \ - (This)->lpVtbl -> get_PositionMode(This,lPositionMode) - -#define IMSVidStreamBufferSource_get_Length(This,lLength) \ - (This)->lpVtbl -> get_Length(This,lLength) - - -#define IMSVidStreamBufferSource_get_FileName(This,FileName) \ - (This)->lpVtbl -> get_FileName(This,FileName) - -#define IMSVidStreamBufferSource_put_FileName(This,FileName) \ - (This)->lpVtbl -> put_FileName(This,FileName) - - -#define IMSVidStreamBufferSource_get_Start(This,lStart) \ - (This)->lpVtbl -> get_Start(This,lStart) - -#define IMSVidStreamBufferSource_get_RecordingAttribute(This,pRecordingAttribute) \ - (This)->lpVtbl -> get_RecordingAttribute(This,pRecordingAttribute) - -#define IMSVidStreamBufferSource_CurrentRatings(This,pEnSystem,pEnRating,pBfEnAttr) \ - (This)->lpVtbl -> CurrentRatings(This,pEnSystem,pEnRating,pBfEnAttr) - -#define IMSVidStreamBufferSource_MaxRatingsLevel(This,enSystem,enRating,lbfEnAttr) \ - (This)->lpVtbl -> MaxRatingsLevel(This,enSystem,enRating,lbfEnAttr) - -#define IMSVidStreamBufferSource_put_BlockUnrated(This,bBlock) \ - (This)->lpVtbl -> put_BlockUnrated(This,bBlock) - -#define IMSVidStreamBufferSource_put_UnratedDelay(This,dwDelay) \ - (This)->lpVtbl -> put_UnratedDelay(This,dwDelay) - -#define IMSVidStreamBufferSource_get_SBESource(This,sbeFilter) \ - (This)->lpVtbl -> get_SBESource(This,sbeFilter) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSource_get_Start_Proxy( - IMSVidStreamBufferSource * This, - /* [retval][out] */ long *lStart); - - -void __RPC_STUB IMSVidStreamBufferSource_get_Start_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSource_get_RecordingAttribute_Proxy( - IMSVidStreamBufferSource * This, - /* [retval][out] */ IUnknown **pRecordingAttribute); - - -void __RPC_STUB IMSVidStreamBufferSource_get_RecordingAttribute_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSource_CurrentRatings_Proxy( - IMSVidStreamBufferSource * This, - /* [out] */ EnTvRat_System *pEnSystem, - /* [out] */ EnTvRat_GenericLevel *pEnRating, - /* [out] */ LONG *pBfEnAttr); - - -void __RPC_STUB IMSVidStreamBufferSource_CurrentRatings_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSource_MaxRatingsLevel_Proxy( - IMSVidStreamBufferSource * This, - /* [in] */ EnTvRat_System enSystem, - /* [in] */ EnTvRat_GenericLevel enRating, - /* [in] */ LONG lbfEnAttr); - - -void __RPC_STUB IMSVidStreamBufferSource_MaxRatingsLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSource_put_BlockUnrated_Proxy( - IMSVidStreamBufferSource * This, - /* [in] */ VARIANT_BOOL bBlock); - - -void __RPC_STUB IMSVidStreamBufferSource_put_BlockUnrated_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSource_put_UnratedDelay_Proxy( - IMSVidStreamBufferSource * This, - /* [in] */ long dwDelay); - - -void __RPC_STUB IMSVidStreamBufferSource_put_UnratedDelay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSource_get_SBESource_Proxy( - IMSVidStreamBufferSource * This, - /* [retval][out] */ IUnknown **sbeFilter); - - -void __RPC_STUB IMSVidStreamBufferSource_get_SBESource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidStreamBufferSource_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidStreamBufferSourceEvent_INTERFACE_DEFINED__ -#define __IMSVidStreamBufferSourceEvent_INTERFACE_DEFINED__ - -/* interface IMSVidStreamBufferSourceEvent */ -/* [unique][helpstring][uuid][hidden][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidStreamBufferSourceEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("50CE8A7D-9C28-4DA8-9042-CDFA7116F979") - IMSVidStreamBufferSourceEvent : public IMSVidFilePlaybackEvent - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CertificateFailure( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CertificateSuccess( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RatingsBlocked( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RatingsUnblocked( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RatingsChanged( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE TimeHole( - /* [in] */ long StreamOffsetMS, - /* [in] */ long SizeMS) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE StaleDataRead( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ContentBecomingStale( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE StaleFileDeleted( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidStreamBufferSourceEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidStreamBufferSourceEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidStreamBufferSourceEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidStreamBufferSourceEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidStreamBufferSourceEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidStreamBufferSourceEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidStreamBufferSourceEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidStreamBufferSourceEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *EndOfMedia )( - IMSVidStreamBufferSourceEvent * This, - /* [in] */ IMSVidPlayback *lpd); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CertificateFailure )( - IMSVidStreamBufferSourceEvent * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CertificateSuccess )( - IMSVidStreamBufferSourceEvent * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RatingsBlocked )( - IMSVidStreamBufferSourceEvent * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RatingsUnblocked )( - IMSVidStreamBufferSourceEvent * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RatingsChanged )( - IMSVidStreamBufferSourceEvent * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *TimeHole )( - IMSVidStreamBufferSourceEvent * This, - /* [in] */ long StreamOffsetMS, - /* [in] */ long SizeMS); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StaleDataRead )( - IMSVidStreamBufferSourceEvent * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ContentBecomingStale )( - IMSVidStreamBufferSourceEvent * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StaleFileDeleted )( - IMSVidStreamBufferSourceEvent * This); - - END_INTERFACE - } IMSVidStreamBufferSourceEventVtbl; - - interface IMSVidStreamBufferSourceEvent - { - CONST_VTBL struct IMSVidStreamBufferSourceEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidStreamBufferSourceEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidStreamBufferSourceEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidStreamBufferSourceEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidStreamBufferSourceEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidStreamBufferSourceEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidStreamBufferSourceEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidStreamBufferSourceEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - - -#define IMSVidStreamBufferSourceEvent_EndOfMedia(This,lpd) \ - (This)->lpVtbl -> EndOfMedia(This,lpd) - - - -#define IMSVidStreamBufferSourceEvent_CertificateFailure(This) \ - (This)->lpVtbl -> CertificateFailure(This) - -#define IMSVidStreamBufferSourceEvent_CertificateSuccess(This) \ - (This)->lpVtbl -> CertificateSuccess(This) - -#define IMSVidStreamBufferSourceEvent_RatingsBlocked(This) \ - (This)->lpVtbl -> RatingsBlocked(This) - -#define IMSVidStreamBufferSourceEvent_RatingsUnblocked(This) \ - (This)->lpVtbl -> RatingsUnblocked(This) - -#define IMSVidStreamBufferSourceEvent_RatingsChanged(This) \ - (This)->lpVtbl -> RatingsChanged(This) - -#define IMSVidStreamBufferSourceEvent_TimeHole(This,StreamOffsetMS,SizeMS) \ - (This)->lpVtbl -> TimeHole(This,StreamOffsetMS,SizeMS) - -#define IMSVidStreamBufferSourceEvent_StaleDataRead(This) \ - (This)->lpVtbl -> StaleDataRead(This) - -#define IMSVidStreamBufferSourceEvent_ContentBecomingStale(This) \ - (This)->lpVtbl -> ContentBecomingStale(This) - -#define IMSVidStreamBufferSourceEvent_StaleFileDeleted(This) \ - (This)->lpVtbl -> StaleFileDeleted(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSourceEvent_CertificateFailure_Proxy( - IMSVidStreamBufferSourceEvent * This); - - -void __RPC_STUB IMSVidStreamBufferSourceEvent_CertificateFailure_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSourceEvent_CertificateSuccess_Proxy( - IMSVidStreamBufferSourceEvent * This); - - -void __RPC_STUB IMSVidStreamBufferSourceEvent_CertificateSuccess_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSourceEvent_RatingsBlocked_Proxy( - IMSVidStreamBufferSourceEvent * This); - - -void __RPC_STUB IMSVidStreamBufferSourceEvent_RatingsBlocked_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSourceEvent_RatingsUnblocked_Proxy( - IMSVidStreamBufferSourceEvent * This); - - -void __RPC_STUB IMSVidStreamBufferSourceEvent_RatingsUnblocked_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSourceEvent_RatingsChanged_Proxy( - IMSVidStreamBufferSourceEvent * This); - - -void __RPC_STUB IMSVidStreamBufferSourceEvent_RatingsChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSourceEvent_TimeHole_Proxy( - IMSVidStreamBufferSourceEvent * This, - /* [in] */ long StreamOffsetMS, - /* [in] */ long SizeMS); - - -void __RPC_STUB IMSVidStreamBufferSourceEvent_TimeHole_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSourceEvent_StaleDataRead_Proxy( - IMSVidStreamBufferSourceEvent * This); - - -void __RPC_STUB IMSVidStreamBufferSourceEvent_StaleDataRead_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSourceEvent_ContentBecomingStale_Proxy( - IMSVidStreamBufferSourceEvent * This); - - -void __RPC_STUB IMSVidStreamBufferSourceEvent_ContentBecomingStale_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidStreamBufferSourceEvent_StaleFileDeleted_Proxy( - IMSVidStreamBufferSourceEvent * This); - - -void __RPC_STUB IMSVidStreamBufferSourceEvent_StaleFileDeleted_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidStreamBufferSourceEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidVideoRenderer2_INTERFACE_DEFINED__ -#define __IMSVidVideoRenderer2_INTERFACE_DEFINED__ - -/* interface IMSVidVideoRenderer2 */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidVideoRenderer2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("6BDD5C1E-2810-4159-94BC-05511AE8549B") - IMSVidVideoRenderer2 : public IMSVidVideoRenderer - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Allocator( - /* [retval][out] */ IUnknown **AllocPresent) = 0; - - virtual /* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__Allocator( - /* [retval][out] */ IVMRSurfaceAllocator **AllocPresent) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Allocator_ID( - /* [retval][out] */ long *ID) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetAllocator( - /* [in] */ IUnknown *AllocPresent, - /* [defaultvalue][in] */ long ID = -1) = 0; - - virtual /* [restricted][hidden][id] */ HRESULT STDMETHODCALLTYPE _SetAllocator( - /* [in] */ IVMRSurfaceAllocator *AllocPresent, - /* [defaultvalue][in] */ long ID = -1) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SuppressEffects( - /* [in] */ VARIANT_BOOL bSuppress) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SuppressEffects( - /* [retval][out] */ VARIANT_BOOL *bSuppress) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidVideoRenderer2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidVideoRenderer2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidVideoRenderer2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidVideoRenderer2 * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidVideoRenderer2 * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidVideoRenderer2 * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidVideoRenderer2 * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidVideoRenderer2 * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidVideoRenderer2 * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidVideoRenderer2 * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidVideoRenderer2 * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CustomCompositorClass )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ BSTR *CompositorCLSID); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CustomCompositorClass )( - IMSVidVideoRenderer2 * This, - /* [in] */ BSTR CompositorCLSID); - - /* [id][restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get__CustomCompositorClass )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ GUID *CompositorCLSID); - - /* [id][restricted][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put__CustomCompositorClass )( - IMSVidVideoRenderer2 * This, - /* [in] */ REFCLSID CompositorCLSID); - - /* [id][restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get__CustomCompositor )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IVMRImageCompositor **Compositor); - - /* [id][restricted][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put__CustomCompositor )( - IMSVidVideoRenderer2 * This, - /* [in] */ IVMRImageCompositor *Compositor); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MixerBitmap )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IPictureDisp **MixerPictureDisp); - - /* [id][restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MixerBitmap )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IVMRMixerBitmap **MixerPicture); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MixerBitmap )( - IMSVidVideoRenderer2 * This, - /* [in] */ IPictureDisp *MixerPictureDisp); - - /* [id][restricted][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MixerBitmap )( - IMSVidVideoRenderer2 * This, - /* [in] */ VMRALPHABITMAP *MixerPicture); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MixerBitmapPositionRect )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IMSVidRect **rDest); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MixerBitmapPositionRect )( - IMSVidVideoRenderer2 * This, - /* [in] */ IMSVidRect *rDest); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MixerBitmapOpacity )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ int *opacity); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MixerBitmapOpacity )( - IMSVidVideoRenderer2 * This, - /* [in] */ int opacity); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetupMixerBitmap )( - IMSVidVideoRenderer2 * This, - /* [in] */ IPictureDisp *MixerPictureDisp, - /* [in] */ long Opacity, - /* [in] */ IMSVidRect *rDest); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceSize )( - IMSVidVideoRenderer2 * This, - /* [out][retval] */ SourceSizeList *CurrentSize); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceSize )( - IMSVidVideoRenderer2 * This, - /* [in] */ SourceSizeList NewSize); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OverScan )( - IMSVidVideoRenderer2 * This, - /* [out][retval] */ long *plPercent); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OverScan )( - IMSVidVideoRenderer2 * This, - /* [in] */ long lPercent); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AvailableSourceRect )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IMSVidRect **pRect); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxVidRect )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IMSVidRect **ppVidRect); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinVidRect )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IMSVidRect **ppVidRect); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClippedSourceRect )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IMSVidRect **pRect); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClippedSourceRect )( - IMSVidVideoRenderer2 * This, - /* [in] */ IMSVidRect *pRect); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsingOverlay )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ VARIANT_BOOL *UseOverlayVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UsingOverlay )( - IMSVidVideoRenderer2 * This, - /* [in] */ VARIANT_BOOL UseOverlayVal); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Capture )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IPictureDisp **currentImage); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FramesPerSecond )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DecimateInput )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ VARIANT_BOOL *pDeci); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DecimateInput )( - IMSVidVideoRenderer2 * This, - /* [in] */ VARIANT_BOOL pDeci); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Allocator )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IUnknown **AllocPresent); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Allocator )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IVMRSurfaceAllocator **AllocPresent); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Allocator_ID )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ long *ID); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetAllocator )( - IMSVidVideoRenderer2 * This, - /* [in] */ IUnknown *AllocPresent, - /* [defaultvalue][in] */ long ID); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *_SetAllocator )( - IMSVidVideoRenderer2 * This, - /* [in] */ IVMRSurfaceAllocator *AllocPresent, - /* [defaultvalue][in] */ long ID); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SuppressEffects )( - IMSVidVideoRenderer2 * This, - /* [in] */ VARIANT_BOOL bSuppress); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressEffects )( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ VARIANT_BOOL *bSuppress); - - END_INTERFACE - } IMSVidVideoRenderer2Vtbl; - - interface IMSVidVideoRenderer2 - { - CONST_VTBL struct IMSVidVideoRenderer2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidVideoRenderer2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidVideoRenderer2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidVideoRenderer2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidVideoRenderer2_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidVideoRenderer2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidVideoRenderer2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidVideoRenderer2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidVideoRenderer2_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidVideoRenderer2_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidVideoRenderer2_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidVideoRenderer2_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidVideoRenderer2_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidVideoRenderer2_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidVideoRenderer2_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidVideoRenderer2_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidVideoRenderer2_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - - -#define IMSVidVideoRenderer2_get_CustomCompositorClass(This,CompositorCLSID) \ - (This)->lpVtbl -> get_CustomCompositorClass(This,CompositorCLSID) - -#define IMSVidVideoRenderer2_put_CustomCompositorClass(This,CompositorCLSID) \ - (This)->lpVtbl -> put_CustomCompositorClass(This,CompositorCLSID) - -#define IMSVidVideoRenderer2_get__CustomCompositorClass(This,CompositorCLSID) \ - (This)->lpVtbl -> get__CustomCompositorClass(This,CompositorCLSID) - -#define IMSVidVideoRenderer2_put__CustomCompositorClass(This,CompositorCLSID) \ - (This)->lpVtbl -> put__CustomCompositorClass(This,CompositorCLSID) - -#define IMSVidVideoRenderer2_get__CustomCompositor(This,Compositor) \ - (This)->lpVtbl -> get__CustomCompositor(This,Compositor) - -#define IMSVidVideoRenderer2_put__CustomCompositor(This,Compositor) \ - (This)->lpVtbl -> put__CustomCompositor(This,Compositor) - -#define IMSVidVideoRenderer2_get_MixerBitmap(This,MixerPictureDisp) \ - (This)->lpVtbl -> get_MixerBitmap(This,MixerPictureDisp) - -#define IMSVidVideoRenderer2_get__MixerBitmap(This,MixerPicture) \ - (This)->lpVtbl -> get__MixerBitmap(This,MixerPicture) - -#define IMSVidVideoRenderer2_put_MixerBitmap(This,MixerPictureDisp) \ - (This)->lpVtbl -> put_MixerBitmap(This,MixerPictureDisp) - -#define IMSVidVideoRenderer2_put__MixerBitmap(This,MixerPicture) \ - (This)->lpVtbl -> put__MixerBitmap(This,MixerPicture) - -#define IMSVidVideoRenderer2_get_MixerBitmapPositionRect(This,rDest) \ - (This)->lpVtbl -> get_MixerBitmapPositionRect(This,rDest) - -#define IMSVidVideoRenderer2_put_MixerBitmapPositionRect(This,rDest) \ - (This)->lpVtbl -> put_MixerBitmapPositionRect(This,rDest) - -#define IMSVidVideoRenderer2_get_MixerBitmapOpacity(This,opacity) \ - (This)->lpVtbl -> get_MixerBitmapOpacity(This,opacity) - -#define IMSVidVideoRenderer2_put_MixerBitmapOpacity(This,opacity) \ - (This)->lpVtbl -> put_MixerBitmapOpacity(This,opacity) - -#define IMSVidVideoRenderer2_SetupMixerBitmap(This,MixerPictureDisp,Opacity,rDest) \ - (This)->lpVtbl -> SetupMixerBitmap(This,MixerPictureDisp,Opacity,rDest) - -#define IMSVidVideoRenderer2_get_SourceSize(This,CurrentSize) \ - (This)->lpVtbl -> get_SourceSize(This,CurrentSize) - -#define IMSVidVideoRenderer2_put_SourceSize(This,NewSize) \ - (This)->lpVtbl -> put_SourceSize(This,NewSize) - -#define IMSVidVideoRenderer2_get_OverScan(This,plPercent) \ - (This)->lpVtbl -> get_OverScan(This,plPercent) - -#define IMSVidVideoRenderer2_put_OverScan(This,lPercent) \ - (This)->lpVtbl -> put_OverScan(This,lPercent) - -#define IMSVidVideoRenderer2_get_AvailableSourceRect(This,pRect) \ - (This)->lpVtbl -> get_AvailableSourceRect(This,pRect) - -#define IMSVidVideoRenderer2_get_MaxVidRect(This,ppVidRect) \ - (This)->lpVtbl -> get_MaxVidRect(This,ppVidRect) - -#define IMSVidVideoRenderer2_get_MinVidRect(This,ppVidRect) \ - (This)->lpVtbl -> get_MinVidRect(This,ppVidRect) - -#define IMSVidVideoRenderer2_get_ClippedSourceRect(This,pRect) \ - (This)->lpVtbl -> get_ClippedSourceRect(This,pRect) - -#define IMSVidVideoRenderer2_put_ClippedSourceRect(This,pRect) \ - (This)->lpVtbl -> put_ClippedSourceRect(This,pRect) - -#define IMSVidVideoRenderer2_get_UsingOverlay(This,UseOverlayVal) \ - (This)->lpVtbl -> get_UsingOverlay(This,UseOverlayVal) - -#define IMSVidVideoRenderer2_put_UsingOverlay(This,UseOverlayVal) \ - (This)->lpVtbl -> put_UsingOverlay(This,UseOverlayVal) - -#define IMSVidVideoRenderer2_Capture(This,currentImage) \ - (This)->lpVtbl -> Capture(This,currentImage) - -#define IMSVidVideoRenderer2_get_FramesPerSecond(This,pVal) \ - (This)->lpVtbl -> get_FramesPerSecond(This,pVal) - -#define IMSVidVideoRenderer2_get_DecimateInput(This,pDeci) \ - (This)->lpVtbl -> get_DecimateInput(This,pDeci) - -#define IMSVidVideoRenderer2_put_DecimateInput(This,pDeci) \ - (This)->lpVtbl -> put_DecimateInput(This,pDeci) - - -#define IMSVidVideoRenderer2_get_Allocator(This,AllocPresent) \ - (This)->lpVtbl -> get_Allocator(This,AllocPresent) - -#define IMSVidVideoRenderer2_get__Allocator(This,AllocPresent) \ - (This)->lpVtbl -> get__Allocator(This,AllocPresent) - -#define IMSVidVideoRenderer2_get_Allocator_ID(This,ID) \ - (This)->lpVtbl -> get_Allocator_ID(This,ID) - -#define IMSVidVideoRenderer2_SetAllocator(This,AllocPresent,ID) \ - (This)->lpVtbl -> SetAllocator(This,AllocPresent,ID) - -#define IMSVidVideoRenderer2__SetAllocator(This,AllocPresent,ID) \ - (This)->lpVtbl -> _SetAllocator(This,AllocPresent,ID) - -#define IMSVidVideoRenderer2_put_SuppressEffects(This,bSuppress) \ - (This)->lpVtbl -> put_SuppressEffects(This,bSuppress) - -#define IMSVidVideoRenderer2_get_SuppressEffects(This,bSuppress) \ - (This)->lpVtbl -> get_SuppressEffects(This,bSuppress) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer2_get_Allocator_Proxy( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IUnknown **AllocPresent); - - -void __RPC_STUB IMSVidVideoRenderer2_get_Allocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer2_get__Allocator_Proxy( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ IVMRSurfaceAllocator **AllocPresent); - - -void __RPC_STUB IMSVidVideoRenderer2_get__Allocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer2_get_Allocator_ID_Proxy( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ long *ID); - - -void __RPC_STUB IMSVidVideoRenderer2_get_Allocator_ID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer2_SetAllocator_Proxy( - IMSVidVideoRenderer2 * This, - /* [in] */ IUnknown *AllocPresent, - /* [defaultvalue][in] */ long ID); - - -void __RPC_STUB IMSVidVideoRenderer2_SetAllocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer2__SetAllocator_Proxy( - IMSVidVideoRenderer2 * This, - /* [in] */ IVMRSurfaceAllocator *AllocPresent, - /* [defaultvalue][in] */ long ID); - - -void __RPC_STUB IMSVidVideoRenderer2__SetAllocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer2_put_SuppressEffects_Proxy( - IMSVidVideoRenderer2 * This, - /* [in] */ VARIANT_BOOL bSuppress); - - -void __RPC_STUB IMSVidVideoRenderer2_put_SuppressEffects_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRenderer2_get_SuppressEffects_Proxy( - IMSVidVideoRenderer2 * This, - /* [retval][out] */ VARIANT_BOOL *bSuppress); - - -void __RPC_STUB IMSVidVideoRenderer2_get_SuppressEffects_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidVideoRenderer2_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidVideoRendererEvent2_INTERFACE_DEFINED__ -#define __IMSVidVideoRendererEvent2_INTERFACE_DEFINED__ - -/* interface IMSVidVideoRendererEvent2 */ -/* [unique][helpstring][uuid][hidden][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidVideoRendererEvent2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("7145ED66-4730-4fdb-8A53-FDE7508D3E5E") - IMSVidVideoRendererEvent2 : public IMSVidOutputDeviceEvent - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OverlayUnavailable( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidVideoRendererEvent2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidVideoRendererEvent2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidVideoRendererEvent2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidVideoRendererEvent2 * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidVideoRendererEvent2 * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidVideoRendererEvent2 * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidVideoRendererEvent2 * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidVideoRendererEvent2 * 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] */ HRESULT ( STDMETHODCALLTYPE *StateChange )( - IMSVidVideoRendererEvent2 * This, - /* [in] */ IMSVidDevice *lpd, - /* [in] */ long oldState, - /* [in] */ long newState); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OverlayUnavailable )( - IMSVidVideoRendererEvent2 * This); - - END_INTERFACE - } IMSVidVideoRendererEvent2Vtbl; - - interface IMSVidVideoRendererEvent2 - { - CONST_VTBL struct IMSVidVideoRendererEvent2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidVideoRendererEvent2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidVideoRendererEvent2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidVideoRendererEvent2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidVideoRendererEvent2_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidVideoRendererEvent2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidVideoRendererEvent2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidVideoRendererEvent2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidVideoRendererEvent2_StateChange(This,lpd,oldState,newState) \ - (This)->lpVtbl -> StateChange(This,lpd,oldState,newState) - - - -#define IMSVidVideoRendererEvent2_OverlayUnavailable(This) \ - (This)->lpVtbl -> OverlayUnavailable(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRendererEvent2_OverlayUnavailable_Proxy( - IMSVidVideoRendererEvent2 * This); - - -void __RPC_STUB IMSVidVideoRendererEvent2_OverlayUnavailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidVideoRendererEvent2_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidAudioRenderer_INTERFACE_DEFINED__ -#define __IMSVidAudioRenderer_INTERFACE_DEFINED__ - -/* interface IMSVidAudioRenderer */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidAudioRenderer; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("37B0353F-A4C8-11d2-B634-00C04F79498E") - IMSVidAudioRenderer : public IMSVidOutputDevice - { - public: - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Volume( - /* [in] */ long lVol) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Volume( - /* [out][retval] */ long *lVol) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Balance( - /* [in] */ long lBal) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Balance( - /* [out][retval] */ long *lBal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidAudioRendererVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidAudioRenderer * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidAudioRenderer * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidAudioRenderer * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidAudioRenderer * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidAudioRenderer * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidAudioRenderer * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidAudioRenderer * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IMSVidAudioRenderer * This, - /* [retval][out] */ BSTR *Name); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMSVidAudioRenderer * This, - /* [retval][out] */ long *Status); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Power )( - IMSVidAudioRenderer * This, - /* [in] */ VARIANT_BOOL Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Power )( - IMSVidAudioRenderer * This, - /* [out][retval] */ VARIANT_BOOL *Power); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMSVidAudioRenderer * This, - /* [retval][out] */ BSTR *Guid); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassID )( - IMSVidAudioRenderer * This, - /* [retval][out] */ BSTR *Clsid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__Category )( - IMSVidAudioRenderer * This, - /* [retval][out] */ GUID *Guid); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__ClassID )( - IMSVidAudioRenderer * This, - /* [retval][out] */ GUID *Clsid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsEqualDevice )( - IMSVidAudioRenderer * This, - /* [in] */ IMSVidDevice *Device, - /* [retval][out] */ VARIANT_BOOL *IsEqual); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Volume )( - IMSVidAudioRenderer * This, - /* [in] */ long lVol); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Volume )( - IMSVidAudioRenderer * This, - /* [out][retval] */ long *lVol); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Balance )( - IMSVidAudioRenderer * This, - /* [in] */ long lBal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Balance )( - IMSVidAudioRenderer * This, - /* [out][retval] */ long *lBal); - - END_INTERFACE - } IMSVidAudioRendererVtbl; - - interface IMSVidAudioRenderer - { - CONST_VTBL struct IMSVidAudioRendererVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidAudioRenderer_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidAudioRenderer_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidAudioRenderer_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidAudioRenderer_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidAudioRenderer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidAudioRenderer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidAudioRenderer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidAudioRenderer_get_Name(This,Name) \ - (This)->lpVtbl -> get_Name(This,Name) - -#define IMSVidAudioRenderer_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMSVidAudioRenderer_put_Power(This,Power) \ - (This)->lpVtbl -> put_Power(This,Power) - -#define IMSVidAudioRenderer_get_Power(This,Power) \ - (This)->lpVtbl -> get_Power(This,Power) - -#define IMSVidAudioRenderer_get_Category(This,Guid) \ - (This)->lpVtbl -> get_Category(This,Guid) - -#define IMSVidAudioRenderer_get_ClassID(This,Clsid) \ - (This)->lpVtbl -> get_ClassID(This,Clsid) - -#define IMSVidAudioRenderer_get__Category(This,Guid) \ - (This)->lpVtbl -> get__Category(This,Guid) - -#define IMSVidAudioRenderer_get__ClassID(This,Clsid) \ - (This)->lpVtbl -> get__ClassID(This,Clsid) - -#define IMSVidAudioRenderer_IsEqualDevice(This,Device,IsEqual) \ - (This)->lpVtbl -> IsEqualDevice(This,Device,IsEqual) - - - -#define IMSVidAudioRenderer_put_Volume(This,lVol) \ - (This)->lpVtbl -> put_Volume(This,lVol) - -#define IMSVidAudioRenderer_get_Volume(This,lVol) \ - (This)->lpVtbl -> get_Volume(This,lVol) - -#define IMSVidAudioRenderer_put_Balance(This,lBal) \ - (This)->lpVtbl -> put_Balance(This,lBal) - -#define IMSVidAudioRenderer_get_Balance(This,lBal) \ - (This)->lpVtbl -> get_Balance(This,lBal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidAudioRenderer_put_Volume_Proxy( - IMSVidAudioRenderer * This, - /* [in] */ long lVol); - - -void __RPC_STUB IMSVidAudioRenderer_put_Volume_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidAudioRenderer_get_Volume_Proxy( - IMSVidAudioRenderer * This, - /* [out][retval] */ long *lVol); - - -void __RPC_STUB IMSVidAudioRenderer_get_Volume_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IMSVidAudioRenderer_put_Balance_Proxy( - IMSVidAudioRenderer * This, - /* [in] */ long lBal); - - -void __RPC_STUB IMSVidAudioRenderer_put_Balance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidAudioRenderer_get_Balance_Proxy( - IMSVidAudioRenderer * This, - /* [out][retval] */ long *lBal); - - -void __RPC_STUB IMSVidAudioRenderer_get_Balance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidAudioRenderer_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidAudioRendererEvent_INTERFACE_DEFINED__ -#define __IMSVidAudioRendererEvent_INTERFACE_DEFINED__ - -/* interface IMSVidAudioRendererEvent */ -/* [unique][helpstring][uuid][hidden][oleautomation][object] */ - - -EXTERN_C const IID IID_IMSVidAudioRendererEvent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("37B03541-A4C8-11d2-B634-00C04F79498E") - IMSVidAudioRendererEvent : public IMSVidOutputDeviceEvent - { - public: - }; - -#else /* C style interface */ - - typedef struct IMSVidAudioRendererEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidAudioRendererEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidAudioRendererEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidAudioRendererEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidAudioRendererEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidAudioRendererEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidAudioRendererEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidAudioRendererEvent * 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] */ HRESULT ( STDMETHODCALLTYPE *StateChange )( - IMSVidAudioRendererEvent * This, - /* [in] */ IMSVidDevice *lpd, - /* [in] */ long oldState, - /* [in] */ long newState); - - END_INTERFACE - } IMSVidAudioRendererEventVtbl; - - interface IMSVidAudioRendererEvent - { - CONST_VTBL struct IMSVidAudioRendererEventVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidAudioRendererEvent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidAudioRendererEvent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidAudioRendererEvent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidAudioRendererEvent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidAudioRendererEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidAudioRendererEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidAudioRendererEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidAudioRendererEvent_StateChange(This,lpd,oldState,newState) \ - (This)->lpVtbl -> StateChange(This,lpd,oldState,newState) - - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IMSVidAudioRendererEvent_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidInputDevices_INTERFACE_DEFINED__ -#define __IMSVidInputDevices_INTERFACE_DEFINED__ - -/* interface IMSVidInputDevices */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidInputDevices; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C5702CD1-9B79-11d3-B654-00C04F79498E") - IMSVidInputDevices : public IDispatch - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *lCount) = 0; - - virtual /* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IEnumVARIANT **pD) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidInputDevice **pDB) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ IMSVidInputDevice *pDB) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT v) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidInputDevicesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidInputDevices * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidInputDevices * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidInputDevices * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidInputDevices * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidInputDevices * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidInputDevices * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidInputDevices * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - IMSVidInputDevices * This, - /* [retval][out] */ long *lCount); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - IMSVidInputDevices * This, - /* [retval][out] */ IEnumVARIANT **pD); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - IMSVidInputDevices * This, - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidInputDevice **pDB); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - IMSVidInputDevices * This, - /* [in] */ IMSVidInputDevice *pDB); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - IMSVidInputDevices * This, - /* [in] */ VARIANT v); - - END_INTERFACE - } IMSVidInputDevicesVtbl; - - interface IMSVidInputDevices - { - CONST_VTBL struct IMSVidInputDevicesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidInputDevices_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidInputDevices_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidInputDevices_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidInputDevices_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidInputDevices_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidInputDevices_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidInputDevices_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidInputDevices_get_Count(This,lCount) \ - (This)->lpVtbl -> get_Count(This,lCount) - -#define IMSVidInputDevices_get__NewEnum(This,pD) \ - (This)->lpVtbl -> get__NewEnum(This,pD) - -#define IMSVidInputDevices_get_Item(This,v,pDB) \ - (This)->lpVtbl -> get_Item(This,v,pDB) - -#define IMSVidInputDevices_Add(This,pDB) \ - (This)->lpVtbl -> Add(This,pDB) - -#define IMSVidInputDevices_Remove(This,v) \ - (This)->lpVtbl -> Remove(This,v) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidInputDevices_get_Count_Proxy( - IMSVidInputDevices * This, - /* [retval][out] */ long *lCount); - - -void __RPC_STUB IMSVidInputDevices_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidInputDevices_get__NewEnum_Proxy( - IMSVidInputDevices * This, - /* [retval][out] */ IEnumVARIANT **pD); - - -void __RPC_STUB IMSVidInputDevices_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidInputDevices_get_Item_Proxy( - IMSVidInputDevices * This, - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidInputDevice **pDB); - - -void __RPC_STUB IMSVidInputDevices_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidInputDevices_Add_Proxy( - IMSVidInputDevices * This, - /* [in] */ IMSVidInputDevice *pDB); - - -void __RPC_STUB IMSVidInputDevices_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidInputDevices_Remove_Proxy( - IMSVidInputDevices * This, - /* [in] */ VARIANT v); - - -void __RPC_STUB IMSVidInputDevices_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidInputDevices_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidOutputDevices_INTERFACE_DEFINED__ -#define __IMSVidOutputDevices_INTERFACE_DEFINED__ - -/* interface IMSVidOutputDevices */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidOutputDevices; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C5702CD2-9B79-11d3-B654-00C04F79498E") - IMSVidOutputDevices : public IDispatch - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *lCount) = 0; - - virtual /* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IEnumVARIANT **pD) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidOutputDevice **pDB) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ IMSVidOutputDevice *pDB) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT v) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidOutputDevicesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidOutputDevices * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidOutputDevices * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidOutputDevices * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidOutputDevices * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidOutputDevices * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidOutputDevices * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidOutputDevices * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - IMSVidOutputDevices * This, - /* [retval][out] */ long *lCount); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - IMSVidOutputDevices * This, - /* [retval][out] */ IEnumVARIANT **pD); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - IMSVidOutputDevices * This, - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidOutputDevice **pDB); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - IMSVidOutputDevices * This, - /* [in] */ IMSVidOutputDevice *pDB); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - IMSVidOutputDevices * This, - /* [in] */ VARIANT v); - - END_INTERFACE - } IMSVidOutputDevicesVtbl; - - interface IMSVidOutputDevices - { - CONST_VTBL struct IMSVidOutputDevicesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidOutputDevices_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidOutputDevices_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidOutputDevices_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidOutputDevices_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidOutputDevices_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidOutputDevices_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidOutputDevices_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidOutputDevices_get_Count(This,lCount) \ - (This)->lpVtbl -> get_Count(This,lCount) - -#define IMSVidOutputDevices_get__NewEnum(This,pD) \ - (This)->lpVtbl -> get__NewEnum(This,pD) - -#define IMSVidOutputDevices_get_Item(This,v,pDB) \ - (This)->lpVtbl -> get_Item(This,v,pDB) - -#define IMSVidOutputDevices_Add(This,pDB) \ - (This)->lpVtbl -> Add(This,pDB) - -#define IMSVidOutputDevices_Remove(This,v) \ - (This)->lpVtbl -> Remove(This,v) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidOutputDevices_get_Count_Proxy( - IMSVidOutputDevices * This, - /* [retval][out] */ long *lCount); - - -void __RPC_STUB IMSVidOutputDevices_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidOutputDevices_get__NewEnum_Proxy( - IMSVidOutputDevices * This, - /* [retval][out] */ IEnumVARIANT **pD); - - -void __RPC_STUB IMSVidOutputDevices_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidOutputDevices_get_Item_Proxy( - IMSVidOutputDevices * This, - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidOutputDevice **pDB); - - -void __RPC_STUB IMSVidOutputDevices_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidOutputDevices_Add_Proxy( - IMSVidOutputDevices * This, - /* [in] */ IMSVidOutputDevice *pDB); - - -void __RPC_STUB IMSVidOutputDevices_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidOutputDevices_Remove_Proxy( - IMSVidOutputDevices * This, - /* [in] */ VARIANT v); - - -void __RPC_STUB IMSVidOutputDevices_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidOutputDevices_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidVideoRendererDevices_INTERFACE_DEFINED__ -#define __IMSVidVideoRendererDevices_INTERFACE_DEFINED__ - -/* interface IMSVidVideoRendererDevices */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidVideoRendererDevices; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C5702CD3-9B79-11d3-B654-00C04F79498E") - IMSVidVideoRendererDevices : public IDispatch - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *lCount) = 0; - - virtual /* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IEnumVARIANT **pD) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidVideoRenderer **pDB) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ IMSVidVideoRenderer *pDB) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT v) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidVideoRendererDevicesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidVideoRendererDevices * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidVideoRendererDevices * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidVideoRendererDevices * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidVideoRendererDevices * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidVideoRendererDevices * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidVideoRendererDevices * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidVideoRendererDevices * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - IMSVidVideoRendererDevices * This, - /* [retval][out] */ long *lCount); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - IMSVidVideoRendererDevices * This, - /* [retval][out] */ IEnumVARIANT **pD); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - IMSVidVideoRendererDevices * This, - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidVideoRenderer **pDB); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - IMSVidVideoRendererDevices * This, - /* [in] */ IMSVidVideoRenderer *pDB); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - IMSVidVideoRendererDevices * This, - /* [in] */ VARIANT v); - - END_INTERFACE - } IMSVidVideoRendererDevicesVtbl; - - interface IMSVidVideoRendererDevices - { - CONST_VTBL struct IMSVidVideoRendererDevicesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidVideoRendererDevices_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidVideoRendererDevices_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidVideoRendererDevices_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidVideoRendererDevices_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidVideoRendererDevices_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidVideoRendererDevices_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidVideoRendererDevices_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidVideoRendererDevices_get_Count(This,lCount) \ - (This)->lpVtbl -> get_Count(This,lCount) - -#define IMSVidVideoRendererDevices_get__NewEnum(This,pD) \ - (This)->lpVtbl -> get__NewEnum(This,pD) - -#define IMSVidVideoRendererDevices_get_Item(This,v,pDB) \ - (This)->lpVtbl -> get_Item(This,v,pDB) - -#define IMSVidVideoRendererDevices_Add(This,pDB) \ - (This)->lpVtbl -> Add(This,pDB) - -#define IMSVidVideoRendererDevices_Remove(This,v) \ - (This)->lpVtbl -> Remove(This,v) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRendererDevices_get_Count_Proxy( - IMSVidVideoRendererDevices * This, - /* [retval][out] */ long *lCount); - - -void __RPC_STUB IMSVidVideoRendererDevices_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRendererDevices_get__NewEnum_Proxy( - IMSVidVideoRendererDevices * This, - /* [retval][out] */ IEnumVARIANT **pD); - - -void __RPC_STUB IMSVidVideoRendererDevices_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRendererDevices_get_Item_Proxy( - IMSVidVideoRendererDevices * This, - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidVideoRenderer **pDB); - - -void __RPC_STUB IMSVidVideoRendererDevices_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRendererDevices_Add_Proxy( - IMSVidVideoRendererDevices * This, - /* [in] */ IMSVidVideoRenderer *pDB); - - -void __RPC_STUB IMSVidVideoRendererDevices_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidVideoRendererDevices_Remove_Proxy( - IMSVidVideoRendererDevices * This, - /* [in] */ VARIANT v); - - -void __RPC_STUB IMSVidVideoRendererDevices_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidVideoRendererDevices_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidAudioRendererDevices_INTERFACE_DEFINED__ -#define __IMSVidAudioRendererDevices_INTERFACE_DEFINED__ - -/* interface IMSVidAudioRendererDevices */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidAudioRendererDevices; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C5702CD4-9B79-11d3-B654-00C04F79498E") - IMSVidAudioRendererDevices : public IDispatch - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *lCount) = 0; - - virtual /* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IEnumVARIANT **pD) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidAudioRenderer **pDB) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ IMSVidAudioRenderer *pDB) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT v) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidAudioRendererDevicesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidAudioRendererDevices * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidAudioRendererDevices * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidAudioRendererDevices * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidAudioRendererDevices * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidAudioRendererDevices * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidAudioRendererDevices * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidAudioRendererDevices * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - IMSVidAudioRendererDevices * This, - /* [retval][out] */ long *lCount); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - IMSVidAudioRendererDevices * This, - /* [retval][out] */ IEnumVARIANT **pD); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - IMSVidAudioRendererDevices * This, - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidAudioRenderer **pDB); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - IMSVidAudioRendererDevices * This, - /* [in] */ IMSVidAudioRenderer *pDB); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - IMSVidAudioRendererDevices * This, - /* [in] */ VARIANT v); - - END_INTERFACE - } IMSVidAudioRendererDevicesVtbl; - - interface IMSVidAudioRendererDevices - { - CONST_VTBL struct IMSVidAudioRendererDevicesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidAudioRendererDevices_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidAudioRendererDevices_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidAudioRendererDevices_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidAudioRendererDevices_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidAudioRendererDevices_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidAudioRendererDevices_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidAudioRendererDevices_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidAudioRendererDevices_get_Count(This,lCount) \ - (This)->lpVtbl -> get_Count(This,lCount) - -#define IMSVidAudioRendererDevices_get__NewEnum(This,pD) \ - (This)->lpVtbl -> get__NewEnum(This,pD) - -#define IMSVidAudioRendererDevices_get_Item(This,v,pDB) \ - (This)->lpVtbl -> get_Item(This,v,pDB) - -#define IMSVidAudioRendererDevices_Add(This,pDB) \ - (This)->lpVtbl -> Add(This,pDB) - -#define IMSVidAudioRendererDevices_Remove(This,v) \ - (This)->lpVtbl -> Remove(This,v) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidAudioRendererDevices_get_Count_Proxy( - IMSVidAudioRendererDevices * This, - /* [retval][out] */ long *lCount); - - -void __RPC_STUB IMSVidAudioRendererDevices_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidAudioRendererDevices_get__NewEnum_Proxy( - IMSVidAudioRendererDevices * This, - /* [retval][out] */ IEnumVARIANT **pD); - - -void __RPC_STUB IMSVidAudioRendererDevices_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidAudioRendererDevices_get_Item_Proxy( - IMSVidAudioRendererDevices * This, - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidAudioRenderer **pDB); - - -void __RPC_STUB IMSVidAudioRendererDevices_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidAudioRendererDevices_Add_Proxy( - IMSVidAudioRendererDevices * This, - /* [in] */ IMSVidAudioRenderer *pDB); - - -void __RPC_STUB IMSVidAudioRendererDevices_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidAudioRendererDevices_Remove_Proxy( - IMSVidAudioRendererDevices * This, - /* [in] */ VARIANT v); - - -void __RPC_STUB IMSVidAudioRendererDevices_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidAudioRendererDevices_INTERFACE_DEFINED__ */ - - -#ifndef __IMSVidFeatures_INTERFACE_DEFINED__ -#define __IMSVidFeatures_INTERFACE_DEFINED__ - -/* interface IMSVidFeatures */ -/* [unique][helpstring][uuid][hidden][oleautomation][dual][object] */ - - -EXTERN_C const IID IID_IMSVidFeatures; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C5702CD5-9B79-11d3-B654-00C04F79498E") - IMSVidFeatures : public IDispatch - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *lCount) = 0; - - virtual /* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IEnumVARIANT **pD) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidFeature **pDB) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ IMSVidFeature *pDB) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT v) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMSVidFeaturesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMSVidFeatures * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMSVidFeatures * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMSVidFeatures * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMSVidFeatures * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMSVidFeatures * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMSVidFeatures * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMSVidFeatures * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - IMSVidFeatures * This, - /* [retval][out] */ long *lCount); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - IMSVidFeatures * This, - /* [retval][out] */ IEnumVARIANT **pD); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - IMSVidFeatures * This, - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidFeature **pDB); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - IMSVidFeatures * This, - /* [in] */ IMSVidFeature *pDB); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - IMSVidFeatures * This, - /* [in] */ VARIANT v); - - END_INTERFACE - } IMSVidFeaturesVtbl; - - interface IMSVidFeatures - { - CONST_VTBL struct IMSVidFeaturesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMSVidFeatures_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMSVidFeatures_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMSVidFeatures_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMSVidFeatures_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMSVidFeatures_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMSVidFeatures_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMSVidFeatures_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMSVidFeatures_get_Count(This,lCount) \ - (This)->lpVtbl -> get_Count(This,lCount) - -#define IMSVidFeatures_get__NewEnum(This,pD) \ - (This)->lpVtbl -> get__NewEnum(This,pD) - -#define IMSVidFeatures_get_Item(This,v,pDB) \ - (This)->lpVtbl -> get_Item(This,v,pDB) - -#define IMSVidFeatures_Add(This,pDB) \ - (This)->lpVtbl -> Add(This,pDB) - -#define IMSVidFeatures_Remove(This,v) \ - (This)->lpVtbl -> Remove(This,v) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidFeatures_get_Count_Proxy( - IMSVidFeatures * This, - /* [retval][out] */ long *lCount); - - -void __RPC_STUB IMSVidFeatures_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidFeatures_get__NewEnum_Proxy( - IMSVidFeatures * This, - /* [retval][out] */ IEnumVARIANT **pD); - - -void __RPC_STUB IMSVidFeatures_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IMSVidFeatures_get_Item_Proxy( - IMSVidFeatures * This, - /* [in] */ VARIANT v, - /* [retval][out] */ IMSVidFeature **pDB); - - -void __RPC_STUB IMSVidFeatures_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidFeatures_Add_Proxy( - IMSVidFeatures * This, - /* [in] */ IMSVidFeature *pDB); - - -void __RPC_STUB IMSVidFeatures_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE IMSVidFeatures_Remove_Proxy( - IMSVidFeatures * This, - /* [in] */ VARIANT v); - - -void __RPC_STUB IMSVidFeatures_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMSVidFeatures_INTERFACE_DEFINED__ */ - - -/* 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 HDC_UserSize( unsigned long *, unsigned long , HDC * ); -unsigned char * __RPC_USER HDC_UserMarshal( unsigned long *, unsigned char *, HDC * ); -unsigned char * __RPC_USER HDC_UserUnmarshal(unsigned long *, unsigned char *, HDC * ); -void __RPC_USER HDC_UserFree( unsigned long *, HDC * ); - -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 * ); - -unsigned long __RPC_USER VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); -void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * ); - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/activecf.h b/sdk/dx8sdk/Include/activecf.h deleted file mode 100644 index 5efd8cfc..00000000 --- a/sdk/dx8sdk/Include/activecf.h +++ /dev/null @@ -1,19 +0,0 @@ -//------------------------------------------------------------------------------ -// 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. -//------------------------------------------------------------------------------ - - -#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; - - diff --git a/sdk/dx8sdk/Include/amaudio.h b/sdk/dx8sdk/Include/amaudio.h deleted file mode 100644 index cd6d0532..00000000 --- a/sdk/dx8sdk/Include/amaudio.h +++ /dev/null @@ -1,54 +0,0 @@ -//------------------------------------------------------------------------------ -// File: AMAudio.h -// -// Desc: Audio related definitions and interfaces for ActiveMovie. -// -// Copyright (c) 1992-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef __AMAUDIO__ -#define __AMAUDIO__ - -#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 the 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 ; -}; - - -#ifdef __cplusplus -} -#endif // __cplusplus -#endif // __AMAUDIO__ - diff --git a/sdk/dx8sdk/Include/amparse.h b/sdk/dx8sdk/Include/amparse.h deleted file mode 100644 index ce7a388d..00000000 --- a/sdk/dx8sdk/Include/amparse.h +++ /dev/null @@ -1,38 +0,0 @@ -//------------------------------------------------------------------------------ -// 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__ - -#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_ - REFERENCE_TIME *prtCurrent - ) PURE; - STDMETHOD(SetParseTime) (THIS_ - REFERENCE_TIME rtCurrent - ) PURE; - STDMETHOD(Flush) (THIS) PURE; -}; - -#ifdef __cplusplus -} -#endif // __cplusplus -#endif // __AMPARSE__ diff --git a/sdk/dx8sdk/Include/amstream.h b/sdk/dx8sdk/Include/amstream.h deleted file mode 100644 index 421fb80e..00000000 --- a/sdk/dx8sdk/Include/amstream.h +++ /dev/null @@ -1,2295 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for amstream.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __amstream_h__ -#define __amstream_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IDirectShowStream_FWD_DEFINED__ -#define __IDirectShowStream_FWD_DEFINED__ -typedef interface IDirectShowStream IDirectShowStream; -#endif /* __IDirectShowStream_FWD_DEFINED__ */ - - -#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__ */ - - -#ifndef __AMMultiMediaStream_FWD_DEFINED__ -#define __AMMultiMediaStream_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AMMultiMediaStream AMMultiMediaStream; -#else -typedef struct AMMultiMediaStream AMMultiMediaStream; -#endif /* __cplusplus */ - -#endif /* __AMMultiMediaStream_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "unknwn.h" -#include "mmstream.h" -#include "strmif.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_amstream_0000 */ -/* [local] */ - -#include -#include -#include -#include -#include - - - - - - - - -enum __MIDL___MIDL_itf_amstream_0000_0001 - { AMMSF_NOGRAPHTHREAD = 0x1 - } ; - -enum __MIDL___MIDL_itf_amstream_0000_0002 - { AMMSF_ADDDEFAULTRENDERER = 0x1, - AMMSF_CREATEPEER = 0x2, - AMMSF_STOPIFNOSAMPLES = 0x4, - AMMSF_NOSTALL = 0x8 - } ; - -enum __MIDL___MIDL_itf_amstream_0000_0003 - { AMMSF_RENDERTYPEMASK = 0x3, - AMMSF_RENDERTOEXISTING = 0, - AMMSF_RENDERALLSTREAMS = 0x1, - AMMSF_NORENDER = 0x2, - AMMSF_NOCLOCK = 0x4, - AMMSF_RUN = 0x8 - } ; -typedef /* [public][public][public][public][public][v1_enum] */ -enum __MIDL___MIDL_itf_amstream_0000_0004 - { Disabled = 0, - ReadData = 1, - RenderData = 2 - } OUTPUT_STATE; - - - -extern RPC_IF_HANDLE __MIDL_itf_amstream_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_amstream_0000_v0_0_s_ifspec; - -#ifndef __IDirectShowStream_INTERFACE_DEFINED__ -#define __IDirectShowStream_INTERFACE_DEFINED__ - -/* interface IDirectShowStream */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_IDirectShowStream; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("7DB01C96-C0C3-11d0-8FF1-00C04FD9189D") - IDirectShowStream : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FileName( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FileName( - /* [in] */ BSTR newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Video( - /* [retval][out] */ OUTPUT_STATE *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Video( - /* [in] */ OUTPUT_STATE newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Audio( - /* [retval][out] */ OUTPUT_STATE *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Audio( - /* [in] */ OUTPUT_STATE newVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDirectShowStreamVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDirectShowStream * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDirectShowStream * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDirectShowStream * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDirectShowStream * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDirectShowStream * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDirectShowStream * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDirectShowStream * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileName )( - IDirectShowStream * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FileName )( - IDirectShowStream * This, - /* [in] */ BSTR newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Video )( - IDirectShowStream * This, - /* [retval][out] */ OUTPUT_STATE *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Video )( - IDirectShowStream * This, - /* [in] */ OUTPUT_STATE newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Audio )( - IDirectShowStream * This, - /* [retval][out] */ OUTPUT_STATE *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Audio )( - IDirectShowStream * This, - /* [in] */ OUTPUT_STATE newVal); - - END_INTERFACE - } IDirectShowStreamVtbl; - - interface IDirectShowStream - { - CONST_VTBL struct IDirectShowStreamVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDirectShowStream_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDirectShowStream_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDirectShowStream_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDirectShowStream_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDirectShowStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDirectShowStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDirectShowStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDirectShowStream_get_FileName(This,pVal) \ - (This)->lpVtbl -> get_FileName(This,pVal) - -#define IDirectShowStream_put_FileName(This,newVal) \ - (This)->lpVtbl -> put_FileName(This,newVal) - -#define IDirectShowStream_get_Video(This,pVal) \ - (This)->lpVtbl -> get_Video(This,pVal) - -#define IDirectShowStream_put_Video(This,newVal) \ - (This)->lpVtbl -> put_Video(This,newVal) - -#define IDirectShowStream_get_Audio(This,pVal) \ - (This)->lpVtbl -> get_Audio(This,pVal) - -#define IDirectShowStream_put_Audio(This,newVal) \ - (This)->lpVtbl -> put_Audio(This,newVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDirectShowStream_get_FileName_Proxy( - IDirectShowStream * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB IDirectShowStream_get_FileName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDirectShowStream_put_FileName_Proxy( - IDirectShowStream * This, - /* [in] */ BSTR newVal); - - -void __RPC_STUB IDirectShowStream_put_FileName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDirectShowStream_get_Video_Proxy( - IDirectShowStream * This, - /* [retval][out] */ OUTPUT_STATE *pVal); - - -void __RPC_STUB IDirectShowStream_get_Video_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDirectShowStream_put_Video_Proxy( - IDirectShowStream * This, - /* [in] */ OUTPUT_STATE newVal); - - -void __RPC_STUB IDirectShowStream_put_Video_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDirectShowStream_get_Audio_Proxy( - IDirectShowStream * This, - /* [retval][out] */ OUTPUT_STATE *pVal); - - -void __RPC_STUB IDirectShowStream_get_Audio_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDirectShowStream_put_Audio_Proxy( - IDirectShowStream * This, - /* [in] */ OUTPUT_STATE newVal); - - -void __RPC_STUB IDirectShowStream_put_Audio_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDirectShowStream_INTERFACE_DEFINED__ */ - - -#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] */ IGraphBuilder *pFilterGraph) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFilterGraph( - /* [out] */ IGraphBuilder **ppGraphBuilder) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFilter( - /* [out] */ IMediaStreamFilter **ppFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddMediaStream( - /* [in] */ IUnknown *pStreamObject, - /* [in] */ const MSPID *PurposeId, - /* [in] */ DWORD dwFlags, - /* [out] */ IMediaStream **ppNewStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE OpenFile( - /* [in] */ LPCWSTR pszFileName, - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE OpenMoniker( - /* [in] */ IBindCtx *pCtx, - /* [in] */ IMoniker *pMoniker, - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Render( - /* [in] */ DWORD dwFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMMultiMediaStreamVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMMultiMediaStream * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMMultiMediaStream * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMMultiMediaStream * This); - - HRESULT ( STDMETHODCALLTYPE *GetInformation )( - IAMMultiMediaStream * This, - /* [out] */ DWORD *pdwFlags, - /* [out] */ STREAM_TYPE *pStreamType); - - HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( - IAMMultiMediaStream * This, - /* [in] */ REFMSPID idPurpose, - /* [out] */ IMediaStream **ppMediaStream); - - HRESULT ( STDMETHODCALLTYPE *EnumMediaStreams )( - IAMMultiMediaStream * This, - /* [in] */ long Index, - /* [out] */ IMediaStream **ppMediaStream); - - HRESULT ( STDMETHODCALLTYPE *GetState )( - IAMMultiMediaStream * This, - /* [out] */ STREAM_STATE *pCurrentState); - - HRESULT ( STDMETHODCALLTYPE *SetState )( - IAMMultiMediaStream * This, - /* [in] */ STREAM_STATE NewState); - - HRESULT ( STDMETHODCALLTYPE *GetTime )( - IAMMultiMediaStream * This, - /* [out] */ STREAM_TIME *pCurrentTime); - - HRESULT ( STDMETHODCALLTYPE *GetDuration )( - IAMMultiMediaStream * This, - /* [out] */ STREAM_TIME *pDuration); - - HRESULT ( STDMETHODCALLTYPE *Seek )( - IAMMultiMediaStream * This, - /* [in] */ STREAM_TIME SeekTime); - - HRESULT ( STDMETHODCALLTYPE *GetEndOfStreamEventHandle )( - IAMMultiMediaStream * This, - /* [out] */ HANDLE *phEOS); - - HRESULT ( STDMETHODCALLTYPE *Initialize )( - IAMMultiMediaStream * This, - /* [in] */ STREAM_TYPE StreamType, - /* [in] */ DWORD dwFlags, - /* [in] */ IGraphBuilder *pFilterGraph); - - HRESULT ( STDMETHODCALLTYPE *GetFilterGraph )( - IAMMultiMediaStream * This, - /* [out] */ IGraphBuilder **ppGraphBuilder); - - HRESULT ( STDMETHODCALLTYPE *GetFilter )( - IAMMultiMediaStream * This, - /* [out] */ IMediaStreamFilter **ppFilter); - - HRESULT ( STDMETHODCALLTYPE *AddMediaStream )( - IAMMultiMediaStream * This, - /* [in] */ IUnknown *pStreamObject, - /* [in] */ const MSPID *PurposeId, - /* [in] */ DWORD dwFlags, - /* [out] */ IMediaStream **ppNewStream); - - HRESULT ( STDMETHODCALLTYPE *OpenFile )( - IAMMultiMediaStream * This, - /* [in] */ LPCWSTR pszFileName, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *OpenMoniker )( - IAMMultiMediaStream * This, - /* [in] */ IBindCtx *pCtx, - /* [in] */ IMoniker *pMoniker, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *Render )( - 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 */ - - - -HRESULT STDMETHODCALLTYPE IAMMultiMediaStream_Initialize_Proxy( - IAMMultiMediaStream * This, - /* [in] */ STREAM_TYPE StreamType, - /* [in] */ DWORD dwFlags, - /* [in] */ IGraphBuilder *pFilterGraph); - - -void __RPC_STUB IAMMultiMediaStream_Initialize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMultiMediaStream_GetFilterGraph_Proxy( - IAMMultiMediaStream * This, - /* [out] */ IGraphBuilder **ppGraphBuilder); - - -void __RPC_STUB IAMMultiMediaStream_GetFilterGraph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMultiMediaStream_GetFilter_Proxy( - IAMMultiMediaStream * This, - /* [out] */ IMediaStreamFilter **ppFilter); - - -void __RPC_STUB IAMMultiMediaStream_GetFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMultiMediaStream_AddMediaStream_Proxy( - IAMMultiMediaStream * This, - /* [in] */ IUnknown *pStreamObject, - /* [in] */ const MSPID *PurposeId, - /* [in] */ DWORD dwFlags, - /* [out] */ IMediaStream **ppNewStream); - - -void __RPC_STUB IAMMultiMediaStream_AddMediaStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMultiMediaStream_OpenFile_Proxy( - IAMMultiMediaStream * This, - /* [in] */ LPCWSTR pszFileName, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IAMMultiMediaStream_OpenFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMultiMediaStream_OpenMoniker_Proxy( - IAMMultiMediaStream * This, - /* [in] */ IBindCtx *pCtx, - /* [in] */ IMoniker *pMoniker, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IAMMultiMediaStream_OpenMoniker_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMultiMediaStream_Render_Proxy( - IAMMultiMediaStream * This, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IAMMultiMediaStream_Render_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ IUnknown *pSourceObject, - /* [in] */ DWORD dwFlags, - /* [in] */ REFMSPID PurposeId, - /* [in] */ const STREAM_TYPE StreamType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetState( - /* [in] */ FILTER_STATE State) = 0; - - virtual HRESULT STDMETHODCALLTYPE JoinAMMultiMediaStream( - /* [in] */ IAMMultiMediaStream *pAMMultiMediaStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE JoinFilter( - /* [in] */ IMediaStreamFilter *pMediaStreamFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE JoinFilterGraph( - /* [in] */ IFilterGraph *pFilterGraph) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMMediaStreamVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMMediaStream * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMMediaStream * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMMediaStream * This); - - HRESULT ( STDMETHODCALLTYPE *GetMultiMediaStream )( - IAMMediaStream * This, - /* [out] */ IMultiMediaStream **ppMultiMediaStream); - - HRESULT ( STDMETHODCALLTYPE *GetInformation )( - IAMMediaStream * This, - /* [out] */ MSPID *pPurposeId, - /* [out] */ STREAM_TYPE *pType); - - HRESULT ( STDMETHODCALLTYPE *SetSameFormat )( - IAMMediaStream * This, - /* [in] */ IMediaStream *pStreamThatHasDesiredFormat, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *AllocateSample )( - IAMMediaStream * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppSample); - - HRESULT ( STDMETHODCALLTYPE *CreateSharedSample )( - IAMMediaStream * This, - /* [in] */ IStreamSample *pExistingSample, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppNewSample); - - HRESULT ( STDMETHODCALLTYPE *SendEndOfStream )( - IAMMediaStream * This, - DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *Initialize )( - IAMMediaStream * This, - /* [in] */ IUnknown *pSourceObject, - /* [in] */ DWORD dwFlags, - /* [in] */ REFMSPID PurposeId, - /* [in] */ const STREAM_TYPE StreamType); - - HRESULT ( STDMETHODCALLTYPE *SetState )( - IAMMediaStream * This, - /* [in] */ FILTER_STATE State); - - HRESULT ( STDMETHODCALLTYPE *JoinAMMultiMediaStream )( - IAMMediaStream * This, - /* [in] */ IAMMultiMediaStream *pAMMultiMediaStream); - - HRESULT ( STDMETHODCALLTYPE *JoinFilter )( - IAMMediaStream * This, - /* [in] */ IMediaStreamFilter *pMediaStreamFilter); - - HRESULT ( STDMETHODCALLTYPE *JoinFilterGraph )( - IAMMediaStream * This, - /* [in] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IAMMediaStream_Initialize_Proxy( - IAMMediaStream * This, - /* [in] */ IUnknown *pSourceObject, - /* [in] */ DWORD dwFlags, - /* [in] */ REFMSPID PurposeId, - /* [in] */ const STREAM_TYPE StreamType); - - -void __RPC_STUB IAMMediaStream_Initialize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaStream_SetState_Proxy( - IAMMediaStream * This, - /* [in] */ FILTER_STATE State); - - -void __RPC_STUB IAMMediaStream_SetState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaStream_JoinAMMultiMediaStream_Proxy( - IAMMediaStream * This, - /* [in] */ IAMMultiMediaStream *pAMMultiMediaStream); - - -void __RPC_STUB IAMMediaStream_JoinAMMultiMediaStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaStream_JoinFilter_Proxy( - IAMMediaStream * This, - /* [in] */ IMediaStreamFilter *pMediaStreamFilter); - - -void __RPC_STUB IAMMediaStream_JoinFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaStream_JoinFilterGraph_Proxy( - IAMMediaStream * This, - /* [in] */ IFilterGraph *pFilterGraph); - - -void __RPC_STUB IAMMediaStream_JoinFilterGraph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaStreamFilter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaStreamFilter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaStreamFilter * This); - - HRESULT ( STDMETHODCALLTYPE *GetClassID )( - IMediaStreamFilter * This, - /* [out] */ CLSID *pClassID); - - HRESULT ( STDMETHODCALLTYPE *Stop )( - IMediaStreamFilter * This); - - HRESULT ( STDMETHODCALLTYPE *Pause )( - IMediaStreamFilter * This); - - HRESULT ( STDMETHODCALLTYPE *Run )( - IMediaStreamFilter * This, - REFERENCE_TIME tStart); - - HRESULT ( STDMETHODCALLTYPE *GetState )( - IMediaStreamFilter * This, - /* [in] */ DWORD dwMilliSecsTimeout, - /* [out] */ FILTER_STATE *State); - - HRESULT ( STDMETHODCALLTYPE *SetSyncSource )( - IMediaStreamFilter * This, - /* [in] */ IReferenceClock *pClock); - - HRESULT ( STDMETHODCALLTYPE *GetSyncSource )( - IMediaStreamFilter * This, - /* [out] */ IReferenceClock **pClock); - - HRESULT ( STDMETHODCALLTYPE *EnumPins )( - IMediaStreamFilter * This, - /* [out] */ IEnumPins **ppEnum); - - HRESULT ( STDMETHODCALLTYPE *FindPin )( - IMediaStreamFilter * This, - /* [string][in] */ LPCWSTR Id, - /* [out] */ IPin **ppPin); - - HRESULT ( STDMETHODCALLTYPE *QueryFilterInfo )( - IMediaStreamFilter * This, - /* [out] */ FILTER_INFO *pInfo); - - HRESULT ( STDMETHODCALLTYPE *JoinFilterGraph )( - IMediaStreamFilter * This, - /* [in] */ IFilterGraph *pGraph, - /* [string][in] */ LPCWSTR pName); - - HRESULT ( STDMETHODCALLTYPE *QueryVendorInfo )( - IMediaStreamFilter * This, - /* [string][out] */ LPWSTR *pVendorInfo); - - HRESULT ( STDMETHODCALLTYPE *AddMediaStream )( - IMediaStreamFilter * This, - /* [in] */ IAMMediaStream *pAMMediaStream); - - HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( - IMediaStreamFilter * This, - /* [in] */ REFMSPID idPurpose, - /* [out] */ IMediaStream **ppMediaStream); - - HRESULT ( STDMETHODCALLTYPE *EnumMediaStreams )( - IMediaStreamFilter * This, - /* [in] */ long Index, - /* [out] */ IMediaStream **ppMediaStream); - - HRESULT ( STDMETHODCALLTYPE *SupportSeeking )( - IMediaStreamFilter * This, - /* [in] */ BOOL bRenderer); - - HRESULT ( STDMETHODCALLTYPE *ReferenceTimeToStreamTime )( - IMediaStreamFilter * This, - /* [out][in] */ REFERENCE_TIME *pTime); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentStreamTime )( - IMediaStreamFilter * This, - /* [out] */ REFERENCE_TIME *pCurrentStreamTime); - - HRESULT ( STDMETHODCALLTYPE *WaitUntil )( - IMediaStreamFilter * This, - /* [in] */ REFERENCE_TIME WaitStreamTime); - - HRESULT ( STDMETHODCALLTYPE *Flush )( - IMediaStreamFilter * This, - /* [in] */ BOOL bCancelEOS); - - 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 */ - - - -HRESULT STDMETHODCALLTYPE IMediaStreamFilter_AddMediaStream_Proxy( - IMediaStreamFilter * This, - /* [in] */ IAMMediaStream *pAMMediaStream); - - -void __RPC_STUB IMediaStreamFilter_AddMediaStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStreamFilter_GetMediaStream_Proxy( - IMediaStreamFilter * This, - /* [in] */ REFMSPID idPurpose, - /* [out] */ IMediaStream **ppMediaStream); - - -void __RPC_STUB IMediaStreamFilter_GetMediaStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStreamFilter_EnumMediaStreams_Proxy( - IMediaStreamFilter * This, - /* [in] */ long Index, - /* [out] */ IMediaStream **ppMediaStream); - - -void __RPC_STUB IMediaStreamFilter_EnumMediaStreams_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStreamFilter_SupportSeeking_Proxy( - IMediaStreamFilter * This, - /* [in] */ BOOL bRenderer); - - -void __RPC_STUB IMediaStreamFilter_SupportSeeking_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStreamFilter_ReferenceTimeToStreamTime_Proxy( - IMediaStreamFilter * This, - /* [out][in] */ REFERENCE_TIME *pTime); - - -void __RPC_STUB IMediaStreamFilter_ReferenceTimeToStreamTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStreamFilter_GetCurrentStreamTime_Proxy( - IMediaStreamFilter * This, - /* [out] */ REFERENCE_TIME *pCurrentStreamTime); - - -void __RPC_STUB IMediaStreamFilter_GetCurrentStreamTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStreamFilter_WaitUntil_Proxy( - IMediaStreamFilter * This, - /* [in] */ REFERENCE_TIME WaitStreamTime); - - -void __RPC_STUB IMediaStreamFilter_WaitUntil_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStreamFilter_Flush_Proxy( - IMediaStreamFilter * This, - /* [in] */ BOOL bCancelEOS); - - -void __RPC_STUB IMediaStreamFilter_Flush_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStreamFilter_EndOfStream_Proxy( - IMediaStreamFilter * This); - - -void __RPC_STUB IMediaStreamFilter_EndOfStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDirectDrawMediaSampleAllocator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDirectDrawMediaSampleAllocator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDirectDrawMediaSampleAllocator * This); - - 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 */ - - - -HRESULT STDMETHODCALLTYPE IDirectDrawMediaSampleAllocator_GetDirectDraw_Proxy( - IDirectDrawMediaSampleAllocator * This, - IDirectDraw **ppDirectDraw); - - -void __RPC_STUB IDirectDrawMediaSampleAllocator_GetDirectDraw_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDirectDrawMediaSample * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDirectDrawMediaSample * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDirectDrawMediaSample * This); - - HRESULT ( STDMETHODCALLTYPE *GetSurfaceAndReleaseLock )( - IDirectDrawMediaSample * This, - /* [out] */ IDirectDrawSurface **ppDirectDrawSurface, - /* [out] */ RECT *pRect); - - 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 */ - - - -HRESULT STDMETHODCALLTYPE IDirectDrawMediaSample_GetSurfaceAndReleaseLock_Proxy( - IDirectDrawMediaSample * This, - /* [out] */ IDirectDrawSurface **ppDirectDrawSurface, - /* [out] */ RECT *pRect); - - -void __RPC_STUB IDirectDrawMediaSample_GetSurfaceAndReleaseLock_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDirectDrawMediaSample_LockMediaSamplePointer_Proxy( - IDirectDrawMediaSample * This); - - -void __RPC_STUB IDirectDrawMediaSample_LockMediaSamplePointer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMMediaTypeStream * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMMediaTypeStream * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMMediaTypeStream * This); - - HRESULT ( STDMETHODCALLTYPE *GetMultiMediaStream )( - IAMMediaTypeStream * This, - /* [out] */ IMultiMediaStream **ppMultiMediaStream); - - HRESULT ( STDMETHODCALLTYPE *GetInformation )( - IAMMediaTypeStream * This, - /* [out] */ MSPID *pPurposeId, - /* [out] */ STREAM_TYPE *pType); - - HRESULT ( STDMETHODCALLTYPE *SetSameFormat )( - IAMMediaTypeStream * This, - /* [in] */ IMediaStream *pStreamThatHasDesiredFormat, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *AllocateSample )( - IAMMediaTypeStream * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppSample); - - HRESULT ( STDMETHODCALLTYPE *CreateSharedSample )( - IAMMediaTypeStream * This, - /* [in] */ IStreamSample *pExistingSample, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppNewSample); - - HRESULT ( STDMETHODCALLTYPE *SendEndOfStream )( - IAMMediaTypeStream * This, - DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *GetFormat )( - IAMMediaTypeStream * This, - /* [out] */ AM_MEDIA_TYPE *pMediaType, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *SetFormat )( - IAMMediaTypeStream * This, - /* [in] */ AM_MEDIA_TYPE *pMediaType, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *CreateSample )( - IAMMediaTypeStream * This, - /* [in] */ long lSampleSize, - /* [in] */ BYTE *pbBuffer, - /* [in] */ DWORD dwFlags, - /* [in] */ IUnknown *pUnkOuter, - /* [out] */ IAMMediaTypeSample **ppAMMediaTypeSample); - - HRESULT ( STDMETHODCALLTYPE *GetStreamAllocatorRequirements )( - IAMMediaTypeStream * This, - /* [out] */ ALLOCATOR_PROPERTIES *pProps); - - 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 */ - - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeStream_GetFormat_Proxy( - IAMMediaTypeStream * This, - /* [out] */ AM_MEDIA_TYPE *pMediaType, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IAMMediaTypeStream_GetFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeStream_SetFormat_Proxy( - IAMMediaTypeStream * This, - /* [in] */ AM_MEDIA_TYPE *pMediaType, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IAMMediaTypeStream_SetFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeStream_CreateSample_Proxy( - IAMMediaTypeStream * This, - /* [in] */ long lSampleSize, - /* [in] */ BYTE *pbBuffer, - /* [in] */ DWORD dwFlags, - /* [in] */ IUnknown *pUnkOuter, - /* [out] */ IAMMediaTypeSample **ppAMMediaTypeSample); - - -void __RPC_STUB IAMMediaTypeStream_CreateSample_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeStream_GetStreamAllocatorRequirements_Proxy( - IAMMediaTypeStream * This, - /* [out] */ ALLOCATOR_PROPERTIES *pProps); - - -void __RPC_STUB IAMMediaTypeStream_GetStreamAllocatorRequirements_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeStream_SetStreamAllocatorRequirements_Proxy( - IAMMediaTypeStream * This, - /* [in] */ ALLOCATOR_PROPERTIES *pProps); - - -void __RPC_STUB IAMMediaTypeStream_SetStreamAllocatorRequirements_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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( - /* [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_0020) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMediaType( - AM_MEDIA_TYPE **ppMediaType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMediaType( - 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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMMediaTypeSample * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMMediaTypeSample * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMMediaTypeSample * This); - - HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( - IAMMediaTypeSample * This, - /* [in] */ IMediaStream **ppMediaStream); - - HRESULT ( STDMETHODCALLTYPE *GetSampleTimes )( - IAMMediaTypeSample * This, - /* [out] */ STREAM_TIME *pStartTime, - /* [out] */ STREAM_TIME *pEndTime, - /* [out] */ STREAM_TIME *pCurrentTime); - - HRESULT ( STDMETHODCALLTYPE *SetSampleTimes )( - IAMMediaTypeSample * This, - /* [in] */ const STREAM_TIME *pStartTime, - /* [in] */ const STREAM_TIME *pEndTime); - - HRESULT ( STDMETHODCALLTYPE *Update )( - IAMMediaTypeSample * This, - /* [in] */ DWORD dwFlags, - /* [in] */ HANDLE hEvent, - /* [in] */ PAPCFUNC pfnAPC, - /* [in] */ DWORD_PTR dwAPCData); - - HRESULT ( STDMETHODCALLTYPE *CompletionStatus )( - IAMMediaTypeSample * This, - /* [in] */ DWORD dwFlags, - /* [in] */ DWORD dwMilliseconds); - - HRESULT ( STDMETHODCALLTYPE *SetPointer )( - IAMMediaTypeSample * This, - /* [in] */ BYTE *pBuffer, - /* [in] */ long lSize); - - HRESULT ( STDMETHODCALLTYPE *GetPointer )( - IAMMediaTypeSample * This, - /* [out] */ BYTE **ppBuffer); - - long ( STDMETHODCALLTYPE *GetSize )( - IAMMediaTypeSample * This); - - HRESULT ( STDMETHODCALLTYPE *GetTime )( - IAMMediaTypeSample * This, - /* [out] */ REFERENCE_TIME *pTimeStart, - /* [out] */ REFERENCE_TIME *pTimeEnd); - - HRESULT ( STDMETHODCALLTYPE *SetTime )( - IAMMediaTypeSample * This, - /* [in] */ REFERENCE_TIME *pTimeStart, - /* [in] */ REFERENCE_TIME *pTimeEnd); - - HRESULT ( STDMETHODCALLTYPE *IsSyncPoint )( - IAMMediaTypeSample * This); - - HRESULT ( STDMETHODCALLTYPE *SetSyncPoint )( - IAMMediaTypeSample * This, - BOOL bIsSyncPoint); - - HRESULT ( STDMETHODCALLTYPE *IsPreroll )( - IAMMediaTypeSample * This); - - HRESULT ( STDMETHODCALLTYPE *SetPreroll )( - IAMMediaTypeSample * This, - BOOL bIsPreroll); - - long ( STDMETHODCALLTYPE *GetActualDataLength )( - IAMMediaTypeSample * This); - - HRESULT ( STDMETHODCALLTYPE *SetActualDataLength )( - IAMMediaTypeSample * This, - long __MIDL_0020); - - HRESULT ( STDMETHODCALLTYPE *GetMediaType )( - IAMMediaTypeSample * This, - AM_MEDIA_TYPE **ppMediaType); - - HRESULT ( STDMETHODCALLTYPE *SetMediaType )( - IAMMediaTypeSample * This, - AM_MEDIA_TYPE *pMediaType); - - HRESULT ( STDMETHODCALLTYPE *IsDiscontinuity )( - IAMMediaTypeSample * This); - - HRESULT ( STDMETHODCALLTYPE *SetDiscontinuity )( - IAMMediaTypeSample * This, - BOOL bDiscontinuity); - - HRESULT ( STDMETHODCALLTYPE *GetMediaTime )( - IAMMediaTypeSample * This, - /* [out] */ LONGLONG *pTimeStart, - /* [out] */ LONGLONG *pTimeEnd); - - 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_0020) \ - (This)->lpVtbl -> SetActualDataLength(This,__MIDL_0020) - -#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 */ - - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_SetPointer_Proxy( - IAMMediaTypeSample * This, - /* [in] */ BYTE *pBuffer, - /* [in] */ long lSize); - - -void __RPC_STUB IAMMediaTypeSample_SetPointer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_GetPointer_Proxy( - IAMMediaTypeSample * This, - /* [out] */ BYTE **ppBuffer); - - -void __RPC_STUB IAMMediaTypeSample_GetPointer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -long STDMETHODCALLTYPE IAMMediaTypeSample_GetSize_Proxy( - IAMMediaTypeSample * This); - - -void __RPC_STUB IAMMediaTypeSample_GetSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_GetTime_Proxy( - IAMMediaTypeSample * This, - /* [out] */ REFERENCE_TIME *pTimeStart, - /* [out] */ REFERENCE_TIME *pTimeEnd); - - -void __RPC_STUB IAMMediaTypeSample_GetTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_SetTime_Proxy( - IAMMediaTypeSample * This, - /* [in] */ REFERENCE_TIME *pTimeStart, - /* [in] */ REFERENCE_TIME *pTimeEnd); - - -void __RPC_STUB IAMMediaTypeSample_SetTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_IsSyncPoint_Proxy( - IAMMediaTypeSample * This); - - -void __RPC_STUB IAMMediaTypeSample_IsSyncPoint_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_SetSyncPoint_Proxy( - IAMMediaTypeSample * This, - BOOL bIsSyncPoint); - - -void __RPC_STUB IAMMediaTypeSample_SetSyncPoint_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_IsPreroll_Proxy( - IAMMediaTypeSample * This); - - -void __RPC_STUB IAMMediaTypeSample_IsPreroll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_SetPreroll_Proxy( - IAMMediaTypeSample * This, - BOOL bIsPreroll); - - -void __RPC_STUB IAMMediaTypeSample_SetPreroll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -long STDMETHODCALLTYPE IAMMediaTypeSample_GetActualDataLength_Proxy( - IAMMediaTypeSample * This); - - -void __RPC_STUB IAMMediaTypeSample_GetActualDataLength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_SetActualDataLength_Proxy( - IAMMediaTypeSample * This, - long __MIDL_0020); - - -void __RPC_STUB IAMMediaTypeSample_SetActualDataLength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_GetMediaType_Proxy( - IAMMediaTypeSample * This, - AM_MEDIA_TYPE **ppMediaType); - - -void __RPC_STUB IAMMediaTypeSample_GetMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_SetMediaType_Proxy( - IAMMediaTypeSample * This, - AM_MEDIA_TYPE *pMediaType); - - -void __RPC_STUB IAMMediaTypeSample_SetMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_IsDiscontinuity_Proxy( - IAMMediaTypeSample * This); - - -void __RPC_STUB IAMMediaTypeSample_IsDiscontinuity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_SetDiscontinuity_Proxy( - IAMMediaTypeSample * This, - BOOL bDiscontinuity); - - -void __RPC_STUB IAMMediaTypeSample_SetDiscontinuity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_GetMediaTime_Proxy( - IAMMediaTypeSample * This, - /* [out] */ LONGLONG *pTimeStart, - /* [out] */ LONGLONG *pTimeEnd); - - -void __RPC_STUB IAMMediaTypeSample_GetMediaTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMMediaTypeSample_SetMediaTime_Proxy( - IAMMediaTypeSample * This, - /* [in] */ LONGLONG *pTimeStart, - /* [in] */ LONGLONG *pTimeEnd); - - -void __RPC_STUB IAMMediaTypeSample_SetMediaTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMMediaTypeSample_INTERFACE_DEFINED__ */ - - - -#ifndef __DirectShowStreamLib_LIBRARY_DEFINED__ -#define __DirectShowStreamLib_LIBRARY_DEFINED__ - -/* library DirectShowStreamLib */ -/* [helpstring][version][uuid] */ - - -EXTERN_C const IID LIBID_DirectShowStreamLib; - -EXTERN_C const CLSID CLSID_AMMultiMediaStream; - -#ifdef __cplusplus - -class DECLSPEC_UUID("49c47ce5-9ba4-11d0-8212-00c04fc32c45") -AMMultiMediaStream; -#endif -#endif /* __DirectShowStreamLib_LIBRARY_DEFINED__ */ - -/* interface __MIDL_itf_amstream_0418 */ -/* [local] */ - -#ifndef __cplusplus -EXTERN_C const CLSID CLSID_AMMultiMediaStream; -#endif -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); - - -extern RPC_IF_HANDLE __MIDL_itf_amstream_0418_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_amstream_0418_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 * ); - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/amva.h b/sdk/dx8sdk/Include/amva.h deleted file mode 100644 index fd46164f..00000000 --- a/sdk/dx8sdk/Include/amva.h +++ /dev/null @@ -1,85 +0,0 @@ -//------------------------------------------------------------------------------ -// File: AMVA.h -// -// Desc: DirectShowMotionComp include file. -// -// Copyright (c) 1997-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef __AMVA_INCLUDED__ -#define __AMVA_INCLUDED__ - -#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 // _AMVA_INCLUDED diff --git a/sdk/dx8sdk/Include/atsmedia.h b/sdk/dx8sdk/Include/atsmedia.h deleted file mode 100644 index 3e268a55..00000000 --- a/sdk/dx8sdk/Include/atsmedia.h +++ /dev/null @@ -1,34 +0,0 @@ -//------------------------------------------------------------------------------ -// File: ATSMedia.h -// -// Desc: Broadcast Driver Architecture Media Definitions for ATSC -// -// Copyright (c) 1996-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#if !defined(_KSMEDIA_) -#error KSMEDIA.H must be included before BDAMEDIA.H -#endif // !defined(_KSMEDIA_) - -#if !defined(_BDAMEDIA_) -#error BDAMEDIA.H must be included before ATSCMEDIA.H -#endif // !defined(_KSMEDIA_) - -#if !defined(_ATSCMEDIA_) -#define _ATSCMEDIA_ - - -//=========================================================================== -// -// ATSC Network Type -// -//=========================================================================== - -#define STATIC_BDANETWORKTYPE_ATSC\ - 0x71985f51, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F51-1CA1-11d3-9CC8-00C04F7971E0", BDANETWORKTYPE_ATSC); -#define BDANETWORKTYPE_ATSC DEFINE_GUIDNAMED(BDANETWORKTYPE_ATSC) - - -#endif // _ATSCMEDIA_ diff --git a/sdk/dx8sdk/Include/audevcod.h b/sdk/dx8sdk/Include/audevcod.h deleted file mode 100644 index 98dfbfc2..00000000 --- a/sdk/dx8sdk/Include/audevcod.h +++ /dev/null @@ -1,53 +0,0 @@ -//------------------------------------------------------------------------------ -// 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__ - - -#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 // __AUDEVCOD__ diff --git a/sdk/dx8sdk/Include/austream.h b/sdk/dx8sdk/Include/austream.h deleted file mode 100644 index b6ed5c27..00000000 --- a/sdk/dx8sdk/Include/austream.h +++ /dev/null @@ -1,715 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for austream.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __austream_h__ -#define __austream_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#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 - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_austream_0000 */ -/* [local] */ - -// -// 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_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_austream_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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAudioMediaStream * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAudioMediaStream * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAudioMediaStream * This); - - HRESULT ( STDMETHODCALLTYPE *GetMultiMediaStream )( - IAudioMediaStream * This, - /* [out] */ IMultiMediaStream **ppMultiMediaStream); - - HRESULT ( STDMETHODCALLTYPE *GetInformation )( - IAudioMediaStream * This, - /* [out] */ MSPID *pPurposeId, - /* [out] */ STREAM_TYPE *pType); - - HRESULT ( STDMETHODCALLTYPE *SetSameFormat )( - IAudioMediaStream * This, - /* [in] */ IMediaStream *pStreamThatHasDesiredFormat, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *AllocateSample )( - IAudioMediaStream * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppSample); - - HRESULT ( STDMETHODCALLTYPE *CreateSharedSample )( - IAudioMediaStream * This, - /* [in] */ IStreamSample *pExistingSample, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppNewSample); - - HRESULT ( STDMETHODCALLTYPE *SendEndOfStream )( - IAudioMediaStream * This, - DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *GetFormat )( - IAudioMediaStream * This, - /* [out] */ WAVEFORMATEX *pWaveFormatCurrent); - - HRESULT ( STDMETHODCALLTYPE *SetFormat )( - IAudioMediaStream * This, - /* [in] */ const WAVEFORMATEX *lpWaveFormat); - - 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 */ - - - -HRESULT STDMETHODCALLTYPE IAudioMediaStream_GetFormat_Proxy( - IAudioMediaStream * This, - /* [out] */ WAVEFORMATEX *pWaveFormatCurrent); - - -void __RPC_STUB IAudioMediaStream_GetFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAudioMediaStream_SetFormat_Proxy( - IAudioMediaStream * This, - /* [in] */ const WAVEFORMATEX *lpWaveFormat); - - -void __RPC_STUB IAudioMediaStream_SetFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAudioMediaStream_CreateSample_Proxy( - IAudioMediaStream * This, - /* [in] */ IAudioData *pAudioData, - /* [in] */ DWORD dwFlags, - /* [out] */ IAudioStreamSample **ppSample); - - -void __RPC_STUB IAudioMediaStream_CreateSample_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAudioStreamSample * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAudioStreamSample * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAudioStreamSample * This); - - HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( - IAudioStreamSample * This, - /* [in] */ IMediaStream **ppMediaStream); - - HRESULT ( STDMETHODCALLTYPE *GetSampleTimes )( - IAudioStreamSample * This, - /* [out] */ STREAM_TIME *pStartTime, - /* [out] */ STREAM_TIME *pEndTime, - /* [out] */ STREAM_TIME *pCurrentTime); - - HRESULT ( STDMETHODCALLTYPE *SetSampleTimes )( - IAudioStreamSample * This, - /* [in] */ const STREAM_TIME *pStartTime, - /* [in] */ const STREAM_TIME *pEndTime); - - HRESULT ( STDMETHODCALLTYPE *Update )( - IAudioStreamSample * This, - /* [in] */ DWORD dwFlags, - /* [in] */ HANDLE hEvent, - /* [in] */ PAPCFUNC pfnAPC, - /* [in] */ DWORD_PTR dwAPCData); - - HRESULT ( STDMETHODCALLTYPE *CompletionStatus )( - IAudioStreamSample * This, - /* [in] */ DWORD dwFlags, - /* [in] */ DWORD dwMilliseconds); - - 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 */ - - - -HRESULT STDMETHODCALLTYPE IAudioStreamSample_GetAudioData_Proxy( - IAudioStreamSample * This, - /* [out] */ IAudioData **ppAudio); - - -void __RPC_STUB IAudioStreamSample_GetAudioData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMemoryData * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMemoryData * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMemoryData * This); - - HRESULT ( STDMETHODCALLTYPE *SetBuffer )( - IMemoryData * This, - /* [in] */ DWORD cbSize, - /* [in] */ BYTE *pbData, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *GetInfo )( - IMemoryData * This, - /* [out] */ DWORD *pdwLength, - /* [out] */ BYTE **ppbData, - /* [out] */ DWORD *pcbActualData); - - 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 */ - - - -HRESULT STDMETHODCALLTYPE IMemoryData_SetBuffer_Proxy( - IMemoryData * This, - /* [in] */ DWORD cbSize, - /* [in] */ BYTE *pbData, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IMemoryData_SetBuffer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemoryData_GetInfo_Proxy( - IMemoryData * This, - /* [out] */ DWORD *pdwLength, - /* [out] */ BYTE **ppbData, - /* [out] */ DWORD *pcbActualData); - - -void __RPC_STUB IMemoryData_GetInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemoryData_SetActual_Proxy( - IMemoryData * This, - /* [in] */ DWORD cbDataValid); - - -void __RPC_STUB IMemoryData_SetActual_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAudioData * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAudioData * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAudioData * This); - - HRESULT ( STDMETHODCALLTYPE *SetBuffer )( - IAudioData * This, - /* [in] */ DWORD cbSize, - /* [in] */ BYTE *pbData, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *GetInfo )( - IAudioData * This, - /* [out] */ DWORD *pdwLength, - /* [out] */ BYTE **ppbData, - /* [out] */ DWORD *pcbActualData); - - HRESULT ( STDMETHODCALLTYPE *SetActual )( - IAudioData * This, - /* [in] */ DWORD cbDataValid); - - HRESULT ( STDMETHODCALLTYPE *GetFormat )( - IAudioData * This, - /* [out] */ WAVEFORMATEX *pWaveFormatCurrent); - - 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 */ - - - -HRESULT STDMETHODCALLTYPE IAudioData_GetFormat_Proxy( - IAudioData * This, - /* [out] */ WAVEFORMATEX *pWaveFormatCurrent); - - -void __RPC_STUB IAudioData_GetFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAudioData_SetFormat_Proxy( - IAudioData * This, - /* [in] */ const WAVEFORMATEX *lpWaveFormat); - - -void __RPC_STUB IAudioData_SetFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAudioData_INTERFACE_DEFINED__ */ - - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/aviriff.h b/sdk/dx8sdk/Include/aviriff.h deleted file mode 100644 index 5ba2990c..00000000 --- a/sdk/dx8sdk/Include/aviriff.h +++ /dev/null @@ -1,402 +0,0 @@ -//------------------------------------------------------------------------------ -// 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. -//------------------------------------------------------------------------------ - -// Disable some compiler warnings -#pragma warning(disable: 4097 4511 4512 4514 4705) - - -#if !defined AVIRIFF_H -#define AVIRIFF_H - -#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; - -#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 diff --git a/sdk/dx8sdk/Include/bdaiface.h b/sdk/dx8sdk/Include/bdaiface.h deleted file mode 100644 index 5b149029..00000000 --- a/sdk/dx8sdk/Include/bdaiface.h +++ /dev/null @@ -1,4096 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for bdaiface.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __bdaiface_h__ -#define __bdaiface_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#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_AutoDemodulate_FWD_DEFINED__ -#define __IBDA_AutoDemodulate_FWD_DEFINED__ -typedef interface IBDA_AutoDemodulate IBDA_AutoDemodulate; -#endif /* __IBDA_AutoDemodulate_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_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__ */ - - -/* header files for imported files */ -#include "unknwn.h" -#include "strmif.h" -#include "BdaTypes.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -#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] */ ULONG *pulSignalSource) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNetworkType( - /* [out][in] */ GUID *pguidNetworkType) = 0; - - virtual HRESULT STDMETHODCALLTYPE PutTuningSpace( - /* [in] */ REFGUID guidTuningSpace) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTuningSpace( - /* [out][in] */ GUID *pguidTuingSpace) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterDeviceFilter( - /* [in] */ IUnknown *pUnkFilterControl, - /* [out][in] */ ULONG *ppvRegisitrationContext) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnRegisterDeviceFilter( - /* [in] */ ULONG pvRegistrationContext) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_NetworkProviderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_NetworkProvider * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_NetworkProvider * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_NetworkProvider * This); - - HRESULT ( STDMETHODCALLTYPE *PutSignalSource )( - IBDA_NetworkProvider * This, - /* [in] */ ULONG ulSignalSource); - - HRESULT ( STDMETHODCALLTYPE *GetSignalSource )( - IBDA_NetworkProvider * This, - /* [out][in] */ ULONG *pulSignalSource); - - HRESULT ( STDMETHODCALLTYPE *GetNetworkType )( - IBDA_NetworkProvider * This, - /* [out][in] */ GUID *pguidNetworkType); - - HRESULT ( STDMETHODCALLTYPE *PutTuningSpace )( - IBDA_NetworkProvider * This, - /* [in] */ REFGUID guidTuningSpace); - - HRESULT ( STDMETHODCALLTYPE *GetTuningSpace )( - IBDA_NetworkProvider * This, - /* [out][in] */ GUID *pguidTuingSpace); - - HRESULT ( STDMETHODCALLTYPE *RegisterDeviceFilter )( - IBDA_NetworkProvider * This, - /* [in] */ IUnknown *pUnkFilterControl, - /* [out][in] */ ULONG *ppvRegisitrationContext); - - HRESULT ( STDMETHODCALLTYPE *UnRegisterDeviceFilter )( - 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_NetworkProvider_PutSignalSource_Proxy( - IBDA_NetworkProvider * This, - /* [in] */ ULONG ulSignalSource); - - -void __RPC_STUB IBDA_NetworkProvider_PutSignalSource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_NetworkProvider_GetSignalSource_Proxy( - IBDA_NetworkProvider * This, - /* [out][in] */ ULONG *pulSignalSource); - - -void __RPC_STUB IBDA_NetworkProvider_GetSignalSource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_NetworkProvider_GetNetworkType_Proxy( - IBDA_NetworkProvider * This, - /* [out][in] */ GUID *pguidNetworkType); - - -void __RPC_STUB IBDA_NetworkProvider_GetNetworkType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_NetworkProvider_PutTuningSpace_Proxy( - IBDA_NetworkProvider * This, - /* [in] */ REFGUID guidTuningSpace); - - -void __RPC_STUB IBDA_NetworkProvider_PutTuningSpace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_NetworkProvider_GetTuningSpace_Proxy( - IBDA_NetworkProvider * This, - /* [out][in] */ GUID *pguidTuingSpace); - - -void __RPC_STUB IBDA_NetworkProvider_GetTuningSpace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_NetworkProvider_RegisterDeviceFilter_Proxy( - IBDA_NetworkProvider * This, - /* [in] */ IUnknown *pUnkFilterControl, - /* [out][in] */ ULONG *ppvRegisitrationContext); - - -void __RPC_STUB IBDA_NetworkProvider_RegisterDeviceFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_NetworkProvider_UnRegisterDeviceFilter_Proxy( - IBDA_NetworkProvider * This, - /* [in] */ ULONG pvRegistrationContext); - - -void __RPC_STUB IBDA_NetworkProvider_UnRegisterDeviceFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ULONG *pulcbAddresses) = 0; - - virtual HRESULT STDMETHODCALLTYPE PutMulticastList( - /* [in] */ ULONG ulcbAddresses, - /* [size_is][in] */ BYTE pAddressList[ ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMulticastList( - /* [out][in] */ ULONG *pulcbAddresses, - /* [size_is][out] */ BYTE pAddressList[ ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE PutMulticastMode( - /* [in] */ ULONG ulModeMask) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMulticastMode( - /* [out] */ ULONG *pulModeMask) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_EthernetFilterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_EthernetFilter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_EthernetFilter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_EthernetFilter * This); - - HRESULT ( STDMETHODCALLTYPE *GetMulticastListSize )( - IBDA_EthernetFilter * This, - /* [out][in] */ ULONG *pulcbAddresses); - - HRESULT ( STDMETHODCALLTYPE *PutMulticastList )( - IBDA_EthernetFilter * This, - /* [in] */ ULONG ulcbAddresses, - /* [size_is][in] */ BYTE pAddressList[ ]); - - HRESULT ( STDMETHODCALLTYPE *GetMulticastList )( - IBDA_EthernetFilter * This, - /* [out][in] */ ULONG *pulcbAddresses, - /* [size_is][out] */ BYTE pAddressList[ ]); - - HRESULT ( STDMETHODCALLTYPE *PutMulticastMode )( - IBDA_EthernetFilter * This, - /* [in] */ ULONG ulModeMask); - - HRESULT ( STDMETHODCALLTYPE *GetMulticastMode )( - IBDA_EthernetFilter * This, - /* [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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_EthernetFilter_GetMulticastListSize_Proxy( - IBDA_EthernetFilter * This, - /* [out][in] */ ULONG *pulcbAddresses); - - -void __RPC_STUB IBDA_EthernetFilter_GetMulticastListSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_EthernetFilter_PutMulticastList_Proxy( - IBDA_EthernetFilter * This, - /* [in] */ ULONG ulcbAddresses, - /* [size_is][in] */ BYTE pAddressList[ ]); - - -void __RPC_STUB IBDA_EthernetFilter_PutMulticastList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_EthernetFilter_GetMulticastList_Proxy( - IBDA_EthernetFilter * This, - /* [out][in] */ ULONG *pulcbAddresses, - /* [size_is][out] */ BYTE pAddressList[ ]); - - -void __RPC_STUB IBDA_EthernetFilter_GetMulticastList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_EthernetFilter_PutMulticastMode_Proxy( - IBDA_EthernetFilter * This, - /* [in] */ ULONG ulModeMask); - - -void __RPC_STUB IBDA_EthernetFilter_PutMulticastMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_EthernetFilter_GetMulticastMode_Proxy( - IBDA_EthernetFilter * This, - /* [out] */ ULONG *pulModeMask); - - -void __RPC_STUB IBDA_EthernetFilter_GetMulticastMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ULONG *pulcbAddresses) = 0; - - virtual HRESULT STDMETHODCALLTYPE PutMulticastList( - /* [in] */ ULONG ulcbAddresses, - /* [size_is][in] */ BYTE pAddressList[ ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMulticastList( - /* [out][in] */ ULONG *pulcbAddresses, - /* [size_is][out] */ BYTE pAddressList[ ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE PutMulticastMode( - /* [in] */ ULONG ulModeMask) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMulticastMode( - /* [out] */ ULONG *pulModeMask) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_IPV4FilterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_IPV4Filter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_IPV4Filter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_IPV4Filter * This); - - HRESULT ( STDMETHODCALLTYPE *GetMulticastListSize )( - IBDA_IPV4Filter * This, - /* [out][in] */ ULONG *pulcbAddresses); - - HRESULT ( STDMETHODCALLTYPE *PutMulticastList )( - IBDA_IPV4Filter * This, - /* [in] */ ULONG ulcbAddresses, - /* [size_is][in] */ BYTE pAddressList[ ]); - - HRESULT ( STDMETHODCALLTYPE *GetMulticastList )( - IBDA_IPV4Filter * This, - /* [out][in] */ ULONG *pulcbAddresses, - /* [size_is][out] */ BYTE pAddressList[ ]); - - HRESULT ( STDMETHODCALLTYPE *PutMulticastMode )( - IBDA_IPV4Filter * This, - /* [in] */ ULONG ulModeMask); - - HRESULT ( STDMETHODCALLTYPE *GetMulticastMode )( - IBDA_IPV4Filter * This, - /* [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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_IPV4Filter_GetMulticastListSize_Proxy( - IBDA_IPV4Filter * This, - /* [out][in] */ ULONG *pulcbAddresses); - - -void __RPC_STUB IBDA_IPV4Filter_GetMulticastListSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_IPV4Filter_PutMulticastList_Proxy( - IBDA_IPV4Filter * This, - /* [in] */ ULONG ulcbAddresses, - /* [size_is][in] */ BYTE pAddressList[ ]); - - -void __RPC_STUB IBDA_IPV4Filter_PutMulticastList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_IPV4Filter_GetMulticastList_Proxy( - IBDA_IPV4Filter * This, - /* [out][in] */ ULONG *pulcbAddresses, - /* [size_is][out] */ BYTE pAddressList[ ]); - - -void __RPC_STUB IBDA_IPV4Filter_GetMulticastList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_IPV4Filter_PutMulticastMode_Proxy( - IBDA_IPV4Filter * This, - /* [in] */ ULONG ulModeMask); - - -void __RPC_STUB IBDA_IPV4Filter_PutMulticastMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_IPV4Filter_GetMulticastMode_Proxy( - IBDA_IPV4Filter * This, - /* [out] */ ULONG *pulModeMask); - - -void __RPC_STUB IBDA_IPV4Filter_GetMulticastMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ULONG *pulcbAddresses) = 0; - - virtual HRESULT STDMETHODCALLTYPE PutMulticastList( - /* [in] */ ULONG ulcbAddresses, - /* [size_is][in] */ BYTE pAddressList[ ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMulticastList( - /* [out][in] */ ULONG *pulcbAddresses, - /* [size_is][out] */ BYTE pAddressList[ ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE PutMulticastMode( - /* [in] */ ULONG ulModeMask) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMulticastMode( - /* [out] */ ULONG *pulModeMask) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_IPV6FilterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_IPV6Filter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_IPV6Filter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_IPV6Filter * This); - - HRESULT ( STDMETHODCALLTYPE *GetMulticastListSize )( - IBDA_IPV6Filter * This, - /* [out][in] */ ULONG *pulcbAddresses); - - HRESULT ( STDMETHODCALLTYPE *PutMulticastList )( - IBDA_IPV6Filter * This, - /* [in] */ ULONG ulcbAddresses, - /* [size_is][in] */ BYTE pAddressList[ ]); - - HRESULT ( STDMETHODCALLTYPE *GetMulticastList )( - IBDA_IPV6Filter * This, - /* [out][in] */ ULONG *pulcbAddresses, - /* [size_is][out] */ BYTE pAddressList[ ]); - - HRESULT ( STDMETHODCALLTYPE *PutMulticastMode )( - IBDA_IPV6Filter * This, - /* [in] */ ULONG ulModeMask); - - HRESULT ( STDMETHODCALLTYPE *GetMulticastMode )( - IBDA_IPV6Filter * This, - /* [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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_IPV6Filter_GetMulticastListSize_Proxy( - IBDA_IPV6Filter * This, - /* [out][in] */ ULONG *pulcbAddresses); - - -void __RPC_STUB IBDA_IPV6Filter_GetMulticastListSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_IPV6Filter_PutMulticastList_Proxy( - IBDA_IPV6Filter * This, - /* [in] */ ULONG ulcbAddresses, - /* [size_is][in] */ BYTE pAddressList[ ]); - - -void __RPC_STUB IBDA_IPV6Filter_PutMulticastList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_IPV6Filter_GetMulticastList_Proxy( - IBDA_IPV6Filter * This, - /* [out][in] */ ULONG *pulcbAddresses, - /* [size_is][out] */ BYTE pAddressList[ ]); - - -void __RPC_STUB IBDA_IPV6Filter_GetMulticastList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_IPV6Filter_PutMulticastMode_Proxy( - IBDA_IPV6Filter * This, - /* [in] */ ULONG ulModeMask); - - -void __RPC_STUB IBDA_IPV6Filter_PutMulticastMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_IPV6Filter_GetMulticastMode_Proxy( - IBDA_IPV6Filter * This, - /* [out] */ ULONG *pulModeMask); - - -void __RPC_STUB IBDA_IPV6Filter_GetMulticastMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ULONG *pState) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_DeviceControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_DeviceControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_DeviceControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_DeviceControl * This); - - HRESULT ( STDMETHODCALLTYPE *StartChanges )( - IBDA_DeviceControl * This); - - HRESULT ( STDMETHODCALLTYPE *CheckChanges )( - IBDA_DeviceControl * This); - - HRESULT ( STDMETHODCALLTYPE *CommitChanges )( - IBDA_DeviceControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetChangeState )( - IBDA_DeviceControl * This, - /* [out][in] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_DeviceControl_StartChanges_Proxy( - IBDA_DeviceControl * This); - - -void __RPC_STUB IBDA_DeviceControl_StartChanges_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DeviceControl_CheckChanges_Proxy( - IBDA_DeviceControl * This); - - -void __RPC_STUB IBDA_DeviceControl_CheckChanges_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DeviceControl_CommitChanges_Proxy( - IBDA_DeviceControl * This); - - -void __RPC_STUB IBDA_DeviceControl_CommitChanges_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DeviceControl_GetChangeState_Proxy( - IBDA_DeviceControl * This, - /* [out][in] */ ULONG *pState); - - -void __RPC_STUB IBDA_DeviceControl_GetChangeState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ULONG *pulPinID) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPinType( - /* [out][in] */ ULONG *pulPinType) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegistrationContext( - /* [out][in] */ ULONG *pulRegistrationCtx) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_PinControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_PinControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_PinControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_PinControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetPinID )( - IBDA_PinControl * This, - /* [out][in] */ ULONG *pulPinID); - - HRESULT ( STDMETHODCALLTYPE *GetPinType )( - IBDA_PinControl * This, - /* [out][in] */ ULONG *pulPinType); - - HRESULT ( STDMETHODCALLTYPE *RegistrationContext )( - IBDA_PinControl * This, - /* [out][in] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_PinControl_GetPinID_Proxy( - IBDA_PinControl * This, - /* [out][in] */ ULONG *pulPinID); - - -void __RPC_STUB IBDA_PinControl_GetPinID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_PinControl_GetPinType_Proxy( - IBDA_PinControl * This, - /* [out][in] */ ULONG *pulPinType); - - -void __RPC_STUB IBDA_PinControl_GetPinType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_PinControl_RegistrationContext_Proxy( - IBDA_PinControl * This, - /* [out][in] */ ULONG *pulRegistrationCtx); - - -void __RPC_STUB IBDA_PinControl_RegistrationContext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ REFGUID guidNetworkType) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNetworkType( - /* [out][in] */ GUID *pguidNetworkType) = 0; - - virtual HRESULT STDMETHODCALLTYPE PutSignalSource( - /* [in] */ ULONG ulSignalSource) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSignalSource( - /* [out][in] */ ULONG *pulSignalSource) = 0; - - virtual HRESULT STDMETHODCALLTYPE PutTuningSpace( - /* [in] */ REFGUID guidTuningSpace) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTuningSpace( - /* [out][in] */ GUID *pguidTuingSpace) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_SignalPropertiesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_SignalProperties * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_SignalProperties * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_SignalProperties * This); - - HRESULT ( STDMETHODCALLTYPE *PutNetworkType )( - IBDA_SignalProperties * This, - /* [in] */ REFGUID guidNetworkType); - - HRESULT ( STDMETHODCALLTYPE *GetNetworkType )( - IBDA_SignalProperties * This, - /* [out][in] */ GUID *pguidNetworkType); - - HRESULT ( STDMETHODCALLTYPE *PutSignalSource )( - IBDA_SignalProperties * This, - /* [in] */ ULONG ulSignalSource); - - HRESULT ( STDMETHODCALLTYPE *GetSignalSource )( - IBDA_SignalProperties * This, - /* [out][in] */ ULONG *pulSignalSource); - - HRESULT ( STDMETHODCALLTYPE *PutTuningSpace )( - IBDA_SignalProperties * This, - /* [in] */ REFGUID guidTuningSpace); - - HRESULT ( STDMETHODCALLTYPE *GetTuningSpace )( - IBDA_SignalProperties * This, - /* [out][in] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_SignalProperties_PutNetworkType_Proxy( - IBDA_SignalProperties * This, - /* [in] */ REFGUID guidNetworkType); - - -void __RPC_STUB IBDA_SignalProperties_PutNetworkType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalProperties_GetNetworkType_Proxy( - IBDA_SignalProperties * This, - /* [out][in] */ GUID *pguidNetworkType); - - -void __RPC_STUB IBDA_SignalProperties_GetNetworkType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalProperties_PutSignalSource_Proxy( - IBDA_SignalProperties * This, - /* [in] */ ULONG ulSignalSource); - - -void __RPC_STUB IBDA_SignalProperties_PutSignalSource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalProperties_GetSignalSource_Proxy( - IBDA_SignalProperties * This, - /* [out][in] */ ULONG *pulSignalSource); - - -void __RPC_STUB IBDA_SignalProperties_GetSignalSource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalProperties_PutTuningSpace_Proxy( - IBDA_SignalProperties * This, - /* [in] */ REFGUID guidTuningSpace); - - -void __RPC_STUB IBDA_SignalProperties_PutTuningSpace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalProperties_GetTuningSpace_Proxy( - IBDA_SignalProperties * This, - /* [out][in] */ GUID *pguidTuingSpace); - - -void __RPC_STUB IBDA_SignalProperties_GetTuningSpace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ LONG *plDbStrength) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_SignalQuality( - /* [in] */ LONG lPercentQuality) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_SignalQuality( - /* [out][in] */ LONG *plPercentQuality) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_SignalPresent( - /* [in] */ BOOLEAN fPresent) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_SignalPresent( - /* [out][in] */ BOOLEAN *pfPresent) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_SignalLocked( - /* [in] */ BOOLEAN fLocked) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_SignalLocked( - /* [out][in] */ BOOLEAN *pfLocked) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_SampleTime( - /* [in] */ LONG lmsSampleTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_SampleTime( - /* [out][in] */ LONG *plmsSampleTime) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_SignalStatisticsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_SignalStatistics * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_SignalStatistics * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_SignalStatistics * This); - - HRESULT ( STDMETHODCALLTYPE *put_SignalStrength )( - IBDA_SignalStatistics * This, - /* [in] */ LONG lDbStrength); - - HRESULT ( STDMETHODCALLTYPE *get_SignalStrength )( - IBDA_SignalStatistics * This, - /* [out][in] */ LONG *plDbStrength); - - HRESULT ( STDMETHODCALLTYPE *put_SignalQuality )( - IBDA_SignalStatistics * This, - /* [in] */ LONG lPercentQuality); - - HRESULT ( STDMETHODCALLTYPE *get_SignalQuality )( - IBDA_SignalStatistics * This, - /* [out][in] */ LONG *plPercentQuality); - - HRESULT ( STDMETHODCALLTYPE *put_SignalPresent )( - IBDA_SignalStatistics * This, - /* [in] */ BOOLEAN fPresent); - - HRESULT ( STDMETHODCALLTYPE *get_SignalPresent )( - IBDA_SignalStatistics * This, - /* [out][in] */ BOOLEAN *pfPresent); - - HRESULT ( STDMETHODCALLTYPE *put_SignalLocked )( - IBDA_SignalStatistics * This, - /* [in] */ BOOLEAN fLocked); - - HRESULT ( STDMETHODCALLTYPE *get_SignalLocked )( - IBDA_SignalStatistics * This, - /* [out][in] */ BOOLEAN *pfLocked); - - HRESULT ( STDMETHODCALLTYPE *put_SampleTime )( - IBDA_SignalStatistics * This, - /* [in] */ LONG lmsSampleTime); - - HRESULT ( STDMETHODCALLTYPE *get_SampleTime )( - IBDA_SignalStatistics * This, - /* [out][in] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_SignalStatistics_put_SignalStrength_Proxy( - IBDA_SignalStatistics * This, - /* [in] */ LONG lDbStrength); - - -void __RPC_STUB IBDA_SignalStatistics_put_SignalStrength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalStatistics_get_SignalStrength_Proxy( - IBDA_SignalStatistics * This, - /* [out][in] */ LONG *plDbStrength); - - -void __RPC_STUB IBDA_SignalStatistics_get_SignalStrength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalStatistics_put_SignalQuality_Proxy( - IBDA_SignalStatistics * This, - /* [in] */ LONG lPercentQuality); - - -void __RPC_STUB IBDA_SignalStatistics_put_SignalQuality_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalStatistics_get_SignalQuality_Proxy( - IBDA_SignalStatistics * This, - /* [out][in] */ LONG *plPercentQuality); - - -void __RPC_STUB IBDA_SignalStatistics_get_SignalQuality_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalStatistics_put_SignalPresent_Proxy( - IBDA_SignalStatistics * This, - /* [in] */ BOOLEAN fPresent); - - -void __RPC_STUB IBDA_SignalStatistics_put_SignalPresent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalStatistics_get_SignalPresent_Proxy( - IBDA_SignalStatistics * This, - /* [out][in] */ BOOLEAN *pfPresent); - - -void __RPC_STUB IBDA_SignalStatistics_get_SignalPresent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalStatistics_put_SignalLocked_Proxy( - IBDA_SignalStatistics * This, - /* [in] */ BOOLEAN fLocked); - - -void __RPC_STUB IBDA_SignalStatistics_put_SignalLocked_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalStatistics_get_SignalLocked_Proxy( - IBDA_SignalStatistics * This, - /* [out][in] */ BOOLEAN *pfLocked); - - -void __RPC_STUB IBDA_SignalStatistics_get_SignalLocked_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalStatistics_put_SampleTime_Proxy( - IBDA_SignalStatistics * This, - /* [in] */ LONG lmsSampleTime); - - -void __RPC_STUB IBDA_SignalStatistics_put_SampleTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_SignalStatistics_get_SampleTime_Proxy( - IBDA_SignalStatistics * This, - /* [out][in] */ LONG *plmsSampleTime); - - -void __RPC_STUB IBDA_SignalStatistics_get_SampleTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ULONG *pulcNodeTypes, - /* [in] */ ULONG ulcNodeTypesMax, - /* [size_is][out][in] */ ULONG rgulNodeTypes[ ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNodeDescriptors( - /* [out][in] */ ULONG *ulcNodeDescriptors, - /* [in] */ ULONG ulcNodeDescriptorsMax, - /* [size_is][out][in] */ BDANODE_DESCRIPTOR rgNodeDescriptors[ ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNodeInterfaces( - /* [in] */ ULONG ulNodeType, - /* [out][in] */ ULONG *pulcInterfaces, - /* [in] */ ULONG ulcInterfacesMax, - /* [size_is][out][in] */ GUID rgguidInterfaces[ ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPinTypes( - /* [out][in] */ ULONG *pulcPinTypes, - /* [in] */ ULONG ulcPinTypesMax, - /* [size_is][out][in] */ ULONG rgulPinTypes[ ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTemplateConnections( - /* [out][in] */ ULONG *pulcConnections, - /* [in] */ ULONG ulcConnectionsMax, - /* [size_is][out][in] */ BDA_TEMPLATE_CONNECTION rgConnections[ ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreatePin( - /* [in] */ ULONG ulPinType, - /* [out][in] */ ULONG *pulPinId) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeletePin( - /* [in] */ ULONG ulPinId) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMediaType( - /* [in] */ ULONG ulPinId, - /* [in] */ AM_MEDIA_TYPE *pMediaType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMedium( - /* [in] */ ULONG ulPinId, - /* [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] */ IUnknown **ppControlNode) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_TopologyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_Topology * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_Topology * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_Topology * This); - - HRESULT ( STDMETHODCALLTYPE *GetNodeTypes )( - IBDA_Topology * This, - /* [out][in] */ ULONG *pulcNodeTypes, - /* [in] */ ULONG ulcNodeTypesMax, - /* [size_is][out][in] */ ULONG rgulNodeTypes[ ]); - - HRESULT ( STDMETHODCALLTYPE *GetNodeDescriptors )( - IBDA_Topology * This, - /* [out][in] */ ULONG *ulcNodeDescriptors, - /* [in] */ ULONG ulcNodeDescriptorsMax, - /* [size_is][out][in] */ BDANODE_DESCRIPTOR rgNodeDescriptors[ ]); - - HRESULT ( STDMETHODCALLTYPE *GetNodeInterfaces )( - IBDA_Topology * This, - /* [in] */ ULONG ulNodeType, - /* [out][in] */ ULONG *pulcInterfaces, - /* [in] */ ULONG ulcInterfacesMax, - /* [size_is][out][in] */ GUID rgguidInterfaces[ ]); - - HRESULT ( STDMETHODCALLTYPE *GetPinTypes )( - IBDA_Topology * This, - /* [out][in] */ ULONG *pulcPinTypes, - /* [in] */ ULONG ulcPinTypesMax, - /* [size_is][out][in] */ ULONG rgulPinTypes[ ]); - - HRESULT ( STDMETHODCALLTYPE *GetTemplateConnections )( - IBDA_Topology * This, - /* [out][in] */ ULONG *pulcConnections, - /* [in] */ ULONG ulcConnectionsMax, - /* [size_is][out][in] */ BDA_TEMPLATE_CONNECTION rgConnections[ ]); - - HRESULT ( STDMETHODCALLTYPE *CreatePin )( - IBDA_Topology * This, - /* [in] */ ULONG ulPinType, - /* [out][in] */ ULONG *pulPinId); - - HRESULT ( STDMETHODCALLTYPE *DeletePin )( - IBDA_Topology * This, - /* [in] */ ULONG ulPinId); - - HRESULT ( STDMETHODCALLTYPE *SetMediaType )( - IBDA_Topology * This, - /* [in] */ ULONG ulPinId, - /* [in] */ AM_MEDIA_TYPE *pMediaType); - - HRESULT ( STDMETHODCALLTYPE *SetMedium )( - IBDA_Topology * This, - /* [in] */ ULONG ulPinId, - /* [in] */ REGPINMEDIUM *pMedium); - - HRESULT ( STDMETHODCALLTYPE *CreateTopology )( - IBDA_Topology * This, - /* [in] */ ULONG ulInputPinId, - /* [in] */ ULONG ulOutputPinId); - - HRESULT ( STDMETHODCALLTYPE *GetControlNode )( - IBDA_Topology * This, - /* [in] */ ULONG ulInputPinId, - /* [in] */ ULONG ulOutputPinId, - /* [in] */ ULONG ulNodeType, - /* [out][in] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_Topology_GetNodeTypes_Proxy( - IBDA_Topology * This, - /* [out][in] */ ULONG *pulcNodeTypes, - /* [in] */ ULONG ulcNodeTypesMax, - /* [size_is][out][in] */ ULONG rgulNodeTypes[ ]); - - -void __RPC_STUB IBDA_Topology_GetNodeTypes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_Topology_GetNodeDescriptors_Proxy( - IBDA_Topology * This, - /* [out][in] */ ULONG *ulcNodeDescriptors, - /* [in] */ ULONG ulcNodeDescriptorsMax, - /* [size_is][out][in] */ BDANODE_DESCRIPTOR rgNodeDescriptors[ ]); - - -void __RPC_STUB IBDA_Topology_GetNodeDescriptors_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_Topology_GetNodeInterfaces_Proxy( - IBDA_Topology * This, - /* [in] */ ULONG ulNodeType, - /* [out][in] */ ULONG *pulcInterfaces, - /* [in] */ ULONG ulcInterfacesMax, - /* [size_is][out][in] */ GUID rgguidInterfaces[ ]); - - -void __RPC_STUB IBDA_Topology_GetNodeInterfaces_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_Topology_GetPinTypes_Proxy( - IBDA_Topology * This, - /* [out][in] */ ULONG *pulcPinTypes, - /* [in] */ ULONG ulcPinTypesMax, - /* [size_is][out][in] */ ULONG rgulPinTypes[ ]); - - -void __RPC_STUB IBDA_Topology_GetPinTypes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_Topology_GetTemplateConnections_Proxy( - IBDA_Topology * This, - /* [out][in] */ ULONG *pulcConnections, - /* [in] */ ULONG ulcConnectionsMax, - /* [size_is][out][in] */ BDA_TEMPLATE_CONNECTION rgConnections[ ]); - - -void __RPC_STUB IBDA_Topology_GetTemplateConnections_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_Topology_CreatePin_Proxy( - IBDA_Topology * This, - /* [in] */ ULONG ulPinType, - /* [out][in] */ ULONG *pulPinId); - - -void __RPC_STUB IBDA_Topology_CreatePin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_Topology_DeletePin_Proxy( - IBDA_Topology * This, - /* [in] */ ULONG ulPinId); - - -void __RPC_STUB IBDA_Topology_DeletePin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_Topology_SetMediaType_Proxy( - IBDA_Topology * This, - /* [in] */ ULONG ulPinId, - /* [in] */ AM_MEDIA_TYPE *pMediaType); - - -void __RPC_STUB IBDA_Topology_SetMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_Topology_SetMedium_Proxy( - IBDA_Topology * This, - /* [in] */ ULONG ulPinId, - /* [in] */ REGPINMEDIUM *pMedium); - - -void __RPC_STUB IBDA_Topology_SetMedium_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_Topology_CreateTopology_Proxy( - IBDA_Topology * This, - /* [in] */ ULONG ulInputPinId, - /* [in] */ ULONG ulOutputPinId); - - -void __RPC_STUB IBDA_Topology_CreateTopology_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_Topology_GetControlNode_Proxy( - IBDA_Topology * This, - /* [in] */ ULONG ulInputPinId, - /* [in] */ ULONG ulOutputPinId, - /* [in] */ ULONG ulNodeType, - /* [out][in] */ IUnknown **ppControlNode); - - -void __RPC_STUB IBDA_Topology_GetControlNode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_VoidTransform * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_VoidTransform * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_VoidTransform * This); - - HRESULT ( STDMETHODCALLTYPE *Start )( - IBDA_VoidTransform * This); - - HRESULT ( STDMETHODCALLTYPE *Stop )( - 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_VoidTransform_Start_Proxy( - IBDA_VoidTransform * This); - - -void __RPC_STUB IBDA_VoidTransform_Start_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_VoidTransform_Stop_Proxy( - IBDA_VoidTransform * This); - - -void __RPC_STUB IBDA_VoidTransform_Stop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_NullTransform * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_NullTransform * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_NullTransform * This); - - HRESULT ( STDMETHODCALLTYPE *Start )( - IBDA_NullTransform * This); - - HRESULT ( STDMETHODCALLTYPE *Stop )( - 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_NullTransform_Start_Proxy( - IBDA_NullTransform * This); - - -void __RPC_STUB IBDA_NullTransform_Start_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_NullTransform_Stop_Proxy( - IBDA_NullTransform * This); - - -void __RPC_STUB IBDA_NullTransform_Stop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ULONG *pulTransponder) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Frequency( - /* [in] */ ULONG ulFrequency) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Frequency( - /* [out][in] */ ULONG *pulFrequency) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Polarity( - /* [in] */ Polarisation Polarity) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Polarity( - /* [out][in] */ Polarisation *pPolarity) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Range( - /* [in] */ ULONG ulRange) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Range( - /* [out][in] */ ULONG *pulRange) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Bandwidth( - /* [in] */ ULONG ulBandwidth) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Bandwidth( - /* [out][in] */ ULONG *pulBandwidth) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_FrequencyMultiplier( - /* [in] */ ULONG ulMultiplier) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_FrequencyMultiplier( - /* [out][in] */ ULONG *pulMultiplier) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_FrequencyFilterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_FrequencyFilter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_FrequencyFilter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_FrequencyFilter * This); - - HRESULT ( STDMETHODCALLTYPE *put_Autotune )( - IBDA_FrequencyFilter * This, - /* [in] */ ULONG ulTransponder); - - HRESULT ( STDMETHODCALLTYPE *get_Autotune )( - IBDA_FrequencyFilter * This, - /* [out][in] */ ULONG *pulTransponder); - - HRESULT ( STDMETHODCALLTYPE *put_Frequency )( - IBDA_FrequencyFilter * This, - /* [in] */ ULONG ulFrequency); - - HRESULT ( STDMETHODCALLTYPE *get_Frequency )( - IBDA_FrequencyFilter * This, - /* [out][in] */ ULONG *pulFrequency); - - HRESULT ( STDMETHODCALLTYPE *put_Polarity )( - IBDA_FrequencyFilter * This, - /* [in] */ Polarisation Polarity); - - HRESULT ( STDMETHODCALLTYPE *get_Polarity )( - IBDA_FrequencyFilter * This, - /* [out][in] */ Polarisation *pPolarity); - - HRESULT ( STDMETHODCALLTYPE *put_Range )( - IBDA_FrequencyFilter * This, - /* [in] */ ULONG ulRange); - - HRESULT ( STDMETHODCALLTYPE *get_Range )( - IBDA_FrequencyFilter * This, - /* [out][in] */ ULONG *pulRange); - - HRESULT ( STDMETHODCALLTYPE *put_Bandwidth )( - IBDA_FrequencyFilter * This, - /* [in] */ ULONG ulBandwidth); - - HRESULT ( STDMETHODCALLTYPE *get_Bandwidth )( - IBDA_FrequencyFilter * This, - /* [out][in] */ ULONG *pulBandwidth); - - HRESULT ( STDMETHODCALLTYPE *put_FrequencyMultiplier )( - IBDA_FrequencyFilter * This, - /* [in] */ ULONG ulMultiplier); - - HRESULT ( STDMETHODCALLTYPE *get_FrequencyMultiplier )( - IBDA_FrequencyFilter * This, - /* [out][in] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_FrequencyFilter_put_Autotune_Proxy( - IBDA_FrequencyFilter * This, - /* [in] */ ULONG ulTransponder); - - -void __RPC_STUB IBDA_FrequencyFilter_put_Autotune_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_FrequencyFilter_get_Autotune_Proxy( - IBDA_FrequencyFilter * This, - /* [out][in] */ ULONG *pulTransponder); - - -void __RPC_STUB IBDA_FrequencyFilter_get_Autotune_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_FrequencyFilter_put_Frequency_Proxy( - IBDA_FrequencyFilter * This, - /* [in] */ ULONG ulFrequency); - - -void __RPC_STUB IBDA_FrequencyFilter_put_Frequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_FrequencyFilter_get_Frequency_Proxy( - IBDA_FrequencyFilter * This, - /* [out][in] */ ULONG *pulFrequency); - - -void __RPC_STUB IBDA_FrequencyFilter_get_Frequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_FrequencyFilter_put_Polarity_Proxy( - IBDA_FrequencyFilter * This, - /* [in] */ Polarisation Polarity); - - -void __RPC_STUB IBDA_FrequencyFilter_put_Polarity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_FrequencyFilter_get_Polarity_Proxy( - IBDA_FrequencyFilter * This, - /* [out][in] */ Polarisation *pPolarity); - - -void __RPC_STUB IBDA_FrequencyFilter_get_Polarity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_FrequencyFilter_put_Range_Proxy( - IBDA_FrequencyFilter * This, - /* [in] */ ULONG ulRange); - - -void __RPC_STUB IBDA_FrequencyFilter_put_Range_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_FrequencyFilter_get_Range_Proxy( - IBDA_FrequencyFilter * This, - /* [out][in] */ ULONG *pulRange); - - -void __RPC_STUB IBDA_FrequencyFilter_get_Range_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_FrequencyFilter_put_Bandwidth_Proxy( - IBDA_FrequencyFilter * This, - /* [in] */ ULONG ulBandwidth); - - -void __RPC_STUB IBDA_FrequencyFilter_put_Bandwidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_FrequencyFilter_get_Bandwidth_Proxy( - IBDA_FrequencyFilter * This, - /* [out][in] */ ULONG *pulBandwidth); - - -void __RPC_STUB IBDA_FrequencyFilter_get_Bandwidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_FrequencyFilter_put_FrequencyMultiplier_Proxy( - IBDA_FrequencyFilter * This, - /* [in] */ ULONG ulMultiplier); - - -void __RPC_STUB IBDA_FrequencyFilter_put_FrequencyMultiplier_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_FrequencyFilter_get_FrequencyMultiplier_Proxy( - IBDA_FrequencyFilter * This, - /* [out][in] */ ULONG *pulMultiplier); - - -void __RPC_STUB IBDA_FrequencyFilter_get_FrequencyMultiplier_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ULONG *pulLOFLow) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_LocalOscilatorFrequencyHighBand( - /* [in] */ ULONG ulLOFHigh) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_LocalOscilatorFrequencyHighBand( - /* [out][in] */ ULONG *pulLOFHigh) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_HighLowSwitchFrequency( - /* [in] */ ULONG ulSwitchFrequency) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_HighLowSwitchFrequency( - /* [out][in] */ ULONG *pulSwitchFrequency) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_LNBInfoVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_LNBInfo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_LNBInfo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_LNBInfo * This); - - HRESULT ( STDMETHODCALLTYPE *put_LocalOscilatorFrequencyLowBand )( - IBDA_LNBInfo * This, - /* [in] */ ULONG ulLOFLow); - - HRESULT ( STDMETHODCALLTYPE *get_LocalOscilatorFrequencyLowBand )( - IBDA_LNBInfo * This, - /* [out][in] */ ULONG *pulLOFLow); - - HRESULT ( STDMETHODCALLTYPE *put_LocalOscilatorFrequencyHighBand )( - IBDA_LNBInfo * This, - /* [in] */ ULONG ulLOFHigh); - - HRESULT ( STDMETHODCALLTYPE *get_LocalOscilatorFrequencyHighBand )( - IBDA_LNBInfo * This, - /* [out][in] */ ULONG *pulLOFHigh); - - HRESULT ( STDMETHODCALLTYPE *put_HighLowSwitchFrequency )( - IBDA_LNBInfo * This, - /* [in] */ ULONG ulSwitchFrequency); - - HRESULT ( STDMETHODCALLTYPE *get_HighLowSwitchFrequency )( - IBDA_LNBInfo * This, - /* [out][in] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_LNBInfo_put_LocalOscilatorFrequencyLowBand_Proxy( - IBDA_LNBInfo * This, - /* [in] */ ULONG ulLOFLow); - - -void __RPC_STUB IBDA_LNBInfo_put_LocalOscilatorFrequencyLowBand_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_LNBInfo_get_LocalOscilatorFrequencyLowBand_Proxy( - IBDA_LNBInfo * This, - /* [out][in] */ ULONG *pulLOFLow); - - -void __RPC_STUB IBDA_LNBInfo_get_LocalOscilatorFrequencyLowBand_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_LNBInfo_put_LocalOscilatorFrequencyHighBand_Proxy( - IBDA_LNBInfo * This, - /* [in] */ ULONG ulLOFHigh); - - -void __RPC_STUB IBDA_LNBInfo_put_LocalOscilatorFrequencyHighBand_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_LNBInfo_get_LocalOscilatorFrequencyHighBand_Proxy( - IBDA_LNBInfo * This, - /* [out][in] */ ULONG *pulLOFHigh); - - -void __RPC_STUB IBDA_LNBInfo_get_LocalOscilatorFrequencyHighBand_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_LNBInfo_put_HighLowSwitchFrequency_Proxy( - IBDA_LNBInfo * This, - /* [in] */ ULONG ulSwitchFrequency); - - -void __RPC_STUB IBDA_LNBInfo_put_HighLowSwitchFrequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_LNBInfo_get_HighLowSwitchFrequency_Proxy( - IBDA_LNBInfo * This, - /* [out][in] */ ULONG *pulSwitchFrequency); - - -void __RPC_STUB IBDA_LNBInfo_get_HighLowSwitchFrequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IBDA_LNBInfo_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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_AutoDemodulate * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_AutoDemodulate * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_AutoDemodulate * This); - - HRESULT ( STDMETHODCALLTYPE *put_AutoDemodulate )( - 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_AutoDemodulate_put_AutoDemodulate_Proxy( - IBDA_AutoDemodulate * This); - - -void __RPC_STUB IBDA_AutoDemodulate_put_AutoDemodulate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IBDA_AutoDemodulate_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] */ ModulationType *pModulationType) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_ModulationType( - /* [out][in] */ ModulationType *pModulationType) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_InnerFECMethod( - /* [in] */ FECMethod *pFECMethod) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_InnerFECMethod( - /* [out][in] */ FECMethod *pFECMethod) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_InnerFECRate( - /* [in] */ BinaryConvolutionCodeRate *pFECRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_InnerFECRate( - /* [out][in] */ BinaryConvolutionCodeRate *pFECRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_OuterFECMethod( - /* [in] */ FECMethod *pFECMethod) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_OuterFECMethod( - /* [out][in] */ FECMethod *pFECMethod) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_OuterFECRate( - /* [in] */ BinaryConvolutionCodeRate *pFECRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_OuterFECRate( - /* [out][in] */ BinaryConvolutionCodeRate *pFECRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_SymbolRate( - /* [in] */ ULONG *pSymbolRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_SymbolRate( - /* [out][in] */ ULONG *pSymbolRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_SpectralInversion( - /* [in] */ SpectralInversion *pSpectralInversion) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_SpectralInversion( - /* [out][in] */ SpectralInversion *pSpectralInversion) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_DigitalDemodulatorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_DigitalDemodulator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_DigitalDemodulator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_DigitalDemodulator * This); - - HRESULT ( STDMETHODCALLTYPE *put_ModulationType )( - IBDA_DigitalDemodulator * This, - /* [in] */ ModulationType *pModulationType); - - HRESULT ( STDMETHODCALLTYPE *get_ModulationType )( - IBDA_DigitalDemodulator * This, - /* [out][in] */ ModulationType *pModulationType); - - HRESULT ( STDMETHODCALLTYPE *put_InnerFECMethod )( - IBDA_DigitalDemodulator * This, - /* [in] */ FECMethod *pFECMethod); - - HRESULT ( STDMETHODCALLTYPE *get_InnerFECMethod )( - IBDA_DigitalDemodulator * This, - /* [out][in] */ FECMethod *pFECMethod); - - HRESULT ( STDMETHODCALLTYPE *put_InnerFECRate )( - IBDA_DigitalDemodulator * This, - /* [in] */ BinaryConvolutionCodeRate *pFECRate); - - HRESULT ( STDMETHODCALLTYPE *get_InnerFECRate )( - IBDA_DigitalDemodulator * This, - /* [out][in] */ BinaryConvolutionCodeRate *pFECRate); - - HRESULT ( STDMETHODCALLTYPE *put_OuterFECMethod )( - IBDA_DigitalDemodulator * This, - /* [in] */ FECMethod *pFECMethod); - - HRESULT ( STDMETHODCALLTYPE *get_OuterFECMethod )( - IBDA_DigitalDemodulator * This, - /* [out][in] */ FECMethod *pFECMethod); - - HRESULT ( STDMETHODCALLTYPE *put_OuterFECRate )( - IBDA_DigitalDemodulator * This, - /* [in] */ BinaryConvolutionCodeRate *pFECRate); - - HRESULT ( STDMETHODCALLTYPE *get_OuterFECRate )( - IBDA_DigitalDemodulator * This, - /* [out][in] */ BinaryConvolutionCodeRate *pFECRate); - - HRESULT ( STDMETHODCALLTYPE *put_SymbolRate )( - IBDA_DigitalDemodulator * This, - /* [in] */ ULONG *pSymbolRate); - - HRESULT ( STDMETHODCALLTYPE *get_SymbolRate )( - IBDA_DigitalDemodulator * This, - /* [out][in] */ ULONG *pSymbolRate); - - HRESULT ( STDMETHODCALLTYPE *put_SpectralInversion )( - IBDA_DigitalDemodulator * This, - /* [in] */ SpectralInversion *pSpectralInversion); - - HRESULT ( STDMETHODCALLTYPE *get_SpectralInversion )( - IBDA_DigitalDemodulator * This, - /* [out][in] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_put_ModulationType_Proxy( - IBDA_DigitalDemodulator * This, - /* [in] */ ModulationType *pModulationType); - - -void __RPC_STUB IBDA_DigitalDemodulator_put_ModulationType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_get_ModulationType_Proxy( - IBDA_DigitalDemodulator * This, - /* [out][in] */ ModulationType *pModulationType); - - -void __RPC_STUB IBDA_DigitalDemodulator_get_ModulationType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_put_InnerFECMethod_Proxy( - IBDA_DigitalDemodulator * This, - /* [in] */ FECMethod *pFECMethod); - - -void __RPC_STUB IBDA_DigitalDemodulator_put_InnerFECMethod_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_get_InnerFECMethod_Proxy( - IBDA_DigitalDemodulator * This, - /* [out][in] */ FECMethod *pFECMethod); - - -void __RPC_STUB IBDA_DigitalDemodulator_get_InnerFECMethod_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_put_InnerFECRate_Proxy( - IBDA_DigitalDemodulator * This, - /* [in] */ BinaryConvolutionCodeRate *pFECRate); - - -void __RPC_STUB IBDA_DigitalDemodulator_put_InnerFECRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_get_InnerFECRate_Proxy( - IBDA_DigitalDemodulator * This, - /* [out][in] */ BinaryConvolutionCodeRate *pFECRate); - - -void __RPC_STUB IBDA_DigitalDemodulator_get_InnerFECRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_put_OuterFECMethod_Proxy( - IBDA_DigitalDemodulator * This, - /* [in] */ FECMethod *pFECMethod); - - -void __RPC_STUB IBDA_DigitalDemodulator_put_OuterFECMethod_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_get_OuterFECMethod_Proxy( - IBDA_DigitalDemodulator * This, - /* [out][in] */ FECMethod *pFECMethod); - - -void __RPC_STUB IBDA_DigitalDemodulator_get_OuterFECMethod_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_put_OuterFECRate_Proxy( - IBDA_DigitalDemodulator * This, - /* [in] */ BinaryConvolutionCodeRate *pFECRate); - - -void __RPC_STUB IBDA_DigitalDemodulator_put_OuterFECRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_get_OuterFECRate_Proxy( - IBDA_DigitalDemodulator * This, - /* [out][in] */ BinaryConvolutionCodeRate *pFECRate); - - -void __RPC_STUB IBDA_DigitalDemodulator_get_OuterFECRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_put_SymbolRate_Proxy( - IBDA_DigitalDemodulator * This, - /* [in] */ ULONG *pSymbolRate); - - -void __RPC_STUB IBDA_DigitalDemodulator_put_SymbolRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_get_SymbolRate_Proxy( - IBDA_DigitalDemodulator * This, - /* [out][in] */ ULONG *pSymbolRate); - - -void __RPC_STUB IBDA_DigitalDemodulator_get_SymbolRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_put_SpectralInversion_Proxy( - IBDA_DigitalDemodulator * This, - /* [in] */ SpectralInversion *pSpectralInversion); - - -void __RPC_STUB IBDA_DigitalDemodulator_put_SpectralInversion_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_DigitalDemodulator_get_SpectralInversion_Proxy( - IBDA_DigitalDemodulator * This, - /* [out][in] */ SpectralInversion *pSpectralInversion); - - -void __RPC_STUB IBDA_DigitalDemodulator_get_SpectralInversion_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IBDA_DigitalDemodulator_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_bdaiface_0421 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_bdaiface_0421_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_0421_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0421_v0_0_s_ifspec; - -#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] */ unsigned long *pulcbSize, - /* [out][in] */ BYTE **pbBuffer) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAdapterIPAddress( - /* [out][in] */ unsigned long *pulcbSize, - /* [out][in] */ BYTE **pbBuffer) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_IPSinkControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_IPSinkControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_IPSinkControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_IPSinkControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetMulticastList )( - IBDA_IPSinkControl * This, - /* [out][in] */ unsigned long *pulcbSize, - /* [out][in] */ BYTE **pbBuffer); - - HRESULT ( STDMETHODCALLTYPE *GetAdapterIPAddress )( - IBDA_IPSinkControl * This, - /* [out][in] */ unsigned long *pulcbSize, - /* [out][in] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_IPSinkControl_GetMulticastList_Proxy( - IBDA_IPSinkControl * This, - /* [out][in] */ unsigned long *pulcbSize, - /* [out][in] */ BYTE **pbBuffer); - - -void __RPC_STUB IBDA_IPSinkControl_GetMulticastList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_IPSinkControl_GetAdapterIPAddress_Proxy( - IBDA_IPSinkControl * This, - /* [out][in] */ unsigned long *pulcbSize, - /* [out][in] */ BYTE **pbBuffer); - - -void __RPC_STUB IBDA_IPSinkControl_GetAdapterIPAddress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ULONG *pulcbAddresses, - /* [size_is][out] */ BYTE **ppbAddressList) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_AdapterIPAddress( - /* [out] */ BSTR *pbstrBuffer) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_AdapterDescription( - /* [out] */ BSTR *pbstrBuffer) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBDA_IPSinkInfoVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBDA_IPSinkInfo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBDA_IPSinkInfo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBDA_IPSinkInfo * This); - - HRESULT ( STDMETHODCALLTYPE *get_MulticastList )( - IBDA_IPSinkInfo * This, - /* [out][in] */ ULONG *pulcbAddresses, - /* [size_is][out] */ BYTE **ppbAddressList); - - HRESULT ( STDMETHODCALLTYPE *get_AdapterIPAddress )( - IBDA_IPSinkInfo * This, - /* [out] */ BSTR *pbstrBuffer); - - HRESULT ( STDMETHODCALLTYPE *get_AdapterDescription )( - IBDA_IPSinkInfo * This, - /* [out] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IBDA_IPSinkInfo_get_MulticastList_Proxy( - IBDA_IPSinkInfo * This, - /* [out][in] */ ULONG *pulcbAddresses, - /* [size_is][out] */ BYTE **ppbAddressList); - - -void __RPC_STUB IBDA_IPSinkInfo_get_MulticastList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_IPSinkInfo_get_AdapterIPAddress_Proxy( - IBDA_IPSinkInfo * This, - /* [out] */ BSTR *pbstrBuffer); - - -void __RPC_STUB IBDA_IPSinkInfo_get_AdapterIPAddress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBDA_IPSinkInfo_get_AdapterDescription_Proxy( - IBDA_IPSinkInfo * This, - /* [out] */ BSTR *pbstrBuffer); - - -void __RPC_STUB IBDA_IPSinkInfo_get_AdapterDescription_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ PID_MAP *pPIDMap, - /* [out] */ ULONG *pcReceived) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - /* [in] */ ULONG cRecords) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IEnumPIDMap **ppIEnumPIDMap) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumPIDMapVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumPIDMap * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumPIDMap * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumPIDMap * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumPIDMap * This, - /* [in] */ ULONG cRequest, - /* [size_is][out][in] */ PID_MAP *pPIDMap, - /* [out] */ ULONG *pcReceived); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumPIDMap * This, - /* [in] */ ULONG cRecords); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumPIDMap * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumPIDMap * This, - /* [out] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IEnumPIDMap_Next_Proxy( - IEnumPIDMap * This, - /* [in] */ ULONG cRequest, - /* [size_is][out][in] */ PID_MAP *pPIDMap, - /* [out] */ ULONG *pcReceived); - - -void __RPC_STUB IEnumPIDMap_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumPIDMap_Skip_Proxy( - IEnumPIDMap * This, - /* [in] */ ULONG cRecords); - - -void __RPC_STUB IEnumPIDMap_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumPIDMap_Reset_Proxy( - IEnumPIDMap * This); - - -void __RPC_STUB IEnumPIDMap_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumPIDMap_Clone_Proxy( - IEnumPIDMap * This, - /* [out] */ IEnumPIDMap **ppIEnumPIDMap); - - -void __RPC_STUB IEnumPIDMap_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ULONG *pulPID, - /* [in] */ MEDIA_SAMPLE_CONTENT MediaSampleContent) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnmapPID( - /* [in] */ ULONG culPID, - /* [in] */ ULONG *pulPID) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumPIDMap( - /* [out] */ IEnumPIDMap **pIEnumPIDMap) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMPEG2PIDMapVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMPEG2PIDMap * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMPEG2PIDMap * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMPEG2PIDMap * This); - - HRESULT ( STDMETHODCALLTYPE *MapPID )( - IMPEG2PIDMap * This, - /* [in] */ ULONG culPID, - /* [in] */ ULONG *pulPID, - /* [in] */ MEDIA_SAMPLE_CONTENT MediaSampleContent); - - HRESULT ( STDMETHODCALLTYPE *UnmapPID )( - IMPEG2PIDMap * This, - /* [in] */ ULONG culPID, - /* [in] */ ULONG *pulPID); - - HRESULT ( STDMETHODCALLTYPE *EnumPIDMap )( - IMPEG2PIDMap * This, - /* [out] */ 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 */ - - - -HRESULT STDMETHODCALLTYPE IMPEG2PIDMap_MapPID_Proxy( - IMPEG2PIDMap * This, - /* [in] */ ULONG culPID, - /* [in] */ ULONG *pulPID, - /* [in] */ MEDIA_SAMPLE_CONTENT MediaSampleContent); - - -void __RPC_STUB IMPEG2PIDMap_MapPID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMPEG2PIDMap_UnmapPID_Proxy( - IMPEG2PIDMap * This, - /* [in] */ ULONG culPID, - /* [in] */ ULONG *pulPID); - - -void __RPC_STUB IMPEG2PIDMap_UnmapPID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMPEG2PIDMap_EnumPIDMap_Proxy( - IMPEG2PIDMap * This, - /* [out] */ IEnumPIDMap **pIEnumPIDMap); - - -void __RPC_STUB IMPEG2PIDMap_EnumPIDMap_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ ULONG *ulCount, - /* [size_is][size_is][out] */ ULONG **ppulList) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE put_FrequencyMapping( - /* [in] */ ULONG ulCount, - /* [size_is][in] */ ULONG pList[ ]) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_CountryCode( - /* [out] */ ULONG *pulCountryCode) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE put_CountryCode( - /* [in] */ ULONG ulCountryCode) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_DefaultFrequencyMapping( - /* [in] */ ULONG ulCountryCode, - /* [out] */ ULONG *pulCount, - /* [size_is][size_is][out] */ ULONG **ppulList) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_CountryCodeList( - /* [out] */ ULONG *pulCount, - /* [size_is][size_is][out] */ ULONG **ppulList) = 0; - - }; - -#else /* C style interface */ - - typedef struct IFrequencyMapVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IFrequencyMap * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IFrequencyMap * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IFrequencyMap * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_FrequencyMapping )( - IFrequencyMap * This, - /* [out] */ ULONG *ulCount, - /* [size_is][size_is][out] */ ULONG **ppulList); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *put_FrequencyMapping )( - IFrequencyMap * This, - /* [in] */ ULONG ulCount, - /* [size_is][in] */ ULONG pList[ ]); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_CountryCode )( - IFrequencyMap * This, - /* [out] */ ULONG *pulCountryCode); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *put_CountryCode )( - IFrequencyMap * This, - /* [in] */ ULONG ulCountryCode); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultFrequencyMapping )( - IFrequencyMap * This, - /* [in] */ ULONG ulCountryCode, - /* [out] */ ULONG *pulCount, - /* [size_is][size_is][out] */ ULONG **ppulList); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_CountryCodeList )( - IFrequencyMap * This, - /* [out] */ ULONG *pulCount, - /* [size_is][size_is][out] */ 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 */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IFrequencyMap_get_FrequencyMapping_Proxy( - IFrequencyMap * This, - /* [out] */ ULONG *ulCount, - /* [size_is][size_is][out] */ ULONG **ppulList); - - -void __RPC_STUB IFrequencyMap_get_FrequencyMapping_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IFrequencyMap_put_FrequencyMapping_Proxy( - IFrequencyMap * This, - /* [in] */ ULONG ulCount, - /* [size_is][in] */ ULONG pList[ ]); - - -void __RPC_STUB IFrequencyMap_put_FrequencyMapping_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IFrequencyMap_get_CountryCode_Proxy( - IFrequencyMap * This, - /* [out] */ ULONG *pulCountryCode); - - -void __RPC_STUB IFrequencyMap_get_CountryCode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IFrequencyMap_put_CountryCode_Proxy( - IFrequencyMap * This, - /* [in] */ ULONG ulCountryCode); - - -void __RPC_STUB IFrequencyMap_put_CountryCode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IFrequencyMap_get_DefaultFrequencyMapping_Proxy( - IFrequencyMap * This, - /* [in] */ ULONG ulCountryCode, - /* [out] */ ULONG *pulCount, - /* [size_is][size_is][out] */ ULONG **ppulList); - - -void __RPC_STUB IFrequencyMap_get_DefaultFrequencyMapping_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IFrequencyMap_get_CountryCodeList_Proxy( - IFrequencyMap * This, - /* [out] */ ULONG *pulCount, - /* [size_is][size_is][out] */ ULONG **ppulList); - - -void __RPC_STUB IFrequencyMap_get_CountryCodeList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IFrequencyMap_INTERFACE_DEFINED__ */ - - -/* 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 * ); - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/bdamedia.h b/sdk/dx8sdk/Include/bdamedia.h deleted file mode 100644 index 92389192..00000000 --- a/sdk/dx8sdk/Include/bdamedia.h +++ /dev/null @@ -1,1554 +0,0 @@ -//------------------------------------------------------------------------------ -// File: BDAMedia.h -// -// Desc: Broadcast Driver Architecture Multimedia Definitions. -// -// Copyright (c) 1996 - 2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#if !defined(_KSMEDIA_) -#error KSMEDIA.H must be included before BDAMEDIA.H -#endif // !defined(_KSMEDIA_) - -#if !defined(_BDATYPES_) -#error BDATYPES.H must be included before BDAMEDIA.H -#endif // !defined(_BDATYPES_) - -#if !defined(_BDAMEDIA_) -#define _BDAMEDIA_ - -#if defined(__cplusplus) -extern "C" { -#endif // defined(__cplusplus) - - - -//=========================================================================== -// -// KSProperty Set Structure Definitions for BDA -// -//=========================================================================== - -typedef struct _KSP_BDA_NODE_PIN { - KSPROPERTY Property; - ULONG ulNodeType; - ULONG ulInputPinId; - ULONG ulOutputPinId; -} KSP_BDA_NODE_PIN, *PKSP_BDA_NODE_PIN; - - -typedef struct _KSM_BDA_PIN -{ - KSMETHOD Method; - union - { - ULONG PinId; - ULONG PinType; - }; - ULONG Reserved; -} KSM_BDA_PIN, * PKSM_BDA_PIN; - - -typedef struct _KSM_BDA_PIN_PAIR -{ - KSMETHOD Method; - union - { - ULONG InputPinId; - ULONG InputPinType; - }; - union - { - ULONG OutputPinId; - ULONG OutputPinType; - }; -} KSM_BDA_PIN_PAIR, * PKSM_BDA_PIN_PAIR; - - -typedef struct { - KSP_NODE Property; - ULONG EsPid; -} KSP_NODE_ESPID, *PKSP_NODE_ESPID; - - - -//=========================================================================== -// -// BDA Data Range definitions. Includes specifier definitions. -// -//=========================================================================== - -// Antenna Signal Formats -// - -typedef struct tagKS_DATARANGE_BDA_ANTENNA { - KSDATARANGE DataRange; - - // Antenna specifier can go here if required - // -} KS_DATARANGE_BDA_ANTENNA, *PKS_DATARANGE_BDA_ANTENNA; - - - -// Transport Formats -// - -typedef struct tagBDA_TRANSPORT_INFO { - ULONG ulcbPhyiscalPacket; // Size, in bytes, of a physical packet - // (e.g. Satellite link payload size. - ULONG ulcbPhyiscalFrame; // Size, in bytes, of each physical frame - // 0 indicates no HW requirement - ULONG ulcbPhyiscalFrameAlignment; // Capture buffer alignment in bytes - // 0 and 1 indicate no alignment requirements - REFERENCE_TIME AvgTimePerFrame; // Normal ActiveMovie units (100 nS) - -} BDA_TRANSPORT_INFO, *PBDA_TRANSPORT_INFO; - -typedef struct tagKS_DATARANGE_BDA_TRANSPORT { - KSDATARANGE DataRange; - BDA_TRANSPORT_INFO BdaTransportInfo; - - // Transport specifier can go here if required - // -} KS_DATARANGE_BDA_TRANSPORT, *PKS_DATARANGE_BDA_TRANSPORT; - - -//=========================================================================== -// BDA Event Guids -// -// These are sent by the IBroadcastEvent service on the graph. -// To receive, -// 0) Implement IBroadcastEvent in your receiving object - this has one Method on it: Fire() -// 1) QI the graphs service provider for SID_SBroadcastEventService -// for the IID_IBroadcastEvent object -// 2) OR create the event service (CLSID_BroadcastEventService) if not already there -// and register it -// 3) QI that object for it's IConnectionPoint interface (*pCP) -// 4) Advise your object on *pCP (e.g. pCP->Advise(static_cast(this), &dwCookie) -// 5) Unadvise when done.. -// 6) Implement IBroadcastEvent::Fire(GUID gEventID) -// Check for relevant event below and deal with it appropriatly... -//=========================================================================== - -// {9D7E6235-4B7D-425d-A6D1-D717C33B9C4C} -#define STATIC_EVENTID_TuningChanged \ - 0x9d7e6235, 0x4b7d, 0x425d, 0xa6, 0xd1, 0xd7, 0x17, 0xc3, 0x3b, 0x9c, 0x4c -DEFINE_GUIDSTRUCT("9D7E6235-4B7D-425d-A6D1-D717C33B9C4C", EVENTID_TuningChanged); -#define EVENTID_TuningChanged DEFINE_GUIDNAMED(EVENTID_TuningChanged) - -// {2A65C528-2249-4070-AC16-00390CDFB2DD} -#define STATIC_EVENTID_CADenialCountChanged \ - 0x2a65c528, 0x2249, 0x4070, 0xac, 0x16, 0x0, 0x39, 0xc, 0xdf, 0xb2, 0xdd -DEFINE_GUIDSTRUCT("2A65C528-2249-4070-AC16-00390CDFB2DD", EVENTID_CADenialCountChanged); -#define EVENTID_CADenialCountChanged DEFINE_GUIDNAMED(EVENTID_CADenialCountChanged) - -// {6D9CFAF2-702D-4b01-8DFF-6892AD20D191} -#define STATIC_EVENTID_SignalStatusChanged \ - 0x6d9cfaf2, 0x702d, 0x4b01, 0x8d, 0xff, 0x68, 0x92, 0xad, 0x20, 0xd1, 0x91 -DEFINE_GUIDSTRUCT("6D9CFAF2-702D-4b01-8DFF-6892AD20D191", EVENTID_SignalStatusChanged); -#define EVENTID_SignalStatusChanged DEFINE_GUIDNAMED(EVENTID_SignalStatusChanged) - -//=========================================================================== -// -// BDA Stream Format GUIDs -// -//=========================================================================== - -#define STATIC_KSDATAFORMAT_TYPE_BDA_ANTENNA\ - 0x71985f41, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F41-1CA1-11d3-9CC8-00C04F7971E0", KSDATAFORMAT_TYPE_BDA_ANTENNA); -#define KSDATAFORMAT_TYPE_BDA_ANTENNA DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_BDA_ANTENNA) - - -#define STATIC_KSDATAFORMAT_SUBTYPE_BDA_MPEG2_TRANSPORT\ - 0xf4aeb342, 0x0329, 0x4fdd, 0xa8, 0xfd, 0x4a, 0xff, 0x49, 0x26, 0xc9, 0x78 -DEFINE_GUIDSTRUCT("F4AEB342-0329-4fdd-A8FD-4AFF4926C978", KSDATAFORMAT_SUBTYPE_BDA_MPEG2_TRANSPORT); -#define KSDATAFORMAT_SUBTYPE_BDA_MPEG2_TRANSPORT DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_BDA_MPEG2_TRANSPORT) - - -#define STATIC_KSDATAFORMAT_SPECIFIER_BDA_TRANSPORT\ - 0x8deda6fd, 0xac5f, 0x4334, 0x8e, 0xcf, 0xa4, 0xba, 0x8f, 0xa7, 0xd0, 0xf0 -DEFINE_GUIDSTRUCT("8DEDA6FD-AC5F-4334-8ECF-A4BA8FA7D0F0", KSDATAFORMAT_SPECIFIER_BDA_TRANSPORT); -#define KSDATAFORMAT_SPECIFIER_BDA_TRANSPORT DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_BDA_TRANSPORT) - - -#define STATIC_KSDATAFORMAT_TYPE_BDA_IF_SIGNAL\ - 0x61be0b47, 0xa5eb, 0x499b, 0x9a, 0x85, 0x5b, 0x16, 0xc0, 0x7f, 0x12, 0x58 -DEFINE_GUIDSTRUCT("61BE0B47-A5EB-499b-9A85-5B16C07F1258", KSDATAFORMAT_TYPE_BDA_IF_SIGNAL); -#define KSDATAFORMAT_TYPE_BDA_IF_SIGNAL DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_BDA_IF_SIGNAL) - - -#define STATIC_KSDATAFORMAT_TYPE_MPEG2_SECTIONS\ - 0x455f176c, 0x4b06, 0x47ce, 0x9a, 0xef, 0x8c, 0xae, 0xf7, 0x3d, 0xf7, 0xb5 -DEFINE_GUIDSTRUCT("455F176C-4B06-47CE-9AEF-8CAEF73DF7B5", KSDATAFORMAT_TYPE_MPEG2_SECTIONS); -#define KSDATAFORMAT_TYPE_MPEG2_SECTIONS DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MPEG2_SECTIONS) - - -#define STATIC_KSDATAFORMAT_SUBTYPE_ATSC_SI\ - 0xb3c7397c, 0xd303, 0x414d, 0xb3, 0x3c, 0x4e, 0xd2, 0xc9, 0xd2, 0x97, 0x33 -DEFINE_GUIDSTRUCT("B3C7397C-D303-414D-B33C-4ED2C9D29733", KSDATAFORMAT_SUBTYPE_ATSC_SI); -#define KSDATAFORMAT_SUBTYPE_ATSC_SI DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_ATSC_SI) - - -#define STATIC_KSDATAFORMAT_SUBTYPE_DVB_SI\ - 0xe9dd31a3, 0x221d, 0x4adb, 0x85, 0x32, 0x9a, 0xf3, 0x9, 0xc1, 0xa4, 0x8 -DEFINE_GUIDSTRUCT("e9dd31a3-221d-4adb-8532-9af309c1a408", KSDATAFORMAT_SUBTYPE_DVB_SI); -#define KSDATAFORMAT_SUBTYPE_DVB_SI DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_DVB_SI) - - -#define STATIC_KSDATAFORMAT_SUBTYPE_BDA_OPENCABLE_PSIP\ - 0x762e3f66, 0x336f, 0x48d1, 0xbf, 0x83, 0x2b, 0x0, 0x35, 0x2c, 0x11, 0xf0 -DEFINE_GUIDSTRUCT("762E3F66-336F-48d1-BF83-2B00352C11F0", KSDATAFORMAT_SUBTYPE_BDA_OPENCABLE_PSIP); -#define KSDATAFORMAT_SUBTYPE_BDA_OPENCABLE_PSIP DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_BDA_OPENCABLE_PSIP) - -#define STATIC_KSDATAFORMAT_SUBTYPE_BDA_OPENCABLE_OOB_PSIP\ - 0x951727db, 0xd2ce, 0x4528, 0x96, 0xf6, 0x33, 0x1, 0xfa, 0xbb, 0x2d, 0xe0 -DEFINE_GUIDSTRUCT("951727DB-D2CE-4528-96F6-3301FABB2DE0", KSDATAFORMAT_SUBTYPE_BDA_OPENCABLE_OOB_PSIP); -#define KSDATAFORMAT_SUBTYPE_BDA_OPENCABLE_OOB_PSIP DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_BDA_OPENCABLE_OOB_PSIP) - -//=========================================================================== -// -// KSPinName Definitions for BDA -// -//=========================================================================== - -// Pin name for a BDA transport pin -// -// {78216A81-CFA8-493e-9711-36A61C08BD9D} -// -#define STATIC_PINNAME_BDA_TRANSPORT \ - 0x78216a81, 0xcfa8, 0x493e, 0x97, 0x11, 0x36, 0xa6, 0x1c, 0x8, 0xbd, 0x9d -DEFINE_GUIDSTRUCT("78216A81-CFA8-493e-9711-36A61C08BD9D", PINNAME_BDA_TRANSPORT); -#define PINNAME_BDA_TRANSPORT DEFINE_GUIDNAMED(PINNAME_BDA_TRANSPORT) - - -// Pin name for a BDA analog video pin -// -// {5C0C8281-5667-486c-8482-63E31F01A6E9} -// -#define STATIC_PINNAME_BDA_ANALOG_VIDEO \ - 0x5c0c8281, 0x5667, 0x486c, 0x84, 0x82, 0x63, 0xe3, 0x1f, 0x1, 0xa6, 0xe9 -DEFINE_GUIDSTRUCT("5C0C8281-5667-486c-8482-63E31F01A6E9", PINNAME_BDA_ANALOG_VIDEO); -#define PINNAME_BDA_ANALOG_VIDEO DEFINE_GUIDNAMED(PINNAME_BDA_ANALOG_VIDEO) - - -// Pin name for a BDA analog audio pin -// -// {D28A580A-9B1F-4b0c-9C33-9BF0A8EA636B} -// -#define STATIC_PINNAME_BDA_ANALOG_AUDIO \ - 0xd28a580a, 0x9b1f, 0x4b0c, 0x9c, 0x33, 0x9b, 0xf0, 0xa8, 0xea, 0x63, 0x6b -DEFINE_GUIDSTRUCT("D28A580A-9B1F-4b0c-9C33-9BF0A8EA636B", PINNAME_BDA_ANALOG_AUDIO); -#define PINNAME_BDA_ANALOG_AUDIO DEFINE_GUIDNAMED(PINNAME_BDA_ANALOG_AUDIO) - - -// Pin name for a BDA FM Radio pin -// -// {D2855FED-B2D3-4eeb-9BD0-193436A2F890} -// -#define STATIC_PINNAME_BDA_FM_RADIO \ - 0xd2855fed, 0xb2d3, 0x4eeb, 0x9b, 0xd0, 0x19, 0x34, 0x36, 0xa2, 0xf8, 0x90 -DEFINE_GUIDSTRUCT("D2855FED-B2D3-4eeb-9BD0-193436A2F890", PINNAME_BDA_FM_RADIO); -#define PINNAME_BDA_FM_RADIO DEFINE_GUIDNAMED(PINNAME_BDA_FM_RADIO) - - -// Pin name for a BDA Intermediate Frequency pin -// -// {1A9D4A42-F3CD-48a1-9AEA-71DE133CBE14} -// -#define STATIC_PINNAME_BDA_IF_PIN \ - 0x1a9d4a42, 0xf3cd, 0x48a1, 0x9a, 0xea, 0x71, 0xde, 0x13, 0x3c, 0xbe, 0x14 -DEFINE_GUIDSTRUCT("1A9D4A42-F3CD-48a1-9AEA-71DE133CBE14", PINNAME_BDA_IF_PIN); -#define PINNAME_BDA_IF_PIN DEFINE_GUIDNAMED(PINNAME_BDA_IF_PIN) - - -// Pin name for a BDA Open Cable PSIP pin -// -// {297BB104-E5C9-4ACE-B123-95C3CBB24D4F} -// -#define STATIC_PINNAME_BDA_OPENCABLE_PSIP_PIN \ - 0x297bb104, 0xe5c9, 0x4ace, 0xb1, 0x23, 0x95, 0xc3, 0xcb, 0xb2, 0x4d, 0x4f -DEFINE_GUIDSTRUCT("297BB104-E5C9-4ACE-B123-95C3CBB24D4F", PINNAME_BDA_OPENCABLE_PSIP_PIN); -#define PINNAME_BDA_OPENCABLE_PSIP_PIN DEFINE_GUIDNAMED(PINNAME_BDA_OPENCABLE_PSIP_PIN) - - -//=========================================================================== -// -// KSProperty Set Definitions for BDA -// -//=========================================================================== - - -//------------------------------------------------------------ -// -// BDA Network Ethernet Filter Property Set -// -// {71985F43-1CA1-11d3-9CC8-00C04F7971E0} -// -#define STATIC_KSPROPSETID_BdaEthernetFilter \ - 0x71985f43, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F43-1CA1-11d3-9CC8-00C04F7971E0", KSPROPSETID_BdaEthernetFilter); -#define KSPROPSETID_BdaEthernetFilter DEFINE_GUIDNAMED(KSPROPSETID_BdaEthernetFilter) - -typedef enum { - KSPROPERTY_BDA_ETHERNET_FILTER_MULTICAST_LIST_SIZE = 0, - KSPROPERTY_BDA_ETHERNET_FILTER_MULTICAST_LIST, - KSPROPERTY_BDA_ETHERNET_FILTER_MULTICAST_MODE -} KSPROPERTY_BDA_ETHERNET_FILTER; - -#define DEFINE_KSPROPERTY_ITEM_BDA_ETHERNET_FILTER_MULTICAST_LIST_SIZE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_ETHERNET_FILTER_MULTICAST_LIST_SIZE,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(ULONG),\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_ETHERNET_FILTER_MULTICAST_LIST(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_ETHERNET_FILTER_MULTICAST_LIST,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(BDA_ETHERNET_ADDRESS_LIST),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_ETHERNET_FILTER_MULTICAST_MODE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_ETHERNET_FILTER_MULTICAST_MODE,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(BDA_MULTICAST_MODE),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// BDA Network IPv4 Filter Property Set -// -// {71985F44-1CA1-11d3-9CC8-00C04F7971E0} -// -#define STATIC_KSPROPSETID_BdaIPv4Filter \ - 0x71985f44, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F44-1CA1-11d3-9CC8-00C04F7971E0", KSPROPSETID_BdaIPv4Filter); -#define KSPROPSETID_BdaIPv4Filter DEFINE_GUIDNAMED(KSPROPSETID_BdaIPv4Filter) - -typedef enum { - KSPROPERTY_BDA_IPv4_FILTER_MULTICAST_LIST_SIZE = 0, - KSPROPERTY_BDA_IPv4_FILTER_MULTICAST_LIST, - KSPROPERTY_BDA_IPv4_FILTER_MULTICAST_MODE -} KSPROPERTY_BDA_IPv4_FILTER; - -#define DEFINE_KSPROPERTY_ITEM_BDA_IPv4_FILTER_MULTICAST_LIST_SIZE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_IPv4_FILTER_MULTICAST_LIST_SIZE,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(ULONG),\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_IPv4_FILTER_MULTICAST_LIST(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_IPv4_FILTER_MULTICAST_LIST,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(BDA_IPv4_ADDRESS_LIST),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_IPv4_FILTER_MULTICAST_MODE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_IPv4_FILTER_MULTICAST_MODE,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(BDA_MULTICAST_MODE),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// BDA Network IPv6 Filter Property Set -// -// {E1785A74-2A23-4fb3-9245-A8F88017EF33} -// -#define STATIC_KSPROPSETID_BdaIPv6Filter \ - 0xe1785a74, 0x2a23, 0x4fb3, 0x92, 0x45, 0xa8, 0xf8, 0x80, 0x17, 0xef, 0x33 -DEFINE_GUIDSTRUCT("E1785A74-2A23-4fb3-9245-A8F88017EF33", KSPROPSETID_BdaIPv6Filter); -#define KSPROPSETID_BdaIPv6Filter DEFINE_GUIDNAMED(KSPROPSETID_BdaIPv6Filter) - -typedef enum { - KSPROPERTY_BDA_IPv6_FILTER_MULTICAST_LIST_SIZE = 0, - KSPROPERTY_BDA_IPv6_FILTER_MULTICAST_LIST, - KSPROPERTY_BDA_IPv6_FILTER_MULTICAST_MODE -} KSPROPERTY_BDA_IPv6_FILTER; - -#define DEFINE_KSPROPERTY_ITEM_BDA_IPv6_FILTER_MULTICAST_LIST_SIZE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_IPv6_FILTER_MULTICAST_LIST_SIZE,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(ULONG),\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_IPv6_FILTER_MULTICAST_LIST(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_IPv6_FILTER_MULTICAST_LIST,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(BDA_IPv6_ADDRESS_LIST),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_IPv6_FILTER_MULTICAST_MODE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_IPv6_FILTER_MULTICAST_MODE,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(BDA_MULTICAST_MODE),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - - -//------------------------------------------------------------ -// -// -// BDA Signal Statistics Property Set -// -// Used to get signal statistics from a control node or a pin. -// Set NodeId == -1 to get properties from the pin. -// -// {1347D106-CF3A-428a-A5CB-AC0D9A2A4338} -// -#define STATIC_KSPROPSETID_BdaSignalStats \ - 0x1347d106, 0xcf3a, 0x428a, 0xa5, 0xcb, 0xac, 0xd, 0x9a, 0x2a, 0x43, 0x38 -DEFINE_GUIDSTRUCT("1347D106-CF3A-428a-A5CB-AC0D9A2A4338", KSPROPSETID_BdaSignalStats); -#define KSPROPSETID_BdaSignalStats DEFINE_GUIDNAMED(KSPROPSETID_BdaSignalStats) - -typedef enum { - KSPROPERTY_BDA_SIGNAL_STRENGTH = 0, - KSPROPERTY_BDA_SIGNAL_QUALITY, - KSPROPERTY_BDA_SIGNAL_PRESENT, - KSPROPERTY_BDA_SIGNAL_LOCKED, - KSPROPERTY_BDA_SAMPLE_TIME -} KSPROPERTY_BDA_SIGNAL_STATS; - -// OPTIONAL -// Carrier strength in mDb (1/1000 of a DB). -// -// A strength of 0 is nominal strength as expected for the given -// type of broadcast network. -// -// Sub-nominal strengths are reported as positive mDb -// -// Super-nominal strengths are reported as negative mDb -// -#define DEFINE_KSPROPERTY_ITEM_BDA_SIGNAL_STRENGTH(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_SIGNAL_STRENGTH,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(LONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -// OPTIONAL -// Amount of data successfully extracted from the signal as a percent. -// -// Signal Quality is usually reported by the demodulation node and is -// a representation of how much of the original data could be extracted -// from the signal. -// -// In the case of Analog Signals, this percentage can be -// computed by examining the timing of HSync and VSync as will as by -// looking at information contained in HBlanking and VBlanking intervals. -// -// In the case of Digital Signals, this percentage can be -// computed by examining packet CRCs and FEC confidence values. -// -// 100 percent is ideal. -// 95 percent shows very little (almost unnoticable) artifacts when rendered. -// 90 percent contains few enough artifacts as to be easily viewable. -// 80 percent is the minimum level to be viewable. -// 60 percent is the minimum level to expect data services -// (including EPG) to work. -// 20 percent indicates that the demodulator knows that a properly modulated -// signal exists but can't produce enough data to be useful. -// -#define DEFINE_KSPROPERTY_ITEM_BDA_SIGNAL_QUALITY(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_SIGNAL_QUALITY,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(LONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -// REQUIRED -// True if a signal carrier is present. -// -// Should be returned by the RF tuner node. -// -#define DEFINE_KSPROPERTY_ITEM_BDA_SIGNAL_PRESENT(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_SIGNAL_PRESENT,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(BOOL),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -// REQUIRED -// True if the signal can be locked. -// -// Ususally represents PLL lock when returned by the RF Tuner Node. -// -// Represents Signal Quality of at least 20% when returned by the -// demodulator node. -// -#define DEFINE_KSPROPERTY_ITEM_BDA_SIGNAL_LOCKED(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_SIGNAL_LOCKED,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(BOOL),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -// OPTIONAL -// Indicates the sample time overwhich signal level and quality are -// averaged. -// -// Each time a signal statistics property is requested, the node should -// report the average value for the last n milliseconds where n is the -// value set by this property. If no value is set or if the driver does -// not support this property, the driver should default to -// 100 millisecond sample times. -// -// The driver may report values for the most recently completed sample -// period. -// -#define DEFINE_KSPROPERTY_ITEM_BDA_SAMPLE_TIME(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_SAMPLE_TIME,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(LONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// -// BDA Change Sync Method Set -// -// {FD0A5AF3-B41D-11d2-9C95-00C04F7971E0} -// -#define STATIC_KSMETHODSETID_BdaChangeSync \ - 0xfd0a5af3, 0xb41d, 0x11d2, 0x9c, 0x95, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("FD0A5AF3-B41D-11d2-9C95-00C04F7971E0", KSMETHODSETID_BdaChangeSync); -#define KSMETHODSETID_BdaChangeSync DEFINE_GUIDNAMED(KSMETHODSETID_BdaChangeSync) - -typedef enum { - KSMETHOD_BDA_START_CHANGES = 0, - KSMETHOD_BDA_CHECK_CHANGES, - KSMETHOD_BDA_COMMIT_CHANGES, - KSMETHOD_BDA_GET_CHANGE_STATE -} KSMETHOD_BDA_CHANGE_SYNC; - -#define DEFINE_KSMETHOD_ITEM_BDA_START_CHANGES(MethodHandler, SupportHandler)\ - DEFINE_KSMETHOD_ITEM(\ - KSMETHOD_BDA_START_CHANGES,\ - KSMETHOD_TYPE_NONE,\ - (MethodHandler),\ - sizeof(KSMETHOD),\ - 0,\ - SupportHandler) - -#define DEFINE_KSMETHOD_ITEM_BDA_CHECK_CHANGES(MethodHandler, SupportHandler)\ - DEFINE_KSMETHOD_ITEM(\ - KSMETHOD_BDA_CHECK_CHANGES,\ - KSMETHOD_TYPE_NONE,\ - (MethodHandler),\ - sizeof(KSMETHOD),\ - 0,\ - SupportHandler) - -#define DEFINE_KSMETHOD_ITEM_BDA_COMMIT_CHANGES(MethodHandler, SupportHandler)\ - DEFINE_KSMETHOD_ITEM(\ - KSMETHOD_BDA_COMMIT_CHANGES,\ - KSMETHOD_TYPE_NONE,\ - (MethodHandler),\ - sizeof(KSMETHOD),\ - 0,\ - SupportHandler) - -#define DEFINE_KSMETHOD_ITEM_BDA_GET_CHANGE_STATE(MethodHandler, SupportHandler)\ - DEFINE_KSMETHOD_ITEM(\ - KSMETHOD_BDA_GET_CHANGE_STATE,\ - KSMETHOD_TYPE_READ,\ - (MethodHandler),\ - sizeof(KSMETHOD),\ - 0,\ - SupportHandler) - - - -//------------------------------------------------------------ -// -// -// BDA Device Configuration Method Set -// -// {71985F45-1CA1-11d3-9CC8-00C04F7971E0} -// -#define STATIC_KSMETHODSETID_BdaDeviceConfiguration \ - 0x71985f45, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F45-1CA1-11d3-9CC8-00C04F7971E0", KSMETHODSETID_BdaDeviceConfiguration); -#define KSMETHODSETID_BdaDeviceConfiguration DEFINE_GUIDNAMED(KSMETHODSETID_BdaDeviceConfiguration) - -typedef enum { - KSMETHOD_BDA_CREATE_PIN_FACTORY = 0, - KSMETHOD_BDA_DELETE_PIN_FACTORY, - KSMETHOD_BDA_CREATE_TOPOLOGY -} KSMETHOD_BDA_DEVICE_CONFIGURATION; - -#define DEFINE_KSMETHOD_ITEM_BDA_CREATE_PIN_FACTORY(MethodHandler, SupportHandler)\ - DEFINE_KSMETHOD_ITEM(\ - KSMETHOD_BDA_CREATE_PIN_FACTORY,\ - KSMETHOD_TYPE_READ,\ - (MethodHandler),\ - sizeof(KSM_BDA_PIN),\ - sizeof(ULONG),\ - SupportHandler) - -#define DEFINE_KSMETHOD_ITEM_BDA_DELETE_PIN_FACTORY(MethodHandler, SupportHandler)\ - DEFINE_KSMETHOD_ITEM(\ - KSMETHOD_BDA_DELETE_PIN_FACTORY,\ - KSMETHOD_TYPE_NONE,\ - (MethodHandler),\ - sizeof(KSM_BDA_PIN),\ - 0,\ - SupportHandler) - -#define DEFINE_KSMETHOD_ITEM_BDA_CREATE_TOPOLOGY(MethodHandler, SupportHandler)\ - DEFINE_KSMETHOD_ITEM(\ - KSMETHOD_BDA_CREATE_TOPOLOGY,\ - KSMETHOD_TYPE_WRITE,\ - (MethodHandler),\ - sizeof(KSM_BDA_PIN_PAIR),\ - 0,\ - SupportHandler) - - - -//------------------------------------------------------------ -// -// -// BDA Topology Property Set -// -// {A14EE835-0A23-11d3-9CC7-00C04F7971E0} -// -#define STATIC_KSPROPSETID_BdaTopology \ - 0xa14ee835, 0x0a23, 0x11d3, 0x9c, 0xc7, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("A14EE835-0A23-11d3-9CC7-00C04F7971E0", KSPROPSETID_BdaTopology); -#define KSPROPSETID_BdaTopology DEFINE_GUIDNAMED(KSPROPSETID_BdaTopology) - -typedef enum { - KSPROPERTY_BDA_NODE_TYPES, - KSPROPERTY_BDA_PIN_TYPES, - KSPROPERTY_BDA_TEMPLATE_CONNECTIONS, - KSPROPERTY_BDA_NODE_METHODS, - KSPROPERTY_BDA_NODE_PROPERTIES, - KSPROPERTY_BDA_NODE_EVENTS, - KSPROPERTY_BDA_CONTROLLING_PIN_ID, - KSPROPERTY_BDA_NODE_DESCRIPTORS - }KSPROPERTY_BDA_TOPOLOGY; - -#define DEFINE_KSPROPERTY_ITEM_BDA_NODE_TYPES(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_NODE_TYPES,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - 0,\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_PIN_TYPES(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_PIN_TYPES,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - 0,\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_TEMPLATE_CONNECTIONS(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_TEMPLATE_CONNECTIONS,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof( BDA_TEMPLATE_CONNECTION),\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_NODE_METHODS(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_NODE_METHODS,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - 0,\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_NODE_PROPERTIES(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_NODE_PROPERTIES,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - 0,\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_NODE_EVENTS(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_NODE_EVENTS,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - 0,\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_CONTROLLING_PIN_ID(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_CONTROLLING_PIN_ID,\ - (GetHandler),\ - sizeof(KSP_BDA_NODE_PIN),\ - sizeof( ULONG),\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_NODE_DESCRIPTORS(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_NODE_DESCRIPTORS,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - 0,\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// -// BDA Pin Control Property Set -// -// {0DED49D5-A8B7-4d5d-97A1-12B0C195874D} -// -#define STATIC_KSPROPSETID_BdaPinControl \ - 0xded49d5, 0xa8b7, 0x4d5d, 0x97, 0xa1, 0x12, 0xb0, 0xc1, 0x95, 0x87, 0x4d -DEFINE_GUIDSTRUCT("0DED49D5-A8B7-4d5d-97A1-12B0C195874D", KSPROPSETID_BdaPinControl); -#define KSPROPSETID_BdaPinControl DEFINE_GUIDNAMED(KSPROPSETID_BdaPinControl) - -typedef enum { - KSPROPERTY_BDA_PIN_ID = 0, - KSPROPERTY_BDA_PIN_TYPE -} KSPROPERTY_BDA_PIN_CONTROL; - -#define DEFINE_KSPROPERTY_ITEM_BDA_PIN_ID(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_PIN_ID,\ - (GetHandler),\ - sizeof( KSPROPERTY),\ - sizeof( ULONG),\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_PIN_TYPE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_PIN_TYPE,\ - (GetHandler),\ - sizeof( KSPROPERTY),\ - sizeof( ULONG),\ - FALSE,\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// -// BDA Pin Event Set -// -// {104781CD-50BD-40d5-95FB-087E0E86A591} -// -#define STATIC_KSEVENTSETID_BdaPinEvent \ - 0x104781cd, 0x50bd, 0x40d5, 0x95, 0xfb, 0x08, 0x7e, 0xe, 0x86, 0xa5, 0x91 -DEFINE_GUIDSTRUCT("104781CD-50BD-40d5-95FB-087E0E86A591", KSEVENTSETID_BdaPinEvent); -#define KSEVENTSETID_BdaPinEvent DEFINE_GUIDNAMED(KSEVENTSETID_BdaPinEvent) - -typedef enum { - KSEVENT_BDA_PIN_CONNECTED = 0, - KSEVENT_BDA_PIN_DISCONNECTED -} KSPROPERTY_BDA_PIN_EVENT; - -#define DEFINE_KSEVENT_ITEM_BDA_PIN_CONNECTED(AddHandler, RemoveHandler, SupportHandler)\ - DEFINE_KSEVENT_ITEM(\ - KSEVENT_BDA_PIN_CONNECTED,\ - sizeof( KSEVENTDATA), \ - 0, \ - (AddHandler),\ - (RemoveHandler),\ - (SupportHandler)\ - ) - -#define DEFINE_KSEVENT_ITEM_BDA_PIN_DISCONNECTED(AddHandler, RemoveHandler, SupportHandler)\ - DEFINE_KSEVENT_ITEM(\ - KSEVENT_BDA_PIN_DISCONNECTED,\ - sizeof( KSEVENTDATA), \ - 0, \ - (AddHandler),\ - (RemoveHandler),\ - (SupportHandler)\ - ) - - - -//------------------------------------------------------------ -// -// -// BDA Void Transform Property Set -// -// {71985F46-1CA1-11d3-9CC8-00C04F7971E0} -// -#define STATIC_KSPROPSETID_BdaVoidTransform \ - 0x71985f46, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F46-1CA1-11d3-9CC8-00C04F7971E0", KSPROPSETID_BdaVoidTransform); -#define KSPROPSETID_BdaVoidTransform DEFINE_GUIDNAMED(KSPROPSETID_BdaVoidTransform) - -typedef enum { - KSPROPERTY_BDA_VOID_TRANSFORM_START = 0, - KSPROPERTY_BDA_VOID_TRANSFORM_STOP -} KSPROPERTY_BDA_VOID_TRANSFORM; - -#define DEFINE_KSPROPERTY_ITEM_BDA_VOID_TRANSFORM_START(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_VOID_TRANSFORM_START,\ - FALSE,\ - sizeof(KSPROPERTY),\ - 0,\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_VOID_TRANSFORM_STOP(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_VOID_TRANSFORM_STOP,\ - FALSE,\ - sizeof(KSPROPERTY),\ - 0,\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// -// BDA Null Transform Property Set -// -// {DDF15B0D-BD25-11d2-9CA0-00C04F7971E0} -// -#define STATIC_KSPROPSETID_BdaNullTransform \ - 0xddf15b0d, 0xbd25, 0x11d2, 0x9c, 0xa0, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("DDF15B0D-BD25-11d2-9CA0-00C04F7971E0", KSPROPSETID_BdaNullTransform); -#define KSPROPSETID_BdaNullTransform DEFINE_GUIDNAMED(KSPROPSETID_BdaNullTransform) - -typedef enum { - KSPROPERTY_BDA_NULL_TRANSFORM_START = 0, - KSPROPERTY_BDA_NULL_TRANSFORM_STOP -} KSPROPERTY_BDA_NULL_TRANSFORM; - -#define DEFINE_KSPROPERTY_ITEM_BDA_NULL_TRANSFORM_START(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_NULL_TRANSFORM_START,\ - FALSE,\ - sizeof(KSPROPERTY),\ - 0,\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_NULL_TRANSFORM_STOP(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_NULL_TRANSFORM_STOP,\ - FALSE,\ - sizeof(KSPROPERTY),\ - 0,\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// -// BDA Frequency Filter Property Set -// -// {71985F47-1CA1-11d3-9CC8-00C04F7971E0} -// -#define STATIC_KSPROPSETID_BdaFrequencyFilter \ - 0x71985f47, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F47-1CA1-11d3-9CC8-00C04F7971E0", KSPROPSETID_BdaFrequencyFilter); -#define KSPROPSETID_BdaFrequencyFilter DEFINE_GUIDNAMED(KSPROPSETID_BdaFrequencyFilter) - -typedef enum { - KSPROPERTY_BDA_RF_TUNER_FREQUENCY = 0, - KSPROPERTY_BDA_RF_TUNER_POLARITY, - KSPROPERTY_BDA_RF_TUNER_RANGE, - KSPROPERTY_BDA_RF_TUNER_TRANSPONDER, - KSPROPERTY_BDA_RF_TUNER_BANDWIDTH, - KSPROPERTY_BDA_RF_TUNER_FREQUENCY_MULTIPLIER -} KSPROPERTY_BDA_FREQUENCY_FILTER; - -#define DEFINE_KSPROPERTY_ITEM_BDA_RF_TUNER_FREQUENCY(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_RF_TUNER_FREQUENCY,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_RF_TUNER_POLARITY(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_RF_TUNER_POLARITY,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_RF_TUNER_RANGE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_RF_TUNER_RANGE,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_RF_TUNER_TRANSPONDER(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_RF_TUNER_TRANSPONDER,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_RF_TUNER_BANDWIDTH(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_RF_TUNER_BANDWIDTH,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_RF_TUNER_FREQUENCY_MULTIPLIER(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_RF_TUNER_FREQUENCY_MULTIPLIER,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// -// BDA LNB Info Property Set -// -// {992CF102-49F9-4719-A664-C4F23E2408F4} -// -#define STATIC_KSPROPSETID_BdaLNBInfo \ - 0x992cf102, 0x49f9, 0x4719, 0xa6, 0x64, 0xc4, 0xf2, 0x3e, 0x24, 0x8, 0xf4 -DEFINE_GUIDSTRUCT("992CF102-49F9-4719-A664-C4F23E2408F4", KSPROPSETID_BdaLNBInfo); -#define KSPROPSETID_BdaLNBInfo DEFINE_GUIDNAMED(KSPROPSETID_BdaLNBInfo) - -typedef enum { - KSPROPERTY_BDA_LNB_LOF_LOW_BAND = 0, - KSPROPERTY_BDA_LNB_LOF_HIGH_BAND, - KSPROPERTY_BDA_LNB_SWITCH_FREQUENCY -} KSPROPERTY_BDA_LNB_INFO; - -#define DEFINE_KSPROPERTY_ITEM_BDA_LNB_LOF_LOW_BAND(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_LNB_LOF_LOW_BAND,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_LNB_LOF_HIGH_BAND(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_LNB_LOF_HIGH_BAND,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_LNB_SWITCH_FREQUENCY(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_LNB_SWITCH_FREQUENCY,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// -// BDA Digital Demodulator Property Set -// -// {EF30F379-985B-4d10-B640-A79D5E04E1E0} -// -#define STATIC_KSPROPSETID_BdaDigitalDemodulator \ - 0xef30f379, 0x985b, 0x4d10, 0xb6, 0x40, 0xa7, 0x9d, 0x5e, 0x4, 0xe1, 0xe0 -DEFINE_GUIDSTRUCT("EF30F379-985B-4d10-B640-A79D5E04E1E0", KSPROPSETID_BdaDigitalDemodulator); -#define KSPROPSETID_BdaDigitalDemodulator DEFINE_GUIDNAMED(KSPROPSETID_BdaDigitalDemodulator) - -typedef enum { - KSPROPERTY_BDA_MODULATION_TYPE = 0, - KSPROPERTY_BDA_INNER_FEC_TYPE, - KSPROPERTY_BDA_INNER_FEC_RATE, - KSPROPERTY_BDA_OUTER_FEC_TYPE, - KSPROPERTY_BDA_OUTER_FEC_RATE, - KSPROPERTY_BDA_SYMBOL_RATE, - KSPROPERTY_BDA_SPECTRAL_INVERSION, - KSPROPERTY_BDA_GUARD_INTERVAL, - KSPROPERTY_BDA_TRANSMISSION_MODE -} KSPROPERTY_BDA_DIGITAL_DEMODULATOR; - -#define DEFINE_KSPROPERTY_ITEM_BDA_MODULATION_TYPE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_MODULATION_TYPE,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ModulationType),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_INNER_FEC_TYPE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_INNER_FEC_TYPE,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(FECMethod),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_INNER_FEC_RATE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_INNER_FEC_RATE,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(BinaryConvolutionCodeRate),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_OUTER_FEC_TYPE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_OUTER_FEC_TYPE,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(FECMethod),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_OUTER_FEC_RATE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_OUTER_FEC_RATE,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(BinaryConvolutionCodeRate),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_SYMBOL_RATE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_SYMBOL_RATE,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_SPECTRAL_INVERSION(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_SPECTRAL_INVERSION,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(SpectralInversion),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_GUARD_INTERVAL(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_GUARD_INTERVAL,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(GuardInterval),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_TRANSMISSION_MODE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_TRANSMISSION_MODE,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(TransmissionMode),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// -// BDA Autodemodulate Property Set -// -// {DDF15B12-BD25-11d2-9CA0-00C04F7971E0} -// -#define STATIC_KSPROPSETID_BdaAutodemodulate \ - 0xddf15b12, 0xbd25, 0x11d2, 0x9c, 0xa0, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("DDF15B12-BD25-11d2-9CA0-00C04F7971E0", KSPROPSETID_BdaAutodemodulate); -#define KSPROPSETID_BdaAutodemodulate DEFINE_GUIDNAMED(KSPROPSETID_BdaAutodemodulate) - -typedef enum { - KSPROPERTY_BDA_AUTODEMODULATE_START = 0, - KSPROPERTY_BDA_AUTODEMODULATE_STOP -} KSPROPERTY_BDA_AUTODEMODULATE; - -#define DEFINE_KSPROPERTY_ITEM_BDA_AUTODEMODULATE_START(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_AUTODEMODULATE_START,\ - FALSE,\ - sizeof(KSP_NODE),\ - 0,\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_AUTODEMODULATE_STOP(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_AUTODEMODULATE_STOP,\ - FALSE,\ - sizeof(KSP_NODE),\ - 0,\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -//------------------------------------------------------------ -// -// -// BDA Table Section Property Set -// -// {516B99C5-971C-4aaf-B3F3-D9FDA8A15E16} -// - -#define STATIC_KSPROPSETID_BdaTableSection \ - 0x516b99c5, 0x971c, 0x4aaf, 0xb3, 0xf3, 0xd9, 0xfd, 0xa8, 0xa1, 0x5e, 0x16 -DEFINE_GUIDSTRUCT("516B99C5-971C-4aaf-B3F3-D9FDA8A15E16", KSPROPSETID_BdaTableSection); -#define KSPROPSETID_BdaTableSection DEFINE_GUIDNAMED(KSPROPSETID_BdaTableSection) - -typedef enum { - KSPROPERTY_BDA_TABLE_SECTION = 0, -} KSPROPERTY_IDS_BDA_TABLE; - -#define DEFINE_KSPROPERTY_ITEM_BDA_TABLE_SECTION(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_TABLE_SECTION,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(BDA_TABLE_SECTION),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// -// BDA PID Filter Property Set -// -// {D0A67D65-08DF-4fec-8533-E5B550410B85} -// -#define STATIC_KSPROPSETID_BdaPIDFilter \ - 0xd0a67d65, 0x8df, 0x4fec, 0x85, 0x33, 0xe5, 0xb5, 0x50, 0x41, 0xb, 0x85 -DEFINE_GUIDSTRUCT("D0A67D65-08DF-4fec-8533-E5B550410B85", KSPROPSETID_BdaPIDFilter); -#define KSPROPSETID_BdaPIDFilter DEFINE_GUIDNAMED(KSPROPSETID_BdaPIDFilter) - -typedef enum { - KSPROPERTY_BDA_PIDFILTER_MAP_PIDS = 0, - KSPROPERTY_BDA_PIDFILTER_UNMAP_PIDS, - KSPROPERTY_BDA_PIDFILTER_LIST_PIDS -} KSPROPERTY_BDA_PIDFILTER; - -#define DEFINE_KSPROPERTY_ITEM_BDA_PIDFILTER_MAP_PIDS(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_PIDFILTER_MAP_PIDS,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(BDA_PID_MAP),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_PIDFILTER_UNMAP_PIDS(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_PIDFILTER_UNMAP_PIDS,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(BDA_PID_UNMAP),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_PIDFILTER_LIST_PIDS(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_PIDFILTER_LIST_PIDS,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - 0,\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// -// BDA CA Property Set -// -// {B0693766-5278-4ec6-B9E1-3CE40560EF5A} -// -#define STATIC_KSPROPSETID_BdaCA \ - 0xb0693766, 0x5278, 0x4ec6, 0xb9, 0xe1, 0x3c, 0xe4, 0x5, 0x60, 0xef, 0x5a -DEFINE_GUIDSTRUCT("B0693766-5278-4ec6-B9E1-3CE40560EF5A", KSPROPSETID_BdaCA); -#define KSPROPSETID_BdaCA DEFINE_GUIDNAMED(KSPROPSETID_BdaCA) - -typedef enum { - KSPROPERTY_BDA_ECM_MAP_STATUS = 0, - KSPROPERTY_BDA_CA_MODULE_STATUS, - KSPROPERTY_BDA_CA_SMART_CARD_STATUS, - KSPROPERTY_BDA_CA_MODULE_UI, - KSPROPERTY_BDA_CA_SET_PROGRAM_PIDS, - KSPROPERTY_BDA_CA_REMOVE_PROGRAM -} KSPROPERTY_BDA_CA; - -#define DEFINE_KSPROPERTY_ITEM_BDA_ECM_MAP_STATUS(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_ECM_MAP_STATUS,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_CA_MODULE_STATUS(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_CA_MODULE_STATUS,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_CA_SMART_CARD_STATUS(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_CA_SMART_CARD_STATUS,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_CA_MODULE_UI(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_CA_MODULE_UI,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(BDA_CA_MODULE_UI),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_CA_SET_PROGRAM_PIDS(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_CA_SET_PROGRAM_PIDS,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(BDA_PROGRAM_PID_LIST),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_BDA_CA_REMOVE_PROGRAM(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_BDA_CA_REMOVE_PROGRAM,\ - (GetHandler),\ - sizeof(KSP_NODE),\ - sizeof(ULONG),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - - - -//------------------------------------------------------------ -// -// -// BDA CA Event Set -// -// {488C4CCC-B768-4129-8EB1-B00A071F9068} -// -#define STATIC_KSEVENTSETID_BdaCAEvent \ - 0x488c4ccc, 0xb768, 0x4129, 0x8e, 0xb1, 0xb0, 0xa, 0x7, 0x1f, 0x90, 0x68 -DEFINE_GUIDSTRUCT("488C4CCC-B768-4129-8EB1-B00A071F9068", KSEVENTSETID_BdaCAEvent); -#define KSEVENTSETID_BdaCAEvent DEFINE_GUIDNAMED(KSEVENTSETID_BdaCAEvent) - -typedef enum { - KSEVENT_BDA_PROGRAM_FLOW_STATUS_CHANGED = 0, - KSEVENT_BDA_CA_MODULE_STATUS_CHANGED, - KSEVENT_BDA_CA_SMART_CARD_STATUS_CHANGED, - KSEVENT_BDA_CA_MODULE_UI_REQUESTED -} KSPROPERTY_BDA_CA_EVENT; - -#define DEFINE_KSEVENT_BDA_PROGRAM_FLOW_STATUS_CHANGED(AddHandler, RemoveHandler, SupportHandler)\ - DEFINE_KSEVENT_ITEM(\ - KSEVENT_BDA_PROGRAM_FLOW_STATUS_CHANGED,\ - sizeof( KSEVENTDATA), \ - 0, \ - (AddHandler),\ - (RemoveHandler),\ - (SupportHandler)\ - ) - -#define DEFINE_KSEVENT_BDA_CA_MODULE_STATUS_CHANGED(AddHandler, RemoveHandler, SupportHandler)\ - DEFINE_KSEVENT_ITEM(\ - KSEVENT_BDA_CA_MODULE_STATUS_CHANGED,\ - sizeof( KSEVENTDATA), \ - 0, \ - (AddHandler),\ - (RemoveHandler),\ - (SupportHandler)\ - ) - -#define DEFINE_KSEVENT_BDA_CA_SMART_CARD_STATUS_CHANGED(AddHandler, RemoveHandler, SupportHandler)\ - DEFINE_KSEVENT_ITEM(\ - KSEVENT_BDA_CA_SMART_CARD_STATUS_CHANGED,\ - sizeof( KSEVENTDATA), \ - 0, \ - (AddHandler),\ - (RemoveHandler),\ - (SupportHandler)\ - ) - -#define DEFINE_KSEVENT_BDA_CA_MODULE_UI_REQUESTED(AddHandler, RemoveHandler, SupportHandler)\ - DEFINE_KSEVENT_ITEM(\ - KSEVENT_BDA_CA_MODULE_UI_REQUESTED,\ - sizeof( KSEVENTDATA), \ - 0, \ - (AddHandler),\ - (RemoveHandler),\ - (SupportHandler)\ - ) - - -//=========================================================================== -// -// BDA Filter Categories -// -//=========================================================================== - -#define STATIC_KSCATEGORY_BDA_RECEIVER_COMPONENT \ - 0xFD0A5AF4, 0xB41D, 0x11d2, 0x9c, 0x95, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("FD0A5AF4-B41D-11d2-9C95-00C04F7971E0", KSCATEGORY_BDA_RECEIVER_COMPONENT); -#define KSCATEGORY_BDA_RECEIVER_COMPONENT DEFINE_GUIDNAMED(KSCATEGORY_BDA_RECEIVER_COMPONENT) - - -#define STATIC_KSCATEGORY_BDA_NETWORK_TUNER \ - 0x71985f48, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F48-1CA1-11d3-9CC8-00C04F7971E0", KSCATEGORY_BDA_NETWORK_TUNER); -#define KSCATEGORY_BDA_NETWORK_TUNER DEFINE_GUIDNAMED(KSCATEGORY_BDA_NETWORK_TUNER) - - -#define STATIC_KSCATEGORY_BDA_NETWORK_EPG \ - 0x71985f49, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F49-1CA1-11d3-9CC8-00C04F7971E0", KSCATEGORY_BDA_NETWORK_EPG); -#define KSCATEGORY_BDA_NETWORK_EPG DEFINE_GUIDNAMED(KSCATEGORY_BDA_NETWORK_EPG) - - -#define STATIC_KSCATEGORY_BDA_IP_SINK \ - 0x71985f4aL, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x00, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F4A-1CA1-11d3-9CC8-00C04F7971E0", KSCATEGORY_BDA_IP_SINK); -#define KSCATEGORY_IP_SINK DEFINE_GUIDNAMED(KSCATEGORY_BDA_IP_SINK) - - -#define STATIC_KSCATEGORY_BDA_NETWORK_PROVIDER \ - 0x71985f4b, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F4B-1CA1-11d3-9CC8-00C04F7971E0", KSCATEGORY_BDA_NETWORK_PROVIDER); -#define KSCATEGORY_BDA_NETWORK_PROVIDER DEFINE_GUIDNAMED(KSCATEGORY_BDA_NETWORK_PROVIDER) - -// {A2E3074F-6C3D-11d3-B653-00C04F79498E} -#define STATIC_KSCATEGORY_BDA_TRANSPORT_INFORMATION \ - 0xa2e3074f, 0x6c3d, 0x11d3, 0xb6, 0x53, 0x0, 0xc0, 0x4f, 0x79, 0x49, 0x8e -DEFINE_GUIDSTRUCT("A2E3074F-6C3D-11d3-B653-00C04F79498E", KSCATEGORY_BDA_TRANSPORT_INFORMATION); -#define KSCATEGORY_BDA_TRANSPORT_INFORMATION DEFINE_GUIDNAMED(KSCATEGORY_BDA_TRANSPORT_INFORMATION) - -//=========================================================================== -// -// BDA Node Categories -// -//=========================================================================== - - -#define STATIC_KSNODE_BDA_RF_TUNER \ - 0x71985f4c, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F4C-1CA1-11d3-9CC8-00C04F7971E0", KSNODE_BDA_RF_TUNER); -#define KSNODE_BDA_RF_TUNER DEFINE_GUIDNAMED(KSNODE_BDA_RF_TUNER) - - -#define STATIC_KSNODE_BDA_QAM_DEMODULATOR \ - 0x71985f4d, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F4D-1CA1-11d3-9CC8-00C04F7971E0", KSNODE_BDA_QAM_DEMODULATOR); -#define KSNODE_BDA_QAM_DEMODULATOR DEFINE_GUIDNAMED(KSNODE_BDA_QAM_DEMODULATOR) - - -#define STATIC_KSNODE_BDA_QPSK_DEMODULATOR \ - 0x6390c905, 0x27c1, 0x4d67, 0xbd, 0xb7, 0x77, 0xc5, 0xd, 0x7, 0x93, 0x0 -DEFINE_GUIDSTRUCT("6390C905-27C1-4d67-BDB7-77C50D079300", KSNODE_BDA_QPSK_DEMODULATOR); -#define KSNODE_BDA_QPSK_DEMODULATOR DEFINE_GUIDNAMED(KSNODE_BDA_QPSK_DEMODULATOR) - - -#define STATIC_KSNODE_BDA_8VSB_DEMODULATOR \ - 0x71985f4f, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F4F-1CA1-11d3-9CC8-00C04F7971E0", KSNODE_BDA_8VSB_DEMODULATOR); -#define KSNODE_BDA_8VSB_DEMODULATOR DEFINE_GUIDNAMED(KSNODE_BDA_8VSB_DEMODULATOR) - - -#define STATIC_KSNODE_BDA_COFDM_DEMODULATOR \ - 0x2dac6e05, 0xedbe, 0x4b9c, 0xb3, 0x87, 0x1b, 0x6f, 0xad, 0x7d, 0x64, 0x95 -DEFINE_GUIDSTRUCT("2DAC6E05-EDBE-4b9c-B387-1B6FAD7D6495", KSNODE_BDA_COFDM_DEMODULATOR); -#define KSNODE_BDA_COFDM_DEMODULATOR DEFINE_GUIDNAMED(KSNODE_BDA_COFDM_DEMODULATOR) - - -#define STATIC_KSNODE_BDA_OPENCABLE_POD \ - 0xd83ef8fc, 0xf3b8, 0x45ab, 0x8b, 0x71, 0xec, 0xf7, 0xc3, 0x39, 0xde, 0xb4 -DEFINE_GUIDSTRUCT("D83EF8FC-F3B8-45ab-8B71-ECF7C339DEB4", KSNODE_BDA_OPENCABLE_POD); -#define KSNODE_BDA_OPENCABLE_POD DEFINE_GUIDNAMED(KSNODE_BDA_OPENCABLE_POD) - - -#define STATIC_KSNODE_BDA_COMMON_CA_POD \ - 0xd83ef8fc, 0xf3b8, 0x45ab, 0x8b, 0x71, 0xec, 0xf7, 0xc3, 0x39, 0xde, 0xb4 -DEFINE_GUIDSTRUCT("D83EF8FC-F3B8-45ab-8B71-ECF7C339DEB4", KSNODE_BDA_COMMON_CA_POD); -#define KSNODE_BDA_COMMON_CA_POD DEFINE_GUIDNAMED(KSNODE_BDA_COMMON_CA_POD) - - -#define STATIC_KSNODE_BDA_PID_FILTER \ - 0xf5412789, 0xb0a0, 0x44e1, 0xae, 0x4f, 0xee, 0x99, 0x9b, 0x1b, 0x7f, 0xbe -DEFINE_GUIDSTRUCT("F5412789-B0A0-44e1-AE4F-EE999B1B7FBE", KSNODE_BDA_PID_FILTER); -#define KSNODE_BDA_PID_FILTER DEFINE_GUIDNAMED(KSNODE_BDA_PID_FILTER) - - -#define STATIC_KSNODE_BDA_IP_SINK \ - 0x71985f4e, 0x1ca1, 0x11d3, 0x9c, 0xc8, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe0 -DEFINE_GUIDSTRUCT("71985F4E-1CA1-11d3-9CC8-00C04F7971E0", KSNODE_BDA_IP_SINK); -#define KSNODE_IP_SINK DEFINE_GUIDNAMED(KSNODE_BDA_IP_SINK) - - -//=========================================================================== -// -// IPSink PINNAME GUID -// -//=========================================================================== - -#define STATIC_PINNAME_IPSINK_INPUT \ - 0x3fdffa70L, 0xac9a, 0x11d2, 0x8f, 0x17, 0x00, 0xc0, 0x4f, 0x79, 0x71, 0xe2 -DEFINE_GUIDSTRUCT("3fdffa70-ac9a-11d2-8f17-00c04f7971e2", PINNAME_IPSINK_INPUT); -#define PINNAME_IPSINK_INPUT DEFINE_GUIDNAMED(PINNAME_IPSINK_INPUT) - - -//=========================================================================== -// -// BDA IPSink Categories/Types -// -//=========================================================================== - - -#define STATIC_KSDATAFORMAT_TYPE_BDA_IP\ - 0xe25f7b8e, 0xcccc, 0x11d2, 0x8f, 0x25, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe2 -DEFINE_GUIDSTRUCT("e25f7b8e-cccc-11d2-8f25-00c04f7971e2", KSDATAFORMAT_TYPE_BDA_IP); -#define KSDATAFORMAT_TYPE_BDA_IP DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_BDA_IP) - -#define STATIC_KSDATAFORMAT_SUBTYPE_BDA_IP\ - 0x5a9a213c, 0xdb08, 0x11d2, 0x8f, 0x32, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe2 -DEFINE_GUIDSTRUCT("5a9a213c-db08-11d2-8f32-00c04f7971e2", KSDATAFORMAT_SUBTYPE_BDA_IP); -#define KSDATAFORMAT_SUBTYPE_BDA_IP DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_BDA_IP) - -#define STATIC_KSDATAFORMAT_SPECIFIER_BDA_IP\ - 0x6b891420, 0xdb09, 0x11d2, 0x8f, 0x32, 0x0, 0xc0, 0x4f, 0x79, 0x71, 0xe2 -DEFINE_GUIDSTRUCT("6B891420-DB09-11d2-8F32-00C04F7971E2", KSDATAFORMAT_SPECIFIER_BDA_IP); -#define KSDATAFORMAT_SPECIFIER_BDA_IP DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_BDA_IP) - - - -#define STATIC_KSDATAFORMAT_TYPE_BDA_IP_CONTROL\ - 0xdadd5799, 0x7d5b, 0x4b63, 0x80, 0xfb, 0xd1, 0x44, 0x2f, 0x26, 0xb6, 0x21 -DEFINE_GUIDSTRUCT("DADD5799-7D5B-4b63-80FB-D1442F26B621", KSDATAFORMAT_TYPE_BDA_IP_CONTROL); -#define KSDATAFORMAT_TYPE_BDA_IP_CONTROL DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_BDA_IP_CONTROL) - -#define STATIC_KSDATAFORMAT_SUBTYPE_BDA_IP_CONTROL\ - 0x499856e8, 0xe85b, 0x48ed, 0x9b, 0xea, 0x41, 0xd, 0xd, 0xd4, 0xef, 0x81 -DEFINE_GUIDSTRUCT("499856E8-E85B-48ed-9BEA-410D0DD4EF81", KSDATAFORMAT_SUBTYPE_BDA_IP_CONTROL); -#define KSDATAFORMAT_SUBTYPE_BDA_IP_CONTROL DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_BDA_IP_CONTROL) - - -//=========================================================================== -// -// MPE PINNAME GUID -// -//=========================================================================== - -#define STATIC_PINNAME_MPE \ - 0xc1b06d73L, 0x1dbb, 0x11d3, 0x8f, 0x46, 0x00, 0xC0, 0x4f, 0x79, 0x71, 0xE2 -DEFINE_GUIDSTRUCT("C1B06D73-1DBB-11d3-8F46-00C04F7971E2", PINNAME_MPE); -#define PINNAME_MPE DEFINE_GUIDNAMED(PINNAME_MPE) - - -///////////////////////////////////////////////////////////// -// -// BDA MPE Categories/Types -// -#define STATIC_KSDATAFORMAT_TYPE_MPE \ - 0x455f176c, 0x4b06, 0x47ce, 0x9a, 0xef, 0x8c, 0xae, 0xf7, 0x3d, 0xf7, 0xb5 -DEFINE_GUIDSTRUCT("455F176C-4B06-47ce-9AEF-8CAEF73DF7B5", KSDATAFORMAT_TYPE_MPE); -#define KSDATAFORMAT_TYPE_MPE DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MPE) - - -#if defined(__cplusplus) -} -#endif // defined(__cplusplus) - -#endif // !defined(_BDAMEDIA_) - diff --git a/sdk/dx8sdk/Include/bdatypes.h b/sdk/dx8sdk/Include/bdatypes.h deleted file mode 100644 index 2c44f1ba..00000000 --- a/sdk/dx8sdk/Include/bdatypes.h +++ /dev/null @@ -1,567 +0,0 @@ -//------------------------------------------------------------------------------ -// File: BDATypes.h -// -// Desc: Typedefs and enums needed by both the WDM drivers and the user mode -// COM interfaces. -// -// Copyright (c) 1999 - 2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef _BDATYPES_ - -#define _BDATYPES_ 1 - -/* Utility Macros */ - -#define MIN_DIMENSION 1 - - -#ifdef __midl -#define V1_ENUM [v1_enum] -#else -#define V1_ENUM -#endif - -//=========================================================================== -// -// BDA Topology Structures -// -//=========================================================================== - -typedef struct _BDA_TEMPLATE_CONNECTION -{ - ULONG FromNodeType; - ULONG FromNodePinType; - ULONG ToNodeType; - ULONG ToNodePinType; -}BDA_TEMPLATE_CONNECTION, *PBDA_TEMPLATE_CONNECTION; - - -typedef struct _BDA_TEMPLATE_PIN_JOINT -{ - ULONG uliTemplateConnection; - ULONG ulcInstancesMax; -}BDA_TEMPLATE_PIN_JOINT, *PBDA_TEMPLATE_PIN_JOINT; - - - -//=========================================================================== -// -// BDA Events -// -//=========================================================================== - -// In-band Event IDs -// -typedef enum { - BDA_EVENT_SIGNAL_LOSS = 0, - BDA_EVENT_SIGNAL_LOCK, - BDA_EVENT_DATA_START, - BDA_EVENT_DATA_STOP, - BDA_EVENT_CHANNEL_ACQUIRED, - BDA_EVENT_CHANNEL_LOST, - BDA_EVENT_CHANNEL_SOURCE_CHANGED, - BDA_EVENT_CHANNEL_ACTIVATED, - BDA_EVENT_CHANNEL_DEACTIVATED, - BDA_EVENT_SUBCHANNEL_ACQUIRED, - BDA_EVENT_SUBCHANNEL_LOST, - BDA_EVENT_SUBCHANNEL_SOURCE_CHANGED, - BDA_EVENT_SUBCHANNEL_ACTIVATED, - BDA_EVENT_SUBCHANNEL_DEACTIVATED, - BDA_EVENT_ACCESS_GRANTED, - BDA_EVENT_ACCESS_DENIED, - BDA_EVENT_OFFER_EXTENDED, - BDA_EVENT_PURCHASE_COMPLETED, - BDA_EVENT_SMART_CARD_INSERTED, - BDA_EVENT_SMART_CARD_REMOVED -} BDA_EVENT_ID, *PBDA_EVENT_ID; - - - -//=========================================================================== -// -// KSSTREAM_HEADER extensions for BDA -// -//=========================================================================== - -typedef struct tagKS_BDA_FRAME_INFO { - ULONG ExtendedHeaderSize; // Size of this extended header - DWORD dwFrameFlags; // - ULONG ulEvent; // - ULONG ulChannelNumber; // - ULONG ulSubchannelNumber; // - ULONG ulReason; // -} KS_BDA_FRAME_INFO, *PKS_BDA_FRAME_INFO; - - -//------------------------------------------------------------ -// -// BDA Network Ethernet Filter Property Set -// -// {71985F43-1CA1-11d3-9CC8-00C04F7971E0} -// -typedef struct _BDA_ETHERNET_ADDRESS { - BYTE rgbAddress[6]; -} BDA_ETHERNET_ADDRESS, *PBDA_ETHERNET_ADDRESS; - -typedef struct _BDA_ETHERNET_ADDRESS_LIST { - ULONG ulcAddresses; - BDA_ETHERNET_ADDRESS rgAddressl[MIN_DIMENSION]; -} BDA_ETHERNET_ADDRESS_LIST, * PBDA_ETHERNET_ADDRESS_LIST; - -typedef enum { - BDA_PROMISCUOUS_MULTICAST = 0, - BDA_FILTERED_MULTICAST, - BDA_NO_MULTICAST -} BDA_MULTICAST_MODE, *PBDA_MULTICAST_MODE; - - -//------------------------------------------------------------ -// -// BDA Network IPv4 Filter Property Set -// -// {71985F44-1CA1-11d3-9CC8-00C04F7971E0} -// -typedef struct _BDA_IPv4_ADDRESS { - BYTE rgbAddress[4]; -} BDA_IPv4_ADDRESS, *PBDA_IPv4_ADDRESS; - -typedef struct _BDA_IPv4_ADDRESS_LIST { - ULONG ulcAddresses; - BDA_IPv4_ADDRESS rgAddressl[MIN_DIMENSION]; -} BDA_IPv4_ADDRESS_LIST, * PBDA_IPv4_ADDRESS_LIST; - - -//------------------------------------------------------------ -// -// BDA Network IPv4 Filter Property Set -// -// {E1785A74-2A23-4fb3-9245-A8F88017EF33} -// -typedef struct _BDA_IPv6_ADDRESS { - BYTE rgbAddress[6]; -} BDA_IPv6_ADDRESS, *PBDA_IPv6_ADDRESS; - -typedef struct _BDA_IPv6_ADDRESS_LIST { - ULONG ulcAddresses; - BDA_IPv6_ADDRESS rgAddressl[MIN_DIMENSION]; -} BDA_IPv6_ADDRESS_LIST, * PBDA_IPv6_ADDRESS_LIST; - - -//------------------------------------------------------------ -// -// -// BDA Signal Property Set -// -// {D2F1644B-B409-11d2-BC69-00A0C9EE9E16} -// -typedef enum { - BDA_SIGNAL_UNAVAILABLE = 0, - BDA_SIGNAL_INACTIVE, - BDA_SIGNAL_ACTIVE -} BDA_SIGNAL_STATE, * PBDA_SIGNAL_STATE; - - -//------------------------------------------------------------ -// -// -// BDA Change Sync Method Set -// -// {FD0A5AF3-B41D-11d2-9C95-00C04F7971E0} -// -typedef enum -{ - BDA_CHANGES_COMPLETE = 0, - BDA_CHANGES_PENDING - -} BDA_CHANGE_STATE, * PBDA_CHANGE_STATE; - - -//------------------------------------------------------------ -// -// -// BDA Device Configuration Method Set -// -// {71985F45-1CA1-11d3-9CC8-00C04F7971E0} -// - - -//------------------------------------------------------------ -// -// -// BDA Topology Property Set -// -// {A14EE835-0A23-11d3-9CC7-00C04F7971E0} -// - -typedef struct _BDANODE_DESCRIPTOR -{ - ULONG ulBdaNodeType; // The node type as it is used - // in the BDA template topology - - GUID guidFunction; // GUID from BdaMedia.h describing - // the node's function (e.g. - // KSNODE_BDA_RF_TUNER) - - GUID guidName; // GUID that can be use to look up - // a displayable name for the node. -} BDANODE_DESCRIPTOR, *PBDANODE_DESCRIPTOR; - - -//------------------------------------------------------------ -// -// -// BDA Void Transform Property Set -// -// {71985F46-1CA1-11d3-9CC8-00C04F7971E0} -// - - -//------------------------------------------------------------ -// -// -// BDA Null Transform Property Set -// -// {DDF15B0D-BD25-11d2-9CA0-00C04F7971E0} -// - - -//------------------------------------------------------------ -// -// -// BDA Frequency Filter Property Set -// -// {71985F47-1CA1-11d3-9CC8-00C04F7971E0} -// - - -//------------------------------------------------------------ -// -// -// BDA Autodemodulate Property Set -// -// {DDF15B12-BD25-11d2-9CA0-00C04F7971E0} -// - - -//------------------------------------------------------------ -// -// -// BDA Table Section Property Set -// -// {516B99C5-971C-4aaf-B3F3-D9FDA8A15E16} -// - -typedef struct _BDA_TABLE_SECTION -{ - ULONG ulPrimarySectionId; - ULONG ulSecondarySectionId; - ULONG ulcbSectionLength; - ULONG argbSectionData[MIN_DIMENSION]; -} BDA_TABLE_SECTION, *PBDA_TABLE_SECTION; - - -//------------------------------------------------------------ -// -// -// BDA PID Filter Property Set -// -// {D0A67D65-08DF-4fec-8533-E5B550410B85} -// - -//--------------------------------------------------------------------- -// From IEnumPIDMap interface -//--------------------------------------------------------------------- - -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 ; - -typedef struct _BDA_PID_MAP -{ - MEDIA_SAMPLE_CONTENT MediaSampleContent; - ULONG ulcPIDs; - ULONG aulPIDs[MIN_DIMENSION]; -} BDA_PID_MAP, *PBDA_PID_MAP; - -typedef struct _BDA_PID_UNMAP -{ - ULONG ulcPIDs; - ULONG aulPIDs[MIN_DIMENSION]; -} BDA_PID_UNMAP, *PBDA_PID_UNMAP; - - -//------------------------------------------------------------ -// -// -// BDA CA Property Set -// -// {B0693766-5278-4ec6-B9E1-3CE40560EF5A} -// -typedef struct _BDA_CA_MODULE_UI -{ - ULONG ulFormat; - ULONG ulbcDesc; - ULONG ulDesc[MIN_DIMENSION]; -} BDA_CA_MODULE_UI, *PBDA_CA_MODULE_UI; - -typedef struct _BDA_PROGRAM_PID_LIST -{ - ULONG ulProgramNumber; - ULONG ulcPIDs; - ULONG ulPID[MIN_DIMENSION]; -} BDA_PROGRAM_PID_LIST, *PBDA_PROGRAM_PID_LIST; - - -//------------------------------------------------------------ -// -// -// BDA CA Event Set -// -// {488C4CCC-B768-4129-8EB1-B00A071F9068} -// - - - -//============================================================= -// -// -// BDA Tuning Model enumerations -// -// -//============================================================= - -// system type for particular DVB Tuning Space instance -typedef enum DVBSystemType { - DVB_Cable, - DVB_Terrestrial, - DVB_Satellite, -} DVBSystemType; - -//------------------------------------------------------------ -// -// BDA Channel Tune Request - -V1_ENUM enum { - BDA_UNDEFINED_CHANNEL = -1, -}; - - -//------------------------------------------------------------ -// -// BDA Component(substream) -// - -typedef V1_ENUM enum ComponentCategory -{ - CategoryNotSet = -1, - CategoryOther = 0, - CategoryVideo, - CategoryAudio, - CategoryText, - CategoryData, -} ComponentCategory; - -// Component Status -typedef enum ComponentStatus -{ - StatusActive, - StatusInactive, - StatusUnavailable, -} ComponentStatus; - - -//------------------------------------------------------------ -// -// BDA MPEG2 Component Type -// -// from the MPEG2 specification -typedef V1_ENUM enum MPEG2StreamType { - BDA_UNITIALIZED_MPEG2STREAMTYPE = -1, - Reserved1 = 0x0, - ISO_IEC_11172_2_VIDEO = Reserved1 + 1, - ISO_IEC_13818_2_VIDEO = ISO_IEC_11172_2_VIDEO + 1, - ISO_IEC_11172_3_AUDIO = ISO_IEC_13818_2_VIDEO + 1, - ISO_IEC_13818_3_AUDIO = ISO_IEC_11172_3_AUDIO + 1, - ISO_IEC_13818_1_PRIVATE_SECTION = ISO_IEC_13818_3_AUDIO + 1, - ISO_IEC_13818_1_PES = ISO_IEC_13818_1_PRIVATE_SECTION + 1, - ISO_IEC_13522_MHEG = ISO_IEC_13818_1_PES + 1, - ANNEX_A_DSM_CC = ISO_IEC_13522_MHEG + 1, - ITU_T_REC_H_222_1 = ANNEX_A_DSM_CC + 1, - ISO_IEC_13818_6_TYPE_A = ITU_T_REC_H_222_1 + 1, - ISO_IEC_13818_6_TYPE_B = ISO_IEC_13818_6_TYPE_A + 1, - ISO_IEC_13818_6_TYPE_C = ISO_IEC_13818_6_TYPE_B + 1, - ISO_IEC_13818_6_TYPE_D = ISO_IEC_13818_6_TYPE_C + 1, - ISO_IEC_13818_1_AUXILIARY = ISO_IEC_13818_6_TYPE_D + 1, - ISO_IEC_13818_1_RESERVED = ISO_IEC_13818_1_AUXILIARY + 1, - USER_PRIVATE = ISO_IEC_13818_1_RESERVED + 1 -} MPEG2StreamType; - -//------------------------------------------------------------ -// -// mpeg-2 transport stride format block; associated with media -// types MEDIATYPE_Stream/MEDIASUBTYPE_MPEG2_TRANSPORT_STRIDE; -// *all* format blocks associated with above media type *must* -// start with the MPEG2_TRANSPORT_STRIDE structure -// - -typedef struct _MPEG2_TRANSPORT_STRIDE { - DWORD dwOffset ; - DWORD dwPacketLength ; - DWORD dwStride ; -} MPEG2_TRANSPORT_STRIDE, *PMPEG2_TRANSPORT_STRIDE ; - -//------------------------------------------------------------ -// -// BDA ATSC Component Type -// -// -// ATSC made AC3 Audio a descriptor instead of -// defining a user private stream type. -typedef enum ATSCComponentTypeFlags { - // bit flags for various component type properties - ATSCCT_AC3 = 0x00000001, -} ATSCComponentTypeFlags; - - -//------------------------------------------------------------ -// -// BDA Locators -// - - -typedef V1_ENUM enum BinaryConvolutionCodeRate { - BDA_BCC_RATE_NOT_SET = -1, - BDA_BCC_RATE_NOT_DEFINED = 0, - BDA_BCC_RATE_1_2 = 1, // 1/2 - BDA_BCC_RATE_2_3, // 2/3 - BDA_BCC_RATE_3_4, // 3/4 - BDA_BCC_RATE_3_5, - BDA_BCC_RATE_4_5, - BDA_BCC_RATE_5_6, // 5/6 - BDA_BCC_RATE_5_11, - BDA_BCC_RATE_7_8, // 7/8 - BDA_BCC_RATE_MAX, -} BinaryConvolutionCodeRate; - -typedef V1_ENUM enum FECMethod { - BDA_FEC_METHOD_NOT_SET = -1, - BDA_FEC_METHOD_NOT_DEFINED = 0, - BDA_FEC_VITERBI = 1, // FEC is a Viterbi Binary Convolution. - BDA_FEC_RS_204_188, // The FEC is Reed-Solomon 204/188 (outer FEC) - BDA_FEC_MAX, -} FECMethod; - -typedef V1_ENUM enum ModulationType { - BDA_MOD_NOT_SET = -1, - BDA_MOD_NOT_DEFINED = 0, - BDA_MOD_16QAM = 1, - BDA_MOD_32QAM, - BDA_MOD_64QAM, - BDA_MOD_80QAM, - BDA_MOD_96QAM, - BDA_MOD_112QAM, - BDA_MOD_128QAM, - BDA_MOD_160QAM, - BDA_MOD_192QAM, - BDA_MOD_224QAM, - BDA_MOD_256QAM, - BDA_MOD_320QAM, - BDA_MOD_384QAM, - BDA_MOD_448QAM, - BDA_MOD_512QAM, - BDA_MOD_640QAM, - BDA_MOD_768QAM, - BDA_MOD_896QAM, - BDA_MOD_1024QAM, - BDA_MOD_QPSK, - BDA_MOD_BPSK, - BDA_MOD_OQPSK, - BDA_MOD_8VSB, - BDA_MOD_16VSB, - BDA_MOD_ANALOG_AMPLITUDE, // std am - BDA_MOD_ANALOG_FREQUENCY, // std fm - BDA_MOD_MAX, -} ModulationType; - -typedef V1_ENUM enum SpectralInversion { - BDA_SPECTRAL_INVERSION_NOT_SET = -1, - BDA_SPECTRAL_INVERSION_NOT_DEFINED = 0, - BDA_SPECTRAL_INVERSION_AUTOMATIC = 1, - BDA_SPECTRAL_INVERSION_NORMAL, - BDA_SPECTRAL_INVERSION_INVERTED, - BDA_SPECTRAL_INVERSION_MAX -} SpectralInversion; - -typedef V1_ENUM enum Polarisation { - BDA_POLARISATION_NOT_SET = -1, - BDA_POLARISATION_NOT_DEFINED = 0, - BDA_POLARISATION_LINEAR_H = 1, // Linear horizontal polarisation - BDA_POLARISATION_LINEAR_V, // Linear vertical polarisation - BDA_POLARISATION_CIRCULAR_L, // Circular left polarisation - BDA_POLARISATION_CIRCULAR_R, // Circular right polarisation - BDA_POLARISATION_MAX, -} Polarisation; - -typedef V1_ENUM enum GuardInterval { - BDA_GUARD_NOT_SET = -1, - BDA_GUARD_NOT_DEFINED = 0, - BDA_GUARD_1_32 = 1, // Guard interval is 1/32 - BDA_GUARD_1_16, // Guard interval is 1/16 - BDA_GUARD_1_8, // Guard interval is 1/8 - BDA_GUARD_1_4, // Guard interval is 1/4 - BDA_GUARD_MAX, -} GuardInterval; - -typedef V1_ENUM enum HierarchyAlpha { - BDA_HALPHA_NOT_SET = -1, - BDA_HALPHA_NOT_DEFINED = 0, - BDA_HALPHA_1 = 1, // Hierarchy alpha is 1. - BDA_HALPHA_2, // Hierarchy alpha is 2. - BDA_HALPHA_4, // Hierarchy alpha is 4. - BDA_HALPHA_MAX, -} HierarchyAlpha; - -typedef V1_ENUM enum TransmissionMode { - BDA_XMIT_MODE_NOT_SET = -1, - BDA_XMIT_MODE_NOT_DEFINED = 0, - BDA_XMIT_MODE_2K = 1, // Transmission uses 1705 carriers (use a 2K FFT) - BDA_XMIT_MODE_8K, // Transmission uses 6817 carriers (use an 8K FFT) - BDA_XMIT_MODE_MAX, -} TransmissionMode; - -// Settings for Tuner Frequency -// -#define BDA_FREQUENCY_NOT_SET -1 -#define BDA_FREQUENCY_NOT_DEFINED 0 - -// Settings for Tuner Range -// -// Tuner range refers to the setting of LNB High/Low as well as the -// selection of a satellite on a multiple satellite switch. -// -#define BDA_RANGE_NOT_SET -1 -#define BDA_RANGE_NOT_DEFINED 0 - -// Settings for Tuner Channel Bandwidth -// -#define BDA_CHAN_BANDWITH_NOT_SET -1 -#define BDA_CHAN_BANDWITH_NOT_DEFINED 0 - -// Settings for Tuner Frequency Multiplier -// -#define BDA_FREQUENCY_MULTIPLIER_NOT_SET -1 -#define BDA_FREQUENCY_MULTIPLIER_NOT_DEFINED 0 - -#endif // not defined _BDATYPES_ - -// end of file -- bdatypes.h diff --git a/sdk/dx8sdk/Include/comlite.h b/sdk/dx8sdk/Include/comlite.h deleted file mode 100644 index 5fc91932..00000000 --- a/sdk/dx8sdk/Include/comlite.h +++ /dev/null @@ -1,26 +0,0 @@ -//------------------------------------------------------------------------------ -// 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. -//------------------------------------------------------------------------------ - - -#ifndef _INC_COMLITE_ -#define _INC_COMLITE_ - -#define QzInitialize CoInitialize -#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 // _INC_COMLITE_ diff --git a/sdk/dx8sdk/Include/control.h b/sdk/dx8sdk/Include/control.h deleted file mode 100644 index 906fbc4f..00000000 --- a/sdk/dx8sdk/Include/control.h +++ /dev/null @@ -1,5543 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for control.odl: - Oicf, W0, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __control_h__ -#define __control_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#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 - -void __RPC_USER MIDL_user_free( void * ); - - -#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] */ LONG *plCount) = 0; - - virtual HRESULT STDMETHODCALLTYPE Item( - /* [in] */ long lItem, - /* [out] */ IUnknown **ppUnk) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IUnknown **ppUnk) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMCollectionVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMCollection * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMCollection * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMCollection * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IAMCollection * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IAMCollection * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IAMCollection * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IAMCollection * 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_Count )( - IAMCollection * This, - /* [retval][out] */ LONG *plCount); - - HRESULT ( STDMETHODCALLTYPE *Item )( - IAMCollection * This, - /* [in] */ long lItem, - /* [out] */ IUnknown **ppUnk); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - IAMCollection * This, - /* [retval][out] */ 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 */ - - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IAMCollection_get_Count_Proxy( - IAMCollection * This, - /* [retval][out] */ LONG *plCount); - - -void __RPC_STUB IAMCollection_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMCollection_Item_Proxy( - IAMCollection * This, - /* [in] */ long lItem, - /* [out] */ IUnknown **ppUnk); - - -void __RPC_STUB IAMCollection_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IAMCollection_get__NewEnum_Proxy( - IAMCollection * This, - /* [retval][out] */ IUnknown **ppUnk); - - -void __RPC_STUB IAMCollection_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ OAFilterState *pfs) = 0; - - virtual HRESULT STDMETHODCALLTYPE RenderFile( - /* [in] */ BSTR strFilename) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddSourceFilter( - /* [in] */ BSTR strFilename, - /* [out] */ IDispatch **ppUnk) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FilterCollection( - /* [retval][out] */ IDispatch **ppUnk) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RegFilterCollection( - /* [retval][out] */ IDispatch **ppUnk) = 0; - - virtual HRESULT STDMETHODCALLTYPE StopWhenReady( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMediaControl * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMediaControl * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMediaControl * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMediaControl * 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 *Run )( - IMediaControl * This); - - HRESULT ( STDMETHODCALLTYPE *Pause )( - IMediaControl * This); - - HRESULT ( STDMETHODCALLTYPE *Stop )( - IMediaControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetState )( - IMediaControl * This, - /* [in] */ LONG msTimeout, - /* [out] */ OAFilterState *pfs); - - HRESULT ( STDMETHODCALLTYPE *RenderFile )( - IMediaControl * This, - /* [in] */ BSTR strFilename); - - HRESULT ( STDMETHODCALLTYPE *AddSourceFilter )( - IMediaControl * This, - /* [in] */ BSTR strFilename, - /* [out] */ IDispatch **ppUnk); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FilterCollection )( - IMediaControl * This, - /* [retval][out] */ IDispatch **ppUnk); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RegFilterCollection )( - IMediaControl * This, - /* [retval][out] */ IDispatch **ppUnk); - - HRESULT ( STDMETHODCALLTYPE *StopWhenReady )( - 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 */ - - - -HRESULT STDMETHODCALLTYPE IMediaControl_Run_Proxy( - IMediaControl * This); - - -void __RPC_STUB IMediaControl_Run_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaControl_Pause_Proxy( - IMediaControl * This); - - -void __RPC_STUB IMediaControl_Pause_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaControl_Stop_Proxy( - IMediaControl * This); - - -void __RPC_STUB IMediaControl_Stop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaControl_GetState_Proxy( - IMediaControl * This, - /* [in] */ LONG msTimeout, - /* [out] */ OAFilterState *pfs); - - -void __RPC_STUB IMediaControl_GetState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaControl_RenderFile_Proxy( - IMediaControl * This, - /* [in] */ BSTR strFilename); - - -void __RPC_STUB IMediaControl_RenderFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaControl_AddSourceFilter_Proxy( - IMediaControl * This, - /* [in] */ BSTR strFilename, - /* [out] */ IDispatch **ppUnk); - - -void __RPC_STUB IMediaControl_AddSourceFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IMediaControl_get_FilterCollection_Proxy( - IMediaControl * This, - /* [retval][out] */ IDispatch **ppUnk); - - -void __RPC_STUB IMediaControl_get_FilterCollection_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IMediaControl_get_RegFilterCollection_Proxy( - IMediaControl * This, - /* [retval][out] */ IDispatch **ppUnk); - - -void __RPC_STUB IMediaControl_get_RegFilterCollection_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaControl_StopWhenReady_Proxy( - IMediaControl * This); - - -void __RPC_STUB IMediaControl_StopWhenReady_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ OAEVENT *hEvent) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetEvent( - /* [out] */ long *lEventCode, - /* [out] */ LONG_PTR *lParam1, - /* [out] */ LONG_PTR *lParam2, - /* [in] */ long msTimeout) = 0; - - virtual HRESULT STDMETHODCALLTYPE WaitForCompletion( - /* [in] */ long msTimeout, - /* [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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaEvent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMediaEvent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMediaEvent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMediaEvent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMediaEvent * 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 *GetEventHandle )( - IMediaEvent * This, - /* [out] */ OAEVENT *hEvent); - - HRESULT ( STDMETHODCALLTYPE *GetEvent )( - IMediaEvent * This, - /* [out] */ long *lEventCode, - /* [out] */ LONG_PTR *lParam1, - /* [out] */ LONG_PTR *lParam2, - /* [in] */ long msTimeout); - - HRESULT ( STDMETHODCALLTYPE *WaitForCompletion )( - IMediaEvent * This, - /* [in] */ long msTimeout, - /* [out] */ long *pEvCode); - - HRESULT ( STDMETHODCALLTYPE *CancelDefaultHandling )( - IMediaEvent * This, - /* [in] */ long lEvCode); - - HRESULT ( STDMETHODCALLTYPE *RestoreDefaultHandling )( - IMediaEvent * This, - /* [in] */ long lEvCode); - - HRESULT ( STDMETHODCALLTYPE *FreeEventParams )( - 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 */ - - - -HRESULT STDMETHODCALLTYPE IMediaEvent_GetEventHandle_Proxy( - IMediaEvent * This, - /* [out] */ OAEVENT *hEvent); - - -void __RPC_STUB IMediaEvent_GetEventHandle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaEvent_GetEvent_Proxy( - IMediaEvent * This, - /* [out] */ long *lEventCode, - /* [out] */ LONG_PTR *lParam1, - /* [out] */ LONG_PTR *lParam2, - /* [in] */ long msTimeout); - - -void __RPC_STUB IMediaEvent_GetEvent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaEvent_WaitForCompletion_Proxy( - IMediaEvent * This, - /* [in] */ long msTimeout, - /* [out] */ long *pEvCode); - - -void __RPC_STUB IMediaEvent_WaitForCompletion_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaEvent_CancelDefaultHandling_Proxy( - IMediaEvent * This, - /* [in] */ long lEvCode); - - -void __RPC_STUB IMediaEvent_CancelDefaultHandling_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaEvent_RestoreDefaultHandling_Proxy( - IMediaEvent * This, - /* [in] */ long lEvCode); - - -void __RPC_STUB IMediaEvent_RestoreDefaultHandling_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaEvent_FreeEventParams_Proxy( - IMediaEvent * This, - /* [in] */ long lEvCode, - /* [in] */ LONG_PTR lParam1, - /* [in] */ LONG_PTR lParam2); - - -void __RPC_STUB IMediaEvent_FreeEventParams_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ long *lplNoNotifyFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaEventExVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaEventEx * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaEventEx * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaEventEx * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMediaEventEx * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMediaEventEx * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMediaEventEx * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMediaEventEx * 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 *GetEventHandle )( - IMediaEventEx * This, - /* [out] */ OAEVENT *hEvent); - - HRESULT ( STDMETHODCALLTYPE *GetEvent )( - IMediaEventEx * This, - /* [out] */ long *lEventCode, - /* [out] */ LONG_PTR *lParam1, - /* [out] */ LONG_PTR *lParam2, - /* [in] */ long msTimeout); - - HRESULT ( STDMETHODCALLTYPE *WaitForCompletion )( - IMediaEventEx * This, - /* [in] */ long msTimeout, - /* [out] */ long *pEvCode); - - HRESULT ( STDMETHODCALLTYPE *CancelDefaultHandling )( - IMediaEventEx * This, - /* [in] */ long lEvCode); - - HRESULT ( STDMETHODCALLTYPE *RestoreDefaultHandling )( - IMediaEventEx * This, - /* [in] */ long lEvCode); - - HRESULT ( STDMETHODCALLTYPE *FreeEventParams )( - IMediaEventEx * This, - /* [in] */ long lEvCode, - /* [in] */ LONG_PTR lParam1, - /* [in] */ LONG_PTR lParam2); - - HRESULT ( STDMETHODCALLTYPE *SetNotifyWindow )( - IMediaEventEx * This, - /* [in] */ OAHWND hwnd, - /* [in] */ long lMsg, - /* [in] */ LONG_PTR lInstanceData); - - HRESULT ( STDMETHODCALLTYPE *SetNotifyFlags )( - IMediaEventEx * This, - /* [in] */ long lNoNotifyFlags); - - HRESULT ( STDMETHODCALLTYPE *GetNotifyFlags )( - IMediaEventEx * This, - /* [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 */ - - - -HRESULT STDMETHODCALLTYPE IMediaEventEx_SetNotifyWindow_Proxy( - IMediaEventEx * This, - /* [in] */ OAHWND hwnd, - /* [in] */ long lMsg, - /* [in] */ LONG_PTR lInstanceData); - - -void __RPC_STUB IMediaEventEx_SetNotifyWindow_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaEventEx_SetNotifyFlags_Proxy( - IMediaEventEx * This, - /* [in] */ long lNoNotifyFlags); - - -void __RPC_STUB IMediaEventEx_SetNotifyFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaEventEx_GetNotifyFlags_Proxy( - IMediaEventEx * This, - /* [out] */ long *lplNoNotifyFlags); - - -void __RPC_STUB IMediaEventEx_GetNotifyFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ REFTIME *plength) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_CurrentPosition( - /* [in] */ REFTIME llTime) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPosition( - /* [retval][out] */ REFTIME *pllTime) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_StopTime( - /* [retval][out] */ REFTIME *pllTime) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_StopTime( - /* [in] */ REFTIME llTime) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PrerollTime( - /* [retval][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] */ double *pdRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE CanSeekForward( - /* [retval][out] */ LONG *pCanSeekForward) = 0; - - virtual HRESULT STDMETHODCALLTYPE CanSeekBackward( - /* [retval][out] */ LONG *pCanSeekBackward) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaPositionVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaPosition * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaPosition * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaPosition * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMediaPosition * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMediaPosition * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMediaPosition * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMediaPosition * 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_Duration )( - IMediaPosition * This, - /* [retval][out] */ REFTIME *plength); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CurrentPosition )( - IMediaPosition * This, - /* [in] */ REFTIME llTime); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPosition )( - IMediaPosition * This, - /* [retval][out] */ REFTIME *pllTime); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_StopTime )( - IMediaPosition * This, - /* [retval][out] */ REFTIME *pllTime); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_StopTime )( - IMediaPosition * This, - /* [in] */ REFTIME llTime); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrerollTime )( - IMediaPosition * This, - /* [retval][out] */ REFTIME *pllTime); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PrerollTime )( - IMediaPosition * This, - /* [in] */ REFTIME llTime); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Rate )( - IMediaPosition * This, - /* [in] */ double dRate); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rate )( - IMediaPosition * This, - /* [retval][out] */ double *pdRate); - - HRESULT ( STDMETHODCALLTYPE *CanSeekForward )( - IMediaPosition * This, - /* [retval][out] */ LONG *pCanSeekForward); - - HRESULT ( STDMETHODCALLTYPE *CanSeekBackward )( - IMediaPosition * This, - /* [retval][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 */ - - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IMediaPosition_get_Duration_Proxy( - IMediaPosition * This, - /* [retval][out] */ REFTIME *plength); - - -void __RPC_STUB IMediaPosition_get_Duration_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IMediaPosition_put_CurrentPosition_Proxy( - IMediaPosition * This, - /* [in] */ REFTIME llTime); - - -void __RPC_STUB IMediaPosition_put_CurrentPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IMediaPosition_get_CurrentPosition_Proxy( - IMediaPosition * This, - /* [retval][out] */ REFTIME *pllTime); - - -void __RPC_STUB IMediaPosition_get_CurrentPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IMediaPosition_get_StopTime_Proxy( - IMediaPosition * This, - /* [retval][out] */ REFTIME *pllTime); - - -void __RPC_STUB IMediaPosition_get_StopTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IMediaPosition_put_StopTime_Proxy( - IMediaPosition * This, - /* [in] */ REFTIME llTime); - - -void __RPC_STUB IMediaPosition_put_StopTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IMediaPosition_get_PrerollTime_Proxy( - IMediaPosition * This, - /* [retval][out] */ REFTIME *pllTime); - - -void __RPC_STUB IMediaPosition_get_PrerollTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IMediaPosition_put_PrerollTime_Proxy( - IMediaPosition * This, - /* [in] */ REFTIME llTime); - - -void __RPC_STUB IMediaPosition_put_PrerollTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IMediaPosition_put_Rate_Proxy( - IMediaPosition * This, - /* [in] */ double dRate); - - -void __RPC_STUB IMediaPosition_put_Rate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IMediaPosition_get_Rate_Proxy( - IMediaPosition * This, - /* [retval][out] */ double *pdRate); - - -void __RPC_STUB IMediaPosition_get_Rate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaPosition_CanSeekForward_Proxy( - IMediaPosition * This, - /* [retval][out] */ LONG *pCanSeekForward); - - -void __RPC_STUB IMediaPosition_CanSeekForward_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaPosition_CanSeekBackward_Proxy( - IMediaPosition * This, - /* [retval][out] */ LONG *pCanSeekBackward); - - -void __RPC_STUB IMediaPosition_CanSeekBackward_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ long *plVolume) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Balance( - /* [in] */ long lBalance) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Balance( - /* [retval][out] */ long *plBalance) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBasicAudioVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBasicAudio * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBasicAudio * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBasicAudio * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IBasicAudio * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IBasicAudio * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IBasicAudio * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IBasicAudio * 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); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Volume )( - IBasicAudio * This, - /* [in] */ long lVolume); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Volume )( - IBasicAudio * This, - /* [retval][out] */ long *plVolume); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Balance )( - IBasicAudio * This, - /* [in] */ long lBalance); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Balance )( - IBasicAudio * This, - /* [retval][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 */ - - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IBasicAudio_put_Volume_Proxy( - IBasicAudio * This, - /* [in] */ long lVolume); - - -void __RPC_STUB IBasicAudio_put_Volume_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicAudio_get_Volume_Proxy( - IBasicAudio * This, - /* [retval][out] */ long *plVolume); - - -void __RPC_STUB IBasicAudio_get_Volume_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IBasicAudio_put_Balance_Proxy( - IBasicAudio * This, - /* [in] */ long lBalance); - - -void __RPC_STUB IBasicAudio_put_Balance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicAudio_get_Balance_Proxy( - IBasicAudio * This, - /* [retval][out] */ long *plBalance); - - -void __RPC_STUB IBasicAudio_get_Balance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ BSTR strCaption) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Caption( - /* [retval][out] */ BSTR *strCaption) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_WindowStyle( - /* [in] */ long WindowStyle) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_WindowStyle( - /* [retval][out] */ long *WindowStyle) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_WindowStyleEx( - /* [in] */ long WindowStyleEx) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_WindowStyleEx( - /* [retval][out] */ long *WindowStyleEx) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AutoShow( - /* [in] */ long AutoShow) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AutoShow( - /* [retval][out] */ long *AutoShow) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_WindowState( - /* [in] */ long WindowState) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_WindowState( - /* [retval][out] */ long *WindowState) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BackgroundPalette( - /* [in] */ long BackgroundPalette) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BackgroundPalette( - /* [retval][out] */ long *pBackgroundPalette) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Visible( - /* [in] */ long Visible) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Visible( - /* [retval][out] */ long *pVisible) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Left( - /* [in] */ long Left) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Left( - /* [retval][out] */ long *pLeft) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Width( - /* [in] */ long Width) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Width( - /* [retval][out] */ long *pWidth) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Top( - /* [in] */ long Top) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Top( - /* [retval][out] */ long *pTop) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Height( - /* [in] */ long Height) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Height( - /* [retval][out] */ long *pHeight) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Owner( - /* [in] */ OAHWND Owner) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Owner( - /* [retval][out] */ OAHWND *Owner) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_MessageDrain( - /* [in] */ OAHWND Drain) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MessageDrain( - /* [retval][out] */ OAHWND *Drain) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BorderColor( - /* [retval][out] */ long *Color) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BorderColor( - /* [in] */ long Color) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FullScreenMode( - /* [retval][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] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMinIdealImageSize( - /* [out] */ long *pWidth, - /* [out] */ long *pHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMaxIdealImageSize( - /* [out] */ long *pWidth, - /* [out] */ long *pHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRestorePosition( - /* [out] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE HideCursor( - /* [in] */ long HideCursor) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsCursorHidden( - /* [out] */ long *CursorHidden) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVideoWindowVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVideoWindow * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVideoWindow * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVideoWindow * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IVideoWindow * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IVideoWindow * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IVideoWindow * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IVideoWindow * 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); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Caption )( - IVideoWindow * This, - /* [in] */ BSTR strCaption); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Caption )( - IVideoWindow * This, - /* [retval][out] */ BSTR *strCaption); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_WindowStyle )( - IVideoWindow * This, - /* [in] */ long WindowStyle); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_WindowStyle )( - IVideoWindow * This, - /* [retval][out] */ long *WindowStyle); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_WindowStyleEx )( - IVideoWindow * This, - /* [in] */ long WindowStyleEx); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_WindowStyleEx )( - IVideoWindow * This, - /* [retval][out] */ long *WindowStyleEx); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AutoShow )( - IVideoWindow * This, - /* [in] */ long AutoShow); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AutoShow )( - IVideoWindow * This, - /* [retval][out] */ long *AutoShow); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_WindowState )( - IVideoWindow * This, - /* [in] */ long WindowState); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_WindowState )( - IVideoWindow * This, - /* [retval][out] */ long *WindowState); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BackgroundPalette )( - IVideoWindow * This, - /* [in] */ long BackgroundPalette); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackgroundPalette )( - IVideoWindow * This, - /* [retval][out] */ long *pBackgroundPalette); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Visible )( - IVideoWindow * This, - /* [in] */ long Visible); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Visible )( - IVideoWindow * This, - /* [retval][out] */ long *pVisible); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Left )( - IVideoWindow * This, - /* [in] */ long Left); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Left )( - IVideoWindow * This, - /* [retval][out] */ long *pLeft); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Width )( - IVideoWindow * This, - /* [in] */ long Width); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Width )( - IVideoWindow * This, - /* [retval][out] */ long *pWidth); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Top )( - IVideoWindow * This, - /* [in] */ long Top); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Top )( - IVideoWindow * This, - /* [retval][out] */ long *pTop); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Height )( - IVideoWindow * This, - /* [in] */ long Height); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Height )( - IVideoWindow * This, - /* [retval][out] */ long *pHeight); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Owner )( - IVideoWindow * This, - /* [in] */ OAHWND Owner); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Owner )( - IVideoWindow * This, - /* [retval][out] */ OAHWND *Owner); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_MessageDrain )( - IVideoWindow * This, - /* [in] */ OAHWND Drain); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MessageDrain )( - IVideoWindow * This, - /* [retval][out] */ OAHWND *Drain); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BorderColor )( - IVideoWindow * This, - /* [retval][out] */ long *Color); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BorderColor )( - IVideoWindow * This, - /* [in] */ long Color); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FullScreenMode )( - IVideoWindow * This, - /* [retval][out] */ long *FullScreenMode); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_FullScreenMode )( - IVideoWindow * This, - /* [in] */ long FullScreenMode); - - HRESULT ( STDMETHODCALLTYPE *SetWindowForeground )( - IVideoWindow * This, - /* [in] */ long Focus); - - HRESULT ( STDMETHODCALLTYPE *NotifyOwnerMessage )( - IVideoWindow * This, - /* [in] */ OAHWND hwnd, - /* [in] */ long uMsg, - /* [in] */ LONG_PTR wParam, - /* [in] */ LONG_PTR lParam); - - HRESULT ( STDMETHODCALLTYPE *SetWindowPosition )( - IVideoWindow * This, - /* [in] */ long Left, - /* [in] */ long Top, - /* [in] */ long Width, - /* [in] */ long Height); - - HRESULT ( STDMETHODCALLTYPE *GetWindowPosition )( - IVideoWindow * This, - /* [out] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - HRESULT ( STDMETHODCALLTYPE *GetMinIdealImageSize )( - IVideoWindow * This, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - HRESULT ( STDMETHODCALLTYPE *GetMaxIdealImageSize )( - IVideoWindow * This, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - HRESULT ( STDMETHODCALLTYPE *GetRestorePosition )( - IVideoWindow * This, - /* [out] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - HRESULT ( STDMETHODCALLTYPE *HideCursor )( - IVideoWindow * This, - /* [in] */ long HideCursor); - - HRESULT ( STDMETHODCALLTYPE *IsCursorHidden )( - IVideoWindow * This, - /* [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 */ - - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_Caption_Proxy( - IVideoWindow * This, - /* [in] */ BSTR strCaption); - - -void __RPC_STUB IVideoWindow_put_Caption_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_Caption_Proxy( - IVideoWindow * This, - /* [retval][out] */ BSTR *strCaption); - - -void __RPC_STUB IVideoWindow_get_Caption_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_WindowStyle_Proxy( - IVideoWindow * This, - /* [in] */ long WindowStyle); - - -void __RPC_STUB IVideoWindow_put_WindowStyle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_WindowStyle_Proxy( - IVideoWindow * This, - /* [retval][out] */ long *WindowStyle); - - -void __RPC_STUB IVideoWindow_get_WindowStyle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_WindowStyleEx_Proxy( - IVideoWindow * This, - /* [in] */ long WindowStyleEx); - - -void __RPC_STUB IVideoWindow_put_WindowStyleEx_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_WindowStyleEx_Proxy( - IVideoWindow * This, - /* [retval][out] */ long *WindowStyleEx); - - -void __RPC_STUB IVideoWindow_get_WindowStyleEx_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_AutoShow_Proxy( - IVideoWindow * This, - /* [in] */ long AutoShow); - - -void __RPC_STUB IVideoWindow_put_AutoShow_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_AutoShow_Proxy( - IVideoWindow * This, - /* [retval][out] */ long *AutoShow); - - -void __RPC_STUB IVideoWindow_get_AutoShow_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_WindowState_Proxy( - IVideoWindow * This, - /* [in] */ long WindowState); - - -void __RPC_STUB IVideoWindow_put_WindowState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_WindowState_Proxy( - IVideoWindow * This, - /* [retval][out] */ long *WindowState); - - -void __RPC_STUB IVideoWindow_get_WindowState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_BackgroundPalette_Proxy( - IVideoWindow * This, - /* [in] */ long BackgroundPalette); - - -void __RPC_STUB IVideoWindow_put_BackgroundPalette_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_BackgroundPalette_Proxy( - IVideoWindow * This, - /* [retval][out] */ long *pBackgroundPalette); - - -void __RPC_STUB IVideoWindow_get_BackgroundPalette_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_Visible_Proxy( - IVideoWindow * This, - /* [in] */ long Visible); - - -void __RPC_STUB IVideoWindow_put_Visible_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_Visible_Proxy( - IVideoWindow * This, - /* [retval][out] */ long *pVisible); - - -void __RPC_STUB IVideoWindow_get_Visible_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_Left_Proxy( - IVideoWindow * This, - /* [in] */ long Left); - - -void __RPC_STUB IVideoWindow_put_Left_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_Left_Proxy( - IVideoWindow * This, - /* [retval][out] */ long *pLeft); - - -void __RPC_STUB IVideoWindow_get_Left_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_Width_Proxy( - IVideoWindow * This, - /* [in] */ long Width); - - -void __RPC_STUB IVideoWindow_put_Width_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_Width_Proxy( - IVideoWindow * This, - /* [retval][out] */ long *pWidth); - - -void __RPC_STUB IVideoWindow_get_Width_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_Top_Proxy( - IVideoWindow * This, - /* [in] */ long Top); - - -void __RPC_STUB IVideoWindow_put_Top_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_Top_Proxy( - IVideoWindow * This, - /* [retval][out] */ long *pTop); - - -void __RPC_STUB IVideoWindow_get_Top_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_Height_Proxy( - IVideoWindow * This, - /* [in] */ long Height); - - -void __RPC_STUB IVideoWindow_put_Height_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_Height_Proxy( - IVideoWindow * This, - /* [retval][out] */ long *pHeight); - - -void __RPC_STUB IVideoWindow_get_Height_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_Owner_Proxy( - IVideoWindow * This, - /* [in] */ OAHWND Owner); - - -void __RPC_STUB IVideoWindow_put_Owner_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_Owner_Proxy( - IVideoWindow * This, - /* [retval][out] */ OAHWND *Owner); - - -void __RPC_STUB IVideoWindow_get_Owner_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_MessageDrain_Proxy( - IVideoWindow * This, - /* [in] */ OAHWND Drain); - - -void __RPC_STUB IVideoWindow_put_MessageDrain_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_MessageDrain_Proxy( - IVideoWindow * This, - /* [retval][out] */ OAHWND *Drain); - - -void __RPC_STUB IVideoWindow_get_MessageDrain_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_BorderColor_Proxy( - IVideoWindow * This, - /* [retval][out] */ long *Color); - - -void __RPC_STUB IVideoWindow_get_BorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_BorderColor_Proxy( - IVideoWindow * This, - /* [in] */ long Color); - - -void __RPC_STUB IVideoWindow_put_BorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IVideoWindow_get_FullScreenMode_Proxy( - IVideoWindow * This, - /* [retval][out] */ long *FullScreenMode); - - -void __RPC_STUB IVideoWindow_get_FullScreenMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IVideoWindow_put_FullScreenMode_Proxy( - IVideoWindow * This, - /* [in] */ long FullScreenMode); - - -void __RPC_STUB IVideoWindow_put_FullScreenMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVideoWindow_SetWindowForeground_Proxy( - IVideoWindow * This, - /* [in] */ long Focus); - - -void __RPC_STUB IVideoWindow_SetWindowForeground_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVideoWindow_NotifyOwnerMessage_Proxy( - IVideoWindow * This, - /* [in] */ OAHWND hwnd, - /* [in] */ long uMsg, - /* [in] */ LONG_PTR wParam, - /* [in] */ LONG_PTR lParam); - - -void __RPC_STUB IVideoWindow_NotifyOwnerMessage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVideoWindow_SetWindowPosition_Proxy( - IVideoWindow * This, - /* [in] */ long Left, - /* [in] */ long Top, - /* [in] */ long Width, - /* [in] */ long Height); - - -void __RPC_STUB IVideoWindow_SetWindowPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVideoWindow_GetWindowPosition_Proxy( - IVideoWindow * This, - /* [out] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - -void __RPC_STUB IVideoWindow_GetWindowPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVideoWindow_GetMinIdealImageSize_Proxy( - IVideoWindow * This, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - -void __RPC_STUB IVideoWindow_GetMinIdealImageSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVideoWindow_GetMaxIdealImageSize_Proxy( - IVideoWindow * This, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - -void __RPC_STUB IVideoWindow_GetMaxIdealImageSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVideoWindow_GetRestorePosition_Proxy( - IVideoWindow * This, - /* [out] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - -void __RPC_STUB IVideoWindow_GetRestorePosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVideoWindow_HideCursor_Proxy( - IVideoWindow * This, - /* [in] */ long HideCursor); - - -void __RPC_STUB IVideoWindow_HideCursor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVideoWindow_IsCursorHidden_Proxy( - IVideoWindow * This, - /* [out] */ long *CursorHidden); - - -void __RPC_STUB IVideoWindow_IsCursorHidden_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ REFTIME *pAvgTimePerFrame) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BitRate( - /* [retval][out] */ long *pBitRate) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BitErrorRate( - /* [retval][out] */ long *pBitErrorRate) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_VideoWidth( - /* [retval][out] */ long *pVideoWidth) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_VideoHeight( - /* [retval][out] */ long *pVideoHeight) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SourceLeft( - /* [in] */ long SourceLeft) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SourceLeft( - /* [retval][out] */ long *pSourceLeft) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SourceWidth( - /* [in] */ long SourceWidth) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SourceWidth( - /* [retval][out] */ long *pSourceWidth) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SourceTop( - /* [in] */ long SourceTop) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SourceTop( - /* [retval][out] */ long *pSourceTop) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SourceHeight( - /* [in] */ long SourceHeight) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SourceHeight( - /* [retval][out] */ long *pSourceHeight) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_DestinationLeft( - /* [in] */ long DestinationLeft) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DestinationLeft( - /* [retval][out] */ long *pDestinationLeft) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_DestinationWidth( - /* [in] */ long DestinationWidth) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DestinationWidth( - /* [retval][out] */ long *pDestinationWidth) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_DestinationTop( - /* [in] */ long DestinationTop) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DestinationTop( - /* [retval][out] */ long *pDestinationTop) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_DestinationHeight( - /* [in] */ long DestinationHeight) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DestinationHeight( - /* [retval][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] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [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] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDefaultDestinationPosition( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVideoSize( - /* [out] */ long *pWidth, - /* [out] */ long *pHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVideoPaletteEntries( - /* [in] */ long StartIndex, - /* [in] */ long Entries, - /* [out] */ long *pRetrieved, - /* [out] */ long *pPalette) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentImage( - /* [out][in] */ long *pBufferSize, - /* [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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBasicVideo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBasicVideo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBasicVideo * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IBasicVideo * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IBasicVideo * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IBasicVideo * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IBasicVideo * 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_AvgTimePerFrame )( - IBasicVideo * This, - /* [retval][out] */ REFTIME *pAvgTimePerFrame); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BitRate )( - IBasicVideo * This, - /* [retval][out] */ long *pBitRate); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BitErrorRate )( - IBasicVideo * This, - /* [retval][out] */ long *pBitErrorRate); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoWidth )( - IBasicVideo * This, - /* [retval][out] */ long *pVideoWidth); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoHeight )( - IBasicVideo * This, - /* [retval][out] */ long *pVideoHeight); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceLeft )( - IBasicVideo * This, - /* [in] */ long SourceLeft); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceLeft )( - IBasicVideo * This, - /* [retval][out] */ long *pSourceLeft); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceWidth )( - IBasicVideo * This, - /* [in] */ long SourceWidth); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceWidth )( - IBasicVideo * This, - /* [retval][out] */ long *pSourceWidth); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceTop )( - IBasicVideo * This, - /* [in] */ long SourceTop); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceTop )( - IBasicVideo * This, - /* [retval][out] */ long *pSourceTop); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceHeight )( - IBasicVideo * This, - /* [in] */ long SourceHeight); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceHeight )( - IBasicVideo * This, - /* [retval][out] */ long *pSourceHeight); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationLeft )( - IBasicVideo * This, - /* [in] */ long DestinationLeft); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationLeft )( - IBasicVideo * This, - /* [retval][out] */ long *pDestinationLeft); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationWidth )( - IBasicVideo * This, - /* [in] */ long DestinationWidth); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationWidth )( - IBasicVideo * This, - /* [retval][out] */ long *pDestinationWidth); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationTop )( - IBasicVideo * This, - /* [in] */ long DestinationTop); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationTop )( - IBasicVideo * This, - /* [retval][out] */ long *pDestinationTop); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationHeight )( - IBasicVideo * This, - /* [in] */ long DestinationHeight); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationHeight )( - IBasicVideo * This, - /* [retval][out] */ long *pDestinationHeight); - - HRESULT ( STDMETHODCALLTYPE *SetSourcePosition )( - IBasicVideo * This, - /* [in] */ long Left, - /* [in] */ long Top, - /* [in] */ long Width, - /* [in] */ long Height); - - HRESULT ( STDMETHODCALLTYPE *GetSourcePosition )( - IBasicVideo * This, - /* [out] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultSourcePosition )( - IBasicVideo * This); - - HRESULT ( STDMETHODCALLTYPE *SetDestinationPosition )( - IBasicVideo * This, - /* [in] */ long Left, - /* [in] */ long Top, - /* [in] */ long Width, - /* [in] */ long Height); - - HRESULT ( STDMETHODCALLTYPE *GetDestinationPosition )( - IBasicVideo * This, - /* [out] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultDestinationPosition )( - IBasicVideo * This); - - HRESULT ( STDMETHODCALLTYPE *GetVideoSize )( - IBasicVideo * This, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - HRESULT ( STDMETHODCALLTYPE *GetVideoPaletteEntries )( - IBasicVideo * This, - /* [in] */ long StartIndex, - /* [in] */ long Entries, - /* [out] */ long *pRetrieved, - /* [out] */ long *pPalette); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentImage )( - IBasicVideo * This, - /* [out][in] */ long *pBufferSize, - /* [out] */ long *pDIBImage); - - HRESULT ( STDMETHODCALLTYPE *IsUsingDefaultSource )( - IBasicVideo * This); - - HRESULT ( STDMETHODCALLTYPE *IsUsingDefaultDestination )( - 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 */ - - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_AvgTimePerFrame_Proxy( - IBasicVideo * This, - /* [retval][out] */ REFTIME *pAvgTimePerFrame); - - -void __RPC_STUB IBasicVideo_get_AvgTimePerFrame_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_BitRate_Proxy( - IBasicVideo * This, - /* [retval][out] */ long *pBitRate); - - -void __RPC_STUB IBasicVideo_get_BitRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_BitErrorRate_Proxy( - IBasicVideo * This, - /* [retval][out] */ long *pBitErrorRate); - - -void __RPC_STUB IBasicVideo_get_BitErrorRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_VideoWidth_Proxy( - IBasicVideo * This, - /* [retval][out] */ long *pVideoWidth); - - -void __RPC_STUB IBasicVideo_get_VideoWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_VideoHeight_Proxy( - IBasicVideo * This, - /* [retval][out] */ long *pVideoHeight); - - -void __RPC_STUB IBasicVideo_get_VideoHeight_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IBasicVideo_put_SourceLeft_Proxy( - IBasicVideo * This, - /* [in] */ long SourceLeft); - - -void __RPC_STUB IBasicVideo_put_SourceLeft_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_SourceLeft_Proxy( - IBasicVideo * This, - /* [retval][out] */ long *pSourceLeft); - - -void __RPC_STUB IBasicVideo_get_SourceLeft_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IBasicVideo_put_SourceWidth_Proxy( - IBasicVideo * This, - /* [in] */ long SourceWidth); - - -void __RPC_STUB IBasicVideo_put_SourceWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_SourceWidth_Proxy( - IBasicVideo * This, - /* [retval][out] */ long *pSourceWidth); - - -void __RPC_STUB IBasicVideo_get_SourceWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IBasicVideo_put_SourceTop_Proxy( - IBasicVideo * This, - /* [in] */ long SourceTop); - - -void __RPC_STUB IBasicVideo_put_SourceTop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_SourceTop_Proxy( - IBasicVideo * This, - /* [retval][out] */ long *pSourceTop); - - -void __RPC_STUB IBasicVideo_get_SourceTop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IBasicVideo_put_SourceHeight_Proxy( - IBasicVideo * This, - /* [in] */ long SourceHeight); - - -void __RPC_STUB IBasicVideo_put_SourceHeight_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_SourceHeight_Proxy( - IBasicVideo * This, - /* [retval][out] */ long *pSourceHeight); - - -void __RPC_STUB IBasicVideo_get_SourceHeight_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IBasicVideo_put_DestinationLeft_Proxy( - IBasicVideo * This, - /* [in] */ long DestinationLeft); - - -void __RPC_STUB IBasicVideo_put_DestinationLeft_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_DestinationLeft_Proxy( - IBasicVideo * This, - /* [retval][out] */ long *pDestinationLeft); - - -void __RPC_STUB IBasicVideo_get_DestinationLeft_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IBasicVideo_put_DestinationWidth_Proxy( - IBasicVideo * This, - /* [in] */ long DestinationWidth); - - -void __RPC_STUB IBasicVideo_put_DestinationWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_DestinationWidth_Proxy( - IBasicVideo * This, - /* [retval][out] */ long *pDestinationWidth); - - -void __RPC_STUB IBasicVideo_get_DestinationWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IBasicVideo_put_DestinationTop_Proxy( - IBasicVideo * This, - /* [in] */ long DestinationTop); - - -void __RPC_STUB IBasicVideo_put_DestinationTop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_DestinationTop_Proxy( - IBasicVideo * This, - /* [retval][out] */ long *pDestinationTop); - - -void __RPC_STUB IBasicVideo_get_DestinationTop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IBasicVideo_put_DestinationHeight_Proxy( - IBasicVideo * This, - /* [in] */ long DestinationHeight); - - -void __RPC_STUB IBasicVideo_put_DestinationHeight_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IBasicVideo_get_DestinationHeight_Proxy( - IBasicVideo * This, - /* [retval][out] */ long *pDestinationHeight); - - -void __RPC_STUB IBasicVideo_get_DestinationHeight_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBasicVideo_SetSourcePosition_Proxy( - IBasicVideo * This, - /* [in] */ long Left, - /* [in] */ long Top, - /* [in] */ long Width, - /* [in] */ long Height); - - -void __RPC_STUB IBasicVideo_SetSourcePosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBasicVideo_GetSourcePosition_Proxy( - IBasicVideo * This, - /* [out] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - -void __RPC_STUB IBasicVideo_GetSourcePosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBasicVideo_SetDefaultSourcePosition_Proxy( - IBasicVideo * This); - - -void __RPC_STUB IBasicVideo_SetDefaultSourcePosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBasicVideo_SetDestinationPosition_Proxy( - IBasicVideo * This, - /* [in] */ long Left, - /* [in] */ long Top, - /* [in] */ long Width, - /* [in] */ long Height); - - -void __RPC_STUB IBasicVideo_SetDestinationPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBasicVideo_GetDestinationPosition_Proxy( - IBasicVideo * This, - /* [out] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - -void __RPC_STUB IBasicVideo_GetDestinationPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBasicVideo_SetDefaultDestinationPosition_Proxy( - IBasicVideo * This); - - -void __RPC_STUB IBasicVideo_SetDefaultDestinationPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBasicVideo_GetVideoSize_Proxy( - IBasicVideo * This, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - -void __RPC_STUB IBasicVideo_GetVideoSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBasicVideo_GetVideoPaletteEntries_Proxy( - IBasicVideo * This, - /* [in] */ long StartIndex, - /* [in] */ long Entries, - /* [out] */ long *pRetrieved, - /* [out] */ long *pPalette); - - -void __RPC_STUB IBasicVideo_GetVideoPaletteEntries_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBasicVideo_GetCurrentImage_Proxy( - IBasicVideo * This, - /* [out][in] */ long *pBufferSize, - /* [out] */ long *pDIBImage); - - -void __RPC_STUB IBasicVideo_GetCurrentImage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBasicVideo_IsUsingDefaultSource_Proxy( - IBasicVideo * This); - - -void __RPC_STUB IBasicVideo_IsUsingDefaultSource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBasicVideo_IsUsingDefaultDestination_Proxy( - IBasicVideo * This); - - -void __RPC_STUB IBasicVideo_IsUsingDefaultDestination_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ long *plAspectX, - /* [out] */ long *plAspectY) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBasicVideo2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBasicVideo2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBasicVideo2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBasicVideo2 * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IBasicVideo2 * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IBasicVideo2 * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IBasicVideo2 * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IBasicVideo2 * 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_AvgTimePerFrame )( - IBasicVideo2 * This, - /* [retval][out] */ REFTIME *pAvgTimePerFrame); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BitRate )( - IBasicVideo2 * This, - /* [retval][out] */ long *pBitRate); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BitErrorRate )( - IBasicVideo2 * This, - /* [retval][out] */ long *pBitErrorRate); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoWidth )( - IBasicVideo2 * This, - /* [retval][out] */ long *pVideoWidth); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoHeight )( - IBasicVideo2 * This, - /* [retval][out] */ long *pVideoHeight); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceLeft )( - IBasicVideo2 * This, - /* [in] */ long SourceLeft); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceLeft )( - IBasicVideo2 * This, - /* [retval][out] */ long *pSourceLeft); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceWidth )( - IBasicVideo2 * This, - /* [in] */ long SourceWidth); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceWidth )( - IBasicVideo2 * This, - /* [retval][out] */ long *pSourceWidth); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceTop )( - IBasicVideo2 * This, - /* [in] */ long SourceTop); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceTop )( - IBasicVideo2 * This, - /* [retval][out] */ long *pSourceTop); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceHeight )( - IBasicVideo2 * This, - /* [in] */ long SourceHeight); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceHeight )( - IBasicVideo2 * This, - /* [retval][out] */ long *pSourceHeight); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationLeft )( - IBasicVideo2 * This, - /* [in] */ long DestinationLeft); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationLeft )( - IBasicVideo2 * This, - /* [retval][out] */ long *pDestinationLeft); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationWidth )( - IBasicVideo2 * This, - /* [in] */ long DestinationWidth); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationWidth )( - IBasicVideo2 * This, - /* [retval][out] */ long *pDestinationWidth); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationTop )( - IBasicVideo2 * This, - /* [in] */ long DestinationTop); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationTop )( - IBasicVideo2 * This, - /* [retval][out] */ long *pDestinationTop); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationHeight )( - IBasicVideo2 * This, - /* [in] */ long DestinationHeight); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationHeight )( - IBasicVideo2 * This, - /* [retval][out] */ long *pDestinationHeight); - - HRESULT ( STDMETHODCALLTYPE *SetSourcePosition )( - IBasicVideo2 * This, - /* [in] */ long Left, - /* [in] */ long Top, - /* [in] */ long Width, - /* [in] */ long Height); - - HRESULT ( STDMETHODCALLTYPE *GetSourcePosition )( - IBasicVideo2 * This, - /* [out] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultSourcePosition )( - IBasicVideo2 * This); - - HRESULT ( STDMETHODCALLTYPE *SetDestinationPosition )( - IBasicVideo2 * This, - /* [in] */ long Left, - /* [in] */ long Top, - /* [in] */ long Width, - /* [in] */ long Height); - - HRESULT ( STDMETHODCALLTYPE *GetDestinationPosition )( - IBasicVideo2 * This, - /* [out] */ long *pLeft, - /* [out] */ long *pTop, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultDestinationPosition )( - IBasicVideo2 * This); - - HRESULT ( STDMETHODCALLTYPE *GetVideoSize )( - IBasicVideo2 * This, - /* [out] */ long *pWidth, - /* [out] */ long *pHeight); - - HRESULT ( STDMETHODCALLTYPE *GetVideoPaletteEntries )( - IBasicVideo2 * This, - /* [in] */ long StartIndex, - /* [in] */ long Entries, - /* [out] */ long *pRetrieved, - /* [out] */ long *pPalette); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentImage )( - IBasicVideo2 * This, - /* [out][in] */ long *pBufferSize, - /* [out] */ long *pDIBImage); - - HRESULT ( STDMETHODCALLTYPE *IsUsingDefaultSource )( - IBasicVideo2 * This); - - HRESULT ( STDMETHODCALLTYPE *IsUsingDefaultDestination )( - IBasicVideo2 * This); - - HRESULT ( STDMETHODCALLTYPE *GetPreferredAspectRatio )( - IBasicVideo2 * This, - /* [out] */ long *plAspectX, - /* [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 */ - - - -HRESULT STDMETHODCALLTYPE IBasicVideo2_GetPreferredAspectRatio_Proxy( - IBasicVideo2 * This, - /* [out] */ long *plAspectX, - /* [out] */ long *plAspectY); - - -void __RPC_STUB IBasicVideo2_GetPreferredAspectRatio_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ LONG *pConfidence) = 0; - - virtual HRESULT STDMETHODCALLTYPE Postpone( - /* [in] */ REFTIME newtime) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetHResult( - /* [out] */ HRESULT *phrResult) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDeferredCommandVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDeferredCommand * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDeferredCommand * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDeferredCommand * This); - - HRESULT ( STDMETHODCALLTYPE *Cancel )( - IDeferredCommand * This); - - HRESULT ( STDMETHODCALLTYPE *Confidence )( - IDeferredCommand * This, - /* [out] */ LONG *pConfidence); - - HRESULT ( STDMETHODCALLTYPE *Postpone )( - IDeferredCommand * This, - /* [in] */ REFTIME newtime); - - HRESULT ( STDMETHODCALLTYPE *GetHResult )( - IDeferredCommand * This, - /* [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 */ - - - -HRESULT STDMETHODCALLTYPE IDeferredCommand_Cancel_Proxy( - IDeferredCommand * This); - - -void __RPC_STUB IDeferredCommand_Cancel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDeferredCommand_Confidence_Proxy( - IDeferredCommand * This, - /* [out] */ LONG *pConfidence); - - -void __RPC_STUB IDeferredCommand_Confidence_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDeferredCommand_Postpone_Proxy( - IDeferredCommand * This, - /* [in] */ REFTIME newtime); - - -void __RPC_STUB IDeferredCommand_Postpone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDeferredCommand_GetHResult_Proxy( - IDeferredCommand * This, - /* [out] */ HRESULT *phrResult); - - -void __RPC_STUB IDeferredCommand_GetHResult_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ IDeferredCommand **pCmd, - /* [in] */ REFTIME time, - /* [in] */ GUID *iid, - /* [in] */ long dispidMethod, - /* [in] */ short wFlags, - /* [in] */ long cArgs, - /* [in] */ VARIANT *pDispParams, - /* [out][in] */ VARIANT *pvarResult, - /* [out] */ short *puArgErr) = 0; - - virtual HRESULT STDMETHODCALLTYPE InvokeAtPresentationTime( - /* [out] */ IDeferredCommand **pCmd, - /* [in] */ REFTIME time, - /* [in] */ GUID *iid, - /* [in] */ long dispidMethod, - /* [in] */ short wFlags, - /* [in] */ long cArgs, - /* [in] */ VARIANT *pDispParams, - /* [out][in] */ VARIANT *pvarResult, - /* [out] */ short *puArgErr) = 0; - - }; - -#else /* C style interface */ - - typedef struct IQueueCommandVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IQueueCommand * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IQueueCommand * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IQueueCommand * This); - - HRESULT ( STDMETHODCALLTYPE *InvokeAtStreamTime )( - IQueueCommand * This, - /* [out] */ IDeferredCommand **pCmd, - /* [in] */ REFTIME time, - /* [in] */ GUID *iid, - /* [in] */ long dispidMethod, - /* [in] */ short wFlags, - /* [in] */ long cArgs, - /* [in] */ VARIANT *pDispParams, - /* [out][in] */ VARIANT *pvarResult, - /* [out] */ short *puArgErr); - - HRESULT ( STDMETHODCALLTYPE *InvokeAtPresentationTime )( - IQueueCommand * This, - /* [out] */ IDeferredCommand **pCmd, - /* [in] */ REFTIME time, - /* [in] */ GUID *iid, - /* [in] */ long dispidMethod, - /* [in] */ short wFlags, - /* [in] */ long cArgs, - /* [in] */ VARIANT *pDispParams, - /* [out][in] */ VARIANT *pvarResult, - /* [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 */ - - - -HRESULT STDMETHODCALLTYPE IQueueCommand_InvokeAtStreamTime_Proxy( - IQueueCommand * This, - /* [out] */ IDeferredCommand **pCmd, - /* [in] */ REFTIME time, - /* [in] */ GUID *iid, - /* [in] */ long dispidMethod, - /* [in] */ short wFlags, - /* [in] */ long cArgs, - /* [in] */ VARIANT *pDispParams, - /* [out][in] */ VARIANT *pvarResult, - /* [out] */ short *puArgErr); - - -void __RPC_STUB IQueueCommand_InvokeAtStreamTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IQueueCommand_InvokeAtPresentationTime_Proxy( - IQueueCommand * This, - /* [out] */ IDeferredCommand **pCmd, - /* [in] */ REFTIME time, - /* [in] */ GUID *iid, - /* [in] */ long dispidMethod, - /* [in] */ short wFlags, - /* [in] */ long cArgs, - /* [in] */ VARIANT *pDispParams, - /* [out][in] */ VARIANT *pvarResult, - /* [out] */ short *puArgErr); - - -void __RPC_STUB IQueueCommand_InvokeAtPresentationTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ BSTR strPinID, - /* [out] */ IDispatch **ppUnk) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( - /* [retval][out] */ BSTR *strName) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_VendorInfo( - /* [retval][out] */ BSTR *strVendorInfo) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Filter( - /* [retval][out] */ IUnknown **ppUnk) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Pins( - /* [retval][out] */ IDispatch **ppUnk) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsFileSource( - /* [retval][out] */ LONG *pbIsSource) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Filename( - /* [retval][out] */ BSTR *pstrFilename) = 0; - - virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Filename( - /* [in] */ BSTR strFilename) = 0; - - }; - -#else /* C style interface */ - - typedef struct IFilterInfoVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IFilterInfo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IFilterInfo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IFilterInfo * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IFilterInfo * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IFilterInfo * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IFilterInfo * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IFilterInfo * 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 *FindPin )( - IFilterInfo * This, - /* [in] */ BSTR strPinID, - /* [out] */ IDispatch **ppUnk); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IFilterInfo * This, - /* [retval][out] */ BSTR *strName); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_VendorInfo )( - IFilterInfo * This, - /* [retval][out] */ BSTR *strVendorInfo); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( - IFilterInfo * This, - /* [retval][out] */ IUnknown **ppUnk); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Pins )( - IFilterInfo * This, - /* [retval][out] */ IDispatch **ppUnk); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsFileSource )( - IFilterInfo * This, - /* [retval][out] */ LONG *pbIsSource); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Filename )( - IFilterInfo * This, - /* [retval][out] */ BSTR *pstrFilename); - - /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Filename )( - IFilterInfo * This, - /* [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 */ - - - -HRESULT STDMETHODCALLTYPE IFilterInfo_FindPin_Proxy( - IFilterInfo * This, - /* [in] */ BSTR strPinID, - /* [out] */ IDispatch **ppUnk); - - -void __RPC_STUB IFilterInfo_FindPin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IFilterInfo_get_Name_Proxy( - IFilterInfo * This, - /* [retval][out] */ BSTR *strName); - - -void __RPC_STUB IFilterInfo_get_Name_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IFilterInfo_get_VendorInfo_Proxy( - IFilterInfo * This, - /* [retval][out] */ BSTR *strVendorInfo); - - -void __RPC_STUB IFilterInfo_get_VendorInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IFilterInfo_get_Filter_Proxy( - IFilterInfo * This, - /* [retval][out] */ IUnknown **ppUnk); - - -void __RPC_STUB IFilterInfo_get_Filter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IFilterInfo_get_Pins_Proxy( - IFilterInfo * This, - /* [retval][out] */ IDispatch **ppUnk); - - -void __RPC_STUB IFilterInfo_get_Pins_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IFilterInfo_get_IsFileSource_Proxy( - IFilterInfo * This, - /* [retval][out] */ LONG *pbIsSource); - - -void __RPC_STUB IFilterInfo_get_IsFileSource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IFilterInfo_get_Filename_Proxy( - IFilterInfo * This, - /* [retval][out] */ BSTR *pstrFilename); - - -void __RPC_STUB IFilterInfo_get_Filename_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propput] */ HRESULT STDMETHODCALLTYPE IFilterInfo_put_Filename_Proxy( - IFilterInfo * This, - /* [in] */ BSTR strFilename); - - -void __RPC_STUB IFilterInfo_put_Filename_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ BSTR *strName) = 0; - - virtual HRESULT STDMETHODCALLTYPE Filter( - /* [out] */ IDispatch **ppUnk) = 0; - - }; - -#else /* C style interface */ - - typedef struct IRegFilterInfoVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IRegFilterInfo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IRegFilterInfo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IRegFilterInfo * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IRegFilterInfo * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IRegFilterInfo * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IRegFilterInfo * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IRegFilterInfo * 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_Name )( - IRegFilterInfo * This, - /* [retval][out] */ BSTR *strName); - - HRESULT ( STDMETHODCALLTYPE *Filter )( - IRegFilterInfo * This, - /* [out] */ 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 */ - - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IRegFilterInfo_get_Name_Proxy( - IRegFilterInfo * This, - /* [retval][out] */ BSTR *strName); - - -void __RPC_STUB IRegFilterInfo_get_Name_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRegFilterInfo_Filter_Proxy( - IRegFilterInfo * This, - /* [out] */ IDispatch **ppUnk); - - -void __RPC_STUB IRegFilterInfo_Filter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ BSTR *strType) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Subtype( - /* [retval][out] */ BSTR *strType) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaTypeInfoVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaTypeInfo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaTypeInfo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaTypeInfo * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMediaTypeInfo * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMediaTypeInfo * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMediaTypeInfo * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMediaTypeInfo * 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_Type )( - IMediaTypeInfo * This, - /* [retval][out] */ BSTR *strType); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subtype )( - IMediaTypeInfo * This, - /* [retval][out] */ 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 */ - - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IMediaTypeInfo_get_Type_Proxy( - IMediaTypeInfo * This, - /* [retval][out] */ BSTR *strType); - - -void __RPC_STUB IMediaTypeInfo_get_Type_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IMediaTypeInfo_get_Subtype_Proxy( - IMediaTypeInfo * This, - /* [retval][out] */ BSTR *strType); - - -void __RPC_STUB IMediaTypeInfo_get_Subtype_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ IUnknown **ppUnk) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ConnectedTo( - /* [retval][out] */ IDispatch **ppUnk) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ConnectionMediaType( - /* [retval][out] */ IDispatch **ppUnk) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FilterInfo( - /* [retval][out] */ IDispatch **ppUnk) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( - /* [retval][out] */ BSTR *ppUnk) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Direction( - /* [retval][out] */ LONG *ppDirection) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PinID( - /* [retval][out] */ BSTR *strPinID) = 0; - - virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MediaTypes( - /* [retval][out] */ IDispatch **ppUnk) = 0; - - virtual HRESULT STDMETHODCALLTYPE Connect( - /* [in] */ IUnknown *pPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConnectDirect( - /* [in] */ IUnknown *pPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConnectWithType( - /* [in] */ IUnknown *pPin, - /* [in] */ IDispatch *pMediaType) = 0; - - virtual HRESULT STDMETHODCALLTYPE Disconnect( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Render( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IPinInfoVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IPinInfo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IPinInfo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IPinInfo * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IPinInfo * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IPinInfo * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IPinInfo * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IPinInfo * 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_Pin )( - IPinInfo * This, - /* [retval][out] */ IUnknown **ppUnk); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectedTo )( - IPinInfo * This, - /* [retval][out] */ IDispatch **ppUnk); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectionMediaType )( - IPinInfo * This, - /* [retval][out] */ IDispatch **ppUnk); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FilterInfo )( - IPinInfo * This, - /* [retval][out] */ IDispatch **ppUnk); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( - IPinInfo * This, - /* [retval][out] */ BSTR *ppUnk); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Direction )( - IPinInfo * This, - /* [retval][out] */ LONG *ppDirection); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PinID )( - IPinInfo * This, - /* [retval][out] */ BSTR *strPinID); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaTypes )( - IPinInfo * This, - /* [retval][out] */ IDispatch **ppUnk); - - HRESULT ( STDMETHODCALLTYPE *Connect )( - IPinInfo * This, - /* [in] */ IUnknown *pPin); - - HRESULT ( STDMETHODCALLTYPE *ConnectDirect )( - IPinInfo * This, - /* [in] */ IUnknown *pPin); - - HRESULT ( STDMETHODCALLTYPE *ConnectWithType )( - IPinInfo * This, - /* [in] */ IUnknown *pPin, - /* [in] */ IDispatch *pMediaType); - - HRESULT ( STDMETHODCALLTYPE *Disconnect )( - IPinInfo * This); - - HRESULT ( STDMETHODCALLTYPE *Render )( - 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 */ - - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IPinInfo_get_Pin_Proxy( - IPinInfo * This, - /* [retval][out] */ IUnknown **ppUnk); - - -void __RPC_STUB IPinInfo_get_Pin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IPinInfo_get_ConnectedTo_Proxy( - IPinInfo * This, - /* [retval][out] */ IDispatch **ppUnk); - - -void __RPC_STUB IPinInfo_get_ConnectedTo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IPinInfo_get_ConnectionMediaType_Proxy( - IPinInfo * This, - /* [retval][out] */ IDispatch **ppUnk); - - -void __RPC_STUB IPinInfo_get_ConnectionMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IPinInfo_get_FilterInfo_Proxy( - IPinInfo * This, - /* [retval][out] */ IDispatch **ppUnk); - - -void __RPC_STUB IPinInfo_get_FilterInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IPinInfo_get_Name_Proxy( - IPinInfo * This, - /* [retval][out] */ BSTR *ppUnk); - - -void __RPC_STUB IPinInfo_get_Name_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IPinInfo_get_Direction_Proxy( - IPinInfo * This, - /* [retval][out] */ LONG *ppDirection); - - -void __RPC_STUB IPinInfo_get_Direction_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IPinInfo_get_PinID_Proxy( - IPinInfo * This, - /* [retval][out] */ BSTR *strPinID); - - -void __RPC_STUB IPinInfo_get_PinID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IPinInfo_get_MediaTypes_Proxy( - IPinInfo * This, - /* [retval][out] */ IDispatch **ppUnk); - - -void __RPC_STUB IPinInfo_get_MediaTypes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPinInfo_Connect_Proxy( - IPinInfo * This, - /* [in] */ IUnknown *pPin); - - -void __RPC_STUB IPinInfo_Connect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPinInfo_ConnectDirect_Proxy( - IPinInfo * This, - /* [in] */ IUnknown *pPin); - - -void __RPC_STUB IPinInfo_ConnectDirect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPinInfo_ConnectWithType_Proxy( - IPinInfo * This, - /* [in] */ IUnknown *pPin, - /* [in] */ IDispatch *pMediaType); - - -void __RPC_STUB IPinInfo_ConnectWithType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPinInfo_Disconnect_Proxy( - IPinInfo * This); - - -void __RPC_STUB IPinInfo_Disconnect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPinInfo_Render_Proxy( - IPinInfo * This); - - -void __RPC_STUB IPinInfo_Render_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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] */ LONG *plCount) = 0; - - virtual HRESULT STDMETHODCALLTYPE 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) = 0; - - virtual HRESULT STDMETHODCALLTYPE 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) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetIndex( - /* [in] */ BSTR szName, - /* [in] */ long lCreate, - /* [out] */ long *plIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddValue( - /* [in] */ long lIndex, - /* [in] */ double dValue) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMStatsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMStats * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMStats * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMStats * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IAMStats * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IAMStats * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IAMStats * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IAMStats * 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 *Reset )( - IAMStats * This); - - /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - IAMStats * This, - /* [retval][out] */ LONG *plCount); - - HRESULT ( STDMETHODCALLTYPE *GetValueByIndex )( - IAMStats * This, - /* [in] */ long lIndex, - /* [out] */ BSTR *szName, - /* [out] */ long *lCount, - /* [out] */ double *dLast, - /* [out] */ double *dAverage, - /* [out] */ double *dStdDev, - /* [out] */ double *dMin, - /* [out] */ double *dMax); - - HRESULT ( STDMETHODCALLTYPE *GetValueByName )( - IAMStats * This, - /* [in] */ BSTR szName, - /* [out] */ long *lIndex, - /* [out] */ long *lCount, - /* [out] */ double *dLast, - /* [out] */ double *dAverage, - /* [out] */ double *dStdDev, - /* [out] */ double *dMin, - /* [out] */ double *dMax); - - HRESULT ( STDMETHODCALLTYPE *GetIndex )( - IAMStats * This, - /* [in] */ BSTR szName, - /* [in] */ long lCreate, - /* [out] */ long *plIndex); - - HRESULT ( STDMETHODCALLTYPE *AddValue )( - 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 */ - - - -HRESULT STDMETHODCALLTYPE IAMStats_Reset_Proxy( - IAMStats * This); - - -void __RPC_STUB IAMStats_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [propget] */ HRESULT STDMETHODCALLTYPE IAMStats_get_Count_Proxy( - IAMStats * This, - /* [retval][out] */ LONG *plCount); - - -void __RPC_STUB IAMStats_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMStats_GetValueByIndex_Proxy( - IAMStats * This, - /* [in] */ long lIndex, - /* [out] */ BSTR *szName, - /* [out] */ long *lCount, - /* [out] */ double *dLast, - /* [out] */ double *dAverage, - /* [out] */ double *dStdDev, - /* [out] */ double *dMin, - /* [out] */ double *dMax); - - -void __RPC_STUB IAMStats_GetValueByIndex_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMStats_GetValueByName_Proxy( - IAMStats * This, - /* [in] */ BSTR szName, - /* [out] */ long *lIndex, - /* [out] */ long *lCount, - /* [out] */ double *dLast, - /* [out] */ double *dAverage, - /* [out] */ double *dStdDev, - /* [out] */ double *dMin, - /* [out] */ double *dMax); - - -void __RPC_STUB IAMStats_GetValueByName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMStats_GetIndex_Proxy( - IAMStats * This, - /* [in] */ BSTR szName, - /* [in] */ long lCreate, - /* [out] */ long *plIndex); - - -void __RPC_STUB IAMStats_GetIndex_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMStats_AddValue_Proxy( - IAMStats * This, - /* [in] */ long lIndex, - /* [in] */ double dValue); - - -void __RPC_STUB IAMStats_AddValue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMStats_INTERFACE_DEFINED__ */ - -#endif /* __QuartzTypeLib_LIBRARY_DEFINED__ */ - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/d3d.h b/sdk/dx8sdk/Include/d3d.h deleted file mode 100644 index eea7dff4..00000000 --- a/sdk/dx8sdk/Include/d3d.h +++ /dev/null @@ -1,1688 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: d3d.h - * Content: Direct3D include file - * - ****************************************************************************/ - -#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_ */ - diff --git a/sdk/dx8sdk/Include/d3d8.h b/sdk/dx8sdk/Include/d3d8.h deleted file mode 100644 index adf91ebf..00000000 --- a/sdk/dx8sdk/Include/d3d8.h +++ /dev/null @@ -1,1279 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: d3d8.h - * Content: Direct3D include file - * - ****************************************************************************/ - -#ifndef _D3D8_H_ -#define _D3D8_H_ - -#ifndef DIRECT3D_VERSION -#define DIRECT3D_VERSION 0x0800 -#endif //DIRECT3D_VERSION - -// include this file content only if compiling for DX8 interfaces -#if(DIRECT3D_VERSION >= 0x0800) - - -/* This identifier is passed to Direct3DCreate8 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, Direct3DCreate8 will fail. - * (The number itself has no meaning.)*/ - -#define D3D_SDK_VERSION 220 - - -#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_IDirect3D8 */ -/* {1DD9E8DA-1C77-4d40-B0CF-98FEFDFF9512} */ -DEFINE_GUID(IID_IDirect3D8, 0x1dd9e8da, 0x1c77, 0x4d40, 0xb0, 0xcf, 0x98, 0xfe, 0xfd, 0xff, 0x95, 0x12); - -/* IID_IDirect3DDevice8 */ -/* {7385E5DF-8FE8-41D5-86B6-D7B48547B6CF} */ -DEFINE_GUID(IID_IDirect3DDevice8, 0x7385e5df, 0x8fe8, 0x41d5, 0x86, 0xb6, 0xd7, 0xb4, 0x85, 0x47, 0xb6, 0xcf); - -/* IID_IDirect3DResource8 */ -/* {1B36BB7B-09B7-410a-B445-7D1430D7B33F} */ -DEFINE_GUID(IID_IDirect3DResource8, 0x1b36bb7b, 0x9b7, 0x410a, 0xb4, 0x45, 0x7d, 0x14, 0x30, 0xd7, 0xb3, 0x3f); - -/* IID_IDirect3DBaseTexture8 */ -/* {B4211CFA-51B9-4a9f-AB78-DB99B2BB678E} */ -DEFINE_GUID(IID_IDirect3DBaseTexture8, 0xb4211cfa, 0x51b9, 0x4a9f, 0xab, 0x78, 0xdb, 0x99, 0xb2, 0xbb, 0x67, 0x8e); - -/* IID_IDirect3DTexture8 */ -/* {E4CDD575-2866-4f01-B12E-7EECE1EC9358} */ -DEFINE_GUID(IID_IDirect3DTexture8, 0xe4cdd575, 0x2866, 0x4f01, 0xb1, 0x2e, 0x7e, 0xec, 0xe1, 0xec, 0x93, 0x58); - -/* IID_IDirect3DCubeTexture8 */ -/* {3EE5B968-2ACA-4c34-8BB5-7E0C3D19B750} */ -DEFINE_GUID(IID_IDirect3DCubeTexture8, 0x3ee5b968, 0x2aca, 0x4c34, 0x8b, 0xb5, 0x7e, 0x0c, 0x3d, 0x19, 0xb7, 0x50); - -/* IID_IDirect3DVolumeTexture8 */ -/* {4B8AAAFA-140F-42ba-9131-597EAFAA2EAD} */ -DEFINE_GUID(IID_IDirect3DVolumeTexture8, 0x4b8aaafa, 0x140f, 0x42ba, 0x91, 0x31, 0x59, 0x7e, 0xaf, 0xaa, 0x2e, 0xad); - -/* IID_IDirect3DVertexBuffer8 */ -/* {8AEEEAC7-05F9-44d4-B591-000B0DF1CB95} */ -DEFINE_GUID(IID_IDirect3DVertexBuffer8, 0x8aeeeac7, 0x05f9, 0x44d4, 0xb5, 0x91, 0x00, 0x0b, 0x0d, 0xf1, 0xcb, 0x95); - -/* IID_IDirect3DIndexBuffer8 */ -/* {0E689C9A-053D-44a0-9D92-DB0E3D750F86} */ -DEFINE_GUID(IID_IDirect3DIndexBuffer8, 0x0e689c9a, 0x053d, 0x44a0, 0x9d, 0x92, 0xdb, 0x0e, 0x3d, 0x75, 0x0f, 0x86); - -/* IID_IDirect3DSurface8 */ -/* {B96EEBCA-B326-4ea5-882F-2FF5BAE021DD} */ -DEFINE_GUID(IID_IDirect3DSurface8, 0xb96eebca, 0xb326, 0x4ea5, 0x88, 0x2f, 0x2f, 0xf5, 0xba, 0xe0, 0x21, 0xdd); - -/* IID_IDirect3DVolume8 */ -/* {BD7349F5-14F1-42e4-9C79-972380DB40C0} */ -DEFINE_GUID(IID_IDirect3DVolume8, 0xbd7349f5, 0x14f1, 0x42e4, 0x9c, 0x79, 0x97, 0x23, 0x80, 0xdb, 0x40, 0xc0); - -/* IID_IDirect3DSwapChain8 */ -/* {928C088B-76B9-4C6B-A536-A590853876CD} */ -DEFINE_GUID(IID_IDirect3DSwapChain8, 0x928c088b, 0x76b9, 0x4c6b, 0xa5, 0x36, 0xa5, 0x90, 0x85, 0x38, 0x76, 0xcd); - -#endif - -#ifdef __cplusplus - -interface IDirect3D8; -interface IDirect3DDevice8; - -interface IDirect3DResource8; -interface IDirect3DBaseTexture8; -interface IDirect3DTexture8; -interface IDirect3DVolumeTexture8; -interface IDirect3DCubeTexture8; - -interface IDirect3DVertexBuffer8; -interface IDirect3DIndexBuffer8; - -interface IDirect3DSurface8; -interface IDirect3DVolume8; - -interface IDirect3DSwapChain8; - -#endif - - -typedef interface IDirect3D8 IDirect3D8; -typedef interface IDirect3DDevice8 IDirect3DDevice8; -typedef interface IDirect3DResource8 IDirect3DResource8; -typedef interface IDirect3DBaseTexture8 IDirect3DBaseTexture8; -typedef interface IDirect3DTexture8 IDirect3DTexture8; -typedef interface IDirect3DVolumeTexture8 IDirect3DVolumeTexture8; -typedef interface IDirect3DCubeTexture8 IDirect3DCubeTexture8; -typedef interface IDirect3DVertexBuffer8 IDirect3DVertexBuffer8; -typedef interface IDirect3DIndexBuffer8 IDirect3DIndexBuffer8; -typedef interface IDirect3DSurface8 IDirect3DSurface8; -typedef interface IDirect3DVolume8 IDirect3DVolume8; -typedef interface IDirect3DSwapChain8 IDirect3DSwapChain8; - -#include "d3d8types.h" -#include "d3d8caps.h" - - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * DLL Function for creating a Direct3D8 object. This object supports - * enumeration and allows the creation of Direct3DDevice8 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. - */ - -IDirect3D8 * WINAPI Direct3DCreate8(UINT SDKVersion); - - -/* - * Direct3D interfaces - */ - - - - - - -#undef INTERFACE -#define INTERFACE IDirect3D8 - -DECLARE_INTERFACE_(IDirect3D8, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirect3D8 methods ***/ - STDMETHOD(RegisterSoftwareDevice)(THIS_ void* pInitializeFunction) PURE; - STDMETHOD_(UINT, GetAdapterCount)(THIS) PURE; - STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter,DWORD Flags,D3DADAPTER_IDENTIFIER8* pIdentifier) PURE; - STDMETHOD_(UINT, GetAdapterModeCount)(THIS_ UINT Adapter) PURE; - STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter,UINT Mode,D3DDISPLAYMODE* pMode) PURE; - STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter,D3DDISPLAYMODE* pMode) PURE; - STDMETHOD(CheckDeviceType)(THIS_ UINT Adapter,D3DDEVTYPE CheckType,D3DFORMAT DisplayFormat,D3DFORMAT BackBufferFormat,BOOL Windowed) 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) PURE; - STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT AdapterFormat,D3DFORMAT RenderTargetFormat,D3DFORMAT DepthStencilFormat) PURE; - STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DCAPS8* pCaps) PURE; - STDMETHOD_(HMONITOR, GetAdapterMonitor)(THIS_ UINT Adapter) PURE; - STDMETHOD(CreateDevice)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,HWND hFocusWindow,DWORD BehaviorFlags,D3DPRESENT_PARAMETERS* pPresentationParameters,IDirect3DDevice8** ppReturnedDeviceInterface) PURE; -}; - -typedef struct IDirect3D8 *LPDIRECT3D8, *PDIRECT3D8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirect3D8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirect3D8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirect3D8_Release(p) (p)->lpVtbl->Release(p) -#define IDirect3D8_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a) -#define IDirect3D8_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p) -#define IDirect3D8_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c) -#define IDirect3D8_GetAdapterModeCount(p,a) (p)->lpVtbl->GetAdapterModeCount(p,a) -#define IDirect3D8_EnumAdapterModes(p,a,b,c) (p)->lpVtbl->EnumAdapterModes(p,a,b,c) -#define IDirect3D8_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b) -#define IDirect3D8_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e) -#define IDirect3D8_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f) -#define IDirect3D8_CheckDeviceMultiSampleType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e) -#define IDirect3D8_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e) -#define IDirect3D8_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c) -#define IDirect3D8_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a) -#define IDirect3D8_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f) -#else -#define IDirect3D8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirect3D8_AddRef(p) (p)->AddRef() -#define IDirect3D8_Release(p) (p)->Release() -#define IDirect3D8_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a) -#define IDirect3D8_GetAdapterCount(p) (p)->GetAdapterCount() -#define IDirect3D8_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c) -#define IDirect3D8_GetAdapterModeCount(p,a) (p)->GetAdapterModeCount(a) -#define IDirect3D8_EnumAdapterModes(p,a,b,c) (p)->EnumAdapterModes(a,b,c) -#define IDirect3D8_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b) -#define IDirect3D8_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e) -#define IDirect3D8_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f) -#define IDirect3D8_CheckDeviceMultiSampleType(p,a,b,c,d,e) (p)->CheckDeviceMultiSampleType(a,b,c,d,e) -#define IDirect3D8_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e) -#define IDirect3D8_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c) -#define IDirect3D8_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a) -#define IDirect3D8_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f) -#endif - - - - - - - - - - - - - - - - - - - -#undef INTERFACE -#define INTERFACE IDirect3DDevice8 - -DECLARE_INTERFACE_(IDirect3DDevice8, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirect3DDevice8 methods ***/ - STDMETHOD(TestCooperativeLevel)(THIS) PURE; - STDMETHOD_(UINT, GetAvailableTextureMem)(THIS) PURE; - STDMETHOD(ResourceManagerDiscardBytes)(THIS_ DWORD Bytes) PURE; - STDMETHOD(GetDirect3D)(THIS_ IDirect3D8** ppD3D8) PURE; - STDMETHOD(GetDeviceCaps)(THIS_ D3DCAPS8* pCaps) PURE; - STDMETHOD(GetDisplayMode)(THIS_ D3DDISPLAYMODE* pMode) PURE; - STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS *pParameters) PURE; - STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot,UINT YHotSpot,IDirect3DSurface8* 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,IDirect3DSwapChain8** pSwapChain) 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 BackBuffer,D3DBACKBUFFER_TYPE Type,IDirect3DSurface8** ppBackBuffer) PURE; - STDMETHOD(GetRasterStatus)(THIS_ D3DRASTER_STATUS* pRasterStatus) PURE; - STDMETHOD_(void, SetGammaRamp)(THIS_ DWORD Flags,CONST D3DGAMMARAMP* pRamp) PURE; - STDMETHOD_(void, GetGammaRamp)(THIS_ D3DGAMMARAMP* pRamp) PURE; - STDMETHOD(CreateTexture)(THIS_ UINT Width,UINT Height,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DTexture8** ppTexture) PURE; - STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width,UINT Height,UINT Depth,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DVolumeTexture8** ppVolumeTexture) PURE; - STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DCubeTexture8** ppCubeTexture) PURE; - STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length,DWORD Usage,DWORD FVF,D3DPOOL Pool,IDirect3DVertexBuffer8** ppVertexBuffer) PURE; - STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DIndexBuffer8** ppIndexBuffer) PURE; - STDMETHOD(CreateRenderTarget)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,BOOL Lockable,IDirect3DSurface8** ppSurface) PURE; - STDMETHOD(CreateDepthStencilSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,IDirect3DSurface8** ppSurface) PURE; - STDMETHOD(CreateImageSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,IDirect3DSurface8** ppSurface) PURE; - STDMETHOD(CopyRects)(THIS_ IDirect3DSurface8* pSourceSurface,CONST RECT* pSourceRectsArray,UINT cRects,IDirect3DSurface8* pDestinationSurface,CONST POINT* pDestPointsArray) PURE; - STDMETHOD(UpdateTexture)(THIS_ IDirect3DBaseTexture8* pSourceTexture,IDirect3DBaseTexture8* pDestinationTexture) PURE; - STDMETHOD(GetFrontBuffer)(THIS_ IDirect3DSurface8* pDestSurface) PURE; - STDMETHOD(SetRenderTarget)(THIS_ IDirect3DSurface8* pRenderTarget,IDirect3DSurface8* pNewZStencil) PURE; - STDMETHOD(GetRenderTarget)(THIS_ IDirect3DSurface8** ppRenderTarget) PURE; - STDMETHOD(GetDepthStencilSurface)(THIS_ IDirect3DSurface8** 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 D3DVIEWPORT8* pViewport) PURE; - STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT8* pViewport) PURE; - STDMETHOD(SetMaterial)(THIS_ CONST D3DMATERIAL8* pMaterial) PURE; - STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL8* pMaterial) PURE; - STDMETHOD(SetLight)(THIS_ DWORD Index,CONST D3DLIGHT8*) PURE; - STDMETHOD(GetLight)(THIS_ DWORD Index,D3DLIGHT8*) 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(BeginStateBlock)(THIS) PURE; - STDMETHOD(EndStateBlock)(THIS_ DWORD* pToken) PURE; - STDMETHOD(ApplyStateBlock)(THIS_ DWORD Token) PURE; - STDMETHOD(CaptureStateBlock)(THIS_ DWORD Token) PURE; - STDMETHOD(DeleteStateBlock)(THIS_ DWORD Token) PURE; - STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type,DWORD* pToken) PURE; - STDMETHOD(SetClipStatus)(THIS_ CONST D3DCLIPSTATUS8* pClipStatus) PURE; - STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS8* pClipStatus) PURE; - STDMETHOD(GetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture8** ppTexture) PURE; - STDMETHOD(SetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture8* pTexture) PURE; - STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD* pValue) PURE; - STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD Value) PURE; - STDMETHOD(ValidateDevice)(THIS_ DWORD* pNumPasses) PURE; - STDMETHOD(GetInfo)(THIS_ DWORD DevInfoID,void* pDevInfoStruct,DWORD DevInfoStructSize) 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(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT StartVertex,UINT PrimitiveCount) PURE; - STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,UINT minIndex,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 NumVertexIndices,UINT PrimitiveCount,CONST void* pIndexData,D3DFORMAT IndexDataFormat,CONST void* pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE; - STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex,UINT DestIndex,UINT VertexCount,IDirect3DVertexBuffer8* pDestBuffer,DWORD Flags) PURE; - STDMETHOD(CreateVertexShader)(THIS_ CONST DWORD* pDeclaration,CONST DWORD* pFunction,DWORD* pHandle,DWORD Usage) PURE; - STDMETHOD(SetVertexShader)(THIS_ DWORD Handle) PURE; - STDMETHOD(GetVertexShader)(THIS_ DWORD* pHandle) PURE; - STDMETHOD(DeleteVertexShader)(THIS_ DWORD Handle) PURE; - STDMETHOD(SetVertexShaderConstant)(THIS_ DWORD Register,CONST void* pConstantData,DWORD ConstantCount) PURE; - STDMETHOD(GetVertexShaderConstant)(THIS_ DWORD Register,void* pConstantData,DWORD ConstantCount) PURE; - STDMETHOD(GetVertexShaderDeclaration)(THIS_ DWORD Handle,void* pData,DWORD* pSizeOfData) PURE; - STDMETHOD(GetVertexShaderFunction)(THIS_ DWORD Handle,void* pData,DWORD* pSizeOfData) PURE; - STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer8* pStreamData,UINT Stride) PURE; - STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer8** ppStreamData,UINT* pStride) PURE; - STDMETHOD(SetIndices)(THIS_ IDirect3DIndexBuffer8* pIndexData,UINT BaseVertexIndex) PURE; - STDMETHOD(GetIndices)(THIS_ IDirect3DIndexBuffer8** ppIndexData,UINT* pBaseVertexIndex) PURE; - STDMETHOD(CreatePixelShader)(THIS_ CONST DWORD* pFunction,DWORD* pHandle) PURE; - STDMETHOD(SetPixelShader)(THIS_ DWORD Handle) PURE; - STDMETHOD(GetPixelShader)(THIS_ DWORD* pHandle) PURE; - STDMETHOD(DeletePixelShader)(THIS_ DWORD Handle) PURE; - STDMETHOD(SetPixelShaderConstant)(THIS_ DWORD Register,CONST void* pConstantData,DWORD ConstantCount) PURE; - STDMETHOD(GetPixelShaderConstant)(THIS_ DWORD Register,void* pConstantData,DWORD ConstantCount) PURE; - STDMETHOD(GetPixelShaderFunction)(THIS_ DWORD Handle,void* pData,DWORD* pSizeOfData) 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; -}; - -typedef struct IDirect3DDevice8 *LPDIRECT3DDEVICE8, *PDIRECT3DDEVICE8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirect3DDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirect3DDevice8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirect3DDevice8_Release(p) (p)->lpVtbl->Release(p) -#define IDirect3DDevice8_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p) -#define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p) -#define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->lpVtbl->ResourceManagerDiscardBytes(p,a) -#define IDirect3DDevice8_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) -#define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a) -#define IDirect3DDevice8_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a) -#define IDirect3DDevice8_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a) -#define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c) -#define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c) -#define IDirect3DDevice8_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a) -#define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b) -#define IDirect3DDevice8_Reset(p,a) (p)->lpVtbl->Reset(p,a) -#define IDirect3DDevice8_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d) -#define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c) -#define IDirect3DDevice8_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a) -#define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->lpVtbl->SetGammaRamp(p,a,b) -#define IDirect3DDevice8_GetGammaRamp(p,a) (p)->lpVtbl->GetGammaRamp(p,a) -#define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g) -#define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h) -#define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f) -#define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e) -#define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e) -#define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f) -#define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e) -#define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->lpVtbl->CreateImageSurface(p,a,b,c,d) -#define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->lpVtbl->CopyRects(p,a,b,c,d,e) -#define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b) -#define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->lpVtbl->GetFrontBuffer(p,a) -#define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b) -#define IDirect3DDevice8_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a) -#define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a) -#define IDirect3DDevice8_BeginScene(p) (p)->lpVtbl->BeginScene(p) -#define IDirect3DDevice8_EndScene(p) (p)->lpVtbl->EndScene(p) -#define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f) -#define IDirect3DDevice8_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b) -#define IDirect3DDevice8_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b) -#define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b) -#define IDirect3DDevice8_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) -#define IDirect3DDevice8_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) -#define IDirect3DDevice8_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) -#define IDirect3DDevice8_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) -#define IDirect3DDevice8_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b) -#define IDirect3DDevice8_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b) -#define IDirect3DDevice8_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b) -#define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b) -#define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b) -#define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b) -#define IDirect3DDevice8_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b) -#define IDirect3DDevice8_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b) -#define IDirect3DDevice8_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p) -#define IDirect3DDevice8_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a) -#define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->lpVtbl->ApplyStateBlock(p,a) -#define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->lpVtbl->CaptureStateBlock(p,a) -#define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->lpVtbl->DeleteStateBlock(p,a) -#define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b) -#define IDirect3DDevice8_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a) -#define IDirect3DDevice8_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a) -#define IDirect3DDevice8_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b) -#define IDirect3DDevice8_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b) -#define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c) -#define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c) -#define IDirect3DDevice8_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a) -#define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c) -#define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b) -#define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b) -#define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a) -#define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a) -#define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c) -#define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e) -#define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d) -#define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) -#define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e) -#define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->lpVtbl->CreateVertexShader(p,a,b,c,d) -#define IDirect3DDevice8_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a) -#define IDirect3DDevice8_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a) -#define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->lpVtbl->DeleteVertexShader(p,a) -#define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstant(p,a,b,c) -#define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstant(p,a,b,c) -#define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->lpVtbl->GetVertexShaderDeclaration(p,a,b,c) -#define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->lpVtbl->GetVertexShaderFunction(p,a,b,c) -#define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->lpVtbl->SetStreamSource(p,a,b,c) -#define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->lpVtbl->GetStreamSource(p,a,b,c) -#define IDirect3DDevice8_SetIndices(p,a,b) (p)->lpVtbl->SetIndices(p,a,b) -#define IDirect3DDevice8_GetIndices(p,a,b) (p)->lpVtbl->GetIndices(p,a,b) -#define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b) -#define IDirect3DDevice8_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a) -#define IDirect3DDevice8_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a) -#define IDirect3DDevice8_DeletePixelShader(p,a) (p)->lpVtbl->DeletePixelShader(p,a) -#define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstant(p,a,b,c) -#define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstant(p,a,b,c) -#define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->lpVtbl->GetPixelShaderFunction(p,a,b,c) -#define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c) -#define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c) -#define IDirect3DDevice8_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a) -#else -#define IDirect3DDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirect3DDevice8_AddRef(p) (p)->AddRef() -#define IDirect3DDevice8_Release(p) (p)->Release() -#define IDirect3DDevice8_TestCooperativeLevel(p) (p)->TestCooperativeLevel() -#define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem() -#define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->ResourceManagerDiscardBytes(a) -#define IDirect3DDevice8_GetDirect3D(p,a) (p)->GetDirect3D(a) -#define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a) -#define IDirect3DDevice8_GetDisplayMode(p,a) (p)->GetDisplayMode(a) -#define IDirect3DDevice8_GetCreationParameters(p,a) (p)->GetCreationParameters(a) -#define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c) -#define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c) -#define IDirect3DDevice8_ShowCursor(p,a) (p)->ShowCursor(a) -#define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b) -#define IDirect3DDevice8_Reset(p,a) (p)->Reset(a) -#define IDirect3DDevice8_Present(p,a,b,c,d) (p)->Present(a,b,c,d) -#define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c) -#define IDirect3DDevice8_GetRasterStatus(p,a) (p)->GetRasterStatus(a) -#define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->SetGammaRamp(a,b) -#define IDirect3DDevice8_GetGammaRamp(p,a) (p)->GetGammaRamp(a) -#define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->CreateTexture(a,b,c,d,e,f,g) -#define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h) -#define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->CreateCubeTexture(a,b,c,d,e,f) -#define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->CreateVertexBuffer(a,b,c,d,e) -#define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->CreateIndexBuffer(a,b,c,d,e) -#define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->CreateRenderTarget(a,b,c,d,e,f) -#define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->CreateDepthStencilSurface(a,b,c,d,e) -#define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->CreateImageSurface(a,b,c,d) -#define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->CopyRects(a,b,c,d,e) -#define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b) -#define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->GetFrontBuffer(a) -#define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b) -#define IDirect3DDevice8_GetRenderTarget(p,a) (p)->GetRenderTarget(a) -#define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a) -#define IDirect3DDevice8_BeginScene(p) (p)->BeginScene() -#define IDirect3DDevice8_EndScene(p) (p)->EndScene() -#define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f) -#define IDirect3DDevice8_SetTransform(p,a,b) (p)->SetTransform(a,b) -#define IDirect3DDevice8_GetTransform(p,a,b) (p)->GetTransform(a,b) -#define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b) -#define IDirect3DDevice8_SetViewport(p,a) (p)->SetViewport(a) -#define IDirect3DDevice8_GetViewport(p,a) (p)->GetViewport(a) -#define IDirect3DDevice8_SetMaterial(p,a) (p)->SetMaterial(a) -#define IDirect3DDevice8_GetMaterial(p,a) (p)->GetMaterial(a) -#define IDirect3DDevice8_SetLight(p,a,b) (p)->SetLight(a,b) -#define IDirect3DDevice8_GetLight(p,a,b) (p)->GetLight(a,b) -#define IDirect3DDevice8_LightEnable(p,a,b) (p)->LightEnable(a,b) -#define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b) -#define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b) -#define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b) -#define IDirect3DDevice8_SetRenderState(p,a,b) (p)->SetRenderState(a,b) -#define IDirect3DDevice8_GetRenderState(p,a,b) (p)->GetRenderState(a,b) -#define IDirect3DDevice8_BeginStateBlock(p) (p)->BeginStateBlock() -#define IDirect3DDevice8_EndStateBlock(p,a) (p)->EndStateBlock(a) -#define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->ApplyStateBlock(a) -#define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->CaptureStateBlock(a) -#define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->DeleteStateBlock(a) -#define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b) -#define IDirect3DDevice8_SetClipStatus(p,a) (p)->SetClipStatus(a) -#define IDirect3DDevice8_GetClipStatus(p,a) (p)->GetClipStatus(a) -#define IDirect3DDevice8_GetTexture(p,a,b) (p)->GetTexture(a,b) -#define IDirect3DDevice8_SetTexture(p,a,b) (p)->SetTexture(a,b) -#define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c) -#define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c) -#define IDirect3DDevice8_ValidateDevice(p,a) (p)->ValidateDevice(a) -#define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->GetInfo(a,b,c) -#define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b) -#define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b) -#define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a) -#define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a) -#define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c) -#define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->DrawIndexedPrimitive(a,b,c,d,e) -#define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d) -#define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h) -#define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->ProcessVertices(a,b,c,d,e) -#define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->CreateVertexShader(a,b,c,d) -#define IDirect3DDevice8_SetVertexShader(p,a) (p)->SetVertexShader(a) -#define IDirect3DDevice8_GetVertexShader(p,a) (p)->GetVertexShader(a) -#define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->DeleteVertexShader(a) -#define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->SetVertexShaderConstant(a,b,c) -#define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->GetVertexShaderConstant(a,b,c) -#define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->GetVertexShaderDeclaration(a,b,c) -#define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->GetVertexShaderFunction(a,b,c) -#define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->SetStreamSource(a,b,c) -#define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->GetStreamSource(a,b,c) -#define IDirect3DDevice8_SetIndices(p,a,b) (p)->SetIndices(a,b) -#define IDirect3DDevice8_GetIndices(p,a,b) (p)->GetIndices(a,b) -#define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b) -#define IDirect3DDevice8_SetPixelShader(p,a) (p)->SetPixelShader(a) -#define IDirect3DDevice8_GetPixelShader(p,a) (p)->GetPixelShader(a) -#define IDirect3DDevice8_DeletePixelShader(p,a) (p)->DeletePixelShader(a) -#define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->SetPixelShaderConstant(a,b,c) -#define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->GetPixelShaderConstant(a,b,c) -#define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->GetPixelShaderFunction(a,b,c) -#define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c) -#define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c) -#define IDirect3DDevice8_DeletePatch(p,a) (p)->DeletePatch(a) -#endif - - - -#undef INTERFACE -#define INTERFACE IDirect3DSwapChain8 - -DECLARE_INTERFACE_(IDirect3DSwapChain8, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirect3DSwapChain8 methods ***/ - STDMETHOD(Present)(THIS_ CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion) PURE; - STDMETHOD(GetBackBuffer)(THIS_ UINT BackBuffer,D3DBACKBUFFER_TYPE Type,IDirect3DSurface8** ppBackBuffer) PURE; -}; - -typedef struct IDirect3DSwapChain8 *LPDIRECT3DSWAPCHAIN8, *PDIRECT3DSWAPCHAIN8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirect3DSwapChain8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirect3DSwapChain8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirect3DSwapChain8_Release(p) (p)->lpVtbl->Release(p) -#define IDirect3DSwapChain8_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d) -#define IDirect3DSwapChain8_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c) -#else -#define IDirect3DSwapChain8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirect3DSwapChain8_AddRef(p) (p)->AddRef() -#define IDirect3DSwapChain8_Release(p) (p)->Release() -#define IDirect3DSwapChain8_Present(p,a,b,c,d) (p)->Present(a,b,c,d) -#define IDirect3DSwapChain8_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c) -#endif - - - -#undef INTERFACE -#define INTERFACE IDirect3DResource8 - -DECLARE_INTERFACE_(IDirect3DResource8, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirect3DResource8 methods ***/ - STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** 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 IDirect3DResource8 *LPDIRECT3DRESOURCE8, *PDIRECT3DRESOURCE8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirect3DResource8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirect3DResource8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirect3DResource8_Release(p) (p)->lpVtbl->Release(p) -#define IDirect3DResource8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) -#define IDirect3DResource8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) -#define IDirect3DResource8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) -#define IDirect3DResource8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) -#define IDirect3DResource8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) -#define IDirect3DResource8_GetPriority(p) (p)->lpVtbl->GetPriority(p) -#define IDirect3DResource8_PreLoad(p) (p)->lpVtbl->PreLoad(p) -#define IDirect3DResource8_GetType(p) (p)->lpVtbl->GetType(p) -#else -#define IDirect3DResource8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirect3DResource8_AddRef(p) (p)->AddRef() -#define IDirect3DResource8_Release(p) (p)->Release() -#define IDirect3DResource8_GetDevice(p,a) (p)->GetDevice(a) -#define IDirect3DResource8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) -#define IDirect3DResource8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) -#define IDirect3DResource8_FreePrivateData(p,a) (p)->FreePrivateData(a) -#define IDirect3DResource8_SetPriority(p,a) (p)->SetPriority(a) -#define IDirect3DResource8_GetPriority(p) (p)->GetPriority() -#define IDirect3DResource8_PreLoad(p) (p)->PreLoad() -#define IDirect3DResource8_GetType(p) (p)->GetType() -#endif - - - - -#undef INTERFACE -#define INTERFACE IDirect3DBaseTexture8 - -DECLARE_INTERFACE_(IDirect3DBaseTexture8, IDirect3DResource8) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirect3DResource8 methods ***/ - STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** 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; -}; - -typedef struct IDirect3DBaseTexture8 *LPDIRECT3DBASETEXTURE8, *PDIRECT3DBASETEXTURE8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirect3DBaseTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirect3DBaseTexture8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirect3DBaseTexture8_Release(p) (p)->lpVtbl->Release(p) -#define IDirect3DBaseTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) -#define IDirect3DBaseTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) -#define IDirect3DBaseTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) -#define IDirect3DBaseTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) -#define IDirect3DBaseTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) -#define IDirect3DBaseTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p) -#define IDirect3DBaseTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p) -#define IDirect3DBaseTexture8_GetType(p) (p)->lpVtbl->GetType(p) -#define IDirect3DBaseTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) -#define IDirect3DBaseTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p) -#define IDirect3DBaseTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) -#else -#define IDirect3DBaseTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirect3DBaseTexture8_AddRef(p) (p)->AddRef() -#define IDirect3DBaseTexture8_Release(p) (p)->Release() -#define IDirect3DBaseTexture8_GetDevice(p,a) (p)->GetDevice(a) -#define IDirect3DBaseTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) -#define IDirect3DBaseTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) -#define IDirect3DBaseTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a) -#define IDirect3DBaseTexture8_SetPriority(p,a) (p)->SetPriority(a) -#define IDirect3DBaseTexture8_GetPriority(p) (p)->GetPriority() -#define IDirect3DBaseTexture8_PreLoad(p) (p)->PreLoad() -#define IDirect3DBaseTexture8_GetType(p) (p)->GetType() -#define IDirect3DBaseTexture8_SetLOD(p,a) (p)->SetLOD(a) -#define IDirect3DBaseTexture8_GetLOD(p) (p)->GetLOD() -#define IDirect3DBaseTexture8_GetLevelCount(p) (p)->GetLevelCount() -#endif - - - - - -#undef INTERFACE -#define INTERFACE IDirect3DTexture8 - -DECLARE_INTERFACE_(IDirect3DTexture8, IDirect3DBaseTexture8) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirect3DBaseTexture8 methods ***/ - STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** 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(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC *pDesc) PURE; - STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level,IDirect3DSurface8** 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; -}; - -typedef struct IDirect3DTexture8 *LPDIRECT3DTEXTURE8, *PDIRECT3DTEXTURE8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirect3DTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirect3DTexture8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirect3DTexture8_Release(p) (p)->lpVtbl->Release(p) -#define IDirect3DTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) -#define IDirect3DTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) -#define IDirect3DTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) -#define IDirect3DTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) -#define IDirect3DTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) -#define IDirect3DTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p) -#define IDirect3DTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p) -#define IDirect3DTexture8_GetType(p) (p)->lpVtbl->GetType(p) -#define IDirect3DTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) -#define IDirect3DTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p) -#define IDirect3DTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) -#define IDirect3DTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b) -#define IDirect3DTexture8_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b) -#define IDirect3DTexture8_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d) -#define IDirect3DTexture8_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a) -#define IDirect3DTexture8_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a) -#else -#define IDirect3DTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirect3DTexture8_AddRef(p) (p)->AddRef() -#define IDirect3DTexture8_Release(p) (p)->Release() -#define IDirect3DTexture8_GetDevice(p,a) (p)->GetDevice(a) -#define IDirect3DTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) -#define IDirect3DTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) -#define IDirect3DTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a) -#define IDirect3DTexture8_SetPriority(p,a) (p)->SetPriority(a) -#define IDirect3DTexture8_GetPriority(p) (p)->GetPriority() -#define IDirect3DTexture8_PreLoad(p) (p)->PreLoad() -#define IDirect3DTexture8_GetType(p) (p)->GetType() -#define IDirect3DTexture8_SetLOD(p,a) (p)->SetLOD(a) -#define IDirect3DTexture8_GetLOD(p) (p)->GetLOD() -#define IDirect3DTexture8_GetLevelCount(p) (p)->GetLevelCount() -#define IDirect3DTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b) -#define IDirect3DTexture8_GetSurfaceLevel(p,a,b) (p)->GetSurfaceLevel(a,b) -#define IDirect3DTexture8_LockRect(p,a,b,c,d) (p)->LockRect(a,b,c,d) -#define IDirect3DTexture8_UnlockRect(p,a) (p)->UnlockRect(a) -#define IDirect3DTexture8_AddDirtyRect(p,a) (p)->AddDirtyRect(a) -#endif - - - - - -#undef INTERFACE -#define INTERFACE IDirect3DVolumeTexture8 - -DECLARE_INTERFACE_(IDirect3DVolumeTexture8, IDirect3DBaseTexture8) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirect3DBaseTexture8 methods ***/ - STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** 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(GetLevelDesc)(THIS_ UINT Level,D3DVOLUME_DESC *pDesc) PURE; - STDMETHOD(GetVolumeLevel)(THIS_ UINT Level,IDirect3DVolume8** 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; -}; - -typedef struct IDirect3DVolumeTexture8 *LPDIRECT3DVOLUMETEXTURE8, *PDIRECT3DVOLUMETEXTURE8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirect3DVolumeTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirect3DVolumeTexture8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirect3DVolumeTexture8_Release(p) (p)->lpVtbl->Release(p) -#define IDirect3DVolumeTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) -#define IDirect3DVolumeTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) -#define IDirect3DVolumeTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) -#define IDirect3DVolumeTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) -#define IDirect3DVolumeTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) -#define IDirect3DVolumeTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p) -#define IDirect3DVolumeTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p) -#define IDirect3DVolumeTexture8_GetType(p) (p)->lpVtbl->GetType(p) -#define IDirect3DVolumeTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) -#define IDirect3DVolumeTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p) -#define IDirect3DVolumeTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) -#define IDirect3DVolumeTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b) -#define IDirect3DVolumeTexture8_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b) -#define IDirect3DVolumeTexture8_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d) -#define IDirect3DVolumeTexture8_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a) -#define IDirect3DVolumeTexture8_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a) -#else -#define IDirect3DVolumeTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirect3DVolumeTexture8_AddRef(p) (p)->AddRef() -#define IDirect3DVolumeTexture8_Release(p) (p)->Release() -#define IDirect3DVolumeTexture8_GetDevice(p,a) (p)->GetDevice(a) -#define IDirect3DVolumeTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) -#define IDirect3DVolumeTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) -#define IDirect3DVolumeTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a) -#define IDirect3DVolumeTexture8_SetPriority(p,a) (p)->SetPriority(a) -#define IDirect3DVolumeTexture8_GetPriority(p) (p)->GetPriority() -#define IDirect3DVolumeTexture8_PreLoad(p) (p)->PreLoad() -#define IDirect3DVolumeTexture8_GetType(p) (p)->GetType() -#define IDirect3DVolumeTexture8_SetLOD(p,a) (p)->SetLOD(a) -#define IDirect3DVolumeTexture8_GetLOD(p) (p)->GetLOD() -#define IDirect3DVolumeTexture8_GetLevelCount(p) (p)->GetLevelCount() -#define IDirect3DVolumeTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b) -#define IDirect3DVolumeTexture8_GetVolumeLevel(p,a,b) (p)->GetVolumeLevel(a,b) -#define IDirect3DVolumeTexture8_LockBox(p,a,b,c,d) (p)->LockBox(a,b,c,d) -#define IDirect3DVolumeTexture8_UnlockBox(p,a) (p)->UnlockBox(a) -#define IDirect3DVolumeTexture8_AddDirtyBox(p,a) (p)->AddDirtyBox(a) -#endif - - - - - -#undef INTERFACE -#define INTERFACE IDirect3DCubeTexture8 - -DECLARE_INTERFACE_(IDirect3DCubeTexture8, IDirect3DBaseTexture8) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirect3DBaseTexture8 methods ***/ - STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** 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(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC *pDesc) PURE; - STDMETHOD(GetCubeMapSurface)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,IDirect3DSurface8** 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; -}; - -typedef struct IDirect3DCubeTexture8 *LPDIRECT3DCUBETEXTURE8, *PDIRECT3DCUBETEXTURE8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirect3DCubeTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirect3DCubeTexture8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirect3DCubeTexture8_Release(p) (p)->lpVtbl->Release(p) -#define IDirect3DCubeTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) -#define IDirect3DCubeTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) -#define IDirect3DCubeTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) -#define IDirect3DCubeTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) -#define IDirect3DCubeTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) -#define IDirect3DCubeTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p) -#define IDirect3DCubeTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p) -#define IDirect3DCubeTexture8_GetType(p) (p)->lpVtbl->GetType(p) -#define IDirect3DCubeTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) -#define IDirect3DCubeTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p) -#define IDirect3DCubeTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) -#define IDirect3DCubeTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b) -#define IDirect3DCubeTexture8_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c) -#define IDirect3DCubeTexture8_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e) -#define IDirect3DCubeTexture8_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b) -#define IDirect3DCubeTexture8_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b) -#else -#define IDirect3DCubeTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirect3DCubeTexture8_AddRef(p) (p)->AddRef() -#define IDirect3DCubeTexture8_Release(p) (p)->Release() -#define IDirect3DCubeTexture8_GetDevice(p,a) (p)->GetDevice(a) -#define IDirect3DCubeTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) -#define IDirect3DCubeTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) -#define IDirect3DCubeTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a) -#define IDirect3DCubeTexture8_SetPriority(p,a) (p)->SetPriority(a) -#define IDirect3DCubeTexture8_GetPriority(p) (p)->GetPriority() -#define IDirect3DCubeTexture8_PreLoad(p) (p)->PreLoad() -#define IDirect3DCubeTexture8_GetType(p) (p)->GetType() -#define IDirect3DCubeTexture8_SetLOD(p,a) (p)->SetLOD(a) -#define IDirect3DCubeTexture8_GetLOD(p) (p)->GetLOD() -#define IDirect3DCubeTexture8_GetLevelCount(p) (p)->GetLevelCount() -#define IDirect3DCubeTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b) -#define IDirect3DCubeTexture8_GetCubeMapSurface(p,a,b,c) (p)->GetCubeMapSurface(a,b,c) -#define IDirect3DCubeTexture8_LockRect(p,a,b,c,d,e) (p)->LockRect(a,b,c,d,e) -#define IDirect3DCubeTexture8_UnlockRect(p,a,b) (p)->UnlockRect(a,b) -#define IDirect3DCubeTexture8_AddDirtyRect(p,a,b) (p)->AddDirtyRect(a,b) -#endif - - - - -#undef INTERFACE -#define INTERFACE IDirect3DVertexBuffer8 - -DECLARE_INTERFACE_(IDirect3DVertexBuffer8, IDirect3DResource8) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirect3DResource8 methods ***/ - STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** 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,BYTE** ppbData,DWORD Flags) PURE; - STDMETHOD(Unlock)(THIS) PURE; - STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC *pDesc) PURE; -}; - -typedef struct IDirect3DVertexBuffer8 *LPDIRECT3DVERTEXBUFFER8, *PDIRECT3DVERTEXBUFFER8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirect3DVertexBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirect3DVertexBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirect3DVertexBuffer8_Release(p) (p)->lpVtbl->Release(p) -#define IDirect3DVertexBuffer8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) -#define IDirect3DVertexBuffer8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) -#define IDirect3DVertexBuffer8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) -#define IDirect3DVertexBuffer8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) -#define IDirect3DVertexBuffer8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) -#define IDirect3DVertexBuffer8_GetPriority(p) (p)->lpVtbl->GetPriority(p) -#define IDirect3DVertexBuffer8_PreLoad(p) (p)->lpVtbl->PreLoad(p) -#define IDirect3DVertexBuffer8_GetType(p) (p)->lpVtbl->GetType(p) -#define IDirect3DVertexBuffer8_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) -#define IDirect3DVertexBuffer8_Unlock(p) (p)->lpVtbl->Unlock(p) -#define IDirect3DVertexBuffer8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) -#else -#define IDirect3DVertexBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirect3DVertexBuffer8_AddRef(p) (p)->AddRef() -#define IDirect3DVertexBuffer8_Release(p) (p)->Release() -#define IDirect3DVertexBuffer8_GetDevice(p,a) (p)->GetDevice(a) -#define IDirect3DVertexBuffer8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) -#define IDirect3DVertexBuffer8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) -#define IDirect3DVertexBuffer8_FreePrivateData(p,a) (p)->FreePrivateData(a) -#define IDirect3DVertexBuffer8_SetPriority(p,a) (p)->SetPriority(a) -#define IDirect3DVertexBuffer8_GetPriority(p) (p)->GetPriority() -#define IDirect3DVertexBuffer8_PreLoad(p) (p)->PreLoad() -#define IDirect3DVertexBuffer8_GetType(p) (p)->GetType() -#define IDirect3DVertexBuffer8_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) -#define IDirect3DVertexBuffer8_Unlock(p) (p)->Unlock() -#define IDirect3DVertexBuffer8_GetDesc(p,a) (p)->GetDesc(a) -#endif - - - - -#undef INTERFACE -#define INTERFACE IDirect3DIndexBuffer8 - -DECLARE_INTERFACE_(IDirect3DIndexBuffer8, IDirect3DResource8) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirect3DResource8 methods ***/ - STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** 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,BYTE** ppbData,DWORD Flags) PURE; - STDMETHOD(Unlock)(THIS) PURE; - STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC *pDesc) PURE; -}; - -typedef struct IDirect3DIndexBuffer8 *LPDIRECT3DINDEXBUFFER8, *PDIRECT3DINDEXBUFFER8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirect3DIndexBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirect3DIndexBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirect3DIndexBuffer8_Release(p) (p)->lpVtbl->Release(p) -#define IDirect3DIndexBuffer8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) -#define IDirect3DIndexBuffer8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) -#define IDirect3DIndexBuffer8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) -#define IDirect3DIndexBuffer8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) -#define IDirect3DIndexBuffer8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) -#define IDirect3DIndexBuffer8_GetPriority(p) (p)->lpVtbl->GetPriority(p) -#define IDirect3DIndexBuffer8_PreLoad(p) (p)->lpVtbl->PreLoad(p) -#define IDirect3DIndexBuffer8_GetType(p) (p)->lpVtbl->GetType(p) -#define IDirect3DIndexBuffer8_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) -#define IDirect3DIndexBuffer8_Unlock(p) (p)->lpVtbl->Unlock(p) -#define IDirect3DIndexBuffer8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) -#else -#define IDirect3DIndexBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirect3DIndexBuffer8_AddRef(p) (p)->AddRef() -#define IDirect3DIndexBuffer8_Release(p) (p)->Release() -#define IDirect3DIndexBuffer8_GetDevice(p,a) (p)->GetDevice(a) -#define IDirect3DIndexBuffer8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) -#define IDirect3DIndexBuffer8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) -#define IDirect3DIndexBuffer8_FreePrivateData(p,a) (p)->FreePrivateData(a) -#define IDirect3DIndexBuffer8_SetPriority(p,a) (p)->SetPriority(a) -#define IDirect3DIndexBuffer8_GetPriority(p) (p)->GetPriority() -#define IDirect3DIndexBuffer8_PreLoad(p) (p)->PreLoad() -#define IDirect3DIndexBuffer8_GetType(p) (p)->GetType() -#define IDirect3DIndexBuffer8_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) -#define IDirect3DIndexBuffer8_Unlock(p) (p)->Unlock() -#define IDirect3DIndexBuffer8_GetDesc(p,a) (p)->GetDesc(a) -#endif - - - - -#undef INTERFACE -#define INTERFACE IDirect3DSurface8 - -DECLARE_INTERFACE_(IDirect3DSurface8, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirect3DSurface8 methods ***/ - STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** 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_ D3DSURFACE_DESC *pDesc) PURE; - STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT* pLockedRect,CONST RECT* pRect,DWORD Flags) PURE; - STDMETHOD(UnlockRect)(THIS) PURE; -}; - -typedef struct IDirect3DSurface8 *LPDIRECT3DSURFACE8, *PDIRECT3DSURFACE8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirect3DSurface8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirect3DSurface8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirect3DSurface8_Release(p) (p)->lpVtbl->Release(p) -#define IDirect3DSurface8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) -#define IDirect3DSurface8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) -#define IDirect3DSurface8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) -#define IDirect3DSurface8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) -#define IDirect3DSurface8_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b) -#define IDirect3DSurface8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) -#define IDirect3DSurface8_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c) -#define IDirect3DSurface8_UnlockRect(p) (p)->lpVtbl->UnlockRect(p) -#else -#define IDirect3DSurface8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirect3DSurface8_AddRef(p) (p)->AddRef() -#define IDirect3DSurface8_Release(p) (p)->Release() -#define IDirect3DSurface8_GetDevice(p,a) (p)->GetDevice(a) -#define IDirect3DSurface8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) -#define IDirect3DSurface8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) -#define IDirect3DSurface8_FreePrivateData(p,a) (p)->FreePrivateData(a) -#define IDirect3DSurface8_GetContainer(p,a,b) (p)->GetContainer(a,b) -#define IDirect3DSurface8_GetDesc(p,a) (p)->GetDesc(a) -#define IDirect3DSurface8_LockRect(p,a,b,c) (p)->LockRect(a,b,c) -#define IDirect3DSurface8_UnlockRect(p) (p)->UnlockRect() -#endif - - - - -#undef INTERFACE -#define INTERFACE IDirect3DVolume8 - -DECLARE_INTERFACE_(IDirect3DVolume8, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirect3DVolume8 methods ***/ - STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** 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; -}; - -typedef struct IDirect3DVolume8 *LPDIRECT3DVOLUME8, *PDIRECT3DVOLUME8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirect3DVolume8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirect3DVolume8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirect3DVolume8_Release(p) (p)->lpVtbl->Release(p) -#define IDirect3DVolume8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) -#define IDirect3DVolume8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) -#define IDirect3DVolume8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) -#define IDirect3DVolume8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) -#define IDirect3DVolume8_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b) -#define IDirect3DVolume8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) -#define IDirect3DVolume8_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c) -#define IDirect3DVolume8_UnlockBox(p) (p)->lpVtbl->UnlockBox(p) -#else -#define IDirect3DVolume8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirect3DVolume8_AddRef(p) (p)->AddRef() -#define IDirect3DVolume8_Release(p) (p)->Release() -#define IDirect3DVolume8_GetDevice(p,a) (p)->GetDevice(a) -#define IDirect3DVolume8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) -#define IDirect3DVolume8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) -#define IDirect3DVolume8_FreePrivateData(p,a) (p)->FreePrivateData(a) -#define IDirect3DVolume8_GetContainer(p,a,b) (p)->GetContainer(a,b) -#define IDirect3DVolume8_GetDesc(p,a) (p)->GetDesc(a) -#define IDirect3DVolume8_LockBox(p,a,b,c) (p)->LockBox(a,b,c) -#define IDirect3DVolume8_UnlockBox(p) (p)->UnlockBox() -#endif - -/**************************************************************************** - * Flags for SetPrivateData method on all D3D8 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 D3D8 object is freed. - ****************************************************************************/ -#define D3DSPD_IUNKNOWN 0x00000001L - -/**************************************************************************** - * - * Parameter for IDirect3D8 Enum and GetCaps8 functions to get the info for - * the current mode only. - * - ****************************************************************************/ - -#define D3DCURRENT_DISPLAY_MODE 0x00EFFFFFL - -/**************************************************************************** - * - * Flags for IDirect3D8::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 - - -/**************************************************************************** - * - * Parameter for IDirect3D8::CreateDevice's iAdapter - * - ****************************************************************************/ - -#define D3DADAPTER_DEFAULT 0 - -/**************************************************************************** - * - * Flags for IDirect3D8::EnumAdapters - * - ****************************************************************************/ - -#define D3DENUM_NO_WHQL_LEVEL 0x00000002L - -/**************************************************************************** - * - * Maximum number of back-buffers supported in DX8 - * - ****************************************************************************/ - -#define D3DPRESENT_BACK_BUFFERS_MAX 3L - -/**************************************************************************** - * - * Flags for IDirect3DDevice8::SetGammaRamp - * - ****************************************************************************/ - -#define D3DSGR_NO_CALIBRATION 0x00000000L -#define D3DSGR_CALIBRATE 0x00000001L - -/**************************************************************************** - * - * Flags for IDirect3DDevice8::SetCursorPosition - * - ****************************************************************************/ - -#define D3DCURSOR_IMMEDIATE_UPDATE 0x00000001L - -/**************************************************************************** - * - * 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 ) - -/* - * 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) - -#ifdef __cplusplus -}; -#endif - -#endif /* (DIRECT3D_VERSION >= 0x0800) */ -#endif /* _D3D_H_ */ - diff --git a/sdk/dx8sdk/Include/d3d8caps.h b/sdk/dx8sdk/Include/d3d8caps.h deleted file mode 100644 index 6af8e6c4..00000000 --- a/sdk/dx8sdk/Include/d3d8caps.h +++ /dev/null @@ -1,364 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: d3d8caps.h - * Content: Direct3D capabilities include file - * - ***************************************************************************/ - -#ifndef _D3D8CAPS_H -#define _D3D8CAPS_H - -#ifndef DIRECT3D_VERSION -#define DIRECT3D_VERSION 0x0800 -#endif //DIRECT3D_VERSION - -// include this file content only if compiling for DX8 interfaces -#if(DIRECT3D_VERSION >= 0x0800) - -#if defined(_X86_) || defined(_IA64_) -#pragma pack(4) -#endif - -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; - -// -// BIT DEFINES FOR D3DCAPS8 DWORD MEMBERS -// - -// -// Caps -// -#define D3DCAPS_READ_SCANLINE 0x00020000L - -// -// Caps2 -// -#define D3DCAPS2_NO2DDURING3DSCENE 0x00000002L -#define D3DCAPS2_FULLSCREENGAMMA 0x00020000L -#define D3DCAPS2_CANRENDERWINDOWED 0x00080000L -#define D3DCAPS2_CANCALIBRATEGAMMA 0x00100000L -#define D3DCAPS2_RESERVED 0x02000000L -#define D3DCAPS2_CANMANAGERESOURCE 0x10000000L -#define D3DCAPS2_DYNAMICTEXTURES 0x20000000L - -// -// Caps3 -// -#define D3DCAPS3_RESERVED 0x8000001fL - -// Indicates that the device can respect the ALPHABLENDENABLE render state -// when fullscreen while using the FLIP or DISCARD swap effect. -// COPY and COPYVSYNC swap effects work whether or not this flag is set. -#define D3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD 0x00000020L - -// -// PresentationIntervals -// -#define D3DPRESENT_INTERVAL_DEFAULT 0x00000000L -#define D3DPRESENT_INTERVAL_ONE 0x00000001L -#define D3DPRESENT_INTERVAL_TWO 0x00000002L -#define D3DPRESENT_INTERVAL_THREE 0x00000004L -#define D3DPRESENT_INTERVAL_FOUR 0x00000008L -#define D3DPRESENT_INTERVAL_IMMEDIATE 0x80000000L - -// -// CursorCaps -// -// Driver supports HW color cursor in at least hi-res modes(height >=400) -#define D3DCURSORCAPS_COLOR 0x00000001L -// Driver supports HW cursor also in low-res modes(height < 400) -#define D3DCURSORCAPS_LOWRES 0x00000002L - -// -// DevCaps -// -#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 */ -#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 */ -#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*/ -#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 */ -#define D3DDEVCAPS_PUREDEVICE 0x00100000L /* Device supports D3DCREATE_PUREDEVICE */ -#define D3DDEVCAPS_QUINTICRTPATCHES 0x00200000L /* Device supports quintic Beziers and BSplines */ -#define D3DDEVCAPS_RTPATCHES 0x00400000L /* Device supports Rect and Tri patches */ -#define D3DDEVCAPS_RTPATCHHANDLEZERO 0x00800000L /* Indicates that RT Patches may be drawn efficiently using handle 0 */ -#define D3DDEVCAPS_NPATCHES 0x01000000L /* Device supports N-Patches */ - -// -// PrimitiveMiscCaps -// -#define D3DPMISCCAPS_MASKZ 0x00000002L -#define D3DPMISCCAPS_LINEPATTERNREP 0x00000004L -#define D3DPMISCCAPS_CULLNONE 0x00000010L -#define D3DPMISCCAPS_CULLCW 0x00000020L -#define D3DPMISCCAPS_CULLCCW 0x00000040L -#define D3DPMISCCAPS_COLORWRITEENABLE 0x00000080L -#define D3DPMISCCAPS_CLIPPLANESCALEDPOINTS 0x00000100L /* Device correctly clips scaled points to clip planes */ -#define D3DPMISCCAPS_CLIPTLVERTS 0x00000200L /* device will clip post-transformed vertex primitives */ -#define D3DPMISCCAPS_TSSARGTEMP 0x00000400L /* device supports D3DTA_TEMP for temporary register */ -#define D3DPMISCCAPS_BLENDOP 0x00000800L /* device supports D3DRS_BLENDOP */ -#define D3DPMISCCAPS_NULLREFERENCE 0x00001000L /* Reference Device that doesnt render */ - -// -// LineCaps -// -#define D3DLINECAPS_TEXTURE 0x00000001L -#define D3DLINECAPS_ZTEST 0x00000002L -#define D3DLINECAPS_BLEND 0x00000004L -#define D3DLINECAPS_ALPHACMP 0x00000008L -#define D3DLINECAPS_FOG 0x00000010L - -// -// RasterCaps -// -#define D3DPRASTERCAPS_DITHER 0x00000001L -#define D3DPRASTERCAPS_PAT 0x00000008L -#define D3DPRASTERCAPS_ZTEST 0x00000010L -#define D3DPRASTERCAPS_FOGVERTEX 0x00000080L -#define D3DPRASTERCAPS_FOGTABLE 0x00000100L -#define D3DPRASTERCAPS_ANTIALIASEDGES 0x00001000L -#define D3DPRASTERCAPS_MIPMAPLODBIAS 0x00002000L -#define D3DPRASTERCAPS_ZBIAS 0x00004000L -#define D3DPRASTERCAPS_ZBUFFERLESSHSR 0x00008000L -#define D3DPRASTERCAPS_FOGRANGE 0x00010000L -#define D3DPRASTERCAPS_ANISOTROPY 0x00020000L -#define D3DPRASTERCAPS_WBUFFER 0x00040000L -#define D3DPRASTERCAPS_WFOG 0x00100000L -#define D3DPRASTERCAPS_ZFOG 0x00200000L -#define D3DPRASTERCAPS_COLORPERSPECTIVE 0x00400000L /* Device iterates colors perspective correct */ -#define D3DPRASTERCAPS_STRETCHBLTMULTISAMPLE 0x00800000L - -// -// ZCmpCaps, AlphaCmpCaps -// -#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 - -// -// SourceBlendCaps, DestBlendCaps -// -#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 - -// -// ShadeCaps -// -#define D3DPSHADECAPS_COLORGOURAUDRGB 0x00000008L -#define D3DPSHADECAPS_SPECULARGOURAUDRGB 0x00000200L -#define D3DPSHADECAPS_ALPHAGOURAUDBLEND 0x00004000L -#define D3DPSHADECAPS_FOGGOURAUD 0x00080000L - -// -// TextureCaps -// -#define D3DPTEXTURECAPS_PERSPECTIVE 0x00000001L /* Perspective-correct texturing is supported */ -#define D3DPTEXTURECAPS_POW2 0x00000002L /* Power-of-2 texture dimensions are required - applies to non-Cube/Volume textures only. */ -#define D3DPTEXTURECAPS_ALPHA 0x00000004L /* Alpha in texture pixels is supported */ -#define D3DPTEXTURECAPS_SQUAREONLY 0x00000020L /* Only square textures are supported */ -#define D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE 0x00000040L /* Texture indices are not scaled by the texture size prior to interpolation */ -#define D3DPTEXTURECAPS_ALPHAPALETTE 0x00000080L /* Device can draw alpha from texture palettes */ -// 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 -#define D3DPTEXTURECAPS_PROJECTED 0x00000400L /* Device can do D3DTTFF_PROJECTED */ -#define D3DPTEXTURECAPS_CUBEMAP 0x00000800L /* Device can do cubemap textures */ -#define D3DPTEXTURECAPS_VOLUMEMAP 0x00002000L /* Device can do volume textures */ -#define D3DPTEXTURECAPS_MIPMAP 0x00004000L /* Device can do mipmapped textures */ -#define D3DPTEXTURECAPS_MIPVOLUMEMAP 0x00008000L /* Device can do mipmapped volume textures */ -#define D3DPTEXTURECAPS_MIPCUBEMAP 0x00010000L /* Device can do mipmapped cube maps */ -#define D3DPTEXTURECAPS_CUBEMAP_POW2 0x00020000L /* Device requires that cubemaps be power-of-2 dimension */ -#define D3DPTEXTURECAPS_VOLUMEMAP_POW2 0x00040000L /* Device requires that volume maps be power-of-2 dimension */ - -// -// TextureFilterCaps -// -#define D3DPTFILTERCAPS_MINFPOINT 0x00000100L /* Min Filter */ -#define D3DPTFILTERCAPS_MINFLINEAR 0x00000200L -#define D3DPTFILTERCAPS_MINFANISOTROPIC 0x00000400L -#define D3DPTFILTERCAPS_MIPFPOINT 0x00010000L /* Mip Filter */ -#define D3DPTFILTERCAPS_MIPFLINEAR 0x00020000L -#define D3DPTFILTERCAPS_MAGFPOINT 0x01000000L /* Mag Filter */ -#define D3DPTFILTERCAPS_MAGFLINEAR 0x02000000L -#define D3DPTFILTERCAPS_MAGFANISOTROPIC 0x04000000L -#define D3DPTFILTERCAPS_MAGFAFLATCUBIC 0x08000000L -#define D3DPTFILTERCAPS_MAGFGAUSSIANCUBIC 0x10000000L - -// -// TextureAddressCaps -// -#define D3DPTADDRESSCAPS_WRAP 0x00000001L -#define D3DPTADDRESSCAPS_MIRROR 0x00000002L -#define D3DPTADDRESSCAPS_CLAMP 0x00000004L -#define D3DPTADDRESSCAPS_BORDER 0x00000008L -#define D3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010L -#define D3DPTADDRESSCAPS_MIRRORONCE 0x00000020L - -// -// StencilCaps -// -#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 - -// -// TextureOpCaps -// -#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 -#define D3DTEXOPCAPS_MULTIPLYADD 0x01000000L -#define D3DTEXOPCAPS_LERP 0x02000000L - -// -// FVFCaps -// -#define D3DFVFCAPS_TEXCOORDCOUNTMASK 0x0000ffffL /* mask for texture coordinate count field */ -#define D3DFVFCAPS_DONOTSTRIPELEMENTS 0x00080000L /* Device prefers that vertex elements not be stripped */ -#define D3DFVFCAPS_PSIZE 0x00100000L /* Device can receive point size */ - -// -// VertexProcessingCaps -// -#define D3DVTXPCAPS_TEXGEN 0x00000001L /* device can do texgen */ -#define D3DVTXPCAPS_MATERIALSOURCE7 0x00000002L /* device can do DX7-level colormaterialsource ops */ -#define D3DVTXPCAPS_DIRECTIONALLIGHTS 0x00000008L /* device can do directional lights */ -#define D3DVTXPCAPS_POSITIONALLIGHTS 0x00000010L /* device can do positional lights (includes point and spot) */ -#define D3DVTXPCAPS_LOCALVIEWER 0x00000020L /* device can do local viewer */ -#define D3DVTXPCAPS_TWEENING 0x00000040L /* device can do vertex tweening */ -#define D3DVTXPCAPS_NO_VSDT_UBYTE4 0x00000080L /* device does not support D3DVSDT_UBYTE4 */ - -#pragma pack() - -#endif /* (DIRECT3D_VERSION >= 0x0800) */ -#endif /* _D3D8CAPS_H_ */ - diff --git a/sdk/dx8sdk/Include/d3d8types.h b/sdk/dx8sdk/Include/d3d8types.h deleted file mode 100644 index 5d622af4..00000000 --- a/sdk/dx8sdk/Include/d3d8types.h +++ /dev/null @@ -1,1684 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: d3d8types.h - * Content: Direct3D capabilities include file - * - ***************************************************************************/ - -#ifndef _D3D8TYPES_H_ -#define _D3D8TYPES_H_ - -#ifndef DIRECT3D_VERSION -#define DIRECT3D_VERSION 0x0800 -#endif //DIRECT3D_VERSION - -// include this file content only if compiling for DX8 interfaces -#if(DIRECT3D_VERSION >= 0x0800) - -#include - -#if _MSC_VER >= 1200 -#pragma warning(push) -#endif -#pragma warning(disable:4201) // anonymous unions warning -#if defined(_X86_) || defined(_IA64_) -#pragma pack(4) -#endif - -// D3DCOLOR is equivalent to D3DFMT_A8R8G8B8 -#ifndef D3DCOLOR_DEFINED -typedef DWORD D3DCOLOR; -#define D3DCOLOR_DEFINED -#endif - -// maps unsigned 8 bits/channel to D3DCOLOR -#define D3DCOLOR_ARGB(a,r,g,b) \ - ((D3DCOLOR)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff))) -#define D3DCOLOR_RGBA(r,g,b,a) D3DCOLOR_ARGB(a,r,g,b) -#define D3DCOLOR_XRGB(r,g,b) D3DCOLOR_ARGB(0xff,r,g,b) - -// maps floating point channels (0.f to 1.f range) to D3DCOLOR -#define D3DCOLOR_COLORVALUE(r,g,b,a) \ - D3DCOLOR_RGBA((DWORD)((r)*255.f),(DWORD)((g)*255.f),(DWORD)((b)*255.f),(DWORD)((a)*255.f)) - - -#ifndef D3DVECTOR_DEFINED -typedef struct _D3DVECTOR { - float x; - float y; - float z; -} D3DVECTOR; -#define D3DVECTOR_DEFINED -#endif - -#ifndef D3DCOLORVALUE_DEFINED -typedef struct _D3DCOLORVALUE { - float r; - float g; - float b; - float a; -} D3DCOLORVALUE; -#define D3DCOLORVALUE_DEFINED -#endif - -#ifndef D3DRECT_DEFINED -typedef struct _D3DRECT { - LONG x1; - LONG y1; - LONG x2; - LONG y2; -} D3DRECT; -#define D3DRECT_DEFINED -#endif - -#ifndef D3DMATRIX_DEFINED -typedef struct _D3DMATRIX { - 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]; - }; -} D3DMATRIX; -#define D3DMATRIX_DEFINED -#endif - -typedef struct _D3DVIEWPORT8 { - DWORD X; - DWORD Y; /* Viewport Top left */ - DWORD Width; - DWORD Height; /* Viewport Dimensions */ - float MinZ; /* Min/max of clip Volume */ - float MaxZ; -} D3DVIEWPORT8; - -/* - * Values for clip fields. - */ - -// Max number of user clipping planes, supported in D3D. -#define D3DMAXUSERCLIPPLANES 32 - -// These bits could be ORed together to use with D3DRS_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) - -// The following bits are used in the ClipUnion and ClipIntersection -// members of the D3DCLIPSTATUS8 -// - -#define D3DCS_LEFT 0x00000001L -#define D3DCS_RIGHT 0x00000002L -#define D3DCS_TOP 0x00000004L -#define D3DCS_BOTTOM 0x00000008L -#define D3DCS_FRONT 0x00000010L -#define D3DCS_BACK 0x00000020L -#define D3DCS_PLANE0 0x00000040L -#define D3DCS_PLANE1 0x00000080L -#define D3DCS_PLANE2 0x00000100L -#define D3DCS_PLANE3 0x00000200L -#define D3DCS_PLANE4 0x00000400L -#define D3DCS_PLANE5 0x00000800L - -#define D3DCS_ALL (D3DCS_LEFT | \ - D3DCS_RIGHT | \ - D3DCS_TOP | \ - D3DCS_BOTTOM | \ - D3DCS_FRONT | \ - D3DCS_BACK | \ - D3DCS_PLANE0 | \ - D3DCS_PLANE1 | \ - D3DCS_PLANE2 | \ - D3DCS_PLANE3 | \ - D3DCS_PLANE4 | \ - D3DCS_PLANE5) - -typedef struct _D3DCLIPSTATUS8 { - DWORD ClipUnion; - DWORD ClipIntersection; -} D3DCLIPSTATUS8; - -typedef struct _D3DMATERIAL8 { - D3DCOLORVALUE Diffuse; /* Diffuse color RGBA */ - D3DCOLORVALUE Ambient; /* Ambient color RGB */ - D3DCOLORVALUE Specular; /* Specular 'shininess' */ - D3DCOLORVALUE Emissive; /* Emissive color RGB */ - float Power; /* Sharpness if specular highlight */ -} D3DMATERIAL8; - -typedef enum _D3DLIGHTTYPE { - D3DLIGHT_POINT = 1, - D3DLIGHT_SPOT = 2, - D3DLIGHT_DIRECTIONAL = 3, - D3DLIGHT_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DLIGHTTYPE; - -typedef struct _D3DLIGHT8 { - D3DLIGHTTYPE Type; /* Type of light source */ - D3DCOLORVALUE Diffuse; /* Diffuse color of light */ - D3DCOLORVALUE Specular; /* Specular color of light */ - D3DCOLORVALUE Ambient; /* Ambient color of light */ - D3DVECTOR Position; /* Position in world space */ - D3DVECTOR Direction; /* Direction in world space */ - float Range; /* Cutoff range */ - float Falloff; /* Falloff */ - float Attenuation0; /* Constant attenuation */ - float Attenuation1; /* Linear attenuation */ - float Attenuation2; /* Quadratic attenuation */ - float Theta; /* Inner angle of spotlight cone */ - float Phi; /* Outer angle of spotlight cone */ -} D3DLIGHT8; - -/* - * Options for clearing - */ -#define D3DCLEAR_TARGET 0x00000001l /* Clear target surface */ -#define D3DCLEAR_ZBUFFER 0x00000002l /* Clear target z buffer */ -#define D3DCLEAR_STENCIL 0x00000004l /* Clear stencil planes */ - -/* - * The following defines the rendering states - */ - -typedef enum _D3DSHADEMODE { - D3DSHADE_FLAT = 1, - D3DSHADE_GOURAUD = 2, - D3DSHADE_PHONG = 3, - D3DSHADE_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DSHADEMODE; - -typedef enum _D3DFILLMODE { - D3DFILL_POINT = 1, - D3DFILL_WIREFRAME = 2, - D3DFILL_SOLID = 3, - D3DFILL_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DFILLMODE; - -typedef struct _D3DLINEPATTERN { - WORD wRepeatFactor; - WORD wLinePattern; -} D3DLINEPATTERN; - -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, - D3DBLEND_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DBLEND; - -typedef enum _D3DBLENDOP { - D3DBLENDOP_ADD = 1, - D3DBLENDOP_SUBTRACT = 2, - D3DBLENDOP_REVSUBTRACT = 3, - D3DBLENDOP_MIN = 4, - D3DBLENDOP_MAX = 5, - D3DBLENDOP_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DBLENDOP; - -typedef enum _D3DTEXTUREADDRESS { - D3DTADDRESS_WRAP = 1, - D3DTADDRESS_MIRROR = 2, - D3DTADDRESS_CLAMP = 3, - D3DTADDRESS_BORDER = 4, - D3DTADDRESS_MIRRORONCE = 5, - D3DTADDRESS_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DTEXTUREADDRESS; - -typedef enum _D3DCULL { - D3DCULL_NONE = 1, - D3DCULL_CW = 2, - D3DCULL_CCW = 3, - D3DCULL_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} 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, - D3DCMP_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DCMPFUNC; - -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; - -typedef enum _D3DFOGMODE { - D3DFOG_NONE = 0, - D3DFOG_EXP = 1, - D3DFOG_EXP2 = 2, - D3DFOG_LINEAR = 3, - D3DFOG_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DFOGMODE; - -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; - -// 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; - -typedef enum _D3DTRANSFORMSTATETYPE { - D3DTS_VIEW = 2, - D3DTS_PROJECTION = 3, - D3DTS_TEXTURE0 = 16, - D3DTS_TEXTURE1 = 17, - D3DTS_TEXTURE2 = 18, - D3DTS_TEXTURE3 = 19, - D3DTS_TEXTURE4 = 20, - D3DTS_TEXTURE5 = 21, - D3DTS_TEXTURE6 = 22, - D3DTS_TEXTURE7 = 23, - D3DTS_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DTRANSFORMSTATETYPE; - -#define D3DTS_WORLDMATRIX(index) (D3DTRANSFORMSTATETYPE)(index + 256) -#define D3DTS_WORLD D3DTS_WORLDMATRIX(0) -#define D3DTS_WORLD1 D3DTS_WORLDMATRIX(1) -#define D3DTS_WORLD2 D3DTS_WORLDMATRIX(2) -#define D3DTS_WORLD3 D3DTS_WORLDMATRIX(3) - -typedef enum _D3DRENDERSTATETYPE { - D3DRS_ZENABLE = 7, /* D3DZBUFFERTYPE (or TRUE/FALSE for legacy) */ - D3DRS_FILLMODE = 8, /* D3DFILLMODE */ - D3DRS_SHADEMODE = 9, /* D3DSHADEMODE */ - D3DRS_LINEPATTERN = 10, /* D3DLINEPATTERN */ - D3DRS_ZWRITEENABLE = 14, /* TRUE to enable z writes */ - D3DRS_ALPHATESTENABLE = 15, /* TRUE to enable alpha tests */ - D3DRS_LASTPIXEL = 16, /* TRUE for last-pixel on lines */ - D3DRS_SRCBLEND = 19, /* D3DBLEND */ - D3DRS_DESTBLEND = 20, /* D3DBLEND */ - D3DRS_CULLMODE = 22, /* D3DCULL */ - D3DRS_ZFUNC = 23, /* D3DCMPFUNC */ - D3DRS_ALPHAREF = 24, /* D3DFIXED */ - D3DRS_ALPHAFUNC = 25, /* D3DCMPFUNC */ - D3DRS_DITHERENABLE = 26, /* TRUE to enable dithering */ - D3DRS_ALPHABLENDENABLE = 27, /* TRUE to enable alpha blending */ - D3DRS_FOGENABLE = 28, /* TRUE to enable fog blending */ - D3DRS_SPECULARENABLE = 29, /* TRUE to enable specular */ - D3DRS_ZVISIBLE = 30, /* TRUE to enable z checking */ - D3DRS_FOGCOLOR = 34, /* D3DCOLOR */ - D3DRS_FOGTABLEMODE = 35, /* D3DFOGMODE */ - D3DRS_FOGSTART = 36, /* Fog start (for both vertex and pixel fog) */ - D3DRS_FOGEND = 37, /* Fog end */ - D3DRS_FOGDENSITY = 38, /* Fog density */ - D3DRS_EDGEANTIALIAS = 40, /* TRUE to enable edge antialiasing */ - D3DRS_ZBIAS = 47, /* LONG Z bias */ - D3DRS_RANGEFOGENABLE = 48, /* Enables range-based fog */ - D3DRS_STENCILENABLE = 52, /* BOOL enable/disable stenciling */ - D3DRS_STENCILFAIL = 53, /* D3DSTENCILOP to do if stencil test fails */ - D3DRS_STENCILZFAIL = 54, /* D3DSTENCILOP to do if stencil test passes and Z test fails */ - D3DRS_STENCILPASS = 55, /* D3DSTENCILOP to do if both stencil and Z tests pass */ - D3DRS_STENCILFUNC = 56, /* D3DCMPFUNC fn. Stencil Test passes if ((ref & mask) stencilfn (stencil & mask)) is true */ - D3DRS_STENCILREF = 57, /* Reference value used in stencil test */ - D3DRS_STENCILMASK = 58, /* Mask value used in stencil test */ - D3DRS_STENCILWRITEMASK = 59, /* Write mask applied to values written to stencil buffer */ - D3DRS_TEXTUREFACTOR = 60, /* D3DCOLOR used for multi-texture blend */ - D3DRS_WRAP0 = 128, /* wrap for 1st texture coord. set */ - D3DRS_WRAP1 = 129, /* wrap for 2nd texture coord. set */ - D3DRS_WRAP2 = 130, /* wrap for 3rd texture coord. set */ - D3DRS_WRAP3 = 131, /* wrap for 4th texture coord. set */ - D3DRS_WRAP4 = 132, /* wrap for 5th texture coord. set */ - D3DRS_WRAP5 = 133, /* wrap for 6th texture coord. set */ - D3DRS_WRAP6 = 134, /* wrap for 7th texture coord. set */ - D3DRS_WRAP7 = 135, /* wrap for 8th texture coord. set */ - D3DRS_CLIPPING = 136, - D3DRS_LIGHTING = 137, - D3DRS_AMBIENT = 139, - D3DRS_FOGVERTEXMODE = 140, - D3DRS_COLORVERTEX = 141, - D3DRS_LOCALVIEWER = 142, - D3DRS_NORMALIZENORMALS = 143, - D3DRS_DIFFUSEMATERIALSOURCE = 145, - D3DRS_SPECULARMATERIALSOURCE = 146, - D3DRS_AMBIENTMATERIALSOURCE = 147, - D3DRS_EMISSIVEMATERIALSOURCE = 148, - D3DRS_VERTEXBLEND = 151, - D3DRS_CLIPPLANEENABLE = 152, - D3DRS_SOFTWAREVERTEXPROCESSING = 153, - D3DRS_POINTSIZE = 154, /* float point size */ - D3DRS_POINTSIZE_MIN = 155, /* float point size min threshold */ - D3DRS_POINTSPRITEENABLE = 156, /* BOOL point texture coord control */ - D3DRS_POINTSCALEENABLE = 157, /* BOOL point size scale enable */ - D3DRS_POINTSCALE_A = 158, /* float point attenuation A value */ - D3DRS_POINTSCALE_B = 159, /* float point attenuation B value */ - D3DRS_POINTSCALE_C = 160, /* float point attenuation C value */ - D3DRS_MULTISAMPLEANTIALIAS = 161, // BOOL - set to do FSAA with multisample buffer - D3DRS_MULTISAMPLEMASK = 162, // DWORD - per-sample enable/disable - D3DRS_PATCHEDGESTYLE = 163, // Sets whether patch edges will use float style tessellation - D3DRS_PATCHSEGMENTS = 164, // Number of segments per edge when drawing patches - D3DRS_DEBUGMONITORTOKEN = 165, // DEBUG ONLY - token to debug monitor - D3DRS_POINTSIZE_MAX = 166, /* float point size max threshold */ - D3DRS_INDEXEDVERTEXBLENDENABLE = 167, - D3DRS_COLORWRITEENABLE = 168, // per-channel write enable - D3DRS_TWEENFACTOR = 170, // float tween factor - D3DRS_BLENDOP = 171, // D3DBLENDOP setting - D3DRS_POSITIONORDER = 172, // NPatch position interpolation order. D3DORDER_LINEAR or D3DORDER_CUBIC (default) - D3DRS_NORMALORDER = 173, // NPatch normal interpolation order. D3DORDER_LINEAR (default) or D3DORDER_QUADRATIC - - D3DRS_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DRENDERSTATETYPE; - -// 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; - -// 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 -#define D3DWRAP_W 0x00000004L - -/* 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 // same as D3DWRAP_W -#define D3DWRAPCOORD_3 0x00000008L - -/* Flags to construct D3DRS_COLORWRITEENABLE */ -#define D3DCOLORWRITEENABLE_RED (1L<<0) -#define D3DCOLORWRITEENABLE_GREEN (1L<<1) -#define D3DCOLORWRITEENABLE_BLUE (1L<<2) -#define D3DCOLORWRITEENABLE_ALPHA (1L<<3) - -/* - * 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, /* float (bump mapping matrix) */ - D3DTSS_BUMPENVMAT01 = 8, /* float (bump mapping matrix) */ - D3DTSS_BUMPENVMAT10 = 9, /* float (bump mapping matrix) */ - D3DTSS_BUMPENVMAT11 = 10, /* float (bump mapping matrix) */ - D3DTSS_TEXCOORDINDEX = 11, /* identifies which set of texture coordinates index this texture */ - D3DTSS_ADDRESSU = 13, /* D3DTEXTUREADDRESS for U coordinate */ - D3DTSS_ADDRESSV = 14, /* D3DTEXTUREADDRESS for V coordinate */ - D3DTSS_BORDERCOLOR = 15, /* D3DCOLOR */ - D3DTSS_MAGFILTER = 16, /* D3DTEXTUREFILTER filter to use for magnification */ - D3DTSS_MINFILTER = 17, /* D3DTEXTUREFILTER filter to use for minification */ - D3DTSS_MIPFILTER = 18, /* D3DTEXTUREFILTER filter to use between mipmaps during minification */ - D3DTSS_MIPMAPLODBIAS = 19, /* float 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, /* float scale for bump map luminance */ - D3DTSS_BUMPENVLOFFSET = 23, /* float offset for bump map luminance */ - D3DTSS_TEXTURETRANSFORMFLAGS = 24, /* D3DTEXTURETRANSFORMFLAGS controls texture transform */ - D3DTSS_ADDRESSW = 25, /* D3DTEXTUREADDRESS for W coordinate */ - D3DTSS_COLORARG0 = 26, /* D3DTA_* third arg for triadic ops */ - D3DTSS_ALPHAARG0 = 27, /* D3DTA_* third arg for triadic ops */ - D3DTSS_RESULTARG = 28, /* D3DTA_* arg for result (CURRENT or TEMP) */ - D3DTSS_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DTEXTURESTAGESTATETYPE; - -// 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 - -/* - * Enumerations for COLOROP and ALPHAOP texture blending operations set in - * texture processing stage controls in D3DTSS. - */ -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 D3DRS_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, - - // Triadic ops - D3DTOP_MULTIPLYADD = 25, // Arg0 + Arg1*Arg2 - D3DTOP_LERP = 26, // (Arg0)*Arg1 + (1-Arg0)*Arg2 - - D3DTOP_FORCE_DWORD = 0x7fffffff, -} D3DTEXTUREOP; - -/* - * Values for COLORARG0,1,2, ALPHAARG0,1,2, and RESULTARG 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 (read only) -#define D3DTA_CURRENT 0x00000001 // select stage destination register (read/write) -#define D3DTA_TEXTURE 0x00000002 // select texture color (read only) -#define D3DTA_TFACTOR 0x00000003 // select D3DRS_TEXTUREFACTOR (read only) -#define D3DTA_SPECULAR 0x00000004 // select specular color (read only) -#define D3DTA_TEMP 0x00000005 // select temporary register color (read/write) -#define D3DTA_COMPLEMENT 0x00000010 // take 1.0 - x (read modifier) -#define D3DTA_ALPHAREPLICATE 0x00000020 // replicate alpha to color components (read modifier) - -// -// Values for D3DTSS_***FILTER texture stage states -// -typedef enum _D3DTEXTUREFILTERTYPE -{ - D3DTEXF_NONE = 0, // filtering disabled (valid for mip filter only) - D3DTEXF_POINT = 1, // nearest - D3DTEXF_LINEAR = 2, // linear interpolation - D3DTEXF_ANISOTROPIC = 3, // anisotropic - D3DTEXF_FLATCUBIC = 4, // cubic - D3DTEXF_GAUSSIANCUBIC = 5, // different cubic kernel - D3DTEXF_FORCE_DWORD = 0x7fffffff, // force 32-bit size enum -} D3DTEXTUREFILTERTYPE; - -/* Bits for Flags in ProcessVertices call */ - -#define D3DPV_DONOTCOPYDATA (1 << 0) - -//------------------------------------------------------------------- - -// Flexible vertex format bits -// -#define D3DFVF_RESERVED0 0x001 -#define D3DFVF_POSITION_MASK 0x00E -#define D3DFVF_XYZ 0x002 -#define D3DFVF_XYZRHW 0x004 -#define D3DFVF_XYZB1 0x006 -#define D3DFVF_XYZB2 0x008 -#define D3DFVF_XYZB3 0x00a -#define D3DFVF_XYZB4 0x00c -#define D3DFVF_XYZB5 0x00e - -#define D3DFVF_NORMAL 0x010 -#define D3DFVF_PSIZE 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_LASTBETA_UBYTE4 0x1000 - -#define D3DFVF_RESERVED2 0xE000 // 4 reserved bits - -//--------------------------------------------------------------------- -// Vertex Shaders -// - -/* - -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. - -*/ - -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; - -#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 - -// 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 - -// assignments of vertex input registers for fixed function vertex shader -// -#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 - -// Maximum supported number of texture coordinate sets -#define D3DDP_MAXTEXCOORD 8 - - -// -// Instruction Token Bit Definitions -// -#define D3DSI_OPCODE_MASK 0x0000FFFF - -typedef enum _D3DSHADER_INSTRUCTION_OPCODE_TYPE -{ - D3DSIO_NOP = 0, // PS/VS - D3DSIO_MOV , // PS/VS - D3DSIO_ADD , // PS/VS - D3DSIO_SUB , // PS - D3DSIO_MAD , // PS/VS - D3DSIO_MUL , // PS/VS - D3DSIO_RCP , // VS - D3DSIO_RSQ , // VS - D3DSIO_DP3 , // PS/VS - D3DSIO_DP4 , // PS/VS - D3DSIO_MIN , // VS - D3DSIO_MAX , // VS - D3DSIO_SLT , // VS - D3DSIO_SGE , // VS - D3DSIO_EXP , // VS - D3DSIO_LOG , // VS - D3DSIO_LIT , // VS - D3DSIO_DST , // VS - D3DSIO_LRP , // PS - D3DSIO_FRC , // VS - D3DSIO_M4x4 , // VS - D3DSIO_M4x3 , // VS - D3DSIO_M3x4 , // VS - D3DSIO_M3x3 , // VS - D3DSIO_M3x2 , // VS - - D3DSIO_TEXCOORD = 64, // PS - D3DSIO_TEXKILL , // PS - D3DSIO_TEX , // PS - D3DSIO_TEXBEM , // PS - D3DSIO_TEXBEML , // PS - D3DSIO_TEXREG2AR , // PS - D3DSIO_TEXREG2GB , // PS - D3DSIO_TEXM3x2PAD , // PS - D3DSIO_TEXM3x2TEX , // PS - D3DSIO_TEXM3x3PAD , // PS - D3DSIO_TEXM3x3TEX , // PS - D3DSIO_TEXM3x3DIFF , // PS - D3DSIO_TEXM3x3SPEC , // PS - D3DSIO_TEXM3x3VSPEC , // PS - D3DSIO_EXPP , // VS - D3DSIO_LOGP , // VS - D3DSIO_CND , // PS - D3DSIO_DEF , // PS - D3DSIO_TEXREG2RGB , // PS - D3DSIO_TEXDP3TEX , // PS - D3DSIO_TEXM3x2DEPTH , // PS - D3DSIO_TEXDP3 , // PS - D3DSIO_TEXM3x3 , // PS - D3DSIO_TEXDEPTH , // PS - D3DSIO_CMP , // PS - D3DSIO_BEM , // PS - - D3DSIO_PHASE = 0xFFFD, - D3DSIO_COMMENT = 0xFFFE, - D3DSIO_END = 0xFFFF, - - D3DSIO_FORCE_DWORD = 0x7fffffff, // force 32-bit size enum -} D3DSHADER_INSTRUCTION_OPCODE_TYPE; - -// -// Co-Issue Instruction Modifier - if set then this instruction is to be -// issued in parallel with the previous instruction(s) for which this bit -// is not set. -// -#define D3DSI_COISSUE 0x40000000 - -// -// Parameter Token Bit Definitions -// -#define D3DSP_REGNUM_MASK 0x00001FFF - -// destination parameter write mask -#define D3DSP_WRITEMASK_0 0x00010000 // Component 0 (X;Red) -#define D3DSP_WRITEMASK_1 0x00020000 // Component 1 (Y;Green) -#define D3DSP_WRITEMASK_2 0x00040000 // Component 2 (Z;Blue) -#define D3DSP_WRITEMASK_3 0x00080000 // Component 3 (W;Alpha) -#define D3DSP_WRITEMASK_ALL 0x000F0000 // All Components - -// destination parameter modifiers -#define D3DSP_DSTMOD_SHIFT 20 -#define D3DSP_DSTMOD_MASK 0x00F00000 - -typedef enum _D3DSHADER_PARAM_DSTMOD_TYPE -{ - D3DSPDM_NONE = 0<>8)&0xFF) -#define D3DSHADER_VERSION_MINOR(_Version) (((_Version)>>0)&0xFF) - -// destination/source parameter register type -#define D3DSI_COMMENTSIZE_SHIFT 16 -#define D3DSI_COMMENTSIZE_MASK 0x7FFF0000 -#define D3DSHADER_COMMENT(_DWordSize) \ - ((((_DWordSize)<= 1200 -#pragma warning(pop) -#else -#pragma warning(default:4201) -#endif - -#endif /* (DIRECT3D_VERSION >= 0x0800) */ -#endif /* _D3D8TYPES(P)_H_ */ - diff --git a/sdk/dx8sdk/Include/d3d9.h b/sdk/dx8sdk/Include/d3d9.h deleted file mode 100644 index 85bd9579..00000000 --- a/sdk/dx8sdk/Include/d3d9.h +++ /dev/null @@ -1,1870 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: d3d9.h - * Content: Direct3D include file - * - ****************************************************************************/ - -#ifndef _D3D9_H_ -#define _D3D9_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) - - -/* 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.)*/ - -#ifdef D3D_DEBUG_INFO -#define D3D_SDK_VERSION (32 | 0x80000000) -#define D3D9b_SDK_VERSION (31 | 0x80000000) - -#else -#define D3D_SDK_VERSION 32 -#define D3D9b_SDK_VERSION 31 -#endif - - -#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); - - -/* IID_HelperName */ -/* {E4A36723-FDFE-4b22-B146-3C04C07F4CC8} */ -DEFINE_GUID(IID_HelperName, 0xe4a36723, 0xfdfe, 0x4b22, 0xb1, 0x46, 0x3c, 0x4, 0xc0, 0x7f, 0x4c, 0xc8); - - -#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); - -/* - * Stubs for graphics profiling. - */ - -int WINAPI D3DPERF_BeginEvent( D3DCOLOR col, LPCWSTR wszName ); -int WINAPI D3DPERF_EndEvent( void ); -void WINAPI D3DPERF_SetMarker( D3DCOLOR col, LPCWSTR wszName ); -void WINAPI D3DPERF_SetRegion( D3DCOLOR col, LPCWSTR wszName ); -BOOL WINAPI D3DPERF_QueryRepeatFrame( void ); - -void WINAPI D3DPERF_SetOptions( DWORD dwOptions ); -DWORD WINAPI D3DPERF_GetStatus( void ); - -/* - * 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 Adapter,D3DDEVTYPE DevType,D3DFORMAT AdapterFormat,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; - - #ifdef D3D_DEBUG_INFO - LPCWSTR Version; - #endif -}; - -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* pOffsetInBytes,UINT* pStride) PURE; - STDMETHOD(SetStreamSourceFreq)(THIS_ UINT StreamNumber,UINT Setting) PURE; - STDMETHOD(GetStreamSourceFreq)(THIS_ UINT StreamNumber,UINT* pSetting) 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; - - #ifdef D3D_DEBUG_INFO - 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; - #endif -}; - -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; - - #ifdef D3D_DEBUG_INFO - LPCWSTR CreationCallStack; - #endif -}; - -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; - - #ifdef D3D_DEBUG_INFO - D3DPRESENT_PARAMETERS PresentParameters; - D3DDISPLAYMODE DisplayMode; - LPCWSTR CreationCallStack; - #endif -}; - -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* pElement,UINT* pNumElements) PURE; - - #ifdef D3D_DEBUG_INFO - LPCWSTR CreationCallStack; - #endif -}; - -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; - - #ifdef D3D_DEBUG_INFO - DWORD Version; - LPCWSTR CreationCallStack; - #endif -}; - -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; - - #ifdef D3D_DEBUG_INFO - DWORD Version; - LPCWSTR CreationCallStack; - #endif -}; - -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; - - #ifdef D3D_DEBUG_INFO - LPCWSTR Name; - UINT Width; - UINT Height; - UINT Levels; - DWORD Usage; - D3DFORMAT Format; - D3DPOOL Pool; - DWORD Priority; - DWORD LOD; - D3DTEXTUREFILTERTYPE FilterType; - UINT LockCount; - LPCWSTR CreationCallStack; - #endif -}; - -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; - - #ifdef D3D_DEBUG_INFO - LPCWSTR Name; - UINT Width; - UINT Height; - UINT Depth; - UINT Levels; - DWORD Usage; - D3DFORMAT Format; - D3DPOOL Pool; - DWORD Priority; - DWORD LOD; - D3DTEXTUREFILTERTYPE FilterType; - UINT LockCount; - LPCWSTR CreationCallStack; - #endif -}; - -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; - - #ifdef D3D_DEBUG_INFO - LPCWSTR Name; - UINT Width; - UINT Height; - UINT Levels; - DWORD Usage; - D3DFORMAT Format; - D3DPOOL Pool; - DWORD Priority; - DWORD LOD; - D3DTEXTUREFILTERTYPE FilterType; - UINT LockCount; - LPCWSTR CreationCallStack; - #endif -}; - -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; - - #ifdef D3D_DEBUG_INFO - LPCWSTR Name; - UINT Length; - DWORD Usage; - DWORD FVF; - D3DPOOL Pool; - DWORD Priority; - UINT LockCount; - LPCWSTR CreationCallStack; - #endif -}; - -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; - - #ifdef D3D_DEBUG_INFO - LPCWSTR Name; - UINT Length; - DWORD Usage; - D3DFORMAT Format; - D3DPOOL Pool; - DWORD Priority; - UINT LockCount; - LPCWSTR CreationCallStack; - #endif -}; - -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; - - #ifdef D3D_DEBUG_INFO - LPCWSTR Name; - UINT Width; - UINT Height; - DWORD Usage; - D3DFORMAT Format; - D3DPOOL Pool; - D3DMULTISAMPLE_TYPE MultiSampleType; - DWORD MultiSampleQuality; - DWORD Priority; - UINT LockCount; - UINT DCCount; - LPCWSTR CreationCallStack; - #endif -}; - -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; - - #ifdef D3D_DEBUG_INFO - LPCWSTR Name; - UINT Width; - UINT Height; - UINT Depth; - DWORD Usage; - D3DFORMAT Format; - D3DPOOL Pool; - UINT LockCount; - LPCWSTR CreationCallStack; - #endif -}; - -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; - - #ifdef D3D_DEBUG_INFO - D3DQUERYTYPE Type; - DWORD DataSize; - LPCWSTR CreationCallStack; - #endif -}; - -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 -#define D3DCREATE_DISABLE_DRIVER_MANAGEMENT_EX 0x00000400L - -// This flag causes the D3D runtime not to alter the focus -// window in any way. Use with caution- the burden of supporting -// focus management events (alt-tab, etc.) falls on the -// application, and appropriate responses (switching display -// mode, etc.) should be coded. -#define D3DCREATE_NOWINDOWCHANGES 0x00000800L - - -/**************************************************************************** - * - * Parameter for IDirect3D9::CreateDevice's Adapter argument - * - ****************************************************************************/ - -#define D3DADAPTER_DEFAULT 0 - -/**************************************************************************** - * - * Flags for IDirect3D9::EnumAdapters - * - ****************************************************************************/ - -#define D3DENUM_WHQL_LEVEL 0x00000002L - -/**************************************************************************** - * - * Maximum number of back-buffers supported in DX9 - * - ****************************************************************************/ - -#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 /* _D3D_H_ */ - diff --git a/sdk/dx8sdk/Include/d3d9caps.h b/sdk/dx8sdk/Include/d3d9caps.h deleted file mode 100644 index 6489f0ef..00000000 --- a/sdk/dx8sdk/Include/d3d9caps.h +++ /dev/null @@ -1,476 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: d3d9caps.h - * Content: Direct3D capabilities include file - * - ***************************************************************************/ - -#ifndef _d3d9CAPS_H -#define _d3d9CAPS_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) - -#if defined(_X86_) || defined(_IA64) -#pragma pack(4) -#endif - -typedef struct _D3DVSHADERCAPS2_0 -{ - DWORD Caps; - INT DynamicFlowControlDepth; - INT NumTemps; - INT StaticFlowControlDepth; -} D3DVSHADERCAPS2_0; - -#define D3DVS20CAPS_PREDICATION (1<<0) - -#define D3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH 24 -#define D3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH 0 -#define D3DVS20_MAX_NUMTEMPS 32 -#define D3DVS20_MIN_NUMTEMPS 12 -#define D3DVS20_MAX_STATICFLOWCONTROLDEPTH 4 -#define D3DVS20_MIN_STATICFLOWCONTROLDEPTH 1 - -typedef struct _D3DPSHADERCAPS2_0 -{ - DWORD Caps; - INT DynamicFlowControlDepth; - INT NumTemps; - INT StaticFlowControlDepth; - INT NumInstructionSlots; -} D3DPSHADERCAPS2_0; - -#define D3DPS20CAPS_ARBITRARYSWIZZLE (1<<0) -#define D3DPS20CAPS_GRADIENTINSTRUCTIONS (1<<1) -#define D3DPS20CAPS_PREDICATION (1<<2) -#define D3DPS20CAPS_NODEPENDENTREADLIMIT (1<<3) -#define D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT (1<<4) - -#define D3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH 24 -#define D3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH 0 -#define D3DPS20_MAX_NUMTEMPS 32 -#define D3DPS20_MIN_NUMTEMPS 12 -#define D3DPS20_MAX_STATICFLOWCONTROLDEPTH 4 -#define D3DPS20_MIN_STATICFLOWCONTROLDEPTH 0 -#define D3DPS20_MAX_NUMINSTRUCTIONSLOTS 512 -#define D3DPS20_MIN_NUMINSTRUCTIONSLOTS 96 - -#define D3DMIN30SHADERINSTRUCTIONS 512 -#define D3DMAX30SHADERINSTRUCTIONS 32768 - -typedef struct _D3DCAPS9 -{ - /* 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 IDirect3DTexture9's - DWORD CubeTextureFilterCaps; // D3DPTFILTERCAPS for IDirect3DCubeTexture9's - DWORD VolumeTextureFilterCaps; // D3DPTFILTERCAPS for IDirect3DVolumeTexture9's - DWORD TextureAddressCaps; // D3DPTADDRESSCAPS for IDirect3DTexture9's - DWORD VolumeTextureAddressCaps; // D3DPTADDRESSCAPS for IDirect3DVolumeTexture9'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 PixelShader1xMaxValue; // max value storable in registers of ps.1.x shaders - - // Here are the DX9 specific ones - DWORD DevCaps2; - - float MaxNpatchTessellationLevel; - DWORD Reserved5; - - UINT MasterAdapterOrdinal; // ordinal of master adaptor for adapter group - UINT AdapterOrdinalInGroup; // ordinal inside the adapter group - UINT NumberOfAdaptersInGroup; // number of adapters in this adapter group (only if master) - DWORD DeclTypes; // Data types, supported in vertex declarations - DWORD NumSimultaneousRTs; // Will be at least 1 - DWORD StretchRectFilterCaps; // Filter caps supported by StretchRect - D3DVSHADERCAPS2_0 VS20Caps; - D3DPSHADERCAPS2_0 PS20Caps; - DWORD VertexTextureFilterCaps; // D3DPTFILTERCAPS for IDirect3DTexture9's for texture, used in vertex shaders - DWORD MaxVShaderInstructionsExecuted; // maximum number of vertex shader instructions that can be executed - DWORD MaxPShaderInstructionsExecuted; // maximum number of pixel shader instructions that can be executed - DWORD MaxVertexShader30InstructionSlots; - DWORD MaxPixelShader30InstructionSlots; -} D3DCAPS9; - -// -// BIT DEFINES FOR D3DCAPS9 DWORD MEMBERS -// - -// -// Caps -// -#define D3DCAPS_READ_SCANLINE 0x00020000L - -// -// Caps2 -// -#define D3DCAPS2_FULLSCREENGAMMA 0x00020000L -#define D3DCAPS2_CANCALIBRATEGAMMA 0x00100000L -#define D3DCAPS2_RESERVED 0x02000000L -#define D3DCAPS2_CANMANAGERESOURCE 0x10000000L -#define D3DCAPS2_DYNAMICTEXTURES 0x20000000L -#define D3DCAPS2_CANAUTOGENMIPMAP 0x40000000L - -// -// Caps3 -// -#define D3DCAPS3_RESERVED 0x8000001fL - -// Indicates that the device can respect the ALPHABLENDENABLE render state -// when fullscreen while using the FLIP or DISCARD swap effect. -// COPY and COPYVSYNC swap effects work whether or not this flag is set. -#define D3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD 0x00000020L - -// Indicates that the device can perform a gamma correction from -// a windowed back buffer containing linear content to the sRGB desktop. -#define D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION 0x00000080L - -#define D3DCAPS3_COPY_TO_VIDMEM 0x00000100L /* Device can acclerate copies from sysmem to local vidmem */ -#define D3DCAPS3_COPY_TO_SYSTEMMEM 0x00000200L /* Device can acclerate copies from local vidmem to sysmem */ - - -// -// PresentationIntervals -// -#define D3DPRESENT_INTERVAL_DEFAULT 0x00000000L -#define D3DPRESENT_INTERVAL_ONE 0x00000001L -#define D3DPRESENT_INTERVAL_TWO 0x00000002L -#define D3DPRESENT_INTERVAL_THREE 0x00000004L -#define D3DPRESENT_INTERVAL_FOUR 0x00000008L -#define D3DPRESENT_INTERVAL_IMMEDIATE 0x80000000L - -// -// CursorCaps -// -// Driver supports HW color cursor in at least hi-res modes(height >=400) -#define D3DCURSORCAPS_COLOR 0x00000001L -// Driver supports HW cursor also in low-res modes(height < 400) -#define D3DCURSORCAPS_LOWRES 0x00000002L - -// -// DevCaps -// -#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 */ -#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 */ -#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*/ -#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 */ -#define D3DDEVCAPS_PUREDEVICE 0x00100000L /* Device supports D3DCREATE_PUREDEVICE */ -#define D3DDEVCAPS_QUINTICRTPATCHES 0x00200000L /* Device supports quintic Beziers and BSplines */ -#define D3DDEVCAPS_RTPATCHES 0x00400000L /* Device supports Rect and Tri patches */ -#define D3DDEVCAPS_RTPATCHHANDLEZERO 0x00800000L /* Indicates that RT Patches may be drawn efficiently using handle 0 */ -#define D3DDEVCAPS_NPATCHES 0x01000000L /* Device supports N-Patches */ - -// -// PrimitiveMiscCaps -// -#define D3DPMISCCAPS_MASKZ 0x00000002L -#define D3DPMISCCAPS_CULLNONE 0x00000010L -#define D3DPMISCCAPS_CULLCW 0x00000020L -#define D3DPMISCCAPS_CULLCCW 0x00000040L -#define D3DPMISCCAPS_COLORWRITEENABLE 0x00000080L -#define D3DPMISCCAPS_CLIPPLANESCALEDPOINTS 0x00000100L /* Device correctly clips scaled points to clip planes */ -#define D3DPMISCCAPS_CLIPTLVERTS 0x00000200L /* device will clip post-transformed vertex primitives */ -#define D3DPMISCCAPS_TSSARGTEMP 0x00000400L /* device supports D3DTA_TEMP for temporary register */ -#define D3DPMISCCAPS_BLENDOP 0x00000800L /* device supports D3DRS_BLENDOP */ -#define D3DPMISCCAPS_NULLREFERENCE 0x00001000L /* Reference Device that doesnt render */ -#define D3DPMISCCAPS_INDEPENDENTWRITEMASKS 0x00004000L /* Device supports independent write masks for MET or MRT */ -#define D3DPMISCCAPS_PERSTAGECONSTANT 0x00008000L /* Device supports per-stage constants */ -#define D3DPMISCCAPS_FOGANDSPECULARALPHA 0x00010000L /* Device supports separate fog and specular alpha (many devices - use the specular alpha channel to store fog factor) */ -#define D3DPMISCCAPS_SEPARATEALPHABLEND 0x00020000L /* Device supports separate blend settings for the alpha channel */ -#define D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS 0x00040000L /* Device supports different bit depths for MRT */ -#define D3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING 0x00080000L /* Device supports post-pixel shader operations for MRT */ -#define D3DPMISCCAPS_FOGVERTEXCLAMPED 0x00100000L /* Device clamps fog blend factor per vertex */ - -// -// LineCaps -// -#define D3DLINECAPS_TEXTURE 0x00000001L -#define D3DLINECAPS_ZTEST 0x00000002L -#define D3DLINECAPS_BLEND 0x00000004L -#define D3DLINECAPS_ALPHACMP 0x00000008L -#define D3DLINECAPS_FOG 0x00000010L -#define D3DLINECAPS_ANTIALIAS 0x00000020L - -// -// RasterCaps -// -#define D3DPRASTERCAPS_DITHER 0x00000001L -#define D3DPRASTERCAPS_ZTEST 0x00000010L -#define D3DPRASTERCAPS_FOGVERTEX 0x00000080L -#define D3DPRASTERCAPS_FOGTABLE 0x00000100L -#define D3DPRASTERCAPS_MIPMAPLODBIAS 0x00002000L -#define D3DPRASTERCAPS_ZBUFFERLESSHSR 0x00008000L -#define D3DPRASTERCAPS_FOGRANGE 0x00010000L -#define D3DPRASTERCAPS_ANISOTROPY 0x00020000L -#define D3DPRASTERCAPS_WBUFFER 0x00040000L -#define D3DPRASTERCAPS_WFOG 0x00100000L -#define D3DPRASTERCAPS_ZFOG 0x00200000L -#define D3DPRASTERCAPS_COLORPERSPECTIVE 0x00400000L /* Device iterates colors perspective correct */ -#define D3DPRASTERCAPS_SCISSORTEST 0x01000000L -#define D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS 0x02000000L -#define D3DPRASTERCAPS_DEPTHBIAS 0x04000000L -#define D3DPRASTERCAPS_MULTISAMPLE_TOGGLE 0x08000000L - -// -// ZCmpCaps, AlphaCmpCaps -// -#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 - -// -// SourceBlendCaps, DestBlendCaps -// -#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 -#define D3DPBLENDCAPS_BLENDFACTOR 0x00002000L /* Supports both D3DBLEND_BLENDFACTOR and D3DBLEND_INVBLENDFACTOR */ - -// -// ShadeCaps -// -#define D3DPSHADECAPS_COLORGOURAUDRGB 0x00000008L -#define D3DPSHADECAPS_SPECULARGOURAUDRGB 0x00000200L -#define D3DPSHADECAPS_ALPHAGOURAUDBLEND 0x00004000L -#define D3DPSHADECAPS_FOGGOURAUD 0x00080000L - -// -// TextureCaps -// -#define D3DPTEXTURECAPS_PERSPECTIVE 0x00000001L /* Perspective-correct texturing is supported */ -#define D3DPTEXTURECAPS_POW2 0x00000002L /* Power-of-2 texture dimensions are required - applies to non-Cube/Volume textures only. */ -#define D3DPTEXTURECAPS_ALPHA 0x00000004L /* Alpha in texture pixels is supported */ -#define D3DPTEXTURECAPS_SQUAREONLY 0x00000020L /* Only square textures are supported */ -#define D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE 0x00000040L /* Texture indices are not scaled by the texture size prior to interpolation */ -#define D3DPTEXTURECAPS_ALPHAPALETTE 0x00000080L /* Device can draw alpha from texture palettes */ -// 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 -#define D3DPTEXTURECAPS_PROJECTED 0x00000400L /* Device can do D3DTTFF_PROJECTED */ -#define D3DPTEXTURECAPS_CUBEMAP 0x00000800L /* Device can do cubemap textures */ -#define D3DPTEXTURECAPS_VOLUMEMAP 0x00002000L /* Device can do volume textures */ -#define D3DPTEXTURECAPS_MIPMAP 0x00004000L /* Device can do mipmapped textures */ -#define D3DPTEXTURECAPS_MIPVOLUMEMAP 0x00008000L /* Device can do mipmapped volume textures */ -#define D3DPTEXTURECAPS_MIPCUBEMAP 0x00010000L /* Device can do mipmapped cube maps */ -#define D3DPTEXTURECAPS_CUBEMAP_POW2 0x00020000L /* Device requires that cubemaps be power-of-2 dimension */ -#define D3DPTEXTURECAPS_VOLUMEMAP_POW2 0x00040000L /* Device requires that volume maps be power-of-2 dimension */ -#define D3DPTEXTURECAPS_NOPROJECTEDBUMPENV 0x00200000L /* Device does not support projected bump env lookup operation - in programmable and fixed function pixel shaders */ - -// -// TextureFilterCaps, StretchRectFilterCaps -// -#define D3DPTFILTERCAPS_MINFPOINT 0x00000100L /* Min Filter */ -#define D3DPTFILTERCAPS_MINFLINEAR 0x00000200L -#define D3DPTFILTERCAPS_MINFANISOTROPIC 0x00000400L -#define D3DPTFILTERCAPS_MINFPYRAMIDALQUAD 0x00000800L -#define D3DPTFILTERCAPS_MINFGAUSSIANQUAD 0x00001000L -#define D3DPTFILTERCAPS_MIPFPOINT 0x00010000L /* Mip Filter */ -#define D3DPTFILTERCAPS_MIPFLINEAR 0x00020000L -#define D3DPTFILTERCAPS_MAGFPOINT 0x01000000L /* Mag Filter */ -#define D3DPTFILTERCAPS_MAGFLINEAR 0x02000000L -#define D3DPTFILTERCAPS_MAGFANISOTROPIC 0x04000000L -#define D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD 0x08000000L -#define D3DPTFILTERCAPS_MAGFGAUSSIANQUAD 0x10000000L - -// -// TextureAddressCaps -// -#define D3DPTADDRESSCAPS_WRAP 0x00000001L -#define D3DPTADDRESSCAPS_MIRROR 0x00000002L -#define D3DPTADDRESSCAPS_CLAMP 0x00000004L -#define D3DPTADDRESSCAPS_BORDER 0x00000008L -#define D3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010L -#define D3DPTADDRESSCAPS_MIRRORONCE 0x00000020L - -// -// StencilCaps -// -#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 -#define D3DSTENCILCAPS_TWOSIDED 0x00000100L - -// -// TextureOpCaps -// -#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 -#define D3DTEXOPCAPS_MULTIPLYADD 0x01000000L -#define D3DTEXOPCAPS_LERP 0x02000000L - -// -// FVFCaps -// -#define D3DFVFCAPS_TEXCOORDCOUNTMASK 0x0000ffffL /* mask for texture coordinate count field */ -#define D3DFVFCAPS_DONOTSTRIPELEMENTS 0x00080000L /* Device prefers that vertex elements not be stripped */ -#define D3DFVFCAPS_PSIZE 0x00100000L /* Device can receive point size */ - -// -// VertexProcessingCaps -// -#define D3DVTXPCAPS_TEXGEN 0x00000001L /* device can do texgen */ -#define D3DVTXPCAPS_MATERIALSOURCE7 0x00000002L /* device can do DX7-level colormaterialsource ops */ -#define D3DVTXPCAPS_DIRECTIONALLIGHTS 0x00000008L /* device can do directional lights */ -#define D3DVTXPCAPS_POSITIONALLIGHTS 0x00000010L /* device can do positional lights (includes point and spot) */ -#define D3DVTXPCAPS_LOCALVIEWER 0x00000020L /* device can do local viewer */ -#define D3DVTXPCAPS_TWEENING 0x00000040L /* device can do vertex tweening */ -#define D3DVTXPCAPS_TEXGEN_SPHEREMAP 0x00000100L /* device supports D3DTSS_TCI_SPHEREMAP */ -#define D3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER 0x00000200L /* device does not support TexGen in non-local - viewer mode */ - -// -// DevCaps2 -// -#define D3DDEVCAPS2_STREAMOFFSET 0x00000001L /* Device supports offsets in streams. Must be set by DX9 drivers */ -#define D3DDEVCAPS2_DMAPNPATCH 0x00000002L /* Device supports displacement maps for N-Patches*/ -#define D3DDEVCAPS2_ADAPTIVETESSRTPATCH 0x00000004L /* Device supports adaptive tesselation of RT-patches*/ -#define D3DDEVCAPS2_ADAPTIVETESSNPATCH 0x00000008L /* Device supports adaptive tesselation of N-patches*/ -#define D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES 0x00000010L /* Device supports StretchRect calls with a texture as the source*/ -#define D3DDEVCAPS2_PRESAMPLEDDMAPNPATCH 0x00000020L /* Device supports presampled displacement maps for N-Patches */ -#define D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET 0x00000040L /* Vertex elements in a vertex declaration can share the same stream offset */ - -// -// DeclTypes -// -#define D3DDTCAPS_UBYTE4 0x00000001L -#define D3DDTCAPS_UBYTE4N 0x00000002L -#define D3DDTCAPS_SHORT2N 0x00000004L -#define D3DDTCAPS_SHORT4N 0x00000008L -#define D3DDTCAPS_USHORT2N 0x00000010L -#define D3DDTCAPS_USHORT4N 0x00000020L -#define D3DDTCAPS_UDEC3 0x00000040L -#define D3DDTCAPS_DEC3N 0x00000080L -#define D3DDTCAPS_FLOAT16_2 0x00000100L -#define D3DDTCAPS_FLOAT16_4 0x00000200L - - -#pragma pack() - -#endif /* (DIRECT3D_VERSION >= 0x0900) */ -#endif /* _d3d9CAPS_H_ */ - diff --git a/sdk/dx8sdk/Include/d3d9types.h b/sdk/dx8sdk/Include/d3d9types.h deleted file mode 100644 index 4c2108fd..00000000 --- a/sdk/dx8sdk/Include/d3d9types.h +++ /dev/null @@ -1,1855 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: d3d9types.h - * Content: Direct3D capabilities include file - * - ***************************************************************************/ - -#ifndef _d3d9TYPES_H_ -#define _d3d9TYPES_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 - -#if _MSC_VER >= 1200 -#pragma warning(push) -#endif -#pragma warning(disable:4201) // anonymous unions warning -#if defined(_X86_) || defined(_IA64) -#pragma pack(4) -#endif - -// D3DCOLOR is equivalent to D3DFMT_A8R8G8B8 -#ifndef D3DCOLOR_DEFINED -typedef DWORD D3DCOLOR; -#define D3DCOLOR_DEFINED -#endif - -// maps unsigned 8 bits/channel to D3DCOLOR -#define D3DCOLOR_ARGB(a,r,g,b) \ - ((D3DCOLOR)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff))) -#define D3DCOLOR_RGBA(r,g,b,a) D3DCOLOR_ARGB(a,r,g,b) -#define D3DCOLOR_XRGB(r,g,b) D3DCOLOR_ARGB(0xff,r,g,b) - -#define D3DCOLOR_XYUV(y,u,v) D3DCOLOR_ARGB(0xff,y,u,v) -#define D3DCOLOR_AYUV(a,y,u,v) D3DCOLOR_ARGB(a,y,u,v) - -// maps floating point channels (0.f to 1.f range) to D3DCOLOR -#define D3DCOLOR_COLORVALUE(r,g,b,a) \ - D3DCOLOR_RGBA((DWORD)((r)*255.f),(DWORD)((g)*255.f),(DWORD)((b)*255.f),(DWORD)((a)*255.f)) - - -#ifndef D3DVECTOR_DEFINED -typedef struct _D3DVECTOR { - float x; - float y; - float z; -} D3DVECTOR; -#define D3DVECTOR_DEFINED -#endif - -#ifndef D3DCOLORVALUE_DEFINED -typedef struct _D3DCOLORVALUE { - float r; - float g; - float b; - float a; -} D3DCOLORVALUE; -#define D3DCOLORVALUE_DEFINED -#endif - -#ifndef D3DRECT_DEFINED -typedef struct _D3DRECT { - LONG x1; - LONG y1; - LONG x2; - LONG y2; -} D3DRECT; -#define D3DRECT_DEFINED -#endif - -#ifndef D3DMATRIX_DEFINED -typedef struct _D3DMATRIX { - 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]; - }; -} D3DMATRIX; -#define D3DMATRIX_DEFINED -#endif - -typedef struct _D3DVIEWPORT9 { - DWORD X; - DWORD Y; /* Viewport Top left */ - DWORD Width; - DWORD Height; /* Viewport Dimensions */ - float MinZ; /* Min/max of clip Volume */ - float MaxZ; -} D3DVIEWPORT9; - -/* - * Values for clip fields. - */ - -// Max number of user clipping planes, supported in D3D. -#define D3DMAXUSERCLIPPLANES 32 - -// These bits could be ORed together to use with D3DRS_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) - -// The following bits are used in the ClipUnion and ClipIntersection -// members of the D3DCLIPSTATUS9 -// - -#define D3DCS_LEFT 0x00000001L -#define D3DCS_RIGHT 0x00000002L -#define D3DCS_TOP 0x00000004L -#define D3DCS_BOTTOM 0x00000008L -#define D3DCS_FRONT 0x00000010L -#define D3DCS_BACK 0x00000020L -#define D3DCS_PLANE0 0x00000040L -#define D3DCS_PLANE1 0x00000080L -#define D3DCS_PLANE2 0x00000100L -#define D3DCS_PLANE3 0x00000200L -#define D3DCS_PLANE4 0x00000400L -#define D3DCS_PLANE5 0x00000800L - -#define D3DCS_ALL (D3DCS_LEFT | \ - D3DCS_RIGHT | \ - D3DCS_TOP | \ - D3DCS_BOTTOM | \ - D3DCS_FRONT | \ - D3DCS_BACK | \ - D3DCS_PLANE0 | \ - D3DCS_PLANE1 | \ - D3DCS_PLANE2 | \ - D3DCS_PLANE3 | \ - D3DCS_PLANE4 | \ - D3DCS_PLANE5) - -typedef struct _D3DCLIPSTATUS9 { - DWORD ClipUnion; - DWORD ClipIntersection; -} D3DCLIPSTATUS9; - -typedef struct _D3DMATERIAL9 { - D3DCOLORVALUE Diffuse; /* Diffuse color RGBA */ - D3DCOLORVALUE Ambient; /* Ambient color RGB */ - D3DCOLORVALUE Specular; /* Specular 'shininess' */ - D3DCOLORVALUE Emissive; /* Emissive color RGB */ - float Power; /* Sharpness if specular highlight */ -} D3DMATERIAL9; - -typedef enum _D3DLIGHTTYPE { - D3DLIGHT_POINT = 1, - D3DLIGHT_SPOT = 2, - D3DLIGHT_DIRECTIONAL = 3, - D3DLIGHT_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DLIGHTTYPE; - -typedef struct _D3DLIGHT9 { - D3DLIGHTTYPE Type; /* Type of light source */ - D3DCOLORVALUE Diffuse; /* Diffuse color of light */ - D3DCOLORVALUE Specular; /* Specular color of light */ - D3DCOLORVALUE Ambient; /* Ambient color of light */ - D3DVECTOR Position; /* Position in world space */ - D3DVECTOR Direction; /* Direction in world space */ - float Range; /* Cutoff range */ - float Falloff; /* Falloff */ - float Attenuation0; /* Constant attenuation */ - float Attenuation1; /* Linear attenuation */ - float Attenuation2; /* Quadratic attenuation */ - float Theta; /* Inner angle of spotlight cone */ - float Phi; /* Outer angle of spotlight cone */ -} D3DLIGHT9; - -/* - * Options for clearing - */ -#define D3DCLEAR_TARGET 0x00000001l /* Clear target surface */ -#define D3DCLEAR_ZBUFFER 0x00000002l /* Clear target z buffer */ -#define D3DCLEAR_STENCIL 0x00000004l /* Clear stencil planes */ - -/* - * The following defines the rendering states - */ - -typedef enum _D3DSHADEMODE { - D3DSHADE_FLAT = 1, - D3DSHADE_GOURAUD = 2, - D3DSHADE_PHONG = 3, - D3DSHADE_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DSHADEMODE; - -typedef enum _D3DFILLMODE { - D3DFILL_POINT = 1, - D3DFILL_WIREFRAME = 2, - D3DFILL_SOLID = 3, - D3DFILL_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DFILLMODE; - -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, - D3DBLEND_BLENDFACTOR = 14, /* Only supported if D3DPBLENDCAPS_BLENDFACTOR is on */ - D3DBLEND_INVBLENDFACTOR = 15, /* Only supported if D3DPBLENDCAPS_BLENDFACTOR is on */ - D3DBLEND_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DBLEND; - -typedef enum _D3DBLENDOP { - D3DBLENDOP_ADD = 1, - D3DBLENDOP_SUBTRACT = 2, - D3DBLENDOP_REVSUBTRACT = 3, - D3DBLENDOP_MIN = 4, - D3DBLENDOP_MAX = 5, - D3DBLENDOP_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DBLENDOP; - -typedef enum _D3DTEXTUREADDRESS { - D3DTADDRESS_WRAP = 1, - D3DTADDRESS_MIRROR = 2, - D3DTADDRESS_CLAMP = 3, - D3DTADDRESS_BORDER = 4, - D3DTADDRESS_MIRRORONCE = 5, - D3DTADDRESS_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DTEXTUREADDRESS; - -typedef enum _D3DCULL { - D3DCULL_NONE = 1, - D3DCULL_CW = 2, - D3DCULL_CCW = 3, - D3DCULL_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} 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, - D3DCMP_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DCMPFUNC; - -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; - -typedef enum _D3DFOGMODE { - D3DFOG_NONE = 0, - D3DFOG_EXP = 1, - D3DFOG_EXP2 = 2, - D3DFOG_LINEAR = 3, - D3DFOG_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DFOGMODE; - -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; - -// 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; - -typedef enum _D3DTRANSFORMSTATETYPE { - D3DTS_VIEW = 2, - D3DTS_PROJECTION = 3, - D3DTS_TEXTURE0 = 16, - D3DTS_TEXTURE1 = 17, - D3DTS_TEXTURE2 = 18, - D3DTS_TEXTURE3 = 19, - D3DTS_TEXTURE4 = 20, - D3DTS_TEXTURE5 = 21, - D3DTS_TEXTURE6 = 22, - D3DTS_TEXTURE7 = 23, - D3DTS_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DTRANSFORMSTATETYPE; - -#define D3DTS_WORLDMATRIX(index) (D3DTRANSFORMSTATETYPE)(index + 256) -#define D3DTS_WORLD D3DTS_WORLDMATRIX(0) -#define D3DTS_WORLD1 D3DTS_WORLDMATRIX(1) -#define D3DTS_WORLD2 D3DTS_WORLDMATRIX(2) -#define D3DTS_WORLD3 D3DTS_WORLDMATRIX(3) - -typedef enum _D3DRENDERSTATETYPE { - D3DRS_ZENABLE = 7, /* D3DZBUFFERTYPE (or TRUE/FALSE for legacy) */ - D3DRS_FILLMODE = 8, /* D3DFILLMODE */ - D3DRS_SHADEMODE = 9, /* D3DSHADEMODE */ - D3DRS_ZWRITEENABLE = 14, /* TRUE to enable z writes */ - D3DRS_ALPHATESTENABLE = 15, /* TRUE to enable alpha tests */ - D3DRS_LASTPIXEL = 16, /* TRUE for last-pixel on lines */ - D3DRS_SRCBLEND = 19, /* D3DBLEND */ - D3DRS_DESTBLEND = 20, /* D3DBLEND */ - D3DRS_CULLMODE = 22, /* D3DCULL */ - D3DRS_ZFUNC = 23, /* D3DCMPFUNC */ - D3DRS_ALPHAREF = 24, /* D3DFIXED */ - D3DRS_ALPHAFUNC = 25, /* D3DCMPFUNC */ - D3DRS_DITHERENABLE = 26, /* TRUE to enable dithering */ - D3DRS_ALPHABLENDENABLE = 27, /* TRUE to enable alpha blending */ - D3DRS_FOGENABLE = 28, /* TRUE to enable fog blending */ - D3DRS_SPECULARENABLE = 29, /* TRUE to enable specular */ - D3DRS_FOGCOLOR = 34, /* D3DCOLOR */ - D3DRS_FOGTABLEMODE = 35, /* D3DFOGMODE */ - D3DRS_FOGSTART = 36, /* Fog start (for both vertex and pixel fog) */ - D3DRS_FOGEND = 37, /* Fog end */ - D3DRS_FOGDENSITY = 38, /* Fog density */ - D3DRS_RANGEFOGENABLE = 48, /* Enables range-based fog */ - D3DRS_STENCILENABLE = 52, /* BOOL enable/disable stenciling */ - D3DRS_STENCILFAIL = 53, /* D3DSTENCILOP to do if stencil test fails */ - D3DRS_STENCILZFAIL = 54, /* D3DSTENCILOP to do if stencil test passes and Z test fails */ - D3DRS_STENCILPASS = 55, /* D3DSTENCILOP to do if both stencil and Z tests pass */ - D3DRS_STENCILFUNC = 56, /* D3DCMPFUNC fn. Stencil Test passes if ((ref & mask) stencilfn (stencil & mask)) is true */ - D3DRS_STENCILREF = 57, /* Reference value used in stencil test */ - D3DRS_STENCILMASK = 58, /* Mask value used in stencil test */ - D3DRS_STENCILWRITEMASK = 59, /* Write mask applied to values written to stencil buffer */ - D3DRS_TEXTUREFACTOR = 60, /* D3DCOLOR used for multi-texture blend */ - D3DRS_WRAP0 = 128, /* wrap for 1st texture coord. set */ - D3DRS_WRAP1 = 129, /* wrap for 2nd texture coord. set */ - D3DRS_WRAP2 = 130, /* wrap for 3rd texture coord. set */ - D3DRS_WRAP3 = 131, /* wrap for 4th texture coord. set */ - D3DRS_WRAP4 = 132, /* wrap for 5th texture coord. set */ - D3DRS_WRAP5 = 133, /* wrap for 6th texture coord. set */ - D3DRS_WRAP6 = 134, /* wrap for 7th texture coord. set */ - D3DRS_WRAP7 = 135, /* wrap for 8th texture coord. set */ - D3DRS_CLIPPING = 136, - D3DRS_LIGHTING = 137, - D3DRS_AMBIENT = 139, - D3DRS_FOGVERTEXMODE = 140, - D3DRS_COLORVERTEX = 141, - D3DRS_LOCALVIEWER = 142, - D3DRS_NORMALIZENORMALS = 143, - D3DRS_DIFFUSEMATERIALSOURCE = 145, - D3DRS_SPECULARMATERIALSOURCE = 146, - D3DRS_AMBIENTMATERIALSOURCE = 147, - D3DRS_EMISSIVEMATERIALSOURCE = 148, - D3DRS_VERTEXBLEND = 151, - D3DRS_CLIPPLANEENABLE = 152, - D3DRS_POINTSIZE = 154, /* float point size */ - D3DRS_POINTSIZE_MIN = 155, /* float point size min threshold */ - D3DRS_POINTSPRITEENABLE = 156, /* BOOL point texture coord control */ - D3DRS_POINTSCALEENABLE = 157, /* BOOL point size scale enable */ - D3DRS_POINTSCALE_A = 158, /* float point attenuation A value */ - D3DRS_POINTSCALE_B = 159, /* float point attenuation B value */ - D3DRS_POINTSCALE_C = 160, /* float point attenuation C value */ - D3DRS_MULTISAMPLEANTIALIAS = 161, // BOOL - set to do FSAA with multisample buffer - D3DRS_MULTISAMPLEMASK = 162, // DWORD - per-sample enable/disable - D3DRS_PATCHEDGESTYLE = 163, // Sets whether patch edges will use float style tessellation - D3DRS_DEBUGMONITORTOKEN = 165, // DEBUG ONLY - token to debug monitor - D3DRS_POINTSIZE_MAX = 166, /* float point size max threshold */ - D3DRS_INDEXEDVERTEXBLENDENABLE = 167, - D3DRS_COLORWRITEENABLE = 168, // per-channel write enable - D3DRS_TWEENFACTOR = 170, // float tween factor - D3DRS_BLENDOP = 171, // D3DBLENDOP setting - D3DRS_POSITIONDEGREE = 172, // NPatch position interpolation degree. D3DDEGREE_LINEAR or D3DDEGREE_CUBIC (default) - D3DRS_NORMALDEGREE = 173, // NPatch normal interpolation degree. D3DDEGREE_LINEAR (default) or D3DDEGREE_QUADRATIC - D3DRS_SCISSORTESTENABLE = 174, - D3DRS_SLOPESCALEDEPTHBIAS = 175, - D3DRS_ANTIALIASEDLINEENABLE = 176, - D3DRS_MINTESSELLATIONLEVEL = 178, - D3DRS_MAXTESSELLATIONLEVEL = 179, - D3DRS_ADAPTIVETESS_X = 180, - D3DRS_ADAPTIVETESS_Y = 181, - D3DRS_ADAPTIVETESS_Z = 182, - D3DRS_ADAPTIVETESS_W = 183, - D3DRS_ENABLEADAPTIVETESSELLATION = 184, - D3DRS_TWOSIDEDSTENCILMODE = 185, /* BOOL enable/disable 2 sided stenciling */ - D3DRS_CCW_STENCILFAIL = 186, /* D3DSTENCILOP to do if ccw stencil test fails */ - D3DRS_CCW_STENCILZFAIL = 187, /* D3DSTENCILOP to do if ccw stencil test passes and Z test fails */ - D3DRS_CCW_STENCILPASS = 188, /* D3DSTENCILOP to do if both ccw stencil and Z tests pass */ - D3DRS_CCW_STENCILFUNC = 189, /* D3DCMPFUNC fn. ccw Stencil Test passes if ((ref & mask) stencilfn (stencil & mask)) is true */ - D3DRS_COLORWRITEENABLE1 = 190, /* Additional ColorWriteEnables for the devices that support D3DPMISCCAPS_INDEPENDENTWRITEMASKS */ - D3DRS_COLORWRITEENABLE2 = 191, /* Additional ColorWriteEnables for the devices that support D3DPMISCCAPS_INDEPENDENTWRITEMASKS */ - D3DRS_COLORWRITEENABLE3 = 192, /* Additional ColorWriteEnables for the devices that support D3DPMISCCAPS_INDEPENDENTWRITEMASKS */ - D3DRS_BLENDFACTOR = 193, /* D3DCOLOR used for a constant blend factor during alpha blending for devices that support D3DPBLENDCAPS_BLENDFACTOR */ - D3DRS_SRGBWRITEENABLE = 194, /* Enable rendertarget writes to be DE-linearized to SRGB (for formats that expose D3DUSAGE_QUERY_SRGBWRITE) */ - D3DRS_DEPTHBIAS = 195, - D3DRS_WRAP8 = 198, /* Additional wrap states for vs_3_0+ attributes with D3DDECLUSAGE_TEXCOORD */ - D3DRS_WRAP9 = 199, - D3DRS_WRAP10 = 200, - D3DRS_WRAP11 = 201, - D3DRS_WRAP12 = 202, - D3DRS_WRAP13 = 203, - D3DRS_WRAP14 = 204, - D3DRS_WRAP15 = 205, - D3DRS_SEPARATEALPHABLENDENABLE = 206, /* TRUE to enable a separate blending function for the alpha channel */ - D3DRS_SRCBLENDALPHA = 207, /* SRC blend factor for the alpha channel when D3DRS_SEPARATEDESTALPHAENABLE is TRUE */ - D3DRS_DESTBLENDALPHA = 208, /* DST blend factor for the alpha channel when D3DRS_SEPARATEDESTALPHAENABLE is TRUE */ - D3DRS_BLENDOPALPHA = 209, /* Blending operation for the alpha channel when D3DRS_SEPARATEDESTALPHAENABLE is TRUE */ - - - D3DRS_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DRENDERSTATETYPE; - -// Maximum number of simultaneous render targets D3D supports -#define D3D_MAX_SIMULTANEOUS_RENDERTARGETS 4 - -// 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; - -// 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 -#define D3DWRAP_W 0x00000004L - -/* 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 // same as D3DWRAP_W -#define D3DWRAPCOORD_3 0x00000008L - -/* Flags to construct D3DRS_COLORWRITEENABLE */ -#define D3DCOLORWRITEENABLE_RED (1L<<0) -#define D3DCOLORWRITEENABLE_GREEN (1L<<1) -#define D3DCOLORWRITEENABLE_BLUE (1L<<2) -#define D3DCOLORWRITEENABLE_ALPHA (1L<<3) - -/* - * State enumerants for per-stage processing of fixed function pixel processing - * Two of these affect fixed function vertex processing as well: TEXTURETRANSFORMFLAGS and TEXCOORDINDEX. - */ -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, /* float (bump mapping matrix) */ - D3DTSS_BUMPENVMAT01 = 8, /* float (bump mapping matrix) */ - D3DTSS_BUMPENVMAT10 = 9, /* float (bump mapping matrix) */ - D3DTSS_BUMPENVMAT11 = 10, /* float (bump mapping matrix) */ - D3DTSS_TEXCOORDINDEX = 11, /* identifies which set of texture coordinates index this texture */ - D3DTSS_BUMPENVLSCALE = 22, /* float scale for bump map luminance */ - D3DTSS_BUMPENVLOFFSET = 23, /* float offset for bump map luminance */ - D3DTSS_TEXTURETRANSFORMFLAGS = 24, /* D3DTEXTURETRANSFORMFLAGS controls texture transform */ - D3DTSS_COLORARG0 = 26, /* D3DTA_* third arg for triadic ops */ - D3DTSS_ALPHAARG0 = 27, /* D3DTA_* third arg for triadic ops */ - D3DTSS_RESULTARG = 28, /* D3DTA_* arg for result (CURRENT or TEMP) */ - D3DTSS_CONSTANT = 32, /* Per-stage constant D3DTA_CONSTANT */ - - - D3DTSS_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DTEXTURESTAGESTATETYPE; - -/* - * State enumerants for per-sampler texture processing. - */ -typedef enum _D3DSAMPLERSTATETYPE -{ - D3DSAMP_ADDRESSU = 1, /* D3DTEXTUREADDRESS for U coordinate */ - D3DSAMP_ADDRESSV = 2, /* D3DTEXTUREADDRESS for V coordinate */ - D3DSAMP_ADDRESSW = 3, /* D3DTEXTUREADDRESS for W coordinate */ - D3DSAMP_BORDERCOLOR = 4, /* D3DCOLOR */ - D3DSAMP_MAGFILTER = 5, /* D3DTEXTUREFILTER filter to use for magnification */ - D3DSAMP_MINFILTER = 6, /* D3DTEXTUREFILTER filter to use for minification */ - D3DSAMP_MIPFILTER = 7, /* D3DTEXTUREFILTER filter to use between mipmaps during minification */ - D3DSAMP_MIPMAPLODBIAS = 8, /* float Mipmap LOD bias */ - D3DSAMP_MAXMIPLEVEL = 9, /* DWORD 0..(n-1) LOD index of largest map to use (0 == largest) */ - D3DSAMP_MAXANISOTROPY = 10, /* DWORD maximum anisotropy */ - D3DSAMP_SRGBTEXTURE = 11, /* Default = 0 (which means Gamma 1.0, - no correction required.) else correct for - Gamma = 2.2 */ - D3DSAMP_ELEMENTINDEX = 12, /* When multi-element texture is assigned to sampler, this - indicates which element index to use. Default = 0. */ - D3DSAMP_DMAPOFFSET = 13, /* Offset in vertices in the pre-sampled displacement map. - Only valid for D3DDMAPSAMPLER sampler */ - D3DSAMP_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DSAMPLERSTATETYPE; - -/* Special sampler which is used in the tesselator */ -#define D3DDMAPSAMPLER 256 - -// Samplers used in vertex shaders -#define D3DVERTEXTEXTURESAMPLER0 (D3DDMAPSAMPLER+1) -#define D3DVERTEXTEXTURESAMPLER1 (D3DDMAPSAMPLER+2) -#define D3DVERTEXTEXTURESAMPLER2 (D3DDMAPSAMPLER+3) -#define D3DVERTEXTEXTURESAMPLER3 (D3DDMAPSAMPLER+4) - -// 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 -#define D3DTSS_TCI_SPHEREMAP 0x00040000 - -/* - * Enumerations for COLOROP and ALPHAOP texture blending operations set in - * texture processing stage controls in D3DTSS. - */ -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 D3DRS_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, - - // Triadic ops - D3DTOP_MULTIPLYADD = 25, // Arg0 + Arg1*Arg2 - D3DTOP_LERP = 26, // (Arg0)*Arg1 + (1-Arg0)*Arg2 - - D3DTOP_FORCE_DWORD = 0x7fffffff, -} D3DTEXTUREOP; - -/* - * Values for COLORARG0,1,2, ALPHAARG0,1,2, and RESULTARG 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 (read only) -#define D3DTA_CURRENT 0x00000001 // select stage destination register (read/write) -#define D3DTA_TEXTURE 0x00000002 // select texture color (read only) -#define D3DTA_TFACTOR 0x00000003 // select D3DRS_TEXTUREFACTOR (read only) -#define D3DTA_SPECULAR 0x00000004 // select specular color (read only) -#define D3DTA_TEMP 0x00000005 // select temporary register color (read/write) -#define D3DTA_CONSTANT 0x00000006 // select texture stage constant -#define D3DTA_COMPLEMENT 0x00000010 // take 1.0 - x (read modifier) -#define D3DTA_ALPHAREPLICATE 0x00000020 // replicate alpha to color components (read modifier) - -// -// Values for D3DSAMP_***FILTER texture stage states -// -typedef enum _D3DTEXTUREFILTERTYPE -{ - D3DTEXF_NONE = 0, // filtering disabled (valid for mip filter only) - D3DTEXF_POINT = 1, // nearest - D3DTEXF_LINEAR = 2, // linear interpolation - D3DTEXF_ANISOTROPIC = 3, // anisotropic - D3DTEXF_PYRAMIDALQUAD = 6, // 4-sample tent - D3DTEXF_GAUSSIANQUAD = 7, // 4-sample gaussian - D3DTEXF_FORCE_DWORD = 0x7fffffff, // force 32-bit size enum -} D3DTEXTUREFILTERTYPE; - -/* Bits for Flags in ProcessVertices call */ - -#define D3DPV_DONOTCOPYDATA (1 << 0) - -//------------------------------------------------------------------- - -// Flexible vertex format bits -// -#define D3DFVF_RESERVED0 0x001 -#define D3DFVF_POSITION_MASK 0x400E -#define D3DFVF_XYZ 0x002 -#define D3DFVF_XYZRHW 0x004 -#define D3DFVF_XYZB1 0x006 -#define D3DFVF_XYZB2 0x008 -#define D3DFVF_XYZB3 0x00a -#define D3DFVF_XYZB4 0x00c -#define D3DFVF_XYZB5 0x00e -#define D3DFVF_XYZW 0x4002 - -#define D3DFVF_NORMAL 0x010 -#define D3DFVF_PSIZE 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_LASTBETA_UBYTE4 0x1000 -#define D3DFVF_LASTBETA_D3DCOLOR 0x8000 - -#define D3DFVF_RESERVED2 0x6000 // 2 reserved bits - -//--------------------------------------------------------------------- -// Vertex Shaders -// - -// Vertex shader declaration - -// Vertex element semantics -// -typedef enum _D3DDECLUSAGE -{ - D3DDECLUSAGE_POSITION = 0, - D3DDECLUSAGE_BLENDWEIGHT, // 1 - D3DDECLUSAGE_BLENDINDICES, // 2 - D3DDECLUSAGE_NORMAL, // 3 - D3DDECLUSAGE_PSIZE, // 4 - D3DDECLUSAGE_TEXCOORD, // 5 - D3DDECLUSAGE_TANGENT, // 6 - D3DDECLUSAGE_BINORMAL, // 7 - D3DDECLUSAGE_TESSFACTOR, // 8 - D3DDECLUSAGE_POSITIONT, // 9 - D3DDECLUSAGE_COLOR, // 10 - D3DDECLUSAGE_FOG, // 11 - D3DDECLUSAGE_DEPTH, // 12 - D3DDECLUSAGE_SAMPLE, // 13 -} D3DDECLUSAGE; - -#define MAXD3DDECLUSAGE D3DDECLUSAGE_SAMPLE -#define MAXD3DDECLUSAGEINDEX 15 -#define MAXD3DDECLLENGTH 64 // does not include "end" marker vertex element - -typedef enum _D3DDECLMETHOD -{ - D3DDECLMETHOD_DEFAULT = 0, - D3DDECLMETHOD_PARTIALU, - D3DDECLMETHOD_PARTIALV, - D3DDECLMETHOD_CROSSUV, // Normal - D3DDECLMETHOD_UV, - D3DDECLMETHOD_LOOKUP, // Lookup a displacement map - D3DDECLMETHOD_LOOKUPPRESAMPLED, // Lookup a pre-sampled displacement map -} D3DDECLMETHOD; - -#define MAXD3DDECLMETHOD D3DDECLMETHOD_LOOKUPPRESAMPLED - -// Declarations for _Type fields -// -typedef enum _D3DDECLTYPE -{ - D3DDECLTYPE_FLOAT1 = 0, // 1D float expanded to (value, 0., 0., 1.) - D3DDECLTYPE_FLOAT2 = 1, // 2D float expanded to (value, value, 0., 1.) - D3DDECLTYPE_FLOAT3 = 2, // 3D float expanded to (value, value, value, 1.) - D3DDECLTYPE_FLOAT4 = 3, // 4D float - D3DDECLTYPE_D3DCOLOR = 4, // 4D packed unsigned bytes mapped to 0. to 1. range - // Input is in D3DCOLOR format (ARGB) expanded to (R, G, B, A) - D3DDECLTYPE_UBYTE4 = 5, // 4D unsigned byte - D3DDECLTYPE_SHORT2 = 6, // 2D signed short expanded to (value, value, 0., 1.) - D3DDECLTYPE_SHORT4 = 7, // 4D signed short - -// The following types are valid only with vertex shaders >= 2.0 - - - D3DDECLTYPE_UBYTE4N = 8, // Each of 4 bytes is normalized by dividing to 255.0 - D3DDECLTYPE_SHORT2N = 9, // 2D signed short normalized (v[0]/32767.0,v[1]/32767.0,0,1) - D3DDECLTYPE_SHORT4N = 10, // 4D signed short normalized (v[0]/32767.0,v[1]/32767.0,v[2]/32767.0,v[3]/32767.0) - D3DDECLTYPE_USHORT2N = 11, // 2D unsigned short normalized (v[0]/65535.0,v[1]/65535.0,0,1) - D3DDECLTYPE_USHORT4N = 12, // 4D unsigned short normalized (v[0]/65535.0,v[1]/65535.0,v[2]/65535.0,v[3]/65535.0) - D3DDECLTYPE_UDEC3 = 13, // 3D unsigned 10 10 10 format expanded to (value, value, value, 1) - D3DDECLTYPE_DEC3N = 14, // 3D signed 10 10 10 format normalized and expanded to (v[0]/511.0, v[1]/511.0, v[2]/511.0, 1) - D3DDECLTYPE_FLOAT16_2 = 15, // Two 16-bit floating point values, expanded to (value, value, 0, 1) - D3DDECLTYPE_FLOAT16_4 = 16, // Four 16-bit floating point values - D3DDECLTYPE_UNUSED = 17, // When the type field in a decl is unused. -} D3DDECLTYPE; - -#define MAXD3DDECLTYPE D3DDECLTYPE_UNUSED - -typedef struct _D3DVERTEXELEMENT9 -{ - WORD Stream; // Stream index - WORD Offset; // Offset in the stream in bytes - BYTE Type; // Data type - BYTE Method; // Processing method - BYTE Usage; // Semantics - BYTE UsageIndex; // Semantic index -} D3DVERTEXELEMENT9, *LPD3DVERTEXELEMENT9; - -// This is used to initialize the last vertex element in a vertex declaration -// array -// -#define D3DDECL_END() {0xFF,0,D3DDECLTYPE_UNUSED,0,0,0} - -// Maximum supported number of texture coordinate sets -#define D3DDP_MAXTEXCOORD 8 - -//--------------------------------------------------------------------- -// Values for IDirect3DDevice9::SetStreamSourceFreq's Setting parameter -//--------------------------------------------------------------------- -#define D3DSTREAMSOURCE_INDEXEDDATA (1<<30) -#define D3DSTREAMSOURCE_INSTANCEDATA (2<<30) - - - -//--------------------------------------------------------------------- -// -// The internal format of Pixel Shader (PS) & Vertex Shader (VS) -// Instruction Tokens is defined in the Direct3D Device Driver Kit -// -//--------------------------------------------------------------------- - -// -// Instruction Token Bit Definitions -// -#define D3DSI_OPCODE_MASK 0x0000FFFF - -#define D3DSI_INSTLENGTH_MASK 0x0F000000 -#define D3DSI_INSTLENGTH_SHIFT 24 - -typedef enum _D3DSHADER_INSTRUCTION_OPCODE_TYPE -{ - D3DSIO_NOP = 0, - D3DSIO_MOV , - D3DSIO_ADD , - D3DSIO_SUB , - D3DSIO_MAD , - D3DSIO_MUL , - D3DSIO_RCP , - D3DSIO_RSQ , - D3DSIO_DP3 , - D3DSIO_DP4 , - D3DSIO_MIN , - D3DSIO_MAX , - D3DSIO_SLT , - D3DSIO_SGE , - D3DSIO_EXP , - D3DSIO_LOG , - D3DSIO_LIT , - D3DSIO_DST , - D3DSIO_LRP , - D3DSIO_FRC , - D3DSIO_M4x4 , - D3DSIO_M4x3 , - D3DSIO_M3x4 , - D3DSIO_M3x3 , - D3DSIO_M3x2 , - D3DSIO_CALL , - D3DSIO_CALLNZ , - D3DSIO_LOOP , - D3DSIO_RET , - D3DSIO_ENDLOOP , - D3DSIO_LABEL , - D3DSIO_DCL , - D3DSIO_POW , - D3DSIO_CRS , - D3DSIO_SGN , - D3DSIO_ABS , - D3DSIO_NRM , - D3DSIO_SINCOS , - D3DSIO_REP , - D3DSIO_ENDREP , - D3DSIO_IF , - D3DSIO_IFC , - D3DSIO_ELSE , - D3DSIO_ENDIF , - D3DSIO_BREAK , - D3DSIO_BREAKC , - D3DSIO_MOVA , - D3DSIO_DEFB , - D3DSIO_DEFI , - - D3DSIO_TEXCOORD = 64, - D3DSIO_TEXKILL , - D3DSIO_TEX , - D3DSIO_TEXBEM , - D3DSIO_TEXBEML , - D3DSIO_TEXREG2AR , - D3DSIO_TEXREG2GB , - D3DSIO_TEXM3x2PAD , - D3DSIO_TEXM3x2TEX , - D3DSIO_TEXM3x3PAD , - D3DSIO_TEXM3x3TEX , - D3DSIO_RESERVED0 , - D3DSIO_TEXM3x3SPEC , - D3DSIO_TEXM3x3VSPEC , - D3DSIO_EXPP , - D3DSIO_LOGP , - D3DSIO_CND , - D3DSIO_DEF , - D3DSIO_TEXREG2RGB , - D3DSIO_TEXDP3TEX , - D3DSIO_TEXM3x2DEPTH , - D3DSIO_TEXDP3 , - D3DSIO_TEXM3x3 , - D3DSIO_TEXDEPTH , - D3DSIO_CMP , - D3DSIO_BEM , - D3DSIO_DP2ADD , - D3DSIO_DSX , - D3DSIO_DSY , - D3DSIO_TEXLDD , - D3DSIO_SETP , - D3DSIO_TEXLDL , - D3DSIO_BREAKP , - - D3DSIO_PHASE = 0xFFFD, - D3DSIO_COMMENT = 0xFFFE, - D3DSIO_END = 0xFFFF, - - D3DSIO_FORCE_DWORD = 0x7fffffff, // force 32-bit size enum -} D3DSHADER_INSTRUCTION_OPCODE_TYPE; - -//--------------------------------------------------------------------- -// Use these constants with D3DSIO_SINCOS macro as SRC2, SRC3 -// -#define D3DSINCOSCONST1 -1.5500992e-006f, -2.1701389e-005f, 0.0026041667f, 0.00026041668f -#define D3DSINCOSCONST2 -0.020833334f, -0.12500000f, 1.0f, 0.50000000f - -//--------------------------------------------------------------------- -// Co-Issue Instruction Modifier - if set then this instruction is to be -// issued in parallel with the previous instruction(s) for which this bit -// is not set. -// -#define D3DSI_COISSUE 0x40000000 - -//--------------------------------------------------------------------- -// Opcode specific controls - -#define D3DSP_OPCODESPECIFICCONTROL_MASK 0x00ff0000 -#define D3DSP_OPCODESPECIFICCONTROL_SHIFT 16 - -// ps_2_0 texld controls -#define D3DSI_TEXLD_PROJECT (0x01 << D3DSP_OPCODESPECIFICCONTROL_SHIFT) -#define D3DSI_TEXLD_BIAS (0x02 << D3DSP_OPCODESPECIFICCONTROL_SHIFT) - -// Comparison for dynamic conditional instruction opcodes (i.e. if, breakc) -typedef enum _D3DSHADER_COMPARISON -{ - // < = > - D3DSPC_RESERVED0= 0, // 0 0 0 - D3DSPC_GT = 1, // 0 0 1 - D3DSPC_EQ = 2, // 0 1 0 - D3DSPC_GE = 3, // 0 1 1 - D3DSPC_LT = 4, // 1 0 0 - D3DSPC_NE = 5, // 1 0 1 - D3DSPC_LE = 6, // 1 1 0 - D3DSPC_RESERVED1= 7 // 1 1 1 -} D3DSHADER_COMPARISON; - -// Comparison is part of instruction opcode token: -#define D3DSHADER_COMPARISON_SHIFT D3DSP_OPCODESPECIFICCONTROL_SHIFT -#define D3DSHADER_COMPARISON_MASK (0x7<>8)&0xFF) -#define D3DSHADER_VERSION_MINOR(_Version) (((_Version)>>0)&0xFF) - -// destination/source parameter register type -#define D3DSI_COMMENTSIZE_SHIFT 16 -#define D3DSI_COMMENTSIZE_MASK 0x7FFF0000 -#define D3DSHADER_COMMENT(_DWordSize) \ - ((((_DWordSize)<= 1200 -#pragma warning(pop) -#else -#pragma warning(default:4201) -#endif - -#endif /* (DIRECT3D_VERSION >= 0x0900) */ -#endif /* _d3d9TYPES(P)_H_ */ - diff --git a/sdk/dx8sdk/Include/d3dcaps.h b/sdk/dx8sdk/Include/d3dcaps.h deleted file mode 100644 index 6066c7ab..00000000 --- a/sdk/dx8sdk/Include/d3dcaps.h +++ /dev/null @@ -1,601 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: d3dcaps.h - * Content: Direct3D capabilities include file - * - ***************************************************************************/ - -#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_ */ - diff --git a/sdk/dx8sdk/Include/d3drm.h b/sdk/dx8sdk/Include/d3drm.h deleted file mode 100644 index 143c0e05..00000000 --- a/sdk/dx8sdk/Include/d3drm.h +++ /dev/null @@ -1,342 +0,0 @@ -/*==========================================================================; - * - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * File: d3drm.h - * Content: Direct3DRM include file - * - ***************************************************************************/ - -#ifndef __D3DRM_H__ -#define __D3DRM_H__ - -#include "ddraw.h" - -#ifdef __cplusplus -struct IDirect3DRM; -#endif - -typedef struct IDirect3DRM *LPDIRECT3DRM; - -#include "d3drmobj.h" - -#ifdef __cplusplus -extern "C" { -#endif - - -DEFINE_GUID(IID_IDirect3DRM, 0x2bc49361, 0x8327, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRM2, 0x4516ecc8, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(IID_IDirect3DRM3, 0x4516ec83, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3); -WIN_TYPES(IDirect3DRM, DIRECT3DRM); -WIN_TYPES(IDirect3DRM2, DIRECT3DRM2); -WIN_TYPES(IDirect3DRM3, DIRECT3DRM3); - -/* - * Direct3DRM Object Class (for CoCreateInstance()) - */ -DEFINE_GUID(CLSID_CDirect3DRM, 0x4516ec41, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3); - - -/* Create a Direct3DRM API */ -STDAPI Direct3DRMCreate(LPDIRECT3DRM FAR *lplpDirect3DRM); - -#undef INTERFACE -#define INTERFACE IDirect3DRM - -DECLARE_INTERFACE_(IDirect3DRM, IUnknown) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD(CreateObject) - (THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID FAR* ppv) PURE; - STDMETHOD(CreateFrame) (THIS_ LPDIRECT3DRMFRAME, LPDIRECT3DRMFRAME *) PURE; - STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *) PURE; - STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER *) PURE; - STDMETHOD(CreateFace) (THIS_ LPDIRECT3DRMFACE *) PURE; - STDMETHOD(CreateAnimation) (THIS_ LPDIRECT3DRMANIMATION *) PURE; - STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET *) PURE; - STDMETHOD(CreateTexture) (THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE *) PURE; - STDMETHOD(CreateLight) (THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE; - STDMETHOD(CreateLightRGB) - (THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE; - STDMETHOD(CreateMaterial) (THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL *) PURE; - STDMETHOD(CreateDevice) (THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE *) PURE; - - /* Create a Windows Device using DirectDraw surfaces */ - STDMETHOD(CreateDeviceFromSurface) - ( THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD, - LPDIRECTDRAWSURFACE lpDDSBack, LPDIRECT3DRMDEVICE * - ) PURE; - - /* Create a Windows Device using D3D objects */ - STDMETHOD(CreateDeviceFromD3D) - ( THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev, - LPDIRECT3DRMDEVICE * - ) PURE; - - STDMETHOD(CreateDeviceFromClipper) - ( THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, - int width, int height, LPDIRECT3DRMDEVICE *) PURE; - - STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS, LPDIRECT3DRMTEXTURE *) PURE; - - STDMETHOD(CreateShadow) - ( THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMLIGHT, - D3DVALUE px, D3DVALUE py, D3DVALUE pz, - D3DVALUE nx, D3DVALUE ny, D3DVALUE nz, - LPDIRECT3DRMVISUAL * - ) PURE; - STDMETHOD(CreateViewport) - ( THIS_ LPDIRECT3DRMDEVICE, LPDIRECT3DRMFRAME, DWORD, DWORD, - DWORD, DWORD, LPDIRECT3DRMVIEWPORT * - ) PURE; - STDMETHOD(CreateWrap) - ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME, - D3DVALUE ox, D3DVALUE oy, D3DVALUE oz, - D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, - D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, - D3DVALUE ou, D3DVALUE ov, - D3DVALUE su, D3DVALUE sv, - LPDIRECT3DRMWRAP * - ) PURE; - STDMETHOD(CreateUserVisual) (THIS_ D3DRMUSERVISUALCALLBACK, LPVOID lPArg, LPDIRECT3DRMUSERVISUAL *) PURE; - STDMETHOD(LoadTexture) (THIS_ const char *, LPDIRECT3DRMTEXTURE *) PURE; - STDMETHOD(LoadTextureFromResource) (THIS_ HRSRC rs, LPDIRECT3DRMTEXTURE *) PURE; - - STDMETHOD(SetSearchPath) (THIS_ LPCSTR) PURE; - STDMETHOD(AddSearchPath) (THIS_ LPCSTR) PURE; - STDMETHOD(GetSearchPath) (THIS_ DWORD *size_return, LPSTR path_return) PURE; - STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE; - STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE; - - STDMETHOD(GetDevices) (THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE; - STDMETHOD(GetNamedObject) (THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE; - - STDMETHOD(EnumerateObjects) (THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE; - - STDMETHOD(Load) - ( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS, - D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURECALLBACK, LPVOID, - LPDIRECT3DRMFRAME - ) PURE; - STDMETHOD(Tick) (THIS_ D3DVALUE) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRM2 - -DECLARE_INTERFACE_(IDirect3DRM2, IUnknown) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD(CreateObject) - (THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID FAR* ppv) PURE; - STDMETHOD(CreateFrame) (THIS_ LPDIRECT3DRMFRAME, LPDIRECT3DRMFRAME2 *) PURE; - STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *) PURE; - STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER2 *) PURE; - STDMETHOD(CreateFace) (THIS_ LPDIRECT3DRMFACE *) PURE; - STDMETHOD(CreateAnimation) (THIS_ LPDIRECT3DRMANIMATION *) PURE; - STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET *) PURE; - STDMETHOD(CreateTexture) (THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE2 *) PURE; - STDMETHOD(CreateLight) (THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE; - STDMETHOD(CreateLightRGB) - (THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE; - STDMETHOD(CreateMaterial) (THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL *) PURE; - STDMETHOD(CreateDevice) (THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE2 *) PURE; - - /* Create a Windows Device using DirectDraw surfaces */ - STDMETHOD(CreateDeviceFromSurface) - ( THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD, - LPDIRECTDRAWSURFACE lpDDSBack, LPDIRECT3DRMDEVICE2 * - ) PURE; - - /* Create a Windows Device using D3D objects */ - STDMETHOD(CreateDeviceFromD3D) - ( THIS_ LPDIRECT3D2 lpD3D, LPDIRECT3DDEVICE2 lpD3DDev, - LPDIRECT3DRMDEVICE2 * - ) PURE; - - STDMETHOD(CreateDeviceFromClipper) - ( THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, - int width, int height, LPDIRECT3DRMDEVICE2 *) PURE; - - STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS, LPDIRECT3DRMTEXTURE2 *) PURE; - - STDMETHOD(CreateShadow) - ( THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMLIGHT, - D3DVALUE px, D3DVALUE py, D3DVALUE pz, - D3DVALUE nx, D3DVALUE ny, D3DVALUE nz, - LPDIRECT3DRMVISUAL * - ) PURE; - STDMETHOD(CreateViewport) - ( THIS_ LPDIRECT3DRMDEVICE, LPDIRECT3DRMFRAME, DWORD, DWORD, - DWORD, DWORD, LPDIRECT3DRMVIEWPORT * - ) PURE; - STDMETHOD(CreateWrap) - ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME, - D3DVALUE ox, D3DVALUE oy, D3DVALUE oz, - D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, - D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, - D3DVALUE ou, D3DVALUE ov, - D3DVALUE su, D3DVALUE sv, - LPDIRECT3DRMWRAP * - ) PURE; - STDMETHOD(CreateUserVisual) (THIS_ D3DRMUSERVISUALCALLBACK, LPVOID lPArg, LPDIRECT3DRMUSERVISUAL *) PURE; - STDMETHOD(LoadTexture) (THIS_ const char *, LPDIRECT3DRMTEXTURE2 *) PURE; - STDMETHOD(LoadTextureFromResource) (THIS_ HMODULE hModule, LPCTSTR strName, LPCTSTR strType, LPDIRECT3DRMTEXTURE2 *) PURE; - - STDMETHOD(SetSearchPath) (THIS_ LPCSTR) PURE; - STDMETHOD(AddSearchPath) (THIS_ LPCSTR) PURE; - STDMETHOD(GetSearchPath) (THIS_ DWORD *size_return, LPSTR path_return) PURE; - STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE; - STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE; - - STDMETHOD(GetDevices) (THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE; - STDMETHOD(GetNamedObject) (THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE; - - STDMETHOD(EnumerateObjects) (THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE; - - STDMETHOD(Load) - ( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS, - D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURECALLBACK, LPVOID, - LPDIRECT3DRMFRAME - ) PURE; - STDMETHOD(Tick) (THIS_ D3DVALUE) PURE; - - STDMETHOD(CreateProgressiveMesh)(THIS_ LPDIRECT3DRMPROGRESSIVEMESH *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRM3 - -DECLARE_INTERFACE_(IDirect3DRM3, IUnknown) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD(CreateObject) - (THIS_ REFCLSID rclsid, LPUNKNOWN pUnkOuter, REFIID riid, LPVOID FAR* ppv) PURE; - STDMETHOD(CreateFrame) (THIS_ LPDIRECT3DRMFRAME3, LPDIRECT3DRMFRAME3 *) PURE; - STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *) PURE; - STDMETHOD(CreateMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER3 *) PURE; - STDMETHOD(CreateFace) (THIS_ LPDIRECT3DRMFACE2 *) PURE; - STDMETHOD(CreateAnimation) (THIS_ LPDIRECT3DRMANIMATION2 *) PURE; - STDMETHOD(CreateAnimationSet)(THIS_ LPDIRECT3DRMANIMATIONSET2 *) PURE; - STDMETHOD(CreateTexture) (THIS_ LPD3DRMIMAGE, LPDIRECT3DRMTEXTURE3 *) PURE; - STDMETHOD(CreateLight) (THIS_ D3DRMLIGHTTYPE, D3DCOLOR, LPDIRECT3DRMLIGHT *) PURE; - STDMETHOD(CreateLightRGB) - (THIS_ D3DRMLIGHTTYPE, D3DVALUE, D3DVALUE, D3DVALUE, LPDIRECT3DRMLIGHT *) PURE; - STDMETHOD(CreateMaterial) (THIS_ D3DVALUE, LPDIRECT3DRMMATERIAL2 *) PURE; - STDMETHOD(CreateDevice) (THIS_ DWORD, DWORD, LPDIRECT3DRMDEVICE3 *) PURE; - - /* Create a Windows Device using DirectDraw surfaces */ - STDMETHOD(CreateDeviceFromSurface) - ( THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD, - LPDIRECTDRAWSURFACE lpDDSBack, DWORD dwFlags, LPDIRECT3DRMDEVICE3 * - ) PURE; - - /* Create a Windows Device using D3D objects */ - STDMETHOD(CreateDeviceFromD3D) - ( THIS_ LPDIRECT3D2 lpD3D, LPDIRECT3DDEVICE2 lpD3DDev, - LPDIRECT3DRMDEVICE3 * - ) PURE; - - STDMETHOD(CreateDeviceFromClipper) - ( THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, - int width, int height, LPDIRECT3DRMDEVICE3 *) PURE; - - STDMETHOD(CreateTextureFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS, LPDIRECT3DRMTEXTURE3 *) PURE; - - STDMETHOD(CreateShadow) - ( THIS_ LPUNKNOWN, LPDIRECT3DRMLIGHT, - D3DVALUE px, D3DVALUE py, D3DVALUE pz, - D3DVALUE nx, D3DVALUE ny, D3DVALUE nz, - LPDIRECT3DRMSHADOW2 * - ) PURE; - STDMETHOD(CreateViewport) - ( THIS_ LPDIRECT3DRMDEVICE3, LPDIRECT3DRMFRAME3, DWORD, DWORD, - DWORD, DWORD, LPDIRECT3DRMVIEWPORT2 * - ) PURE; - STDMETHOD(CreateWrap) - ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME3, - D3DVALUE ox, D3DVALUE oy, D3DVALUE oz, - D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, - D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, - D3DVALUE ou, D3DVALUE ov, - D3DVALUE su, D3DVALUE sv, - LPDIRECT3DRMWRAP * - ) PURE; - STDMETHOD(CreateUserVisual) (THIS_ D3DRMUSERVISUALCALLBACK, LPVOID lPArg, LPDIRECT3DRMUSERVISUAL *) PURE; - STDMETHOD(LoadTexture) (THIS_ const char *, LPDIRECT3DRMTEXTURE3 *) PURE; - STDMETHOD(LoadTextureFromResource) (THIS_ HMODULE hModule, LPCTSTR strName, LPCTSTR strType, LPDIRECT3DRMTEXTURE3 *) PURE; - - STDMETHOD(SetSearchPath) (THIS_ LPCSTR) PURE; - STDMETHOD(AddSearchPath) (THIS_ LPCSTR) PURE; - STDMETHOD(GetSearchPath) (THIS_ DWORD *size_return, LPSTR path_return) PURE; - STDMETHOD(SetDefaultTextureColors)(THIS_ DWORD) PURE; - STDMETHOD(SetDefaultTextureShades)(THIS_ DWORD) PURE; - - STDMETHOD(GetDevices) (THIS_ LPDIRECT3DRMDEVICEARRAY *) PURE; - STDMETHOD(GetNamedObject) (THIS_ const char *, LPDIRECT3DRMOBJECT *) PURE; - - STDMETHOD(EnumerateObjects) (THIS_ D3DRMOBJECTCALLBACK, LPVOID) PURE; - - STDMETHOD(Load) - ( THIS_ LPVOID, LPVOID, LPIID *, DWORD, D3DRMLOADOPTIONS, - D3DRMLOADCALLBACK, LPVOID, D3DRMLOADTEXTURE3CALLBACK, LPVOID, - LPDIRECT3DRMFRAME3 - ) PURE; - STDMETHOD(Tick) (THIS_ D3DVALUE) PURE; - - STDMETHOD(CreateProgressiveMesh)(THIS_ LPDIRECT3DRMPROGRESSIVEMESH *) PURE; - - /* Used with IDirect3DRMObject2 */ - STDMETHOD(RegisterClient) (THIS_ REFGUID rguid, LPDWORD lpdwID) PURE; - STDMETHOD(UnregisterClient) (THIS_ REFGUID rguid) PURE; - - STDMETHOD(CreateClippedVisual) (THIS_ LPDIRECT3DRMVISUAL, LPDIRECT3DRMCLIPPEDVISUAL *) PURE; - STDMETHOD(SetOptions) (THIS_ DWORD); - STDMETHOD(GetOptions) (THIS_ LPDWORD); -}; - -#define D3DRM_OK DD_OK -#define D3DRMERR_BADOBJECT MAKE_DDHRESULT(781) -#define D3DRMERR_BADTYPE MAKE_DDHRESULT(782) -#define D3DRMERR_BADALLOC MAKE_DDHRESULT(783) -#define D3DRMERR_FACEUSED MAKE_DDHRESULT(784) -#define D3DRMERR_NOTFOUND MAKE_DDHRESULT(785) -#define D3DRMERR_NOTDONEYET MAKE_DDHRESULT(786) -#define D3DRMERR_FILENOTFOUND MAKE_DDHRESULT(787) -#define D3DRMERR_BADFILE MAKE_DDHRESULT(788) -#define D3DRMERR_BADDEVICE MAKE_DDHRESULT(789) -#define D3DRMERR_BADVALUE MAKE_DDHRESULT(790) -#define D3DRMERR_BADMAJORVERSION MAKE_DDHRESULT(791) -#define D3DRMERR_BADMINORVERSION MAKE_DDHRESULT(792) -#define D3DRMERR_UNABLETOEXECUTE MAKE_DDHRESULT(793) -#define D3DRMERR_LIBRARYNOTFOUND MAKE_DDHRESULT(794) -#define D3DRMERR_INVALIDLIBRARY MAKE_DDHRESULT(795) -#define D3DRMERR_PENDING MAKE_DDHRESULT(796) -#define D3DRMERR_NOTENOUGHDATA MAKE_DDHRESULT(797) -#define D3DRMERR_REQUESTTOOLARGE MAKE_DDHRESULT(798) -#define D3DRMERR_REQUESTTOOSMALL MAKE_DDHRESULT(799) -#define D3DRMERR_CONNECTIONLOST MAKE_DDHRESULT(800) -#define D3DRMERR_LOADABORTED MAKE_DDHRESULT(801) -#define D3DRMERR_NOINTERNET MAKE_DDHRESULT(802) -#define D3DRMERR_BADCACHEFILE MAKE_DDHRESULT(803) -#define D3DRMERR_BOXNOTSET MAKE_DDHRESULT(804) -#define D3DRMERR_BADPMDATA MAKE_DDHRESULT(805) -#define D3DRMERR_CLIENTNOTREGISTERED MAKE_DDHRESULT(806) -#define D3DRMERR_NOTCREATEDFROMDDS MAKE_DDHRESULT(807) -#define D3DRMERR_NOSUCHKEY MAKE_DDHRESULT(808) -#define D3DRMERR_INCOMPATABLEKEY MAKE_DDHRESULT(809) -#define D3DRMERR_ELEMENTINUSE MAKE_DDHRESULT(810) -#define D3DRMERR_TEXTUREFORMATNOTFOUND MAKE_DDHRESULT(811) -#define D3DRMERR_NOTAGGREGATED MAKE_DDHRESULT(812) - -#ifdef __cplusplus -}; -#endif - -#endif /* _D3DRMAPI_H_ */ - - diff --git a/sdk/dx8sdk/Include/d3drmdef.h b/sdk/dx8sdk/Include/d3drmdef.h deleted file mode 100644 index 9da4b18a..00000000 --- a/sdk/dx8sdk/Include/d3drmdef.h +++ /dev/null @@ -1,695 +0,0 @@ -/*==========================================================================; - * - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * File: d3drm.h - * Content: Direct3DRM include file - * - ***************************************************************************/ - -#ifndef __D3DRMDEFS_H__ -#define __D3DRMDEFS_H__ - -#include -#include "d3dtypes.h" - -#ifdef WIN32 -#define D3DRMAPI __stdcall -#else -#define D3DRMAPI -#endif - -#if defined(__cplusplus) -extern "C" { -#endif - -#ifndef TRUE -#define FALSE 0 -#define TRUE 1 -#endif - -typedef struct _D3DRMVECTOR4D -{ D3DVALUE x, y, z, w; -} D3DRMVECTOR4D, *LPD3DRMVECTOR4D; - -typedef D3DVALUE D3DRMMATRIX4D[4][4]; - -typedef struct _D3DRMQUATERNION -{ D3DVALUE s; - D3DVECTOR v; -} D3DRMQUATERNION, *LPD3DRMQUATERNION; - -typedef struct _D3DRMRAY -{ D3DVECTOR dvDir; - D3DVECTOR dvPos; -} D3DRMRAY, *LPD3DRMRAY; - -typedef struct _D3DRMBOX -{ D3DVECTOR min, max; -} D3DRMBOX, *LPD3DRMBOX; - -typedef void (*D3DRMWRAPCALLBACK) - (LPD3DVECTOR, int* u, int* v, LPD3DVECTOR a, LPD3DVECTOR b, LPVOID); - -typedef enum _D3DRMLIGHTTYPE -{ D3DRMLIGHT_AMBIENT, - D3DRMLIGHT_POINT, - D3DRMLIGHT_SPOT, - D3DRMLIGHT_DIRECTIONAL, - D3DRMLIGHT_PARALLELPOINT -} D3DRMLIGHTTYPE, *LPD3DRMLIGHTTYPE; - -typedef enum _D3DRMSHADEMODE { - D3DRMSHADE_FLAT = 0, - D3DRMSHADE_GOURAUD = 1, - D3DRMSHADE_PHONG = 2, - - D3DRMSHADE_MASK = 7, - D3DRMSHADE_MAX = 8 -} D3DRMSHADEMODE, *LPD3DRMSHADEMODE; - -typedef enum _D3DRMLIGHTMODE { - D3DRMLIGHT_OFF = 0 * D3DRMSHADE_MAX, - D3DRMLIGHT_ON = 1 * D3DRMSHADE_MAX, - - D3DRMLIGHT_MASK = 7 * D3DRMSHADE_MAX, - D3DRMLIGHT_MAX = 8 * D3DRMSHADE_MAX -} D3DRMLIGHTMODE, *LPD3DRMLIGHTMODE; - -typedef enum _D3DRMFILLMODE { - D3DRMFILL_POINTS = 0 * D3DRMLIGHT_MAX, - D3DRMFILL_WIREFRAME = 1 * D3DRMLIGHT_MAX, - D3DRMFILL_SOLID = 2 * D3DRMLIGHT_MAX, - - D3DRMFILL_MASK = 7 * D3DRMLIGHT_MAX, - D3DRMFILL_MAX = 8 * D3DRMLIGHT_MAX -} D3DRMFILLMODE, *LPD3DRMFILLMODE; - -typedef DWORD D3DRMRENDERQUALITY, *LPD3DRMRENDERQUALITY; - -#define D3DRMRENDER_WIREFRAME (D3DRMSHADE_FLAT+D3DRMLIGHT_OFF+D3DRMFILL_WIREFRAME) -#define D3DRMRENDER_UNLITFLAT (D3DRMSHADE_FLAT+D3DRMLIGHT_OFF+D3DRMFILL_SOLID) -#define D3DRMRENDER_FLAT (D3DRMSHADE_FLAT+D3DRMLIGHT_ON+D3DRMFILL_SOLID) -#define D3DRMRENDER_GOURAUD (D3DRMSHADE_GOURAUD+D3DRMLIGHT_ON+D3DRMFILL_SOLID) -#define D3DRMRENDER_PHONG (D3DRMSHADE_PHONG+D3DRMLIGHT_ON+D3DRMFILL_SOLID) - -#define D3DRMRENDERMODE_BLENDEDTRANSPARENCY 1 -#define D3DRMRENDERMODE_SORTEDTRANSPARENCY 2 -#define D3DRMRENDERMODE_LIGHTINMODELSPACE 8 -#define D3DRMRENDERMODE_VIEWDEPENDENTSPECULAR 16 -#define D3DRMRENDERMODE_DISABLESORTEDALPHAZWRITE 32 - -typedef enum _D3DRMTEXTUREQUALITY -{ D3DRMTEXTURE_NEAREST, /* choose nearest texel */ - D3DRMTEXTURE_LINEAR, /* interpolate 4 texels */ - D3DRMTEXTURE_MIPNEAREST, /* nearest texel in nearest mipmap */ - D3DRMTEXTURE_MIPLINEAR, /* interpolate 2 texels from 2 mipmaps */ - D3DRMTEXTURE_LINEARMIPNEAREST, /* interpolate 4 texels in nearest mipmap */ - D3DRMTEXTURE_LINEARMIPLINEAR /* interpolate 8 texels from 2 mipmaps */ -} D3DRMTEXTUREQUALITY, *LPD3DRMTEXTUREQUALITY; - -/* - * Texture flags - */ -#define D3DRMTEXTURE_FORCERESIDENT 0x00000001 /* texture should be kept in video memory */ -#define D3DRMTEXTURE_STATIC 0x00000002 /* texture will not change */ -#define D3DRMTEXTURE_DOWNSAMPLEPOINT 0x00000004 /* point filtering should be used when downsampling */ -#define D3DRMTEXTURE_DOWNSAMPLEBILINEAR 0x00000008 /* bilinear filtering should be used when downsampling */ -#define D3DRMTEXTURE_DOWNSAMPLEREDUCEDEPTH 0x00000010 /* reduce bit depth when downsampling */ -#define D3DRMTEXTURE_DOWNSAMPLENONE 0x00000020 /* texture should never be downsampled */ -#define D3DRMTEXTURE_CHANGEDPIXELS 0x00000040 /* pixels have changed */ -#define D3DRMTEXTURE_CHANGEDPALETTE 0x00000080 /* palette has changed */ -#define D3DRMTEXTURE_INVALIDATEONLY 0x00000100 /* dirty regions are invalid */ - -/* - * Shadow flags - */ -#define D3DRMSHADOW_TRUEALPHA 0x00000001 /* shadow should render without artifacts when true alpha is on */ - -typedef enum _D3DRMCOMBINETYPE -{ D3DRMCOMBINE_REPLACE, - D3DRMCOMBINE_BEFORE, - D3DRMCOMBINE_AFTER -} D3DRMCOMBINETYPE, *LPD3DRMCOMBINETYPE; - -typedef D3DCOLORMODEL D3DRMCOLORMODEL, *LPD3DRMCOLORMODEL; - -typedef enum _D3DRMPALETTEFLAGS -{ D3DRMPALETTE_FREE, /* renderer may use this entry freely */ - D3DRMPALETTE_READONLY, /* fixed but may be used by renderer */ - D3DRMPALETTE_RESERVED /* may not be used by renderer */ -} D3DRMPALETTEFLAGS, *LPD3DRMPALETTEFLAGS; - -typedef struct _D3DRMPALETTEENTRY -{ unsigned char red; /* 0 .. 255 */ - unsigned char green; /* 0 .. 255 */ - unsigned char blue; /* 0 .. 255 */ - unsigned char flags; /* one of D3DRMPALETTEFLAGS */ -} D3DRMPALETTEENTRY, *LPD3DRMPALETTEENTRY; - -typedef struct _D3DRMIMAGE -{ int width, height; /* width and height in pixels */ - int aspectx, aspecty; /* aspect ratio for non-square pixels */ - int depth; /* bits per pixel */ - int rgb; /* if false, pixels are indices into a - palette otherwise, pixels encode - RGB values. */ - int bytes_per_line; /* number of bytes of memory for a - scanline. This must be a multiple - of 4. */ - void* buffer1; /* memory to render into (first buffer). */ - void* buffer2; /* second rendering buffer for double - buffering, set to NULL for single - buffering. */ - unsigned long red_mask; - unsigned long green_mask; - unsigned long blue_mask; - unsigned long alpha_mask; /* if rgb is true, these are masks for - the red, green and blue parts of a - pixel. Otherwise, these are masks - for the significant bits of the - red, green and blue elements in the - palette. For instance, most SVGA - displays use 64 intensities of red, - green and blue, so the masks should - all be set to 0xfc. */ - int palette_size; /* number of entries in palette */ - D3DRMPALETTEENTRY* palette; /* description of the palette (only if - rgb is false). Must be (1< /* Use Windows header files */ -#define VIRTUAL -#include "d3drmdef.h" - -#include "d3d.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * The methods for IUnknown - */ -#define IUNKNOWN_METHODS(kind) \ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) kind; \ - STDMETHOD_(ULONG, AddRef) (THIS) kind; \ - STDMETHOD_(ULONG, Release) (THIS) kind - -/* - * The methods for IDirect3DRMObject - */ -#define IDIRECT3DRMOBJECT_METHODS(kind) \ - STDMETHOD(Clone) (THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) kind; \ - STDMETHOD(AddDestroyCallback) (THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) kind; \ - STDMETHOD(DeleteDestroyCallback) (THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) kind; \ - STDMETHOD(SetAppData) (THIS_ DWORD data) kind; \ - STDMETHOD_(DWORD, GetAppData) (THIS) kind; \ - STDMETHOD(SetName) (THIS_ LPCSTR) kind; \ - STDMETHOD(GetName) (THIS_ LPDWORD lpdwSize, LPSTR lpName) kind; \ - STDMETHOD(GetClassName) (THIS_ LPDWORD lpdwSize, LPSTR lpName) kind - - -#define WIN_TYPES(itype, ptype) \ - typedef interface itype FAR *LP##ptype, FAR **LPLP##ptype - -WIN_TYPES(IDirect3DRMObject, DIRECT3DRMOBJECT); -WIN_TYPES(IDirect3DRMObject2, DIRECT3DRMOBJECT2); -WIN_TYPES(IDirect3DRMDevice, DIRECT3DRMDEVICE); -WIN_TYPES(IDirect3DRMDevice2, DIRECT3DRMDEVICE2); -WIN_TYPES(IDirect3DRMDevice3, DIRECT3DRMDEVICE3); -WIN_TYPES(IDirect3DRMViewport, DIRECT3DRMVIEWPORT); -WIN_TYPES(IDirect3DRMViewport2, DIRECT3DRMVIEWPORT2); -WIN_TYPES(IDirect3DRMFrame, DIRECT3DRMFRAME); -WIN_TYPES(IDirect3DRMFrame2, DIRECT3DRMFRAME2); -WIN_TYPES(IDirect3DRMFrame3, DIRECT3DRMFRAME3); -WIN_TYPES(IDirect3DRMVisual, DIRECT3DRMVISUAL); -WIN_TYPES(IDirect3DRMMesh, DIRECT3DRMMESH); -WIN_TYPES(IDirect3DRMMeshBuilder, DIRECT3DRMMESHBUILDER); -WIN_TYPES(IDirect3DRMMeshBuilder2, DIRECT3DRMMESHBUILDER2); -WIN_TYPES(IDirect3DRMMeshBuilder3, DIRECT3DRMMESHBUILDER3); -WIN_TYPES(IDirect3DRMFace, DIRECT3DRMFACE); -WIN_TYPES(IDirect3DRMFace2, DIRECT3DRMFACE2); -WIN_TYPES(IDirect3DRMLight, DIRECT3DRMLIGHT); -WIN_TYPES(IDirect3DRMTexture, DIRECT3DRMTEXTURE); -WIN_TYPES(IDirect3DRMTexture2, DIRECT3DRMTEXTURE2); -WIN_TYPES(IDirect3DRMTexture3, DIRECT3DRMTEXTURE3); -WIN_TYPES(IDirect3DRMWrap, DIRECT3DRMWRAP); -WIN_TYPES(IDirect3DRMMaterial, DIRECT3DRMMATERIAL); -WIN_TYPES(IDirect3DRMMaterial2, DIRECT3DRMMATERIAL2); -WIN_TYPES(IDirect3DRMInterpolator, DIRECT3DRMINTERPOLATOR); -WIN_TYPES(IDirect3DRMAnimation, DIRECT3DRMANIMATION); -WIN_TYPES(IDirect3DRMAnimation2, DIRECT3DRMANIMATION2); -WIN_TYPES(IDirect3DRMAnimationSet, DIRECT3DRMANIMATIONSET); -WIN_TYPES(IDirect3DRMAnimationSet2, DIRECT3DRMANIMATIONSET2); -WIN_TYPES(IDirect3DRMUserVisual, DIRECT3DRMUSERVISUAL); -WIN_TYPES(IDirect3DRMShadow, DIRECT3DRMSHADOW); -WIN_TYPES(IDirect3DRMShadow2, DIRECT3DRMSHADOW2); -WIN_TYPES(IDirect3DRMArray, DIRECT3DRMARRAY); -WIN_TYPES(IDirect3DRMObjectArray, DIRECT3DRMOBJECTARRAY); -WIN_TYPES(IDirect3DRMDeviceArray, DIRECT3DRMDEVICEARRAY); -WIN_TYPES(IDirect3DRMFaceArray, DIRECT3DRMFACEARRAY); -WIN_TYPES(IDirect3DRMViewportArray, DIRECT3DRMVIEWPORTARRAY); -WIN_TYPES(IDirect3DRMFrameArray, DIRECT3DRMFRAMEARRAY); -WIN_TYPES(IDirect3DRMAnimationArray, DIRECT3DRMANIMATIONARRAY); -WIN_TYPES(IDirect3DRMVisualArray, DIRECT3DRMVISUALARRAY); -WIN_TYPES(IDirect3DRMPickedArray, DIRECT3DRMPICKEDARRAY); -WIN_TYPES(IDirect3DRMPicked2Array, DIRECT3DRMPICKED2ARRAY); -WIN_TYPES(IDirect3DRMLightArray, DIRECT3DRMLIGHTARRAY); -WIN_TYPES(IDirect3DRMProgressiveMesh, DIRECT3DRMPROGRESSIVEMESH); -WIN_TYPES(IDirect3DRMClippedVisual, DIRECT3DRMCLIPPEDVISUAL); - -/* - * Direct3DRM Object classes - */ -DEFINE_GUID(CLSID_CDirect3DRMDevice, 0x4fa3568e, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMViewport, 0x4fa3568f, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMFrame, 0x4fa35690, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMMesh, 0x4fa35691, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMMeshBuilder, 0x4fa35692, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMFace, 0x4fa35693, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMLight, 0x4fa35694, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMTexture, 0x4fa35695, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMWrap, 0x4fa35696, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMMaterial, 0x4fa35697, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMAnimation, 0x4fa35698, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMAnimationSet, 0x4fa35699, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMUserVisual, 0x4fa3569a, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMShadow, 0x4fa3569b, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(CLSID_CDirect3DRMViewportInterpolator, -0xde9eaa1, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(CLSID_CDirect3DRMFrameInterpolator, -0xde9eaa2, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(CLSID_CDirect3DRMMeshInterpolator, -0xde9eaa3, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(CLSID_CDirect3DRMLightInterpolator, -0xde9eaa6, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(CLSID_CDirect3DRMMaterialInterpolator, -0xde9eaa7, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(CLSID_CDirect3DRMTextureInterpolator, -0xde9eaa8, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(CLSID_CDirect3DRMProgressiveMesh, 0x4516ec40, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(CLSID_CDirect3DRMClippedVisual, 0x5434e72d, 0x6d66, 0x11d1, 0xbb, 0xb, 0x0, 0x0, 0xf8, 0x75, 0x86, 0x5a); - - -/* - * Direct3DRM Object interfaces - */ -DEFINE_GUID(IID_IDirect3DRMObject, 0xeb16cb00, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMObject2, 0x4516ec7c, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(IID_IDirect3DRMDevice, 0xe9e19280, 0x6e05, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMDevice2, 0x4516ec78, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(IID_IDirect3DRMDevice3, 0x549f498b, 0xbfeb, 0x11d1, 0x8e, 0xd8, 0x0, 0xa0, 0xc9, 0x67, 0xa4, 0x82); -DEFINE_GUID(IID_IDirect3DRMViewport, 0xeb16cb02, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMViewport2, 0x4a1b1be6, 0xbfed, 0x11d1, 0x8e, 0xd8, 0x0, 0xa0, 0xc9, 0x67, 0xa4, 0x82); -DEFINE_GUID(IID_IDirect3DRMFrame, 0xeb16cb03, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMFrame2, 0xc3dfbd60, 0x3988, 0x11d0, 0x9e, 0xc2, 0x0, 0x0, 0xc0, 0x29, 0x1a, 0xc3); -DEFINE_GUID(IID_IDirect3DRMFrame3, 0xff6b7f70, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66); -DEFINE_GUID(IID_IDirect3DRMVisual, 0xeb16cb04, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMMesh, 0xa3a80d01, 0x6e12, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMMeshBuilder, 0xa3a80d02, 0x6e12, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMMeshBuilder2, 0x4516ec77, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(IID_IDirect3DRMMeshBuilder3, 0x4516ec82, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(IID_IDirect3DRMFace, 0xeb16cb07, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMFace2, 0x4516ec81, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(IID_IDirect3DRMLight, 0xeb16cb08, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMTexture, 0xeb16cb09, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMTexture2, 0x120f30c0, 0x1629, 0x11d0, 0x94, 0x1c, 0x0, 0x80, 0xc8, 0xc, 0xfa, 0x7b); -DEFINE_GUID(IID_IDirect3DRMTexture3, 0xff6b7f73, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66); -DEFINE_GUID(IID_IDirect3DRMWrap, 0xeb16cb0a, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMMaterial, 0xeb16cb0b, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMMaterial2, 0xff6b7f75, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66); -DEFINE_GUID(IID_IDirect3DRMAnimation, 0xeb16cb0d, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMAnimation2, 0xff6b7f77, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66); -DEFINE_GUID(IID_IDirect3DRMAnimationSet, 0xeb16cb0e, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMAnimationSet2, 0xff6b7f79, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66); -DEFINE_GUID(IID_IDirect3DRMObjectArray, 0x242f6bc2, 0x3849, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(IID_IDirect3DRMDeviceArray, 0xeb16cb10, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMViewportArray, 0xeb16cb11, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMFrameArray, 0xeb16cb12, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMVisualArray, 0xeb16cb13, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMLightArray, 0xeb16cb14, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMPickedArray, 0xeb16cb16, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMFaceArray, 0xeb16cb17, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMAnimationArray, -0xd5f1cae0, 0x4bd7, 0x11d1, 0xb9, 0x74, 0x0, 0x60, 0x8, 0x3e, 0x45, 0xf3); -DEFINE_GUID(IID_IDirect3DRMUserVisual, 0x59163de0, 0x6d43, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMShadow, 0xaf359780, 0x6ba3, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); -DEFINE_GUID(IID_IDirect3DRMShadow2, 0x86b44e25, 0x9c82, 0x11d1, 0xbb, 0xb, 0x0, 0xa0, 0xc9, 0x81, 0xa0, 0xa6); -DEFINE_GUID(IID_IDirect3DRMInterpolator, 0x242f6bc1, 0x3849, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(IID_IDirect3DRMProgressiveMesh, 0x4516ec79, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(IID_IDirect3DRMPicked2Array, 0x4516ec7b, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3); -DEFINE_GUID(IID_IDirect3DRMClippedVisual, 0x5434e733, 0x6d66, 0x11d1, 0xbb, 0xb, 0x0, 0x0, 0xf8, 0x75, 0x86, 0x5a); - -typedef void (__cdecl *D3DRMOBJECTCALLBACK)(LPDIRECT3DRMOBJECT obj, LPVOID arg); -typedef void (__cdecl *D3DRMFRAMEMOVECALLBACK)(LPDIRECT3DRMFRAME obj, LPVOID arg, D3DVALUE delta); -typedef void (__cdecl *D3DRMFRAME3MOVECALLBACK)(LPDIRECT3DRMFRAME3 obj, LPVOID arg, D3DVALUE delta); -typedef void (__cdecl *D3DRMUPDATECALLBACK)(LPDIRECT3DRMDEVICE obj, LPVOID arg, int, LPD3DRECT); -typedef void (__cdecl *D3DRMDEVICE3UPDATECALLBACK)(LPDIRECT3DRMDEVICE3 obj, LPVOID arg, int, LPD3DRECT); -typedef int (__cdecl *D3DRMUSERVISUALCALLBACK) - ( LPDIRECT3DRMUSERVISUAL obj, LPVOID arg, D3DRMUSERVISUALREASON reason, - LPDIRECT3DRMDEVICE dev, LPDIRECT3DRMVIEWPORT view - ); -typedef HRESULT (__cdecl *D3DRMLOADTEXTURECALLBACK) - (char *tex_name, void *arg, LPDIRECT3DRMTEXTURE *); -typedef HRESULT (__cdecl *D3DRMLOADTEXTURE3CALLBACK) - (char *tex_name, void *arg, LPDIRECT3DRMTEXTURE3 *); -typedef void (__cdecl *D3DRMLOADCALLBACK) - (LPDIRECT3DRMOBJECT object, REFIID objectguid, LPVOID arg); - -typedef HRESULT (__cdecl *D3DRMDOWNSAMPLECALLBACK) - (LPDIRECT3DRMTEXTURE3 lpDirect3DRMTexture, LPVOID pArg, - LPDIRECTDRAWSURFACE pDDSSrc, LPDIRECTDRAWSURFACE pDDSDst); -typedef HRESULT (__cdecl *D3DRMVALIDATIONCALLBACK) - (LPDIRECT3DRMTEXTURE3 lpDirect3DRMTexture, LPVOID pArg, - DWORD dwFlags, DWORD dwcRects, LPRECT pRects); - - -typedef struct _D3DRMPICKDESC -{ - ULONG ulFaceIdx; - LONG lGroupIdx; - D3DVECTOR vPosition; - -} D3DRMPICKDESC, *LPD3DRMPICKDESC; - -typedef struct _D3DRMPICKDESC2 -{ - ULONG ulFaceIdx; - LONG lGroupIdx; - D3DVECTOR dvPosition; - D3DVALUE tu; - D3DVALUE tv; - D3DVECTOR dvNormal; - D3DCOLOR dcColor; - -} D3DRMPICKDESC2, *LPD3DRMPICKDESC2; - -#undef INTERFACE -#define INTERFACE IDirect3DRMObject - -/* - * Base class - */ -DECLARE_INTERFACE_(IDirect3DRMObject, IUnknown) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMObject2 - -DECLARE_INTERFACE_(IDirect3DRMObject2, IUnknown) -{ - IUNKNOWN_METHODS(PURE); - - /* - * IDirect3DRMObject2 methods - */ - STDMETHOD(AddDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK lpFunc, LPVOID pvArg) PURE; - STDMETHOD(Clone)(THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE; \ - STDMETHOD(DeleteDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK lpFunc, LPVOID pvArg) PURE; \ - STDMETHOD(GetClientData)(THIS_ DWORD dwID, LPVOID* lplpvData) PURE; - STDMETHOD(GetDirect3DRM)(THIS_ LPDIRECT3DRM* lplpDirect3DRM) PURE; - STDMETHOD(GetName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE; - STDMETHOD(SetClientData)(THIS_ DWORD dwID, LPVOID lpvData, DWORD dwFlags) PURE; - STDMETHOD(SetName)(THIS_ LPCSTR lpName) PURE; - STDMETHOD(GetAge)(THIS_ DWORD dwFlags, LPDWORD pdwAge) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMVisual - -DECLARE_INTERFACE_(IDirect3DRMVisual, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMDevice - -DECLARE_INTERFACE_(IDirect3DRMDevice, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMDevice methods - */ - STDMETHOD(Init)(THIS_ ULONG width, ULONG height) PURE; - STDMETHOD(InitFromD3D)(THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev) PURE; - STDMETHOD(InitFromClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, int width, int height) PURE; - - STDMETHOD(Update)(THIS) PURE; - STDMETHOD(AddUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE; - STDMETHOD(DeleteUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE; - STDMETHOD(SetBufferCount)(THIS_ DWORD) PURE; - STDMETHOD_(DWORD, GetBufferCount)(THIS) PURE; - - STDMETHOD(SetDither)(THIS_ BOOL) PURE; - STDMETHOD(SetShades)(THIS_ DWORD) PURE; - STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE; - STDMETHOD(SetTextureQuality)(THIS_ D3DRMTEXTUREQUALITY) PURE; - - STDMETHOD(GetViewports)(THIS_ LPDIRECT3DRMVIEWPORTARRAY *return_views) PURE; - - STDMETHOD_(BOOL, GetDither)(THIS) PURE; - STDMETHOD_(DWORD, GetShades)(THIS) PURE; - STDMETHOD_(DWORD, GetHeight)(THIS) PURE; - STDMETHOD_(DWORD, GetWidth)(THIS) PURE; - STDMETHOD_(DWORD, GetTrianglesDrawn)(THIS) PURE; - STDMETHOD_(DWORD, GetWireframeOptions)(THIS) PURE; - STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE; - STDMETHOD_(D3DCOLORMODEL, GetColorModel)(THIS) PURE; - STDMETHOD_(D3DRMTEXTUREQUALITY, GetTextureQuality)(THIS) PURE; - STDMETHOD(GetDirect3DDevice)(THIS_ LPDIRECT3DDEVICE *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMDevice2 - -DECLARE_INTERFACE_(IDirect3DRMDevice2, IDirect3DRMDevice) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMDevice methods - */ - STDMETHOD(Init)(THIS_ ULONG width, ULONG height) PURE; - STDMETHOD(InitFromD3D)(THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev) PURE; - STDMETHOD(InitFromClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, int width, int height) PURE; - - STDMETHOD(Update)(THIS) PURE; - STDMETHOD(AddUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE; - STDMETHOD(DeleteUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE; - STDMETHOD(SetBufferCount)(THIS_ DWORD) PURE; - STDMETHOD_(DWORD, GetBufferCount)(THIS) PURE; - - STDMETHOD(SetDither)(THIS_ BOOL) PURE; - STDMETHOD(SetShades)(THIS_ DWORD) PURE; - STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE; - STDMETHOD(SetTextureQuality)(THIS_ D3DRMTEXTUREQUALITY) PURE; - - STDMETHOD(GetViewports)(THIS_ LPDIRECT3DRMVIEWPORTARRAY *return_views) PURE; - - STDMETHOD_(BOOL, GetDither)(THIS) PURE; - STDMETHOD_(DWORD, GetShades)(THIS) PURE; - STDMETHOD_(DWORD, GetHeight)(THIS) PURE; - STDMETHOD_(DWORD, GetWidth)(THIS) PURE; - STDMETHOD_(DWORD, GetTrianglesDrawn)(THIS) PURE; - STDMETHOD_(DWORD, GetWireframeOptions)(THIS) PURE; - STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE; - STDMETHOD_(D3DCOLORMODEL, GetColorModel)(THIS) PURE; - STDMETHOD_(D3DRMTEXTUREQUALITY, GetTextureQuality)(THIS) PURE; - STDMETHOD(GetDirect3DDevice)(THIS_ LPDIRECT3DDEVICE *) PURE; - - /* - * IDirect3DRMDevice2 methods - */ - STDMETHOD(InitFromD3D2)(THIS_ LPDIRECT3D2 lpD3D, LPDIRECT3DDEVICE2 lpD3DDev) PURE; - STDMETHOD(InitFromSurface)(THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD, LPDIRECTDRAWSURFACE lpDDSBack) PURE; - STDMETHOD(SetRenderMode)(THIS_ DWORD dwFlags) PURE; - STDMETHOD_(DWORD, GetRenderMode)(THIS) PURE; - STDMETHOD(GetDirect3DDevice2)(THIS_ LPDIRECT3DDEVICE2 *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMDevice3 - -DECLARE_INTERFACE_(IDirect3DRMDevice3, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMDevice methods - */ - STDMETHOD(Init)(THIS_ ULONG width, ULONG height) PURE; - STDMETHOD(InitFromD3D)(THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev) PURE; - STDMETHOD(InitFromClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, int width, int height) PURE; - - STDMETHOD(Update)(THIS) PURE; - STDMETHOD(AddUpdateCallback)(THIS_ D3DRMDEVICE3UPDATECALLBACK, LPVOID arg) PURE; - STDMETHOD(DeleteUpdateCallback)(THIS_ D3DRMDEVICE3UPDATECALLBACK, LPVOID arg) PURE; - STDMETHOD(SetBufferCount)(THIS_ DWORD) PURE; - STDMETHOD_(DWORD, GetBufferCount)(THIS) PURE; - - STDMETHOD(SetDither)(THIS_ BOOL) PURE; - STDMETHOD(SetShades)(THIS_ DWORD) PURE; - STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE; - STDMETHOD(SetTextureQuality)(THIS_ D3DRMTEXTUREQUALITY) PURE; - - STDMETHOD(GetViewports)(THIS_ LPDIRECT3DRMVIEWPORTARRAY *return_views) PURE; - - STDMETHOD_(BOOL, GetDither)(THIS) PURE; - STDMETHOD_(DWORD, GetShades)(THIS) PURE; - STDMETHOD_(DWORD, GetHeight)(THIS) PURE; - STDMETHOD_(DWORD, GetWidth)(THIS) PURE; - STDMETHOD_(DWORD, GetTrianglesDrawn)(THIS) PURE; - STDMETHOD_(DWORD, GetWireframeOptions)(THIS) PURE; - STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE; - STDMETHOD_(D3DCOLORMODEL, GetColorModel)(THIS) PURE; - STDMETHOD_(D3DRMTEXTUREQUALITY, GetTextureQuality)(THIS) PURE; - STDMETHOD(GetDirect3DDevice)(THIS_ LPDIRECT3DDEVICE *) PURE; - - /* - * IDirect3DRMDevice2 methods - */ - STDMETHOD(InitFromD3D2)(THIS_ LPDIRECT3D2 lpD3D, LPDIRECT3DDEVICE2 lpD3DDev) PURE; - STDMETHOD(InitFromSurface)(THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD, LPDIRECTDRAWSURFACE lpDDSBack, DWORD dwFlags) PURE; - STDMETHOD(SetRenderMode)(THIS_ DWORD dwFlags) PURE; - STDMETHOD_(DWORD, GetRenderMode)(THIS) PURE; - STDMETHOD(GetDirect3DDevice2)(THIS_ LPDIRECT3DDEVICE2 *) PURE; - - /* - * IDirect3DRMDevice3 methods - */ - STDMETHOD(FindPreferredTextureFormat)(THIS_ DWORD dwBitDepths, DWORD dwFlags, LPDDPIXELFORMAT lpDDPF) PURE; - STDMETHOD(RenderStateChange)(THIS_ D3DRENDERSTATETYPE drsType, DWORD dwVal, DWORD dwFlags) PURE; - STDMETHOD(LightStateChange)(THIS_ D3DLIGHTSTATETYPE drsType, DWORD dwVal, DWORD dwFlags) PURE; - STDMETHOD(GetStateChangeOptions)(THIS_ DWORD dwStateClass, DWORD dwStateNum, LPDWORD pdwFlags) PURE; - STDMETHOD(SetStateChangeOptions)(THIS_ DWORD dwStateClass, DWORD dwStateNum, DWORD dwFlags) PURE; -}; - - -#undef INTERFACE -#define INTERFACE IDirect3DRMViewport - -DECLARE_INTERFACE_(IDirect3DRMViewport, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMViewport methods - */ - STDMETHOD(Init) - ( THIS_ LPDIRECT3DRMDEVICE dev, LPDIRECT3DRMFRAME camera, - DWORD xpos, DWORD ypos, DWORD width, DWORD height - ) PURE; - STDMETHOD(Clear)(THIS) PURE; - STDMETHOD(Render)(THIS_ LPDIRECT3DRMFRAME) PURE; - - STDMETHOD(SetFront)(THIS_ D3DVALUE) PURE; - STDMETHOD(SetBack)(THIS_ D3DVALUE) PURE; - STDMETHOD(SetField)(THIS_ D3DVALUE) PURE; - STDMETHOD(SetUniformScaling)(THIS_ BOOL) PURE; - STDMETHOD(SetCamera)(THIS_ LPDIRECT3DRMFRAME) PURE; - STDMETHOD(SetProjection)(THIS_ D3DRMPROJECTIONTYPE) PURE; - STDMETHOD(Transform)(THIS_ D3DRMVECTOR4D *d, D3DVECTOR *s) PURE; - STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DRMVECTOR4D *s) PURE; - STDMETHOD(Configure)(THIS_ LONG x, LONG y, DWORD width, DWORD height) PURE; - STDMETHOD(ForceUpdate)(THIS_ DWORD x1, DWORD y1, DWORD x2, DWORD y2) PURE; - STDMETHOD(SetPlane)(THIS_ D3DVALUE left, D3DVALUE right, D3DVALUE bottom, D3DVALUE top) PURE; - - STDMETHOD(GetCamera)(THIS_ LPDIRECT3DRMFRAME *) PURE; - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DRMDEVICE *) PURE; - STDMETHOD(GetPlane)(THIS_ D3DVALUE *left, D3DVALUE *right, D3DVALUE *bottom, D3DVALUE *top) PURE; - STDMETHOD(Pick)(THIS_ LONG x, LONG y, LPDIRECT3DRMPICKEDARRAY *return_visuals) PURE; - - STDMETHOD_(BOOL, GetUniformScaling)(THIS) PURE; - STDMETHOD_(LONG, GetX)(THIS) PURE; - STDMETHOD_(LONG, GetY)(THIS) PURE; - STDMETHOD_(DWORD, GetWidth)(THIS) PURE; - STDMETHOD_(DWORD, GetHeight)(THIS) PURE; - STDMETHOD_(D3DVALUE, GetField)(THIS) PURE; - STDMETHOD_(D3DVALUE, GetBack)(THIS) PURE; - STDMETHOD_(D3DVALUE, GetFront)(THIS) PURE; - STDMETHOD_(D3DRMPROJECTIONTYPE, GetProjection)(THIS) PURE; - STDMETHOD(GetDirect3DViewport)(THIS_ LPDIRECT3DVIEWPORT *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMViewport2 -DECLARE_INTERFACE_(IDirect3DRMViewport2, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMViewport2 methods - */ - STDMETHOD(Init) - ( THIS_ LPDIRECT3DRMDEVICE3 dev, LPDIRECT3DRMFRAME3 camera, - DWORD xpos, DWORD ypos, DWORD width, DWORD height - ) PURE; - STDMETHOD(Clear)(THIS_ DWORD dwFlags) PURE; - STDMETHOD(Render)(THIS_ LPDIRECT3DRMFRAME3) PURE; - - STDMETHOD(SetFront)(THIS_ D3DVALUE) PURE; - STDMETHOD(SetBack)(THIS_ D3DVALUE) PURE; - STDMETHOD(SetField)(THIS_ D3DVALUE) PURE; - STDMETHOD(SetUniformScaling)(THIS_ BOOL) PURE; - STDMETHOD(SetCamera)(THIS_ LPDIRECT3DRMFRAME3) PURE; - STDMETHOD(SetProjection)(THIS_ D3DRMPROJECTIONTYPE) PURE; - STDMETHOD(Transform)(THIS_ D3DRMVECTOR4D *d, D3DVECTOR *s) PURE; - STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DRMVECTOR4D *s) PURE; - STDMETHOD(Configure)(THIS_ LONG x, LONG y, DWORD width, DWORD height) PURE; - STDMETHOD(ForceUpdate)(THIS_ DWORD x1, DWORD y1, DWORD x2, DWORD y2) PURE; - STDMETHOD(SetPlane)(THIS_ D3DVALUE left, D3DVALUE right, D3DVALUE bottom, D3DVALUE top) PURE; - - STDMETHOD(GetCamera)(THIS_ LPDIRECT3DRMFRAME3 *) PURE; - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DRMDEVICE3 *) PURE; - STDMETHOD(GetPlane)(THIS_ D3DVALUE *left, D3DVALUE *right, D3DVALUE *bottom, D3DVALUE *top) PURE; - STDMETHOD(Pick)(THIS_ LONG x, LONG y, LPDIRECT3DRMPICKEDARRAY *return_visuals) PURE; - - STDMETHOD_(BOOL, GetUniformScaling)(THIS) PURE; - STDMETHOD_(LONG, GetX)(THIS) PURE; - STDMETHOD_(LONG, GetY)(THIS) PURE; - STDMETHOD_(DWORD, GetWidth)(THIS) PURE; - STDMETHOD_(DWORD, GetHeight)(THIS) PURE; - STDMETHOD_(D3DVALUE, GetField)(THIS) PURE; - STDMETHOD_(D3DVALUE, GetBack)(THIS) PURE; - STDMETHOD_(D3DVALUE, GetFront)(THIS) PURE; - STDMETHOD_(D3DRMPROJECTIONTYPE, GetProjection)(THIS) PURE; - STDMETHOD(GetDirect3DViewport)(THIS_ LPDIRECT3DVIEWPORT *) PURE; - STDMETHOD(TransformVectors)(THIS_ DWORD dwNumVectors, - LPD3DRMVECTOR4D lpDstVectors, - LPD3DVECTOR lpSrcVectors) PURE; - STDMETHOD(InverseTransformVectors)(THIS_ DWORD dwNumVectors, - LPD3DVECTOR lpDstVectors, - LPD3DRMVECTOR4D lpSrcVectors) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMFrame - -DECLARE_INTERFACE_(IDirect3DRMFrame, IDirect3DRMVisual) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMFrame methods - */ - STDMETHOD(AddChild)(THIS_ LPDIRECT3DRMFRAME child) PURE; - STDMETHOD(AddLight)(THIS_ LPDIRECT3DRMLIGHT) PURE; - STDMETHOD(AddMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE; - STDMETHOD(AddTransform)(THIS_ D3DRMCOMBINETYPE, D3DRMMATRIX4D) PURE; - STDMETHOD(AddTranslation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(AddScale)(THIS_ D3DRMCOMBINETYPE, D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE; - STDMETHOD(AddRotation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE; - STDMETHOD(AddVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE; - STDMETHOD(GetChildren)(THIS_ LPDIRECT3DRMFRAMEARRAY *children) PURE; - STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE; - STDMETHOD(GetLights)(THIS_ LPDIRECT3DRMLIGHTARRAY *lights) PURE; - STDMETHOD_(D3DRMMATERIALMODE, GetMaterialMode)(THIS) PURE; - STDMETHOD(GetParent)(THIS_ LPDIRECT3DRMFRAME *) PURE; - STDMETHOD(GetPosition)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_position) PURE; - STDMETHOD(GetRotation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR axis, LPD3DVALUE return_theta) PURE; - STDMETHOD(GetScene)(THIS_ LPDIRECT3DRMFRAME *) PURE; - STDMETHOD_(D3DRMSORTMODE, GetSortMode)(THIS) PURE; - STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE *) PURE; - STDMETHOD(GetTransform)(THIS_ D3DRMMATRIX4D return_matrix) PURE; - STDMETHOD(GetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_velocity, BOOL with_rotation) PURE; - STDMETHOD(GetOrientation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR dir, LPD3DVECTOR up) PURE; - STDMETHOD(GetVisuals)(THIS_ LPDIRECT3DRMVISUALARRAY *visuals) PURE; - STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE; - STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE; - STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg)PURE; - STDMETHOD(LookAt)(THIS_ LPDIRECT3DRMFRAME target, LPDIRECT3DRMFRAME reference, D3DRMFRAMECONSTRAINT) PURE; - STDMETHOD(Move)(THIS_ D3DVALUE delta) PURE; - STDMETHOD(DeleteChild)(THIS_ LPDIRECT3DRMFRAME) PURE; - STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DRMLIGHT) PURE; - STDMETHOD(DeleteMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE; - STDMETHOD(DeleteVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE; - STDMETHOD_(D3DCOLOR, GetSceneBackground)(THIS) PURE; - STDMETHOD(GetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE *) PURE; - STDMETHOD_(D3DCOLOR, GetSceneFogColor)(THIS) PURE; - STDMETHOD_(BOOL, GetSceneFogEnable)(THIS) PURE; - STDMETHOD_(D3DRMFOGMODE, GetSceneFogMode)(THIS) PURE; - STDMETHOD(GetSceneFogParams)(THIS_ D3DVALUE *return_start, D3DVALUE *return_end, D3DVALUE *return_density) PURE; - STDMETHOD(SetSceneBackground)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetSceneBackgroundRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - STDMETHOD(SetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE; - STDMETHOD(SetSceneBackgroundImage)(THIS_ LPDIRECT3DRMTEXTURE) PURE; - STDMETHOD(SetSceneFogEnable)(THIS_ BOOL) PURE; - STDMETHOD(SetSceneFogColor)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetSceneFogMode)(THIS_ D3DRMFOGMODE) PURE; - STDMETHOD(SetSceneFogParams)(THIS_ D3DVALUE start, D3DVALUE end, D3DVALUE density) PURE; - STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - STDMETHOD_(D3DRMZBUFFERMODE, GetZbufferMode)(THIS) PURE; - STDMETHOD(SetMaterialMode)(THIS_ D3DRMMATERIALMODE) PURE; - STDMETHOD(SetOrientation) - ( THIS_ LPDIRECT3DRMFRAME reference, - D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, - D3DVALUE ux, D3DVALUE uy, D3DVALUE uz - ) PURE; - STDMETHOD(SetPosition)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(SetRotation)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE; - STDMETHOD(SetSortMode)(THIS_ D3DRMSORTMODE) PURE; - STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE; - STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE; - STDMETHOD(SetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, BOOL with_rotation) PURE; - STDMETHOD(SetZbufferMode)(THIS_ D3DRMZBUFFERMODE) PURE; - STDMETHOD(Transform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMFrame2 - -DECLARE_INTERFACE_(IDirect3DRMFrame2, IDirect3DRMFrame) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMFrame methods - */ - STDMETHOD(AddChild)(THIS_ LPDIRECT3DRMFRAME child) PURE; - STDMETHOD(AddLight)(THIS_ LPDIRECT3DRMLIGHT) PURE; - STDMETHOD(AddMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE; - STDMETHOD(AddTransform)(THIS_ D3DRMCOMBINETYPE, D3DRMMATRIX4D) PURE; - STDMETHOD(AddTranslation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(AddScale)(THIS_ D3DRMCOMBINETYPE, D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE; - STDMETHOD(AddRotation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE; - STDMETHOD(AddVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE; - STDMETHOD(GetChildren)(THIS_ LPDIRECT3DRMFRAMEARRAY *children) PURE; - STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE; - STDMETHOD(GetLights)(THIS_ LPDIRECT3DRMLIGHTARRAY *lights) PURE; - STDMETHOD_(D3DRMMATERIALMODE, GetMaterialMode)(THIS) PURE; - STDMETHOD(GetParent)(THIS_ LPDIRECT3DRMFRAME *) PURE; - STDMETHOD(GetPosition)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_position) PURE; - STDMETHOD(GetRotation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR axis, LPD3DVALUE return_theta) PURE; - STDMETHOD(GetScene)(THIS_ LPDIRECT3DRMFRAME *) PURE; - STDMETHOD_(D3DRMSORTMODE, GetSortMode)(THIS) PURE; - STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE *) PURE; - STDMETHOD(GetTransform)(THIS_ D3DRMMATRIX4D return_matrix) PURE; - STDMETHOD(GetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_velocity, BOOL with_rotation) PURE; - STDMETHOD(GetOrientation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR dir, LPD3DVECTOR up) PURE; - STDMETHOD(GetVisuals)(THIS_ LPDIRECT3DRMVISUALARRAY *visuals) PURE; - STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE; - STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE; - STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg)PURE; - STDMETHOD(LookAt)(THIS_ LPDIRECT3DRMFRAME target, LPDIRECT3DRMFRAME reference, D3DRMFRAMECONSTRAINT) PURE; - STDMETHOD(Move)(THIS_ D3DVALUE delta) PURE; - STDMETHOD(DeleteChild)(THIS_ LPDIRECT3DRMFRAME) PURE; - STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DRMLIGHT) PURE; - STDMETHOD(DeleteMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE; - STDMETHOD(DeleteVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE; - STDMETHOD_(D3DCOLOR, GetSceneBackground)(THIS) PURE; - STDMETHOD(GetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE *) PURE; - STDMETHOD_(D3DCOLOR, GetSceneFogColor)(THIS) PURE; - STDMETHOD_(BOOL, GetSceneFogEnable)(THIS) PURE; - STDMETHOD_(D3DRMFOGMODE, GetSceneFogMode)(THIS) PURE; - STDMETHOD(GetSceneFogParams)(THIS_ D3DVALUE *return_start, D3DVALUE *return_end, D3DVALUE *return_density) PURE; - STDMETHOD(SetSceneBackground)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetSceneBackgroundRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - STDMETHOD(SetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE; - STDMETHOD(SetSceneBackgroundImage)(THIS_ LPDIRECT3DRMTEXTURE) PURE; - STDMETHOD(SetSceneFogEnable)(THIS_ BOOL) PURE; - STDMETHOD(SetSceneFogColor)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetSceneFogMode)(THIS_ D3DRMFOGMODE) PURE; - STDMETHOD(SetSceneFogParams)(THIS_ D3DVALUE start, D3DVALUE end, D3DVALUE density) PURE; - STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - STDMETHOD_(D3DRMZBUFFERMODE, GetZbufferMode)(THIS) PURE; - STDMETHOD(SetMaterialMode)(THIS_ D3DRMMATERIALMODE) PURE; - STDMETHOD(SetOrientation) - ( THIS_ LPDIRECT3DRMFRAME reference, - D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, - D3DVALUE ux, D3DVALUE uy, D3DVALUE uz - ) PURE; - STDMETHOD(SetPosition)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(SetRotation)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE; - STDMETHOD(SetSortMode)(THIS_ D3DRMSORTMODE) PURE; - STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE; - STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE; - STDMETHOD(SetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, BOOL with_rotation) PURE; - STDMETHOD(SetZbufferMode)(THIS_ D3DRMZBUFFERMODE) PURE; - STDMETHOD(Transform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE; - - /* - * IDirect3DRMFrame2 methods - */ - STDMETHOD(AddMoveCallback2)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg, DWORD dwFlags) PURE; - STDMETHOD(GetBox)(THIS_ LPD3DRMBOX) PURE; - STDMETHOD_(BOOL, GetBoxEnable)(THIS) PURE; - STDMETHOD(GetAxes)(THIS_ LPD3DVECTOR dir, LPD3DVECTOR up); - STDMETHOD(GetMaterial)(THIS_ LPDIRECT3DRMMATERIAL *) PURE; - STDMETHOD_(BOOL, GetInheritAxes)(THIS); - STDMETHOD(GetHierarchyBox)(THIS_ LPD3DRMBOX) PURE; - - STDMETHOD(SetBox)(THIS_ LPD3DRMBOX) PURE; - STDMETHOD(SetBoxEnable)(THIS_ BOOL) PURE; - STDMETHOD(SetAxes)(THIS_ D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, - D3DVALUE ux, D3DVALUE uy, D3DVALUE uz); - STDMETHOD(SetInheritAxes)(THIS_ BOOL inherit_from_parent); - STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE; - STDMETHOD(SetQuaternion)(THIS_ LPDIRECT3DRMFRAME reference, D3DRMQUATERNION *q) PURE; - - STDMETHOD(RayPick)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DRMRAY ray, DWORD dwFlags, LPDIRECT3DRMPICKED2ARRAY *return_visuals) PURE; - STDMETHOD(Save)(THIS_ LPCSTR filename, D3DRMXOFFORMAT d3dFormat, - D3DRMSAVEOPTIONS d3dSaveFlags); -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMFrame3 - -DECLARE_INTERFACE_(IDirect3DRMFrame3, IDirect3DRMVisual) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMFrame3 methods - */ - STDMETHOD(AddChild)(THIS_ LPDIRECT3DRMFRAME3 child) PURE; - STDMETHOD(AddLight)(THIS_ LPDIRECT3DRMLIGHT) PURE; - STDMETHOD(AddMoveCallback)(THIS_ D3DRMFRAME3MOVECALLBACK, VOID *arg, DWORD dwFlags) PURE; - STDMETHOD(AddTransform)(THIS_ D3DRMCOMBINETYPE, D3DRMMATRIX4D) PURE; - STDMETHOD(AddTranslation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(AddScale)(THIS_ D3DRMCOMBINETYPE, D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE; - STDMETHOD(AddRotation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE; - STDMETHOD(AddVisual)(THIS_ LPUNKNOWN) PURE; - STDMETHOD(GetChildren)(THIS_ LPDIRECT3DRMFRAMEARRAY *children) PURE; - STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE; - STDMETHOD(GetLights)(THIS_ LPDIRECT3DRMLIGHTARRAY *lights) PURE; - STDMETHOD_(D3DRMMATERIALMODE, GetMaterialMode)(THIS) PURE; - STDMETHOD(GetParent)(THIS_ LPDIRECT3DRMFRAME3 *) PURE; - STDMETHOD(GetPosition)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DVECTOR return_position) PURE; - STDMETHOD(GetRotation)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DVECTOR axis, LPD3DVALUE return_theta) PURE; - STDMETHOD(GetScene)(THIS_ LPDIRECT3DRMFRAME3 *) PURE; - STDMETHOD_(D3DRMSORTMODE, GetSortMode)(THIS) PURE; - STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE3 *) PURE; - STDMETHOD(GetTransform)(THIS_ LPDIRECT3DRMFRAME3 reference, - D3DRMMATRIX4D rmMatrix) PURE; - STDMETHOD(GetVelocity)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DVECTOR return_velocity, BOOL with_rotation) PURE; - STDMETHOD(GetOrientation)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DVECTOR dir, LPD3DVECTOR up) PURE; - STDMETHOD(GetVisuals)(THIS_ LPDWORD lpdwCount, LPUNKNOWN *) PURE; - STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE; - STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURE3CALLBACK, LPVOID lpArg)PURE; - STDMETHOD(LookAt)(THIS_ LPDIRECT3DRMFRAME3 target, LPDIRECT3DRMFRAME3 reference, D3DRMFRAMECONSTRAINT) PURE; - STDMETHOD(Move)(THIS_ D3DVALUE delta) PURE; - STDMETHOD(DeleteChild)(THIS_ LPDIRECT3DRMFRAME3) PURE; - STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DRMLIGHT) PURE; - STDMETHOD(DeleteMoveCallback)(THIS_ D3DRMFRAME3MOVECALLBACK, VOID *arg) PURE; - STDMETHOD(DeleteVisual)(THIS_ LPUNKNOWN) PURE; - STDMETHOD_(D3DCOLOR, GetSceneBackground)(THIS) PURE; - STDMETHOD(GetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE *) PURE; - STDMETHOD_(D3DCOLOR, GetSceneFogColor)(THIS) PURE; - STDMETHOD_(BOOL, GetSceneFogEnable)(THIS) PURE; - STDMETHOD_(D3DRMFOGMODE, GetSceneFogMode)(THIS) PURE; - STDMETHOD(GetSceneFogParams)(THIS_ D3DVALUE *return_start, D3DVALUE *return_end, D3DVALUE *return_density) PURE; - STDMETHOD(SetSceneBackground)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetSceneBackgroundRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - STDMETHOD(SetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE; - STDMETHOD(SetSceneBackgroundImage)(THIS_ LPDIRECT3DRMTEXTURE3) PURE; - STDMETHOD(SetSceneFogEnable)(THIS_ BOOL) PURE; - STDMETHOD(SetSceneFogColor)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetSceneFogMode)(THIS_ D3DRMFOGMODE) PURE; - STDMETHOD(SetSceneFogParams)(THIS_ D3DVALUE start, D3DVALUE end, D3DVALUE density) PURE; - STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - STDMETHOD_(D3DRMZBUFFERMODE, GetZbufferMode)(THIS) PURE; - STDMETHOD(SetMaterialMode)(THIS_ D3DRMMATERIALMODE) PURE; - STDMETHOD(SetOrientation) - ( THIS_ LPDIRECT3DRMFRAME3 reference, - D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, - D3DVALUE ux, D3DVALUE uy, D3DVALUE uz - ) PURE; - STDMETHOD(SetPosition)(THIS_ LPDIRECT3DRMFRAME3 reference, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(SetRotation)(THIS_ LPDIRECT3DRMFRAME3 reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE; - STDMETHOD(SetSortMode)(THIS_ D3DRMSORTMODE) PURE; - STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE3) PURE; - STDMETHOD(SetVelocity)(THIS_ LPDIRECT3DRMFRAME3 reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, BOOL with_rotation) PURE; - STDMETHOD(SetZbufferMode)(THIS_ D3DRMZBUFFERMODE) PURE; - STDMETHOD(Transform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE; - STDMETHOD(GetBox)(THIS_ LPD3DRMBOX) PURE; - STDMETHOD_(BOOL, GetBoxEnable)(THIS) PURE; - STDMETHOD(GetAxes)(THIS_ LPD3DVECTOR dir, LPD3DVECTOR up); - STDMETHOD(GetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2 *) PURE; - STDMETHOD_(BOOL, GetInheritAxes)(THIS); - STDMETHOD(GetHierarchyBox)(THIS_ LPD3DRMBOX) PURE; - - STDMETHOD(SetBox)(THIS_ LPD3DRMBOX) PURE; - STDMETHOD(SetBoxEnable)(THIS_ BOOL) PURE; - STDMETHOD(SetAxes)(THIS_ D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, - D3DVALUE ux, D3DVALUE uy, D3DVALUE uz); - STDMETHOD(SetInheritAxes)(THIS_ BOOL inherit_from_parent); - STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2) PURE; - STDMETHOD(SetQuaternion)(THIS_ LPDIRECT3DRMFRAME3 reference, D3DRMQUATERNION *q) PURE; - - STDMETHOD(RayPick)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DRMRAY ray, DWORD dwFlags, LPDIRECT3DRMPICKED2ARRAY *return_visuals) PURE; - STDMETHOD(Save)(THIS_ LPCSTR filename, D3DRMXOFFORMAT d3dFormat, - D3DRMSAVEOPTIONS d3dSaveFlags); - STDMETHOD(TransformVectors)(THIS_ LPDIRECT3DRMFRAME3 reference, - DWORD dwNumVectors, - LPD3DVECTOR lpDstVectors, - LPD3DVECTOR lpSrcVectors) PURE; - STDMETHOD(InverseTransformVectors)(THIS_ LPDIRECT3DRMFRAME3 reference, - DWORD dwNumVectors, - LPD3DVECTOR lpDstVectors, - LPD3DVECTOR lpSrcVectors) PURE; - STDMETHOD(SetTraversalOptions)(THIS_ DWORD dwFlags) PURE; - STDMETHOD(GetTraversalOptions)(THIS_ LPDWORD lpdwFlags) PURE; - STDMETHOD(SetSceneFogMethod)(THIS_ DWORD dwFlags) PURE; - STDMETHOD(GetSceneFogMethod)(THIS_ LPDWORD lpdwFlags) PURE; - STDMETHOD(SetMaterialOverride)(THIS_ LPD3DRMMATERIALOVERRIDE) PURE; - STDMETHOD(GetMaterialOverride)(THIS_ LPD3DRMMATERIALOVERRIDE) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMMesh - -DECLARE_INTERFACE_(IDirect3DRMMesh, IDirect3DRMVisual) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMMesh methods - */ - STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE; - STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE; - STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE; - STDMETHOD(AddGroup)(THIS_ unsigned vCount, unsigned fCount, unsigned vPerFace, unsigned *fData, D3DRMGROUPINDEX *returnId) PURE; - STDMETHOD(SetVertices)(THIS_ D3DRMGROUPINDEX id, unsigned index, unsigned count, D3DRMVERTEX *values) PURE; - STDMETHOD(SetGroupColor)(THIS_ D3DRMGROUPINDEX id, D3DCOLOR value) PURE; - STDMETHOD(SetGroupColorRGB)(THIS_ D3DRMGROUPINDEX id, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - STDMETHOD(SetGroupMapping)(THIS_ D3DRMGROUPINDEX id, D3DRMMAPPING value) PURE; - STDMETHOD(SetGroupQuality)(THIS_ D3DRMGROUPINDEX id, D3DRMRENDERQUALITY value) PURE; - STDMETHOD(SetGroupMaterial)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMMATERIAL value) PURE; - STDMETHOD(SetGroupTexture)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMTEXTURE value) PURE; - - STDMETHOD_(unsigned, GetGroupCount)(THIS) PURE; - STDMETHOD(GetGroup)(THIS_ D3DRMGROUPINDEX id, unsigned *vCount, unsigned *fCount, unsigned *vPerFace, DWORD *fDataSize, unsigned *fData) PURE; - STDMETHOD(GetVertices)(THIS_ D3DRMGROUPINDEX id, DWORD index, DWORD count, D3DRMVERTEX *returnPtr) PURE; - STDMETHOD_(D3DCOLOR, GetGroupColor)(THIS_ D3DRMGROUPINDEX id) PURE; - STDMETHOD_(D3DRMMAPPING, GetGroupMapping)(THIS_ D3DRMGROUPINDEX id) PURE; - STDMETHOD_(D3DRMRENDERQUALITY, GetGroupQuality)(THIS_ D3DRMGROUPINDEX id) PURE; - STDMETHOD(GetGroupMaterial)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMMATERIAL *returnPtr) PURE; - STDMETHOD(GetGroupTexture)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMTEXTURE *returnPtr) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMProgressiveMesh - -DECLARE_INTERFACE_(IDirect3DRMProgressiveMesh, IDirect3DRMVisual) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMProgressiveMesh methods - */ - STDMETHOD(Load) (THIS_ LPVOID lpObjLocation, LPVOID lpObjId, - D3DRMLOADOPTIONS dloLoadflags, D3DRMLOADTEXTURECALLBACK lpCallback, - LPVOID lpArg) PURE; - STDMETHOD(GetLoadStatus) (THIS_ LPD3DRMPMESHLOADSTATUS lpStatus) PURE; - STDMETHOD(SetMinRenderDetail) (THIS_ D3DVALUE d3dVal) PURE; - STDMETHOD(Abort) (THIS_ DWORD dwFlags) PURE; - - STDMETHOD(GetFaceDetail) (THIS_ LPDWORD lpdwCount) PURE; - STDMETHOD(GetVertexDetail) (THIS_ LPDWORD lpdwCount) PURE; - STDMETHOD(SetFaceDetail) (THIS_ DWORD dwCount) PURE; - STDMETHOD(SetVertexDetail) (THIS_ DWORD dwCount) PURE; - STDMETHOD(GetFaceDetailRange) (THIS_ LPDWORD lpdwMin, LPDWORD lpdwMax) PURE; - STDMETHOD(GetVertexDetailRange) (THIS_ LPDWORD lpdwMin, LPDWORD lpdwMax) PURE; - STDMETHOD(GetDetail) (THIS_ D3DVALUE *lpdvVal) PURE; - STDMETHOD(SetDetail) (THIS_ D3DVALUE d3dVal) PURE; - - STDMETHOD(RegisterEvents) (THIS_ HANDLE hEvent, DWORD dwFlags, DWORD dwReserved) PURE; - STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *lplpD3DRMMesh) PURE; - STDMETHOD(Duplicate) (THIS_ LPDIRECT3DRMPROGRESSIVEMESH *lplpD3DRMPMesh) PURE; - STDMETHOD(GetBox) (THIS_ LPD3DRMBOX lpBBox) PURE; - STDMETHOD(SetQuality) (THIS_ D3DRMRENDERQUALITY) PURE; - STDMETHOD(GetQuality) (THIS_ LPD3DRMRENDERQUALITY lpdwquality) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMShadow - -DECLARE_INTERFACE_(IDirect3DRMShadow, IDirect3DRMVisual) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMShadow methods - */ - STDMETHOD(Init) - ( THIS_ LPDIRECT3DRMVISUAL visual, LPDIRECT3DRMLIGHT light, - D3DVALUE px, D3DVALUE py, D3DVALUE pz, - D3DVALUE nx, D3DVALUE ny, D3DVALUE nz - ) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMShadow2 - -DECLARE_INTERFACE_(IDirect3DRMShadow2, IDirect3DRMVisual) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMShadow methods - */ - STDMETHOD(Init) - ( THIS_ LPUNKNOWN pUNK, LPDIRECT3DRMLIGHT light, - D3DVALUE px, D3DVALUE py, D3DVALUE pz, - D3DVALUE nx, D3DVALUE ny, D3DVALUE nz - ) PURE; - - /* - * IDirect3DRMShadow2 methods - */ - STDMETHOD(GetVisual)(THIS_ LPDIRECT3DRMVISUAL *) PURE; - STDMETHOD(SetVisual)(THIS_ LPUNKNOWN pUNK, DWORD) PURE; - STDMETHOD(GetLight)(THIS_ LPDIRECT3DRMLIGHT *) PURE; - STDMETHOD(SetLight)(THIS_ LPDIRECT3DRMLIGHT, DWORD) PURE; - STDMETHOD(GetPlane)(THIS_ LPD3DVALUE px, LPD3DVALUE py, LPD3DVALUE pz, - LPD3DVALUE nx, LPD3DVALUE ny, LPD3DVALUE nz) PURE; - STDMETHOD(SetPlane)(THIS_ D3DVALUE px, D3DVALUE py, D3DVALUE pz, - D3DVALUE nx, D3DVALUE ny, D3DVALUE nz, DWORD) PURE; - STDMETHOD(GetOptions)(THIS_ LPDWORD) PURE; - STDMETHOD(SetOptions)(THIS_ DWORD) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMFace - -DECLARE_INTERFACE_(IDirect3DRMFace, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMFace methods - */ - STDMETHOD(AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(AddVertexAndNormalIndexed)(THIS_ DWORD vertex, DWORD normal) PURE; - STDMETHOD(SetColorRGB)(THIS_ D3DVALUE, D3DVALUE, D3DVALUE) PURE; - STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE; - STDMETHOD(SetTextureCoordinates)(THIS_ DWORD vertex, D3DVALUE u, D3DVALUE v) PURE; - STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE; - STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE; - - STDMETHOD(GetVertex)(THIS_ DWORD index, D3DVECTOR *vertex, D3DVECTOR *normal) PURE; - STDMETHOD(GetVertices)(THIS_ DWORD *vertex_count, D3DVECTOR *coords, D3DVECTOR *normals); - STDMETHOD(GetTextureCoordinates)(THIS_ DWORD vertex, D3DVALUE *u, D3DVALUE *v) PURE; - STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE; - STDMETHOD(GetNormal)(THIS_ D3DVECTOR *) PURE; - STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE *) PURE; - STDMETHOD(GetMaterial)(THIS_ LPDIRECT3DRMMATERIAL *) PURE; - - STDMETHOD_(int, GetVertexCount)(THIS) PURE; - STDMETHOD_(int, GetVertexIndex)(THIS_ DWORD which) PURE; - STDMETHOD_(int, GetTextureCoordinateIndex)(THIS_ DWORD which) PURE; - STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMFace2 - -DECLARE_INTERFACE_(IDirect3DRMFace2, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMFace methods - */ - STDMETHOD(AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(AddVertexAndNormalIndexed)(THIS_ DWORD vertex, DWORD normal) PURE; - STDMETHOD(SetColorRGB)(THIS_ D3DVALUE, D3DVALUE, D3DVALUE) PURE; - STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE3) PURE; - STDMETHOD(SetTextureCoordinates)(THIS_ DWORD vertex, D3DVALUE u, D3DVALUE v) PURE; - STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2) PURE; - STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE; - - STDMETHOD(GetVertex)(THIS_ DWORD index, D3DVECTOR *vertex, D3DVECTOR *normal) PURE; - STDMETHOD(GetVertices)(THIS_ DWORD *vertex_count, D3DVECTOR *coords, D3DVECTOR *normals); - STDMETHOD(GetTextureCoordinates)(THIS_ DWORD vertex, D3DVALUE *u, D3DVALUE *v) PURE; - STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE; - STDMETHOD(GetNormal)(THIS_ D3DVECTOR *) PURE; - STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE3 *) PURE; - STDMETHOD(GetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2 *) PURE; - - STDMETHOD_(int, GetVertexCount)(THIS) PURE; - STDMETHOD_(int, GetVertexIndex)(THIS_ DWORD which) PURE; - STDMETHOD_(int, GetTextureCoordinateIndex)(THIS_ DWORD which) PURE; - STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMMeshBuilder - -DECLARE_INTERFACE_(IDirect3DRMMeshBuilder, IDirect3DRMVisual) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMMeshBuilder methods - */ - STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg) PURE; - STDMETHOD(Save)(THIS_ const char *filename, D3DRMXOFFORMAT, D3DRMSAVEOPTIONS save) PURE; - STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE; - STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE; - STDMETHOD(SetColorSource)(THIS_ D3DRMCOLORSOURCE) PURE; - STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE; - STDMETHOD(GenerateNormals)(THIS) PURE; - STDMETHOD_(D3DRMCOLORSOURCE, GetColorSource)(THIS) PURE; - - STDMETHOD(AddMesh)(THIS_ LPDIRECT3DRMMESH) PURE; - STDMETHOD(AddMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER) PURE; - STDMETHOD(AddFrame)(THIS_ LPDIRECT3DRMFRAME) PURE; - STDMETHOD(AddFace)(THIS_ LPDIRECT3DRMFACE) PURE; - STDMETHOD(AddFaces) - ( THIS_ DWORD vcount, D3DVECTOR *vertices, DWORD ncount, D3DVECTOR *normals, - DWORD *data, LPDIRECT3DRMFACEARRAY* - ) PURE; - STDMETHOD(ReserveSpace)(THIS_ DWORD vertex_Count, DWORD normal_count, DWORD face_count) PURE; - STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE; - STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE; - STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE; - STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE; - STDMETHOD(SetPerspective)(THIS_ BOOL) PURE; - STDMETHOD(SetVertex)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(SetNormal)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(SetTextureCoordinates)(THIS_ DWORD index, D3DVALUE u, D3DVALUE v) PURE; - STDMETHOD(SetVertexColor)(THIS_ DWORD index, D3DCOLOR) PURE; - STDMETHOD(SetVertexColorRGB)(THIS_ DWORD index, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - - STDMETHOD(GetFaces)(THIS_ LPDIRECT3DRMFACEARRAY*) PURE; - STDMETHOD(GetVertices) - ( THIS_ DWORD *vcount, D3DVECTOR *vertices, DWORD *ncount, D3DVECTOR *normals, DWORD *face_data_size, DWORD *face_data - ) PURE; - STDMETHOD(GetTextureCoordinates)(THIS_ DWORD index, D3DVALUE *u, D3DVALUE *v) PURE; - - STDMETHOD_(int, AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD_(int, AddNormal)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE*) PURE; - STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE; - STDMETHOD_(BOOL, GetPerspective)(THIS) PURE; - STDMETHOD_(int, GetFaceCount)(THIS) PURE; - STDMETHOD_(int, GetVertexCount)(THIS) PURE; - STDMETHOD_(D3DCOLOR, GetVertexColor)(THIS_ DWORD index) PURE; - - STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH*) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMMeshBuilder2 - -DECLARE_INTERFACE_(IDirect3DRMMeshBuilder2, IDirect3DRMMeshBuilder) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMMeshBuilder methods - */ - STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg) PURE; - STDMETHOD(Save)(THIS_ const char *filename, D3DRMXOFFORMAT, D3DRMSAVEOPTIONS save) PURE; - STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE; - STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE; - STDMETHOD(SetColorSource)(THIS_ D3DRMCOLORSOURCE) PURE; - STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE; - STDMETHOD(GenerateNormals)(THIS) PURE; - STDMETHOD_(D3DRMCOLORSOURCE, GetColorSource)(THIS) PURE; - - STDMETHOD(AddMesh)(THIS_ LPDIRECT3DRMMESH) PURE; - STDMETHOD(AddMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER) PURE; - STDMETHOD(AddFrame)(THIS_ LPDIRECT3DRMFRAME) PURE; - STDMETHOD(AddFace)(THIS_ LPDIRECT3DRMFACE) PURE; - STDMETHOD(AddFaces) - ( THIS_ DWORD vcount, D3DVECTOR *vertices, DWORD ncount, D3DVECTOR *normals, - DWORD *data, LPDIRECT3DRMFACEARRAY* - ) PURE; - STDMETHOD(ReserveSpace)(THIS_ DWORD vertex_Count, DWORD normal_count, DWORD face_count) PURE; - STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE; - STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE; - STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE; - STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE; - STDMETHOD(SetPerspective)(THIS_ BOOL) PURE; - STDMETHOD(SetVertex)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(SetNormal)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(SetTextureCoordinates)(THIS_ DWORD index, D3DVALUE u, D3DVALUE v) PURE; - STDMETHOD(SetVertexColor)(THIS_ DWORD index, D3DCOLOR) PURE; - STDMETHOD(SetVertexColorRGB)(THIS_ DWORD index, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - - STDMETHOD(GetFaces)(THIS_ LPDIRECT3DRMFACEARRAY*) PURE; - STDMETHOD(GetVertices) - ( THIS_ DWORD *vcount, D3DVECTOR *vertices, DWORD *ncount, D3DVECTOR *normals, DWORD *face_data_size, DWORD *face_data - ) PURE; - STDMETHOD(GetTextureCoordinates)(THIS_ DWORD index, D3DVALUE *u, D3DVALUE *v) PURE; - - STDMETHOD_(int, AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD_(int, AddNormal)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE*) PURE; - STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE; - STDMETHOD_(BOOL, GetPerspective)(THIS) PURE; - STDMETHOD_(int, GetFaceCount)(THIS) PURE; - STDMETHOD_(int, GetVertexCount)(THIS) PURE; - STDMETHOD_(D3DCOLOR, GetVertexColor)(THIS_ DWORD index) PURE; - - STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH*) PURE; - - /* - * IDirect3DRMMeshBuilder2 methods - */ - STDMETHOD(GenerateNormals2)(THIS_ D3DVALUE crease, DWORD dwFlags) PURE; - STDMETHOD(GetFace)(THIS_ DWORD index, LPDIRECT3DRMFACE*) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMMeshBuilder3 - -DECLARE_INTERFACE_(IDirect3DRMMeshBuilder3, IDirect3DRMVisual) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMMeshBuilder3 methods - */ - STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURE3CALLBACK, LPVOID lpArg) PURE; - STDMETHOD(Save)(THIS_ const char *filename, D3DRMXOFFORMAT, D3DRMSAVEOPTIONS save) PURE; - STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE; - STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE; - STDMETHOD(SetColorSource)(THIS_ D3DRMCOLORSOURCE) PURE; - STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE; - STDMETHOD(GenerateNormals)(THIS_ D3DVALUE crease, DWORD dwFlags) PURE; - STDMETHOD_(D3DRMCOLORSOURCE, GetColorSource)(THIS) PURE; - - STDMETHOD(AddMesh)(THIS_ LPDIRECT3DRMMESH) PURE; - STDMETHOD(AddMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER3, DWORD dwFlags) PURE; - STDMETHOD(AddFrame)(THIS_ LPDIRECT3DRMFRAME3) PURE; - STDMETHOD(AddFace)(THIS_ LPDIRECT3DRMFACE2) PURE; - STDMETHOD(AddFaces) - ( THIS_ DWORD vcount, D3DVECTOR *vertices, DWORD ncount, D3DVECTOR *normals, - DWORD *data, LPDIRECT3DRMFACEARRAY* - ) PURE; - STDMETHOD(ReserveSpace)(THIS_ DWORD vertex_Count, DWORD normal_count, DWORD face_count) PURE; - STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE3) PURE; - STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2) PURE; - STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE; - STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE; - STDMETHOD(SetPerspective)(THIS_ BOOL) PURE; - STDMETHOD(SetVertex)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(SetNormal)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(SetTextureCoordinates)(THIS_ DWORD index, D3DVALUE u, D3DVALUE v) PURE; - STDMETHOD(SetVertexColor)(THIS_ DWORD index, D3DCOLOR) PURE; - STDMETHOD(SetVertexColorRGB)(THIS_ DWORD index, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - STDMETHOD(GetFaces)(THIS_ LPDIRECT3DRMFACEARRAY*) PURE; - STDMETHOD(GetGeometry) - ( THIS_ DWORD *vcount, D3DVECTOR *vertices, DWORD *ncount, D3DVECTOR *normals, DWORD *face_data_size, DWORD *face_data - ) PURE; - STDMETHOD(GetTextureCoordinates)(THIS_ DWORD index, D3DVALUE *u, D3DVALUE *v) PURE; - STDMETHOD_(int, AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD_(int, AddNormal)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE2 *) PURE; - STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE; - STDMETHOD_(BOOL, GetPerspective)(THIS) PURE; - STDMETHOD_(int, GetFaceCount)(THIS) PURE; - STDMETHOD_(int, GetVertexCount)(THIS) PURE; - STDMETHOD_(D3DCOLOR, GetVertexColor)(THIS_ DWORD index) PURE; - STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH*) PURE; - STDMETHOD(GetFace)(THIS_ DWORD index, LPDIRECT3DRMFACE2 *) PURE; - STDMETHOD(GetVertex)(THIS_ DWORD dwIndex, LPD3DVECTOR lpVector) PURE; - STDMETHOD(GetNormal)(THIS_ DWORD dwIndex, LPD3DVECTOR lpVector) PURE; - STDMETHOD(DeleteVertices)(THIS_ DWORD dwIndexFirst, DWORD dwCount) PURE; - STDMETHOD(DeleteNormals)(THIS_ DWORD dwIndexFirst, DWORD dwCount) PURE; - STDMETHOD(DeleteFace)(THIS_ LPDIRECT3DRMFACE2) PURE; - STDMETHOD(Empty)(THIS_ DWORD dwFlags) PURE; - STDMETHOD(Optimize)(THIS_ DWORD dwFlags) PURE; - STDMETHOD(AddFacesIndexed)(THIS_ DWORD dwFlags, DWORD *lpdwvIndices, DWORD *dwIndexFirst, DWORD *dwCount) PURE; - STDMETHOD(CreateSubMesh)(THIS_ LPUNKNOWN *) PURE; - STDMETHOD(GetParentMesh)(THIS_ DWORD, LPUNKNOWN *) PURE; - STDMETHOD(GetSubMeshes)(THIS_ LPDWORD lpdwCount, LPUNKNOWN *) PURE; - STDMETHOD(DeleteSubMesh)(THIS_ LPUNKNOWN) PURE; - STDMETHOD(Enable)(THIS_ DWORD) PURE; - STDMETHOD(GetEnable)(THIS_ DWORD *) PURE; - STDMETHOD(AddTriangles)(THIS_ DWORD dwFlags, DWORD dwFormat, - DWORD dwVertexCount, LPVOID lpvData) PURE; - STDMETHOD(SetVertices)(THIS_ DWORD dwIndexFirst, DWORD dwCount, LPD3DVECTOR) PURE; - STDMETHOD(GetVertices)(THIS_ DWORD dwIndexFirst, LPDWORD lpdwCount, LPD3DVECTOR) PURE; - STDMETHOD(SetNormals)(THIS_ DWORD dwIndexFirst, DWORD dwCount, LPD3DVECTOR) PURE; - STDMETHOD(GetNormals)(THIS_ DWORD dwIndexFirst, LPDWORD lpdwCount, LPD3DVECTOR) PURE; - STDMETHOD_(int, GetNormalCount)(THIS) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMLight - -DECLARE_INTERFACE_(IDirect3DRMLight, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMLight methods - */ - STDMETHOD(SetType)(THIS_ D3DRMLIGHTTYPE) PURE; - STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE; - STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE; - STDMETHOD(SetRange)(THIS_ D3DVALUE) PURE; - STDMETHOD(SetUmbra)(THIS_ D3DVALUE) PURE; - STDMETHOD(SetPenumbra)(THIS_ D3DVALUE) PURE; - STDMETHOD(SetConstantAttenuation)(THIS_ D3DVALUE) PURE; - STDMETHOD(SetLinearAttenuation)(THIS_ D3DVALUE) PURE; - STDMETHOD(SetQuadraticAttenuation)(THIS_ D3DVALUE) PURE; - - STDMETHOD_(D3DVALUE, GetRange)(THIS) PURE; - STDMETHOD_(D3DVALUE, GetUmbra)(THIS) PURE; - STDMETHOD_(D3DVALUE, GetPenumbra)(THIS) PURE; - STDMETHOD_(D3DVALUE, GetConstantAttenuation)(THIS) PURE; - STDMETHOD_(D3DVALUE, GetLinearAttenuation)(THIS) PURE; - STDMETHOD_(D3DVALUE, GetQuadraticAttenuation)(THIS) PURE; - STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE; - STDMETHOD_(D3DRMLIGHTTYPE, GetType)(THIS) PURE; - - STDMETHOD(SetEnableFrame)(THIS_ LPDIRECT3DRMFRAME) PURE; - STDMETHOD(GetEnableFrame)(THIS_ LPDIRECT3DRMFRAME*) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMTexture - -DECLARE_INTERFACE_(IDirect3DRMTexture, IDirect3DRMVisual) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMTexture methods - */ - STDMETHOD(InitFromFile)(THIS_ const char *filename) PURE; - STDMETHOD(InitFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS) PURE; - STDMETHOD(InitFromResource)(THIS_ HRSRC) PURE; - STDMETHOD(Changed)(THIS_ BOOL pixels, BOOL palette) PURE; - - STDMETHOD(SetColors)(THIS_ DWORD) PURE; - STDMETHOD(SetShades)(THIS_ DWORD) PURE; - STDMETHOD(SetDecalSize)(THIS_ D3DVALUE width, D3DVALUE height) PURE; - STDMETHOD(SetDecalOrigin)(THIS_ LONG x, LONG y) PURE; - STDMETHOD(SetDecalScale)(THIS_ DWORD) PURE; - STDMETHOD(SetDecalTransparency)(THIS_ BOOL) PURE; - STDMETHOD(SetDecalTransparentColor)(THIS_ D3DCOLOR) PURE; - - STDMETHOD(GetDecalSize)(THIS_ D3DVALUE *width_return, D3DVALUE *height_return) PURE; - STDMETHOD(GetDecalOrigin)(THIS_ LONG *x_return, LONG *y_return) PURE; - - STDMETHOD_(D3DRMIMAGE *, GetImage)(THIS) PURE; - STDMETHOD_(DWORD, GetShades)(THIS) PURE; - STDMETHOD_(DWORD, GetColors)(THIS) PURE; - STDMETHOD_(DWORD, GetDecalScale)(THIS) PURE; - STDMETHOD_(BOOL, GetDecalTransparency)(THIS) PURE; - STDMETHOD_(D3DCOLOR, GetDecalTransparentColor)(THIS) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMTexture2 - -DECLARE_INTERFACE_(IDirect3DRMTexture2, IDirect3DRMTexture) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMTexture methods - */ - STDMETHOD(InitFromFile)(THIS_ const char *filename) PURE; - STDMETHOD(InitFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS) PURE; - STDMETHOD(InitFromResource)(THIS_ HRSRC) PURE; - STDMETHOD(Changed)(THIS_ BOOL pixels, BOOL palette) PURE; - - STDMETHOD(SetColors)(THIS_ DWORD) PURE; - STDMETHOD(SetShades)(THIS_ DWORD) PURE; - STDMETHOD(SetDecalSize)(THIS_ D3DVALUE width, D3DVALUE height) PURE; - STDMETHOD(SetDecalOrigin)(THIS_ LONG x, LONG y) PURE; - STDMETHOD(SetDecalScale)(THIS_ DWORD) PURE; - STDMETHOD(SetDecalTransparency)(THIS_ BOOL) PURE; - STDMETHOD(SetDecalTransparentColor)(THIS_ D3DCOLOR) PURE; - - STDMETHOD(GetDecalSize)(THIS_ D3DVALUE *width_return, D3DVALUE *height_return) PURE; - STDMETHOD(GetDecalOrigin)(THIS_ LONG *x_return, LONG *y_return) PURE; - - STDMETHOD_(D3DRMIMAGE *, GetImage)(THIS) PURE; - STDMETHOD_(DWORD, GetShades)(THIS) PURE; - STDMETHOD_(DWORD, GetColors)(THIS) PURE; - STDMETHOD_(DWORD, GetDecalScale)(THIS) PURE; - STDMETHOD_(BOOL, GetDecalTransparency)(THIS) PURE; - STDMETHOD_(D3DCOLOR, GetDecalTransparentColor)(THIS) PURE; - - /* - * IDirect3DRMTexture2 methods - */ - STDMETHOD(InitFromImage)(THIS_ LPD3DRMIMAGE) PURE; - STDMETHOD(InitFromResource2)(THIS_ HMODULE hModule, LPCTSTR strName, LPCTSTR strType) PURE; - STDMETHOD(GenerateMIPMap)(THIS_ DWORD) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMTexture3 - -DECLARE_INTERFACE_(IDirect3DRMTexture3, IDirect3DRMVisual) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMTexture3 methods - */ - STDMETHOD(InitFromFile)(THIS_ const char *filename) PURE; - STDMETHOD(InitFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS) PURE; - STDMETHOD(InitFromResource)(THIS_ HRSRC) PURE; - STDMETHOD(Changed)(THIS_ DWORD dwFlags, DWORD dwcRects, LPRECT pRects) PURE; - STDMETHOD(SetColors)(THIS_ DWORD) PURE; - STDMETHOD(SetShades)(THIS_ DWORD) PURE; - STDMETHOD(SetDecalSize)(THIS_ D3DVALUE width, D3DVALUE height) PURE; - STDMETHOD(SetDecalOrigin)(THIS_ LONG x, LONG y) PURE; - STDMETHOD(SetDecalScale)(THIS_ DWORD) PURE; - STDMETHOD(SetDecalTransparency)(THIS_ BOOL) PURE; - STDMETHOD(SetDecalTransparentColor)(THIS_ D3DCOLOR) PURE; - - STDMETHOD(GetDecalSize)(THIS_ D3DVALUE *width_return, D3DVALUE *height_return) PURE; - STDMETHOD(GetDecalOrigin)(THIS_ LONG *x_return, LONG *y_return) PURE; - - STDMETHOD_(D3DRMIMAGE *, GetImage)(THIS) PURE; - STDMETHOD_(DWORD, GetShades)(THIS) PURE; - STDMETHOD_(DWORD, GetColors)(THIS) PURE; - STDMETHOD_(DWORD, GetDecalScale)(THIS) PURE; - STDMETHOD_(BOOL, GetDecalTransparency)(THIS) PURE; - STDMETHOD_(D3DCOLOR, GetDecalTransparentColor)(THIS) PURE; - STDMETHOD(InitFromImage)(THIS_ LPD3DRMIMAGE) PURE; - STDMETHOD(InitFromResource2)(THIS_ HMODULE hModule, LPCTSTR strName, LPCTSTR strType) PURE; - STDMETHOD(GenerateMIPMap)(THIS_ DWORD) PURE; - STDMETHOD(GetSurface)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE* lplpDDS) PURE; - STDMETHOD(SetCacheOptions)(THIS_ LONG lImportance, DWORD dwFlags) PURE; - STDMETHOD(GetCacheOptions)(THIS_ LPLONG lplImportance, LPDWORD lpdwFlags) PURE; - STDMETHOD(SetDownsampleCallback)(THIS_ D3DRMDOWNSAMPLECALLBACK pCallback, LPVOID pArg) PURE; - STDMETHOD(SetValidationCallback)(THIS_ D3DRMVALIDATIONCALLBACK pCallback, LPVOID pArg) PURE; -}; - - -#undef INTERFACE -#define INTERFACE IDirect3DRMWrap - -DECLARE_INTERFACE_(IDirect3DRMWrap, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMWrap methods - */ - STDMETHOD(Init) - ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME ref, - D3DVALUE ox, D3DVALUE oy, D3DVALUE oz, - D3DVALUE dx, D3DVALUE dy, D3DVALUE dz, - D3DVALUE ux, D3DVALUE uy, D3DVALUE uz, - D3DVALUE ou, D3DVALUE ov, - D3DVALUE su, D3DVALUE sv - ) PURE; - STDMETHOD(Apply)(THIS_ LPDIRECT3DRMOBJECT) PURE; - STDMETHOD(ApplyRelative)(THIS_ LPDIRECT3DRMFRAME frame, LPDIRECT3DRMOBJECT) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMMaterial - -DECLARE_INTERFACE_(IDirect3DRMMaterial, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMMaterial methods - */ - STDMETHOD(SetPower)(THIS_ D3DVALUE power) PURE; - STDMETHOD(SetSpecular)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE; - STDMETHOD(SetEmissive)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE; - - STDMETHOD_(D3DVALUE, GetPower)(THIS) PURE; - STDMETHOD(GetSpecular)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE; - STDMETHOD(GetEmissive)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE; -}; - - -#undef INTERFACE -#define INTERFACE IDirect3DRMMaterial2 - -DECLARE_INTERFACE_(IDirect3DRMMaterial2, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMMaterial2 methods - */ - STDMETHOD(SetPower)(THIS_ D3DVALUE power) PURE; - STDMETHOD(SetSpecular)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE; - STDMETHOD(SetEmissive)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE; - STDMETHOD_(D3DVALUE, GetPower)(THIS) PURE; - STDMETHOD(GetSpecular)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE; - STDMETHOD(GetEmissive)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE; - STDMETHOD(GetAmbient)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE; - STDMETHOD(SetAmbient)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE; -}; - - -#undef INTERFACE -#define INTERFACE IDirect3DRMAnimation - -DECLARE_INTERFACE_(IDirect3DRMAnimation, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMAnimation methods - */ - STDMETHOD(SetOptions)(THIS_ D3DRMANIMATIONOPTIONS flags) PURE; - STDMETHOD(AddRotateKey)(THIS_ D3DVALUE time, D3DRMQUATERNION *q) PURE; - STDMETHOD(AddPositionKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(AddScaleKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(DeleteKey)(THIS_ D3DVALUE time) PURE; - STDMETHOD(SetFrame)(THIS_ LPDIRECT3DRMFRAME frame) PURE; - STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE; - - STDMETHOD_(D3DRMANIMATIONOPTIONS, GetOptions)(THIS) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMAnimation2 - -DECLARE_INTERFACE_(IDirect3DRMAnimation2, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMAnimation2 methods - */ - STDMETHOD(SetOptions)(THIS_ D3DRMANIMATIONOPTIONS flags) PURE; - STDMETHOD(AddRotateKey)(THIS_ D3DVALUE time, D3DRMQUATERNION *q) PURE; - STDMETHOD(AddPositionKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(AddScaleKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE; - STDMETHOD(DeleteKey)(THIS_ D3DVALUE time) PURE; - STDMETHOD(SetFrame)(THIS_ LPDIRECT3DRMFRAME3 frame) PURE; - STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE; - - STDMETHOD_(D3DRMANIMATIONOPTIONS, GetOptions)(THIS) PURE; - STDMETHOD(GetFrame)(THIS_ LPDIRECT3DRMFRAME3 *lpD3DFrame) PURE; - STDMETHOD(DeleteKeyByID)(THIS_ DWORD dwID) PURE; - STDMETHOD(AddKey)(THIS_ LPD3DRMANIMATIONKEY lpKey) PURE; - STDMETHOD(ModifyKey)(THIS_ LPD3DRMANIMATIONKEY lpKey) PURE; - STDMETHOD(GetKeys)(THIS_ D3DVALUE dvTimeMin, - D3DVALUE dvTimeMax, LPDWORD lpdwNumKeys, - LPD3DRMANIMATIONKEY lpKey); -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMAnimationSet - -DECLARE_INTERFACE_(IDirect3DRMAnimationSet, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMAnimationSet methods - */ - STDMETHOD(AddAnimation)(THIS_ LPDIRECT3DRMANIMATION aid) PURE; - STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg, LPDIRECT3DRMFRAME parent)PURE; - STDMETHOD(DeleteAnimation)(THIS_ LPDIRECT3DRMANIMATION aid) PURE; - STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMAnimationSet2 - -DECLARE_INTERFACE_(IDirect3DRMAnimationSet2, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMAnimationSet2 methods - */ - STDMETHOD(AddAnimation)(THIS_ LPDIRECT3DRMANIMATION2 aid) PURE; - STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURE3CALLBACK, LPVOID lpArg, LPDIRECT3DRMFRAME3 parent)PURE; - STDMETHOD(DeleteAnimation)(THIS_ LPDIRECT3DRMANIMATION2 aid) PURE; - STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE; - STDMETHOD(GetAnimations)(THIS_ LPDIRECT3DRMANIMATIONARRAY *) PURE; -}; - - -#undef INTERFACE -#define INTERFACE IDirect3DRMUserVisual - -DECLARE_INTERFACE_(IDirect3DRMUserVisual, IDirect3DRMVisual) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMUserVisual methods - */ - STDMETHOD(Init)(THIS_ D3DRMUSERVISUALCALLBACK fn, void *arg) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMArray - -DECLARE_INTERFACE_(IDirect3DRMArray, IUnknown) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD_(DWORD, GetSize)(THIS) PURE; - /* No GetElement method as it would get overloaded - * in derived classes, and overloading is - * a no-no in COM - */ -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMObjectArray - -DECLARE_INTERFACE_(IDirect3DRMObjectArray, IDirect3DRMArray) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD_(DWORD, GetSize)(THIS) PURE; - STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMOBJECT *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMDeviceArray - -DECLARE_INTERFACE_(IDirect3DRMDeviceArray, IDirect3DRMArray) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD_(DWORD, GetSize)(THIS) PURE; - STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMDEVICE *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMFrameArray - -DECLARE_INTERFACE_(IDirect3DRMFrameArray, IDirect3DRMArray) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD_(DWORD, GetSize)(THIS) PURE; - STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMFRAME *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMViewportArray - -DECLARE_INTERFACE_(IDirect3DRMViewportArray, IDirect3DRMArray) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD_(DWORD, GetSize)(THIS) PURE; - STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMVIEWPORT *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMVisualArray - -DECLARE_INTERFACE_(IDirect3DRMVisualArray, IDirect3DRMArray) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD_(DWORD, GetSize)(THIS) PURE; - STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMVISUAL *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMAnimationArray - -DECLARE_INTERFACE_(IDirect3DRMAnimationArray, IDirect3DRMArray) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD_(DWORD, GetSize)(THIS) PURE; - STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMANIMATION2 *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMPickedArray - -DECLARE_INTERFACE_(IDirect3DRMPickedArray, IDirect3DRMArray) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD_(DWORD, GetSize)(THIS) PURE; - STDMETHOD(GetPick)(THIS_ DWORD index, LPDIRECT3DRMVISUAL *, LPDIRECT3DRMFRAMEARRAY *, LPD3DRMPICKDESC) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMLightArray - -DECLARE_INTERFACE_(IDirect3DRMLightArray, IDirect3DRMArray) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD_(DWORD, GetSize)(THIS) PURE; - STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMLIGHT *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMFaceArray - -DECLARE_INTERFACE_(IDirect3DRMFaceArray, IDirect3DRMArray) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD_(DWORD, GetSize)(THIS) PURE; - STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMFACE *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMPicked2Array - -DECLARE_INTERFACE_(IDirect3DRMPicked2Array, IDirect3DRMArray) -{ - IUNKNOWN_METHODS(PURE); - - STDMETHOD_(DWORD, GetSize)(THIS) PURE; - STDMETHOD(GetPick)(THIS_ DWORD index, LPDIRECT3DRMVISUAL *, LPDIRECT3DRMFRAMEARRAY *, LPD3DRMPICKDESC2) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMInterpolator - -DECLARE_INTERFACE_(IDirect3DRMInterpolator, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMInterpolator methods - */ - STDMETHOD(AttachObject)(THIS_ LPDIRECT3DRMOBJECT) PURE; - STDMETHOD(GetAttachedObjects)(THIS_ LPDIRECT3DRMOBJECTARRAY *) PURE; - STDMETHOD(DetachObject)(THIS_ LPDIRECT3DRMOBJECT) PURE; - STDMETHOD(SetIndex)(THIS_ D3DVALUE) PURE; - STDMETHOD_(D3DVALUE, GetIndex)(THIS) PURE; - STDMETHOD(Interpolate)(THIS_ D3DVALUE, LPDIRECT3DRMOBJECT, D3DRMINTERPOLATIONOPTIONS) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirect3DRMClippedVisual - -DECLARE_INTERFACE_(IDirect3DRMClippedVisual, IDirect3DRMVisual) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMClippedVisual methods - */ - STDMETHOD(Init) (THIS_ LPDIRECT3DRMVISUAL) PURE; - STDMETHOD(AddPlane) (THIS_ LPDIRECT3DRMFRAME3, LPD3DVECTOR, LPD3DVECTOR, DWORD, LPDWORD) PURE; - STDMETHOD(DeletePlane)(THIS_ DWORD, DWORD) PURE; - STDMETHOD(GetPlaneIDs)(THIS_ LPDWORD, LPDWORD, DWORD) PURE; - STDMETHOD(GetPlane) (THIS_ DWORD, LPDIRECT3DRMFRAME3, LPD3DVECTOR, LPD3DVECTOR, DWORD) PURE; - STDMETHOD(SetPlane) (THIS_ DWORD, LPDIRECT3DRMFRAME3, LPD3DVECTOR, LPD3DVECTOR, DWORD) PURE; -}; - -#ifdef __cplusplus -}; -#endif -#endif /* _D3DRMOBJ_H_ */ - diff --git a/sdk/dx8sdk/Include/d3drmwin.h b/sdk/dx8sdk/Include/d3drmwin.h deleted file mode 100644 index d051ef48..00000000 --- a/sdk/dx8sdk/Include/d3drmwin.h +++ /dev/null @@ -1,50 +0,0 @@ -/*==========================================================================; - * - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * File: d3drm.h - * Content: Direct3DRM include file - * - ***************************************************************************/ - -#ifndef __D3DRMWIN_H__ -#define __D3DRMWIN_H__ - -#ifndef WIN32 -#define WIN32 -#endif - -#include "d3drm.h" - -#include "ddraw.h" -#include "d3d.h" - -/* - * GUIDS used by Direct3DRM Windows interface - */ -DEFINE_GUID(IID_IDirect3DRMWinDevice, 0xc5016cc0, 0xd273, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); - -WIN_TYPES(IDirect3DRMWinDevice, DIRECT3DRMWINDEVICE); - -#undef INTERFACE -#define INTERFACE IDirect3DRMWinDevice - -DECLARE_INTERFACE_(IDirect3DRMWinDevice, IDirect3DRMObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECT3DRMOBJECT_METHODS(PURE); - - /* - * IDirect3DRMWinDevice methods - */ - - /* Repaint the window with the last frame which was rendered. */ - STDMETHOD(HandlePaint)(THIS_ HDC hdc) PURE; - - /* Respond to a WM_ACTIVATE message. */ - STDMETHOD(HandleActivate)(THIS_ WORD wparam) PURE; -}; - - -#endif - diff --git a/sdk/dx8sdk/Include/d3dtypes.h b/sdk/dx8sdk/Include/d3dtypes.h deleted file mode 100644 index 79490418..00000000 --- a/sdk/dx8sdk/Include/d3dtypes.h +++ /dev/null @@ -1,2119 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: d3dtypes.h - * Content: Direct3D types include file - * - ***************************************************************************/ - -#ifndef _D3DTYPES_H_ -#define _D3DTYPES_H_ - -#ifndef DIRECT3D_VERSION -#define DIRECT3D_VERSION 0x0700 -#endif - -#if (DIRECT3D_VERSION >= 0x0800) -#pragma message("should not include d3dtypes.h when compiling for DX8 or newer interfaces") -#endif - -#include - -#include -#include "ddraw.h" - -#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 -typedef enum _D3DLIGHTTYPE D3DLIGHTTYPE; -#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 -// -typedef enum _D3DTRANSFORMSTATETYPE D3DTRANSFORMSTATETYPE; -#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 - -typedef enum _D3DRENDERSTATETYPE D3DRENDERSTATETYPE; - -// -// 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 -// -typedef enum _D3DVERTEXBLENDFLAGS D3DVERTEXBLENDFLAGS; -#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(default:4201) - -#endif /* _D3DTYPES_H_ */ - diff --git a/sdk/dx8sdk/Include/d3dvec.inl b/sdk/dx8sdk/Include/d3dvec.inl deleted file mode 100644 index ff7fdfea..00000000 --- a/sdk/dx8sdk/Include/d3dvec.inl +++ /dev/null @@ -1,255 +0,0 @@ - -/****************************************************************** - * * - * D3DVec.inl * - * * - * Float-valued 3D vector class for Direct3D. * - * * - * Copyright (c) Microsoft Corp. All rights reserved. * - * * - ******************************************************************/ - -#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; -} - diff --git a/sdk/dx8sdk/Include/d3dx.h b/sdk/dx8sdk/Include/d3dx.h deleted file mode 100644 index 7a511e3f..00000000 --- a/sdk/dx8sdk/Include/d3dx.h +++ /dev/null @@ -1,26 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx.h -// Content: D3DX utility library -// -/////////////////////////////////////////////////////////////////////////// - -#ifndef __D3DX_H__ -#define __D3DX_H__ - -#ifndef D3DXINLINE -#ifdef __cplusplus -#define D3DXINLINE inline -#else -#define D3DXINLINE _inline -#endif -#endif - -#include "d3dxcore.h" -#include "d3dxmath.h" -#include "d3dxshapes.h" -#include "d3dxsprite.h" - -#endif //__D3DX_H__ diff --git a/sdk/dx8sdk/Include/d3dx8.h b/sdk/dx8sdk/Include/d3dx8.h deleted file mode 100644 index 31927a27..00000000 --- a/sdk/dx8sdk/Include/d3dx8.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx8.h -// Content: D3DX utility library -// -/////////////////////////////////////////////////////////////////////////// - -#ifndef __D3DX8_H__ -#define __D3DX8_H__ - -#include "d3d8.h" -#include - -#ifndef D3DXINLINE -#ifdef _MSC_VER - #if (_MSC_VER >= 1200) - #define D3DXINLINE __forceinline - #else - #define D3DXINLINE __inline - #endif -#else - #ifdef __cplusplus - #define D3DXINLINE inline - #else - #define D3DXINLINE - #endif -#endif -#endif - - -#define D3DX_DEFAULT ULONG_MAX -#define D3DX_DEFAULT_FLOAT FLT_MAX - -#include "d3dx8math.h" -#include "d3dx8core.h" -#include "d3dx8tex.h" -#include "d3dx8mesh.h" -#include "d3dx8shape.h" -#include "d3dx8effect.h" - - -#endif //__D3DX8_H__ - diff --git a/sdk/dx8sdk/Include/d3dx8core.h b/sdk/dx8sdk/Include/d3dx8core.h deleted file mode 100644 index 46552a95..00000000 --- a/sdk/dx8sdk/Include/d3dx8core.h +++ /dev/null @@ -1,563 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx8core.h -// Content: D3DX core types and functions -// -/////////////////////////////////////////////////////////////////////////// - -#include "d3dx8.h" - -#ifndef __D3DX8CORE_H__ -#define __D3DX8CORE_H__ - - - -/////////////////////////////////////////////////////////////////////////// -// ID3DXBuffer: -// ------------ -// The buffer object is used by D3DX to return arbitrary size data. -// -// GetBufferPointer - -// Returns a pointer to the beginning of the buffer. -// -// GetBufferSize - -// Returns the size of the buffer, in bytes. -/////////////////////////////////////////////////////////////////////////// - -typedef interface ID3DXBuffer ID3DXBuffer; -typedef interface ID3DXBuffer *LPD3DXBUFFER; - -// {932E6A7E-C68E-45dd-A7BF-53D19C86DB1F} -DEFINE_GUID(IID_ID3DXBuffer, -0x932e6a7e, 0xc68e, 0x45dd, 0xa7, 0xbf, 0x53, 0xd1, 0x9c, 0x86, 0xdb, 0x1f); - -#undef INTERFACE -#define INTERFACE ID3DXBuffer - -DECLARE_INTERFACE_(ID3DXBuffer, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXBuffer - STDMETHOD_(LPVOID, GetBufferPointer)(THIS) PURE; - STDMETHOD_(DWORD, GetBufferSize)(THIS) PURE; -}; - - - -/////////////////////////////////////////////////////////////////////////// -// ID3DXFont: -// ---------- -// Font objects contain the textures and resources needed to render -// a specific font on a specific device. -// -// Begin - -// Prepartes device for drawing text. This is optional.. if DrawText -// is called outside of Begin/End, it will call Begin and End for you. -// -// DrawText - -// Draws formatted text on a D3D device. Some parameters are -// surprisingly similar to those of GDI's DrawText function. See GDI -// documentation for a detailed description of these parameters. -// -// End - -// Restores device state to how it was when Begin was called. -// -// OnLostDevice, OnResetDevice - -// Call OnLostDevice() on this object before calling Reset() on the -// device, so that this object can release any stateblocks and video -// memory resources. After Reset(), the call OnResetDevice(). -// -/////////////////////////////////////////////////////////////////////////// - -typedef interface ID3DXFont ID3DXFont; -typedef interface ID3DXFont *LPD3DXFONT; - - -// {89FAD6A5-024D-49af-8FE7-F51123B85E25} -DEFINE_GUID( IID_ID3DXFont, -0x89fad6a5, 0x24d, 0x49af, 0x8f, 0xe7, 0xf5, 0x11, 0x23, 0xb8, 0x5e, 0x25); - - -#undef INTERFACE -#define INTERFACE ID3DXFont - -DECLARE_INTERFACE_(ID3DXFont, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXFont - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE; - STDMETHOD(GetLogFont)(THIS_ LOGFONT* pLogFont) PURE; - - STDMETHOD(Begin)(THIS) PURE; - STDMETHOD_(INT, DrawTextA)(THIS_ LPCSTR pString, INT Count, LPRECT pRect, DWORD Format, D3DCOLOR Color) PURE; - STDMETHOD_(INT, DrawTextW)(THIS_ LPCWSTR pString, INT Count, LPRECT pRect, DWORD Format, D3DCOLOR Color) PURE; - STDMETHOD(End)(THIS) PURE; - - STDMETHOD(OnLostDevice)(THIS) PURE; - STDMETHOD(OnResetDevice)(THIS) PURE; -}; - -#ifndef DrawText -#ifdef UNICODE -#define DrawText DrawTextW -#else -#define DrawText DrawTextA -#endif -#endif - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -HRESULT WINAPI - D3DXCreateFont( - LPDIRECT3DDEVICE8 pDevice, - HFONT hFont, - LPD3DXFONT* ppFont); - - -HRESULT WINAPI - D3DXCreateFontIndirect( - LPDIRECT3DDEVICE8 pDevice, - CONST LOGFONT* pLogFont, - LPD3DXFONT* ppFont); - -#ifdef __cplusplus -} -#endif //__cplusplus - - - - -/////////////////////////////////////////////////////////////////////////// -// ID3DXSprite: -// ------------ -// This object intends to provide an easy way to drawing sprites using D3D. -// -// Begin - -// Prepares device for drawing sprites -// -// Draw, DrawAffine, DrawTransform - -// Draws a sprite in screen-space. Before transformation, the sprite is -// the size of SrcRect, with its top-left corner at the origin (0,0). -// The color and alpha channels are modulated by Color. -// -// End - -// Restores device state to how it was when Begin was called. -// -// OnLostDevice, OnResetDevice - -// Call OnLostDevice() on this object before calling Reset() on the -// device, so that this object can release any stateblocks and video -// memory resources. After Reset(), the call OnResetDevice(). -/////////////////////////////////////////////////////////////////////////// - -typedef interface ID3DXSprite ID3DXSprite; -typedef interface ID3DXSprite *LPD3DXSPRITE; - - -// {13D69D15-F9B0-4e0f-B39E-C91EB33F6CE7} -DEFINE_GUID( IID_ID3DXSprite, -0x13d69d15, 0xf9b0, 0x4e0f, 0xb3, 0x9e, 0xc9, 0x1e, 0xb3, 0x3f, 0x6c, 0xe7); - - -#undef INTERFACE -#define INTERFACE ID3DXSprite - -DECLARE_INTERFACE_(ID3DXSprite, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXSprite - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE; - - STDMETHOD(Begin)(THIS) PURE; - - STDMETHOD(Draw)(THIS_ LPDIRECT3DTEXTURE8 pSrcTexture, - CONST RECT* pSrcRect, CONST D3DXVECTOR2* pScaling, - CONST D3DXVECTOR2* pRotationCenter, FLOAT Rotation, - CONST D3DXVECTOR2* pTranslation, D3DCOLOR Color) PURE; - - STDMETHOD(DrawTransform)(THIS_ LPDIRECT3DTEXTURE8 pSrcTexture, - CONST RECT* pSrcRect, CONST D3DXMATRIX* pTransform, - D3DCOLOR Color) PURE; - - STDMETHOD(End)(THIS) PURE; - - STDMETHOD(OnLostDevice)(THIS) PURE; - STDMETHOD(OnResetDevice)(THIS) PURE; -}; - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - - -HRESULT WINAPI - D3DXCreateSprite( - LPDIRECT3DDEVICE8 pDevice, - LPD3DXSPRITE* ppSprite); - -#ifdef __cplusplus -} -#endif //__cplusplus - - - - -/////////////////////////////////////////////////////////////////////////// -// ID3DXRenderToSurface: -// --------------------- -// This object abstracts rendering to surfaces. These surfaces do not -// necessarily need to be render targets. If they are not, a compatible -// render target is used, and the result copied into surface at end scene. -// -// BeginScene, EndScene - -// Call BeginScene() and EndScene() at the beginning and ending of your -// scene. These calls will setup and restore render targets, viewports, -// etc.. -// -// OnLostDevice, OnResetDevice - -// Call OnLostDevice() on this object before calling Reset() on the -// device, so that this object can release any stateblocks and video -// memory resources. After Reset(), the call OnResetDevice(). -/////////////////////////////////////////////////////////////////////////// - -typedef struct _D3DXRTS_DESC -{ - UINT Width; - UINT Height; - D3DFORMAT Format; - BOOL DepthStencil; - D3DFORMAT DepthStencilFormat; - -} D3DXRTS_DESC; - - -typedef interface ID3DXRenderToSurface ID3DXRenderToSurface; -typedef interface ID3DXRenderToSurface *LPD3DXRENDERTOSURFACE; - - -// {82DF5B90-E34E-496e-AC1C-62117A6A5913} -DEFINE_GUID( IID_ID3DXRenderToSurface, -0x82df5b90, 0xe34e, 0x496e, 0xac, 0x1c, 0x62, 0x11, 0x7a, 0x6a, 0x59, 0x13); - - -#undef INTERFACE -#define INTERFACE ID3DXRenderToSurface - -DECLARE_INTERFACE_(ID3DXRenderToSurface, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXRenderToSurface - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE; - STDMETHOD(GetDesc)(THIS_ D3DXRTS_DESC* pDesc) PURE; - - STDMETHOD(BeginScene)(THIS_ LPDIRECT3DSURFACE8 pSurface, CONST D3DVIEWPORT8* pViewport) PURE; - STDMETHOD(EndScene)(THIS) PURE; - - STDMETHOD(OnLostDevice)(THIS) PURE; - STDMETHOD(OnResetDevice)(THIS) PURE; -}; - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -HRESULT WINAPI - D3DXCreateRenderToSurface( - LPDIRECT3DDEVICE8 pDevice, - UINT Width, - UINT Height, - D3DFORMAT Format, - BOOL DepthStencil, - D3DFORMAT DepthStencilFormat, - LPD3DXRENDERTOSURFACE* ppRenderToSurface); - -#ifdef __cplusplus -} -#endif //__cplusplus - - - -/////////////////////////////////////////////////////////////////////////// -// ID3DXRenderToEnvMap: -// -------------------- -// This object abstracts rendering to environment maps. These surfaces -// do not necessarily need to be render targets. If they are not, a -// compatible render target is used, and the result copied into the -// environment map at end scene. -// -// BeginCube, BeginSphere, BeginHemisphere, BeginParabolic - -// This function initiates the rendering of the environment map. As -// parameters, you pass the textures in which will get filled in with -// the resulting environment map. -// -// Face - -// Call this function to initiate the drawing of each face. For each -// environment map, you will call this six times.. once for each face -// in D3DCUBEMAP_FACES. -// -// End - -// This will restore all render targets, and if needed compose all the -// rendered faces into the environment map surfaces. -// -// OnLostDevice, OnResetDevice - -// Call OnLostDevice() on this object before calling Reset() on the -// device, so that this object can release any stateblocks and video -// memory resources. After Reset(), the call OnResetDevice(). -/////////////////////////////////////////////////////////////////////////// - -typedef struct _D3DXRTE_DESC -{ - UINT Size; - D3DFORMAT Format; - BOOL DepthStencil; - D3DFORMAT DepthStencilFormat; -} D3DXRTE_DESC; - - -typedef interface ID3DXRenderToEnvMap ID3DXRenderToEnvMap; -typedef interface ID3DXRenderToEnvMap *LPD3DXRenderToEnvMap; - -// {4E42C623-9451-44b7-8C86-ABCCDE5D52C8} -DEFINE_GUID( IID_ID3DXRenderToEnvMap, -0x4e42c623, 0x9451, 0x44b7, 0x8c, 0x86, 0xab, 0xcc, 0xde, 0x5d, 0x52, 0xc8); - - -#undef INTERFACE -#define INTERFACE ID3DXRenderToEnvMap - -DECLARE_INTERFACE_(ID3DXRenderToEnvMap, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXRenderToEnvMap - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE; - STDMETHOD(GetDesc)(THIS_ D3DXRTE_DESC* pDesc) PURE; - - STDMETHOD(BeginCube)(THIS_ - LPDIRECT3DCUBETEXTURE8 pCubeTex) PURE; - - STDMETHOD(BeginSphere)(THIS_ - LPDIRECT3DTEXTURE8 pTex) PURE; - - STDMETHOD(BeginHemisphere)(THIS_ - LPDIRECT3DTEXTURE8 pTexZPos, - LPDIRECT3DTEXTURE8 pTexZNeg) PURE; - - STDMETHOD(BeginParabolic)(THIS_ - LPDIRECT3DTEXTURE8 pTexZPos, - LPDIRECT3DTEXTURE8 pTexZNeg) PURE; - - STDMETHOD(Face)(THIS_ D3DCUBEMAP_FACES Face) PURE; - STDMETHOD(End)(THIS) PURE; - - STDMETHOD(OnLostDevice)(THIS) PURE; - STDMETHOD(OnResetDevice)(THIS) PURE; -}; - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -HRESULT WINAPI - D3DXCreateRenderToEnvMap( - LPDIRECT3DDEVICE8 pDevice, - UINT Size, - D3DFORMAT Format, - BOOL DepthStencil, - D3DFORMAT DepthStencilFormat, - LPD3DXRenderToEnvMap* ppRenderToEnvMap); - -#ifdef __cplusplus -} -#endif //__cplusplus - - - -/////////////////////////////////////////////////////////////////////////// -// Shader assemblers: -/////////////////////////////////////////////////////////////////////////// - -//------------------------------------------------------------------------- -// D3DXASM flags: -// -------------- -// -// D3DXASM_DEBUG -// Generate debug info. -// -// D3DXASM_SKIPVALIDATION -// Do not validate the generated code against known capabilities and -// constraints. This option is only recommended when assembling shaders -// you KNOW will work. (ie. have assembled before without this option.) -//------------------------------------------------------------------------- - -#define D3DXASM_DEBUG (1 << 0) -#define D3DXASM_SKIPVALIDATION (1 << 1) - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -//------------------------------------------------------------------------- -// D3DXAssembleShader: -// ------------------- -// Assembles an ascii description of a vertex or pixel shader into -// binary form. -// -// 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 -// SrcDataLen -// Size of source code, in bytes -// Flags -// D3DXASM_xxx flags -// ppConstants -// Returns an ID3DXBuffer object containing constant declarations. -// ppCompiledShader -// Returns an ID3DXBuffer object containing the object code. -// ppCompilationErrors -// Returns an ID3DXBuffer object containing ascii error messages -//------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXAssembleShaderFromFileA( - LPCSTR pSrcFile, - DWORD Flags, - LPD3DXBUFFER* ppConstants, - LPD3DXBUFFER* ppCompiledShader, - LPD3DXBUFFER* ppCompilationErrors); - -HRESULT WINAPI - D3DXAssembleShaderFromFileW( - LPCWSTR pSrcFile, - DWORD Flags, - LPD3DXBUFFER* ppConstants, - LPD3DXBUFFER* ppCompiledShader, - LPD3DXBUFFER* ppCompilationErrors); - -#ifdef UNICODE -#define D3DXAssembleShaderFromFile D3DXAssembleShaderFromFileW -#else -#define D3DXAssembleShaderFromFile D3DXAssembleShaderFromFileA -#endif - -HRESULT WINAPI - D3DXAssembleShaderFromResourceA( - HMODULE hSrcModule, - LPCSTR pSrcResource, - DWORD Flags, - LPD3DXBUFFER* ppConstants, - LPD3DXBUFFER* ppCompiledShader, - LPD3DXBUFFER* ppCompilationErrors); - -HRESULT WINAPI - D3DXAssembleShaderFromResourceW( - HMODULE hSrcModule, - LPCWSTR pSrcResource, - DWORD Flags, - LPD3DXBUFFER* ppConstants, - LPD3DXBUFFER* ppCompiledShader, - LPD3DXBUFFER* ppCompilationErrors); - -#ifdef UNICODE -#define D3DXAssembleShaderFromResource D3DXAssembleShaderFromResourceW -#else -#define D3DXAssembleShaderFromResource D3DXAssembleShaderFromResourceA -#endif - -HRESULT WINAPI - D3DXAssembleShader( - LPCVOID pSrcData, - UINT SrcDataLen, - DWORD Flags, - LPD3DXBUFFER* ppConstants, - LPD3DXBUFFER* ppCompiledShader, - LPD3DXBUFFER* ppCompilationErrors); - - -#ifdef __cplusplus -} -#endif //__cplusplus - - - -/////////////////////////////////////////////////////////////////////////// -// Misc APIs: -/////////////////////////////////////////////////////////////////////////// - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -//------------------------------------------------------------------------- -// D3DXGetErrorString: -// ------------------ -// Returns the error string for given an hresult. Interprets all D3DX and -// D3D hresults. -// -// Parameters: -// hr -// The error code to be deciphered. -// pBuffer -// Pointer to the buffer to be filled in. -// BufferLen -// Count of characters in buffer. Any error message longer than this -// length will be truncated to fit. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXGetErrorStringA( - HRESULT hr, - LPSTR pBuffer, - UINT BufferLen); - -HRESULT WINAPI - D3DXGetErrorStringW( - HRESULT hr, - LPWSTR pBuffer, - UINT BufferLen); - -#ifdef UNICODE -#define D3DXGetErrorString D3DXGetErrorStringW -#else -#define D3DXGetErrorString D3DXGetErrorStringA -#endif - - - -#ifdef __cplusplus -} -#endif //__cplusplus - -#endif //__D3DX8CORE_H__ diff --git a/sdk/dx8sdk/Include/d3dx8effect.h b/sdk/dx8sdk/Include/d3dx8effect.h deleted file mode 100644 index 97c44df9..00000000 --- a/sdk/dx8sdk/Include/d3dx8effect.h +++ /dev/null @@ -1,226 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx8effect.h -// Content: D3DX effect types and functions -// -/////////////////////////////////////////////////////////////////////////// - -#include "d3dx8.h" - -#ifndef __D3DX8EFFECT_H__ -#define __D3DX8EFFECT_H__ - - -#define D3DXFX_DONOTSAVESTATE (1 << 0) - - -typedef enum _D3DXPARAMETERTYPE -{ - D3DXPT_DWORD = 0, - D3DXPT_FLOAT = 1, - D3DXPT_VECTOR = 2, - D3DXPT_MATRIX = 3, - D3DXPT_TEXTURE = 4, - D3DXPT_VERTEXSHADER = 5, - D3DXPT_PIXELSHADER = 6, - D3DXPT_CONSTANT = 7, - D3DXPT_STRING = 8, - D3DXPT_FORCE_DWORD = 0x7fffffff /* force 32-bit size enum */ - -} D3DXPARAMETERTYPE; - - -typedef struct _D3DXEFFECT_DESC -{ - UINT Parameters; - UINT Techniques; - -} D3DXEFFECT_DESC; - - -typedef struct _D3DXPARAMETER_DESC -{ - LPCSTR Name; - LPCSTR Index; - D3DXPARAMETERTYPE Type; - -} D3DXPARAMETER_DESC; - - -typedef struct _D3DXTECHNIQUE_DESC -{ - LPCSTR Name; - LPCSTR Index; - UINT Passes; - -} D3DXTECHNIQUE_DESC; - - -typedef struct _D3DXPASS_DESC -{ - LPCSTR Name; - LPCSTR Index; - -} D3DXPASS_DESC; - - - -////////////////////////////////////////////////////////////////////////////// -// ID3DXEffect /////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -typedef interface ID3DXEffect ID3DXEffect; -typedef interface ID3DXEffect *LPD3DXEFFECT; - -// {648B1CEB-8D4E-4d66-B6FA-E44969E82E89} -DEFINE_GUID( IID_ID3DXEffect, -0x648b1ceb, 0x8d4e, 0x4d66, 0xb6, 0xfa, 0xe4, 0x49, 0x69, 0xe8, 0x2e, 0x89); - - -#undef INTERFACE -#define INTERFACE ID3DXEffect - -DECLARE_INTERFACE_(ID3DXEffect, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXEffect - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE; - STDMETHOD(GetDesc)(THIS_ D3DXEFFECT_DESC* pDesc) PURE; - STDMETHOD(GetParameterDesc)(THIS_ LPCSTR pParameter, D3DXPARAMETER_DESC* pDesc) PURE; - STDMETHOD(GetTechniqueDesc)(THIS_ LPCSTR pTechnique, D3DXTECHNIQUE_DESC* pDesc) PURE; - STDMETHOD(GetPassDesc)(THIS_ LPCSTR pTechnique, LPCSTR pPass, D3DXPASS_DESC* pDesc) PURE; - STDMETHOD(FindNextValidTechnique)(THIS_ LPCSTR pTechnique, D3DXTECHNIQUE_DESC* pDesc) PURE; - STDMETHOD(CloneEffect)(THIS_ LPDIRECT3DDEVICE8 pDevice, LPD3DXEFFECT* ppEffect) PURE; - STDMETHOD(GetCompiledEffect)(THIS_ LPD3DXBUFFER* ppCompiledEffect) PURE; - - STDMETHOD(SetTechnique)(THIS_ LPCSTR pTechnique) PURE; - STDMETHOD(GetTechnique)(THIS_ LPCSTR* ppTechnique) PURE; - - STDMETHOD(SetDword)(THIS_ LPCSTR pParameter, DWORD dw) PURE; - STDMETHOD(GetDword)(THIS_ LPCSTR pParameter, DWORD* pdw) PURE; - STDMETHOD(SetFloat)(THIS_ LPCSTR pParameter, FLOAT f) PURE; - STDMETHOD(GetFloat)(THIS_ LPCSTR pParameter, FLOAT* pf) PURE; - STDMETHOD(SetVector)(THIS_ LPCSTR pParameter, CONST D3DXVECTOR4* pVector) PURE; - STDMETHOD(GetVector)(THIS_ LPCSTR pParameter, D3DXVECTOR4* pVector) PURE; - STDMETHOD(SetMatrix)(THIS_ LPCSTR pParameter, CONST D3DXMATRIX* pMatrix) PURE; - STDMETHOD(GetMatrix)(THIS_ LPCSTR pParameter, D3DXMATRIX* pMatrix) PURE; - STDMETHOD(SetTexture)(THIS_ LPCSTR pParameter, LPDIRECT3DBASETEXTURE8 pTexture) PURE; - STDMETHOD(GetTexture)(THIS_ LPCSTR pParameter, LPDIRECT3DBASETEXTURE8 *ppTexture) PURE; - STDMETHOD(SetVertexShader)(THIS_ LPCSTR pParameter, DWORD Handle) PURE; - STDMETHOD(GetVertexShader)(THIS_ LPCSTR pParameter, DWORD* pHandle) PURE; - STDMETHOD(SetPixelShader)(THIS_ LPCSTR pParameter, DWORD Handle) PURE; - STDMETHOD(GetPixelShader)(THIS_ LPCSTR pParameter, DWORD* pHandle) PURE; - STDMETHOD(SetString)(THIS_ LPCSTR pParameter, LPCSTR pString) PURE; - STDMETHOD(GetString)(THIS_ LPCSTR pParameter, LPCSTR* ppString) PURE; - STDMETHOD_(BOOL, IsParameterUsed)(THIS_ LPCSTR pParameter) PURE; - - STDMETHOD(Validate)(THIS) PURE; - STDMETHOD(Begin)(THIS_ UINT *pPasses, DWORD Flags) PURE; - STDMETHOD(Pass)(THIS_ UINT Pass) PURE; - STDMETHOD(End)(THIS) PURE; - STDMETHOD(OnLostDevice)(THIS) PURE; - STDMETHOD(OnResetDevice)(THIS) PURE; -}; - - - -////////////////////////////////////////////////////////////////////////////// -// APIs ////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - - -//---------------------------------------------------------------------------- -// D3DXCreateEffect: -// ----------------- -// Creates an effect from an ascii or binaray effect description. -// -// Parameters: -// pDevice -// Pointer of the device on which to create the effect -// pSrcFile -// Name of the file containing the effect description -// hSrcModule -// Module handle. if NULL, current module will be used. -// pSrcResource -// Resource name in module -// pSrcData -// Pointer to effect description -// SrcDataSize -// Size of the effect description in bytes -// ppEffect -// Returns a buffer containing created effect. -// ppCompilationErrors -// Returns a buffer containing any error messages which occurred during -// compile. Or NULL if you do not care about the error messages. -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXCreateEffectFromFileA( - LPDIRECT3DDEVICE8 pDevice, - LPCSTR pSrcFile, - LPD3DXEFFECT* ppEffect, - LPD3DXBUFFER* ppCompilationErrors); - -HRESULT WINAPI - D3DXCreateEffectFromFileW( - LPDIRECT3DDEVICE8 pDevice, - LPCWSTR pSrcFile, - LPD3DXEFFECT* ppEffect, - LPD3DXBUFFER* ppCompilationErrors); - -#ifdef UNICODE -#define D3DXCreateEffectFromFile D3DXCreateEffectFromFileW -#else -#define D3DXCreateEffectFromFile D3DXCreateEffectFromFileA -#endif - - -HRESULT WINAPI - D3DXCreateEffectFromResourceA( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - LPD3DXEFFECT* ppEffect, - LPD3DXBUFFER* ppCompilationErrors); - -HRESULT WINAPI - D3DXCreateEffectFromResourceW( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - LPD3DXEFFECT* ppEffect, - LPD3DXBUFFER* ppCompilationErrors); - -#ifdef UNICODE -#define D3DXCreateEffectFromResource D3DXCreateEffectFromResourceW -#else -#define D3DXCreateEffectFromResource D3DXCreateEffectFromResourceA -#endif - - -HRESULT WINAPI - D3DXCreateEffect( - LPDIRECT3DDEVICE8 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - LPD3DXEFFECT* ppEffect, - LPD3DXBUFFER* ppCompilationErrors); - - -#ifdef __cplusplus -} -#endif //__cplusplus - -#endif //__D3DX8EFFECT_H__ diff --git a/sdk/dx8sdk/Include/d3dx8math.h b/sdk/dx8sdk/Include/d3dx8math.h deleted file mode 100644 index 9c8f2030..00000000 --- a/sdk/dx8sdk/Include/d3dx8math.h +++ /dev/null @@ -1,1215 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx8math.h -// Content: D3DX math types and functions -// -////////////////////////////////////////////////////////////////////////////// - -#include "d3dx8.h" - -#ifndef __D3DX8MATH_H__ -#define __D3DX8MATH_H__ - -#include -#pragma warning(disable:4201) // anonymous unions warning - - - -//=========================================================================== -// -// General purpose utilities -// -//=========================================================================== -#define D3DX_PI ((FLOAT) 3.141592654f) -#define D3DX_1BYPI ((FLOAT) 0.318309886f) - -#define D3DXToRadian( degree ) ((degree) * (D3DX_PI / 180.0f)) -#define D3DXToDegree( radian ) ((radian) * (180.0f / D3DX_PI)) - - - -//=========================================================================== -// -// Vectors -// -//=========================================================================== - -//-------------------------- -// 2D Vector -//-------------------------- -typedef struct D3DXVECTOR2 -{ -#ifdef __cplusplus -public: - D3DXVECTOR2() {}; - D3DXVECTOR2( CONST FLOAT * ); - D3DXVECTOR2( FLOAT x, FLOAT y ); - - // casting - operator FLOAT* (); - operator CONST FLOAT* () const; - - // assignment operators - D3DXVECTOR2& operator += ( CONST D3DXVECTOR2& ); - D3DXVECTOR2& operator -= ( CONST D3DXVECTOR2& ); - D3DXVECTOR2& operator *= ( FLOAT ); - D3DXVECTOR2& operator /= ( FLOAT ); - - // unary operators - D3DXVECTOR2 operator + () const; - D3DXVECTOR2 operator - () const; - - // binary operators - D3DXVECTOR2 operator + ( CONST D3DXVECTOR2& ) const; - D3DXVECTOR2 operator - ( CONST D3DXVECTOR2& ) const; - D3DXVECTOR2 operator * ( FLOAT ) const; - D3DXVECTOR2 operator / ( FLOAT ) const; - - friend D3DXVECTOR2 operator * ( FLOAT, CONST D3DXVECTOR2& ); - - BOOL operator == ( CONST D3DXVECTOR2& ) const; - BOOL operator != ( CONST D3DXVECTOR2& ) const; - - -public: -#endif //__cplusplus - FLOAT x, y; -} D3DXVECTOR2, *LPD3DXVECTOR2; - - -//-------------------------- -// 3D Vector -//-------------------------- -#ifdef __cplusplus -typedef struct D3DXVECTOR3 : public D3DVECTOR -{ -public: - D3DXVECTOR3() {}; - D3DXVECTOR3( CONST FLOAT * ); - D3DXVECTOR3( CONST D3DVECTOR& ); - D3DXVECTOR3( FLOAT x, FLOAT y, FLOAT z ); - - // casting - operator FLOAT* (); - operator CONST FLOAT* () const; - - // assignment operators - D3DXVECTOR3& operator += ( CONST D3DXVECTOR3& ); - D3DXVECTOR3& operator -= ( CONST D3DXVECTOR3& ); - D3DXVECTOR3& operator *= ( FLOAT ); - D3DXVECTOR3& operator /= ( FLOAT ); - - // unary operators - D3DXVECTOR3 operator + () const; - D3DXVECTOR3 operator - () const; - - // binary operators - D3DXVECTOR3 operator + ( CONST D3DXVECTOR3& ) const; - D3DXVECTOR3 operator - ( CONST D3DXVECTOR3& ) const; - D3DXVECTOR3 operator * ( FLOAT ) const; - D3DXVECTOR3 operator / ( FLOAT ) const; - - friend D3DXVECTOR3 operator * ( FLOAT, CONST struct D3DXVECTOR3& ); - - BOOL operator == ( CONST D3DXVECTOR3& ) const; - BOOL operator != ( CONST D3DXVECTOR3& ) const; - -} D3DXVECTOR3, *LPD3DXVECTOR3; - -#else //!__cplusplus -typedef struct _D3DVECTOR D3DXVECTOR3, *LPD3DXVECTOR3; -#endif //!__cplusplus - - -//-------------------------- -// 4D Vector -//-------------------------- -typedef struct D3DXVECTOR4 -{ -#ifdef __cplusplus -public: - D3DXVECTOR4() {}; - D3DXVECTOR4( CONST FLOAT* ); - D3DXVECTOR4( FLOAT x, FLOAT y, FLOAT z, FLOAT w ); - - // casting - operator FLOAT* (); - operator CONST FLOAT* () const; - - // assignment operators - D3DXVECTOR4& operator += ( CONST D3DXVECTOR4& ); - D3DXVECTOR4& operator -= ( CONST D3DXVECTOR4& ); - D3DXVECTOR4& operator *= ( FLOAT ); - D3DXVECTOR4& operator /= ( FLOAT ); - - // unary operators - D3DXVECTOR4 operator + () const; - D3DXVECTOR4 operator - () const; - - // binary operators - D3DXVECTOR4 operator + ( CONST D3DXVECTOR4& ) const; - D3DXVECTOR4 operator - ( CONST D3DXVECTOR4& ) const; - D3DXVECTOR4 operator * ( FLOAT ) const; - D3DXVECTOR4 operator / ( FLOAT ) const; - - friend D3DXVECTOR4 operator * ( FLOAT, CONST D3DXVECTOR4& ); - - BOOL operator == ( CONST D3DXVECTOR4& ) const; - BOOL operator != ( CONST D3DXVECTOR4& ) const; - -public: -#endif //__cplusplus - FLOAT x, y, z, w; -} D3DXVECTOR4, *LPD3DXVECTOR4; - - -//=========================================================================== -// -// Matrices -// -//=========================================================================== -#ifdef __cplusplus -typedef struct D3DXMATRIX : public D3DMATRIX -{ -public: - D3DXMATRIX() {}; - D3DXMATRIX( CONST FLOAT * ); - D3DXMATRIX( CONST D3DMATRIX& ); - D3DXMATRIX( FLOAT _11, FLOAT _12, FLOAT _13, FLOAT _14, - FLOAT _21, FLOAT _22, FLOAT _23, FLOAT _24, - FLOAT _31, FLOAT _32, FLOAT _33, FLOAT _34, - FLOAT _41, FLOAT _42, FLOAT _43, FLOAT _44 ); - - - // access grants - FLOAT& operator () ( UINT Row, UINT Col ); - FLOAT operator () ( UINT Row, UINT Col ) const; - - // casting operators - operator FLOAT* (); - operator CONST FLOAT* () const; - - // assignment operators - D3DXMATRIX& operator *= ( CONST D3DXMATRIX& ); - D3DXMATRIX& operator += ( CONST D3DXMATRIX& ); - D3DXMATRIX& operator -= ( CONST D3DXMATRIX& ); - D3DXMATRIX& operator *= ( FLOAT ); - D3DXMATRIX& operator /= ( FLOAT ); - - // unary operators - D3DXMATRIX operator + () const; - D3DXMATRIX operator - () const; - - // binary operators - D3DXMATRIX operator * ( CONST D3DXMATRIX& ) const; - D3DXMATRIX operator + ( CONST D3DXMATRIX& ) const; - D3DXMATRIX operator - ( CONST D3DXMATRIX& ) const; - D3DXMATRIX operator * ( FLOAT ) const; - D3DXMATRIX operator / ( FLOAT ) const; - - friend D3DXMATRIX operator * ( FLOAT, CONST D3DXMATRIX& ); - - BOOL operator == ( CONST D3DXMATRIX& ) const; - BOOL operator != ( CONST D3DXMATRIX& ) const; - -} D3DXMATRIX, *LPD3DXMATRIX; - -#else //!__cplusplus -typedef struct _D3DMATRIX D3DXMATRIX, *LPD3DXMATRIX; -#endif //!__cplusplus - -//=========================================================================== -// -// Aligned Matrices -// -// This class helps keep matrices 16-byte aligned as preferred by P4 cpus. -// It aligns matrices on the stack and on the heap or in global scope. -// It does this using __declspec(align(16)) which works on VC7 and on VC 6 -// with the processor pack. Unfortunately there is no way to detect the -// latter so this is turned on only on VC7. On other compilers this is the -// the same as D3DXMATRIX. -// Using this class on a compiler that does not actually do the alignment -// can be dangerous since it will not expose bugs that ignore alignment. -// E.g if an object of this class in inside a struct or class, and some code -// memcopys data in it assuming tight packing. This could break on a compiler -// that eventually start aligning the matrix. -// -//=========================================================================== -#ifdef __cplusplus -typedef struct _D3DXMATRIXA16 : public D3DXMATRIX -{ - _D3DXMATRIXA16() {} - _D3DXMATRIXA16( CONST FLOAT * f): D3DXMATRIX(f) {} - _D3DXMATRIXA16( CONST D3DMATRIX& m): D3DXMATRIX(m) {} - _D3DXMATRIXA16( FLOAT _11, FLOAT _12, FLOAT _13, FLOAT _14, - FLOAT _21, FLOAT _22, FLOAT _23, FLOAT _24, - FLOAT _31, FLOAT _32, FLOAT _33, FLOAT _34, - FLOAT _41, FLOAT _42, FLOAT _43, FLOAT _44 ) : - D3DXMATRIX(_11, _12, _13, _14, - _21, _22, _23, _24, - _31, _32, _33, _34, - _41, _42, _43, _44) {} - void* operator new(size_t s) - { - LPBYTE p = ::new BYTE[s + 16]; - if (p) - { - BYTE offset = (BYTE)(16 - ((UINT_PTR)p & 15)); - p += offset; - p[-1] = offset; - } - return p; - }; - - void* operator new[](size_t s) - { - LPBYTE p = ::new BYTE[s + 16]; - if (p) - { - BYTE offset = (BYTE)(16 - ((UINT_PTR)p & 15)); - p += offset; - p[-1] = offset; - } - return p; - }; - - // This is NOT a virtual operator. If you cast - // to D3DXMATRIX, do not delete using that - void operator delete(void* p) - { - if(p) - { - BYTE* pb = static_cast(p); - pb -= pb[-1]; - ::delete [] pb; - } - }; - - // This is NOT a virtual operator. If you cast - // to D3DXMATRIX, do not delete using that - void operator delete[](void* p) - { - if(p) - { - BYTE* pb = static_cast(p); - pb -= pb[-1]; - ::delete [] pb; - } - }; - - struct _D3DXMATRIXA16& operator=(CONST D3DXMATRIX& rhs) - { - memcpy(&_11, &rhs, sizeof(D3DXMATRIX)); - return *this; - }; -} _D3DXMATRIXA16; - -#else //!__cplusplus -typedef D3DXMATRIX _D3DXMATRIXA16; -#endif //!__cplusplus - -#if _MSC_VER >= 1300 // VC7 -#define _ALIGN_16 __declspec(align(16)) -#else -#define _ALIGN_16 // Earlier compiler may not understand this, do nothing. -#endif - -#define D3DXMATRIXA16 _ALIGN_16 _D3DXMATRIXA16 - -typedef D3DXMATRIXA16 *LPD3DXMATRIXA16; - -//=========================================================================== -// -// Quaternions -// -//=========================================================================== -typedef struct D3DXQUATERNION -{ -#ifdef __cplusplus -public: - D3DXQUATERNION() {} - D3DXQUATERNION( CONST FLOAT * ); - D3DXQUATERNION( FLOAT x, FLOAT y, FLOAT z, FLOAT w ); - - // casting - operator FLOAT* (); - operator CONST FLOAT* () const; - - // assignment operators - D3DXQUATERNION& operator += ( CONST D3DXQUATERNION& ); - D3DXQUATERNION& operator -= ( CONST D3DXQUATERNION& ); - D3DXQUATERNION& operator *= ( CONST D3DXQUATERNION& ); - D3DXQUATERNION& operator *= ( FLOAT ); - D3DXQUATERNION& operator /= ( FLOAT ); - - // unary operators - D3DXQUATERNION operator + () const; - D3DXQUATERNION operator - () const; - - // binary operators - D3DXQUATERNION operator + ( CONST D3DXQUATERNION& ) const; - D3DXQUATERNION operator - ( CONST D3DXQUATERNION& ) const; - D3DXQUATERNION operator * ( CONST D3DXQUATERNION& ) const; - D3DXQUATERNION operator * ( FLOAT ) const; - D3DXQUATERNION operator / ( FLOAT ) const; - - friend D3DXQUATERNION operator * (FLOAT, CONST D3DXQUATERNION& ); - - BOOL operator == ( CONST D3DXQUATERNION& ) const; - BOOL operator != ( CONST D3DXQUATERNION& ) const; - -#endif //__cplusplus - FLOAT x, y, z, w; -} D3DXQUATERNION, *LPD3DXQUATERNION; - - -//=========================================================================== -// -// Planes -// -//=========================================================================== -typedef struct D3DXPLANE -{ -#ifdef __cplusplus -public: - D3DXPLANE() {} - D3DXPLANE( CONST FLOAT* ); - D3DXPLANE( FLOAT a, FLOAT b, FLOAT c, FLOAT d ); - - // casting - operator FLOAT* (); - operator CONST FLOAT* () const; - - // unary operators - D3DXPLANE operator + () const; - D3DXPLANE operator - () const; - - // binary operators - BOOL operator == ( CONST D3DXPLANE& ) const; - BOOL operator != ( CONST D3DXPLANE& ) const; - -#endif //__cplusplus - FLOAT a, b, c, d; -} D3DXPLANE, *LPD3DXPLANE; - - -//=========================================================================== -// -// Colors -// -//=========================================================================== - -typedef struct D3DXCOLOR -{ -#ifdef __cplusplus -public: - D3DXCOLOR() {} - D3DXCOLOR( DWORD argb ); - D3DXCOLOR( CONST FLOAT * ); - D3DXCOLOR( CONST D3DCOLORVALUE& ); - D3DXCOLOR( FLOAT r, FLOAT g, FLOAT b, FLOAT a ); - - // casting - operator DWORD () const; - - operator FLOAT* (); - operator CONST FLOAT* () const; - - operator D3DCOLORVALUE* (); - operator CONST D3DCOLORVALUE* () const; - - operator D3DCOLORVALUE& (); - operator CONST D3DCOLORVALUE& () const; - - // assignment operators - D3DXCOLOR& operator += ( CONST D3DXCOLOR& ); - D3DXCOLOR& operator -= ( CONST D3DXCOLOR& ); - D3DXCOLOR& operator *= ( FLOAT ); - D3DXCOLOR& operator /= ( FLOAT ); - - // unary operators - D3DXCOLOR operator + () const; - D3DXCOLOR operator - () const; - - // binary operators - D3DXCOLOR operator + ( CONST D3DXCOLOR& ) const; - D3DXCOLOR operator - ( CONST D3DXCOLOR& ) const; - D3DXCOLOR operator * ( FLOAT ) const; - D3DXCOLOR operator / ( FLOAT ) const; - - friend D3DXCOLOR operator * (FLOAT, CONST D3DXCOLOR& ); - - BOOL operator == ( CONST D3DXCOLOR& ) const; - BOOL operator != ( CONST D3DXCOLOR& ) const; - -#endif //__cplusplus - FLOAT r, g, b, a; -} D3DXCOLOR, *LPD3DXCOLOR; - - - -//=========================================================================== -// -// D3DX math functions: -// -// NOTE: -// * All these functions can take the same object as in and out parameters. -// -// * Out parameters are typically also returned as return values, so that -// the output of one function may be used as a parameter to another. -// -//=========================================================================== - -//-------------------------- -// 2D Vector -//-------------------------- - -// inline - -FLOAT D3DXVec2Length - ( CONST D3DXVECTOR2 *pV ); - -FLOAT D3DXVec2LengthSq - ( CONST D3DXVECTOR2 *pV ); - -FLOAT D3DXVec2Dot - ( CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ); - -// Z component of ((x1,y1,0) cross (x2,y2,0)) -FLOAT D3DXVec2CCW - ( CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ); - -D3DXVECTOR2* D3DXVec2Add - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ); - -D3DXVECTOR2* D3DXVec2Subtract - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ); - -// Minimize each component. x = min(x1, x2), y = min(y1, y2) -D3DXVECTOR2* D3DXVec2Minimize - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ); - -// Maximize each component. x = max(x1, x2), y = max(y1, y2) -D3DXVECTOR2* D3DXVec2Maximize - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ); - -D3DXVECTOR2* D3DXVec2Scale - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV, FLOAT s ); - -// Linear interpolation. V1 + s(V2-V1) -D3DXVECTOR2* D3DXVec2Lerp - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2, - FLOAT s ); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -D3DXVECTOR2* WINAPI D3DXVec2Normalize - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV ); - -// Hermite interpolation between position V1, tangent T1 (when s == 0) -// and position V2, tangent T2 (when s == 1). -D3DXVECTOR2* WINAPI D3DXVec2Hermite - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pT1, - CONST D3DXVECTOR2 *pV2, CONST D3DXVECTOR2 *pT2, FLOAT s ); - -// CatmullRom interpolation between V1 (when s == 0) and V2 (when s == 1) -D3DXVECTOR2* WINAPI D3DXVec2CatmullRom - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV0, CONST D3DXVECTOR2 *pV1, - CONST D3DXVECTOR2 *pV2, CONST D3DXVECTOR2 *pV3, FLOAT s ); - -// Barycentric coordinates. V1 + f(V2-V1) + g(V3-V1) -D3DXVECTOR2* WINAPI D3DXVec2BaryCentric - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2, - CONST D3DXVECTOR2 *pV3, FLOAT f, FLOAT g); - -// Transform (x, y, 0, 1) by matrix. -D3DXVECTOR4* WINAPI D3DXVec2Transform - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR2 *pV, CONST D3DXMATRIX *pM ); - -// Transform (x, y, 0, 1) by matrix, project result back into w=1. -D3DXVECTOR2* WINAPI D3DXVec2TransformCoord - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV, CONST D3DXMATRIX *pM ); - -// Transform (x, y, 0, 0) by matrix. -D3DXVECTOR2* WINAPI D3DXVec2TransformNormal - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV, CONST D3DXMATRIX *pM ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// 3D Vector -//-------------------------- - -// inline - -FLOAT D3DXVec3Length - ( CONST D3DXVECTOR3 *pV ); - -FLOAT D3DXVec3LengthSq - ( CONST D3DXVECTOR3 *pV ); - -FLOAT D3DXVec3Dot - ( CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ); - -D3DXVECTOR3* D3DXVec3Cross - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ); - -D3DXVECTOR3* D3DXVec3Add - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ); - -D3DXVECTOR3* D3DXVec3Subtract - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ); - -// Minimize each component. x = min(x1, x2), y = min(y1, y2), ... -D3DXVECTOR3* D3DXVec3Minimize - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ); - -// Maximize each component. x = max(x1, x2), y = max(y1, y2), ... -D3DXVECTOR3* D3DXVec3Maximize - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ); - -D3DXVECTOR3* D3DXVec3Scale - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, FLOAT s); - -// Linear interpolation. V1 + s(V2-V1) -D3DXVECTOR3* D3DXVec3Lerp - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2, - FLOAT s ); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -D3DXVECTOR3* WINAPI D3DXVec3Normalize - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV ); - -// Hermite interpolation between position V1, tangent T1 (when s == 0) -// and position V2, tangent T2 (when s == 1). -D3DXVECTOR3* WINAPI D3DXVec3Hermite - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pT1, - CONST D3DXVECTOR3 *pV2, CONST D3DXVECTOR3 *pT2, FLOAT s ); - -// CatmullRom interpolation between V1 (when s == 0) and V2 (when s == 1) -D3DXVECTOR3* WINAPI D3DXVec3CatmullRom - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV0, CONST D3DXVECTOR3 *pV1, - CONST D3DXVECTOR3 *pV2, CONST D3DXVECTOR3 *pV3, FLOAT s ); - -// Barycentric coordinates. V1 + f(V2-V1) + g(V3-V1) -D3DXVECTOR3* WINAPI D3DXVec3BaryCentric - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2, - CONST D3DXVECTOR3 *pV3, FLOAT f, FLOAT g); - -// Transform (x, y, z, 1) by matrix. -D3DXVECTOR4* WINAPI D3DXVec3Transform - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR3 *pV, CONST D3DXMATRIX *pM ); - -// Transform (x, y, z, 1) by matrix, project result back into w=1. -D3DXVECTOR3* WINAPI D3DXVec3TransformCoord - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, CONST D3DXMATRIX *pM ); - -// Transform (x, y, z, 0) by matrix. If you transforming a normal by a -// non-affine matrix, the matrix you pass to this function should be the -// transpose of the inverse of the matrix you would use to transform a coord. -D3DXVECTOR3* WINAPI D3DXVec3TransformNormal - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, CONST D3DXMATRIX *pM ); - -// Project vector from object space into screen space -D3DXVECTOR3* WINAPI D3DXVec3Project - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, CONST D3DVIEWPORT8 *pViewport, - CONST D3DXMATRIX *pProjection, CONST D3DXMATRIX *pView, CONST D3DXMATRIX *pWorld); - -// Project vector from screen space into object space -D3DXVECTOR3* WINAPI D3DXVec3Unproject - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, CONST D3DVIEWPORT8 *pViewport, - CONST D3DXMATRIX *pProjection, CONST D3DXMATRIX *pView, CONST D3DXMATRIX *pWorld); - -#ifdef __cplusplus -} -#endif - - - -//-------------------------- -// 4D Vector -//-------------------------- - -// inline - -FLOAT D3DXVec4Length - ( CONST D3DXVECTOR4 *pV ); - -FLOAT D3DXVec4LengthSq - ( CONST D3DXVECTOR4 *pV ); - -FLOAT D3DXVec4Dot - ( CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2 ); - -D3DXVECTOR4* D3DXVec4Add - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2); - -D3DXVECTOR4* D3DXVec4Subtract - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2); - -// Minimize each component. x = min(x1, x2), y = min(y1, y2), ... -D3DXVECTOR4* D3DXVec4Minimize - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2); - -// Maximize each component. x = max(x1, x2), y = max(y1, y2), ... -D3DXVECTOR4* D3DXVec4Maximize - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2); - -D3DXVECTOR4* D3DXVec4Scale - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV, FLOAT s); - -// Linear interpolation. V1 + s(V2-V1) -D3DXVECTOR4* D3DXVec4Lerp - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2, - FLOAT s ); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Cross-product in 4 dimensions. -D3DXVECTOR4* WINAPI D3DXVec4Cross - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2, - CONST D3DXVECTOR4 *pV3); - -D3DXVECTOR4* WINAPI D3DXVec4Normalize - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV ); - -// Hermite interpolation between position V1, tangent T1 (when s == 0) -// and position V2, tangent T2 (when s == 1). -D3DXVECTOR4* WINAPI D3DXVec4Hermite - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pT1, - CONST D3DXVECTOR4 *pV2, CONST D3DXVECTOR4 *pT2, FLOAT s ); - -// CatmullRom interpolation between V1 (when s == 0) and V2 (when s == 1) -D3DXVECTOR4* WINAPI D3DXVec4CatmullRom - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV0, CONST D3DXVECTOR4 *pV1, - CONST D3DXVECTOR4 *pV2, CONST D3DXVECTOR4 *pV3, FLOAT s ); - -// Barycentric coordinates. V1 + f(V2-V1) + g(V3-V1) -D3DXVECTOR4* WINAPI D3DXVec4BaryCentric - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2, - CONST D3DXVECTOR4 *pV3, FLOAT f, FLOAT g); - -// Transform vector by matrix. -D3DXVECTOR4* WINAPI D3DXVec4Transform - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV, CONST D3DXMATRIX *pM ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// 4D Matrix -//-------------------------- - -// inline - -D3DXMATRIX* D3DXMatrixIdentity - ( D3DXMATRIX *pOut ); - -BOOL D3DXMatrixIsIdentity - ( CONST D3DXMATRIX *pM ); - - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -FLOAT WINAPI D3DXMatrixfDeterminant - ( CONST D3DXMATRIX *pM ); - -D3DXMATRIX* WINAPI D3DXMatrixTranspose - ( D3DXMATRIX *pOut, CONST D3DXMATRIX *pM ); - -// Matrix multiplication. The result represents the transformation M2 -// followed by the transformation M1. (Out = M1 * M2) -D3DXMATRIX* WINAPI D3DXMatrixMultiply - ( D3DXMATRIX *pOut, CONST D3DXMATRIX *pM1, CONST D3DXMATRIX *pM2 ); - -// Matrix multiplication, followed by a transpose. (Out = T(M1 * M2)) -D3DXMATRIX* WINAPI D3DXMatrixMultiplyTranspose - ( D3DXMATRIX *pOut, CONST D3DXMATRIX *pM1, CONST D3DXMATRIX *pM2 ); - -// Calculate inverse of matrix. Inversion my fail, in which case NULL will -// be returned. The determinant of pM is also returned it pfDeterminant -// is non-NULL. -D3DXMATRIX* WINAPI D3DXMatrixInverse - ( D3DXMATRIX *pOut, FLOAT *pDeterminant, CONST D3DXMATRIX *pM ); - -// Build a matrix which scales by (sx, sy, sz) -D3DXMATRIX* WINAPI D3DXMatrixScaling - ( D3DXMATRIX *pOut, FLOAT sx, FLOAT sy, FLOAT sz ); - -// Build a matrix which translates by (x, y, z) -D3DXMATRIX* WINAPI D3DXMatrixTranslation - ( D3DXMATRIX *pOut, FLOAT x, FLOAT y, FLOAT z ); - -// Build a matrix which rotates around the X axis -D3DXMATRIX* WINAPI D3DXMatrixRotationX - ( D3DXMATRIX *pOut, FLOAT Angle ); - -// Build a matrix which rotates around the Y axis -D3DXMATRIX* WINAPI D3DXMatrixRotationY - ( D3DXMATRIX *pOut, FLOAT Angle ); - -// Build a matrix which rotates around the Z axis -D3DXMATRIX* WINAPI D3DXMatrixRotationZ - ( D3DXMATRIX *pOut, FLOAT Angle ); - -// Build a matrix which rotates around an arbitrary axis -D3DXMATRIX* WINAPI D3DXMatrixRotationAxis - ( D3DXMATRIX *pOut, CONST D3DXVECTOR3 *pV, FLOAT Angle ); - -// Build a matrix from a quaternion -D3DXMATRIX* WINAPI D3DXMatrixRotationQuaternion - ( D3DXMATRIX *pOut, CONST D3DXQUATERNION *pQ); - -// Yaw around the Y axis, a pitch around the X axis, -// and a roll around the Z axis. -D3DXMATRIX* WINAPI D3DXMatrixRotationYawPitchRoll - ( D3DXMATRIX *pOut, FLOAT Yaw, FLOAT Pitch, FLOAT Roll ); - - -// Build transformation matrix. NULL arguments are treated as identity. -// Mout = Msc-1 * Msr-1 * Ms * Msr * Msc * Mrc-1 * Mr * Mrc * Mt -D3DXMATRIX* WINAPI D3DXMatrixTransformation - ( D3DXMATRIX *pOut, CONST D3DXVECTOR3 *pScalingCenter, - CONST D3DXQUATERNION *pScalingRotation, CONST D3DXVECTOR3 *pScaling, - CONST D3DXVECTOR3 *pRotationCenter, CONST D3DXQUATERNION *pRotation, - CONST D3DXVECTOR3 *pTranslation); - -// Build affine transformation matrix. NULL arguments are treated as identity. -// Mout = Ms * Mrc-1 * Mr * Mrc * Mt -D3DXMATRIX* WINAPI D3DXMatrixAffineTransformation - ( D3DXMATRIX *pOut, FLOAT Scaling, CONST D3DXVECTOR3 *pRotationCenter, - CONST D3DXQUATERNION *pRotation, CONST D3DXVECTOR3 *pTranslation); - -// Build a lookat matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixLookAtRH - ( D3DXMATRIX *pOut, CONST D3DXVECTOR3 *pEye, CONST D3DXVECTOR3 *pAt, - CONST D3DXVECTOR3 *pUp ); - -// Build a lookat matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixLookAtLH - ( D3DXMATRIX *pOut, CONST D3DXVECTOR3 *pEye, CONST D3DXVECTOR3 *pAt, - CONST D3DXVECTOR3 *pUp ); - -// Build a perspective projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveRH - ( D3DXMATRIX *pOut, FLOAT w, FLOAT h, FLOAT zn, FLOAT zf ); - -// Build a perspective projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveLH - ( D3DXMATRIX *pOut, FLOAT w, FLOAT h, FLOAT zn, FLOAT zf ); - -// Build a perspective projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveFovRH - ( D3DXMATRIX *pOut, FLOAT fovy, FLOAT Aspect, FLOAT zn, FLOAT zf ); - -// Build a perspective projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveFovLH - ( D3DXMATRIX *pOut, FLOAT fovy, FLOAT Aspect, FLOAT zn, FLOAT zf ); - -// Build a perspective projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveOffCenterRH - ( D3DXMATRIX *pOut, FLOAT l, FLOAT r, FLOAT b, FLOAT t, FLOAT zn, - FLOAT zf ); - -// Build a perspective projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveOffCenterLH - ( D3DXMATRIX *pOut, FLOAT l, FLOAT r, FLOAT b, FLOAT t, FLOAT zn, - FLOAT zf ); - -// Build an ortho projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixOrthoRH - ( D3DXMATRIX *pOut, FLOAT w, FLOAT h, FLOAT zn, FLOAT zf ); - -// Build an ortho projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixOrthoLH - ( D3DXMATRIX *pOut, FLOAT w, FLOAT h, FLOAT zn, FLOAT zf ); - -// Build an ortho projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixOrthoOffCenterRH - ( D3DXMATRIX *pOut, FLOAT l, FLOAT r, FLOAT b, FLOAT t, FLOAT zn, - FLOAT zf ); - -// Build an ortho projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixOrthoOffCenterLH - ( D3DXMATRIX *pOut, FLOAT l, FLOAT r, FLOAT b, FLOAT t, FLOAT zn, - FLOAT zf ); - -// Build a matrix which flattens geometry into a plane, as if casting -// a shadow from a light. -D3DXMATRIX* WINAPI D3DXMatrixShadow - ( D3DXMATRIX *pOut, CONST D3DXVECTOR4 *pLight, - CONST D3DXPLANE *pPlane ); - -// Build a matrix which reflects the coordinate system about a plane -D3DXMATRIX* WINAPI D3DXMatrixReflect - ( D3DXMATRIX *pOut, CONST D3DXPLANE *pPlane ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// Quaternion -//-------------------------- - -// inline - -FLOAT D3DXQuaternionLength - ( CONST D3DXQUATERNION *pQ ); - -// Length squared, or "norm" -FLOAT D3DXQuaternionLengthSq - ( CONST D3DXQUATERNION *pQ ); - -FLOAT D3DXQuaternionDot - ( CONST D3DXQUATERNION *pQ1, CONST D3DXQUATERNION *pQ2 ); - -// (0, 0, 0, 1) -D3DXQUATERNION* D3DXQuaternionIdentity - ( D3DXQUATERNION *pOut ); - -BOOL D3DXQuaternionIsIdentity - ( CONST D3DXQUATERNION *pQ ); - -// (-x, -y, -z, w) -D3DXQUATERNION* D3DXQuaternionConjugate - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ ); - - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Compute a quaternin's axis and angle of rotation. Expects unit quaternions. -void WINAPI D3DXQuaternionToAxisAngle - ( CONST D3DXQUATERNION *pQ, D3DXVECTOR3 *pAxis, FLOAT *pAngle ); - -// Build a quaternion from a rotation matrix. -D3DXQUATERNION* WINAPI D3DXQuaternionRotationMatrix - ( D3DXQUATERNION *pOut, CONST D3DXMATRIX *pM); - -// Rotation about arbitrary axis. -D3DXQUATERNION* WINAPI D3DXQuaternionRotationAxis - ( D3DXQUATERNION *pOut, CONST D3DXVECTOR3 *pV, FLOAT Angle ); - -// Yaw around the Y axis, a pitch around the X axis, -// and a roll around the Z axis. -D3DXQUATERNION* WINAPI D3DXQuaternionRotationYawPitchRoll - ( D3DXQUATERNION *pOut, FLOAT Yaw, FLOAT Pitch, FLOAT Roll ); - -// Quaternion multiplication. The result represents the rotation Q2 -// followed by the rotation Q1. (Out = Q2 * Q1) -D3DXQUATERNION* WINAPI D3DXQuaternionMultiply - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ1, - CONST D3DXQUATERNION *pQ2 ); - -D3DXQUATERNION* WINAPI D3DXQuaternionNormalize - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ ); - -// Conjugate and re-norm -D3DXQUATERNION* WINAPI D3DXQuaternionInverse - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ ); - -// Expects unit quaternions. -// if q = (cos(theta), sin(theta) * v); ln(q) = (0, theta * v) -D3DXQUATERNION* WINAPI D3DXQuaternionLn - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ ); - -// Expects pure quaternions. (w == 0) w is ignored in calculation. -// if q = (0, theta * v); exp(q) = (cos(theta), sin(theta) * v) -D3DXQUATERNION* WINAPI D3DXQuaternionExp - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ ); - -// Spherical linear interpolation between Q1 (t == 0) and Q2 (t == 1). -// Expects unit quaternions. -D3DXQUATERNION* WINAPI D3DXQuaternionSlerp - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ1, - CONST D3DXQUATERNION *pQ2, FLOAT t ); - -// Spherical quadrangle interpolation. -// Slerp(Slerp(Q1, C, t), Slerp(A, B, t), 2t(1-t)) -D3DXQUATERNION* WINAPI D3DXQuaternionSquad - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ1, - CONST D3DXQUATERNION *pA, CONST D3DXQUATERNION *pB, - CONST D3DXQUATERNION *pC, FLOAT t ); - -// Setup control points for spherical quadrangle interpolation -// from Q1 to Q2. The control points are chosen in such a way -// to ensure the continuity of tangents with adjacent segments. -void WINAPI D3DXQuaternionSquadSetup - ( D3DXQUATERNION *pAOut, D3DXQUATERNION *pBOut, D3DXQUATERNION *pCOut, - CONST D3DXQUATERNION *pQ0, CONST D3DXQUATERNION *pQ1, - CONST D3DXQUATERNION *pQ2, CONST D3DXQUATERNION *pQ3 ); - -// Barycentric interpolation. -// Slerp(Slerp(Q1, Q2, f+g), Slerp(Q1, Q3, f+g), g/(f+g)) -D3DXQUATERNION* WINAPI D3DXQuaternionBaryCentric - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ1, - CONST D3DXQUATERNION *pQ2, CONST D3DXQUATERNION *pQ3, - FLOAT f, FLOAT g ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// Plane -//-------------------------- - -// inline - -// ax + by + cz + dw -FLOAT D3DXPlaneDot - ( CONST D3DXPLANE *pP, CONST D3DXVECTOR4 *pV); - -// ax + by + cz + d -FLOAT D3DXPlaneDotCoord - ( CONST D3DXPLANE *pP, CONST D3DXVECTOR3 *pV); - -// ax + by + cz -FLOAT D3DXPlaneDotNormal - ( CONST D3DXPLANE *pP, CONST D3DXVECTOR3 *pV); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Normalize plane (so that |a,b,c| == 1) -D3DXPLANE* WINAPI D3DXPlaneNormalize - ( D3DXPLANE *pOut, CONST D3DXPLANE *pP); - -// Find the intersection between a plane and a line. If the line is -// parallel to the plane, NULL is returned. -D3DXVECTOR3* WINAPI D3DXPlaneIntersectLine - ( D3DXVECTOR3 *pOut, CONST D3DXPLANE *pP, CONST D3DXVECTOR3 *pV1, - CONST D3DXVECTOR3 *pV2); - -// Construct a plane from a point and a normal -D3DXPLANE* WINAPI D3DXPlaneFromPointNormal - ( D3DXPLANE *pOut, CONST D3DXVECTOR3 *pPoint, CONST D3DXVECTOR3 *pNormal); - -// Construct a plane from 3 points -D3DXPLANE* WINAPI D3DXPlaneFromPoints - ( D3DXPLANE *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2, - CONST D3DXVECTOR3 *pV3); - -// Transform a plane by a matrix. The vector (a,b,c) must be normal. -// M should be the inverse transpose of the transformation desired. -D3DXPLANE* WINAPI D3DXPlaneTransform - ( D3DXPLANE *pOut, CONST D3DXPLANE *pP, CONST D3DXMATRIX *pM ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// Color -//-------------------------- - -// inline - -// (1-r, 1-g, 1-b, a) -D3DXCOLOR* D3DXColorNegative - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC); - -D3DXCOLOR* D3DXColorAdd - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2); - -D3DXCOLOR* D3DXColorSubtract - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2); - -D3DXCOLOR* D3DXColorScale - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC, FLOAT s); - -// (r1*r2, g1*g2, b1*b2, a1*a2) -D3DXCOLOR* D3DXColorModulate - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2); - -// Linear interpolation of r,g,b, and a. C1 + s(C2-C1) -D3DXCOLOR* D3DXColorLerp - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2, FLOAT s); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Interpolate r,g,b between desaturated color and color. -// DesaturatedColor + s(Color - DesaturatedColor) -D3DXCOLOR* WINAPI D3DXColorAdjustSaturation - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC, FLOAT s); - -// Interpolate r,g,b between 50% grey and color. Grey + s(Color - Grey) -D3DXCOLOR* WINAPI D3DXColorAdjustContrast - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC, FLOAT c); - -#ifdef __cplusplus -} -#endif - - - - -//-------------------------- -// Misc -//-------------------------- - -#ifdef __cplusplus -extern "C" { -#endif - -// Calculate Fresnel term given the cosine of theta (likely obtained by -// taking the dot of two normals), and the refraction index of the material. -FLOAT WINAPI D3DXFresnelTerm - (FLOAT CosTheta, FLOAT RefractionIndex); - -#ifdef __cplusplus -} -#endif - - - -//=========================================================================== -// -// Matrix Stack -// -//=========================================================================== - -typedef interface ID3DXMatrixStack ID3DXMatrixStack; -typedef interface ID3DXMatrixStack *LPD3DXMATRIXSTACK; - -// {E3357330-CC5E-11d2-A434-00A0C90629A8} -DEFINE_GUID( IID_ID3DXMatrixStack, -0xe3357330, 0xcc5e, 0x11d2, 0xa4, 0x34, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); - - -#undef INTERFACE -#define INTERFACE ID3DXMatrixStack - -DECLARE_INTERFACE_(ID3DXMatrixStack, IUnknown) -{ - // - // IUnknown methods - // - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - // - // ID3DXMatrixStack methods - // - - // Pops the top of the stack, returns the current top - // *after* popping the top. - STDMETHOD(Pop)(THIS) PURE; - - // Pushes the stack by one, duplicating the current matrix. - STDMETHOD(Push)(THIS) PURE; - - // Loads identity in the current matrix. - STDMETHOD(LoadIdentity)(THIS) PURE; - - // Loads the given matrix into the current matrix - STDMETHOD(LoadMatrix)(THIS_ CONST D3DXMATRIX* pM ) PURE; - - // Right-Multiplies the given matrix to the current matrix. - // (transformation is about the current world origin) - STDMETHOD(MultMatrix)(THIS_ CONST D3DXMATRIX* pM ) PURE; - - // Left-Multiplies the given matrix to the current matrix - // (transformation is about the local origin of the object) - STDMETHOD(MultMatrixLocal)(THIS_ CONST D3DXMATRIX* pM ) PURE; - - // Right multiply the current matrix with the computed rotation - // matrix, counterclockwise about the given axis with the given angle. - // (rotation is about the current world origin) - STDMETHOD(RotateAxis) - (THIS_ CONST D3DXVECTOR3* pV, FLOAT Angle) PURE; - - // Left multiply the current matrix with the computed rotation - // matrix, counterclockwise about the given axis with the given angle. - // (rotation is about the local origin of the object) - STDMETHOD(RotateAxisLocal) - (THIS_ CONST D3DXVECTOR3* pV, FLOAT Angle) PURE; - - // Right multiply the current matrix with the computed rotation - // matrix. All angles are counterclockwise. (rotation is about the - // current world origin) - - // The rotation is composed of a yaw around the Y axis, a pitch around - // the X axis, and a roll around the Z axis. - STDMETHOD(RotateYawPitchRoll) - (THIS_ FLOAT Yaw, FLOAT Pitch, FLOAT Roll) PURE; - - // Left multiply the current matrix with the computed rotation - // matrix. All angles are counterclockwise. (rotation is about the - // local origin of the object) - - // The rotation is composed of a yaw around the Y axis, a pitch around - // the X axis, and a roll around the Z axis. - STDMETHOD(RotateYawPitchRollLocal) - (THIS_ FLOAT Yaw, FLOAT Pitch, FLOAT Roll) PURE; - - // Right multiply the current matrix with the computed scale - // matrix. (transformation is about the current world origin) - STDMETHOD(Scale)(THIS_ FLOAT x, FLOAT y, FLOAT z) PURE; - - // Left multiply the current matrix with the computed scale - // matrix. (transformation is about the local origin of the object) - STDMETHOD(ScaleLocal)(THIS_ FLOAT x, FLOAT y, FLOAT z) PURE; - - // Right multiply the current matrix with the computed translation - // matrix. (transformation is about the current world origin) - STDMETHOD(Translate)(THIS_ FLOAT x, FLOAT y, FLOAT z ) PURE; - - // Left multiply the current matrix with the computed translation - // matrix. (transformation is about the local origin of the object) - STDMETHOD(TranslateLocal)(THIS_ FLOAT x, FLOAT y, FLOAT z) PURE; - - // Obtain the current matrix at the top of the stack - STDMETHOD_(D3DXMATRIX*, GetTop)(THIS) PURE; -}; - -#ifdef __cplusplus -extern "C" { -#endif - -HRESULT WINAPI - D3DXCreateMatrixStack( - DWORD Flags, - LPD3DXMATRIXSTACK* ppStack); - -#ifdef __cplusplus -} -#endif - -#include "d3dx8math.inl" - -#pragma warning(default:4201) - -#endif // __D3DX8MATH_H__ diff --git a/sdk/dx8sdk/Include/d3dx8math.inl b/sdk/dx8sdk/Include/d3dx8math.inl deleted file mode 100644 index a64e5c54..00000000 --- a/sdk/dx8sdk/Include/d3dx8math.inl +++ /dev/null @@ -1,1757 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx8math.inl -// Content: D3DX math inline functions -// -////////////////////////////////////////////////////////////////////////////// - -#ifndef __D3DX8MATH_INL__ -#define __D3DX8MATH_INL__ - - -//=========================================================================== -// -// Inline Class Methods -// -//=========================================================================== - -#ifdef __cplusplus - -//-------------------------- -// 2D Vector -//-------------------------- - -D3DXINLINE -D3DXVECTOR2::D3DXVECTOR2( CONST FLOAT *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - x = pf[0]; - y = pf[1]; -} - -D3DXINLINE -D3DXVECTOR2::D3DXVECTOR2( FLOAT fx, FLOAT fy ) -{ - x = fx; - y = fy; -} - -// casting -D3DXINLINE -D3DXVECTOR2::operator FLOAT* () -{ - return (FLOAT *) &x; -} - -D3DXINLINE -D3DXVECTOR2::operator CONST FLOAT* () const -{ - return (CONST FLOAT *) &x; -} - -// assignment operators -D3DXINLINE D3DXVECTOR2& -D3DXVECTOR2::operator += ( CONST D3DXVECTOR2& v ) -{ - x += v.x; - y += v.y; - return *this; -} - -D3DXINLINE D3DXVECTOR2& -D3DXVECTOR2::operator -= ( CONST D3DXVECTOR2& v ) -{ - x -= v.x; - y -= v.y; - return *this; -} - -D3DXINLINE D3DXVECTOR2& -D3DXVECTOR2::operator *= ( FLOAT f ) -{ - x *= f; - y *= f; - return *this; -} - -D3DXINLINE D3DXVECTOR2& -D3DXVECTOR2::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - x *= fInv; - y *= fInv; - return *this; -} - -// unary operators -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator - () const -{ - return D3DXVECTOR2(-x, -y); -} - -// binary operators -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator + ( CONST D3DXVECTOR2& v ) const -{ - return D3DXVECTOR2(x + v.x, y + v.y); -} - -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator - ( CONST D3DXVECTOR2& v ) const -{ - return D3DXVECTOR2(x - v.x, y - v.y); -} - -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator * ( FLOAT f ) const -{ - return D3DXVECTOR2(x * f, y * f); -} - -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXVECTOR2(x * fInv, y * fInv); -} - - -D3DXINLINE D3DXVECTOR2 -operator * ( FLOAT f, CONST D3DXVECTOR2& v ) -{ - return D3DXVECTOR2(f * v.x, f * v.y); -} - -D3DXINLINE BOOL -D3DXVECTOR2::operator == ( CONST D3DXVECTOR2& v ) const -{ - return x == v.x && y == v.y; -} - -D3DXINLINE BOOL -D3DXVECTOR2::operator != ( CONST D3DXVECTOR2& v ) const -{ - return x != v.x || y != v.y; -} - - - - -//-------------------------- -// 3D Vector -//-------------------------- -D3DXINLINE -D3DXVECTOR3::D3DXVECTOR3( CONST FLOAT *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - x = pf[0]; - y = pf[1]; - z = pf[2]; -} - -D3DXINLINE -D3DXVECTOR3::D3DXVECTOR3( CONST D3DVECTOR& v ) -{ - x = v.x; - y = v.y; - z = v.z; -} - -D3DXINLINE -D3DXVECTOR3::D3DXVECTOR3( FLOAT fx, FLOAT fy, FLOAT fz ) -{ - x = fx; - y = fy; - z = fz; -} - - -// casting -D3DXINLINE -D3DXVECTOR3::operator FLOAT* () -{ - return (FLOAT *) &x; -} - -D3DXINLINE -D3DXVECTOR3::operator CONST FLOAT* () const -{ - return (CONST FLOAT *) &x; -} - - -// assignment operators -D3DXINLINE D3DXVECTOR3& -D3DXVECTOR3::operator += ( CONST D3DXVECTOR3& v ) -{ - x += v.x; - y += v.y; - z += v.z; - return *this; -} - -D3DXINLINE D3DXVECTOR3& -D3DXVECTOR3::operator -= ( CONST D3DXVECTOR3& v ) -{ - x -= v.x; - y -= v.y; - z -= v.z; - return *this; -} - -D3DXINLINE D3DXVECTOR3& -D3DXVECTOR3::operator *= ( FLOAT f ) -{ - x *= f; - y *= f; - z *= f; - return *this; -} - -D3DXINLINE D3DXVECTOR3& -D3DXVECTOR3::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - x *= fInv; - y *= fInv; - z *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator - () const -{ - return D3DXVECTOR3(-x, -y, -z); -} - - -// binary operators -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator + ( CONST D3DXVECTOR3& v ) const -{ - return D3DXVECTOR3(x + v.x, y + v.y, z + v.z); -} - -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator - ( CONST D3DXVECTOR3& v ) const -{ - return D3DXVECTOR3(x - v.x, y - v.y, z - v.z); -} - -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator * ( FLOAT f ) const -{ - return D3DXVECTOR3(x * f, y * f, z * f); -} - -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXVECTOR3(x * fInv, y * fInv, z * fInv); -} - - -D3DXINLINE D3DXVECTOR3 -operator * ( FLOAT f, CONST struct D3DXVECTOR3& v ) -{ - return D3DXVECTOR3(f * v.x, f * v.y, f * v.z); -} - - -D3DXINLINE BOOL -D3DXVECTOR3::operator == ( CONST D3DXVECTOR3& v ) const -{ - return x == v.x && y == v.y && z == v.z; -} - -D3DXINLINE BOOL -D3DXVECTOR3::operator != ( CONST D3DXVECTOR3& v ) const -{ - return x != v.x || y != v.y || z != v.z; -} - - - -//-------------------------- -// 4D Vector -//-------------------------- -D3DXINLINE -D3DXVECTOR4::D3DXVECTOR4( CONST FLOAT *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - x = pf[0]; - y = pf[1]; - z = pf[2]; - w = pf[3]; -} - -D3DXINLINE -D3DXVECTOR4::D3DXVECTOR4( FLOAT fx, FLOAT fy, FLOAT fz, FLOAT fw ) -{ - x = fx; - y = fy; - z = fz; - w = fw; -} - - -// casting -D3DXINLINE -D3DXVECTOR4::operator FLOAT* () -{ - return (FLOAT *) &x; -} - -D3DXINLINE -D3DXVECTOR4::operator CONST FLOAT* () const -{ - return (CONST FLOAT *) &x; -} - - -// assignment operators -D3DXINLINE D3DXVECTOR4& -D3DXVECTOR4::operator += ( CONST D3DXVECTOR4& v ) -{ - x += v.x; - y += v.y; - z += v.z; - w += v.w; - return *this; -} - -D3DXINLINE D3DXVECTOR4& -D3DXVECTOR4::operator -= ( CONST D3DXVECTOR4& v ) -{ - x -= v.x; - y -= v.y; - z -= v.z; - w -= v.w; - return *this; -} - -D3DXINLINE D3DXVECTOR4& -D3DXVECTOR4::operator *= ( FLOAT f ) -{ - x *= f; - y *= f; - z *= f; - w *= f; - return *this; -} - -D3DXINLINE D3DXVECTOR4& -D3DXVECTOR4::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - x *= fInv; - y *= fInv; - z *= fInv; - w *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator - () const -{ - return D3DXVECTOR4(-x, -y, -z, -w); -} - - -// binary operators -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator + ( CONST D3DXVECTOR4& v ) const -{ - return D3DXVECTOR4(x + v.x, y + v.y, z + v.z, w + v.w); -} - -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator - ( CONST D3DXVECTOR4& v ) const -{ - return D3DXVECTOR4(x - v.x, y - v.y, z - v.z, w - v.w); -} - -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator * ( FLOAT f ) const -{ - return D3DXVECTOR4(x * f, y * f, z * f, w * f); -} - -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXVECTOR4(x * fInv, y * fInv, z * fInv, w * fInv); -} - - -D3DXINLINE D3DXVECTOR4 -operator * ( FLOAT f, CONST D3DXVECTOR4& v ) -{ - return D3DXVECTOR4(f * v.x, f * v.y, f * v.z, f * v.w); -} - - -D3DXINLINE BOOL -D3DXVECTOR4::operator == ( CONST D3DXVECTOR4& v ) const -{ - return x == v.x && y == v.y && z == v.z && w == v.w; -} - -D3DXINLINE BOOL -D3DXVECTOR4::operator != ( CONST D3DXVECTOR4& v ) const -{ - return x != v.x || y != v.y || z != v.z || w != v.w; -} - - -//-------------------------- -// Matrix -//-------------------------- -D3DXINLINE -D3DXMATRIX::D3DXMATRIX( CONST FLOAT* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - memcpy(&_11, pf, sizeof(D3DXMATRIX)); -} - -D3DXINLINE -D3DXMATRIX::D3DXMATRIX( CONST D3DMATRIX& mat ) -{ - memcpy(&_11, &mat, sizeof(D3DXMATRIX)); -} - -D3DXINLINE -D3DXMATRIX::D3DXMATRIX( FLOAT f11, FLOAT f12, FLOAT f13, FLOAT f14, - FLOAT f21, FLOAT f22, FLOAT f23, FLOAT f24, - FLOAT f31, FLOAT f32, FLOAT f33, FLOAT f34, - FLOAT f41, FLOAT f42, FLOAT f43, FLOAT f44 ) -{ - _11 = f11; _12 = f12; _13 = f13; _14 = f14; - _21 = f21; _22 = f22; _23 = f23; _24 = f24; - _31 = f31; _32 = f32; _33 = f33; _34 = f34; - _41 = f41; _42 = f42; _43 = f43; _44 = f44; -} - - - -// access grants -D3DXINLINE FLOAT& -D3DXMATRIX::operator () ( UINT iRow, UINT iCol ) -{ - return m[iRow][iCol]; -} - -D3DXINLINE FLOAT -D3DXMATRIX::operator () ( UINT iRow, UINT iCol ) const -{ - return m[iRow][iCol]; -} - - -// casting operators -D3DXINLINE -D3DXMATRIX::operator FLOAT* () -{ - return (FLOAT *) &_11; -} - -D3DXINLINE -D3DXMATRIX::operator CONST FLOAT* () const -{ - return (CONST FLOAT *) &_11; -} - - -// assignment operators -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator *= ( CONST D3DXMATRIX& mat ) -{ - D3DXMatrixMultiply(this, this, &mat); - return *this; -} - -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator += ( CONST D3DXMATRIX& mat ) -{ - _11 += mat._11; _12 += mat._12; _13 += mat._13; _14 += mat._14; - _21 += mat._21; _22 += mat._22; _23 += mat._23; _24 += mat._24; - _31 += mat._31; _32 += mat._32; _33 += mat._33; _34 += mat._34; - _41 += mat._41; _42 += mat._42; _43 += mat._43; _44 += mat._44; - return *this; -} - -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator -= ( CONST D3DXMATRIX& mat ) -{ - _11 -= mat._11; _12 -= mat._12; _13 -= mat._13; _14 -= mat._14; - _21 -= mat._21; _22 -= mat._22; _23 -= mat._23; _24 -= mat._24; - _31 -= mat._31; _32 -= mat._32; _33 -= mat._33; _34 -= mat._34; - _41 -= mat._41; _42 -= mat._42; _43 -= mat._43; _44 -= mat._44; - return *this; -} - -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator *= ( FLOAT f ) -{ - _11 *= f; _12 *= f; _13 *= f; _14 *= f; - _21 *= f; _22 *= f; _23 *= f; _24 *= f; - _31 *= f; _32 *= f; _33 *= f; _34 *= f; - _41 *= f; _42 *= f; _43 *= f; _44 *= f; - return *this; -} - -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - _11 *= fInv; _12 *= fInv; _13 *= fInv; _14 *= fInv; - _21 *= fInv; _22 *= fInv; _23 *= fInv; _24 *= fInv; - _31 *= fInv; _32 *= fInv; _33 *= fInv; _34 *= fInv; - _41 *= fInv; _42 *= fInv; _43 *= fInv; _44 *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator - () const -{ - return D3DXMATRIX(-_11, -_12, -_13, -_14, - -_21, -_22, -_23, -_24, - -_31, -_32, -_33, -_34, - -_41, -_42, -_43, -_44); -} - - -// binary operators -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator * ( CONST D3DXMATRIX& mat ) const -{ - D3DXMATRIX matT; - D3DXMatrixMultiply(&matT, this, &mat); - return matT; -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator + ( CONST D3DXMATRIX& mat ) const -{ - return D3DXMATRIX(_11 + mat._11, _12 + mat._12, _13 + mat._13, _14 + mat._14, - _21 + mat._21, _22 + mat._22, _23 + mat._23, _24 + mat._24, - _31 + mat._31, _32 + mat._32, _33 + mat._33, _34 + mat._34, - _41 + mat._41, _42 + mat._42, _43 + mat._43, _44 + mat._44); -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator - ( CONST D3DXMATRIX& mat ) const -{ - return D3DXMATRIX(_11 - mat._11, _12 - mat._12, _13 - mat._13, _14 - mat._14, - _21 - mat._21, _22 - mat._22, _23 - mat._23, _24 - mat._24, - _31 - mat._31, _32 - mat._32, _33 - mat._33, _34 - mat._34, - _41 - mat._41, _42 - mat._42, _43 - mat._43, _44 - mat._44); -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator * ( FLOAT f ) const -{ - return D3DXMATRIX(_11 * f, _12 * f, _13 * f, _14 * f, - _21 * f, _22 * f, _23 * f, _24 * f, - _31 * f, _32 * f, _33 * f, _34 * f, - _41 * f, _42 * f, _43 * f, _44 * f); -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXMATRIX(_11 * fInv, _12 * fInv, _13 * fInv, _14 * fInv, - _21 * fInv, _22 * fInv, _23 * fInv, _24 * fInv, - _31 * fInv, _32 * fInv, _33 * fInv, _34 * fInv, - _41 * fInv, _42 * fInv, _43 * fInv, _44 * fInv); -} - - -D3DXINLINE D3DXMATRIX -operator * ( FLOAT f, CONST D3DXMATRIX& mat ) -{ - return D3DXMATRIX(f * mat._11, f * mat._12, f * mat._13, f * mat._14, - f * mat._21, f * mat._22, f * mat._23, f * mat._24, - f * mat._31, f * mat._32, f * mat._33, f * mat._34, - f * mat._41, f * mat._42, f * mat._43, f * mat._44); -} - - -D3DXINLINE BOOL -D3DXMATRIX::operator == ( CONST D3DXMATRIX& mat ) const -{ - return 0 == memcmp(this, &mat, sizeof(D3DXMATRIX)); -} - -D3DXINLINE BOOL -D3DXMATRIX::operator != ( CONST D3DXMATRIX& mat ) const -{ - return 0 != memcmp(this, &mat, sizeof(D3DXMATRIX)); -} - - - -//-------------------------- -// Quaternion -//-------------------------- - -D3DXINLINE -D3DXQUATERNION::D3DXQUATERNION( CONST FLOAT* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - x = pf[0]; - y = pf[1]; - z = pf[2]; - w = pf[3]; -} - -D3DXINLINE -D3DXQUATERNION::D3DXQUATERNION( FLOAT fx, FLOAT fy, FLOAT fz, FLOAT fw ) -{ - x = fx; - y = fy; - z = fz; - w = fw; -} - - -// casting -D3DXINLINE -D3DXQUATERNION::operator FLOAT* () -{ - return (FLOAT *) &x; -} - -D3DXINLINE -D3DXQUATERNION::operator CONST FLOAT* () const -{ - return (CONST FLOAT *) &x; -} - - -// assignment operators -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator += ( CONST D3DXQUATERNION& q ) -{ - x += q.x; - y += q.y; - z += q.z; - w += q.w; - return *this; -} - -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator -= ( CONST D3DXQUATERNION& q ) -{ - x -= q.x; - y -= q.y; - z -= q.z; - w -= q.w; - return *this; -} - -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator *= ( CONST D3DXQUATERNION& q ) -{ - D3DXQuaternionMultiply(this, this, &q); - return *this; -} - -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator *= ( FLOAT f ) -{ - x *= f; - y *= f; - z *= f; - w *= f; - return *this; -} - -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - x *= fInv; - y *= fInv; - z *= fInv; - w *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator - () const -{ - return D3DXQUATERNION(-x, -y, -z, -w); -} - - -// binary operators -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator + ( CONST D3DXQUATERNION& q ) const -{ - return D3DXQUATERNION(x + q.x, y + q.y, z + q.z, w + q.w); -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator - ( CONST D3DXQUATERNION& q ) const -{ - return D3DXQUATERNION(x - q.x, y - q.y, z - q.z, w - q.w); -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator * ( CONST D3DXQUATERNION& q ) const -{ - D3DXQUATERNION qT; - D3DXQuaternionMultiply(&qT, this, &q); - return qT; -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator * ( FLOAT f ) const -{ - return D3DXQUATERNION(x * f, y * f, z * f, w * f); -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXQUATERNION(x * fInv, y * fInv, z * fInv, w * fInv); -} - - -D3DXINLINE D3DXQUATERNION -operator * (FLOAT f, CONST D3DXQUATERNION& q ) -{ - return D3DXQUATERNION(f * q.x, f * q.y, f * q.z, f * q.w); -} - - -D3DXINLINE BOOL -D3DXQUATERNION::operator == ( CONST D3DXQUATERNION& q ) const -{ - return x == q.x && y == q.y && z == q.z && w == q.w; -} - -D3DXINLINE BOOL -D3DXQUATERNION::operator != ( CONST D3DXQUATERNION& q ) const -{ - return x != q.x || y != q.y || z != q.z || w != q.w; -} - - - -//-------------------------- -// Plane -//-------------------------- - -D3DXINLINE -D3DXPLANE::D3DXPLANE( CONST FLOAT* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - a = pf[0]; - b = pf[1]; - c = pf[2]; - d = pf[3]; -} - -D3DXINLINE -D3DXPLANE::D3DXPLANE( FLOAT fa, FLOAT fb, FLOAT fc, FLOAT fd ) -{ - a = fa; - b = fb; - c = fc; - d = fd; -} - - -// casting -D3DXINLINE -D3DXPLANE::operator FLOAT* () -{ - return (FLOAT *) &a; -} - -D3DXINLINE -D3DXPLANE::operator CONST FLOAT* () const -{ - return (CONST FLOAT *) &a; -} - - -// unary operators -D3DXINLINE D3DXPLANE -D3DXPLANE::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXPLANE -D3DXPLANE::operator - () const -{ - return D3DXPLANE(-a, -b, -c, -d); -} - - -// binary operators -D3DXINLINE BOOL -D3DXPLANE::operator == ( CONST D3DXPLANE& p ) const -{ - return a == p.a && b == p.b && c == p.c && d == p.d; -} - -D3DXINLINE BOOL -D3DXPLANE::operator != ( CONST D3DXPLANE& p ) const -{ - return a != p.a || b != p.b || c != p.c || d != p.d; -} - - - - -//-------------------------- -// Color -//-------------------------- - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( DWORD dw ) -{ - CONST FLOAT f = 1.0f / 255.0f; - r = f * (FLOAT) (unsigned char) (dw >> 16); - g = f * (FLOAT) (unsigned char) (dw >> 8); - b = f * (FLOAT) (unsigned char) (dw >> 0); - a = f * (FLOAT) (unsigned char) (dw >> 24); -} - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( CONST FLOAT* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - r = pf[0]; - g = pf[1]; - b = pf[2]; - a = pf[3]; -} - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( CONST D3DCOLORVALUE& c ) -{ - r = c.r; - g = c.g; - b = c.b; - a = c.a; -} - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( FLOAT fr, FLOAT fg, FLOAT fb, FLOAT fa ) -{ - r = fr; - g = fg; - b = fb; - a = fa; -} - - -// casting -D3DXINLINE -D3DXCOLOR::operator DWORD () const -{ - DWORD dwR = r >= 1.0f ? 0xff : r <= 0.0f ? 0x00 : (DWORD) (r * 255.0f + 0.5f); - DWORD dwG = g >= 1.0f ? 0xff : g <= 0.0f ? 0x00 : (DWORD) (g * 255.0f + 0.5f); - DWORD dwB = b >= 1.0f ? 0xff : b <= 0.0f ? 0x00 : (DWORD) (b * 255.0f + 0.5f); - DWORD dwA = a >= 1.0f ? 0xff : a <= 0.0f ? 0x00 : (DWORD) (a * 255.0f + 0.5f); - - return (dwA << 24) | (dwR << 16) | (dwG << 8) | dwB; -} - - -D3DXINLINE -D3DXCOLOR::operator FLOAT * () -{ - return (FLOAT *) &r; -} - -D3DXINLINE -D3DXCOLOR::operator CONST FLOAT * () const -{ - return (CONST FLOAT *) &r; -} - - -D3DXINLINE -D3DXCOLOR::operator D3DCOLORVALUE * () -{ - return (D3DCOLORVALUE *) &r; -} - -D3DXINLINE -D3DXCOLOR::operator CONST D3DCOLORVALUE * () const -{ - return (CONST D3DCOLORVALUE *) &r; -} - - -D3DXINLINE -D3DXCOLOR::operator D3DCOLORVALUE& () -{ - return *((D3DCOLORVALUE *) &r); -} - -D3DXINLINE -D3DXCOLOR::operator CONST D3DCOLORVALUE& () const -{ - return *((CONST D3DCOLORVALUE *) &r); -} - - -// assignment operators -D3DXINLINE D3DXCOLOR& -D3DXCOLOR::operator += ( CONST D3DXCOLOR& c ) -{ - r += c.r; - g += c.g; - b += c.b; - a += c.a; - return *this; -} - -D3DXINLINE D3DXCOLOR& -D3DXCOLOR::operator -= ( CONST D3DXCOLOR& c ) -{ - r -= c.r; - g -= c.g; - b -= c.b; - a -= c.a; - return *this; -} - -D3DXINLINE D3DXCOLOR& -D3DXCOLOR::operator *= ( FLOAT f ) -{ - r *= f; - g *= f; - b *= f; - a *= f; - return *this; -} - -D3DXINLINE D3DXCOLOR& -D3DXCOLOR::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - r *= fInv; - g *= fInv; - b *= fInv; - a *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator - () const -{ - return D3DXCOLOR(-r, -g, -b, -a); -} - - -// binary operators -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator + ( CONST D3DXCOLOR& c ) const -{ - return D3DXCOLOR(r + c.r, g + c.g, b + c.b, a + c.a); -} - -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator - ( CONST D3DXCOLOR& c ) const -{ - return D3DXCOLOR(r - c.r, g - c.g, b - c.b, a - c.a); -} - -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator * ( FLOAT f ) const -{ - return D3DXCOLOR(r * f, g * f, b * f, a * f); -} - -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXCOLOR(r * fInv, g * fInv, b * fInv, a * fInv); -} - - -D3DXINLINE D3DXCOLOR -operator * (FLOAT f, CONST D3DXCOLOR& c ) -{ - return D3DXCOLOR(f * c.r, f * c.g, f * c.b, f * c.a); -} - - -D3DXINLINE BOOL -D3DXCOLOR::operator == ( CONST D3DXCOLOR& c ) const -{ - return r == c.r && g == c.g && b == c.b && a == c.a; -} - -D3DXINLINE BOOL -D3DXCOLOR::operator != ( CONST D3DXCOLOR& c ) const -{ - return r != c.r || g != c.g || b != c.b || a != c.a; -} - - -#endif //__cplusplus - - - -//=========================================================================== -// -// Inline functions -// -//=========================================================================== - - -//-------------------------- -// 2D Vector -//-------------------------- - -D3DXINLINE FLOAT D3DXVec2Length - ( CONST D3DXVECTOR2 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - -#ifdef __cplusplus - return sqrtf(pV->x * pV->x + pV->y * pV->y); -#else - return (FLOAT) sqrt(pV->x * pV->x + pV->y * pV->y); -#endif -} - -D3DXINLINE FLOAT D3DXVec2LengthSq - ( CONST D3DXVECTOR2 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - - return pV->x * pV->x + pV->y * pV->y; -} - -D3DXINLINE FLOAT D3DXVec2Dot - ( CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pV1 || !pV2) - return 0.0f; -#endif - - return pV1->x * pV2->x + pV1->y * pV2->y; -} - -D3DXINLINE FLOAT D3DXVec2CCW - ( CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pV1 || !pV2) - return 0.0f; -#endif - - return pV1->x * pV2->y - pV1->y * pV2->x; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Add - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + pV2->x; - pOut->y = pV1->y + pV2->y; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Subtract - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x - pV2->x; - pOut->y = pV1->y - pV2->y; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Minimize - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x < pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y < pV2->y ? pV1->y : pV2->y; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Maximize - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x > pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y > pV2->y ? pV1->y : pV2->y; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Scale - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV, FLOAT s ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV) - return NULL; -#endif - - pOut->x = pV->x * s; - pOut->y = pV->y * s; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Lerp - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2, - FLOAT s ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + s * (pV2->x - pV1->x); - pOut->y = pV1->y + s * (pV2->y - pV1->y); - return pOut; -} - - -//-------------------------- -// 3D Vector -//-------------------------- - -D3DXINLINE FLOAT D3DXVec3Length - ( CONST D3DXVECTOR3 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - -#ifdef __cplusplus - return sqrtf(pV->x * pV->x + pV->y * pV->y + pV->z * pV->z); -#else - return (FLOAT) sqrt(pV->x * pV->x + pV->y * pV->y + pV->z * pV->z); -#endif -} - -D3DXINLINE FLOAT D3DXVec3LengthSq - ( CONST D3DXVECTOR3 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - - return pV->x * pV->x + pV->y * pV->y + pV->z * pV->z; -} - -D3DXINLINE FLOAT D3DXVec3Dot - ( CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pV1 || !pV2) - return 0.0f; -#endif - - return pV1->x * pV2->x + pV1->y * pV2->y + pV1->z * pV2->z; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Cross - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ) -{ - D3DXVECTOR3 v; - -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - v.x = pV1->y * pV2->z - pV1->z * pV2->y; - v.y = pV1->z * pV2->x - pV1->x * pV2->z; - v.z = pV1->x * pV2->y - pV1->y * pV2->x; - - *pOut = v; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Add - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + pV2->x; - pOut->y = pV1->y + pV2->y; - pOut->z = pV1->z + pV2->z; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Subtract - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x - pV2->x; - pOut->y = pV1->y - pV2->y; - pOut->z = pV1->z - pV2->z; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Minimize - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x < pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y < pV2->y ? pV1->y : pV2->y; - pOut->z = pV1->z < pV2->z ? pV1->z : pV2->z; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Maximize - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x > pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y > pV2->y ? pV1->y : pV2->y; - pOut->z = pV1->z > pV2->z ? pV1->z : pV2->z; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Scale - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, FLOAT s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV) - return NULL; -#endif - - pOut->x = pV->x * s; - pOut->y = pV->y * s; - pOut->z = pV->z * s; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Lerp - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2, - FLOAT s ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + s * (pV2->x - pV1->x); - pOut->y = pV1->y + s * (pV2->y - pV1->y); - pOut->z = pV1->z + s * (pV2->z - pV1->z); - return pOut; -} - - -//-------------------------- -// 4D Vector -//-------------------------- - -D3DXINLINE FLOAT D3DXVec4Length - ( CONST D3DXVECTOR4 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - -#ifdef __cplusplus - return sqrtf(pV->x * pV->x + pV->y * pV->y + pV->z * pV->z + pV->w * pV->w); -#else - return (FLOAT) sqrt(pV->x * pV->x + pV->y * pV->y + pV->z * pV->z + pV->w * pV->w); -#endif -} - -D3DXINLINE FLOAT D3DXVec4LengthSq - ( CONST D3DXVECTOR4 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - - return pV->x * pV->x + pV->y * pV->y + pV->z * pV->z + pV->w * pV->w; -} - -D3DXINLINE FLOAT D3DXVec4Dot - ( CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pV1 || !pV2) - return 0.0f; -#endif - - return pV1->x * pV2->x + pV1->y * pV2->y + pV1->z * pV2->z + pV1->w * pV2->w; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Add - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + pV2->x; - pOut->y = pV1->y + pV2->y; - pOut->z = pV1->z + pV2->z; - pOut->w = pV1->w + pV2->w; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Subtract - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x - pV2->x; - pOut->y = pV1->y - pV2->y; - pOut->z = pV1->z - pV2->z; - pOut->w = pV1->w - pV2->w; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Minimize - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x < pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y < pV2->y ? pV1->y : pV2->y; - pOut->z = pV1->z < pV2->z ? pV1->z : pV2->z; - pOut->w = pV1->w < pV2->w ? pV1->w : pV2->w; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Maximize - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x > pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y > pV2->y ? pV1->y : pV2->y; - pOut->z = pV1->z > pV2->z ? pV1->z : pV2->z; - pOut->w = pV1->w > pV2->w ? pV1->w : pV2->w; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Scale - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV, FLOAT s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV) - return NULL; -#endif - - pOut->x = pV->x * s; - pOut->y = pV->y * s; - pOut->z = pV->z * s; - pOut->w = pV->w * s; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Lerp - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2, - FLOAT s ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + s * (pV2->x - pV1->x); - pOut->y = pV1->y + s * (pV2->y - pV1->y); - pOut->z = pV1->z + s * (pV2->z - pV1->z); - pOut->w = pV1->w + s * (pV2->w - pV1->w); - return pOut; -} - - -//-------------------------- -// 4D Matrix -//-------------------------- - -D3DXINLINE D3DXMATRIX* D3DXMatrixIdentity - ( D3DXMATRIX *pOut ) -{ -#ifdef D3DX_DEBUG - if(!pOut) - return NULL; -#endif - - pOut->m[0][1] = pOut->m[0][2] = pOut->m[0][3] = - pOut->m[1][0] = pOut->m[1][2] = pOut->m[1][3] = - pOut->m[2][0] = pOut->m[2][1] = pOut->m[2][3] = - pOut->m[3][0] = pOut->m[3][1] = pOut->m[3][2] = 0.0f; - - pOut->m[0][0] = pOut->m[1][1] = pOut->m[2][2] = pOut->m[3][3] = 1.0f; - return pOut; -} - - -D3DXINLINE BOOL D3DXMatrixIsIdentity - ( CONST D3DXMATRIX *pM ) -{ -#ifdef D3DX_DEBUG - if(!pM) - return FALSE; -#endif - - return pM->m[0][0] == 1.0f && pM->m[0][1] == 0.0f && pM->m[0][2] == 0.0f && pM->m[0][3] == 0.0f && - pM->m[1][0] == 0.0f && pM->m[1][1] == 1.0f && pM->m[1][2] == 0.0f && pM->m[1][3] == 0.0f && - pM->m[2][0] == 0.0f && pM->m[2][1] == 0.0f && pM->m[2][2] == 1.0f && pM->m[2][3] == 0.0f && - pM->m[3][0] == 0.0f && pM->m[3][1] == 0.0f && pM->m[3][2] == 0.0f && pM->m[3][3] == 1.0f; -} - - -//-------------------------- -// Quaternion -//-------------------------- - -D3DXINLINE FLOAT D3DXQuaternionLength - ( CONST D3DXQUATERNION *pQ ) -{ -#ifdef D3DX_DEBUG - if(!pQ) - return 0.0f; -#endif - -#ifdef __cplusplus - return sqrtf(pQ->x * pQ->x + pQ->y * pQ->y + pQ->z * pQ->z + pQ->w * pQ->w); -#else - return (FLOAT) sqrt(pQ->x * pQ->x + pQ->y * pQ->y + pQ->z * pQ->z + pQ->w * pQ->w); -#endif -} - -D3DXINLINE FLOAT D3DXQuaternionLengthSq - ( CONST D3DXQUATERNION *pQ ) -{ -#ifdef D3DX_DEBUG - if(!pQ) - return 0.0f; -#endif - - return pQ->x * pQ->x + pQ->y * pQ->y + pQ->z * pQ->z + pQ->w * pQ->w; -} - -D3DXINLINE FLOAT D3DXQuaternionDot - ( CONST D3DXQUATERNION *pQ1, CONST D3DXQUATERNION *pQ2 ) -{ -#ifdef D3DX_DEBUG - if(!pQ1 || !pQ2) - return 0.0f; -#endif - - return pQ1->x * pQ2->x + pQ1->y * pQ2->y + pQ1->z * pQ2->z + pQ1->w * pQ2->w; -} - - -D3DXINLINE D3DXQUATERNION* D3DXQuaternionIdentity - ( D3DXQUATERNION *pOut ) -{ -#ifdef D3DX_DEBUG - if(!pOut) - return NULL; -#endif - - pOut->x = pOut->y = pOut->z = 0.0f; - pOut->w = 1.0f; - return pOut; -} - -D3DXINLINE BOOL D3DXQuaternionIsIdentity - ( CONST D3DXQUATERNION *pQ ) -{ -#ifdef D3DX_DEBUG - if(!pQ) - return FALSE; -#endif - - return pQ->x == 0.0f && pQ->y == 0.0f && pQ->z == 0.0f && pQ->w == 1.0f; -} - - -D3DXINLINE D3DXQUATERNION* D3DXQuaternionConjugate - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pQ) - return NULL; -#endif - - pOut->x = -pQ->x; - pOut->y = -pQ->y; - pOut->z = -pQ->z; - pOut->w = pQ->w; - return pOut; -} - - -//-------------------------- -// Plane -//-------------------------- - -D3DXINLINE FLOAT D3DXPlaneDot - ( CONST D3DXPLANE *pP, CONST D3DXVECTOR4 *pV) -{ -#ifdef D3DX_DEBUG - if(!pP || !pV) - return 0.0f; -#endif - - return pP->a * pV->x + pP->b * pV->y + pP->c * pV->z + pP->d * pV->w; -} - -D3DXINLINE FLOAT D3DXPlaneDotCoord - ( CONST D3DXPLANE *pP, CONST D3DXVECTOR3 *pV) -{ -#ifdef D3DX_DEBUG - if(!pP || !pV) - return 0.0f; -#endif - - return pP->a * pV->x + pP->b * pV->y + pP->c * pV->z + pP->d; -} - -D3DXINLINE FLOAT D3DXPlaneDotNormal - ( CONST D3DXPLANE *pP, CONST D3DXVECTOR3 *pV) -{ -#ifdef D3DX_DEBUG - if(!pP || !pV) - return 0.0f; -#endif - - return pP->a * pV->x + pP->b * pV->y + pP->c * pV->z; -} - - -//-------------------------- -// Color -//-------------------------- - -D3DXINLINE D3DXCOLOR* D3DXColorNegative - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC) - return NULL; -#endif - - pOut->r = 1.0f - pC->r; - pOut->g = 1.0f - pC->g; - pOut->b = 1.0f - pC->b; - pOut->a = pC->a; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorAdd - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC1 || !pC2) - return NULL; -#endif - - pOut->r = pC1->r + pC2->r; - pOut->g = pC1->g + pC2->g; - pOut->b = pC1->b + pC2->b; - pOut->a = pC1->a + pC2->a; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorSubtract - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC1 || !pC2) - return NULL; -#endif - - pOut->r = pC1->r - pC2->r; - pOut->g = pC1->g - pC2->g; - pOut->b = pC1->b - pC2->b; - pOut->a = pC1->a - pC2->a; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorScale - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC, FLOAT s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC) - return NULL; -#endif - - pOut->r = pC->r * s; - pOut->g = pC->g * s; - pOut->b = pC->b * s; - pOut->a = pC->a * s; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorModulate - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC1 || !pC2) - return NULL; -#endif - - pOut->r = pC1->r * pC2->r; - pOut->g = pC1->g * pC2->g; - pOut->b = pC1->b * pC2->b; - pOut->a = pC1->a * pC2->a; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorLerp - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2, FLOAT s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC1 || !pC2) - return NULL; -#endif - - pOut->r = pC1->r + s * (pC2->r - pC1->r); - pOut->g = pC1->g + s * (pC2->g - pC1->g); - pOut->b = pC1->b + s * (pC2->b - pC1->b); - pOut->a = pC1->a + s * (pC2->a - pC1->a); - return pOut; -} - - -#endif // __D3DX8MATH_INL__ diff --git a/sdk/dx8sdk/Include/d3dx8mesh.h b/sdk/dx8sdk/Include/d3dx8mesh.h deleted file mode 100644 index 5408cd31..00000000 --- a/sdk/dx8sdk/Include/d3dx8mesh.h +++ /dev/null @@ -1,760 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx8mesh.h -// Content: D3DX mesh types and functions -// -////////////////////////////////////////////////////////////////////////////// - -#include "d3dx8.h" - -#ifndef __D3DX8MESH_H__ -#define __D3DX8MESH_H__ - -#include "dxfile.h" // defines LPDIRECTXFILEDATA - -// {2A835771-BF4D-43f4-8E14-82A809F17D8A} -DEFINE_GUID(IID_ID3DXBaseMesh, -0x2a835771, 0xbf4d, 0x43f4, 0x8e, 0x14, 0x82, 0xa8, 0x9, 0xf1, 0x7d, 0x8a); - -// {CCAE5C3B-4DD1-4d0f-997E-4684CA64557F} -DEFINE_GUID(IID_ID3DXMesh, -0xccae5c3b, 0x4dd1, 0x4d0f, 0x99, 0x7e, 0x46, 0x84, 0xca, 0x64, 0x55, 0x7f); - -// {19FBE386-C282-4659-97BD-CB869B084A6C} -DEFINE_GUID(IID_ID3DXPMesh, -0x19fbe386, 0xc282, 0x4659, 0x97, 0xbd, 0xcb, 0x86, 0x9b, 0x8, 0x4a, 0x6c); - -// {4E3CA05C-D4FF-4d11-8A02-16459E08F6F4} -DEFINE_GUID(IID_ID3DXSPMesh, -0x4e3ca05c, 0xd4ff, 0x4d11, 0x8a, 0x2, 0x16, 0x45, 0x9e, 0x8, 0xf6, 0xf4); - -// {8DB06ECC-EBFC-408a-9404-3074B4773515} -DEFINE_GUID(IID_ID3DXSkinMesh, -0x8db06ecc, 0xebfc, 0x408a, 0x94, 0x4, 0x30, 0x74, 0xb4, 0x77, 0x35, 0x15); - -// Mesh options - lower 3 bytes only, upper byte used by _D3DXMESHOPT option flags -enum _D3DXMESH { - D3DXMESH_32BIT = 0x001, // If set, then use 32 bit indices, if not set use 16 bit indices. - D3DXMESH_DONOTCLIP = 0x002, // Use D3DUSAGE_DONOTCLIP for VB & IB. - D3DXMESH_POINTS = 0x004, // Use D3DUSAGE_POINTS for VB & IB. - D3DXMESH_RTPATCHES = 0x008, // Use D3DUSAGE_RTPATCHES for VB & IB. - D3DXMESH_NPATCHES = 0x4000,// Use D3DUSAGE_NPATCHES for VB & IB. - D3DXMESH_VB_SYSTEMMEM = 0x010, // Use D3DPOOL_SYSTEMMEM for VB. Overrides D3DXMESH_MANAGEDVERTEXBUFFER - D3DXMESH_VB_MANAGED = 0x020, // Use D3DPOOL_MANAGED for VB. - D3DXMESH_VB_WRITEONLY = 0x040, // Use D3DUSAGE_WRITEONLY for VB. - D3DXMESH_VB_DYNAMIC = 0x080, // Use D3DUSAGE_DYNAMIC for VB. - D3DXMESH_VB_SOFTWAREPROCESSING = 0x8000, // Use D3DUSAGE_SOFTWAREPROCESSING for VB. - D3DXMESH_IB_SYSTEMMEM = 0x100, // Use D3DPOOL_SYSTEMMEM for IB. Overrides D3DXMESH_MANAGEDINDEXBUFFER - D3DXMESH_IB_MANAGED = 0x200, // Use D3DPOOL_MANAGED for IB. - D3DXMESH_IB_WRITEONLY = 0x400, // Use D3DUSAGE_WRITEONLY for IB. - D3DXMESH_IB_DYNAMIC = 0x800, // Use D3DUSAGE_DYNAMIC for IB. - D3DXMESH_IB_SOFTWAREPROCESSING= 0x10000, // Use D3DUSAGE_SOFTWAREPROCESSING for IB. - - D3DXMESH_VB_SHARE = 0x1000, // Valid for Clone* calls only, forces cloned mesh/pmesh to share vertex buffer - - D3DXMESH_USEHWONLY = 0x2000, // Valid for ID3DXSkinMesh::ConvertToBlendedMesh - - // Helper options - D3DXMESH_SYSTEMMEM = 0x110, // D3DXMESH_VB_SYSTEMMEM | D3DXMESH_IB_SYSTEMMEM - D3DXMESH_MANAGED = 0x220, // D3DXMESH_VB_MANAGED | D3DXMESH_IB_MANAGED - D3DXMESH_WRITEONLY = 0x440, // D3DXMESH_VB_WRITEONLY | D3DXMESH_IB_WRITEONLY - D3DXMESH_DYNAMIC = 0x880, // D3DXMESH_VB_DYNAMIC | D3DXMESH_IB_DYNAMIC - D3DXMESH_SOFTWAREPROCESSING = 0x18000, // D3DXMESH_VB_SOFTWAREPROCESSING | D3DXMESH_IB_SOFTWAREPROCESSING - -}; - -// option field values for specifying min value in D3DXGeneratePMesh and D3DXSimplifyMesh -enum _D3DXMESHSIMP -{ - D3DXMESHSIMP_VERTEX = 0x1, - D3DXMESHSIMP_FACE = 0x2, - -}; - -enum _MAX_FVF_DECL_SIZE -{ - MAX_FVF_DECL_SIZE = 20 -}; - -typedef struct ID3DXBaseMesh *LPD3DXBASEMESH; -typedef struct ID3DXMesh *LPD3DXMESH; -typedef struct ID3DXPMesh *LPD3DXPMESH; -typedef struct ID3DXSPMesh *LPD3DXSPMESH; -typedef struct ID3DXSkinMesh *LPD3DXSKINMESH; - -typedef struct _D3DXATTRIBUTERANGE -{ - DWORD AttribId; - DWORD FaceStart; - DWORD FaceCount; - DWORD VertexStart; - DWORD VertexCount; -} D3DXATTRIBUTERANGE; - -typedef D3DXATTRIBUTERANGE* LPD3DXATTRIBUTERANGE; - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus -struct D3DXMATERIAL -{ - D3DMATERIAL8 MatD3D; - LPSTR pTextureFilename; -}; -typedef struct D3DXMATERIAL *LPD3DXMATERIAL; -#ifdef __cplusplus -} -#endif //__cplusplus - -typedef struct _D3DXATTRIBUTEWEIGHTS -{ - FLOAT Position; - FLOAT Boundary; - FLOAT Normal; - FLOAT Diffuse; - FLOAT Specular; - FLOAT Tex[8]; -} D3DXATTRIBUTEWEIGHTS; - -typedef D3DXATTRIBUTEWEIGHTS* LPD3DXATTRIBUTEWEIGHTS; - -enum _D3DXWELDEPSILONSFLAGS -{ - D3DXWELDEPSILONS_WELDALL = 0x1, // weld all vertices marked by adjacency as being overlapping - - D3DXWELDEPSILONS_WELDPARTIALMATCHES = 0x2, // if a given vertex component is within epsilon, modify partial matched - // vertices so that both components identical AND if all components "equal" - // remove one of the vertices - D3DXWELDEPSILONS_DONOTREMOVEVERTICES = 0x4, // instructs weld to only allow modifications to vertices and not removal - // ONLY valid if D3DXWELDEPSILONS_WELDPARTIALMATCHES is set - // useful to modify vertices to be equal, but not allow vertices to be removed -}; - -typedef struct _D3DXWELDEPSILONS -{ - FLOAT SkinWeights; - FLOAT Normal; - FLOAT Tex[8]; - DWORD Flags; -} D3DXWELDEPSILONS; - -typedef D3DXWELDEPSILONS* LPD3DXWELDEPSILONS; - - -#undef INTERFACE -#define INTERFACE ID3DXBaseMesh - -DECLARE_INTERFACE_(ID3DXBaseMesh, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXBaseMesh - STDMETHOD(DrawSubset)(THIS_ DWORD AttribId) PURE; - STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE; - STDMETHOD_(DWORD, GetFVF)(THIS) PURE; - STDMETHOD(GetDeclaration)(THIS_ DWORD Declaration[MAX_FVF_DECL_SIZE]) PURE; - STDMETHOD_(DWORD, GetOptions)(THIS) PURE; - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE; - STDMETHOD(CloneMeshFVF)(THIS_ DWORD Options, - DWORD FVF, LPDIRECT3DDEVICE8 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(CloneMesh)(THIS_ DWORD Options, - CONST DWORD *pDeclaration, LPDIRECT3DDEVICE8 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(GetVertexBuffer)(THIS_ LPDIRECT3DVERTEXBUFFER8* ppVB) PURE; - STDMETHOD(GetIndexBuffer)(THIS_ LPDIRECT3DINDEXBUFFER8* ppIB) PURE; - STDMETHOD(LockVertexBuffer)(THIS_ DWORD Flags, BYTE** ppData) PURE; - STDMETHOD(UnlockVertexBuffer)(THIS) PURE; - STDMETHOD(LockIndexBuffer)(THIS_ DWORD Flags, BYTE** ppData) PURE; - STDMETHOD(UnlockIndexBuffer)(THIS) PURE; - STDMETHOD(GetAttributeTable)( - THIS_ D3DXATTRIBUTERANGE *pAttribTable, DWORD* pAttribTableSize) PURE; - - STDMETHOD(ConvertPointRepsToAdjacency)(THIS_ CONST DWORD* pPRep, DWORD* pAdjacency) PURE; - STDMETHOD(ConvertAdjacencyToPointReps)(THIS_ CONST DWORD* pAdjacency, DWORD* pPRep) PURE; - STDMETHOD(GenerateAdjacency)(THIS_ FLOAT Epsilon, DWORD* pAdjacency) PURE; -}; - - -#undef INTERFACE -#define INTERFACE ID3DXMesh - -DECLARE_INTERFACE_(ID3DXMesh, ID3DXBaseMesh) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXBaseMesh - STDMETHOD(DrawSubset)(THIS_ DWORD AttribId) PURE; - STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE; - STDMETHOD_(DWORD, GetFVF)(THIS) PURE; - STDMETHOD(GetDeclaration)(THIS_ DWORD Declaration[MAX_FVF_DECL_SIZE]) PURE; - STDMETHOD_(DWORD, GetOptions)(THIS) PURE; - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE; - STDMETHOD(CloneMeshFVF)(THIS_ DWORD Options, - DWORD FVF, LPDIRECT3DDEVICE8 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(CloneMesh)(THIS_ DWORD Options, - CONST DWORD *pDeclaration, LPDIRECT3DDEVICE8 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(GetVertexBuffer)(THIS_ LPDIRECT3DVERTEXBUFFER8* ppVB) PURE; - STDMETHOD(GetIndexBuffer)(THIS_ LPDIRECT3DINDEXBUFFER8* ppIB) PURE; - STDMETHOD(LockVertexBuffer)(THIS_ DWORD Flags, BYTE** ppData) PURE; - STDMETHOD(UnlockVertexBuffer)(THIS) PURE; - STDMETHOD(LockIndexBuffer)(THIS_ DWORD Flags, BYTE** ppData) PURE; - STDMETHOD(UnlockIndexBuffer)(THIS) PURE; - STDMETHOD(GetAttributeTable)( - THIS_ D3DXATTRIBUTERANGE *pAttribTable, DWORD* pAttribTableSize) PURE; - - STDMETHOD(ConvertPointRepsToAdjacency)(THIS_ CONST DWORD* pPRep, DWORD* pAdjacency) PURE; - STDMETHOD(ConvertAdjacencyToPointReps)(THIS_ CONST DWORD* pAdjacency, DWORD* pPRep) PURE; - STDMETHOD(GenerateAdjacency)(THIS_ FLOAT Epsilon, DWORD* pAdjacency) PURE; - - // ID3DXMesh - STDMETHOD(LockAttributeBuffer)(THIS_ DWORD Flags, DWORD** ppData) PURE; - STDMETHOD(UnlockAttributeBuffer)(THIS) PURE; - STDMETHOD(Optimize)(THIS_ DWORD Flags, CONST DWORD* pAdjacencyIn, DWORD* pAdjacencyOut, - DWORD* pFaceRemap, LPD3DXBUFFER *ppVertexRemap, - LPD3DXMESH* ppOptMesh) PURE; - STDMETHOD(OptimizeInplace)(THIS_ DWORD Flags, CONST DWORD* pAdjacencyIn, DWORD* pAdjacencyOut, - DWORD* pFaceRemap, LPD3DXBUFFER *ppVertexRemap) PURE; - -}; - - -#undef INTERFACE -#define INTERFACE ID3DXPMesh - -DECLARE_INTERFACE_(ID3DXPMesh, ID3DXBaseMesh) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXBaseMesh - STDMETHOD(DrawSubset)(THIS_ DWORD AttribId) PURE; - STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE; - STDMETHOD_(DWORD, GetFVF)(THIS) PURE; - STDMETHOD(GetDeclaration)(THIS_ DWORD Declaration[MAX_FVF_DECL_SIZE]) PURE; - STDMETHOD_(DWORD, GetOptions)(THIS) PURE; - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE; - STDMETHOD(CloneMeshFVF)(THIS_ DWORD Options, - DWORD FVF, LPDIRECT3DDEVICE8 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(CloneMesh)(THIS_ DWORD Options, - CONST DWORD *pDeclaration, LPDIRECT3DDEVICE8 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(GetVertexBuffer)(THIS_ LPDIRECT3DVERTEXBUFFER8* ppVB) PURE; - STDMETHOD(GetIndexBuffer)(THIS_ LPDIRECT3DINDEXBUFFER8* ppIB) PURE; - STDMETHOD(LockVertexBuffer)(THIS_ DWORD Flags, BYTE** ppData) PURE; - STDMETHOD(UnlockVertexBuffer)(THIS) PURE; - STDMETHOD(LockIndexBuffer)(THIS_ DWORD Flags, BYTE** ppData) PURE; - STDMETHOD(UnlockIndexBuffer)(THIS) PURE; - STDMETHOD(GetAttributeTable)( - THIS_ D3DXATTRIBUTERANGE *pAttribTable, DWORD* pAttribTableSize) PURE; - - STDMETHOD(ConvertPointRepsToAdjacency)(THIS_ CONST DWORD* pPRep, DWORD* pAdjacency) PURE; - STDMETHOD(ConvertAdjacencyToPointReps)(THIS_ CONST DWORD* pAdjacency, DWORD* pPRep) PURE; - STDMETHOD(GenerateAdjacency)(THIS_ FLOAT Epsilon, DWORD* pAdjacency) PURE; - - // ID3DXPMesh - STDMETHOD(ClonePMeshFVF)(THIS_ DWORD Options, - DWORD FVF, LPDIRECT3DDEVICE8 pD3D, LPD3DXPMESH* ppCloneMesh) PURE; - STDMETHOD(ClonePMesh)(THIS_ DWORD Options, - CONST DWORD *pDeclaration, LPDIRECT3DDEVICE8 pD3D, LPD3DXPMESH* ppCloneMesh) PURE; - STDMETHOD(SetNumFaces)(THIS_ DWORD Faces) PURE; - STDMETHOD(SetNumVertices)(THIS_ DWORD Vertices) PURE; - STDMETHOD_(DWORD, GetMaxFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetMinFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetMaxVertices)(THIS) PURE; - STDMETHOD_(DWORD, GetMinVertices)(THIS) PURE; - STDMETHOD(Save)(THIS_ IStream *pStream, LPD3DXMATERIAL pMaterials, DWORD NumMaterials) PURE; - - STDMETHOD(Optimize)(THIS_ DWORD Flags, DWORD* pAdjacencyOut, - DWORD* pFaceRemap, LPD3DXBUFFER *ppVertexRemap, - LPD3DXMESH* ppOptMesh) PURE; - - STDMETHOD(OptimizeBaseLOD)(THIS_ DWORD Flags, DWORD* pFaceRemap) PURE; - STDMETHOD(TrimByFaces)(THIS_ DWORD NewFacesMin, DWORD NewFacesMax, DWORD *rgiFaceRemap, DWORD *rgiVertRemap) PURE; - STDMETHOD(TrimByVertices)(THIS_ DWORD NewVerticesMin, DWORD NewVerticesMax, DWORD *rgiFaceRemap, DWORD *rgiVertRemap) PURE; - - STDMETHOD(GetAdjacency)(THIS_ DWORD* pAdjacency) PURE; -}; - - -#undef INTERFACE -#define INTERFACE ID3DXSPMesh - -DECLARE_INTERFACE_(ID3DXSPMesh, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXSPMesh - STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE; - STDMETHOD_(DWORD, GetFVF)(THIS) PURE; - STDMETHOD(GetDeclaration)(THIS_ DWORD Declaration[MAX_FVF_DECL_SIZE]) PURE; - STDMETHOD_(DWORD, GetOptions)(THIS) PURE; - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE; - STDMETHOD(CloneMeshFVF)(THIS_ DWORD Options, - DWORD FVF, LPDIRECT3DDEVICE8 pD3D, DWORD *pAdjacencyOut, DWORD *pVertexRemapOut, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(CloneMesh)(THIS_ DWORD Options, - CONST DWORD *pDeclaration, LPDIRECT3DDEVICE8 pD3DDevice, DWORD *pAdjacencyOut, DWORD *pVertexRemapOut, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(ClonePMeshFVF)(THIS_ DWORD Options, - DWORD FVF, LPDIRECT3DDEVICE8 pD3D, DWORD *pVertexRemapOut, LPD3DXPMESH* ppCloneMesh) PURE; - STDMETHOD(ClonePMesh)(THIS_ DWORD Options, - CONST DWORD *pDeclaration, LPDIRECT3DDEVICE8 pD3D, DWORD *pVertexRemapOut, LPD3DXPMESH* ppCloneMesh) PURE; - STDMETHOD(ReduceFaces)(THIS_ DWORD Faces) PURE; - STDMETHOD(ReduceVertices)(THIS_ DWORD Vertices) PURE; - STDMETHOD_(DWORD, GetMaxFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetMaxVertices)(THIS) PURE; - STDMETHOD(GetVertexAttributeWeights)(THIS_ LPD3DXATTRIBUTEWEIGHTS pVertexAttributeWeights) PURE; - STDMETHOD(GetVertexWeights)(THIS_ FLOAT *pVertexWeights) PURE; -}; - -#define UNUSED16 (0xffff) -#define UNUSED32 (0xffffffff) - -// ID3DXMesh::Optimize options - upper byte only, lower 3 bytes used from _D3DXMESH option flags -enum _D3DXMESHOPT { - D3DXMESHOPT_COMPACT = 0x01000000, - D3DXMESHOPT_ATTRSORT = 0x02000000, - D3DXMESHOPT_VERTEXCACHE = 0x04000000, - D3DXMESHOPT_STRIPREORDER = 0x08000000, - D3DXMESHOPT_IGNOREVERTS = 0x10000000, // optimize faces only, don't touch vertices - D3DXMESHOPT_SHAREVB = 0x1000, // same as D3DXMESH_VB_SHARE -}; - -// Subset of the mesh that has the same attribute and bone combination. -// This subset can be rendered in a single draw call -typedef struct _D3DXBONECOMBINATION -{ - DWORD AttribId; - DWORD FaceStart; - DWORD FaceCount; - DWORD VertexStart; - DWORD VertexCount; - DWORD* BoneId; -} D3DXBONECOMBINATION, *LPD3DXBONECOMBINATION; - - -#undef INTERFACE -#define INTERFACE ID3DXSkinMesh - -DECLARE_INTERFACE_(ID3DXSkinMesh, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXMesh - STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE; - STDMETHOD_(DWORD, GetFVF)(THIS) PURE; - STDMETHOD(GetDeclaration)(THIS_ DWORD Declaration[MAX_FVF_DECL_SIZE]) PURE; - STDMETHOD_(DWORD, GetOptions)(THIS) PURE; - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE8* ppDevice) PURE; - STDMETHOD(GetVertexBuffer)(THIS_ LPDIRECT3DVERTEXBUFFER8* ppVB) PURE; - STDMETHOD(GetIndexBuffer)(THIS_ LPDIRECT3DINDEXBUFFER8* ppIB) PURE; - STDMETHOD(LockVertexBuffer)(THIS_ DWORD flags, BYTE** ppData) PURE; - STDMETHOD(UnlockVertexBuffer)(THIS) PURE; - STDMETHOD(LockIndexBuffer)(THIS_ DWORD flags, BYTE** ppData) PURE; - STDMETHOD(UnlockIndexBuffer)(THIS) PURE; - STDMETHOD(LockAttributeBuffer)(THIS_ DWORD flags, DWORD** ppData) PURE; - STDMETHOD(UnlockAttributeBuffer)(THIS) PURE; - // ID3DXSkinMesh - STDMETHOD_(DWORD, GetNumBones)(THIS) PURE; - STDMETHOD(GetOriginalMesh)(THIS_ LPD3DXMESH* ppMesh) PURE; - STDMETHOD(SetBoneInfluence)(THIS_ DWORD bone, DWORD numInfluences, CONST DWORD* vertices, CONST FLOAT* weights) PURE; - STDMETHOD_(DWORD, GetNumBoneInfluences)(THIS_ DWORD bone) PURE; - STDMETHOD(GetBoneInfluence)(THIS_ DWORD bone, DWORD* vertices, FLOAT* weights) PURE; - STDMETHOD(GetMaxVertexInfluences)(THIS_ DWORD* maxVertexInfluences) PURE; - STDMETHOD(GetMaxFaceInfluences)(THIS_ DWORD* maxFaceInfluences) PURE; - - STDMETHOD(ConvertToBlendedMesh)(THIS_ DWORD Options, - CONST LPDWORD pAdjacencyIn, - LPDWORD pAdjacencyOut, - DWORD* pNumBoneCombinations, - LPD3DXBUFFER* ppBoneCombinationTable, - DWORD* pFaceRemap, - LPD3DXBUFFER *ppVertexRemap, - LPD3DXMESH* ppMesh) PURE; - - STDMETHOD(ConvertToIndexedBlendedMesh)(THIS_ DWORD Options, - CONST LPDWORD pAdjacencyIn, - DWORD paletteSize, - LPDWORD pAdjacencyOut, - DWORD* pNumBoneCombinations, - LPD3DXBUFFER* ppBoneCombinationTable, - DWORD* pFaceRemap, - LPD3DXBUFFER *ppVertexRemap, - LPD3DXMESH* ppMesh) PURE; - - STDMETHOD(GenerateSkinnedMesh)(THIS_ DWORD Options, - FLOAT minWeight, - CONST LPDWORD pAdjacencyIn, - LPDWORD pAdjacencyOut, - DWORD* pFaceRemap, - LPD3DXBUFFER *ppVertexRemap, - LPD3DXMESH* ppMesh) PURE; - STDMETHOD(UpdateSkinnedMesh)(THIS_ CONST D3DXMATRIX* pBoneTransforms, CONST D3DXMATRIX* pBoneInvTransforms, LPD3DXMESH pMesh) PURE; -}; - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -HRESULT WINAPI - D3DXCreateMesh( - DWORD NumFaces, - DWORD NumVertices, - DWORD Options, - CONST DWORD *pDeclaration, - LPDIRECT3DDEVICE8 pD3D, - LPD3DXMESH* ppMesh); - -HRESULT WINAPI - D3DXCreateMeshFVF( - DWORD NumFaces, - DWORD NumVertices, - DWORD Options, - DWORD FVF, - LPDIRECT3DDEVICE8 pD3D, - LPD3DXMESH* ppMesh); - -HRESULT WINAPI - D3DXCreateSPMesh( - LPD3DXMESH pMesh, - CONST DWORD* pAdjacency, - CONST LPD3DXATTRIBUTEWEIGHTS pVertexAttributeWeights, - CONST FLOAT *pVertexWeights, - LPD3DXSPMESH* ppSMesh); - -// clean a mesh up for simplification, try to make manifold -HRESULT WINAPI - D3DXCleanMesh( - LPD3DXMESH pMeshIn, - CONST DWORD* pAdjacencyIn, - LPD3DXMESH* ppMeshOut, - DWORD* pAdjacencyOut, - LPD3DXBUFFER* ppErrorsAndWarnings); - -HRESULT WINAPI - D3DXValidMesh( - LPD3DXMESH pMeshIn, - CONST DWORD* pAdjacency, - LPD3DXBUFFER* ppErrorsAndWarnings); - -HRESULT WINAPI - D3DXGeneratePMesh( - LPD3DXMESH pMesh, - CONST DWORD* pAdjacency, - CONST LPD3DXATTRIBUTEWEIGHTS pVertexAttributeWeights, - CONST FLOAT *pVertexWeights, - DWORD MinValue, - DWORD Options, - LPD3DXPMESH* ppPMesh); - -HRESULT WINAPI - D3DXSimplifyMesh( - LPD3DXMESH pMesh, - CONST DWORD* pAdjacency, - CONST LPD3DXATTRIBUTEWEIGHTS pVertexAttributeWeights, - CONST FLOAT *pVertexWeights, - DWORD MinValue, - DWORD Options, - LPD3DXMESH* ppMesh); - -HRESULT WINAPI - D3DXComputeBoundingSphere( - PVOID pPointsFVF, - DWORD NumVertices, - DWORD FVF, - D3DXVECTOR3 *pCenter, - FLOAT *pRadius); - -HRESULT WINAPI - D3DXComputeBoundingBox( - PVOID pPointsFVF, - DWORD NumVertices, - DWORD FVF, - D3DXVECTOR3 *pMin, - D3DXVECTOR3 *pMax); - -HRESULT WINAPI - D3DXComputeNormals( - LPD3DXBASEMESH pMesh, - CONST DWORD *pAdjacency); - -HRESULT WINAPI - D3DXCreateBuffer( - DWORD NumBytes, - LPD3DXBUFFER *ppBuffer); - - -HRESULT WINAPI - D3DXLoadMeshFromX( - LPSTR pFilename, - DWORD Options, - LPDIRECT3DDEVICE8 pD3D, - LPD3DXBUFFER *ppAdjacency, - LPD3DXBUFFER *ppMaterials, - DWORD *pNumMaterials, - LPD3DXMESH *ppMesh); - -HRESULT WINAPI - D3DXLoadMeshFromXInMemory( - PBYTE Memory, - DWORD SizeOfMemory, - DWORD Options, - LPDIRECT3DDEVICE8 pD3D, - LPD3DXBUFFER *ppAdjacency, - LPD3DXBUFFER *ppMaterials, - DWORD *pNumMaterials, - LPD3DXMESH *ppMesh); - -HRESULT WINAPI - D3DXLoadMeshFromXResource( - HMODULE Module, - LPCTSTR Name, - LPCTSTR Type, - DWORD Options, - LPDIRECT3DDEVICE8 pD3D, - LPD3DXBUFFER *ppAdjacency, - LPD3DXBUFFER *ppMaterials, - DWORD *pNumMaterials, - LPD3DXMESH *ppMesh); - -HRESULT WINAPI - D3DXSaveMeshToX( - LPSTR pFilename, - LPD3DXMESH pMesh, - CONST DWORD* pAdjacency, - CONST LPD3DXMATERIAL pMaterials, - DWORD NumMaterials, - DWORD Format - ); - -HRESULT WINAPI - D3DXCreatePMeshFromStream( - IStream *pStream, - DWORD Options, - LPDIRECT3DDEVICE8 pD3DDevice, - LPD3DXBUFFER *ppMaterials, - DWORD* pNumMaterials, - LPD3DXPMESH *ppPMesh); - -HRESULT WINAPI - D3DXCreateSkinMesh( - DWORD NumFaces, - DWORD NumVertices, - DWORD NumBones, - DWORD Options, - CONST DWORD *pDeclaration, - LPDIRECT3DDEVICE8 pD3D, - LPD3DXSKINMESH* ppSkinMesh); - -HRESULT WINAPI - D3DXCreateSkinMeshFVF( - DWORD NumFaces, - DWORD NumVertices, - DWORD NumBones, - DWORD Options, - DWORD FVF, - LPDIRECT3DDEVICE8 pD3D, - LPD3DXSKINMESH* ppSkinMesh); - -HRESULT WINAPI - D3DXCreateSkinMeshFromMesh( - LPD3DXMESH pMesh, - DWORD numBones, - LPD3DXSKINMESH* ppSkinMesh); - -HRESULT WINAPI - D3DXLoadMeshFromXof( - LPDIRECTXFILEDATA pXofObjMesh, - DWORD Options, - LPDIRECT3DDEVICE8 pD3DDevice, - LPD3DXBUFFER *ppAdjacency, - LPD3DXBUFFER *ppMaterials, - DWORD *pNumMaterials, - LPD3DXMESH *ppMesh); - -HRESULT WINAPI - D3DXLoadSkinMeshFromXof( - LPDIRECTXFILEDATA pxofobjMesh, - DWORD Options, - LPDIRECT3DDEVICE8 pD3D, - LPD3DXBUFFER* ppAdjacency, - LPD3DXBUFFER* ppMaterials, - DWORD *pMatOut, - LPD3DXBUFFER* ppBoneNames, - LPD3DXBUFFER* ppBoneTransforms, - LPD3DXSKINMESH* ppMesh); - -HRESULT WINAPI - D3DXTessellateNPatches( - LPD3DXMESH pMeshIn, - CONST DWORD* pAdjacencyIn, - FLOAT NumSegs, - BOOL QuadraticInterpNormals, // if false use linear intrep for normals, if true use quadratic - LPD3DXMESH *ppMeshOut, - LPD3DXBUFFER *ppAdjacencyOut); - -UINT WINAPI - D3DXGetFVFVertexSize(DWORD FVF); - -HRESULT WINAPI - D3DXDeclaratorFromFVF( - DWORD FVF, - DWORD Declaration[MAX_FVF_DECL_SIZE]); - -HRESULT WINAPI - D3DXFVFFromDeclarator( - CONST DWORD *pDeclarator, - DWORD *pFVF); - -HRESULT WINAPI - D3DXWeldVertices( - CONST LPD3DXMESH pMesh, - LPD3DXWELDEPSILONS pEpsilons, - CONST DWORD *pAdjacencyIn, - DWORD *pAdjacencyOut, - DWORD* pFaceRemap, - LPD3DXBUFFER *ppVertexRemap); - -typedef struct _D3DXINTERSECTINFO -{ - DWORD FaceIndex; // index of face intersected - FLOAT U; // Barycentric Hit Coordinates - FLOAT V; // Barycentric Hit Coordinates - FLOAT Dist; // Ray-Intersection Parameter Distance -} D3DXINTERSECTINFO, *LPD3DXINTERSECTINFO; - - -HRESULT WINAPI - D3DXIntersect( - LPD3DXBASEMESH pMesh, - CONST D3DXVECTOR3 *pRayPos, - CONST D3DXVECTOR3 *pRayDir, - BOOL *pHit, // True if any faces were intersected - DWORD *pFaceIndex, // index of closest face intersected - FLOAT *pU, // Barycentric Hit Coordinates - FLOAT *pV, // Barycentric Hit Coordinates - FLOAT *pDist, // Ray-Intersection Parameter Distance - LPD3DXBUFFER *ppAllHits, // Array of D3DXINTERSECTINFOs for all hits (not just closest) - DWORD *pCountOfHits); // Number of entries in AllHits array - -HRESULT WINAPI - D3DXIntersectSubset( - LPD3DXBASEMESH pMesh, - DWORD AttribId, - CONST D3DXVECTOR3 *pRayPos, - CONST D3DXVECTOR3 *pRayDir, - BOOL *pHit, // True if any faces were intersected - DWORD *pFaceIndex, // index of closest face intersected - FLOAT *pU, // Barycentric Hit Coordinates - FLOAT *pV, // Barycentric Hit Coordinates - FLOAT *pDist, // Ray-Intersection Parameter Distance - LPD3DXBUFFER *ppAllHits, // Array of D3DXINTERSECTINFOs for all hits (not just closest) - DWORD *pCountOfHits); // Number of entries in AllHits array - - -HRESULT WINAPI D3DXSplitMesh - ( - CONST LPD3DXMESH pMeshIn, - CONST DWORD *pAdjacencyIn, - CONST DWORD MaxSize, - CONST DWORD Options, - DWORD *pMeshesOut, - LPD3DXBUFFER *ppMeshArrayOut, - LPD3DXBUFFER *ppAdjacencyArrayOut, - LPD3DXBUFFER *ppFaceRemapArrayOut, - LPD3DXBUFFER *ppVertRemapArrayOut - ); - -BOOL D3DXIntersectTri -( - CONST D3DXVECTOR3 *p0, // Triangle vertex 0 position - CONST D3DXVECTOR3 *p1, // Triangle vertex 1 position - CONST D3DXVECTOR3 *p2, // Triangle vertex 2 position - CONST D3DXVECTOR3 *pRayPos, // Ray origin - CONST D3DXVECTOR3 *pRayDir, // Ray direction - FLOAT *pU, // Barycentric Hit Coordinates - FLOAT *pV, // Barycentric Hit Coordinates - FLOAT *pDist); // Ray-Intersection Parameter Distance - -BOOL WINAPI - D3DXSphereBoundProbe( - CONST D3DXVECTOR3 *pCenter, - FLOAT Radius, - CONST D3DXVECTOR3 *pRayPosition, - CONST D3DXVECTOR3 *pRayDirection); - -BOOL WINAPI - D3DXBoxBoundProbe( - CONST D3DXVECTOR3 *pMin, - CONST D3DXVECTOR3 *pMax, - CONST D3DXVECTOR3 *pRayPosition, - CONST D3DXVECTOR3 *pRayDirection); - -enum _D3DXERR { - D3DXERR_CANNOTMODIFYINDEXBUFFER = MAKE_DDHRESULT(2900), - D3DXERR_INVALIDMESH = MAKE_DDHRESULT(2901), - D3DXERR_CANNOTATTRSORT = MAKE_DDHRESULT(2902), - D3DXERR_SKINNINGNOTSUPPORTED = MAKE_DDHRESULT(2903), - D3DXERR_TOOMANYINFLUENCES = MAKE_DDHRESULT(2904), - D3DXERR_INVALIDDATA = MAKE_DDHRESULT(2905), - D3DXERR_LOADEDMESHASNODATA = MAKE_DDHRESULT(2906), -}; - - -#define D3DX_COMP_TANGENT_NONE 0xFFFFFFFF - -HRESULT WINAPI D3DXComputeTangent(LPD3DXMESH InMesh, - DWORD TexStage, - LPD3DXMESH OutMesh, - DWORD TexStageUVec, - DWORD TexStageVVec, - DWORD Wrap, - DWORD *Adjacency); - -HRESULT WINAPI -D3DXConvertMeshSubsetToSingleStrip -( - LPD3DXBASEMESH MeshIn, - DWORD AttribId, - DWORD IBOptions, - LPDIRECT3DINDEXBUFFER8 *ppIndexBuffer, - DWORD *pNumIndices -); - -HRESULT WINAPI -D3DXConvertMeshSubsetToStrips -( - LPD3DXBASEMESH MeshIn, - DWORD AttribId, - DWORD IBOptions, - LPDIRECT3DINDEXBUFFER8 *ppIndexBuffer, - DWORD *pNumIndices, - LPD3DXBUFFER *ppStripLengths, - DWORD *pNumStrips -); - - -#ifdef __cplusplus -} -#endif //__cplusplus - -#endif //__D3DX8MESH_H__ - - diff --git a/sdk/dx8sdk/Include/d3dx8shape.h b/sdk/dx8sdk/Include/d3dx8shape.h deleted file mode 100644 index b7ab6378..00000000 --- a/sdk/dx8sdk/Include/d3dx8shape.h +++ /dev/null @@ -1,220 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx8shapes.h -// Content: D3DX simple shapes -// -/////////////////////////////////////////////////////////////////////////// - -#include "d3dx8.h" - -#ifndef __D3DX8SHAPES_H__ -#define __D3DX8SHAPES_H__ - -/////////////////////////////////////////////////////////////////////////// -// Functions: -/////////////////////////////////////////////////////////////////////////// - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - - -//------------------------------------------------------------------------- -// D3DXCreatePolygon: -// ------------------ -// Creates a mesh containing an n-sided polygon. The polygon is centered -// at the origin. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// Length Length of each side. -// Sides Number of sides the polygon has. (Must be >= 3) -// ppMesh The mesh object which will be created -// ppAdjacency Returns a buffer containing adjacency info. Can be NULL. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreatePolygon( - LPDIRECT3DDEVICE8 pDevice, - FLOAT Length, - UINT Sides, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency); - - -//------------------------------------------------------------------------- -// D3DXCreateBox: -// -------------- -// Creates a mesh containing an axis-aligned box. The box is centered at -// the origin. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// Width Width of box (along X-axis) -// Height Height of box (along Y-axis) -// Depth Depth of box (along Z-axis) -// ppMesh The mesh object which will be created -// ppAdjacency Returns a buffer containing adjacency info. Can be NULL. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateBox( - LPDIRECT3DDEVICE8 pDevice, - FLOAT Width, - FLOAT Height, - FLOAT Depth, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency); - - -//------------------------------------------------------------------------- -// D3DXCreateCylinder: -// ------------------- -// Creates a mesh containing a cylinder. The generated cylinder is -// centered at the origin, and its axis is aligned with the Z-axis. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// Radius1 Radius at -Z end (should be >= 0.0f) -// Radius2 Radius at +Z end (should be >= 0.0f) -// Length Length of cylinder (along Z-axis) -// Slices Number of slices about the main axis -// Stacks Number of stacks along the main axis -// ppMesh The mesh object which will be created -// ppAdjacency Returns a buffer containing adjacency info. Can be NULL. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateCylinder( - LPDIRECT3DDEVICE8 pDevice, - FLOAT Radius1, - FLOAT Radius2, - FLOAT Length, - UINT Slices, - UINT Stacks, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency); - - -//------------------------------------------------------------------------- -// D3DXCreateSphere: -// ----------------- -// Creates a mesh containing a sphere. The sphere is centered at the -// origin. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// Radius Radius of the sphere (should be >= 0.0f) -// Slices Number of slices about the main axis -// Stacks Number of stacks along the main axis -// ppMesh The mesh object which will be created -// ppAdjacency Returns a buffer containing adjacency info. Can be NULL. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateSphere( - LPDIRECT3DDEVICE8 pDevice, - FLOAT Radius, - UINT Slices, - UINT Stacks, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency); - - -//------------------------------------------------------------------------- -// D3DXCreateTorus: -// ---------------- -// Creates a mesh containing a torus. The generated torus is centered at -// the origin, and its axis is aligned with the Z-axis. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// InnerRadius Inner radius of the torus (should be >= 0.0f) -// OuterRadius Outer radius of the torue (should be >= 0.0f) -// Sides Number of sides in a cross-section (must be >= 3) -// Rings Number of rings making up the torus (must be >= 3) -// ppMesh The mesh object which will be created -// ppAdjacency Returns a buffer containing adjacency info. Can be NULL. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateTorus( - LPDIRECT3DDEVICE8 pDevice, - FLOAT InnerRadius, - FLOAT OuterRadius, - UINT Sides, - UINT Rings, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency); - - -//------------------------------------------------------------------------- -// D3DXCreateTeapot: -// ----------------- -// Creates a mesh containing a teapot. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// ppMesh The mesh object which will be created -// ppAdjacency Returns a buffer containing adjacency info. Can be NULL. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateTeapot( - LPDIRECT3DDEVICE8 pDevice, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency); - - -//------------------------------------------------------------------------- -// D3DXCreateText: -// --------------- -// Creates a mesh containing the specified text using the font associated -// with the device context. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// hDC Device context, with desired font selected -// pText Text to generate -// Deviation Maximum chordal deviation from true font outlines -// Extrusion Amount to extrude text in -Z direction -// ppMesh The mesh object which will be created -// pGlyphMetrics Address of buffer to receive glyph metric data (or NULL) -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateTextA( - LPDIRECT3DDEVICE8 pDevice, - HDC hDC, - LPCSTR pText, - FLOAT Deviation, - FLOAT Extrusion, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency, - LPGLYPHMETRICSFLOAT pGlyphMetrics); - -HRESULT WINAPI - D3DXCreateTextW( - LPDIRECT3DDEVICE8 pDevice, - HDC hDC, - LPCWSTR pText, - FLOAT Deviation, - FLOAT Extrusion, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency, - LPGLYPHMETRICSFLOAT pGlyphMetrics); - -#ifdef UNICODE -#define D3DXCreateText D3DXCreateTextW -#else -#define D3DXCreateText D3DXCreateTextA -#endif - - -#ifdef __cplusplus -} -#endif //__cplusplus - -#endif //__D3DX8SHAPES_H__ diff --git a/sdk/dx8sdk/Include/d3dx8tex.h b/sdk/dx8sdk/Include/d3dx8tex.h deleted file mode 100644 index dd9fe9d0..00000000 --- a/sdk/dx8sdk/Include/d3dx8tex.h +++ /dev/null @@ -1,1592 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx8tex.h -// Content: D3DX texturing APIs -// -////////////////////////////////////////////////////////////////////////////// - -#include "d3dx8.h" - -#ifndef __D3DX8TEX_H__ -#define __D3DX8TEX_H__ - - -//---------------------------------------------------------------------------- -// D3DX_FILTER flags: -// ------------------ -// -// A valid filter must contain one of these values: -// -// D3DX_FILTER_NONE -// No scaling or filtering will take place. Pixels outside the bounds -// of the source image are assumed to be transparent black. -// D3DX_FILTER_POINT -// Each destination pixel is computed by sampling the nearest pixel -// from the source image. -// D3DX_FILTER_LINEAR -// Each destination pixel is computed by linearly interpolating between -// the nearest pixels in the source image. This filter works best -// when the scale on each axis is less than 2. -// D3DX_FILTER_TRIANGLE -// Every pixel in the source image contributes equally to the -// destination image. This is the slowest of all the filters. -// D3DX_FILTER_BOX -// Each pixel is computed by averaging a 2x2(x2) box pixels from -// the source image. Only works when the dimensions of the -// destination are half those of the source. (as with mip maps) -// -// And can be OR'd with any of these optional flags: -// -// D3DX_FILTER_MIRROR_U -// Indicates that pixels off the edge of the texture on the U-axis -// should be mirrored, not wraped. -// D3DX_FILTER_MIRROR_V -// Indicates that pixels off the edge of the texture on the V-axis -// should be mirrored, not wraped. -// D3DX_FILTER_MIRROR_W -// Indicates that pixels off the edge of the texture on the W-axis -// should be mirrored, not wraped. -// D3DX_FILTER_MIRROR -// Same as specifying D3DX_FILTER_MIRROR_U | D3DX_FILTER_MIRROR_V | -// D3DX_FILTER_MIRROR_V -// D3DX_FILTER_DITHER -// Dithers the resulting image. -// -//---------------------------------------------------------------------------- - -#define D3DX_FILTER_NONE (1 << 0) -#define D3DX_FILTER_POINT (2 << 0) -#define D3DX_FILTER_LINEAR (3 << 0) -#define D3DX_FILTER_TRIANGLE (4 << 0) -#define D3DX_FILTER_BOX (5 << 0) - -#define D3DX_FILTER_MIRROR_U (1 << 16) -#define D3DX_FILTER_MIRROR_V (2 << 16) -#define D3DX_FILTER_MIRROR_W (4 << 16) -#define D3DX_FILTER_MIRROR (7 << 16) -#define D3DX_FILTER_DITHER (8 << 16) - - -//---------------------------------------------------------------------------- -// D3DX_NORMALMAP flags: -// --------------------- -// These flags are used to control how D3DXComputeNormalMap generates normal -// maps. Any number of these flags may be OR'd together in any combination. -// -// D3DX_NORMALMAP_MIRROR_U -// Indicates that pixels off the edge of the texture on the U-axis -// should be mirrored, not wraped. -// D3DX_NORMALMAP_MIRROR_V -// Indicates that pixels off the edge of the texture on the V-axis -// should be mirrored, not wraped. -// D3DX_NORMALMAP_MIRROR -// Same as specifying D3DX_NORMALMAP_MIRROR_U | D3DX_NORMALMAP_MIRROR_V -// D3DX_NORMALMAP_INVERTSIGN -// Inverts the direction of each normal -// D3DX_NORMALMAP_COMPUTE_OCCLUSION -// Compute the per pixel Occlusion term and encodes it into the alpha. -// An Alpha of 1 means that the pixel is not obscured in anyway, and -// an alpha of 0 would mean that the pixel is completly obscured. -// -//---------------------------------------------------------------------------- - -//---------------------------------------------------------------------------- - -#define D3DX_NORMALMAP_MIRROR_U (1 << 16) -#define D3DX_NORMALMAP_MIRROR_V (2 << 16) -#define D3DX_NORMALMAP_MIRROR (3 << 16) -#define D3DX_NORMALMAP_INVERTSIGN (8 << 16) -#define D3DX_NORMALMAP_COMPUTE_OCCLUSION (16 << 16) - - - - -//---------------------------------------------------------------------------- -// D3DX_CHANNEL flags: -// ------------------- -// These flags are used by functions which operate on or more channels -// in a texture. -// -// D3DX_CHANNEL_RED -// Indicates the red channel should be used -// D3DX_CHANNEL_BLUE -// Indicates the blue channel should be used -// D3DX_CHANNEL_GREEN -// Indicates the green channel should be used -// D3DX_CHANNEL_ALPHA -// Indicates the alpha channel should be used -// D3DX_CHANNEL_LUMINANCE -// Indicates the luminaces of the red green and blue channels should be -// used. -// -//---------------------------------------------------------------------------- - -#define D3DX_CHANNEL_RED (1 << 0) -#define D3DX_CHANNEL_BLUE (1 << 1) -#define D3DX_CHANNEL_GREEN (1 << 2) -#define D3DX_CHANNEL_ALPHA (1 << 3) -#define D3DX_CHANNEL_LUMINANCE (1 << 4) - - - - -//---------------------------------------------------------------------------- -// D3DXIMAGE_FILEFORMAT: -// --------------------- -// This enum is used to describe supported image file formats. -// -//---------------------------------------------------------------------------- - -typedef enum _D3DXIMAGE_FILEFORMAT -{ - D3DXIFF_BMP = 0, - D3DXIFF_JPG = 1, - D3DXIFF_TGA = 2, - D3DXIFF_PNG = 3, - D3DXIFF_DDS = 4, - D3DXIFF_PPM = 5, - D3DXIFF_DIB = 6, - D3DXIFF_FORCE_DWORD = 0x7fffffff - -} D3DXIMAGE_FILEFORMAT; - - -//---------------------------------------------------------------------------- -// LPD3DXFILL2D and LPD3DXFILL3D: -// ------------------------------ -// Function types used by the texture fill functions. -// -// Parameters: -// pOut -// Pointer to a vector which the function uses to return its result. -// X,Y,Z,W will be mapped to R,G,B,A respectivly. -// pTexCoord -// Pointer to a vector containing the coordinates of the texel currently -// being evaluated. Textures and VolumeTexture texcoord components -// range from 0 to 1. CubeTexture texcoord component range from -1 to 1. -// pTexelSize -// Pointer to a vector containing the dimensions of the current texel. -// pData -// Pointer to user data. -// -//---------------------------------------------------------------------------- - -typedef VOID (*LPD3DXFILL2D)(D3DXVECTOR4 *pOut, D3DXVECTOR2 *pTexCoord, D3DXVECTOR2 *pTexelSize, LPVOID pData); -typedef VOID (*LPD3DXFILL3D)(D3DXVECTOR4 *pOut, D3DXVECTOR3 *pTexCoord, D3DXVECTOR3 *pTexelSize, LPVOID pData); - - - -//---------------------------------------------------------------------------- -// D3DXIMAGE_INFO: -// --------------- -// This structure is used to return a rough description of what the -// the original contents of an image file looked like. -// -// Width -// Width of original image in pixels -// Height -// Height of original image in pixels -// Depth -// Depth of original image in pixels -// MipLevels -// Number of mip levels in original image -// Format -// D3D format which most closely describes the data in original image -// ResourceType -// D3DRESOURCETYPE representing the type of texture stored in the file. -// D3DRTYPE_TEXTURE, D3DRTYPE_VOLUMETEXTURE, or D3DRTYPE_CUBETEXTURE. -// ImageFileFormat -// D3DXIMAGE_FILEFORMAT representing the format of the image file. -// -//---------------------------------------------------------------------------- - -typedef struct _D3DXIMAGE_INFO -{ - UINT Width; - UINT Height; - UINT Depth; - UINT MipLevels; - D3DFORMAT Format; - D3DRESOURCETYPE ResourceType; - D3DXIMAGE_FILEFORMAT ImageFileFormat; - -} D3DXIMAGE_INFO; - - - - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - - - -////////////////////////////////////////////////////////////////////////////// -// Image File APIs /////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// -; -//---------------------------------------------------------------------------- -// GetImageInfoFromFile/Resource: -// ------------------------------ -// Fills in a D3DXIMAGE_INFO struct with information about an image file. -// -// Parameters: -// pSrcFile -// File name of the source image. -// pSrcModule -// Module where resource is located, or NULL for module associated -// with image the os used to create the current process. -// pSrcResource -// Resource name -// pSrcData -// Pointer to file in memory. -// SrcDataSize -// Size in bytes of file in memory. -// pSrcInfo -// Pointer to a D3DXIMAGE_INFO structure to be filled in with the -// description of the data in the source image file. -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXGetImageInfoFromFileA( - LPCSTR pSrcFile, - D3DXIMAGE_INFO* pSrcInfo); - -HRESULT WINAPI - D3DXGetImageInfoFromFileW( - LPCWSTR pSrcFile, - D3DXIMAGE_INFO* pSrcInfo); - -#ifdef UNICODE -#define D3DXGetImageInfoFromFile D3DXGetImageInfoFromFileW -#else -#define D3DXGetImageInfoFromFile D3DXGetImageInfoFromFileA -#endif - - -HRESULT WINAPI - D3DXGetImageInfoFromResourceA( - HMODULE hSrcModule, - LPCSTR pSrcResource, - D3DXIMAGE_INFO* pSrcInfo); - -HRESULT WINAPI - D3DXGetImageInfoFromResourceW( - HMODULE hSrcModule, - LPCWSTR pSrcResource, - D3DXIMAGE_INFO* pSrcInfo); - -#ifdef UNICODE -#define D3DXGetImageInfoFromResource D3DXGetImageInfoFromResourceW -#else -#define D3DXGetImageInfoFromResource D3DXGetImageInfoFromResourceA -#endif - - -HRESULT WINAPI - D3DXGetImageInfoFromFileInMemory( - LPCVOID pSrcData, - UINT SrcDataSize, - D3DXIMAGE_INFO* pSrcInfo); - - - - -////////////////////////////////////////////////////////////////////////////// -// Load/Save Surface APIs //////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -//---------------------------------------------------------------------------- -// D3DXLoadSurfaceFromFile/Resource: -// --------------------------------- -// Load surface from a file or resource -// -// Parameters: -// pDestSurface -// Destination surface, which will receive the image. -// pDestPalette -// Destination palette of 256 colors, or NULL -// pDestRect -// Destination rectangle, or NULL for entire surface -// pSrcFile -// File name of the source image. -// pSrcModule -// Module where resource is located, or NULL for module associated -// with image the os used to create the current process. -// pSrcResource -// Resource name -// pSrcData -// Pointer to file in memory. -// SrcDataSize -// Size in bytes of file in memory. -// pSrcRect -// Source rectangle, or NULL for entire image -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// pSrcInfo -// Pointer to a D3DXIMAGE_INFO structure to be filled in with the -// description of the data in the source image file, or NULL. -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXLoadSurfaceFromFileA( - LPDIRECT3DSURFACE8 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - LPCSTR pSrcFile, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -HRESULT WINAPI - D3DXLoadSurfaceFromFileW( - LPDIRECT3DSURFACE8 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - LPCWSTR pSrcFile, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -#ifdef UNICODE -#define D3DXLoadSurfaceFromFile D3DXLoadSurfaceFromFileW -#else -#define D3DXLoadSurfaceFromFile D3DXLoadSurfaceFromFileA -#endif - - - -HRESULT WINAPI - D3DXLoadSurfaceFromResourceA( - LPDIRECT3DSURFACE8 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - HMODULE hSrcModule, - LPCSTR pSrcResource, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -HRESULT WINAPI - D3DXLoadSurfaceFromResourceW( - LPDIRECT3DSURFACE8 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - - -#ifdef UNICODE -#define D3DXLoadSurfaceFromResource D3DXLoadSurfaceFromResourceW -#else -#define D3DXLoadSurfaceFromResource D3DXLoadSurfaceFromResourceA -#endif - - - -HRESULT WINAPI - D3DXLoadSurfaceFromFileInMemory( - LPDIRECT3DSURFACE8 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - LPCVOID pSrcData, - UINT SrcDataSize, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - - - -//---------------------------------------------------------------------------- -// D3DXLoadSurfaceFromSurface: -// --------------------------- -// Load surface from another surface (with color conversion) -// -// Parameters: -// pDestSurface -// Destination surface, which will receive the image. -// pDestPalette -// Destination palette of 256 colors, or NULL -// pDestRect -// Destination rectangle, or NULL for entire surface -// pSrcSurface -// Source surface -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcRect -// Source rectangle, or NULL for entire surface -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXLoadSurfaceFromSurface( - LPDIRECT3DSURFACE8 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - LPDIRECT3DSURFACE8 pSrcSurface, - CONST PALETTEENTRY* pSrcPalette, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey); - - -//---------------------------------------------------------------------------- -// D3DXLoadSurfaceFromMemory: -// -------------------------- -// Load surface from memory. -// -// Parameters: -// pDestSurface -// Destination surface, which will receive the image. -// pDestPalette -// Destination palette of 256 colors, or NULL -// pDestRect -// Destination rectangle, or NULL for entire surface -// pSrcMemory -// Pointer to the top-left corner of the source image in memory -// SrcFormat -// Pixel format of the source image. -// SrcPitch -// Pitch of source image, in bytes. For DXT formats, this number -// should represent the width of one row of cells, in bytes. -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcRect -// Source rectangle. -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXLoadSurfaceFromMemory( - LPDIRECT3DSURFACE8 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - LPCVOID pSrcMemory, - D3DFORMAT SrcFormat, - UINT SrcPitch, - CONST PALETTEENTRY* pSrcPalette, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey); - - -//---------------------------------------------------------------------------- -// D3DXSaveSurfaceToFile: -// ---------------------- -// Save a surface to a image file. -// -// Parameters: -// pDestFile -// File name of the destination file -// DestFormat -// D3DXIMAGE_FILEFORMAT specifying file format to use when saving. -// pSrcSurface -// Source surface, containing the image to be saved -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcRect -// Source rectangle, or NULL for the entire image -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXSaveSurfaceToFileA( - LPCSTR pDestFile, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DSURFACE8 pSrcSurface, - CONST PALETTEENTRY* pSrcPalette, - CONST RECT* pSrcRect); - -HRESULT WINAPI - D3DXSaveSurfaceToFileW( - LPCWSTR pDestFile, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DSURFACE8 pSrcSurface, - CONST PALETTEENTRY* pSrcPalette, - CONST RECT* pSrcRect); - -#ifdef UNICODE -#define D3DXSaveSurfaceToFile D3DXSaveSurfaceToFileW -#else -#define D3DXSaveSurfaceToFile D3DXSaveSurfaceToFileA -#endif - - - - -////////////////////////////////////////////////////////////////////////////// -// Load/Save Volume APIs ///////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -//---------------------------------------------------------------------------- -// D3DXLoadVolumeFromFile/Resource: -// -------------------------------- -// Load volume from a file or resource -// -// Parameters: -// pDestVolume -// Destination volume, which will receive the image. -// pDestPalette -// Destination palette of 256 colors, or NULL -// pDestBox -// Destination box, or NULL for entire volume -// pSrcFile -// File name of the source image. -// pSrcModule -// Module where resource is located, or NULL for module associated -// with image the os used to create the current process. -// pSrcResource -// Resource name -// pSrcData -// Pointer to file in memory. -// SrcDataSize -// Size in bytes of file in memory. -// pSrcBox -// Source box, or NULL for entire image -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// pSrcInfo -// Pointer to a D3DXIMAGE_INFO structure to be filled in with the -// description of the data in the source image file, or NULL. -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXLoadVolumeFromFileA( - LPDIRECT3DVOLUME8 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - LPCSTR pSrcFile, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -HRESULT WINAPI - D3DXLoadVolumeFromFileW( - LPDIRECT3DVOLUME8 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - LPCWSTR pSrcFile, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -#ifdef UNICODE -#define D3DXLoadVolumeFromFile D3DXLoadVolumeFromFileW -#else -#define D3DXLoadVolumeFromFile D3DXLoadVolumeFromFileA -#endif - - -HRESULT WINAPI - D3DXLoadVolumeFromResourceA( - LPDIRECT3DVOLUME8 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - HMODULE hSrcModule, - LPCSTR pSrcResource, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -HRESULT WINAPI - D3DXLoadVolumeFromResourceW( - LPDIRECT3DVOLUME8 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -#ifdef UNICODE -#define D3DXLoadVolumeFromResource D3DXLoadVolumeFromResourceW -#else -#define D3DXLoadVolumeFromResource D3DXLoadVolumeFromResourceA -#endif - - - -HRESULT WINAPI - D3DXLoadVolumeFromFileInMemory( - LPDIRECT3DVOLUME8 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - LPCVOID pSrcData, - UINT SrcDataSize, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - - - -//---------------------------------------------------------------------------- -// D3DXLoadVolumeFromVolume: -// ------------------------- -// Load volume from another volume (with color conversion) -// -// Parameters: -// pDestVolume -// Destination volume, which will receive the image. -// pDestPalette -// Destination palette of 256 colors, or NULL -// pDestBox -// Destination box, or NULL for entire volume -// pSrcVolume -// Source volume -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcBox -// Source box, or NULL for entire volume -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXLoadVolumeFromVolume( - LPDIRECT3DVOLUME8 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - LPDIRECT3DVOLUME8 pSrcVolume, - CONST PALETTEENTRY* pSrcPalette, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey); - - - -//---------------------------------------------------------------------------- -// D3DXLoadVolumeFromMemory: -// ------------------------- -// Load volume from memory. -// -// Parameters: -// pDestVolume -// Destination volume, which will receive the image. -// pDestPalette -// Destination palette of 256 colors, or NULL -// pDestBox -// Destination box, or NULL for entire volume -// pSrcMemory -// Pointer to the top-left corner of the source volume in memory -// SrcFormat -// Pixel format of the source volume. -// SrcRowPitch -// Pitch of source image, in bytes. For DXT formats, this number -// should represent the size of one row of cells, in bytes. -// SrcSlicePitch -// Pitch of source image, in bytes. For DXT formats, this number -// should represent the size of one slice of cells, in bytes. -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcBox -// Source box. -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXLoadVolumeFromMemory( - LPDIRECT3DVOLUME8 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - LPCVOID pSrcMemory, - D3DFORMAT SrcFormat, - UINT SrcRowPitch, - UINT SrcSlicePitch, - CONST PALETTEENTRY* pSrcPalette, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey); - - - -//---------------------------------------------------------------------------- -// D3DXSaveVolumeToFile: -// --------------------- -// Save a volume to a image file. -// -// Parameters: -// pDestFile -// File name of the destination file -// DestFormat -// D3DXIMAGE_FILEFORMAT specifying file format to use when saving. -// pSrcVolume -// Source volume, containing the image to be saved -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcBox -// Source box, or NULL for the entire volume -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXSaveVolumeToFileA( - LPCSTR pDestFile, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DVOLUME8 pSrcVolume, - CONST PALETTEENTRY* pSrcPalette, - CONST D3DBOX* pSrcBox); - -HRESULT WINAPI - D3DXSaveVolumeToFileW( - LPCWSTR pDestFile, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DVOLUME8 pSrcVolume, - CONST PALETTEENTRY* pSrcPalette, - CONST D3DBOX* pSrcBox); - -#ifdef UNICODE -#define D3DXSaveVolumeToFile D3DXSaveVolumeToFileW -#else -#define D3DXSaveVolumeToFile D3DXSaveVolumeToFileA -#endif - - - - -////////////////////////////////////////////////////////////////////////////// -// Create/Save Texture APIs ////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -//---------------------------------------------------------------------------- -// D3DXCheckTextureRequirements: -// ----------------------------- -// Checks texture creation parameters. If parameters are invalid, this -// function returns corrected parameters. -// -// Parameters: -// -// pDevice -// The D3D device to be used -// pWidth, pHeight, pDepth, pSize -// Desired size in pixels, or NULL. Returns corrected size. -// pNumMipLevels -// Number of desired mipmap levels, or NULL. Returns corrected number. -// Usage -// Texture usage flags -// pFormat -// Desired pixel format, or NULL. Returns corrected format. -// Pool -// Memory pool to be used to create texture -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXCheckTextureRequirements( - LPDIRECT3DDEVICE8 pDevice, - UINT* pWidth, - UINT* pHeight, - UINT* pNumMipLevels, - DWORD Usage, - D3DFORMAT* pFormat, - D3DPOOL Pool); - -HRESULT WINAPI - D3DXCheckCubeTextureRequirements( - LPDIRECT3DDEVICE8 pDevice, - UINT* pSize, - UINT* pNumMipLevels, - DWORD Usage, - D3DFORMAT* pFormat, - D3DPOOL Pool); - -HRESULT WINAPI - D3DXCheckVolumeTextureRequirements( - LPDIRECT3DDEVICE8 pDevice, - UINT* pWidth, - UINT* pHeight, - UINT* pDepth, - UINT* pNumMipLevels, - DWORD Usage, - D3DFORMAT* pFormat, - D3DPOOL Pool); - - -//---------------------------------------------------------------------------- -// D3DXCreateTexture: -// ------------------ -// Create an empty texture -// -// Parameters: -// -// pDevice -// The D3D device with which the texture is going to be used. -// Width, Height, Depth, Size -// size in pixels; these must be non-zero -// MipLevels -// number of mip levels desired; if zero or D3DX_DEFAULT, a complete -// mipmap chain will be created. -// Usage -// Texture usage flags -// Format -// Pixel format. -// Pool -// Memory pool to be used to create texture -// ppTexture, ppCubeTexture, ppVolumeTexture -// The texture object that will be created -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXCreateTexture( - LPDIRECT3DDEVICE8 pDevice, - UINT Width, - UINT Height, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - LPDIRECT3DTEXTURE8* ppTexture); - -HRESULT WINAPI - D3DXCreateCubeTexture( - LPDIRECT3DDEVICE8 pDevice, - UINT Size, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - LPDIRECT3DCUBETEXTURE8* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTexture( - LPDIRECT3DDEVICE8 pDevice, - UINT Width, - UINT Height, - UINT Depth, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture); - - - -//---------------------------------------------------------------------------- -// D3DXCreateTextureFromFile/Resource: -// ----------------------------------- -// Create a texture object from a file or resource. -// -// Parameters: -// -// pDevice -// The D3D device with which the texture is going to be used. -// pSrcFile -// File name. -// hSrcModule -// Module handle. if NULL, current module will be used. -// pSrcResource -// Resource name in module -// pvSrcData -// Pointer to file in memory. -// SrcDataSize -// Size in bytes of file in memory. -// Width, Height, Depth, Size -// Size in pixels; if zero or D3DX_DEFAULT, the size will be taken -// from the file. -// MipLevels -// Number of mip levels; if zero or D3DX_DEFAULT, a complete mipmap -// chain will be created. -// Usage -// Texture usage flags -// Format -// Desired pixel format. If D3DFMT_UNKNOWN, the format will be -// taken from the file. -// Pool -// Memory pool to be used to create texture -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// MipFilter -// D3DX_FILTER flags controlling how each miplevel is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_BOX, -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// pSrcInfo -// Pointer to a D3DXIMAGE_INFO structure to be filled in with the -// description of the data in the source image file, or NULL. -// pPalette -// 256 color palette to be filled in, or NULL -// ppTexture, ppCubeTexture, ppVolumeTexture -// The texture object that will be created -// -//---------------------------------------------------------------------------- - - -// FromFile - -HRESULT WINAPI - D3DXCreateTextureFromFileA( - LPDIRECT3DDEVICE8 pDevice, - LPCSTR pSrcFile, - LPDIRECT3DTEXTURE8* ppTexture); - -HRESULT WINAPI - D3DXCreateTextureFromFileW( - LPDIRECT3DDEVICE8 pDevice, - LPCWSTR pSrcFile, - LPDIRECT3DTEXTURE8* ppTexture); - -#ifdef UNICODE -#define D3DXCreateTextureFromFile D3DXCreateTextureFromFileW -#else -#define D3DXCreateTextureFromFile D3DXCreateTextureFromFileA -#endif - - -HRESULT WINAPI - D3DXCreateCubeTextureFromFileA( - LPDIRECT3DDEVICE8 pDevice, - LPCSTR pSrcFile, - LPDIRECT3DCUBETEXTURE8* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateCubeTextureFromFileW( - LPDIRECT3DDEVICE8 pDevice, - LPCWSTR pSrcFile, - LPDIRECT3DCUBETEXTURE8* ppCubeTexture); - -#ifdef UNICODE -#define D3DXCreateCubeTextureFromFile D3DXCreateCubeTextureFromFileW -#else -#define D3DXCreateCubeTextureFromFile D3DXCreateCubeTextureFromFileA -#endif - - -HRESULT WINAPI - D3DXCreateVolumeTextureFromFileA( - LPDIRECT3DDEVICE8 pDevice, - LPCSTR pSrcFile, - LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTextureFromFileW( - LPDIRECT3DDEVICE8 pDevice, - LPCWSTR pSrcFile, - LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture); - -#ifdef UNICODE -#define D3DXCreateVolumeTextureFromFile D3DXCreateVolumeTextureFromFileW -#else -#define D3DXCreateVolumeTextureFromFile D3DXCreateVolumeTextureFromFileA -#endif - - -// FromResource - -HRESULT WINAPI - D3DXCreateTextureFromResourceA( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - LPDIRECT3DTEXTURE8* ppTexture); - -HRESULT WINAPI - D3DXCreateTextureFromResourceW( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - LPDIRECT3DTEXTURE8* ppTexture); - -#ifdef UNICODE -#define D3DXCreateTextureFromResource D3DXCreateTextureFromResourceW -#else -#define D3DXCreateTextureFromResource D3DXCreateTextureFromResourceA -#endif - - -HRESULT WINAPI - D3DXCreateCubeTextureFromResourceA( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - LPDIRECT3DCUBETEXTURE8* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateCubeTextureFromResourceW( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - LPDIRECT3DCUBETEXTURE8* ppCubeTexture); - -#ifdef UNICODE -#define D3DXCreateCubeTextureFromResource D3DXCreateCubeTextureFromResourceW -#else -#define D3DXCreateCubeTextureFromResource D3DXCreateCubeTextureFromResourceA -#endif - - -HRESULT WINAPI - D3DXCreateVolumeTextureFromResourceA( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTextureFromResourceW( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture); - -#ifdef UNICODE -#define D3DXCreateVolumeTextureFromResource D3DXCreateVolumeTextureFromResourceW -#else -#define D3DXCreateVolumeTextureFromResource D3DXCreateVolumeTextureFromResourceA -#endif - - -// FromFileEx - -HRESULT WINAPI - D3DXCreateTextureFromFileExA( - LPDIRECT3DDEVICE8 pDevice, - LPCSTR pSrcFile, - UINT Width, - UINT Height, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DTEXTURE8* ppTexture); - -HRESULT WINAPI - D3DXCreateTextureFromFileExW( - LPDIRECT3DDEVICE8 pDevice, - LPCWSTR pSrcFile, - UINT Width, - UINT Height, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DTEXTURE8* ppTexture); - -#ifdef UNICODE -#define D3DXCreateTextureFromFileEx D3DXCreateTextureFromFileExW -#else -#define D3DXCreateTextureFromFileEx D3DXCreateTextureFromFileExA -#endif - - -HRESULT WINAPI - D3DXCreateCubeTextureFromFileExA( - LPDIRECT3DDEVICE8 pDevice, - LPCSTR pSrcFile, - UINT Size, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DCUBETEXTURE8* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateCubeTextureFromFileExW( - LPDIRECT3DDEVICE8 pDevice, - LPCWSTR pSrcFile, - UINT Size, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DCUBETEXTURE8* ppCubeTexture); - -#ifdef UNICODE -#define D3DXCreateCubeTextureFromFileEx D3DXCreateCubeTextureFromFileExW -#else -#define D3DXCreateCubeTextureFromFileEx D3DXCreateCubeTextureFromFileExA -#endif - - -HRESULT WINAPI - D3DXCreateVolumeTextureFromFileExA( - LPDIRECT3DDEVICE8 pDevice, - LPCSTR pSrcFile, - UINT Width, - UINT Height, - UINT Depth, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTextureFromFileExW( - LPDIRECT3DDEVICE8 pDevice, - LPCWSTR pSrcFile, - UINT Width, - UINT Height, - UINT Depth, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture); - -#ifdef UNICODE -#define D3DXCreateVolumeTextureFromFileEx D3DXCreateVolumeTextureFromFileExW -#else -#define D3DXCreateVolumeTextureFromFileEx D3DXCreateVolumeTextureFromFileExA -#endif - - -// FromResourceEx - -HRESULT WINAPI - D3DXCreateTextureFromResourceExA( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - UINT Width, - UINT Height, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DTEXTURE8* ppTexture); - -HRESULT WINAPI - D3DXCreateTextureFromResourceExW( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - UINT Width, - UINT Height, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DTEXTURE8* ppTexture); - -#ifdef UNICODE -#define D3DXCreateTextureFromResourceEx D3DXCreateTextureFromResourceExW -#else -#define D3DXCreateTextureFromResourceEx D3DXCreateTextureFromResourceExA -#endif - - -HRESULT WINAPI - D3DXCreateCubeTextureFromResourceExA( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - UINT Size, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DCUBETEXTURE8* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateCubeTextureFromResourceExW( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - UINT Size, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DCUBETEXTURE8* ppCubeTexture); - -#ifdef UNICODE -#define D3DXCreateCubeTextureFromResourceEx D3DXCreateCubeTextureFromResourceExW -#else -#define D3DXCreateCubeTextureFromResourceEx D3DXCreateCubeTextureFromResourceExA -#endif - - -HRESULT WINAPI - D3DXCreateVolumeTextureFromResourceExA( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - UINT Width, - UINT Height, - UINT Depth, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTextureFromResourceExW( - LPDIRECT3DDEVICE8 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - UINT Width, - UINT Height, - UINT Depth, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture); - -#ifdef UNICODE -#define D3DXCreateVolumeTextureFromResourceEx D3DXCreateVolumeTextureFromResourceExW -#else -#define D3DXCreateVolumeTextureFromResourceEx D3DXCreateVolumeTextureFromResourceExA -#endif - - -// FromFileInMemory - -HRESULT WINAPI - D3DXCreateTextureFromFileInMemory( - LPDIRECT3DDEVICE8 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - LPDIRECT3DTEXTURE8* ppTexture); - -HRESULT WINAPI - D3DXCreateCubeTextureFromFileInMemory( - LPDIRECT3DDEVICE8 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - LPDIRECT3DCUBETEXTURE8* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTextureFromFileInMemory( - LPDIRECT3DDEVICE8 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture); - - -// FromFileInMemoryEx - -HRESULT WINAPI - D3DXCreateTextureFromFileInMemoryEx( - LPDIRECT3DDEVICE8 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - UINT Width, - UINT Height, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DTEXTURE8* ppTexture); - -HRESULT WINAPI - D3DXCreateCubeTextureFromFileInMemoryEx( - LPDIRECT3DDEVICE8 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - UINT Size, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DCUBETEXTURE8* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTextureFromFileInMemoryEx( - LPDIRECT3DDEVICE8 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - UINT Width, - UINT Height, - UINT Depth, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DVOLUMETEXTURE8* ppVolumeTexture); - - - -//---------------------------------------------------------------------------- -// D3DXSaveTextureToFile: -// ---------------------- -// Save a texture to a file. -// -// Parameters: -// pDestFile -// File name of the destination file -// DestFormat -// D3DXIMAGE_FILEFORMAT specifying file format to use when saving. -// pSrcTexture -// Source texture, containing the image to be saved -// pSrcPalette -// Source palette of 256 colors, or NULL -// -//---------------------------------------------------------------------------- - - -HRESULT WINAPI - D3DXSaveTextureToFileA( - LPCSTR pDestFile, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DBASETEXTURE8 pSrcTexture, - CONST PALETTEENTRY* pSrcPalette); - -HRESULT WINAPI - D3DXSaveTextureToFileW( - LPCWSTR pDestFile, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DBASETEXTURE8 pSrcTexture, - CONST PALETTEENTRY* pSrcPalette); - -#ifdef UNICODE -#define D3DXSaveTextureToFile D3DXSaveTextureToFileW -#else -#define D3DXSaveTextureToFile D3DXSaveTextureToFileA -#endif - - - - -////////////////////////////////////////////////////////////////////////////// -// Misc Texture APIs ///////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -//---------------------------------------------------------------------------- -// D3DXFilterTexture: -// ------------------ -// Filters mipmaps levels of a texture. -// -// Parameters: -// pBaseTexture -// The texture object to be filtered -// pPalette -// 256 color palette to be used, or NULL for non-palettized formats -// SrcLevel -// The level whose image is used to generate the subsequent levels. -// Filter -// D3DX_FILTER flags controlling how each miplevel is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_BOX, -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXFilterTexture( - LPDIRECT3DBASETEXTURE8 pBaseTexture, - CONST PALETTEENTRY* pPalette, - UINT SrcLevel, - DWORD Filter); - -#define D3DXFilterCubeTexture D3DXFilterTexture -#define D3DXFilterVolumeTexture D3DXFilterTexture - - - -//---------------------------------------------------------------------------- -// D3DXFillTexture: -// ---------------- -// Uses a user provided function to fill each texel of each mip level of a -// given texture. -// -// Paramters: -// pTexture, pCubeTexture, pVolumeTexture -// Pointer to the texture to be filled. -// pFunction -// Pointer to user provided evalutor function which will be used to -// compute the value of each texel. -// pData -// Pointer to an arbitrary block of user defined data. This pointer -// will be passed to the function provided in pFunction -//----------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXFillTexture( - LPDIRECT3DTEXTURE8 pTexture, - LPD3DXFILL2D pFunction, - LPVOID pData); - -HRESULT WINAPI - D3DXFillCubeTexture( - LPDIRECT3DCUBETEXTURE8 pCubeTexture, - LPD3DXFILL3D pFunction, - LPVOID pData); - -HRESULT WINAPI - D3DXFillVolumeTexture( - LPDIRECT3DVOLUMETEXTURE8 pVolumeTexture, - LPD3DXFILL3D pFunction, - LPVOID pData); - - - -//---------------------------------------------------------------------------- -// D3DXComputeNormalMap: -// --------------------- -// Converts a height map into a normal map. The (x,y,z) components of each -// normal are mapped to the (r,g,b) channels of the output texture. -// -// Parameters -// pTexture -// Pointer to the destination texture -// pSrcTexture -// Pointer to the source heightmap texture -// pSrcPalette -// Source palette of 256 colors, or NULL -// Flags -// D3DX_NORMALMAP flags -// Channel -// D3DX_CHANNEL specifying source of height information -// Amplitude -// The constant value which the height information is multiplied by. -//--------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXComputeNormalMap( - LPDIRECT3DTEXTURE8 pTexture, - LPDIRECT3DTEXTURE8 pSrcTexture, - CONST PALETTEENTRY* pSrcPalette, - DWORD Flags, - DWORD Channel, - FLOAT Amplitude); - - - - -#ifdef __cplusplus -} -#endif //__cplusplus - -#endif //__D3DX8TEX_H__ diff --git a/sdk/dx8sdk/Include/d3dx9.h b/sdk/dx8sdk/Include/d3dx9.h deleted file mode 100644 index 822f0a81..00000000 --- a/sdk/dx8sdk/Include/d3dx9.h +++ /dev/null @@ -1,76 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx9.h -// Content: D3DX utility library -// -////////////////////////////////////////////////////////////////////////////// - -#ifdef __D3DX_INTERNAL__ -#error Incorrect D3DX header used -#endif - -#ifndef __D3DX9_H__ -#define __D3DX9_H__ - - -// Defines -#include - -#define D3DX_DEFAULT ((UINT) -1) -#define D3DX_DEFAULT_NONPOW2 ((UINT) -2) -#define D3DX_DEFAULT_FLOAT FLT_MAX -#define D3DX_FROM_FILE ((UINT) -3) -#define D3DFMT_FROM_FILE ((D3DFORMAT) -3) - -#ifndef D3DXINLINE -#ifdef _MSC_VER - #if (_MSC_VER >= 1200) - #define D3DXINLINE __forceinline - #else - #define D3DXINLINE __inline - #endif -#else - #ifdef __cplusplus - #define D3DXINLINE inline - #else - #define D3DXINLINE - #endif -#endif -#endif - - - -// Includes -#include "d3d9.h" -#include "d3dx9math.h" -#include "d3dx9core.h" -#include "d3dx9xof.h" -#include "d3dx9mesh.h" -#include "d3dx9shader.h" -#include "d3dx9effect.h" -#include "d3dx9tex.h" -#include "d3dx9shape.h" -#include "d3dx9anim.h" - - -// Errors -#define _FACDD 0x876 -#define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code ) - -enum _D3DXERR { - D3DXERR_CANNOTMODIFYINDEXBUFFER = MAKE_DDHRESULT(2900), - D3DXERR_INVALIDMESH = MAKE_DDHRESULT(2901), - D3DXERR_CANNOTATTRSORT = MAKE_DDHRESULT(2902), - D3DXERR_SKINNINGNOTSUPPORTED = MAKE_DDHRESULT(2903), - D3DXERR_TOOMANYINFLUENCES = MAKE_DDHRESULT(2904), - D3DXERR_INVALIDDATA = MAKE_DDHRESULT(2905), - D3DXERR_LOADEDMESHASNODATA = MAKE_DDHRESULT(2906), - D3DXERR_DUPLICATENAMEDFRAGMENT = MAKE_DDHRESULT(2907), - D3DXERR_CANNOTREMOVELASTITEM = MAKE_DDHRESULT(2908), -}; - - -#endif //__D3DX9_H__ - diff --git a/sdk/dx8sdk/Include/d3dx9anim.h b/sdk/dx8sdk/Include/d3dx9anim.h deleted file mode 100644 index fedb1dbe..00000000 --- a/sdk/dx8sdk/Include/d3dx9anim.h +++ /dev/null @@ -1,1114 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx9anim.h -// Content: D3DX mesh types and functions -// -////////////////////////////////////////////////////////////////////////////// - -#ifndef __D3DX9ANIM_H__ -#define __D3DX9ANIM_H__ - -// {698CFB3F-9289-4d95-9A57-33A94B5A65F9} -DEFINE_GUID(IID_ID3DXAnimationSet, -0x698cfb3f, 0x9289, 0x4d95, 0x9a, 0x57, 0x33, 0xa9, 0x4b, 0x5a, 0x65, 0xf9); - -// {FA4E8E3A-9786-407d-8B4C-5995893764AF} -DEFINE_GUID(IID_ID3DXKeyframedAnimationSet, -0xfa4e8e3a, 0x9786, 0x407d, 0x8b, 0x4c, 0x59, 0x95, 0x89, 0x37, 0x64, 0xaf); - -// {6CC2480D-3808-4739-9F88-DE49FACD8D4C} -DEFINE_GUID(IID_ID3DXCompressedAnimationSet, -0x6cc2480d, 0x3808, 0x4739, 0x9f, 0x88, 0xde, 0x49, 0xfa, 0xcd, 0x8d, 0x4c); - -// {AC8948EC-F86D-43e2-96DE-31FC35F96D9E} -DEFINE_GUID(IID_ID3DXAnimationController, -0xac8948ec, 0xf86d, 0x43e2, 0x96, 0xde, 0x31, 0xfc, 0x35, 0xf9, 0x6d, 0x9e); - - -//---------------------------------------------------------------------------- -// D3DXMESHDATATYPE: -// ----------------- -// This enum defines the type of mesh data present in a MeshData structure. -//---------------------------------------------------------------------------- -typedef enum _D3DXMESHDATATYPE { - D3DXMESHTYPE_MESH = 0x001, // Normal ID3DXMesh data - D3DXMESHTYPE_PMESH = 0x002, // Progressive Mesh - ID3DXPMesh - D3DXMESHTYPE_PATCHMESH = 0x003, // Patch Mesh - ID3DXPatchMesh - - D3DXMESHTYPE_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DXMESHDATATYPE; - -//---------------------------------------------------------------------------- -// D3DXMESHDATA: -// ------------- -// This struct encapsulates a the mesh data that can be present in a mesh -// container. The supported mesh types are pMesh, pPMesh, pPatchMesh. -// The valid way to access this is determined by the Type enum. -//---------------------------------------------------------------------------- -typedef struct _D3DXMESHDATA -{ - D3DXMESHDATATYPE Type; - - // current mesh data interface - union - { - LPD3DXMESH pMesh; - LPD3DXPMESH pPMesh; - LPD3DXPATCHMESH pPatchMesh; - }; -} D3DXMESHDATA, *LPD3DXMESHDATA; - -//---------------------------------------------------------------------------- -// D3DXMESHCONTAINER: -// ------------------ -// This struct encapsulates a mesh object in a transformation frame -// hierarchy. The app can derive from this structure to add other app specific -// data to this. -//---------------------------------------------------------------------------- -typedef struct _D3DXMESHCONTAINER -{ - LPSTR Name; - - D3DXMESHDATA MeshData; - - LPD3DXMATERIAL pMaterials; - LPD3DXEFFECTINSTANCE pEffects; - DWORD NumMaterials; - DWORD *pAdjacency; - - LPD3DXSKININFO pSkinInfo; - - struct _D3DXMESHCONTAINER *pNextMeshContainer; -} D3DXMESHCONTAINER, *LPD3DXMESHCONTAINER; - -//---------------------------------------------------------------------------- -// D3DXFRAME: -// ---------- -// This struct is the encapsulates a transform frame in a transformation frame -// hierarchy. The app can derive from this structure to add other app specific -// data to this -//---------------------------------------------------------------------------- -typedef struct _D3DXFRAME -{ - LPSTR Name; - D3DXMATRIX TransformationMatrix; - - LPD3DXMESHCONTAINER pMeshContainer; - - struct _D3DXFRAME *pFrameSibling; - struct _D3DXFRAME *pFrameFirstChild; -} D3DXFRAME, *LPD3DXFRAME; - - -//---------------------------------------------------------------------------- -// ID3DXAllocateHierarchy: -// ----------------------- -// This interface is implemented by the application to allocate/free frame and -// mesh container objects. Methods on this are called during loading and -// destroying frame hierarchies -//---------------------------------------------------------------------------- -typedef interface ID3DXAllocateHierarchy ID3DXAllocateHierarchy; -typedef interface ID3DXAllocateHierarchy *LPD3DXALLOCATEHIERARCHY; - -#undef INTERFACE -#define INTERFACE ID3DXAllocateHierarchy - -DECLARE_INTERFACE(ID3DXAllocateHierarchy) -{ - // ID3DXAllocateHierarchy - - //------------------------------------------------------------------------ - // CreateFrame: - // ------------ - // Requests allocation of a frame object. - // - // Parameters: - // Name - // Name of the frame to be created - // ppNewFrame - // Returns the created frame object - // - //------------------------------------------------------------------------ - STDMETHOD(CreateFrame)(THIS_ LPCSTR Name, - LPD3DXFRAME *ppNewFrame) PURE; - - //------------------------------------------------------------------------ - // CreateMeshContainer: - // -------------------- - // Requests allocation of a mesh container object. - // - // Parameters: - // Name - // Name of the mesh - // pMesh - // Pointer to the mesh object if basic polygon data found - // pPMesh - // Pointer to the progressive mesh object if progressive mesh data found - // pPatchMesh - // Pointer to the patch mesh object if patch data found - // pMaterials - // Array of materials used in the mesh - // pEffectInstances - // Array of effect instances used in the mesh - // NumMaterials - // Num elements in the pMaterials array - // pAdjacency - // Adjacency array for the mesh - // pSkinInfo - // Pointer to the skininfo object if the mesh is skinned - // pBoneNames - // Array of names, one for each bone in the skinned mesh. - // The numberof bones can be found from the pSkinMesh object - // pBoneOffsetMatrices - // Array of matrices, one for each bone in the skinned mesh. - // - //------------------------------------------------------------------------ - STDMETHOD(CreateMeshContainer)(THIS_ - LPCSTR Name, - CONST D3DXMESHDATA *pMeshData, - CONST D3DXMATERIAL *pMaterials, - CONST D3DXEFFECTINSTANCE *pEffectInstances, - DWORD NumMaterials, - CONST DWORD *pAdjacency, - LPD3DXSKININFO pSkinInfo, - LPD3DXMESHCONTAINER *ppNewMeshContainer) PURE; - - //------------------------------------------------------------------------ - // DestroyFrame: - // ------------- - // Requests de-allocation of a frame object. - // - // Parameters: - // pFrameToFree - // Pointer to the frame to be de-allocated - // - //------------------------------------------------------------------------ - STDMETHOD(DestroyFrame)(THIS_ LPD3DXFRAME pFrameToFree) PURE; - - //------------------------------------------------------------------------ - // DestroyMeshContainer: - // --------------------- - // Requests de-allocation of a mesh container object. - // - // Parameters: - // pMeshContainerToFree - // Pointer to the mesh container object to be de-allocated - // - //------------------------------------------------------------------------ - STDMETHOD(DestroyMeshContainer)(THIS_ LPD3DXMESHCONTAINER pMeshContainerToFree) PURE; -}; - -//---------------------------------------------------------------------------- -// ID3DXLoadUserData: -// ------------------ -// This interface is implemented by the application to load user data in a .X file -// When user data is found, these callbacks will be used to allow the application -// to load the data. -//---------------------------------------------------------------------------- -typedef interface ID3DXLoadUserData ID3DXLoadUserData; -typedef interface ID3DXLoadUserData *LPD3DXLOADUSERDATA; - -#undef INTERFACE -#define INTERFACE ID3DXLoadUserData - -DECLARE_INTERFACE(ID3DXLoadUserData) -{ - STDMETHOD(LoadTopLevelData)(LPD3DXFILEDATA pXofChildData) PURE; - - STDMETHOD(LoadFrameChildData)(LPD3DXFRAME pFrame, - LPD3DXFILEDATA pXofChildData) PURE; - - STDMETHOD(LoadMeshChildData)(LPD3DXMESHCONTAINER pMeshContainer, - LPD3DXFILEDATA pXofChildData) PURE; -}; - -//---------------------------------------------------------------------------- -// ID3DXSaveUserData: -// ------------------ -// This interface is implemented by the application to save user data in a .X file -// The callbacks are called for all data saved. The user can then add any -// child data objects to the object provided to the callback. -//---------------------------------------------------------------------------- -typedef interface ID3DXSaveUserData ID3DXSaveUserData; -typedef interface ID3DXSaveUserData *LPD3DXSAVEUSERDATA; - -#undef INTERFACE -#define INTERFACE ID3DXSaveUserData - -DECLARE_INTERFACE(ID3DXSaveUserData) -{ - STDMETHOD(AddFrameChildData)(CONST D3DXFRAME *pFrame, - LPD3DXFILESAVEOBJECT pXofSave, - LPD3DXFILESAVEDATA pXofFrameData) PURE; - - STDMETHOD(AddMeshChildData)(CONST D3DXMESHCONTAINER *pMeshContainer, - LPD3DXFILESAVEOBJECT pXofSave, - LPD3DXFILESAVEDATA pXofMeshData) PURE; - - // NOTE: this is called once per Save. All top level objects should be added using the - // provided interface. One call adds objects before the frame hierarchy, the other after - STDMETHOD(AddTopLevelDataObjectsPre)(LPD3DXFILESAVEOBJECT pXofSave) PURE; - STDMETHOD(AddTopLevelDataObjectsPost)(LPD3DXFILESAVEOBJECT pXofSave) PURE; - - // callbacks for the user to register and then save templates to the XFile - STDMETHOD(RegisterTemplates)(LPD3DXFILE pXFileApi) PURE; - STDMETHOD(SaveTemplates)(LPD3DXFILESAVEOBJECT pXofSave) PURE; -}; - - -//---------------------------------------------------------------------------- -// D3DXCALLBACK_SEARCH_FLAGS: -// -------------------------- -// Flags that can be passed into ID3DXAnimationSet::GetCallback. -//---------------------------------------------------------------------------- -typedef enum _D3DXCALLBACK_SEARCH_FLAGS -{ - D3DXCALLBACK_SEARCH_EXCLUDING_INITIAL_POSITION = 0x01, // exclude callbacks at the initial position from the search - D3DXCALLBACK_SEARCH_BEHIND_INITIAL_POSITION = 0x02, // reverse the callback search direction - - D3DXCALLBACK_SEARCH_FORCE_DWORD = 0x7fffffff, -} D3DXCALLBACK_SEARCH_FLAGS; - -//---------------------------------------------------------------------------- -// ID3DXAnimationSet: -// ------------------ -// This interface implements an animation set. -//---------------------------------------------------------------------------- -typedef interface ID3DXAnimationSet ID3DXAnimationSet; -typedef interface ID3DXAnimationSet *LPD3DXANIMATIONSET; - -#undef INTERFACE -#define INTERFACE ID3DXAnimationSet - -DECLARE_INTERFACE_(ID3DXAnimationSet, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // Name - STDMETHOD_(LPCSTR, GetName)(THIS) PURE; - - // Period - STDMETHOD_(DOUBLE, GetPeriod)(THIS) PURE; - STDMETHOD_(DOUBLE, GetPeriodicPosition)(THIS_ DOUBLE Position) PURE; // Maps position into animation period - - // Animation names - STDMETHOD_(UINT, GetNumAnimations)(THIS) PURE; - STDMETHOD(GetAnimationNameByIndex)(THIS_ UINT Index, LPCSTR *ppName) PURE; - STDMETHOD(GetAnimationIndexByName)(THIS_ LPCSTR pName, UINT *pIndex) PURE; - - // SRT - STDMETHOD(GetSRT)(THIS_ - DOUBLE PeriodicPosition, // Position mapped to period (use GetPeriodicPosition) - UINT Animation, // Animation index - D3DXVECTOR3 *pScale, // Returns the scale - D3DXQUATERNION *pRotation, // Returns the rotation as a quaternion - D3DXVECTOR3 *pTranslation) PURE; // Returns the translation - - // Callbacks - STDMETHOD(GetCallback)(THIS_ - DOUBLE Position, // Position from which to find callbacks - DWORD Flags, // Callback search flags - DOUBLE *pCallbackPosition, // Returns the position of the callback - LPVOID *ppCallbackData) PURE; // Returns the callback data pointer -}; - - -//---------------------------------------------------------------------------- -// D3DXPLAYBACK_TYPE: -// ------------------ -// This enum defines the type of animation set loop modes. -//---------------------------------------------------------------------------- -typedef enum _D3DXPLAYBACK_TYPE -{ - D3DXPLAY_LOOP = 0, - D3DXPLAY_ONCE = 1, - D3DXPLAY_PINGPONG = 2, - - D3DXPLAY_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DXPLAYBACK_TYPE; - - -//---------------------------------------------------------------------------- -// D3DXKEY_VECTOR3: -// ---------------- -// This structure describes a vector key for use in keyframe animation. -// It specifies a vector Value at a given Time. This is used for scale and -// translation keys. -//---------------------------------------------------------------------------- -typedef struct _D3DXKEY_VECTOR3 -{ - FLOAT Time; - D3DXVECTOR3 Value; -} D3DXKEY_VECTOR3, *LPD3DXKEY_VECTOR3; - - -//---------------------------------------------------------------------------- -// D3DXKEY_QUATERNION: -// ------------------- -// This structure describes a quaternion key for use in keyframe animation. -// It specifies a quaternion Value at a given Time. This is used for rotation -// keys. -//---------------------------------------------------------------------------- -typedef struct _D3DXKEY_QUATERNION -{ - FLOAT Time; - D3DXQUATERNION Value; -} D3DXKEY_QUATERNION, *LPD3DXKEY_QUATERNION; - - -//---------------------------------------------------------------------------- -// D3DXKEY_CALLBACK: -// ----------------- -// This structure describes an callback key for use in keyframe animation. -// It specifies a pointer to user data at a given Time. -//---------------------------------------------------------------------------- -typedef struct _D3DXKEY_CALLBACK -{ - FLOAT Time; - LPVOID pCallbackData; -} D3DXKEY_CALLBACK, *LPD3DXKEY_CALLBACK; - - -//---------------------------------------------------------------------------- -// D3DXCOMPRESSION_FLAGS: -// ---------------------- -// Flags that can be passed into ID3DXKeyframedAnimationSet::Compress. -//---------------------------------------------------------------------------- -typedef enum _D3DXCOMPRESSION_FLAGS -{ - D3DXCOMPRESS_DEFAULT = 0x00, - - D3DXCOMPRESS_FORCE_DWORD = 0x7fffffff, -} D3DXCOMPRESSION_FLAGS; - - -//---------------------------------------------------------------------------- -// ID3DXKeyframedAnimationSet: -// --------------------------- -// This interface implements a compressable keyframed animation set. -//---------------------------------------------------------------------------- -typedef interface ID3DXKeyframedAnimationSet ID3DXKeyframedAnimationSet; -typedef interface ID3DXKeyframedAnimationSet *LPD3DXKEYFRAMEDANIMATIONSET; - -#undef INTERFACE -#define INTERFACE ID3DXKeyframedAnimationSet - -DECLARE_INTERFACE_(ID3DXKeyframedAnimationSet, ID3DXAnimationSet) -{ - // ID3DXAnimationSet - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // Name - STDMETHOD_(LPCSTR, GetName)(THIS) PURE; - - // Period - STDMETHOD_(DOUBLE, GetPeriod)(THIS) PURE; - STDMETHOD_(DOUBLE, GetPeriodicPosition)(THIS_ DOUBLE Position) PURE; // Maps position into animation period - - // Animation names - STDMETHOD_(UINT, GetNumAnimations)(THIS) PURE; - STDMETHOD(GetAnimationNameByIndex)(THIS_ UINT Index, LPCSTR *ppName) PURE; - STDMETHOD(GetAnimationIndexByName)(THIS_ LPCSTR pName, UINT *pIndex) PURE; - - // SRT - STDMETHOD(GetSRT)(THIS_ - DOUBLE PeriodicPosition, // Position mapped to period (use GetPeriodicPosition) - UINT Animation, // Animation index - D3DXVECTOR3 *pScale, // Returns the scale - D3DXQUATERNION *pRotation, // Returns the rotation as a quaternion - D3DXVECTOR3 *pTranslation) PURE; // Returns the translation - - // Callbacks - STDMETHOD(GetCallback)(THIS_ - DOUBLE Position, // Position from which to find callbacks - DWORD Flags, // Callback search flags - DOUBLE *pCallbackPosition, // Returns the position of the callback - LPVOID *ppCallbackData) PURE; // Returns the callback data pointer - - // Playback - STDMETHOD_(D3DXPLAYBACK_TYPE, GetPlaybackType)(THIS) PURE; - STDMETHOD_(DOUBLE, GetSourceTicksPerSecond)(THIS) PURE; - - // Scale keys - STDMETHOD_(UINT, GetNumScaleKeys)(THIS_ UINT Animation) PURE; - STDMETHOD(GetScaleKeys)(THIS_ UINT Animation, LPD3DXKEY_VECTOR3 pScaleKeys) PURE; - STDMETHOD(GetScaleKey)(THIS_ UINT Animation, UINT Key, LPD3DXKEY_VECTOR3 pScaleKey) PURE; - STDMETHOD(SetScaleKey)(THIS_ UINT Animation, UINT Key, LPD3DXKEY_VECTOR3 pScaleKey) PURE; - - // Rotation keys - STDMETHOD_(UINT, GetNumRotationKeys)(THIS_ UINT Animation) PURE; - STDMETHOD(GetRotationKeys)(THIS_ UINT Animation, LPD3DXKEY_QUATERNION pRotationKeys) PURE; - STDMETHOD(GetRotationKey)(THIS_ UINT Animation, UINT Key, LPD3DXKEY_QUATERNION pRotationKey) PURE; - STDMETHOD(SetRotationKey)(THIS_ UINT Animation, UINT Key, LPD3DXKEY_QUATERNION pRotationKey) PURE; - - // Translation keys - STDMETHOD_(UINT, GetNumTranslationKeys)(THIS_ UINT Animation) PURE; - STDMETHOD(GetTranslationKeys)(THIS_ UINT Animation, LPD3DXKEY_VECTOR3 pTranslationKeys) PURE; - STDMETHOD(GetTranslationKey)(THIS_ UINT Animation, UINT Key, LPD3DXKEY_VECTOR3 pTranslationKey) PURE; - STDMETHOD(SetTranslationKey)(THIS_ UINT Animation, UINT Key, LPD3DXKEY_VECTOR3 pTranslationKey) PURE; - - // Callback keys - STDMETHOD_(UINT, GetNumCallbackKeys)(THIS) PURE; - STDMETHOD(GetCallbackKeys)(THIS_ LPD3DXKEY_CALLBACK pCallbackKeys) PURE; - STDMETHOD(GetCallbackKey)(THIS_ UINT Key, LPD3DXKEY_CALLBACK pCallbackKey) PURE; - STDMETHOD(SetCallbackKey)(THIS_ UINT Key, LPD3DXKEY_CALLBACK pCallbackKey) PURE; - - // Key removal methods. These are slow, and should not be used once the animation starts playing - STDMETHOD(UnregisterScaleKey)(THIS_ UINT Animation, UINT Key) PURE; - STDMETHOD(UnregisterRotationKey)(THIS_ UINT Animation, UINT Key) PURE; - STDMETHOD(UnregisterTranslationKey)(THIS_ UINT Animation, UINT Key) PURE; - - // One-time animaton SRT keyframe registration - STDMETHOD(RegisterAnimationSRTKeys)(THIS_ - LPCSTR pName, // Animation name - UINT NumScaleKeys, // Number of scale keys - UINT NumRotationKeys, // Number of rotation keys - UINT NumTranslationKeys, // Number of translation keys - CONST D3DXKEY_VECTOR3 *pScaleKeys, // Array of scale keys - CONST D3DXKEY_QUATERNION *pRotationKeys, // Array of rotation keys - CONST D3DXKEY_VECTOR3 *pTranslationKeys, // Array of translation keys - DWORD *pAnimationIndex) PURE; // Returns the animation index - - // Compression - STDMETHOD(Compress)(THIS_ - DWORD Flags, // Compression flags (use D3DXCOMPRESS_STRONG for better results) - FLOAT Lossiness, // Compression loss ratio in the [0, 1] range - LPD3DXFRAME pHierarchy, // Frame hierarchy (optional) - LPD3DXBUFFER *ppCompressedData) PURE; // Returns the compressed animation set - - STDMETHOD(UnregisterAnimation)(THIS_ UINT Index) PURE; -}; - - -//---------------------------------------------------------------------------- -// ID3DXCompressedAnimationSet: -// ---------------------------- -// This interface implements a compressed keyframed animation set. -//---------------------------------------------------------------------------- -typedef interface ID3DXCompressedAnimationSet ID3DXCompressedAnimationSet; -typedef interface ID3DXCompressedAnimationSet *LPD3DXCOMPRESSEDANIMATIONSET; - -#undef INTERFACE -#define INTERFACE ID3DXCompressedAnimationSet - -DECLARE_INTERFACE_(ID3DXCompressedAnimationSet, ID3DXAnimationSet) -{ - // ID3DXAnimationSet - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // Name - STDMETHOD_(LPCSTR, GetName)(THIS) PURE; - - // Period - STDMETHOD_(DOUBLE, GetPeriod)(THIS) PURE; - STDMETHOD_(DOUBLE, GetPeriodicPosition)(THIS_ DOUBLE Position) PURE; // Maps position into animation period - - // Animation names - STDMETHOD_(UINT, GetNumAnimations)(THIS) PURE; - STDMETHOD(GetAnimationNameByIndex)(THIS_ UINT Index, LPCSTR *ppName) PURE; - STDMETHOD(GetAnimationIndexByName)(THIS_ LPCSTR pName, UINT *pIndex) PURE; - - // SRT - STDMETHOD(GetSRT)(THIS_ - DOUBLE PeriodicPosition, // Position mapped to period (use GetPeriodicPosition) - UINT Animation, // Animation index - D3DXVECTOR3 *pScale, // Returns the scale - D3DXQUATERNION *pRotation, // Returns the rotation as a quaternion - D3DXVECTOR3 *pTranslation) PURE; // Returns the translation - - // Callbacks - STDMETHOD(GetCallback)(THIS_ - DOUBLE Position, // Position from which to find callbacks - DWORD Flags, // Callback search flags - DOUBLE *pCallbackPosition, // Returns the position of the callback - LPVOID *ppCallbackData) PURE; // Returns the callback data pointer - - // Playback - STDMETHOD_(D3DXPLAYBACK_TYPE, GetPlaybackType)(THIS) PURE; - STDMETHOD_(DOUBLE, GetSourceTicksPerSecond)(THIS) PURE; - - // Scale keys - STDMETHOD(GetCompressedData)(THIS_ LPD3DXBUFFER *ppCompressedData) PURE; - - // Callback keys - STDMETHOD_(UINT, GetNumCallbackKeys)(THIS) PURE; - STDMETHOD(GetCallbackKeys)(THIS_ LPD3DXKEY_CALLBACK pCallbackKeys) PURE; -}; - - -//---------------------------------------------------------------------------- -// D3DXPRIORITY_TYPE: -// ------------------ -// This enum defines the type of priority group that a track can be assigned to. -//---------------------------------------------------------------------------- -typedef enum _D3DXPRIORITY_TYPE { - D3DXPRIORITY_LOW = 0, // This track should be blended with all low priority tracks before mixed with the high priority result - D3DXPRIORITY_HIGH = 1, // This track should be blended with all high priority tracks before mixed with the low priority result - - D3DXPRIORITY_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DXPRIORITY_TYPE; - -//---------------------------------------------------------------------------- -// D3DXTRACK_DESC: -// --------------- -// This structure describes the mixing information of an animation track. -// The mixing information consists of the current position, speed, and blending -// weight for the track. The Flags field also specifies whether the track is -// low or high priority. Tracks with the same priority are blended together -// and then the two resulting values are blended using the priority blend factor. -// A track also has an animation set (stored separately) associated with it. -//---------------------------------------------------------------------------- -typedef struct _D3DXTRACK_DESC -{ - D3DXPRIORITY_TYPE Priority; - FLOAT Weight; - FLOAT Speed; - DOUBLE Position; - BOOL Enable; -} D3DXTRACK_DESC, *LPD3DXTRACK_DESC; - -//---------------------------------------------------------------------------- -// D3DXEVENT_TYPE: -// --------------- -// This enum defines the type of events keyable via the animation controller. -//---------------------------------------------------------------------------- -typedef enum _D3DXEVENT_TYPE -{ - D3DXEVENT_TRACKSPEED = 0, - D3DXEVENT_TRACKWEIGHT = 1, - D3DXEVENT_TRACKPOSITION = 2, - D3DXEVENT_TRACKENABLE = 3, - D3DXEVENT_PRIORITYBLEND = 4, - - D3DXEVENT_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DXEVENT_TYPE; - -//---------------------------------------------------------------------------- -// D3DXTRANSITION_TYPE: -// -------------------- -// This enum defines the type of transtion performed on a event that -// transitions from one value to another. -//---------------------------------------------------------------------------- -typedef enum _D3DXTRANSITION_TYPE { - D3DXTRANSITION_LINEAR = 0x000, // Linear transition from one value to the next - D3DXTRANSITION_EASEINEASEOUT = 0x001, // Ease-In Ease-Out spline transtion from one value to the next - - D3DXTRANSITION_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DXTRANSITION_TYPE; - -//---------------------------------------------------------------------------- -// D3DXEVENT_DESC: -// --------------- -// This structure describes a animation controller event. -// It gives the event's type, track (if the event is a track event), global -// start time, duration, transition method, and target value. -//---------------------------------------------------------------------------- -typedef struct _D3DXEVENT_DESC -{ - D3DXEVENT_TYPE Type; - UINT Track; - DOUBLE StartTime; - DOUBLE Duration; - D3DXTRANSITION_TYPE Transition; - union - { - FLOAT Weight; - FLOAT Speed; - DOUBLE Position; - BOOL Enable; - }; -} D3DXEVENT_DESC, *LPD3DXEVENT_DESC; - -//---------------------------------------------------------------------------- -// D3DXEVENTHANDLE: -// ---------------- -// Handle values used to efficiently reference animation controller events. -//---------------------------------------------------------------------------- -typedef DWORD D3DXEVENTHANDLE; -typedef D3DXEVENTHANDLE *LPD3DXEVENTHANDLE; - - -//---------------------------------------------------------------------------- -// ID3DXAnimationCallbackHandler: -// ------------------------------ -// This interface is intended to be implemented by the application, and can -// be used to handle callbacks in animation sets generated when -// ID3DXAnimationController::AdvanceTime() is called. -//---------------------------------------------------------------------------- -typedef interface ID3DXAnimationCallbackHandler ID3DXAnimationCallbackHandler; -typedef interface ID3DXAnimationCallbackHandler *LPD3DXANIMATIONCALLBACKHANDLER; - -#undef INTERFACE -#define INTERFACE ID3DXAnimationCallbackHandler - -DECLARE_INTERFACE(ID3DXAnimationCallbackHandler) -{ - //---------------------------------------------------------------------------- - // ID3DXAnimationCallbackHandler::HandleCallback: - // ---------------------------------------------- - // This method gets called when a callback occurs for an animation set in one - // of the tracks during the ID3DXAnimationController::AdvanceTime() call. - // - // Parameters: - // Track - // Index of the track on which the callback occured. - // pCallbackData - // Pointer to user owned callback data. - // - //---------------------------------------------------------------------------- - STDMETHOD(HandleCallback)(THIS_ UINT Track, LPVOID pCallbackData) PURE; -}; - - -//---------------------------------------------------------------------------- -// ID3DXAnimationController: -// ------------------------- -// This interface implements the main animation functionality. It connects -// animation sets with the transform frames that are being animated. Allows -// mixing multiple animations for blended animations or for transistions -// It adds also has methods to modify blending parameters over time to -// enable smooth transistions and other effects. -//---------------------------------------------------------------------------- -typedef interface ID3DXAnimationController ID3DXAnimationController; -typedef interface ID3DXAnimationController *LPD3DXANIMATIONCONTROLLER; - -#undef INTERFACE -#define INTERFACE ID3DXAnimationController - -DECLARE_INTERFACE_(ID3DXAnimationController, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // Max sizes - STDMETHOD_(UINT, GetMaxNumAnimationOutputs)(THIS) PURE; - STDMETHOD_(UINT, GetMaxNumAnimationSets)(THIS) PURE; - STDMETHOD_(UINT, GetMaxNumTracks)(THIS) PURE; - STDMETHOD_(UINT, GetMaxNumEvents)(THIS) PURE; - - // Animation output registration - STDMETHOD(RegisterAnimationOutput)(THIS_ - LPCSTR pName, - D3DXMATRIX *pMatrix, - D3DXVECTOR3 *pScale, - D3DXQUATERNION *pRotation, - D3DXVECTOR3 *pTranslation) PURE; - - // Animation set registration - STDMETHOD(RegisterAnimationSet)(THIS_ LPD3DXANIMATIONSET pAnimSet) PURE; - STDMETHOD(UnregisterAnimationSet)(THIS_ LPD3DXANIMATIONSET pAnimSet) PURE; - - STDMETHOD_(UINT, GetNumAnimationSets)(THIS) PURE; - STDMETHOD(GetAnimationSet)(THIS_ UINT Index, LPD3DXANIMATIONSET *ppAnimationSet) PURE; - STDMETHOD(GetAnimationSetByName)(THIS_ LPCSTR szName, LPD3DXANIMATIONSET *ppAnimationSet) PURE; - - // Global time - STDMETHOD(AdvanceTime)(THIS_ DOUBLE TimeDelta, LPD3DXANIMATIONCALLBACKHANDLER pCallbackHandler) PURE; - STDMETHOD(ResetTime)(THIS) PURE; - STDMETHOD_(DOUBLE, GetTime)(THIS) PURE; - - // Tracks - STDMETHOD(SetTrackAnimationSet)(THIS_ UINT Track, LPD3DXANIMATIONSET pAnimSet) PURE; - STDMETHOD(GetTrackAnimationSet)(THIS_ UINT Track, LPD3DXANIMATIONSET *ppAnimSet) PURE; - - STDMETHOD(SetTrackPriority)(THIS_ UINT Track, D3DXPRIORITY_TYPE Priority) PURE; - - STDMETHOD(SetTrackSpeed)(THIS_ UINT Track, FLOAT Speed) PURE; - STDMETHOD(SetTrackWeight)(THIS_ UINT Track, FLOAT Weight) PURE; - STDMETHOD(SetTrackPosition)(THIS_ UINT Track, DOUBLE Position) PURE; - STDMETHOD(SetTrackEnable)(THIS_ UINT Track, BOOL Enable) PURE; - - STDMETHOD(SetTrackDesc)(THIS_ UINT Track, LPD3DXTRACK_DESC pDesc) PURE; - STDMETHOD(GetTrackDesc)(THIS_ UINT Track, LPD3DXTRACK_DESC pDesc) PURE; - - // Priority blending - STDMETHOD(SetPriorityBlend)(THIS_ FLOAT BlendWeight) PURE; - STDMETHOD_(FLOAT, GetPriorityBlend)(THIS) PURE; - - // Event keying - STDMETHOD_(D3DXEVENTHANDLE, KeyTrackSpeed)(THIS_ UINT Track, FLOAT NewSpeed, DOUBLE StartTime, DOUBLE Duration, D3DXTRANSITION_TYPE Transition) PURE; - STDMETHOD_(D3DXEVENTHANDLE, KeyTrackWeight)(THIS_ UINT Track, FLOAT NewWeight, DOUBLE StartTime, DOUBLE Duration, D3DXTRANSITION_TYPE Transition) PURE; - STDMETHOD_(D3DXEVENTHANDLE, KeyTrackPosition)(THIS_ UINT Track, DOUBLE NewPosition, DOUBLE StartTime) PURE; - STDMETHOD_(D3DXEVENTHANDLE, KeyTrackEnable)(THIS_ UINT Track, BOOL NewEnable, DOUBLE StartTime) PURE; - - STDMETHOD_(D3DXEVENTHANDLE, KeyPriorityBlend)(THIS_ FLOAT NewBlendWeight, DOUBLE StartTime, DOUBLE Duration, D3DXTRANSITION_TYPE Transition) PURE; - - // Event unkeying - STDMETHOD(UnkeyEvent)(THIS_ D3DXEVENTHANDLE hEvent) PURE; - - STDMETHOD(UnkeyAllTrackEvents)(THIS_ UINT Track) PURE; - STDMETHOD(UnkeyAllPriorityBlends)(THIS) PURE; - - // Event enumeration - STDMETHOD_(D3DXEVENTHANDLE, GetCurrentTrackEvent)(THIS_ UINT Track, D3DXEVENT_TYPE EventType) PURE; - STDMETHOD_(D3DXEVENTHANDLE, GetCurrentPriorityBlend)(THIS) PURE; - - STDMETHOD_(D3DXEVENTHANDLE, GetUpcomingTrackEvent)(THIS_ UINT Track, D3DXEVENTHANDLE hEvent) PURE; - STDMETHOD_(D3DXEVENTHANDLE, GetUpcomingPriorityBlend)(THIS_ D3DXEVENTHANDLE hEvent) PURE; - - STDMETHOD(ValidateEvent)(THIS_ D3DXEVENTHANDLE hEvent) PURE; - - STDMETHOD(GetEventDesc)(THIS_ D3DXEVENTHANDLE hEvent, LPD3DXEVENT_DESC pDesc) PURE; - - // Cloning - STDMETHOD(CloneAnimationController)(THIS_ - UINT MaxNumAnimationOutputs, - UINT MaxNumAnimationSets, - UINT MaxNumTracks, - UINT MaxNumEvents, - LPD3DXANIMATIONCONTROLLER *ppAnimController) PURE; -}; - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - - -//---------------------------------------------------------------------------- -// D3DXLoadMeshHierarchyFromX: -// --------------------------- -// Loads the first frame hierarchy in a .X file. -// -// Parameters: -// Filename -// Name of the .X file -// MeshOptions -// Mesh creation options for meshes in the file (see d3dx9mesh.h) -// pD3DDevice -// D3D9 device on which meshes in the file are created in -// pAlloc -// Allocation interface used to allocate nodes of the frame hierarchy -// pUserDataLoader -// Application provided interface to allow loading of user data -// ppFrameHierarchy -// Returns root node pointer of the loaded frame hierarchy -// ppAnimController -// Returns pointer to an animation controller corresponding to animation -// in the .X file. This is created with default max tracks and events -// -//---------------------------------------------------------------------------- -HRESULT WINAPI -D3DXLoadMeshHierarchyFromXA - ( - LPCSTR Filename, - DWORD MeshOptions, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXALLOCATEHIERARCHY pAlloc, - LPD3DXLOADUSERDATA pUserDataLoader, - LPD3DXFRAME *ppFrameHierarchy, - LPD3DXANIMATIONCONTROLLER *ppAnimController - ); - -HRESULT WINAPI -D3DXLoadMeshHierarchyFromXW - ( - LPCWSTR Filename, - DWORD MeshOptions, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXALLOCATEHIERARCHY pAlloc, - LPD3DXLOADUSERDATA pUserDataLoader, - LPD3DXFRAME *ppFrameHierarchy, - LPD3DXANIMATIONCONTROLLER *ppAnimController - ); - -#ifdef UNICODE -#define D3DXLoadMeshHierarchyFromX D3DXLoadMeshHierarchyFromXW -#else -#define D3DXLoadMeshHierarchyFromX D3DXLoadMeshHierarchyFromXA -#endif - -HRESULT WINAPI -D3DXLoadMeshHierarchyFromXInMemory - ( - LPCVOID Memory, - DWORD SizeOfMemory, - DWORD MeshOptions, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXALLOCATEHIERARCHY pAlloc, - LPD3DXLOADUSERDATA pUserDataLoader, - LPD3DXFRAME *ppFrameHierarchy, - LPD3DXANIMATIONCONTROLLER *ppAnimController - ); - -//---------------------------------------------------------------------------- -// D3DXSaveMeshHierarchyToFile: -// ---------------------------- -// Creates a .X file and saves the mesh hierarchy and corresponding animations -// in it -// -// Parameters: -// Filename -// Name of the .X file -// XFormat -// Format of the .X file (text or binary, compressed or not, etc) -// pFrameRoot -// Root node of the hierarchy to be saved -// pAnimController -// The animation controller whose animation sets are to be stored -// pUserDataSaver -// Application provided interface to allow adding of user data to -// data objects saved to .X file -// -//---------------------------------------------------------------------------- -HRESULT WINAPI -D3DXSaveMeshHierarchyToFileA - ( - LPCSTR Filename, - DWORD XFormat, - CONST D3DXFRAME *pFrameRoot, - LPD3DXANIMATIONCONTROLLER pAnimcontroller, - LPD3DXSAVEUSERDATA pUserDataSaver - ); - -HRESULT WINAPI -D3DXSaveMeshHierarchyToFileW - ( - LPCWSTR Filename, - DWORD XFormat, - CONST D3DXFRAME *pFrameRoot, - LPD3DXANIMATIONCONTROLLER pAnimController, - LPD3DXSAVEUSERDATA pUserDataSaver - ); - -#ifdef UNICODE -#define D3DXSaveMeshHierarchyToFile D3DXSaveMeshHierarchyToFileW -#else -#define D3DXSaveMeshHierarchyToFile D3DXSaveMeshHierarchyToFileA -#endif - -//---------------------------------------------------------------------------- -// D3DXFrameDestroy: -// ----------------- -// Destroys the subtree of frames under the root, including the root -// -// Parameters: -// pFrameRoot -// Pointer to the root node -// pAlloc -// Allocation interface used to de-allocate nodes of the frame hierarchy -// -//---------------------------------------------------------------------------- -HRESULT WINAPI -D3DXFrameDestroy - ( - LPD3DXFRAME pFrameRoot, - LPD3DXALLOCATEHIERARCHY pAlloc - ); - -//---------------------------------------------------------------------------- -// D3DXFrameAppendChild: -// --------------------- -// Add a child frame to a frame -// -// Parameters: -// pFrameParent -// Pointer to the parent node -// pFrameChild -// Pointer to the child node -// -//---------------------------------------------------------------------------- -HRESULT WINAPI -D3DXFrameAppendChild - ( - LPD3DXFRAME pFrameParent, - CONST D3DXFRAME *pFrameChild - ); - -//---------------------------------------------------------------------------- -// D3DXFrameFind: -// -------------- -// Finds a frame with the given name. Returns NULL if no frame found. -// -// Parameters: -// pFrameRoot -// Pointer to the root node -// Name -// Name of frame to find -// -//---------------------------------------------------------------------------- -LPD3DXFRAME WINAPI -D3DXFrameFind - ( - CONST D3DXFRAME *pFrameRoot, - LPCSTR Name - ); - -//---------------------------------------------------------------------------- -// D3DXFrameRegisterNamedMatrices: -// ------------------------------- -// Finds all frames that have non-null names and registers each of those frame -// matrices to the given animation controller -// -// Parameters: -// pFrameRoot -// Pointer to the root node -// pAnimController -// Pointer to the animation controller where the matrices are registered -// -//---------------------------------------------------------------------------- -HRESULT WINAPI -D3DXFrameRegisterNamedMatrices - ( - LPD3DXFRAME pFrameRoot, - LPD3DXANIMATIONCONTROLLER pAnimController - ); - -//---------------------------------------------------------------------------- -// D3DXFrameNumNamedMatrices: -// -------------------------- -// Counts number of frames in a subtree that have non-null names -// -// Parameters: -// pFrameRoot -// Pointer to the root node of the subtree -// Return Value: -// Count of frames -// -//---------------------------------------------------------------------------- -UINT WINAPI -D3DXFrameNumNamedMatrices - ( - CONST D3DXFRAME *pFrameRoot - ); - -//---------------------------------------------------------------------------- -// D3DXFrameCalculateBoundingSphere: -// --------------------------------- -// Computes the bounding sphere of all the meshes in the frame hierarchy. -// -// Parameters: -// pFrameRoot -// Pointer to the root node -// pObjectCenter -// Returns the center of the bounding sphere -// pObjectRadius -// Returns the radius of the bounding sphere -// -//---------------------------------------------------------------------------- -HRESULT WINAPI -D3DXFrameCalculateBoundingSphere - ( - CONST D3DXFRAME *pFrameRoot, - LPD3DXVECTOR3 pObjectCenter, - FLOAT *pObjectRadius - ); - - -//---------------------------------------------------------------------------- -// D3DXCreateKeyframedAnimationSet: -// -------------------------------- -// This function creates a compressable keyframed animations set interface. -// -// Parameters: -// pName -// Name of the animation set -// TicksPerSecond -// Number of keyframe ticks that elapse per second -// Playback -// Playback mode of keyframe looping -// NumAnimations -// Number of SRT animations -// NumCallbackKeys -// Number of callback keys -// pCallbackKeys -// Array of callback keys -// ppAnimationSet -// Returns the animation set interface -// -//----------------------------------------------------------------------------- -HRESULT WINAPI -D3DXCreateKeyframedAnimationSet - ( - LPCSTR pName, - DOUBLE TicksPerSecond, - D3DXPLAYBACK_TYPE Playback, - UINT NumAnimations, - UINT NumCallbackKeys, - CONST D3DXKEY_CALLBACK *pCallbackKeys, - LPD3DXKEYFRAMEDANIMATIONSET *ppAnimationSet - ); - - -//---------------------------------------------------------------------------- -// D3DXCreateCompressedAnimationSet: -// -------------------------------- -// This function creates a compressed animations set interface from -// compressed data. -// -// Parameters: -// pName -// Name of the animation set -// TicksPerSecond -// Number of keyframe ticks that elapse per second -// Playback -// Playback mode of keyframe looping -// pCompressedData -// Compressed animation SRT data -// NumCallbackKeys -// Number of callback keys -// pCallbackKeys -// Array of callback keys -// ppAnimationSet -// Returns the animation set interface -// -//----------------------------------------------------------------------------- -HRESULT WINAPI -D3DXCreateCompressedAnimationSet - ( - LPCSTR pName, - DOUBLE TicksPerSecond, - D3DXPLAYBACK_TYPE Playback, - LPD3DXBUFFER pCompressedData, - UINT NumCallbackKeys, - CONST D3DXKEY_CALLBACK *pCallbackKeys, - LPD3DXCOMPRESSEDANIMATIONSET *ppAnimationSet - ); - - -//---------------------------------------------------------------------------- -// D3DXCreateAnimationController: -// ------------------------------ -// This function creates an animation controller object. -// -// Parameters: -// MaxNumMatrices -// Maximum number of matrices that can be animated -// MaxNumAnimationSets -// Maximum number of animation sets that can be played -// MaxNumTracks -// Maximum number of animation sets that can be blended -// MaxNumEvents -// Maximum number of outstanding events that can be scheduled at any given time -// ppAnimController -// Returns the animation controller interface -// -//----------------------------------------------------------------------------- -HRESULT WINAPI -D3DXCreateAnimationController - ( - UINT MaxNumMatrices, - UINT MaxNumAnimationSets, - UINT MaxNumTracks, - UINT MaxNumEvents, - LPD3DXANIMATIONCONTROLLER *ppAnimController - ); - - -#ifdef __cplusplus -} -#endif //__cplusplus - -#endif //__D3DX9ANIM_H__ - - diff --git a/sdk/dx8sdk/Include/d3dx9core.h b/sdk/dx8sdk/Include/d3dx9core.h deleted file mode 100644 index bc65377c..00000000 --- a/sdk/dx8sdk/Include/d3dx9core.h +++ /dev/null @@ -1,728 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx9core.h -// Content: D3DX core types and functions -// -/////////////////////////////////////////////////////////////////////////// - -#include "d3dx9.h" - -#ifndef __D3DX9CORE_H__ -#define __D3DX9CORE_H__ - - -/////////////////////////////////////////////////////////////////////////// -// D3DX_SDK_VERSION: -// ----------------- -// This identifier is passed to D3DXCheckVersion in order to ensure that an -// application was built against the correct header files and lib files. -// This number is incremented whenever a header (or other) change would -// require applications to be rebuilt. If the version doesn't match, -// D3DXCreateVersion will return FALSE. (The number itself has no meaning.) -/////////////////////////////////////////////////////////////////////////// - -#define D3DX_VERSION 0x0902 -#define D3DX_SDK_VERSION 22 - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -BOOL WINAPI - D3DXCheckVersion(UINT D3DSdkVersion, UINT D3DXSdkVersion); - -#ifdef __cplusplus -} -#endif //__cplusplus - - - -/////////////////////////////////////////////////////////////////////////// -// D3DXGetDriverLevel: -// Returns driver version information: -// -// 700 - DX7 level driver -// 800 - DX8 level driver -// 900 - DX9 level driver -/////////////////////////////////////////////////////////////////////////// - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -UINT WINAPI - D3DXGetDriverLevel(LPDIRECT3DDEVICE9 pDevice); - -#ifdef __cplusplus -} -#endif //__cplusplus - - -/////////////////////////////////////////////////////////////////////////// -// ID3DXBuffer: -// ------------ -// The buffer object is used by D3DX to return arbitrary size data. -// -// GetBufferPointer - -// Returns a pointer to the beginning of the buffer. -// -// GetBufferSize - -// Returns the size of the buffer, in bytes. -/////////////////////////////////////////////////////////////////////////// - -typedef interface ID3DXBuffer ID3DXBuffer; -typedef interface ID3DXBuffer *LPD3DXBUFFER; - -// {8BA5FB08-5195-40e2-AC58-0D989C3A0102} -DEFINE_GUID(IID_ID3DXBuffer, -0x8ba5fb08, 0x5195, 0x40e2, 0xac, 0x58, 0xd, 0x98, 0x9c, 0x3a, 0x1, 0x2); - -#undef INTERFACE -#define INTERFACE ID3DXBuffer - -DECLARE_INTERFACE_(ID3DXBuffer, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXBuffer - STDMETHOD_(LPVOID, GetBufferPointer)(THIS) PURE; - STDMETHOD_(DWORD, GetBufferSize)(THIS) PURE; -}; - - - -////////////////////////////////////////////////////////////////////////////// -// D3DXSPRITE flags: -// ----------------- -// D3DXSPRITE_DONOTSAVESTATE -// Specifies device state is not to be saved and restored in Begin/End. -// D3DXSPRITE_DONOTMODIFY_RENDERSTATE -// Specifies device render state is not to be changed in Begin. The device -// is assumed to be in a valid state to draw vertices containing POSITION0, -// TEXCOORD0, and COLOR0 data. -// D3DXSPRITE_OBJECTSPACE -// The WORLD, VIEW, and PROJECTION transforms are NOT modified. The -// transforms currently set to the device are used to transform the sprites -// when the batch is drawn (at Flush or End). If this is not specified, -// WORLD, VIEW, and PROJECTION transforms are modified so that sprites are -// drawn in screenspace coordinates. -// D3DXSPRITE_BILLBOARD -// Rotates each sprite about its center so that it is facing the viewer. -// D3DXSPRITE_ALPHABLEND -// Enables ALPHABLEND(SRCALPHA, INVSRCALPHA) and ALPHATEST(alpha > 0). -// ID3DXFont expects this to be set when drawing text. -// D3DXSPRITE_SORT_TEXTURE -// Sprites are sorted by texture prior to drawing. This is recommended when -// drawing non-overlapping sprites of uniform depth. For example, drawing -// screen-aligned text with ID3DXFont. -// D3DXSPRITE_SORT_DEPTH_FRONTTOBACK -// Sprites are sorted by depth front-to-back prior to drawing. This is -// recommended when drawing opaque sprites of varying depths. -// D3DXSPRITE_SORT_DEPTH_BACKTOFRONT -// Sprites are sorted by depth back-to-front prior to drawing. This is -// recommended when drawing transparent sprites of varying depths. -////////////////////////////////////////////////////////////////////////////// - -#define D3DXSPRITE_DONOTSAVESTATE (1 << 0) -#define D3DXSPRITE_DONOTMODIFY_RENDERSTATE (1 << 1) -#define D3DXSPRITE_OBJECTSPACE (1 << 2) -#define D3DXSPRITE_BILLBOARD (1 << 3) -#define D3DXSPRITE_ALPHABLEND (1 << 4) -#define D3DXSPRITE_SORT_TEXTURE (1 << 5) -#define D3DXSPRITE_SORT_DEPTH_FRONTTOBACK (1 << 6) -#define D3DXSPRITE_SORT_DEPTH_BACKTOFRONT (1 << 7) - - -////////////////////////////////////////////////////////////////////////////// -// ID3DXSprite: -// ------------ -// This object intends to provide an easy way to drawing sprites using D3D. -// -// Begin - -// Prepares device for drawing sprites. -// -// Draw - -// Draws a sprite. Before transformation, the sprite is the size of -// SrcRect, with its top-left corner specified by Position. The color -// and alpha channels are modulated by Color. -// -// Flush - -// Forces all batched sprites to submitted to the device. -// -// End - -// Restores device state to how it was when Begin was called. -// -// OnLostDevice, OnResetDevice - -// Call OnLostDevice() on this object before calling Reset() on the -// device, so that this object can release any stateblocks and video -// memory resources. After Reset(), the call OnResetDevice(). -////////////////////////////////////////////////////////////////////////////// - -typedef interface ID3DXSprite ID3DXSprite; -typedef interface ID3DXSprite *LPD3DXSPRITE; - - -// {BA0B762D-7D28-43ec-B9DC-2F84443B0614} -DEFINE_GUID(IID_ID3DXSprite, -0xba0b762d, 0x7d28, 0x43ec, 0xb9, 0xdc, 0x2f, 0x84, 0x44, 0x3b, 0x6, 0x14); - - -#undef INTERFACE -#define INTERFACE ID3DXSprite - -DECLARE_INTERFACE_(ID3DXSprite, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXSprite - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9* ppDevice) PURE; - - STDMETHOD(GetTransform)(THIS_ D3DXMATRIX *pTransform) PURE; - STDMETHOD(SetTransform)(THIS_ CONST D3DXMATRIX *pTransform) PURE; - - STDMETHOD(SetWorldViewRH)(THIS_ CONST D3DXMATRIX *pWorld, CONST D3DXMATRIX *pView) PURE; - STDMETHOD(SetWorldViewLH)(THIS_ CONST D3DXMATRIX *pWorld, CONST D3DXMATRIX *pView) PURE; - - STDMETHOD(Begin)(THIS_ DWORD Flags) PURE; - STDMETHOD(Draw)(THIS_ LPDIRECT3DTEXTURE9 pTexture, CONST RECT *pSrcRect, CONST D3DXVECTOR3 *pCenter, CONST D3DXVECTOR3 *pPosition, D3DCOLOR Color) PURE; - STDMETHOD(Flush)(THIS) PURE; - STDMETHOD(End)(THIS) PURE; - - STDMETHOD(OnLostDevice)(THIS) PURE; - STDMETHOD(OnResetDevice)(THIS) PURE; -}; - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -HRESULT WINAPI - D3DXCreateSprite( - LPDIRECT3DDEVICE9 pDevice, - LPD3DXSPRITE* ppSprite); - -#ifdef __cplusplus -} -#endif //__cplusplus - - - -////////////////////////////////////////////////////////////////////////////// -// ID3DXFont: -// ---------- -// Font objects contain the textures and resources needed to render a specific -// font on a specific device. -// -// GetGlyphData - -// Returns glyph cache data, for a given glyph. -// -// PreloadCharacters/PreloadGlyphs/PreloadText - -// Preloads glyphs into the glyph cache textures. -// -// DrawText - -// Draws formatted text on a D3D device. Some parameters are -// surprisingly similar to those of GDI's DrawText function. See GDI -// documentation for a detailed description of these parameters. -// If pSprite is NULL, an internal sprite object will be used. -// -// OnLostDevice, OnResetDevice - -// Call OnLostDevice() on this object before calling Reset() on the -// device, so that this object can release any stateblocks and video -// memory resources. After Reset(), the call OnResetDevice(). -////////////////////////////////////////////////////////////////////////////// - -typedef struct _D3DXFONT_DESCA -{ - INT Height; - UINT Width; - UINT Weight; - UINT MipLevels; - BOOL Italic; - BYTE CharSet; - BYTE OutputPrecision; - BYTE Quality; - BYTE PitchAndFamily; - CHAR FaceName[LF_FACESIZE]; - -} D3DXFONT_DESCA, *LPD3DXFONT_DESCA; - -typedef struct _D3DXFONT_DESCW -{ - INT Height; - UINT Width; - UINT Weight; - UINT MipLevels; - BOOL Italic; - BYTE CharSet; - BYTE OutputPrecision; - BYTE Quality; - BYTE PitchAndFamily; - WCHAR FaceName[LF_FACESIZE]; - -} D3DXFONT_DESCW, *LPD3DXFONT_DESCW; - -#ifdef UNICODE -typedef D3DXFONT_DESCW D3DXFONT_DESC; -typedef LPD3DXFONT_DESCW LPD3DXFONT_DESC; -#else -typedef D3DXFONT_DESCA D3DXFONT_DESC; -typedef LPD3DXFONT_DESCA LPD3DXFONT_DESC; -#endif - - -typedef interface ID3DXFont ID3DXFont; -typedef interface ID3DXFont *LPD3DXFONT; - - -// {D79DBB70-5F21-4d36-BBC2-FF525C213CDC} -DEFINE_GUID(IID_ID3DXFont, -0xd79dbb70, 0x5f21, 0x4d36, 0xbb, 0xc2, 0xff, 0x52, 0x5c, 0x21, 0x3c, 0xdc); - - -#undef INTERFACE -#define INTERFACE ID3DXFont - -DECLARE_INTERFACE_(ID3DXFont, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXFont - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9 *ppDevice) PURE; - STDMETHOD(GetDescA)(THIS_ D3DXFONT_DESCA *pDesc) PURE; - STDMETHOD(GetDescW)(THIS_ D3DXFONT_DESCW *pDesc) PURE; - STDMETHOD_(BOOL, GetTextMetricsA)(THIS_ TEXTMETRICA *pTextMetrics) PURE; - STDMETHOD_(BOOL, GetTextMetricsW)(THIS_ TEXTMETRICW *pTextMetrics) PURE; - - STDMETHOD_(HDC, GetDC)(THIS) PURE; - STDMETHOD(GetGlyphData)(THIS_ UINT Glyph, LPDIRECT3DTEXTURE9 *ppTexture, RECT *pBlackBox, POINT *pCellInc) PURE; - - STDMETHOD(PreloadCharacters)(THIS_ UINT First, UINT Last) PURE; - STDMETHOD(PreloadGlyphs)(THIS_ UINT First, UINT Last) PURE; - STDMETHOD(PreloadTextA)(THIS_ LPCSTR pString, INT Count) PURE; - STDMETHOD(PreloadTextW)(THIS_ LPCWSTR pString, INT Count) PURE; - - STDMETHOD_(INT, DrawTextA)(THIS_ LPD3DXSPRITE pSprite, LPCSTR pString, INT Count, LPRECT pRect, DWORD Format, D3DCOLOR Color) PURE; - STDMETHOD_(INT, DrawTextW)(THIS_ LPD3DXSPRITE pSprite, LPCWSTR pString, INT Count, LPRECT pRect, DWORD Format, D3DCOLOR Color) PURE; - - STDMETHOD(OnLostDevice)(THIS) PURE; - STDMETHOD(OnResetDevice)(THIS) PURE; - -#ifdef __cplusplus -#ifdef UNICODE - HRESULT GetDesc(D3DXFONT_DESCW *pDesc) { return GetDescW(pDesc); } - HRESULT PreloadText(LPCWSTR pString, INT Count) { return PreloadTextW(pString, Count); } -#else - HRESULT GetDesc(D3DXFONT_DESCA *pDesc) { return GetDescA(pDesc); } - HRESULT PreloadText(LPCSTR pString, INT Count) { return PreloadTextA(pString, Count); } -#endif -#endif //__cplusplus -}; - -#ifndef GetTextMetrics -#ifdef UNICODE -#define GetTextMetrics GetTextMetricsW -#else -#define GetTextMetrics GetTextMetricsA -#endif -#endif - -#ifndef DrawText -#ifdef UNICODE -#define DrawText DrawTextW -#else -#define DrawText DrawTextA -#endif -#endif - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - - -HRESULT WINAPI - D3DXCreateFontA( - LPDIRECT3DDEVICE9 pDevice, - INT Height, - UINT Width, - UINT Weight, - UINT MipLevels, - BOOL Italic, - DWORD CharSet, - DWORD OutputPrecision, - DWORD Quality, - DWORD PitchAndFamily, - LPCSTR pFaceName, - LPD3DXFONT* ppFont); - -HRESULT WINAPI - D3DXCreateFontW( - LPDIRECT3DDEVICE9 pDevice, - INT Height, - UINT Width, - UINT Weight, - UINT MipLevels, - BOOL Italic, - DWORD CharSet, - DWORD OutputPrecision, - DWORD Quality, - DWORD PitchAndFamily, - LPCWSTR pFaceName, - LPD3DXFONT* ppFont); - -#ifdef UNICODE -#define D3DXCreateFont D3DXCreateFontW -#else -#define D3DXCreateFont D3DXCreateFontA -#endif - - -HRESULT WINAPI - D3DXCreateFontIndirectA( - LPDIRECT3DDEVICE9 pDevice, - CONST D3DXFONT_DESCA* pDesc, - LPD3DXFONT* ppFont); - -HRESULT WINAPI - D3DXCreateFontIndirectW( - LPDIRECT3DDEVICE9 pDevice, - CONST D3DXFONT_DESCW* pDesc, - LPD3DXFONT* ppFont); - -#ifdef UNICODE -#define D3DXCreateFontIndirect D3DXCreateFontIndirectW -#else -#define D3DXCreateFontIndirect D3DXCreateFontIndirectA -#endif - - -#ifdef __cplusplus -} -#endif //__cplusplus - - - -/////////////////////////////////////////////////////////////////////////// -// ID3DXRenderToSurface: -// --------------------- -// This object abstracts rendering to surfaces. These surfaces do not -// necessarily need to be render targets. If they are not, a compatible -// render target is used, and the result copied into surface at end scene. -// -// BeginScene, EndScene - -// Call BeginScene() and EndScene() at the beginning and ending of your -// scene. These calls will setup and restore render targets, viewports, -// etc.. -// -// OnLostDevice, OnResetDevice - -// Call OnLostDevice() on this object before calling Reset() on the -// device, so that this object can release any stateblocks and video -// memory resources. After Reset(), the call OnResetDevice(). -/////////////////////////////////////////////////////////////////////////// - -typedef struct _D3DXRTS_DESC -{ - UINT Width; - UINT Height; - D3DFORMAT Format; - BOOL DepthStencil; - D3DFORMAT DepthStencilFormat; - -} D3DXRTS_DESC, *LPD3DXRTS_DESC; - - -typedef interface ID3DXRenderToSurface ID3DXRenderToSurface; -typedef interface ID3DXRenderToSurface *LPD3DXRENDERTOSURFACE; - - -// {6985F346-2C3D-43b3-BE8B-DAAE8A03D894} -DEFINE_GUID(IID_ID3DXRenderToSurface, -0x6985f346, 0x2c3d, 0x43b3, 0xbe, 0x8b, 0xda, 0xae, 0x8a, 0x3, 0xd8, 0x94); - - -#undef INTERFACE -#define INTERFACE ID3DXRenderToSurface - -DECLARE_INTERFACE_(ID3DXRenderToSurface, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXRenderToSurface - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9* ppDevice) PURE; - STDMETHOD(GetDesc)(THIS_ D3DXRTS_DESC* pDesc) PURE; - - STDMETHOD(BeginScene)(THIS_ LPDIRECT3DSURFACE9 pSurface, CONST D3DVIEWPORT9* pViewport) PURE; - STDMETHOD(EndScene)(THIS_ DWORD MipFilter) PURE; - - STDMETHOD(OnLostDevice)(THIS) PURE; - STDMETHOD(OnResetDevice)(THIS) PURE; -}; - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -HRESULT WINAPI - D3DXCreateRenderToSurface( - LPDIRECT3DDEVICE9 pDevice, - UINT Width, - UINT Height, - D3DFORMAT Format, - BOOL DepthStencil, - D3DFORMAT DepthStencilFormat, - LPD3DXRENDERTOSURFACE* ppRenderToSurface); - -#ifdef __cplusplus -} -#endif //__cplusplus - - - -/////////////////////////////////////////////////////////////////////////// -// ID3DXRenderToEnvMap: -// -------------------- -// This object abstracts rendering to environment maps. These surfaces -// do not necessarily need to be render targets. If they are not, a -// compatible render target is used, and the result copied into the -// environment map at end scene. -// -// BeginCube, BeginSphere, BeginHemisphere, BeginParabolic - -// This function initiates the rendering of the environment map. As -// parameters, you pass the textures in which will get filled in with -// the resulting environment map. -// -// Face - -// Call this function to initiate the drawing of each face. For each -// environment map, you will call this six times.. once for each face -// in D3DCUBEMAP_FACES. -// -// End - -// This will restore all render targets, and if needed compose all the -// rendered faces into the environment map surfaces. -// -// OnLostDevice, OnResetDevice - -// Call OnLostDevice() on this object before calling Reset() on the -// device, so that this object can release any stateblocks and video -// memory resources. After Reset(), the call OnResetDevice(). -/////////////////////////////////////////////////////////////////////////// - -typedef struct _D3DXRTE_DESC -{ - UINT Size; - UINT MipLevels; - D3DFORMAT Format; - BOOL DepthStencil; - D3DFORMAT DepthStencilFormat; - -} D3DXRTE_DESC, *LPD3DXRTE_DESC; - - -typedef interface ID3DXRenderToEnvMap ID3DXRenderToEnvMap; -typedef interface ID3DXRenderToEnvMap *LPD3DXRenderToEnvMap; - - -// {313F1B4B-C7B0-4fa2-9D9D-8D380B64385E} -DEFINE_GUID(IID_ID3DXRenderToEnvMap, -0x313f1b4b, 0xc7b0, 0x4fa2, 0x9d, 0x9d, 0x8d, 0x38, 0xb, 0x64, 0x38, 0x5e); - - -#undef INTERFACE -#define INTERFACE ID3DXRenderToEnvMap - -DECLARE_INTERFACE_(ID3DXRenderToEnvMap, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXRenderToEnvMap - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9* ppDevice) PURE; - STDMETHOD(GetDesc)(THIS_ D3DXRTE_DESC* pDesc) PURE; - - STDMETHOD(BeginCube)(THIS_ - LPDIRECT3DCUBETEXTURE9 pCubeTex) PURE; - - STDMETHOD(BeginSphere)(THIS_ - LPDIRECT3DTEXTURE9 pTex) PURE; - - STDMETHOD(BeginHemisphere)(THIS_ - LPDIRECT3DTEXTURE9 pTexZPos, - LPDIRECT3DTEXTURE9 pTexZNeg) PURE; - - STDMETHOD(BeginParabolic)(THIS_ - LPDIRECT3DTEXTURE9 pTexZPos, - LPDIRECT3DTEXTURE9 pTexZNeg) PURE; - - STDMETHOD(Face)(THIS_ D3DCUBEMAP_FACES Face, DWORD MipFilter) PURE; - STDMETHOD(End)(THIS_ DWORD MipFilter) PURE; - - STDMETHOD(OnLostDevice)(THIS) PURE; - STDMETHOD(OnResetDevice)(THIS) PURE; -}; - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -HRESULT WINAPI - D3DXCreateRenderToEnvMap( - LPDIRECT3DDEVICE9 pDevice, - UINT Size, - UINT MipLevels, - D3DFORMAT Format, - BOOL DepthStencil, - D3DFORMAT DepthStencilFormat, - LPD3DXRenderToEnvMap* ppRenderToEnvMap); - -#ifdef __cplusplus -} -#endif //__cplusplus - - - -/////////////////////////////////////////////////////////////////////////// -// ID3DXLine: -// ------------ -// This object intends to provide an easy way to draw lines using D3D. -// -// Begin - -// Prepares device for drawing lines -// -// Draw - -// Draws a line strip in screen-space. -// Input is in the form of a array defining points on the line strip. of D3DXVECTOR2 -// -// DrawTransform - -// Draws a line in screen-space with a specified input transformation matrix. -// -// End - -// Restores device state to how it was when Begin was called. -// -// SetPattern - -// Applies a stipple pattern to the line. Input is one 32-bit -// DWORD which describes the stipple pattern. 1 is opaque, 0 is -// transparent. -// -// SetPatternScale - -// Stretches the stipple pattern in the u direction. Input is one -// floating-point value. 0.0f is no scaling, whereas 1.0f doubles -// the length of the stipple pattern. -// -// SetWidth - -// Specifies the thickness of the line in the v direction. Input is -// one floating-point value. -// -// SetAntialias - -// Toggles line antialiasing. Input is a BOOL. -// TRUE = Antialiasing on. -// FALSE = Antialiasing off. -// -// SetGLLines - -// Toggles non-antialiased OpenGL line emulation. Input is a BOOL. -// TRUE = OpenGL line emulation on. -// FALSE = OpenGL line emulation off. -// -// OpenGL line: Regular line: -// *\ *\ -// | \ / \ -// | \ *\ \ -// *\ \ \ \ -// \ \ \ \ -// \ * \ * -// \ | \ / -// \| * -// * -// -// OnLostDevice, OnResetDevice - -// Call OnLostDevice() on this object before calling Reset() on the -// device, so that this object can release any stateblocks and video -// memory resources. After Reset(), the call OnResetDevice(). -/////////////////////////////////////////////////////////////////////////// - - -typedef interface ID3DXLine ID3DXLine; -typedef interface ID3DXLine *LPD3DXLINE; - - -// {D379BA7F-9042-4ac4-9F5E-58192A4C6BD8} -DEFINE_GUID(IID_ID3DXLine, -0xd379ba7f, 0x9042, 0x4ac4, 0x9f, 0x5e, 0x58, 0x19, 0x2a, 0x4c, 0x6b, 0xd8); - -#undef INTERFACE -#define INTERFACE ID3DXLine - -DECLARE_INTERFACE_(ID3DXLine, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXLine - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9* ppDevice) PURE; - - STDMETHOD(Begin)(THIS) PURE; - - STDMETHOD(Draw)(THIS_ CONST D3DXVECTOR2 *pVertexList, - DWORD dwVertexListCount, D3DCOLOR Color) PURE; - - STDMETHOD(DrawTransform)(THIS_ CONST D3DXVECTOR3 *pVertexList, - DWORD dwVertexListCount, CONST D3DXMATRIX* pTransform, - D3DCOLOR Color) PURE; - - STDMETHOD(SetPattern)(THIS_ DWORD dwPattern) PURE; - STDMETHOD_(DWORD, GetPattern)(THIS) PURE; - - STDMETHOD(SetPatternScale)(THIS_ FLOAT fPatternScale) PURE; - STDMETHOD_(FLOAT, GetPatternScale)(THIS) PURE; - - STDMETHOD(SetWidth)(THIS_ FLOAT fWidth) PURE; - STDMETHOD_(FLOAT, GetWidth)(THIS) PURE; - - STDMETHOD(SetAntialias)(THIS_ BOOL bAntialias) PURE; - STDMETHOD_(BOOL, GetAntialias)(THIS) PURE; - - STDMETHOD(SetGLLines)(THIS_ BOOL bGLLines) PURE; - STDMETHOD_(BOOL, GetGLLines)(THIS) PURE; - - STDMETHOD(End)(THIS) PURE; - - STDMETHOD(OnLostDevice)(THIS) PURE; - STDMETHOD(OnResetDevice)(THIS) PURE; -}; - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - - -HRESULT WINAPI - D3DXCreateLine( - LPDIRECT3DDEVICE9 pDevice, - LPD3DXLINE* ppLine); - -#ifdef __cplusplus -} -#endif //__cplusplus - -#endif //__D3DX9CORE_H__ - diff --git a/sdk/dx8sdk/Include/d3dx9effect.h b/sdk/dx8sdk/Include/d3dx9effect.h deleted file mode 100644 index 3359a1d5..00000000 --- a/sdk/dx8sdk/Include/d3dx9effect.h +++ /dev/null @@ -1,781 +0,0 @@ - -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// File: d3dx9effect.h -// Content: D3DX effect types and Shaders -// -////////////////////////////////////////////////////////////////////////////// - -#include "d3dx9.h" - -#ifndef __D3DX9EFFECT_H__ -#define __D3DX9EFFECT_H__ - - -//---------------------------------------------------------------------------- -// D3DXFX_DONOTSAVESTATE -// This flag is used as a parameter to ID3DXEffect::Begin(). When this flag -// is specified, device state is not saved or restored in Begin/End. -// D3DXFX_DONOTSAVESHADERSTATE -// This flag is used as a parameter to ID3DXEffect::Begin(). When this flag -// is specified, shader device state is not saved or restored in Begin/End. -// This includes pixel/vertex shaders and shader constants -// D3DXFX_DONOTSAVESAMPLERSTATE -// This flag is used as a parameter to ID3DXEffect::Begin(). When this flag -// is specified, sampler device state is not saved or restored in Begin/End. -//---------------------------------------------------------------------------- - -#define D3DXFX_DONOTSAVESTATE (1 << 0) -#define D3DXFX_DONOTSAVESHADERSTATE (1 << 1) -#define D3DXFX_DONOTSAVESAMPLERSTATE (1 << 2) - - -//---------------------------------------------------------------------------- -// D3DX_PARAMETER_SHARED -// Indicates that the value of a parameter will be shared with all effects -// which share the same namespace. Changing the value in one effect will -// change it in all. -// -// D3DX_PARAMETER_LITERAL -// Indicates that the value of this parameter can be treated as literal. -// Literal parameters can be marked when the effect is compiled, and their -// cannot be changed after the effect is compiled. Shared parameters cannot -// be literal. -//---------------------------------------------------------------------------- - -#define D3DX_PARAMETER_SHARED (1 << 0) -#define D3DX_PARAMETER_LITERAL (1 << 1) -#define D3DX_PARAMETER_ANNOTATION (1 << 2) - - -//---------------------------------------------------------------------------- -// D3DXEFFECT_DESC: -//---------------------------------------------------------------------------- - -typedef struct _D3DXEFFECT_DESC -{ - LPCSTR Creator; // Creator string - UINT Parameters; // Number of parameters - UINT Techniques; // Number of techniques - UINT Functions; // Number of function entrypoints - -} D3DXEFFECT_DESC; - - -//---------------------------------------------------------------------------- -// D3DXPARAMETER_DESC: -//---------------------------------------------------------------------------- - -typedef struct _D3DXPARAMETER_DESC -{ - LPCSTR Name; // Parameter name - LPCSTR Semantic; // Parameter semantic - D3DXPARAMETER_CLASS Class; // Class - D3DXPARAMETER_TYPE Type; // Component type - UINT Rows; // Number of rows - UINT Columns; // Number of columns - UINT Elements; // Number of array elements - UINT Annotations; // Number of annotations - UINT StructMembers; // Number of structure member sub-parameters - DWORD Flags; // D3DX_PARAMETER_* flags - UINT Bytes; // Parameter size, in bytes - -} D3DXPARAMETER_DESC; - - -//---------------------------------------------------------------------------- -// D3DXTECHNIQUE_DESC: -//---------------------------------------------------------------------------- - -typedef struct _D3DXTECHNIQUE_DESC -{ - LPCSTR Name; // Technique name - UINT Passes; // Number of passes - UINT Annotations; // Number of annotations - -} D3DXTECHNIQUE_DESC; - - -//---------------------------------------------------------------------------- -// D3DXPASS_DESC: -//---------------------------------------------------------------------------- - -typedef struct _D3DXPASS_DESC -{ - LPCSTR Name; // Pass name - UINT Annotations; // Number of annotations - - CONST DWORD *pVertexShaderFunction; // Vertex shader function - CONST DWORD *pPixelShaderFunction; // Pixel shader function - -} D3DXPASS_DESC; - - -//---------------------------------------------------------------------------- -// D3DXFUNCTION_DESC: -//---------------------------------------------------------------------------- - -typedef struct _D3DXFUNCTION_DESC -{ - LPCSTR Name; // Function name - UINT Annotations; // Number of annotations - -} D3DXFUNCTION_DESC; - - - -////////////////////////////////////////////////////////////////////////////// -// ID3DXEffectPool /////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -typedef interface ID3DXEffectPool ID3DXEffectPool; -typedef interface ID3DXEffectPool *LPD3DXEFFECTPOOL; - -// {9537AB04-3250-412e-8213-FCD2F8677933} -DEFINE_GUID(IID_ID3DXEffectPool, -0x9537ab04, 0x3250, 0x412e, 0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33); - - -#undef INTERFACE -#define INTERFACE ID3DXEffectPool - -DECLARE_INTERFACE_(ID3DXEffectPool, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // No public methods -}; - - -////////////////////////////////////////////////////////////////////////////// -// ID3DXBaseEffect /////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -typedef interface ID3DXBaseEffect ID3DXBaseEffect; -typedef interface ID3DXBaseEffect *LPD3DXBASEEFFECT; - -// {3B7A6FFB-3A69-46d7-BC01-A6B2AD4C2BB0} -DEFINE_GUID(IID_ID3DXBaseEffect, -0x3b7a6ffb, 0x3a69, 0x46d7, 0xbc, 0x1, 0xa6, 0xb2, 0xad, 0x4c, 0x2b, 0xb0); - - -#undef INTERFACE -#define INTERFACE ID3DXBaseEffect - -DECLARE_INTERFACE_(ID3DXBaseEffect, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // Descs - STDMETHOD(GetDesc)(THIS_ D3DXEFFECT_DESC* pDesc) PURE; - STDMETHOD(GetParameterDesc)(THIS_ D3DXHANDLE hParameter, D3DXPARAMETER_DESC* pDesc) PURE; - STDMETHOD(GetTechniqueDesc)(THIS_ D3DXHANDLE hTechnique, D3DXTECHNIQUE_DESC* pDesc) PURE; - STDMETHOD(GetPassDesc)(THIS_ D3DXHANDLE hPass, D3DXPASS_DESC* pDesc) PURE; - STDMETHOD(GetFunctionDesc)(THIS_ D3DXHANDLE hShader, D3DXFUNCTION_DESC* pDesc) PURE; - - // Handle operations - STDMETHOD_(D3DXHANDLE, GetParameter)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetParameterByName)(THIS_ D3DXHANDLE hParameter, LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetParameterBySemantic)(THIS_ D3DXHANDLE hParameter, LPCSTR pSemantic) PURE; - STDMETHOD_(D3DXHANDLE, GetParameterElement)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetTechnique)(THIS_ UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetTechniqueByName)(THIS_ LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetPass)(THIS_ D3DXHANDLE hTechnique, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetPassByName)(THIS_ D3DXHANDLE hTechnique, LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetFunction)(THIS_ UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetFunctionByName)(THIS_ LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetAnnotation)(THIS_ D3DXHANDLE hObject, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetAnnotationByName)(THIS_ D3DXHANDLE hObject, LPCSTR pName) PURE; - - // Get/Set Parameters - STDMETHOD(SetValue)(THIS_ D3DXHANDLE hParameter, LPCVOID pData, UINT Bytes) PURE; - STDMETHOD(GetValue)(THIS_ D3DXHANDLE hParameter, LPVOID pData, UINT Bytes) PURE; - STDMETHOD(SetBool)(THIS_ D3DXHANDLE hParameter, BOOL b) PURE; - STDMETHOD(GetBool)(THIS_ D3DXHANDLE hParameter, BOOL* pb) PURE; - STDMETHOD(SetBoolArray)(THIS_ D3DXHANDLE hParameter, CONST BOOL* pb, UINT Count) PURE; - STDMETHOD(GetBoolArray)(THIS_ D3DXHANDLE hParameter, BOOL* pb, UINT Count) PURE; - STDMETHOD(SetInt)(THIS_ D3DXHANDLE hParameter, INT n) PURE; - STDMETHOD(GetInt)(THIS_ D3DXHANDLE hParameter, INT* pn) PURE; - STDMETHOD(SetIntArray)(THIS_ D3DXHANDLE hParameter, CONST INT* pn, UINT Count) PURE; - STDMETHOD(GetIntArray)(THIS_ D3DXHANDLE hParameter, INT* pn, UINT Count) PURE; - STDMETHOD(SetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT f) PURE; - STDMETHOD(GetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT* pf) PURE; - STDMETHOD(SetFloatArray)(THIS_ D3DXHANDLE hParameter, CONST FLOAT* pf, UINT Count) PURE; - STDMETHOD(GetFloatArray)(THIS_ D3DXHANDLE hParameter, FLOAT* pf, UINT Count) PURE; - STDMETHOD(SetVector)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector) PURE; - STDMETHOD(GetVector)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector) PURE; - STDMETHOD(SetVectorArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector, UINT Count) PURE; - STDMETHOD(GetVectorArray)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector, UINT Count) PURE; - STDMETHOD(SetMatrix)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE; - STDMETHOD(GetMatrix)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE; - STDMETHOD(SetMatrixArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(GetMatrixArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(GetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE; - STDMETHOD(GetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE; - STDMETHOD(SetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(GetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(GetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(SetString)(THIS_ D3DXHANDLE hParameter, LPCSTR pString) PURE; - STDMETHOD(GetString)(THIS_ D3DXHANDLE hParameter, LPCSTR* ppString) PURE; - STDMETHOD(SetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 pTexture) PURE; - STDMETHOD(GetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 *ppTexture) PURE; - STDMETHOD(SetPixelShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DPIXELSHADER9 pPShader) PURE; - STDMETHOD(GetPixelShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DPIXELSHADER9 *ppPShader) PURE; - STDMETHOD(SetVertexShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 pVShader) PURE; - STDMETHOD(GetVertexShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 *ppVShader) PURE; - - //Set Range of an Array to pass to device - //Useful for sending only a subrange of an array down to the device - STDMETHOD(SetArrayRange)(THIS_ D3DXHANDLE hParameter, UINT uStart, UINT uEnd) PURE; - -}; - - -//---------------------------------------------------------------------------- -// ID3DXEffectStateManager: -// ------------------------ -// This is a user implemented interface that can be used to manage device -// state changes made by an Effect. -//---------------------------------------------------------------------------- - -typedef interface ID3DXEffectStateManager ID3DXEffectStateManager; -typedef interface ID3DXEffectStateManager *LPD3DXEFFECTSTATEMANAGER; - -// {79AAB587-6DBC-4fa7-82DE-37FA1781C5CE} -DEFINE_GUID(IID_ID3DXEffectStateManager, -0x79aab587, 0x6dbc, 0x4fa7, 0x82, 0xde, 0x37, 0xfa, 0x17, 0x81, 0xc5, 0xce); - -#undef INTERFACE -#define INTERFACE ID3DXEffectStateManager - -DECLARE_INTERFACE_(ID3DXEffectStateManager, IUnknown) -{ - // The user must correctly implement QueryInterface, AddRef, and Release. - - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // The following methods are called by the Effect when it wants to make - // the corresponding device call. Note that: - // 1. Users manage the state and are therefore responsible for making the - // the corresponding device calls themselves inside their callbacks. - // 2. Effects pay attention to the return values of the callbacks, and so - // users must pay attention to what they return in their callbacks. - - STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX *pMatrix) PURE; - STDMETHOD(SetMaterial)(THIS_ CONST D3DMATERIAL9 *pMaterial) PURE; - STDMETHOD(SetLight)(THIS_ DWORD Index, CONST D3DLIGHT9 *pLight) PURE; - STDMETHOD(LightEnable)(THIS_ DWORD Index, BOOL Enable) PURE; - STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State, DWORD Value) PURE; - STDMETHOD(SetTexture)(THIS_ DWORD Stage, LPDIRECT3DBASETEXTURE9 pTexture) PURE; - STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value) PURE; - STDMETHOD(SetSamplerState)(THIS_ DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value) PURE; - STDMETHOD(SetNPatchMode)(THIS_ FLOAT NumSegments) PURE; - STDMETHOD(SetFVF)(THIS_ DWORD FVF) PURE; - STDMETHOD(SetVertexShader)(THIS_ LPDIRECT3DVERTEXSHADER9 pShader) PURE; - STDMETHOD(SetVertexShaderConstantF)(THIS_ UINT RegisterIndex, CONST FLOAT *pConstantData, UINT RegisterCount) PURE; - STDMETHOD(SetVertexShaderConstantI)(THIS_ UINT RegisterIndex, CONST INT *pConstantData, UINT RegisterCount) PURE; - STDMETHOD(SetVertexShaderConstantB)(THIS_ UINT RegisterIndex, CONST BOOL *pConstantData, UINT RegisterCount) PURE; - STDMETHOD(SetPixelShader)(THIS_ LPDIRECT3DPIXELSHADER9 pShader) PURE; - STDMETHOD(SetPixelShaderConstantF)(THIS_ UINT RegisterIndex, CONST FLOAT *pConstantData, UINT RegisterCount) PURE; - STDMETHOD(SetPixelShaderConstantI)(THIS_ UINT RegisterIndex, CONST INT *pConstantData, UINT RegisterCount) PURE; - STDMETHOD(SetPixelShaderConstantB)(THIS_ UINT RegisterIndex, CONST BOOL *pConstantData, UINT RegisterCount) PURE; -}; - - -////////////////////////////////////////////////////////////////////////////// -// ID3DXEffect /////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -typedef interface ID3DXEffect ID3DXEffect; -typedef interface ID3DXEffect *LPD3DXEFFECT; - -// {0F0DCC9F-6152-4117-A933-FFAC29C43AA4} -DEFINE_GUID(IID_ID3DXEffect, -0xf0dcc9f, 0x6152, 0x4117, 0xa9, 0x33, 0xff, 0xac, 0x29, 0xc4, 0x3a, 0xa4); - -#undef INTERFACE -#define INTERFACE ID3DXEffect - -DECLARE_INTERFACE_(ID3DXEffect, ID3DXBaseEffect) -{ - // ID3DXBaseEffect - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // Descs - STDMETHOD(GetDesc)(THIS_ D3DXEFFECT_DESC* pDesc) PURE; - STDMETHOD(GetParameterDesc)(THIS_ D3DXHANDLE hParameter, D3DXPARAMETER_DESC* pDesc) PURE; - STDMETHOD(GetTechniqueDesc)(THIS_ D3DXHANDLE hTechnique, D3DXTECHNIQUE_DESC* pDesc) PURE; - STDMETHOD(GetPassDesc)(THIS_ D3DXHANDLE hPass, D3DXPASS_DESC* pDesc) PURE; - STDMETHOD(GetFunctionDesc)(THIS_ D3DXHANDLE hShader, D3DXFUNCTION_DESC* pDesc) PURE; - - // Handle operations - STDMETHOD_(D3DXHANDLE, GetParameter)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetParameterByName)(THIS_ D3DXHANDLE hParameter, LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetParameterBySemantic)(THIS_ D3DXHANDLE hParameter, LPCSTR pSemantic) PURE; - STDMETHOD_(D3DXHANDLE, GetParameterElement)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetTechnique)(THIS_ UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetTechniqueByName)(THIS_ LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetPass)(THIS_ D3DXHANDLE hTechnique, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetPassByName)(THIS_ D3DXHANDLE hTechnique, LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetFunction)(THIS_ UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetFunctionByName)(THIS_ LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetAnnotation)(THIS_ D3DXHANDLE hObject, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetAnnotationByName)(THIS_ D3DXHANDLE hObject, LPCSTR pName) PURE; - - // Get/Set Parameters - STDMETHOD(SetValue)(THIS_ D3DXHANDLE hParameter, LPCVOID pData, UINT Bytes) PURE; - STDMETHOD(GetValue)(THIS_ D3DXHANDLE hParameter, LPVOID pData, UINT Bytes) PURE; - STDMETHOD(SetBool)(THIS_ D3DXHANDLE hParameter, BOOL b) PURE; - STDMETHOD(GetBool)(THIS_ D3DXHANDLE hParameter, BOOL* pb) PURE; - STDMETHOD(SetBoolArray)(THIS_ D3DXHANDLE hParameter, CONST BOOL* pb, UINT Count) PURE; - STDMETHOD(GetBoolArray)(THIS_ D3DXHANDLE hParameter, BOOL* pb, UINT Count) PURE; - STDMETHOD(SetInt)(THIS_ D3DXHANDLE hParameter, INT n) PURE; - STDMETHOD(GetInt)(THIS_ D3DXHANDLE hParameter, INT* pn) PURE; - STDMETHOD(SetIntArray)(THIS_ D3DXHANDLE hParameter, CONST INT* pn, UINT Count) PURE; - STDMETHOD(GetIntArray)(THIS_ D3DXHANDLE hParameter, INT* pn, UINT Count) PURE; - STDMETHOD(SetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT f) PURE; - STDMETHOD(GetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT* pf) PURE; - STDMETHOD(SetFloatArray)(THIS_ D3DXHANDLE hParameter, CONST FLOAT* pf, UINT Count) PURE; - STDMETHOD(GetFloatArray)(THIS_ D3DXHANDLE hParameter, FLOAT* pf, UINT Count) PURE; - STDMETHOD(SetVector)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector) PURE; - STDMETHOD(GetVector)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector) PURE; - STDMETHOD(SetVectorArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector, UINT Count) PURE; - STDMETHOD(GetVectorArray)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector, UINT Count) PURE; - STDMETHOD(SetMatrix)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE; - STDMETHOD(GetMatrix)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE; - STDMETHOD(SetMatrixArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(GetMatrixArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(GetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE; - STDMETHOD(GetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE; - STDMETHOD(SetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(GetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(GetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(SetString)(THIS_ D3DXHANDLE hParameter, LPCSTR pString) PURE; - STDMETHOD(GetString)(THIS_ D3DXHANDLE hParameter, LPCSTR* ppString) PURE; - STDMETHOD(SetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 pTexture) PURE; - STDMETHOD(GetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 *ppTexture) PURE; - STDMETHOD(SetPixelShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DPIXELSHADER9 pPShader) PURE; - STDMETHOD(GetPixelShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DPIXELSHADER9 *ppPShader) PURE; - STDMETHOD(SetVertexShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 pVShader) PURE; - STDMETHOD(GetVertexShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 *ppVShader) PURE; - - //Set Range of an Array to pass to device - //Usefull for sending only a subrange of an array down to the device - STDMETHOD(SetArrayRange)(THIS_ D3DXHANDLE hParameter, UINT uStart, UINT uEnd) PURE; - // ID3DXBaseEffect - - - // Pool - STDMETHOD(GetPool)(THIS_ LPD3DXEFFECTPOOL* ppPool) PURE; - - // Selecting and setting a technique - STDMETHOD(SetTechnique)(THIS_ D3DXHANDLE hTechnique) PURE; - STDMETHOD_(D3DXHANDLE, GetCurrentTechnique)(THIS) PURE; - STDMETHOD(ValidateTechnique)(THIS_ D3DXHANDLE hTechnique) PURE; - STDMETHOD(FindNextValidTechnique)(THIS_ D3DXHANDLE hTechnique, D3DXHANDLE *pTechnique) PURE; - STDMETHOD_(BOOL, IsParameterUsed)(THIS_ D3DXHANDLE hParameter, D3DXHANDLE hTechnique) PURE; - - // Using current technique - // Begin starts active technique - // BeginPass begins a pass - // CommitChanges updates changes to any set calls in the pass. This should be called before - // any DrawPrimitive call to d3d - // EndPass ends a pass - // End ends active technique - STDMETHOD(Begin)(THIS_ UINT *pPasses, DWORD Flags) PURE; - STDMETHOD(BeginPass)(THIS_ UINT Pass) PURE; - STDMETHOD(CommitChanges)(THIS) PURE; - STDMETHOD(EndPass)(THIS) PURE; - STDMETHOD(End)(THIS) PURE; - - // Managing D3D Device - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9* ppDevice) PURE; - STDMETHOD(OnLostDevice)(THIS) PURE; - STDMETHOD(OnResetDevice)(THIS) PURE; - - // Logging device calls - STDMETHOD(SetStateManager)(THIS_ LPD3DXEFFECTSTATEMANAGER pManager) PURE; - STDMETHOD(GetStateManager)(THIS_ LPD3DXEFFECTSTATEMANAGER *ppManager) PURE; - - // Parameter blocks - STDMETHOD(BeginParameterBlock)(THIS) PURE; - STDMETHOD_(D3DXHANDLE, EndParameterBlock)(THIS) PURE; - STDMETHOD(ApplyParameterBlock)(THIS_ D3DXHANDLE hParameterBlock) PURE; - - // Cloning - STDMETHOD(CloneEffect)(THIS_ LPDIRECT3DDEVICE9 pDevice, LPD3DXEFFECT* ppEffect) PURE; -}; - - -////////////////////////////////////////////////////////////////////////////// -// ID3DXEffectCompiler /////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -typedef interface ID3DXEffectCompiler ID3DXEffectCompiler; -typedef interface ID3DXEffectCompiler *LPD3DXEFFECTCOMPILER; - -// {15A709EB-5A8E-40a0-86A9-0C024124339B} -DEFINE_GUID(IID_ID3DXEffectCompiler, -0x15a709eb, 0x5a8e, 0x40a0, 0x86, 0xa9, 0xc, 0x2, 0x41, 0x24, 0x33, 0x9b); - - -#undef INTERFACE -#define INTERFACE ID3DXEffectCompiler - -DECLARE_INTERFACE_(ID3DXEffectCompiler, ID3DXBaseEffect) -{ - // ID3DXBaseEffect - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // Descs - STDMETHOD(GetDesc)(THIS_ D3DXEFFECT_DESC* pDesc) PURE; - STDMETHOD(GetParameterDesc)(THIS_ D3DXHANDLE hParameter, D3DXPARAMETER_DESC* pDesc) PURE; - STDMETHOD(GetTechniqueDesc)(THIS_ D3DXHANDLE hTechnique, D3DXTECHNIQUE_DESC* pDesc) PURE; - STDMETHOD(GetPassDesc)(THIS_ D3DXHANDLE hPass, D3DXPASS_DESC* pDesc) PURE; - STDMETHOD(GetFunctionDesc)(THIS_ D3DXHANDLE hShader, D3DXFUNCTION_DESC* pDesc) PURE; - - // Handle operations - STDMETHOD_(D3DXHANDLE, GetParameter)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetParameterByName)(THIS_ D3DXHANDLE hParameter, LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetParameterBySemantic)(THIS_ D3DXHANDLE hParameter, LPCSTR pSemantic) PURE; - STDMETHOD_(D3DXHANDLE, GetParameterElement)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetTechnique)(THIS_ UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetTechniqueByName)(THIS_ LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetPass)(THIS_ D3DXHANDLE hTechnique, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetPassByName)(THIS_ D3DXHANDLE hTechnique, LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetFunction)(THIS_ UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetFunctionByName)(THIS_ LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetAnnotation)(THIS_ D3DXHANDLE hObject, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetAnnotationByName)(THIS_ D3DXHANDLE hObject, LPCSTR pName) PURE; - - // Get/Set Parameters - STDMETHOD(SetValue)(THIS_ D3DXHANDLE hParameter, LPCVOID pData, UINT Bytes) PURE; - STDMETHOD(GetValue)(THIS_ D3DXHANDLE hParameter, LPVOID pData, UINT Bytes) PURE; - STDMETHOD(SetBool)(THIS_ D3DXHANDLE hParameter, BOOL b) PURE; - STDMETHOD(GetBool)(THIS_ D3DXHANDLE hParameter, BOOL* pb) PURE; - STDMETHOD(SetBoolArray)(THIS_ D3DXHANDLE hParameter, CONST BOOL* pb, UINT Count) PURE; - STDMETHOD(GetBoolArray)(THIS_ D3DXHANDLE hParameter, BOOL* pb, UINT Count) PURE; - STDMETHOD(SetInt)(THIS_ D3DXHANDLE hParameter, INT n) PURE; - STDMETHOD(GetInt)(THIS_ D3DXHANDLE hParameter, INT* pn) PURE; - STDMETHOD(SetIntArray)(THIS_ D3DXHANDLE hParameter, CONST INT* pn, UINT Count) PURE; - STDMETHOD(GetIntArray)(THIS_ D3DXHANDLE hParameter, INT* pn, UINT Count) PURE; - STDMETHOD(SetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT f) PURE; - STDMETHOD(GetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT* pf) PURE; - STDMETHOD(SetFloatArray)(THIS_ D3DXHANDLE hParameter, CONST FLOAT* pf, UINT Count) PURE; - STDMETHOD(GetFloatArray)(THIS_ D3DXHANDLE hParameter, FLOAT* pf, UINT Count) PURE; - STDMETHOD(SetVector)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector) PURE; - STDMETHOD(GetVector)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector) PURE; - STDMETHOD(SetVectorArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector, UINT Count) PURE; - STDMETHOD(GetVectorArray)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector, UINT Count) PURE; - STDMETHOD(SetMatrix)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE; - STDMETHOD(GetMatrix)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE; - STDMETHOD(SetMatrixArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(GetMatrixArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(GetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE; - STDMETHOD(GetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE; - STDMETHOD(SetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(GetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(GetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(SetString)(THIS_ D3DXHANDLE hParameter, LPCSTR pString) PURE; - STDMETHOD(GetString)(THIS_ D3DXHANDLE hParameter, LPCSTR* ppString) PURE; - STDMETHOD(SetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 pTexture) PURE; - STDMETHOD(GetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 *ppTexture) PURE; - STDMETHOD(SetPixelShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DPIXELSHADER9 pPShader) PURE; - STDMETHOD(GetPixelShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DPIXELSHADER9 *ppPShader) PURE; - STDMETHOD(SetVertexShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 pVShader) PURE; - STDMETHOD(GetVertexShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 *ppVShader) PURE; - - //Set Range of an Array to pass to device - //Usefull for sending only a subrange of an array down to the device - STDMETHOD(SetArrayRange)(THIS_ D3DXHANDLE hParameter, UINT uStart, UINT uEnd) PURE; - // ID3DXBaseEffect - - // Parameter sharing, specialization, and information - STDMETHOD(SetLiteral)(THIS_ D3DXHANDLE hParameter, BOOL Literal) PURE; - STDMETHOD(GetLiteral)(THIS_ D3DXHANDLE hParameter, BOOL *pLiteral) PURE; - - // Compilation - STDMETHOD(CompileEffect)(THIS_ DWORD Flags, - LPD3DXBUFFER* ppEffect, LPD3DXBUFFER* ppErrorMsgs) PURE; - - STDMETHOD(CompileShader)(THIS_ D3DXHANDLE hFunction, LPCSTR pTarget, DWORD Flags, - LPD3DXBUFFER* ppShader, LPD3DXBUFFER* ppErrorMsgs, LPD3DXCONSTANTTABLE* ppConstantTable) PURE; -}; - - -////////////////////////////////////////////////////////////////////////////// -// APIs ////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -//---------------------------------------------------------------------------- -// D3DXCreateEffectPool: -// --------------------- -// Creates an effect pool. Pools are used for sharing parameters between -// multiple effects. For all effects within a pool, shared parameters of the -// same name all share the same value. -// -// Parameters: -// ppPool -// Returns the created pool. -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXCreateEffectPool( - LPD3DXEFFECTPOOL* ppPool); - - -//---------------------------------------------------------------------------- -// D3DXCreateEffect: -// ----------------- -// Creates an effect from an ascii or binary effect description. -// -// Parameters: -// pDevice -// Pointer of the device on which to create the effect -// pSrcFile -// Name of the file containing the effect description -// hSrcModule -// Module handle. if NULL, current module will be used. -// pSrcResource -// Resource name in module -// pSrcData -// Pointer to effect description -// SrcDataSize -// Size of the effect description 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. -// pPool -// Pointer to ID3DXEffectPool object to use for shared parameters. -// If NULL, no parameters will be shared. -// ppEffect -// Returns a buffer containing created effect. -// ppCompilationErrors -// Returns a buffer containing any error messages which occurred during -// compile. Or NULL if you do not care about the error messages. -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXCreateEffectFromFileA( - LPDIRECT3DDEVICE9 pDevice, - LPCSTR pSrcFile, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXEFFECTPOOL pPool, - LPD3DXEFFECT* ppEffect, - LPD3DXBUFFER* ppCompilationErrors); - -HRESULT WINAPI - D3DXCreateEffectFromFileW( - LPDIRECT3DDEVICE9 pDevice, - LPCWSTR pSrcFile, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXEFFECTPOOL pPool, - LPD3DXEFFECT* ppEffect, - LPD3DXBUFFER* ppCompilationErrors); - -#ifdef UNICODE -#define D3DXCreateEffectFromFile D3DXCreateEffectFromFileW -#else -#define D3DXCreateEffectFromFile D3DXCreateEffectFromFileA -#endif - - -HRESULT WINAPI - D3DXCreateEffectFromResourceA( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXEFFECTPOOL pPool, - LPD3DXEFFECT* ppEffect, - LPD3DXBUFFER* ppCompilationErrors); - -HRESULT WINAPI - D3DXCreateEffectFromResourceW( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXEFFECTPOOL pPool, - LPD3DXEFFECT* ppEffect, - LPD3DXBUFFER* ppCompilationErrors); - -#ifdef UNICODE -#define D3DXCreateEffectFromResource D3DXCreateEffectFromResourceW -#else -#define D3DXCreateEffectFromResource D3DXCreateEffectFromResourceA -#endif - - -HRESULT WINAPI - D3DXCreateEffect( - LPDIRECT3DDEVICE9 pDevice, - LPCVOID pSrcData, - UINT SrcDataLen, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXEFFECTPOOL pPool, - LPD3DXEFFECT* ppEffect, - LPD3DXBUFFER* ppCompilationErrors); - - - -//---------------------------------------------------------------------------- -// D3DXCreateEffectCompiler: -// ------------------------- -// Creates an effect from an ascii or binary effect description. -// -// Parameters: -// pSrcFile -// Name of the file containing the effect description -// hSrcModule -// Module handle. if NULL, current module will be used. -// pSrcResource -// Resource name in module -// pSrcData -// Pointer to effect description -// SrcDataSize -// Size of the effect description 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. -// pPool -// Pointer to ID3DXEffectPool object to use for shared parameters. -// If NULL, no parameters will be shared. -// ppCompiler -// Returns a buffer containing created effect compiler. -// ppParseErrors -// Returns a buffer containing any error messages which occurred during -// parse. Or NULL if you do not care about the error messages. -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXCreateEffectCompilerFromFileA( - LPCSTR pSrcFile, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXEFFECTCOMPILER* ppCompiler, - LPD3DXBUFFER* ppParseErrors); - -HRESULT WINAPI - D3DXCreateEffectCompilerFromFileW( - LPCWSTR pSrcFile, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXEFFECTCOMPILER* ppCompiler, - LPD3DXBUFFER* ppParseErrors); - -#ifdef UNICODE -#define D3DXCreateEffectCompilerFromFile D3DXCreateEffectCompilerFromFileW -#else -#define D3DXCreateEffectCompilerFromFile D3DXCreateEffectCompilerFromFileA -#endif - - -HRESULT WINAPI - D3DXCreateEffectCompilerFromResourceA( - HMODULE hSrcModule, - LPCSTR pSrcResource, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXEFFECTCOMPILER* ppCompiler, - LPD3DXBUFFER* ppParseErrors); - -HRESULT WINAPI - D3DXCreateEffectCompilerFromResourceW( - HMODULE hSrcModule, - LPCWSTR pSrcResource, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXEFFECTCOMPILER* ppCompiler, - LPD3DXBUFFER* ppParseErrors); - -#ifdef UNICODE -#define D3DXCreateEffectCompilerFromResource D3DXCreateEffectCompilerFromResourceW -#else -#define D3DXCreateEffectCompilerFromResource D3DXCreateEffectCompilerFromResourceA -#endif - - -HRESULT WINAPI - D3DXCreateEffectCompiler( - LPCSTR pSrcData, - UINT SrcDataLen, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXEFFECTCOMPILER* ppCompiler, - LPD3DXBUFFER* ppParseErrors); - -//---------------------------------------------------------------------------- -// D3DXDisassembleEffect: -// ----------------------- -// -// Parameters: -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXDisassembleEffect( - LPD3DXEFFECT pEffect, - BOOL EnableColorCode, - LPD3DXBUFFER *ppDisassembly); - - - -#ifdef __cplusplus -} -#endif //__cplusplus - -#endif //__D3DX9EFFECT_H__ - - diff --git a/sdk/dx8sdk/Include/d3dx9math.h b/sdk/dx8sdk/Include/d3dx9math.h deleted file mode 100644 index 2ba4a606..00000000 --- a/sdk/dx8sdk/Include/d3dx9math.h +++ /dev/null @@ -1,1765 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx9math.h -// Content: D3DX math types and functions -// -////////////////////////////////////////////////////////////////////////////// - -#include "d3dx9.h" - -#ifndef __D3DX9MATH_H__ -#define __D3DX9MATH_H__ - -#include -#if _MSC_VER >= 1200 -#pragma warning(push) -#endif -#pragma warning(disable:4201) // anonymous unions warning - - - -//=========================================================================== -// -// General purpose utilities -// -//=========================================================================== -#define D3DX_PI ((FLOAT) 3.141592654f) -#define D3DX_1BYPI ((FLOAT) 0.318309886f) - -#define D3DXToRadian( degree ) ((degree) * (D3DX_PI / 180.0f)) -#define D3DXToDegree( radian ) ((radian) * (180.0f / D3DX_PI)) - - - -//=========================================================================== -// -// 16 bit floating point numbers -// -//=========================================================================== - -#define D3DX_16F_DIG 3 // # of decimal digits of precision -#define D3DX_16F_EPSILON 4.8875809e-4f // smallest such that 1.0 + epsilon != 1.0 -#define D3DX_16F_MANT_DIG 11 // # of bits in mantissa -#define D3DX_16F_MAX 6.550400e+004 // max value -#define D3DX_16F_MAX_10_EXP 4 // max decimal exponent -#define D3DX_16F_MAX_EXP 15 // max binary exponent -#define D3DX_16F_MIN 6.1035156e-5f // min positive value -#define D3DX_16F_MIN_10_EXP (-4) // min decimal exponent -#define D3DX_16F_MIN_EXP (-12) // min binary exponent -#define D3DX_16F_RADIX 2 // exponent radix -#define D3DX_16F_ROUNDS 1 // addition rounding: near - - -typedef struct D3DXFLOAT16 -{ -#ifdef __cplusplus -public: - D3DXFLOAT16() {}; - D3DXFLOAT16( FLOAT ); - D3DXFLOAT16( CONST D3DXFLOAT16& ); - - // casting - operator FLOAT (); - - // binary operators - BOOL operator == ( CONST D3DXFLOAT16& ) const; - BOOL operator != ( CONST D3DXFLOAT16& ) const; - -protected: -#endif //__cplusplus - WORD value; -} D3DXFLOAT16, *LPD3DXFLOAT16; - - - -//=========================================================================== -// -// Vectors -// -//=========================================================================== - - -//-------------------------- -// 2D Vector -//-------------------------- -typedef struct D3DXVECTOR2 -{ -#ifdef __cplusplus -public: - D3DXVECTOR2() {}; - D3DXVECTOR2( CONST FLOAT * ); - D3DXVECTOR2( CONST D3DXFLOAT16 * ); - D3DXVECTOR2( FLOAT x, FLOAT y ); - - // casting - operator FLOAT* (); - operator CONST FLOAT* () const; - - // assignment operators - D3DXVECTOR2& operator += ( CONST D3DXVECTOR2& ); - D3DXVECTOR2& operator -= ( CONST D3DXVECTOR2& ); - D3DXVECTOR2& operator *= ( FLOAT ); - D3DXVECTOR2& operator /= ( FLOAT ); - - // unary operators - D3DXVECTOR2 operator + () const; - D3DXVECTOR2 operator - () const; - - // binary operators - D3DXVECTOR2 operator + ( CONST D3DXVECTOR2& ) const; - D3DXVECTOR2 operator - ( CONST D3DXVECTOR2& ) const; - D3DXVECTOR2 operator * ( FLOAT ) const; - D3DXVECTOR2 operator / ( FLOAT ) const; - - friend D3DXVECTOR2 operator * ( FLOAT, CONST D3DXVECTOR2& ); - - BOOL operator == ( CONST D3DXVECTOR2& ) const; - BOOL operator != ( CONST D3DXVECTOR2& ) const; - - -public: -#endif //__cplusplus - FLOAT x, y; -} D3DXVECTOR2, *LPD3DXVECTOR2; - - - -//-------------------------- -// 2D Vector (16 bit) -//-------------------------- - -typedef struct D3DXVECTOR2_16F -{ -#ifdef __cplusplus -public: - D3DXVECTOR2_16F() {}; - D3DXVECTOR2_16F( CONST FLOAT * ); - D3DXVECTOR2_16F( CONST D3DXFLOAT16 * ); - D3DXVECTOR2_16F( CONST D3DXFLOAT16 &x, CONST D3DXFLOAT16 &y ); - - // casting - operator D3DXFLOAT16* (); - operator CONST D3DXFLOAT16* () const; - - // binary operators - BOOL operator == ( CONST D3DXVECTOR2_16F& ) const; - BOOL operator != ( CONST D3DXVECTOR2_16F& ) const; - -public: -#endif //__cplusplus - D3DXFLOAT16 x, y; - -} D3DXVECTOR2_16F, *LPD3DXVECTOR2_16F; - - - -//-------------------------- -// 3D Vector -//-------------------------- -#ifdef __cplusplus -typedef struct D3DXVECTOR3 : public D3DVECTOR -{ -public: - D3DXVECTOR3() {}; - D3DXVECTOR3( CONST FLOAT * ); - D3DXVECTOR3( CONST D3DVECTOR& ); - D3DXVECTOR3( CONST D3DXFLOAT16 * ); - D3DXVECTOR3( FLOAT x, FLOAT y, FLOAT z ); - - // casting - operator FLOAT* (); - operator CONST FLOAT* () const; - - // assignment operators - D3DXVECTOR3& operator += ( CONST D3DXVECTOR3& ); - D3DXVECTOR3& operator -= ( CONST D3DXVECTOR3& ); - D3DXVECTOR3& operator *= ( FLOAT ); - D3DXVECTOR3& operator /= ( FLOAT ); - - // unary operators - D3DXVECTOR3 operator + () const; - D3DXVECTOR3 operator - () const; - - // binary operators - D3DXVECTOR3 operator + ( CONST D3DXVECTOR3& ) const; - D3DXVECTOR3 operator - ( CONST D3DXVECTOR3& ) const; - D3DXVECTOR3 operator * ( FLOAT ) const; - D3DXVECTOR3 operator / ( FLOAT ) const; - - friend D3DXVECTOR3 operator * ( FLOAT, CONST struct D3DXVECTOR3& ); - - BOOL operator == ( CONST D3DXVECTOR3& ) const; - BOOL operator != ( CONST D3DXVECTOR3& ) const; - -} D3DXVECTOR3, *LPD3DXVECTOR3; - -#else //!__cplusplus -typedef struct _D3DVECTOR D3DXVECTOR3, *LPD3DXVECTOR3; -#endif //!__cplusplus - - - -//-------------------------- -// 3D Vector (16 bit) -//-------------------------- -typedef struct D3DXVECTOR3_16F -{ -#ifdef __cplusplus -public: - D3DXVECTOR3_16F() {}; - D3DXVECTOR3_16F( CONST FLOAT * ); - D3DXVECTOR3_16F( CONST D3DVECTOR& ); - D3DXVECTOR3_16F( CONST D3DXFLOAT16 * ); - D3DXVECTOR3_16F( CONST D3DXFLOAT16 &x, CONST D3DXFLOAT16 &y, CONST D3DXFLOAT16 &z ); - - // casting - operator D3DXFLOAT16* (); - operator CONST D3DXFLOAT16* () const; - - // binary operators - BOOL operator == ( CONST D3DXVECTOR3_16F& ) const; - BOOL operator != ( CONST D3DXVECTOR3_16F& ) const; - -public: -#endif //__cplusplus - D3DXFLOAT16 x, y, z; - -} D3DXVECTOR3_16F, *LPD3DXVECTOR3_16F; - - - -//-------------------------- -// 4D Vector -//-------------------------- -typedef struct D3DXVECTOR4 -{ -#ifdef __cplusplus -public: - D3DXVECTOR4() {}; - D3DXVECTOR4( CONST FLOAT* ); - D3DXVECTOR4( CONST D3DXFLOAT16* ); - D3DXVECTOR4( CONST D3DVECTOR& xyz, FLOAT w ); - D3DXVECTOR4( FLOAT x, FLOAT y, FLOAT z, FLOAT w ); - - // casting - operator FLOAT* (); - operator CONST FLOAT* () const; - - // assignment operators - D3DXVECTOR4& operator += ( CONST D3DXVECTOR4& ); - D3DXVECTOR4& operator -= ( CONST D3DXVECTOR4& ); - D3DXVECTOR4& operator *= ( FLOAT ); - D3DXVECTOR4& operator /= ( FLOAT ); - - // unary operators - D3DXVECTOR4 operator + () const; - D3DXVECTOR4 operator - () const; - - // binary operators - D3DXVECTOR4 operator + ( CONST D3DXVECTOR4& ) const; - D3DXVECTOR4 operator - ( CONST D3DXVECTOR4& ) const; - D3DXVECTOR4 operator * ( FLOAT ) const; - D3DXVECTOR4 operator / ( FLOAT ) const; - - friend D3DXVECTOR4 operator * ( FLOAT, CONST D3DXVECTOR4& ); - - BOOL operator == ( CONST D3DXVECTOR4& ) const; - BOOL operator != ( CONST D3DXVECTOR4& ) const; - -public: -#endif //__cplusplus - FLOAT x, y, z, w; -} D3DXVECTOR4, *LPD3DXVECTOR4; - - -//-------------------------- -// 4D Vector (16 bit) -//-------------------------- -typedef struct D3DXVECTOR4_16F -{ -#ifdef __cplusplus -public: - D3DXVECTOR4_16F() {}; - D3DXVECTOR4_16F( CONST FLOAT * ); - D3DXVECTOR4_16F( CONST D3DXFLOAT16* ); - D3DXVECTOR4_16F( CONST D3DXVECTOR3_16F& xyz, CONST D3DXFLOAT16& w ); - D3DXVECTOR4_16F( CONST D3DXFLOAT16& x, CONST D3DXFLOAT16& y, CONST D3DXFLOAT16& z, CONST D3DXFLOAT16& w ); - - // casting - operator D3DXFLOAT16* (); - operator CONST D3DXFLOAT16* () const; - - // binary operators - BOOL operator == ( CONST D3DXVECTOR4_16F& ) const; - BOOL operator != ( CONST D3DXVECTOR4_16F& ) const; - -public: -#endif //__cplusplus - D3DXFLOAT16 x, y, z, w; - -} D3DXVECTOR4_16F, *LPD3DXVECTOR4_16F; - - - -//=========================================================================== -// -// Matrices -// -//=========================================================================== -#ifdef __cplusplus -typedef struct D3DXMATRIX : public D3DMATRIX -{ -public: - D3DXMATRIX() {}; - D3DXMATRIX( CONST FLOAT * ); - D3DXMATRIX( CONST D3DMATRIX& ); - D3DXMATRIX( CONST D3DXFLOAT16 * ); - D3DXMATRIX( FLOAT _11, FLOAT _12, FLOAT _13, FLOAT _14, - FLOAT _21, FLOAT _22, FLOAT _23, FLOAT _24, - FLOAT _31, FLOAT _32, FLOAT _33, FLOAT _34, - FLOAT _41, FLOAT _42, FLOAT _43, FLOAT _44 ); - - - // access grants - FLOAT& operator () ( UINT Row, UINT Col ); - FLOAT operator () ( UINT Row, UINT Col ) const; - - // casting operators - operator FLOAT* (); - operator CONST FLOAT* () const; - - // assignment operators - D3DXMATRIX& operator *= ( CONST D3DXMATRIX& ); - D3DXMATRIX& operator += ( CONST D3DXMATRIX& ); - D3DXMATRIX& operator -= ( CONST D3DXMATRIX& ); - D3DXMATRIX& operator *= ( FLOAT ); - D3DXMATRIX& operator /= ( FLOAT ); - - // unary operators - D3DXMATRIX operator + () const; - D3DXMATRIX operator - () const; - - // binary operators - D3DXMATRIX operator * ( CONST D3DXMATRIX& ) const; - D3DXMATRIX operator + ( CONST D3DXMATRIX& ) const; - D3DXMATRIX operator - ( CONST D3DXMATRIX& ) const; - D3DXMATRIX operator * ( FLOAT ) const; - D3DXMATRIX operator / ( FLOAT ) const; - - friend D3DXMATRIX operator * ( FLOAT, CONST D3DXMATRIX& ); - - BOOL operator == ( CONST D3DXMATRIX& ) const; - BOOL operator != ( CONST D3DXMATRIX& ) const; - -} D3DXMATRIX, *LPD3DXMATRIX; - -#else //!__cplusplus -typedef struct _D3DMATRIX D3DXMATRIX, *LPD3DXMATRIX; -#endif //!__cplusplus - - -//--------------------------------------------------------------------------- -// Aligned Matrices -// -// This class helps keep matrices 16-byte aligned as preferred by P4 cpus. -// It aligns matrices on the stack and on the heap or in global scope. -// It does this using __declspec(align(16)) which works on VC7 and on VC 6 -// with the processor pack. Unfortunately there is no way to detect the -// latter so this is turned on only on VC7. On other compilers this is the -// the same as D3DXMATRIX. -// -// Using this class on a compiler that does not actually do the alignment -// can be dangerous since it will not expose bugs that ignore alignment. -// E.g if an object of this class in inside a struct or class, and some code -// memcopys data in it assuming tight packing. This could break on a compiler -// that eventually start aligning the matrix. -//--------------------------------------------------------------------------- -#ifdef __cplusplus -typedef struct _D3DXMATRIXA16 : public D3DXMATRIX -{ - _D3DXMATRIXA16() {} - _D3DXMATRIXA16( CONST FLOAT * ); - _D3DXMATRIXA16( CONST D3DMATRIX& ); - _D3DXMATRIXA16( CONST D3DXFLOAT16 * ); - _D3DXMATRIXA16( FLOAT _11, FLOAT _12, FLOAT _13, FLOAT _14, - FLOAT _21, FLOAT _22, FLOAT _23, FLOAT _24, - FLOAT _31, FLOAT _32, FLOAT _33, FLOAT _34, - FLOAT _41, FLOAT _42, FLOAT _43, FLOAT _44 ); - - // new operators - void* operator new ( size_t ); - void* operator new[] ( size_t ); - - // delete operators - void operator delete ( void* ); // These are NOT virtual; Do not - void operator delete[] ( void* ); // cast to D3DXMATRIX and delete. - - // assignment operators - _D3DXMATRIXA16& operator = ( CONST D3DXMATRIX& ); - -} _D3DXMATRIXA16; - -#else //!__cplusplus -typedef D3DXMATRIX _D3DXMATRIXA16; -#endif //!__cplusplus - - - -#if _MSC_VER >= 1300 // VC7 -#define D3DX_ALIGN16 __declspec(align(16)) -#else -#define D3DX_ALIGN16 // Earlier compiler may not understand this, do nothing. -#endif - -typedef D3DX_ALIGN16 _D3DXMATRIXA16 D3DXMATRIXA16, *LPD3DXMATRIXA16; - - - -//=========================================================================== -// -// Quaternions -// -//=========================================================================== -typedef struct D3DXQUATERNION -{ -#ifdef __cplusplus -public: - D3DXQUATERNION() {} - D3DXQUATERNION( CONST FLOAT * ); - D3DXQUATERNION( CONST D3DXFLOAT16 * ); - D3DXQUATERNION( FLOAT x, FLOAT y, FLOAT z, FLOAT w ); - - // casting - operator FLOAT* (); - operator CONST FLOAT* () const; - - // assignment operators - D3DXQUATERNION& operator += ( CONST D3DXQUATERNION& ); - D3DXQUATERNION& operator -= ( CONST D3DXQUATERNION& ); - D3DXQUATERNION& operator *= ( CONST D3DXQUATERNION& ); - D3DXQUATERNION& operator *= ( FLOAT ); - D3DXQUATERNION& operator /= ( FLOAT ); - - // unary operators - D3DXQUATERNION operator + () const; - D3DXQUATERNION operator - () const; - - // binary operators - D3DXQUATERNION operator + ( CONST D3DXQUATERNION& ) const; - D3DXQUATERNION operator - ( CONST D3DXQUATERNION& ) const; - D3DXQUATERNION operator * ( CONST D3DXQUATERNION& ) const; - D3DXQUATERNION operator * ( FLOAT ) const; - D3DXQUATERNION operator / ( FLOAT ) const; - - friend D3DXQUATERNION operator * (FLOAT, CONST D3DXQUATERNION& ); - - BOOL operator == ( CONST D3DXQUATERNION& ) const; - BOOL operator != ( CONST D3DXQUATERNION& ) const; - -#endif //__cplusplus - FLOAT x, y, z, w; -} D3DXQUATERNION, *LPD3DXQUATERNION; - - -//=========================================================================== -// -// Planes -// -//=========================================================================== -typedef struct D3DXPLANE -{ -#ifdef __cplusplus -public: - D3DXPLANE() {} - D3DXPLANE( CONST FLOAT* ); - D3DXPLANE( CONST D3DXFLOAT16* ); - D3DXPLANE( FLOAT a, FLOAT b, FLOAT c, FLOAT d ); - - // casting - operator FLOAT* (); - operator CONST FLOAT* () const; - - // assignment operators - D3DXPLANE& operator *= ( FLOAT ); - D3DXPLANE& operator /= ( FLOAT ); - - // unary operators - D3DXPLANE operator + () const; - D3DXPLANE operator - () const; - - // binary operators - D3DXPLANE operator * ( FLOAT ) const; - D3DXPLANE operator / ( FLOAT ) const; - - friend D3DXPLANE operator * ( FLOAT, CONST D3DXPLANE& ); - - BOOL operator == ( CONST D3DXPLANE& ) const; - BOOL operator != ( CONST D3DXPLANE& ) const; - -#endif //__cplusplus - FLOAT a, b, c, d; -} D3DXPLANE, *LPD3DXPLANE; - - -//=========================================================================== -// -// Colors -// -//=========================================================================== - -typedef struct D3DXCOLOR -{ -#ifdef __cplusplus -public: - D3DXCOLOR() {} - D3DXCOLOR( DWORD argb ); - D3DXCOLOR( CONST FLOAT * ); - D3DXCOLOR( CONST D3DXFLOAT16 * ); - D3DXCOLOR( CONST D3DCOLORVALUE& ); - D3DXCOLOR( FLOAT r, FLOAT g, FLOAT b, FLOAT a ); - - // casting - operator DWORD () const; - - operator FLOAT* (); - operator CONST FLOAT* () const; - - operator D3DCOLORVALUE* (); - operator CONST D3DCOLORVALUE* () const; - - operator D3DCOLORVALUE& (); - operator CONST D3DCOLORVALUE& () const; - - // assignment operators - D3DXCOLOR& operator += ( CONST D3DXCOLOR& ); - D3DXCOLOR& operator -= ( CONST D3DXCOLOR& ); - D3DXCOLOR& operator *= ( FLOAT ); - D3DXCOLOR& operator /= ( FLOAT ); - - // unary operators - D3DXCOLOR operator + () const; - D3DXCOLOR operator - () const; - - // binary operators - D3DXCOLOR operator + ( CONST D3DXCOLOR& ) const; - D3DXCOLOR operator - ( CONST D3DXCOLOR& ) const; - D3DXCOLOR operator * ( FLOAT ) const; - D3DXCOLOR operator / ( FLOAT ) const; - - friend D3DXCOLOR operator * ( FLOAT, CONST D3DXCOLOR& ); - - BOOL operator == ( CONST D3DXCOLOR& ) const; - BOOL operator != ( CONST D3DXCOLOR& ) const; - -#endif //__cplusplus - FLOAT r, g, b, a; -} D3DXCOLOR, *LPD3DXCOLOR; - - - -//=========================================================================== -// -// D3DX math functions: -// -// NOTE: -// * All these functions can take the same object as in and out parameters. -// -// * Out parameters are typically also returned as return values, so that -// the output of one function may be used as a parameter to another. -// -//=========================================================================== - -//-------------------------- -// Float16 -//-------------------------- - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Converts an array 32-bit floats to 16-bit floats -D3DXFLOAT16* WINAPI D3DXFloat32To16Array - ( D3DXFLOAT16 *pOut, CONST FLOAT *pIn, UINT n ); - -// Converts an array 16-bit floats to 32-bit floats -FLOAT* WINAPI D3DXFloat16To32Array - ( FLOAT *pOut, CONST D3DXFLOAT16 *pIn, UINT n ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// 2D Vector -//-------------------------- - -// inline - -FLOAT D3DXVec2Length - ( CONST D3DXVECTOR2 *pV ); - -FLOAT D3DXVec2LengthSq - ( CONST D3DXVECTOR2 *pV ); - -FLOAT D3DXVec2Dot - ( CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ); - -// Z component of ((x1,y1,0) cross (x2,y2,0)) -FLOAT D3DXVec2CCW - ( CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ); - -D3DXVECTOR2* D3DXVec2Add - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ); - -D3DXVECTOR2* D3DXVec2Subtract - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ); - -// Minimize each component. x = min(x1, x2), y = min(y1, y2) -D3DXVECTOR2* D3DXVec2Minimize - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ); - -// Maximize each component. x = max(x1, x2), y = max(y1, y2) -D3DXVECTOR2* D3DXVec2Maximize - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ); - -D3DXVECTOR2* D3DXVec2Scale - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV, FLOAT s ); - -// Linear interpolation. V1 + s(V2-V1) -D3DXVECTOR2* D3DXVec2Lerp - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2, - FLOAT s ); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -D3DXVECTOR2* WINAPI D3DXVec2Normalize - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV ); - -// Hermite interpolation between position V1, tangent T1 (when s == 0) -// and position V2, tangent T2 (when s == 1). -D3DXVECTOR2* WINAPI D3DXVec2Hermite - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pT1, - CONST D3DXVECTOR2 *pV2, CONST D3DXVECTOR2 *pT2, FLOAT s ); - -// CatmullRom interpolation between V1 (when s == 0) and V2 (when s == 1) -D3DXVECTOR2* WINAPI D3DXVec2CatmullRom - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV0, CONST D3DXVECTOR2 *pV1, - CONST D3DXVECTOR2 *pV2, CONST D3DXVECTOR2 *pV3, FLOAT s ); - -// Barycentric coordinates. V1 + f(V2-V1) + g(V3-V1) -D3DXVECTOR2* WINAPI D3DXVec2BaryCentric - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2, - CONST D3DXVECTOR2 *pV3, FLOAT f, FLOAT g); - -// Transform (x, y, 0, 1) by matrix. -D3DXVECTOR4* WINAPI D3DXVec2Transform - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR2 *pV, CONST D3DXMATRIX *pM ); - -// Transform (x, y, 0, 1) by matrix, project result back into w=1. -D3DXVECTOR2* WINAPI D3DXVec2TransformCoord - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV, CONST D3DXMATRIX *pM ); - -// Transform (x, y, 0, 0) by matrix. -D3DXVECTOR2* WINAPI D3DXVec2TransformNormal - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV, CONST D3DXMATRIX *pM ); - -// Transform Array (x, y, 0, 1) by matrix. -D3DXVECTOR4* WINAPI D3DXVec2TransformArray - ( D3DXVECTOR4 *pOut, UINT OutStride, CONST D3DXVECTOR2 *pV, UINT VStride, CONST D3DXMATRIX *pM, UINT n); - -// Transform Array (x, y, 0, 1) by matrix, project result back into w=1. -D3DXVECTOR2* WINAPI D3DXVec2TransformCoordArray - ( D3DXVECTOR2 *pOut, UINT OutStride, CONST D3DXVECTOR2 *pV, UINT VStride, CONST D3DXMATRIX *pM, UINT n ); - -// Transform Array (x, y, 0, 0) by matrix. -D3DXVECTOR2* WINAPI D3DXVec2TransformNormalArray - ( D3DXVECTOR2 *pOut, UINT OutStride, CONST D3DXVECTOR2 *pV, UINT VStride, CONST D3DXMATRIX *pM, UINT n ); - - - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// 3D Vector -//-------------------------- - -// inline - -FLOAT D3DXVec3Length - ( CONST D3DXVECTOR3 *pV ); - -FLOAT D3DXVec3LengthSq - ( CONST D3DXVECTOR3 *pV ); - -FLOAT D3DXVec3Dot - ( CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ); - -D3DXVECTOR3* D3DXVec3Cross - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ); - -D3DXVECTOR3* D3DXVec3Add - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ); - -D3DXVECTOR3* D3DXVec3Subtract - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ); - -// Minimize each component. x = min(x1, x2), y = min(y1, y2), ... -D3DXVECTOR3* D3DXVec3Minimize - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ); - -// Maximize each component. x = max(x1, x2), y = max(y1, y2), ... -D3DXVECTOR3* D3DXVec3Maximize - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ); - -D3DXVECTOR3* D3DXVec3Scale - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, FLOAT s); - -// Linear interpolation. V1 + s(V2-V1) -D3DXVECTOR3* D3DXVec3Lerp - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2, - FLOAT s ); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -D3DXVECTOR3* WINAPI D3DXVec3Normalize - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV ); - -// Hermite interpolation between position V1, tangent T1 (when s == 0) -// and position V2, tangent T2 (when s == 1). -D3DXVECTOR3* WINAPI D3DXVec3Hermite - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pT1, - CONST D3DXVECTOR3 *pV2, CONST D3DXVECTOR3 *pT2, FLOAT s ); - -// CatmullRom interpolation between V1 (when s == 0) and V2 (when s == 1) -D3DXVECTOR3* WINAPI D3DXVec3CatmullRom - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV0, CONST D3DXVECTOR3 *pV1, - CONST D3DXVECTOR3 *pV2, CONST D3DXVECTOR3 *pV3, FLOAT s ); - -// Barycentric coordinates. V1 + f(V2-V1) + g(V3-V1) -D3DXVECTOR3* WINAPI D3DXVec3BaryCentric - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2, - CONST D3DXVECTOR3 *pV3, FLOAT f, FLOAT g); - -// Transform (x, y, z, 1) by matrix. -D3DXVECTOR4* WINAPI D3DXVec3Transform - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR3 *pV, CONST D3DXMATRIX *pM ); - -// Transform (x, y, z, 1) by matrix, project result back into w=1. -D3DXVECTOR3* WINAPI D3DXVec3TransformCoord - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, CONST D3DXMATRIX *pM ); - -// Transform (x, y, z, 0) by matrix. If you transforming a normal by a -// non-affine matrix, the matrix you pass to this function should be the -// transpose of the inverse of the matrix you would use to transform a coord. -D3DXVECTOR3* WINAPI D3DXVec3TransformNormal - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, CONST D3DXMATRIX *pM ); - - -// Transform Array (x, y, z, 1) by matrix. -D3DXVECTOR4* WINAPI D3DXVec3TransformArray - ( D3DXVECTOR4 *pOut, UINT OutStride, CONST D3DXVECTOR3 *pV, UINT VStride, CONST D3DXMATRIX *pM, UINT n ); - -// Transform Array (x, y, z, 1) by matrix, project result back into w=1. -D3DXVECTOR3* WINAPI D3DXVec3TransformCoordArray - ( D3DXVECTOR3 *pOut, UINT OutStride, CONST D3DXVECTOR3 *pV, UINT VStride, CONST D3DXMATRIX *pM, UINT n ); - -// Transform (x, y, z, 0) by matrix. If you transforming a normal by a -// non-affine matrix, the matrix you pass to this function should be the -// transpose of the inverse of the matrix you would use to transform a coord. -D3DXVECTOR3* WINAPI D3DXVec3TransformNormalArray - ( D3DXVECTOR3 *pOut, UINT OutStride, CONST D3DXVECTOR3 *pV, UINT VStride, CONST D3DXMATRIX *pM, UINT n ); - -// Project vector from object space into screen space -D3DXVECTOR3* WINAPI D3DXVec3Project - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, CONST D3DVIEWPORT9 *pViewport, - CONST D3DXMATRIX *pProjection, CONST D3DXMATRIX *pView, CONST D3DXMATRIX *pWorld); - -// Project vector from screen space into object space -D3DXVECTOR3* WINAPI D3DXVec3Unproject - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, CONST D3DVIEWPORT9 *pViewport, - CONST D3DXMATRIX *pProjection, CONST D3DXMATRIX *pView, CONST D3DXMATRIX *pWorld); - -// Project vector Array from object space into screen space -D3DXVECTOR3* WINAPI D3DXVec3ProjectArray - ( D3DXVECTOR3 *pOut, UINT OutStride,CONST D3DXVECTOR3 *pV, UINT VStride,CONST D3DVIEWPORT9 *pViewport, - CONST D3DXMATRIX *pProjection, CONST D3DXMATRIX *pView, CONST D3DXMATRIX *pWorld, UINT n); - -// Project vector Array from screen space into object space -D3DXVECTOR3* WINAPI D3DXVec3UnprojectArray - ( D3DXVECTOR3 *pOut, UINT OutStride, CONST D3DXVECTOR3 *pV, UINT VStride, CONST D3DVIEWPORT9 *pViewport, - CONST D3DXMATRIX *pProjection, CONST D3DXMATRIX *pView, CONST D3DXMATRIX *pWorld, UINT n); - - -#ifdef __cplusplus -} -#endif - - - -//-------------------------- -// 4D Vector -//-------------------------- - -// inline - -FLOAT D3DXVec4Length - ( CONST D3DXVECTOR4 *pV ); - -FLOAT D3DXVec4LengthSq - ( CONST D3DXVECTOR4 *pV ); - -FLOAT D3DXVec4Dot - ( CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2 ); - -D3DXVECTOR4* D3DXVec4Add - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2); - -D3DXVECTOR4* D3DXVec4Subtract - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2); - -// Minimize each component. x = min(x1, x2), y = min(y1, y2), ... -D3DXVECTOR4* D3DXVec4Minimize - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2); - -// Maximize each component. x = max(x1, x2), y = max(y1, y2), ... -D3DXVECTOR4* D3DXVec4Maximize - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2); - -D3DXVECTOR4* D3DXVec4Scale - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV, FLOAT s); - -// Linear interpolation. V1 + s(V2-V1) -D3DXVECTOR4* D3DXVec4Lerp - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2, - FLOAT s ); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Cross-product in 4 dimensions. -D3DXVECTOR4* WINAPI D3DXVec4Cross - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2, - CONST D3DXVECTOR4 *pV3); - -D3DXVECTOR4* WINAPI D3DXVec4Normalize - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV ); - -// Hermite interpolation between position V1, tangent T1 (when s == 0) -// and position V2, tangent T2 (when s == 1). -D3DXVECTOR4* WINAPI D3DXVec4Hermite - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pT1, - CONST D3DXVECTOR4 *pV2, CONST D3DXVECTOR4 *pT2, FLOAT s ); - -// CatmullRom interpolation between V1 (when s == 0) and V2 (when s == 1) -D3DXVECTOR4* WINAPI D3DXVec4CatmullRom - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV0, CONST D3DXVECTOR4 *pV1, - CONST D3DXVECTOR4 *pV2, CONST D3DXVECTOR4 *pV3, FLOAT s ); - -// Barycentric coordinates. V1 + f(V2-V1) + g(V3-V1) -D3DXVECTOR4* WINAPI D3DXVec4BaryCentric - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2, - CONST D3DXVECTOR4 *pV3, FLOAT f, FLOAT g); - -// Transform vector by matrix. -D3DXVECTOR4* WINAPI D3DXVec4Transform - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV, CONST D3DXMATRIX *pM ); - -// Transform vector array by matrix. -D3DXVECTOR4* WINAPI D3DXVec4TransformArray - ( D3DXVECTOR4 *pOut, UINT OutStride, CONST D3DXVECTOR4 *pV, UINT VStride, CONST D3DXMATRIX *pM, UINT n ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// 4D Matrix -//-------------------------- - -// inline - -D3DXMATRIX* D3DXMatrixIdentity - ( D3DXMATRIX *pOut ); - -BOOL D3DXMatrixIsIdentity - ( CONST D3DXMATRIX *pM ); - - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -FLOAT WINAPI D3DXMatrixDeterminant - ( CONST D3DXMATRIX *pM ); - -HRESULT WINAPI D3DXMatrixDecompose - ( D3DXVECTOR3 *pOutScale, D3DXQUATERNION *pOutRotation, - D3DXVECTOR3 *pOutTranslation, CONST D3DXMATRIX *pM ); - -D3DXMATRIX* WINAPI D3DXMatrixTranspose - ( D3DXMATRIX *pOut, CONST D3DXMATRIX *pM ); - -// Matrix multiplication. The result represents the transformation M2 -// followed by the transformation M1. (Out = M1 * M2) -D3DXMATRIX* WINAPI D3DXMatrixMultiply - ( D3DXMATRIX *pOut, CONST D3DXMATRIX *pM1, CONST D3DXMATRIX *pM2 ); - -// Matrix multiplication, followed by a transpose. (Out = T(M1 * M2)) -D3DXMATRIX* WINAPI D3DXMatrixMultiplyTranspose - ( D3DXMATRIX *pOut, CONST D3DXMATRIX *pM1, CONST D3DXMATRIX *pM2 ); - -// Calculate inverse of matrix. Inversion my fail, in which case NULL will -// be returned. The determinant of pM is also returned it pfDeterminant -// is non-NULL. -D3DXMATRIX* WINAPI D3DXMatrixInverse - ( D3DXMATRIX *pOut, FLOAT *pDeterminant, CONST D3DXMATRIX *pM ); - -// Build a matrix which scales by (sx, sy, sz) -D3DXMATRIX* WINAPI D3DXMatrixScaling - ( D3DXMATRIX *pOut, FLOAT sx, FLOAT sy, FLOAT sz ); - -// Build a matrix which translates by (x, y, z) -D3DXMATRIX* WINAPI D3DXMatrixTranslation - ( D3DXMATRIX *pOut, FLOAT x, FLOAT y, FLOAT z ); - -// Build a matrix which rotates around the X axis -D3DXMATRIX* WINAPI D3DXMatrixRotationX - ( D3DXMATRIX *pOut, FLOAT Angle ); - -// Build a matrix which rotates around the Y axis -D3DXMATRIX* WINAPI D3DXMatrixRotationY - ( D3DXMATRIX *pOut, FLOAT Angle ); - -// Build a matrix which rotates around the Z axis -D3DXMATRIX* WINAPI D3DXMatrixRotationZ - ( D3DXMATRIX *pOut, FLOAT Angle ); - -// Build a matrix which rotates around an arbitrary axis -D3DXMATRIX* WINAPI D3DXMatrixRotationAxis - ( D3DXMATRIX *pOut, CONST D3DXVECTOR3 *pV, FLOAT Angle ); - -// Build a matrix from a quaternion -D3DXMATRIX* WINAPI D3DXMatrixRotationQuaternion - ( D3DXMATRIX *pOut, CONST D3DXQUATERNION *pQ); - -// Yaw around the Y axis, a pitch around the X axis, -// and a roll around the Z axis. -D3DXMATRIX* WINAPI D3DXMatrixRotationYawPitchRoll - ( D3DXMATRIX *pOut, FLOAT Yaw, FLOAT Pitch, FLOAT Roll ); - -// Build transformation matrix. NULL arguments are treated as identity. -// Mout = Msc-1 * Msr-1 * Ms * Msr * Msc * Mrc-1 * Mr * Mrc * Mt -D3DXMATRIX* WINAPI D3DXMatrixTransformation - ( D3DXMATRIX *pOut, CONST D3DXVECTOR3 *pScalingCenter, - CONST D3DXQUATERNION *pScalingRotation, CONST D3DXVECTOR3 *pScaling, - CONST D3DXVECTOR3 *pRotationCenter, CONST D3DXQUATERNION *pRotation, - CONST D3DXVECTOR3 *pTranslation); - -// Build 2D transformation matrix in XY plane. NULL arguments are treated as identity. -// Mout = Msc-1 * Msr-1 * Ms * Msr * Msc * Mrc-1 * Mr * Mrc * Mt -D3DXMATRIX* WINAPI D3DXMatrixTransformation2D - ( D3DXMATRIX *pOut, CONST D3DXVECTOR2* pScalingCenter, - FLOAT ScalingRotation, CONST D3DXVECTOR2* pScaling, - CONST D3DXVECTOR2* pRotationCenter, FLOAT Rotation, - CONST D3DXVECTOR2* pTranslation); - -// Build affine transformation matrix. NULL arguments are treated as identity. -// Mout = Ms * Mrc-1 * Mr * Mrc * Mt -D3DXMATRIX* WINAPI D3DXMatrixAffineTransformation - ( D3DXMATRIX *pOut, FLOAT Scaling, CONST D3DXVECTOR3 *pRotationCenter, - CONST D3DXQUATERNION *pRotation, CONST D3DXVECTOR3 *pTranslation); - -// Build 2D affine transformation matrix in XY plane. NULL arguments are treated as identity. -// Mout = Ms * Mrc-1 * Mr * Mrc * Mt -D3DXMATRIX* WINAPI D3DXMatrixAffineTransformation2D - ( D3DXMATRIX *pOut, FLOAT Scaling, CONST D3DXVECTOR2* pRotationCenter, - FLOAT Rotation, CONST D3DXVECTOR2* pTranslation); - -// Build a lookat matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixLookAtRH - ( D3DXMATRIX *pOut, CONST D3DXVECTOR3 *pEye, CONST D3DXVECTOR3 *pAt, - CONST D3DXVECTOR3 *pUp ); - -// Build a lookat matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixLookAtLH - ( D3DXMATRIX *pOut, CONST D3DXVECTOR3 *pEye, CONST D3DXVECTOR3 *pAt, - CONST D3DXVECTOR3 *pUp ); - -// Build a perspective projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveRH - ( D3DXMATRIX *pOut, FLOAT w, FLOAT h, FLOAT zn, FLOAT zf ); - -// Build a perspective projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveLH - ( D3DXMATRIX *pOut, FLOAT w, FLOAT h, FLOAT zn, FLOAT zf ); - -// Build a perspective projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveFovRH - ( D3DXMATRIX *pOut, FLOAT fovy, FLOAT Aspect, FLOAT zn, FLOAT zf ); - -// Build a perspective projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveFovLH - ( D3DXMATRIX *pOut, FLOAT fovy, FLOAT Aspect, FLOAT zn, FLOAT zf ); - -// Build a perspective projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveOffCenterRH - ( D3DXMATRIX *pOut, FLOAT l, FLOAT r, FLOAT b, FLOAT t, FLOAT zn, - FLOAT zf ); - -// Build a perspective projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveOffCenterLH - ( D3DXMATRIX *pOut, FLOAT l, FLOAT r, FLOAT b, FLOAT t, FLOAT zn, - FLOAT zf ); - -// Build an ortho projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixOrthoRH - ( D3DXMATRIX *pOut, FLOAT w, FLOAT h, FLOAT zn, FLOAT zf ); - -// Build an ortho projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixOrthoLH - ( D3DXMATRIX *pOut, FLOAT w, FLOAT h, FLOAT zn, FLOAT zf ); - -// Build an ortho projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixOrthoOffCenterRH - ( D3DXMATRIX *pOut, FLOAT l, FLOAT r, FLOAT b, FLOAT t, FLOAT zn, - FLOAT zf ); - -// Build an ortho projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixOrthoOffCenterLH - ( D3DXMATRIX *pOut, FLOAT l, FLOAT r, FLOAT b, FLOAT t, FLOAT zn, - FLOAT zf ); - -// Build a matrix which flattens geometry into a plane, as if casting -// a shadow from a light. -D3DXMATRIX* WINAPI D3DXMatrixShadow - ( D3DXMATRIX *pOut, CONST D3DXVECTOR4 *pLight, - CONST D3DXPLANE *pPlane ); - -// Build a matrix which reflects the coordinate system about a plane -D3DXMATRIX* WINAPI D3DXMatrixReflect - ( D3DXMATRIX *pOut, CONST D3DXPLANE *pPlane ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// Quaternion -//-------------------------- - -// inline - -FLOAT D3DXQuaternionLength - ( CONST D3DXQUATERNION *pQ ); - -// Length squared, or "norm" -FLOAT D3DXQuaternionLengthSq - ( CONST D3DXQUATERNION *pQ ); - -FLOAT D3DXQuaternionDot - ( CONST D3DXQUATERNION *pQ1, CONST D3DXQUATERNION *pQ2 ); - -// (0, 0, 0, 1) -D3DXQUATERNION* D3DXQuaternionIdentity - ( D3DXQUATERNION *pOut ); - -BOOL D3DXQuaternionIsIdentity - ( CONST D3DXQUATERNION *pQ ); - -// (-x, -y, -z, w) -D3DXQUATERNION* D3DXQuaternionConjugate - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ ); - - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Compute a quaternin's axis and angle of rotation. Expects unit quaternions. -void WINAPI D3DXQuaternionToAxisAngle - ( CONST D3DXQUATERNION *pQ, D3DXVECTOR3 *pAxis, FLOAT *pAngle ); - -// Build a quaternion from a rotation matrix. -D3DXQUATERNION* WINAPI D3DXQuaternionRotationMatrix - ( D3DXQUATERNION *pOut, CONST D3DXMATRIX *pM); - -// Rotation about arbitrary axis. -D3DXQUATERNION* WINAPI D3DXQuaternionRotationAxis - ( D3DXQUATERNION *pOut, CONST D3DXVECTOR3 *pV, FLOAT Angle ); - -// Yaw around the Y axis, a pitch around the X axis, -// and a roll around the Z axis. -D3DXQUATERNION* WINAPI D3DXQuaternionRotationYawPitchRoll - ( D3DXQUATERNION *pOut, FLOAT Yaw, FLOAT Pitch, FLOAT Roll ); - -// Quaternion multiplication. The result represents the rotation Q2 -// followed by the rotation Q1. (Out = Q2 * Q1) -D3DXQUATERNION* WINAPI D3DXQuaternionMultiply - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ1, - CONST D3DXQUATERNION *pQ2 ); - -D3DXQUATERNION* WINAPI D3DXQuaternionNormalize - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ ); - -// Conjugate and re-norm -D3DXQUATERNION* WINAPI D3DXQuaternionInverse - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ ); - -// Expects unit quaternions. -// if q = (cos(theta), sin(theta) * v); ln(q) = (0, theta * v) -D3DXQUATERNION* WINAPI D3DXQuaternionLn - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ ); - -// Expects pure quaternions. (w == 0) w is ignored in calculation. -// if q = (0, theta * v); exp(q) = (cos(theta), sin(theta) * v) -D3DXQUATERNION* WINAPI D3DXQuaternionExp - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ ); - -// Spherical linear interpolation between Q1 (t == 0) and Q2 (t == 1). -// Expects unit quaternions. -D3DXQUATERNION* WINAPI D3DXQuaternionSlerp - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ1, - CONST D3DXQUATERNION *pQ2, FLOAT t ); - -// Spherical quadrangle interpolation. -// Slerp(Slerp(Q1, C, t), Slerp(A, B, t), 2t(1-t)) -D3DXQUATERNION* WINAPI D3DXQuaternionSquad - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ1, - CONST D3DXQUATERNION *pA, CONST D3DXQUATERNION *pB, - CONST D3DXQUATERNION *pC, FLOAT t ); - -// Setup control points for spherical quadrangle interpolation -// from Q1 to Q2. The control points are chosen in such a way -// to ensure the continuity of tangents with adjacent segments. -void WINAPI D3DXQuaternionSquadSetup - ( D3DXQUATERNION *pAOut, D3DXQUATERNION *pBOut, D3DXQUATERNION *pCOut, - CONST D3DXQUATERNION *pQ0, CONST D3DXQUATERNION *pQ1, - CONST D3DXQUATERNION *pQ2, CONST D3DXQUATERNION *pQ3 ); - -// Barycentric interpolation. -// Slerp(Slerp(Q1, Q2, f+g), Slerp(Q1, Q3, f+g), g/(f+g)) -D3DXQUATERNION* WINAPI D3DXQuaternionBaryCentric - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ1, - CONST D3DXQUATERNION *pQ2, CONST D3DXQUATERNION *pQ3, - FLOAT f, FLOAT g ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// Plane -//-------------------------- - -// inline - -// ax + by + cz + dw -FLOAT D3DXPlaneDot - ( CONST D3DXPLANE *pP, CONST D3DXVECTOR4 *pV); - -// ax + by + cz + d -FLOAT D3DXPlaneDotCoord - ( CONST D3DXPLANE *pP, CONST D3DXVECTOR3 *pV); - -// ax + by + cz -FLOAT D3DXPlaneDotNormal - ( CONST D3DXPLANE *pP, CONST D3DXVECTOR3 *pV); - -D3DXPLANE* D3DXPlaneScale - (D3DXPLANE *pOut, CONST D3DXPLANE *pP, FLOAT s); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Normalize plane (so that |a,b,c| == 1) -D3DXPLANE* WINAPI D3DXPlaneNormalize - ( D3DXPLANE *pOut, CONST D3DXPLANE *pP); - -// Find the intersection between a plane and a line. If the line is -// parallel to the plane, NULL is returned. -D3DXVECTOR3* WINAPI D3DXPlaneIntersectLine - ( D3DXVECTOR3 *pOut, CONST D3DXPLANE *pP, CONST D3DXVECTOR3 *pV1, - CONST D3DXVECTOR3 *pV2); - -// Construct a plane from a point and a normal -D3DXPLANE* WINAPI D3DXPlaneFromPointNormal - ( D3DXPLANE *pOut, CONST D3DXVECTOR3 *pPoint, CONST D3DXVECTOR3 *pNormal); - -// Construct a plane from 3 points -D3DXPLANE* WINAPI D3DXPlaneFromPoints - ( D3DXPLANE *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2, - CONST D3DXVECTOR3 *pV3); - -// Transform a plane by a matrix. The vector (a,b,c) must be normal. -// M should be the inverse transpose of the transformation desired. -D3DXPLANE* WINAPI D3DXPlaneTransform - ( D3DXPLANE *pOut, CONST D3DXPLANE *pP, CONST D3DXMATRIX *pM ); - -// Transform an array of planes by a matrix. The vectors (a,b,c) must be normal. -// M should be the inverse transpose of the transformation desired. -D3DXPLANE* WINAPI D3DXPlaneTransformArray - ( D3DXPLANE *pOut, UINT OutStride, CONST D3DXPLANE *pP, UINT PStride, CONST D3DXMATRIX *pM, UINT n ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// Color -//-------------------------- - -// inline - -// (1-r, 1-g, 1-b, a) -D3DXCOLOR* D3DXColorNegative - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC); - -D3DXCOLOR* D3DXColorAdd - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2); - -D3DXCOLOR* D3DXColorSubtract - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2); - -D3DXCOLOR* D3DXColorScale - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC, FLOAT s); - -// (r1*r2, g1*g2, b1*b2, a1*a2) -D3DXCOLOR* D3DXColorModulate - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2); - -// Linear interpolation of r,g,b, and a. C1 + s(C2-C1) -D3DXCOLOR* D3DXColorLerp - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2, FLOAT s); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Interpolate r,g,b between desaturated color and color. -// DesaturatedColor + s(Color - DesaturatedColor) -D3DXCOLOR* WINAPI D3DXColorAdjustSaturation - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC, FLOAT s); - -// Interpolate r,g,b between 50% grey and color. Grey + s(Color - Grey) -D3DXCOLOR* WINAPI D3DXColorAdjustContrast - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC, FLOAT c); - -#ifdef __cplusplus -} -#endif - - - - -//-------------------------- -// Misc -//-------------------------- - -#ifdef __cplusplus -extern "C" { -#endif - -// Calculate Fresnel term given the cosine of theta (likely obtained by -// taking the dot of two normals), and the refraction index of the material. -FLOAT WINAPI D3DXFresnelTerm - (FLOAT CosTheta, FLOAT RefractionIndex); - -#ifdef __cplusplus -} -#endif - - - -//=========================================================================== -// -// Matrix Stack -// -//=========================================================================== - -typedef interface ID3DXMatrixStack ID3DXMatrixStack; -typedef interface ID3DXMatrixStack *LPD3DXMATRIXSTACK; - -// {C7885BA7-F990-4fe7-922D-8515E477DD85} -DEFINE_GUID(IID_ID3DXMatrixStack, -0xc7885ba7, 0xf990, 0x4fe7, 0x92, 0x2d, 0x85, 0x15, 0xe4, 0x77, 0xdd, 0x85); - - -#undef INTERFACE -#define INTERFACE ID3DXMatrixStack - -DECLARE_INTERFACE_(ID3DXMatrixStack, IUnknown) -{ - // - // IUnknown methods - // - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - // - // ID3DXMatrixStack methods - // - - // Pops the top of the stack, returns the current top - // *after* popping the top. - STDMETHOD(Pop)(THIS) PURE; - - // Pushes the stack by one, duplicating the current matrix. - STDMETHOD(Push)(THIS) PURE; - - // Loads identity in the current matrix. - STDMETHOD(LoadIdentity)(THIS) PURE; - - // Loads the given matrix into the current matrix - STDMETHOD(LoadMatrix)(THIS_ CONST D3DXMATRIX* pM ) PURE; - - // Right-Multiplies the given matrix to the current matrix. - // (transformation is about the current world origin) - STDMETHOD(MultMatrix)(THIS_ CONST D3DXMATRIX* pM ) PURE; - - // Left-Multiplies the given matrix to the current matrix - // (transformation is about the local origin of the object) - STDMETHOD(MultMatrixLocal)(THIS_ CONST D3DXMATRIX* pM ) PURE; - - // Right multiply the current matrix with the computed rotation - // matrix, counterclockwise about the given axis with the given angle. - // (rotation is about the current world origin) - STDMETHOD(RotateAxis) - (THIS_ CONST D3DXVECTOR3* pV, FLOAT Angle) PURE; - - // Left multiply the current matrix with the computed rotation - // matrix, counterclockwise about the given axis with the given angle. - // (rotation is about the local origin of the object) - STDMETHOD(RotateAxisLocal) - (THIS_ CONST D3DXVECTOR3* pV, FLOAT Angle) PURE; - - // Right multiply the current matrix with the computed rotation - // matrix. All angles are counterclockwise. (rotation is about the - // current world origin) - - // The rotation is composed of a yaw around the Y axis, a pitch around - // the X axis, and a roll around the Z axis. - STDMETHOD(RotateYawPitchRoll) - (THIS_ FLOAT Yaw, FLOAT Pitch, FLOAT Roll) PURE; - - // Left multiply the current matrix with the computed rotation - // matrix. All angles are counterclockwise. (rotation is about the - // local origin of the object) - - // The rotation is composed of a yaw around the Y axis, a pitch around - // the X axis, and a roll around the Z axis. - STDMETHOD(RotateYawPitchRollLocal) - (THIS_ FLOAT Yaw, FLOAT Pitch, FLOAT Roll) PURE; - - // Right multiply the current matrix with the computed scale - // matrix. (transformation is about the current world origin) - STDMETHOD(Scale)(THIS_ FLOAT x, FLOAT y, FLOAT z) PURE; - - // Left multiply the current matrix with the computed scale - // matrix. (transformation is about the local origin of the object) - STDMETHOD(ScaleLocal)(THIS_ FLOAT x, FLOAT y, FLOAT z) PURE; - - // Right multiply the current matrix with the computed translation - // matrix. (transformation is about the current world origin) - STDMETHOD(Translate)(THIS_ FLOAT x, FLOAT y, FLOAT z ) PURE; - - // Left multiply the current matrix with the computed translation - // matrix. (transformation is about the local origin of the object) - STDMETHOD(TranslateLocal)(THIS_ FLOAT x, FLOAT y, FLOAT z) PURE; - - // Obtain the current matrix at the top of the stack - STDMETHOD_(D3DXMATRIX*, GetTop)(THIS) PURE; -}; - -#ifdef __cplusplus -extern "C" { -#endif - -HRESULT WINAPI - D3DXCreateMatrixStack( - DWORD Flags, - LPD3DXMATRIXSTACK* ppStack); - -#ifdef __cplusplus -} -#endif - -//=========================================================================== -// -// Spherical Harmonic Runtime Routines -// -// NOTE: -// * Most of these functions can take the same object as in and out parameters. -// The exceptions are the rotation functions. -// -// * Out parameters are typically also returned as return values, so that -// the output of one function may be used as a parameter to another. -// -//============================================================================ - - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -//============================================================================ -// -// Basic Spherical Harmonic math routines -// -//============================================================================ - -#define D3DXSH_MINORDER 2 -#define D3DXSH_MAXORDER 6 - -//============================================================================ -// -// D3DXSHEvalDirection: -// -------------------- -// Evaluates the Spherical Harmonic basis functions -// -// Parameters: -// pOut -// Output SH coefficients - basis function Ylm is stored at l*l + m+l -// This is the pointer that is returned. -// Order -// Order of the SH evaluation, generates Order^2 coefs, degree is Order-1 -// pDir -// Direction to evaluate in - assumed to be normalized -// -//============================================================================ - -FLOAT* WINAPI D3DXSHEvalDirection - ( FLOAT *pOut, UINT Order, CONST D3DXVECTOR3 *pDir ); - -//============================================================================ -// -// D3DXSHRotate: -// -------------------- -// Rotates SH vector by a rotation matrix -// -// Parameters: -// pOut -// Output SH coefficients - basis function Ylm is stored at l*l + m+l -// This is the pointer that is returned (should not alias with pIn.) -// Order -// Order of the SH evaluation, generates Order^2 coefs, degree is Order-1 -// pMatrix -// Matrix used for rotation - rotation sub matrix should be orthogonal -// and have a unit determinant. -// pIn -// Input SH coeffs (rotated), incorect results if this is also output. -// -//============================================================================ - -FLOAT* WINAPI D3DXSHRotate - ( FLOAT *pOut, UINT Order, CONST D3DXMATRIX *pMatrix, CONST FLOAT *pIn ); - -//============================================================================ -// -// D3DXSHRotateZ: -// -------------------- -// Rotates the SH vector in the Z axis by an angle -// -// Parameters: -// pOut -// Output SH coefficients - basis function Ylm is stored at l*l + m+l -// This is the pointer that is returned (should not alias with pIn.) -// Order -// Order of the SH evaluation, generates Order^2 coefs, degree is Order-1 -// Angle -// Angle in radians to rotate around the Z axis. -// pIn -// Input SH coeffs (rotated), incorect results if this is also output. -// -//============================================================================ - - -FLOAT* WINAPI D3DXSHRotateZ - ( FLOAT *pOut, UINT Order, FLOAT Angle, CONST FLOAT *pIn ); - -//============================================================================ -// -// D3DXSHAdd: -// -------------------- -// Adds two SH vectors, pOut[i] = pA[i] + pB[i]; -// -// Parameters: -// pOut -// Output SH coefficients - basis function Ylm is stored at l*l + m+l -// This is the pointer that is returned. -// Order -// Order of the SH evaluation, generates Order^2 coefs, degree is Order-1 -// pA -// Input SH coeffs. -// pB -// Input SH coeffs (second vector.) -// -//============================================================================ - -FLOAT* WINAPI D3DXSHAdd - ( FLOAT *pOut, UINT Order, CONST FLOAT *pA, CONST FLOAT *pB ); - -//============================================================================ -// -// D3DXSHScale: -// -------------------- -// Adds two SH vectors, pOut[i] = pA[i]*Scale; -// -// Parameters: -// pOut -// Output SH coefficients - basis function Ylm is stored at l*l + m+l -// This is the pointer that is returned. -// Order -// Order of the SH evaluation, generates Order^2 coefs, degree is Order-1 -// pIn -// Input SH coeffs. -// Scale -// Scale factor. -// -//============================================================================ - -FLOAT* WINAPI D3DXSHScale - ( FLOAT *pOut, UINT Order, CONST FLOAT *pIn, CONST FLOAT Scale ); - -//============================================================================ -// -// D3DXSHDot: -// -------------------- -// Computes the dot product of two SH vectors -// -// Parameters: -// Order -// Order of the SH evaluation, generates Order^2 coefs, degree is Order-1 -// pA -// Input SH coeffs. -// pB -// Second set of input SH coeffs. -// -//============================================================================ - -FLOAT WINAPI D3DXSHDot - ( UINT Order, CONST FLOAT *pA, CONST FLOAT *pB ); - -//============================================================================ -// -// Basic Spherical Harmonic lighting routines -// -//============================================================================ - -//============================================================================ -// -// D3DXSHEvalDirectionalLight: -// -------------------- -// Evaluates a directional light and returns spectral SH data. The output -// vector is computed so that if the intensity of R/G/B is unit the resulting -// exit radiance of a point directly under the light on a diffuse object with -// an albedo of 1 would be 1.0. This will compute 3 spectral samples, pROut -// has to be specified, while pGout and pBout are optional. -// -// Parameters: -// Order -// Order of the SH evaluation, generates Order^2 coefs, degree is Order-1 -// pDir -// Direction light is coming from (assumed to be normalized.) -// RIntensity -// Red intensity of light. -// GIntensity -// Green intensity of light. -// BIntensity -// Blue intensity of light. -// pROut -// Output SH vector for Red. -// pGOut -// Output SH vector for Green (optional.) -// pBOut -// Output SH vector for Blue (optional.) -// -//============================================================================ - -HRESULT WINAPI D3DXSHEvalDirectionalLight - ( UINT Order, CONST D3DXVECTOR3 *pDir, - FLOAT RIntensity, FLOAT GIntensity, FLOAT BIntensity, - FLOAT *pROut, FLOAT *pGOut, FLOAT *pBOut ); - -//============================================================================ -// -// D3DXSHEvalSphericalLight: -// -------------------- -// Evaluates a spherical light and returns spectral SH data. There is no -// normalization of the intensity of the light like there is for directional -// lights, care has to be taken when specifiying the intensities. This will -// compute 3 spectral samples, pROut has to be specified, while pGout and -// pBout are optional. -// -// Parameters: -// Order -// Order of the SH evaluation, generates Order^2 coefs, degree is Order-1 -// pPos -// Position of light - reciever is assumed to be at the origin. -// Radius -// Radius of the spherical light source. -// RIntensity -// Red intensity of light. -// GIntensity -// Green intensity of light. -// BIntensity -// Blue intensity of light. -// pROut -// Output SH vector for Red. -// pGOut -// Output SH vector for Green (optional.) -// pBOut -// Output SH vector for Blue (optional.) -// -//============================================================================ - -HRESULT WINAPI D3DXSHEvalSphericalLight - ( UINT Order, CONST D3DXVECTOR3 *pPos, FLOAT Radius, - FLOAT RIntensity, FLOAT GIntensity, FLOAT BIntensity, - FLOAT *pROut, FLOAT *pGOut, FLOAT *pBOut ); - -//============================================================================ -// -// D3DXSHEvalConeLight: -// -------------------- -// Evaluates a light that is a cone of constant intensity and returns spectral -// SH data. The output vector is computed so that if the intensity of R/G/B is -// unit the resulting exit radiance of a point directly under the light oriented -// in the cone direction on a diffuse object with an albedo of 1 would be 1.0. -// This will compute 3 spectral samples, pROut has to be specified, while pGout -// and pBout are optional. -// -// Parameters: -// Order -// Order of the SH evaluation, generates Order^2 coefs, degree is Order-1 -// pDir -// Direction light is coming from (assumed to be normalized.) -// Radius -// Radius of cone in radians. -// RIntensity -// Red intensity of light. -// GIntensity -// Green intensity of light. -// BIntensity -// Blue intensity of light. -// pROut -// Output SH vector for Red. -// pGOut -// Output SH vector for Green (optional.) -// pBOut -// Output SH vector for Blue (optional.) -// -//============================================================================ - -HRESULT WINAPI D3DXSHEvalConeLight - ( UINT Order, CONST D3DXVECTOR3 *pDir, FLOAT Radius, - FLOAT RIntensity, FLOAT GIntensity, FLOAT BIntensity, - FLOAT *pROut, FLOAT *pGOut, FLOAT *pBOut ); - -//============================================================================ -// -// D3DXSHEvalHemisphereLight: -// -------------------- -// Evaluates a light that is a linear interpolant between two colors over the -// sphere. The interpolant is linear along the axis of the two points, not -// over the surface of the sphere (ie: if the axis was (0,0,1) it is linear in -// Z, not in the azimuthal angle.) The resulting spherical lighting function -// is normalized so that a point on a perfectly diffuse surface with no -// shadowing and a normal pointed in the direction pDir would result in exit -// radiance with a value of 1 if the top color was white and the bottom color -// was black. This is a very simple model where Top represents the intensity -// of the "sky" and Bottom represents the intensity of the "ground". -// -// Parameters: -// Order -// Order of the SH evaluation, generates Order^2 coefs, degree is Order-1 -// pDir -// Axis of the hemisphere. -// Top -// Color of the upper hemisphere. -// Bottom -// Color of the lower hemisphere. -// pROut -// Output SH vector for Red. -// pGOut -// Output SH vector for Green -// pBOut -// Output SH vector for Blue -// -//============================================================================ - -HRESULT WINAPI D3DXSHEvalHemisphereLight - ( UINT Order, CONST D3DXVECTOR3 *pDir, D3DXCOLOR Top, D3DXCOLOR Bottom, - FLOAT *pROut, FLOAT *pGOut, FLOAT *pBOut ); - -//============================================================================ -// -// Basic Spherical Harmonic projection routines -// -//============================================================================ - -//============================================================================ -// -// D3DXSHProjectCubeMap: -// -------------------- -// Projects a function represented on a cube map into spherical harmonics. -// -// Parameters: -// Order -// Order of the SH evaluation, generates Order^2 coefs, degree is Order-1 -// pCubeMap -// CubeMap that is going to be projected into spherical harmonics -// pROut -// Output SH vector for Red. -// pGOut -// Output SH vector for Green -// pBOut -// Output SH vector for Blue -// -//============================================================================ - -HRESULT WINAPI D3DXSHProjectCubeMap - ( UINT uOrder, LPDIRECT3DCUBETEXTURE9 pCubeMap, - FLOAT *pROut, FLOAT *pGOut, FLOAT *pBOut ); - - -#ifdef __cplusplus -} -#endif - - -#include "d3dx9math.inl" - -#if _MSC_VER >= 1200 -#pragma warning(pop) -#else -#pragma warning(default:4201) -#endif - -#endif // __D3DX9MATH_H__ - diff --git a/sdk/dx8sdk/Include/d3dx9math.inl b/sdk/dx8sdk/Include/d3dx9math.inl deleted file mode 100644 index ecf52f96..00000000 --- a/sdk/dx8sdk/Include/d3dx9math.inl +++ /dev/null @@ -1,2244 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx9math.inl -// Content: D3DX math inline functions -// -////////////////////////////////////////////////////////////////////////////// - -#ifndef __D3DX9MATH_INL__ -#define __D3DX9MATH_INL__ - - -//=========================================================================== -// -// Inline Class Methods -// -//=========================================================================== - -#ifdef __cplusplus - -//-------------------------- -// Float16 -//-------------------------- - -D3DXINLINE -D3DXFLOAT16::D3DXFLOAT16( FLOAT f ) -{ - D3DXFloat32To16Array(this, &f, 1); -} - -D3DXINLINE -D3DXFLOAT16::D3DXFLOAT16( CONST D3DXFLOAT16& f ) -{ - value = f.value; -} - -// casting -D3DXINLINE -D3DXFLOAT16::operator FLOAT () -{ - FLOAT f; - D3DXFloat16To32Array(&f, this, 1); - return f; -} - -// binary operators -D3DXINLINE BOOL -D3DXFLOAT16::operator == ( CONST D3DXFLOAT16& f ) const -{ - return value == f.value; -} - -D3DXINLINE BOOL -D3DXFLOAT16::operator != ( CONST D3DXFLOAT16& f ) const -{ - return value != f.value; -} - - -//-------------------------- -// 2D Vector -//-------------------------- - -D3DXINLINE -D3DXVECTOR2::D3DXVECTOR2( CONST FLOAT *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - x = pf[0]; - y = pf[1]; -} - -D3DXINLINE -D3DXVECTOR2::D3DXVECTOR2( CONST D3DXFLOAT16 *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - D3DXFloat16To32Array(&x, pf, 2); -} - -D3DXINLINE -D3DXVECTOR2::D3DXVECTOR2( FLOAT fx, FLOAT fy ) -{ - x = fx; - y = fy; -} - - -// casting -D3DXINLINE -D3DXVECTOR2::operator FLOAT* () -{ - return (FLOAT *) &x; -} - -D3DXINLINE -D3DXVECTOR2::operator CONST FLOAT* () const -{ - return (CONST FLOAT *) &x; -} - - -// assignment operators -D3DXINLINE D3DXVECTOR2& -D3DXVECTOR2::operator += ( CONST D3DXVECTOR2& v ) -{ - x += v.x; - y += v.y; - return *this; -} - -D3DXINLINE D3DXVECTOR2& -D3DXVECTOR2::operator -= ( CONST D3DXVECTOR2& v ) -{ - x -= v.x; - y -= v.y; - return *this; -} - -D3DXINLINE D3DXVECTOR2& -D3DXVECTOR2::operator *= ( FLOAT f ) -{ - x *= f; - y *= f; - return *this; -} - -D3DXINLINE D3DXVECTOR2& -D3DXVECTOR2::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - x *= fInv; - y *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator - () const -{ - return D3DXVECTOR2(-x, -y); -} - - -// binary operators -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator + ( CONST D3DXVECTOR2& v ) const -{ - return D3DXVECTOR2(x + v.x, y + v.y); -} - -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator - ( CONST D3DXVECTOR2& v ) const -{ - return D3DXVECTOR2(x - v.x, y - v.y); -} - -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator * ( FLOAT f ) const -{ - return D3DXVECTOR2(x * f, y * f); -} - -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXVECTOR2(x * fInv, y * fInv); -} - -D3DXINLINE D3DXVECTOR2 -operator * ( FLOAT f, CONST D3DXVECTOR2& v ) -{ - return D3DXVECTOR2(f * v.x, f * v.y); -} - -D3DXINLINE BOOL -D3DXVECTOR2::operator == ( CONST D3DXVECTOR2& v ) const -{ - return x == v.x && y == v.y; -} - -D3DXINLINE BOOL -D3DXVECTOR2::operator != ( CONST D3DXVECTOR2& v ) const -{ - return x != v.x || y != v.y; -} - - - -//-------------------------- -// 2D Vector (16 bit) -//-------------------------- - -D3DXINLINE -D3DXVECTOR2_16F::D3DXVECTOR2_16F( CONST FLOAT *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - D3DXFloat32To16Array(&x, pf, 2); -} - -D3DXINLINE -D3DXVECTOR2_16F::D3DXVECTOR2_16F( CONST D3DXFLOAT16 *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - *((DWORD *) &x) = *((DWORD *) &pf[0]); -} - -D3DXINLINE -D3DXVECTOR2_16F::D3DXVECTOR2_16F( CONST D3DXFLOAT16 &fx, CONST D3DXFLOAT16 &fy ) -{ - x = fx; - y = fy; -} - - -// casting -D3DXINLINE -D3DXVECTOR2_16F::operator D3DXFLOAT16* () -{ - return (D3DXFLOAT16*) &x; -} - -D3DXINLINE -D3DXVECTOR2_16F::operator CONST D3DXFLOAT16* () const -{ - return (CONST D3DXFLOAT16*) &x; -} - - -// binary operators -D3DXINLINE BOOL -D3DXVECTOR2_16F::operator == ( CONST D3DXVECTOR2_16F &v ) const -{ - return *((DWORD *) &x) == *((DWORD *) &v.x); -} - -D3DXINLINE BOOL -D3DXVECTOR2_16F::operator != ( CONST D3DXVECTOR2_16F &v ) const -{ - return *((DWORD *) &x) != *((DWORD *) &v.x); -} - - -//-------------------------- -// 3D Vector -//-------------------------- -D3DXINLINE -D3DXVECTOR3::D3DXVECTOR3( CONST FLOAT *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - x = pf[0]; - y = pf[1]; - z = pf[2]; -} - -D3DXINLINE -D3DXVECTOR3::D3DXVECTOR3( CONST D3DVECTOR& v ) -{ - x = v.x; - y = v.y; - z = v.z; -} - -D3DXINLINE -D3DXVECTOR3::D3DXVECTOR3( CONST D3DXFLOAT16 *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - D3DXFloat16To32Array(&x, pf, 3); -} - -D3DXINLINE -D3DXVECTOR3::D3DXVECTOR3( FLOAT fx, FLOAT fy, FLOAT fz ) -{ - x = fx; - y = fy; - z = fz; -} - - -// casting -D3DXINLINE -D3DXVECTOR3::operator FLOAT* () -{ - return (FLOAT *) &x; -} - -D3DXINLINE -D3DXVECTOR3::operator CONST FLOAT* () const -{ - return (CONST FLOAT *) &x; -} - - -// assignment operators -D3DXINLINE D3DXVECTOR3& -D3DXVECTOR3::operator += ( CONST D3DXVECTOR3& v ) -{ - x += v.x; - y += v.y; - z += v.z; - return *this; -} - -D3DXINLINE D3DXVECTOR3& -D3DXVECTOR3::operator -= ( CONST D3DXVECTOR3& v ) -{ - x -= v.x; - y -= v.y; - z -= v.z; - return *this; -} - -D3DXINLINE D3DXVECTOR3& -D3DXVECTOR3::operator *= ( FLOAT f ) -{ - x *= f; - y *= f; - z *= f; - return *this; -} - -D3DXINLINE D3DXVECTOR3& -D3DXVECTOR3::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - x *= fInv; - y *= fInv; - z *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator - () const -{ - return D3DXVECTOR3(-x, -y, -z); -} - - -// binary operators -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator + ( CONST D3DXVECTOR3& v ) const -{ - return D3DXVECTOR3(x + v.x, y + v.y, z + v.z); -} - -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator - ( CONST D3DXVECTOR3& v ) const -{ - return D3DXVECTOR3(x - v.x, y - v.y, z - v.z); -} - -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator * ( FLOAT f ) const -{ - return D3DXVECTOR3(x * f, y * f, z * f); -} - -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXVECTOR3(x * fInv, y * fInv, z * fInv); -} - - -D3DXINLINE D3DXVECTOR3 -operator * ( FLOAT f, CONST struct D3DXVECTOR3& v ) -{ - return D3DXVECTOR3(f * v.x, f * v.y, f * v.z); -} - - -D3DXINLINE BOOL -D3DXVECTOR3::operator == ( CONST D3DXVECTOR3& v ) const -{ - return x == v.x && y == v.y && z == v.z; -} - -D3DXINLINE BOOL -D3DXVECTOR3::operator != ( CONST D3DXVECTOR3& v ) const -{ - return x != v.x || y != v.y || z != v.z; -} - - - -//-------------------------- -// 3D Vector (16 bit) -//-------------------------- - -D3DXINLINE -D3DXVECTOR3_16F::D3DXVECTOR3_16F( CONST FLOAT *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - D3DXFloat32To16Array(&x, pf, 3); -} - -D3DXINLINE -D3DXVECTOR3_16F::D3DXVECTOR3_16F( CONST D3DVECTOR& v ) -{ - D3DXFloat32To16Array(&x, &v.x, 1); - D3DXFloat32To16Array(&y, &v.y, 1); - D3DXFloat32To16Array(&z, &v.z, 1); -} - -D3DXINLINE -D3DXVECTOR3_16F::D3DXVECTOR3_16F( CONST D3DXFLOAT16 *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - *((DWORD *) &x) = *((DWORD *) &pf[0]); - *((WORD *) &z) = *((WORD *) &pf[2]); -} - -D3DXINLINE -D3DXVECTOR3_16F::D3DXVECTOR3_16F( CONST D3DXFLOAT16 &fx, CONST D3DXFLOAT16 &fy, CONST D3DXFLOAT16 &fz ) -{ - x = fx; - y = fy; - z = fz; -} - - -// casting -D3DXINLINE -D3DXVECTOR3_16F::operator D3DXFLOAT16* () -{ - return (D3DXFLOAT16*) &x; -} - -D3DXINLINE -D3DXVECTOR3_16F::operator CONST D3DXFLOAT16* () const -{ - return (CONST D3DXFLOAT16*) &x; -} - - -// binary operators -D3DXINLINE BOOL -D3DXVECTOR3_16F::operator == ( CONST D3DXVECTOR3_16F &v ) const -{ - return *((DWORD *) &x) == *((DWORD *) &v.x) && - *((WORD *) &z) == *((WORD *) &v.z); -} - -D3DXINLINE BOOL -D3DXVECTOR3_16F::operator != ( CONST D3DXVECTOR3_16F &v ) const -{ - return *((DWORD *) &x) != *((DWORD *) &v.x) || - *((WORD *) &z) != *((WORD *) &v.z); -} - - -//-------------------------- -// 4D Vector -//-------------------------- -D3DXINLINE -D3DXVECTOR4::D3DXVECTOR4( CONST FLOAT *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - x = pf[0]; - y = pf[1]; - z = pf[2]; - w = pf[3]; -} - -D3DXINLINE -D3DXVECTOR4::D3DXVECTOR4( CONST D3DXFLOAT16 *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - D3DXFloat16To32Array(&x, pf, 4); -} - -D3DXINLINE -D3DXVECTOR4::D3DXVECTOR4( CONST D3DVECTOR& v, FLOAT f ) -{ - x = v.x; - y = v.y; - z = v.z; - w = f; -} - -D3DXINLINE -D3DXVECTOR4::D3DXVECTOR4( FLOAT fx, FLOAT fy, FLOAT fz, FLOAT fw ) -{ - x = fx; - y = fy; - z = fz; - w = fw; -} - - -// casting -D3DXINLINE -D3DXVECTOR4::operator FLOAT* () -{ - return (FLOAT *) &x; -} - -D3DXINLINE -D3DXVECTOR4::operator CONST FLOAT* () const -{ - return (CONST FLOAT *) &x; -} - - -// assignment operators -D3DXINLINE D3DXVECTOR4& -D3DXVECTOR4::operator += ( CONST D3DXVECTOR4& v ) -{ - x += v.x; - y += v.y; - z += v.z; - w += v.w; - return *this; -} - -D3DXINLINE D3DXVECTOR4& -D3DXVECTOR4::operator -= ( CONST D3DXVECTOR4& v ) -{ - x -= v.x; - y -= v.y; - z -= v.z; - w -= v.w; - return *this; -} - -D3DXINLINE D3DXVECTOR4& -D3DXVECTOR4::operator *= ( FLOAT f ) -{ - x *= f; - y *= f; - z *= f; - w *= f; - return *this; -} - -D3DXINLINE D3DXVECTOR4& -D3DXVECTOR4::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - x *= fInv; - y *= fInv; - z *= fInv; - w *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator - () const -{ - return D3DXVECTOR4(-x, -y, -z, -w); -} - - -// binary operators -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator + ( CONST D3DXVECTOR4& v ) const -{ - return D3DXVECTOR4(x + v.x, y + v.y, z + v.z, w + v.w); -} - -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator - ( CONST D3DXVECTOR4& v ) const -{ - return D3DXVECTOR4(x - v.x, y - v.y, z - v.z, w - v.w); -} - -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator * ( FLOAT f ) const -{ - return D3DXVECTOR4(x * f, y * f, z * f, w * f); -} - -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXVECTOR4(x * fInv, y * fInv, z * fInv, w * fInv); -} - -D3DXINLINE D3DXVECTOR4 -operator * ( FLOAT f, CONST D3DXVECTOR4& v ) -{ - return D3DXVECTOR4(f * v.x, f * v.y, f * v.z, f * v.w); -} - - -D3DXINLINE BOOL -D3DXVECTOR4::operator == ( CONST D3DXVECTOR4& v ) const -{ - return x == v.x && y == v.y && z == v.z && w == v.w; -} - -D3DXINLINE BOOL -D3DXVECTOR4::operator != ( CONST D3DXVECTOR4& v ) const -{ - return x != v.x || y != v.y || z != v.z || w != v.w; -} - - - -//-------------------------- -// 4D Vector (16 bit) -//-------------------------- - -D3DXINLINE -D3DXVECTOR4_16F::D3DXVECTOR4_16F( CONST FLOAT *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - D3DXFloat32To16Array(&x, pf, 4); -} - -D3DXINLINE -D3DXVECTOR4_16F::D3DXVECTOR4_16F( CONST D3DXFLOAT16 *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - *((DWORD *) &x) = *((DWORD *) &pf[0]); - *((DWORD *) &z) = *((DWORD *) &pf[2]); -} - -D3DXINLINE -D3DXVECTOR4_16F::D3DXVECTOR4_16F( CONST D3DXVECTOR3_16F& v, CONST D3DXFLOAT16& f ) -{ - x = v.x; - y = v.y; - z = v.z; - w = f; -} - -D3DXINLINE -D3DXVECTOR4_16F::D3DXVECTOR4_16F( CONST D3DXFLOAT16 &fx, CONST D3DXFLOAT16 &fy, CONST D3DXFLOAT16 &fz, CONST D3DXFLOAT16 &fw ) -{ - x = fx; - y = fy; - z = fz; - w = fw; -} - - -// casting -D3DXINLINE -D3DXVECTOR4_16F::operator D3DXFLOAT16* () -{ - return (D3DXFLOAT16*) &x; -} - -D3DXINLINE -D3DXVECTOR4_16F::operator CONST D3DXFLOAT16* () const -{ - return (CONST D3DXFLOAT16*) &x; -} - - -// binary operators -D3DXINLINE BOOL -D3DXVECTOR4_16F::operator == ( CONST D3DXVECTOR4_16F &v ) const -{ - return *((DWORD *) &x) == *((DWORD *) &v.x) && - *((DWORD *) &z) == *((DWORD *) &v.z); -} - -D3DXINLINE BOOL -D3DXVECTOR4_16F::operator != ( CONST D3DXVECTOR4_16F &v ) const -{ - return *((DWORD *) &x) != *((DWORD *) &v.x) || - *((DWORD *) &z) != *((DWORD *) &v.z); -} - - -//-------------------------- -// Matrix -//-------------------------- -D3DXINLINE -D3DXMATRIX::D3DXMATRIX( CONST FLOAT* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - memcpy(&_11, pf, sizeof(D3DXMATRIX)); -} - -D3DXINLINE -D3DXMATRIX::D3DXMATRIX( CONST D3DMATRIX& mat ) -{ - memcpy(&_11, &mat, sizeof(D3DXMATRIX)); -} - -D3DXINLINE -D3DXMATRIX::D3DXMATRIX( CONST D3DXFLOAT16* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - D3DXFloat16To32Array(&_11, pf, 16); -} - -D3DXINLINE -D3DXMATRIX::D3DXMATRIX( FLOAT f11, FLOAT f12, FLOAT f13, FLOAT f14, - FLOAT f21, FLOAT f22, FLOAT f23, FLOAT f24, - FLOAT f31, FLOAT f32, FLOAT f33, FLOAT f34, - FLOAT f41, FLOAT f42, FLOAT f43, FLOAT f44 ) -{ - _11 = f11; _12 = f12; _13 = f13; _14 = f14; - _21 = f21; _22 = f22; _23 = f23; _24 = f24; - _31 = f31; _32 = f32; _33 = f33; _34 = f34; - _41 = f41; _42 = f42; _43 = f43; _44 = f44; -} - - - -// access grants -D3DXINLINE FLOAT& -D3DXMATRIX::operator () ( UINT iRow, UINT iCol ) -{ - return m[iRow][iCol]; -} - -D3DXINLINE FLOAT -D3DXMATRIX::operator () ( UINT iRow, UINT iCol ) const -{ - return m[iRow][iCol]; -} - - -// casting operators -D3DXINLINE -D3DXMATRIX::operator FLOAT* () -{ - return (FLOAT *) &_11; -} - -D3DXINLINE -D3DXMATRIX::operator CONST FLOAT* () const -{ - return (CONST FLOAT *) &_11; -} - - -// assignment operators -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator *= ( CONST D3DXMATRIX& mat ) -{ - D3DXMatrixMultiply(this, this, &mat); - return *this; -} - -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator += ( CONST D3DXMATRIX& mat ) -{ - _11 += mat._11; _12 += mat._12; _13 += mat._13; _14 += mat._14; - _21 += mat._21; _22 += mat._22; _23 += mat._23; _24 += mat._24; - _31 += mat._31; _32 += mat._32; _33 += mat._33; _34 += mat._34; - _41 += mat._41; _42 += mat._42; _43 += mat._43; _44 += mat._44; - return *this; -} - -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator -= ( CONST D3DXMATRIX& mat ) -{ - _11 -= mat._11; _12 -= mat._12; _13 -= mat._13; _14 -= mat._14; - _21 -= mat._21; _22 -= mat._22; _23 -= mat._23; _24 -= mat._24; - _31 -= mat._31; _32 -= mat._32; _33 -= mat._33; _34 -= mat._34; - _41 -= mat._41; _42 -= mat._42; _43 -= mat._43; _44 -= mat._44; - return *this; -} - -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator *= ( FLOAT f ) -{ - _11 *= f; _12 *= f; _13 *= f; _14 *= f; - _21 *= f; _22 *= f; _23 *= f; _24 *= f; - _31 *= f; _32 *= f; _33 *= f; _34 *= f; - _41 *= f; _42 *= f; _43 *= f; _44 *= f; - return *this; -} - -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - _11 *= fInv; _12 *= fInv; _13 *= fInv; _14 *= fInv; - _21 *= fInv; _22 *= fInv; _23 *= fInv; _24 *= fInv; - _31 *= fInv; _32 *= fInv; _33 *= fInv; _34 *= fInv; - _41 *= fInv; _42 *= fInv; _43 *= fInv; _44 *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator - () const -{ - return D3DXMATRIX(-_11, -_12, -_13, -_14, - -_21, -_22, -_23, -_24, - -_31, -_32, -_33, -_34, - -_41, -_42, -_43, -_44); -} - - -// binary operators -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator * ( CONST D3DXMATRIX& mat ) const -{ - D3DXMATRIX matT; - D3DXMatrixMultiply(&matT, this, &mat); - return matT; -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator + ( CONST D3DXMATRIX& mat ) const -{ - return D3DXMATRIX(_11 + mat._11, _12 + mat._12, _13 + mat._13, _14 + mat._14, - _21 + mat._21, _22 + mat._22, _23 + mat._23, _24 + mat._24, - _31 + mat._31, _32 + mat._32, _33 + mat._33, _34 + mat._34, - _41 + mat._41, _42 + mat._42, _43 + mat._43, _44 + mat._44); -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator - ( CONST D3DXMATRIX& mat ) const -{ - return D3DXMATRIX(_11 - mat._11, _12 - mat._12, _13 - mat._13, _14 - mat._14, - _21 - mat._21, _22 - mat._22, _23 - mat._23, _24 - mat._24, - _31 - mat._31, _32 - mat._32, _33 - mat._33, _34 - mat._34, - _41 - mat._41, _42 - mat._42, _43 - mat._43, _44 - mat._44); -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator * ( FLOAT f ) const -{ - return D3DXMATRIX(_11 * f, _12 * f, _13 * f, _14 * f, - _21 * f, _22 * f, _23 * f, _24 * f, - _31 * f, _32 * f, _33 * f, _34 * f, - _41 * f, _42 * f, _43 * f, _44 * f); -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXMATRIX(_11 * fInv, _12 * fInv, _13 * fInv, _14 * fInv, - _21 * fInv, _22 * fInv, _23 * fInv, _24 * fInv, - _31 * fInv, _32 * fInv, _33 * fInv, _34 * fInv, - _41 * fInv, _42 * fInv, _43 * fInv, _44 * fInv); -} - - -D3DXINLINE D3DXMATRIX -operator * ( FLOAT f, CONST D3DXMATRIX& mat ) -{ - return D3DXMATRIX(f * mat._11, f * mat._12, f * mat._13, f * mat._14, - f * mat._21, f * mat._22, f * mat._23, f * mat._24, - f * mat._31, f * mat._32, f * mat._33, f * mat._34, - f * mat._41, f * mat._42, f * mat._43, f * mat._44); -} - - -D3DXINLINE BOOL -D3DXMATRIX::operator == ( CONST D3DXMATRIX& mat ) const -{ - return 0 == memcmp(this, &mat, sizeof(D3DXMATRIX)); -} - -D3DXINLINE BOOL -D3DXMATRIX::operator != ( CONST D3DXMATRIX& mat ) const -{ - return 0 != memcmp(this, &mat, sizeof(D3DXMATRIX)); -} - - - -//-------------------------- -// Aligned Matrices -//-------------------------- - -D3DXINLINE -_D3DXMATRIXA16::_D3DXMATRIXA16( CONST FLOAT* f ) : - D3DXMATRIX( f ) -{ -} - -D3DXINLINE -_D3DXMATRIXA16::_D3DXMATRIXA16( CONST D3DMATRIX& m ) : - D3DXMATRIX( m ) -{ -} - -D3DXINLINE -_D3DXMATRIXA16::_D3DXMATRIXA16( CONST D3DXFLOAT16* f ) : - D3DXMATRIX( f ) -{ -} - -D3DXINLINE -_D3DXMATRIXA16::_D3DXMATRIXA16( FLOAT _11, FLOAT _12, FLOAT _13, FLOAT _14, - FLOAT _21, FLOAT _22, FLOAT _23, FLOAT _24, - FLOAT _31, FLOAT _32, FLOAT _33, FLOAT _34, - FLOAT _41, FLOAT _42, FLOAT _43, FLOAT _44 ) : - D3DXMATRIX(_11, _12, _13, _14, - _21, _22, _23, _24, - _31, _32, _33, _34, - _41, _42, _43, _44) -{ -} - -D3DXINLINE void* -_D3DXMATRIXA16::operator new( size_t s ) -{ - LPBYTE p = ::new BYTE[s + 16]; - if (p) - { - BYTE offset = (BYTE)(16 - ((UINT_PTR)p & 15)); - p += offset; - p[-1] = offset; - } - return p; -} - -D3DXINLINE void* -_D3DXMATRIXA16::operator new[]( size_t s ) -{ - LPBYTE p = ::new BYTE[s + 16]; - if (p) - { - BYTE offset = (BYTE)(16 - ((UINT_PTR)p & 15)); - p += offset; - p[-1] = offset; - } - return p; -} - -D3DXINLINE void -_D3DXMATRIXA16::operator delete(void* p) -{ - if(p) - { - BYTE* pb = static_cast(p); - pb -= pb[-1]; - ::delete [] pb; - } -} - -D3DXINLINE void -_D3DXMATRIXA16::operator delete[](void* p) -{ - if(p) - { - BYTE* pb = static_cast(p); - pb -= pb[-1]; - ::delete [] pb; - } -} - -D3DXINLINE _D3DXMATRIXA16& -_D3DXMATRIXA16::operator=(CONST D3DXMATRIX& rhs) -{ - memcpy(&_11, &rhs, sizeof(D3DXMATRIX)); - return *this; -} - - -//-------------------------- -// Quaternion -//-------------------------- - -D3DXINLINE -D3DXQUATERNION::D3DXQUATERNION( CONST FLOAT* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - x = pf[0]; - y = pf[1]; - z = pf[2]; - w = pf[3]; -} - -D3DXINLINE -D3DXQUATERNION::D3DXQUATERNION( CONST D3DXFLOAT16* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - D3DXFloat16To32Array(&x, pf, 4); -} - -D3DXINLINE -D3DXQUATERNION::D3DXQUATERNION( FLOAT fx, FLOAT fy, FLOAT fz, FLOAT fw ) -{ - x = fx; - y = fy; - z = fz; - w = fw; -} - - -// casting -D3DXINLINE -D3DXQUATERNION::operator FLOAT* () -{ - return (FLOAT *) &x; -} - -D3DXINLINE -D3DXQUATERNION::operator CONST FLOAT* () const -{ - return (CONST FLOAT *) &x; -} - - -// assignment operators -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator += ( CONST D3DXQUATERNION& q ) -{ - x += q.x; - y += q.y; - z += q.z; - w += q.w; - return *this; -} - -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator -= ( CONST D3DXQUATERNION& q ) -{ - x -= q.x; - y -= q.y; - z -= q.z; - w -= q.w; - return *this; -} - -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator *= ( CONST D3DXQUATERNION& q ) -{ - D3DXQuaternionMultiply(this, this, &q); - return *this; -} - -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator *= ( FLOAT f ) -{ - x *= f; - y *= f; - z *= f; - w *= f; - return *this; -} - -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - x *= fInv; - y *= fInv; - z *= fInv; - w *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator - () const -{ - return D3DXQUATERNION(-x, -y, -z, -w); -} - - -// binary operators -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator + ( CONST D3DXQUATERNION& q ) const -{ - return D3DXQUATERNION(x + q.x, y + q.y, z + q.z, w + q.w); -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator - ( CONST D3DXQUATERNION& q ) const -{ - return D3DXQUATERNION(x - q.x, y - q.y, z - q.z, w - q.w); -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator * ( CONST D3DXQUATERNION& q ) const -{ - D3DXQUATERNION qT; - D3DXQuaternionMultiply(&qT, this, &q); - return qT; -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator * ( FLOAT f ) const -{ - return D3DXQUATERNION(x * f, y * f, z * f, w * f); -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXQUATERNION(x * fInv, y * fInv, z * fInv, w * fInv); -} - - -D3DXINLINE D3DXQUATERNION -operator * (FLOAT f, CONST D3DXQUATERNION& q ) -{ - return D3DXQUATERNION(f * q.x, f * q.y, f * q.z, f * q.w); -} - - -D3DXINLINE BOOL -D3DXQUATERNION::operator == ( CONST D3DXQUATERNION& q ) const -{ - return x == q.x && y == q.y && z == q.z && w == q.w; -} - -D3DXINLINE BOOL -D3DXQUATERNION::operator != ( CONST D3DXQUATERNION& q ) const -{ - return x != q.x || y != q.y || z != q.z || w != q.w; -} - - - -//-------------------------- -// Plane -//-------------------------- - -D3DXINLINE -D3DXPLANE::D3DXPLANE( CONST FLOAT* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - a = pf[0]; - b = pf[1]; - c = pf[2]; - d = pf[3]; -} - -D3DXINLINE -D3DXPLANE::D3DXPLANE( CONST D3DXFLOAT16* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - D3DXFloat16To32Array(&a, pf, 4); -} - -D3DXINLINE -D3DXPLANE::D3DXPLANE( FLOAT fa, FLOAT fb, FLOAT fc, FLOAT fd ) -{ - a = fa; - b = fb; - c = fc; - d = fd; -} - - -// casting -D3DXINLINE -D3DXPLANE::operator FLOAT* () -{ - return (FLOAT *) &a; -} - -D3DXINLINE -D3DXPLANE::operator CONST FLOAT* () const -{ - return (CONST FLOAT *) &a; -} - - -// assignment operators -D3DXINLINE D3DXPLANE& -D3DXPLANE::operator *= ( FLOAT f ) -{ - a *= f; - b *= f; - c *= f; - d *= f; - return *this; -} - -D3DXINLINE D3DXPLANE& -D3DXPLANE::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - a *= fInv; - b *= fInv; - c *= fInv; - d *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXPLANE -D3DXPLANE::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXPLANE -D3DXPLANE::operator - () const -{ - return D3DXPLANE(-a, -b, -c, -d); -} - - -// binary operators -D3DXINLINE D3DXPLANE -D3DXPLANE::operator * ( FLOAT f ) const -{ - return D3DXPLANE(a * f, b * f, c * f, d * f); -} - -D3DXINLINE D3DXPLANE -D3DXPLANE::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXPLANE(a * fInv, b * fInv, c * fInv, d * fInv); -} - -D3DXINLINE D3DXPLANE -operator * (FLOAT f, CONST D3DXPLANE& p ) -{ - return D3DXPLANE(f * p.a, f * p.b, f * p.c, f * p.d); -} - -D3DXINLINE BOOL -D3DXPLANE::operator == ( CONST D3DXPLANE& p ) const -{ - return a == p.a && b == p.b && c == p.c && d == p.d; -} - -D3DXINLINE BOOL -D3DXPLANE::operator != ( CONST D3DXPLANE& p ) const -{ - return a != p.a || b != p.b || c != p.c || d != p.d; -} - - - - -//-------------------------- -// Color -//-------------------------- - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( DWORD dw ) -{ - CONST FLOAT f = 1.0f / 255.0f; - r = f * (FLOAT) (unsigned char) (dw >> 16); - g = f * (FLOAT) (unsigned char) (dw >> 8); - b = f * (FLOAT) (unsigned char) (dw >> 0); - a = f * (FLOAT) (unsigned char) (dw >> 24); -} - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( CONST FLOAT* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - r = pf[0]; - g = pf[1]; - b = pf[2]; - a = pf[3]; -} - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( CONST D3DXFLOAT16* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - D3DXFloat16To32Array(&r, pf, 4); -} - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( CONST D3DCOLORVALUE& c ) -{ - r = c.r; - g = c.g; - b = c.b; - a = c.a; -} - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( FLOAT fr, FLOAT fg, FLOAT fb, FLOAT fa ) -{ - r = fr; - g = fg; - b = fb; - a = fa; -} - - -// casting -D3DXINLINE -D3DXCOLOR::operator DWORD () const -{ - DWORD dwR = r >= 1.0f ? 0xff : r <= 0.0f ? 0x00 : (DWORD) (r * 255.0f + 0.5f); - DWORD dwG = g >= 1.0f ? 0xff : g <= 0.0f ? 0x00 : (DWORD) (g * 255.0f + 0.5f); - DWORD dwB = b >= 1.0f ? 0xff : b <= 0.0f ? 0x00 : (DWORD) (b * 255.0f + 0.5f); - DWORD dwA = a >= 1.0f ? 0xff : a <= 0.0f ? 0x00 : (DWORD) (a * 255.0f + 0.5f); - - return (dwA << 24) | (dwR << 16) | (dwG << 8) | dwB; -} - - -D3DXINLINE -D3DXCOLOR::operator FLOAT * () -{ - return (FLOAT *) &r; -} - -D3DXINLINE -D3DXCOLOR::operator CONST FLOAT * () const -{ - return (CONST FLOAT *) &r; -} - - -D3DXINLINE -D3DXCOLOR::operator D3DCOLORVALUE * () -{ - return (D3DCOLORVALUE *) &r; -} - -D3DXINLINE -D3DXCOLOR::operator CONST D3DCOLORVALUE * () const -{ - return (CONST D3DCOLORVALUE *) &r; -} - - -D3DXINLINE -D3DXCOLOR::operator D3DCOLORVALUE& () -{ - return *((D3DCOLORVALUE *) &r); -} - -D3DXINLINE -D3DXCOLOR::operator CONST D3DCOLORVALUE& () const -{ - return *((CONST D3DCOLORVALUE *) &r); -} - - -// assignment operators -D3DXINLINE D3DXCOLOR& -D3DXCOLOR::operator += ( CONST D3DXCOLOR& c ) -{ - r += c.r; - g += c.g; - b += c.b; - a += c.a; - return *this; -} - -D3DXINLINE D3DXCOLOR& -D3DXCOLOR::operator -= ( CONST D3DXCOLOR& c ) -{ - r -= c.r; - g -= c.g; - b -= c.b; - a -= c.a; - return *this; -} - -D3DXINLINE D3DXCOLOR& -D3DXCOLOR::operator *= ( FLOAT f ) -{ - r *= f; - g *= f; - b *= f; - a *= f; - return *this; -} - -D3DXINLINE D3DXCOLOR& -D3DXCOLOR::operator /= ( FLOAT f ) -{ - FLOAT fInv = 1.0f / f; - r *= fInv; - g *= fInv; - b *= fInv; - a *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator - () const -{ - return D3DXCOLOR(-r, -g, -b, -a); -} - - -// binary operators -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator + ( CONST D3DXCOLOR& c ) const -{ - return D3DXCOLOR(r + c.r, g + c.g, b + c.b, a + c.a); -} - -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator - ( CONST D3DXCOLOR& c ) const -{ - return D3DXCOLOR(r - c.r, g - c.g, b - c.b, a - c.a); -} - -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator * ( FLOAT f ) const -{ - return D3DXCOLOR(r * f, g * f, b * f, a * f); -} - -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator / ( FLOAT f ) const -{ - FLOAT fInv = 1.0f / f; - return D3DXCOLOR(r * fInv, g * fInv, b * fInv, a * fInv); -} - - -D3DXINLINE D3DXCOLOR -operator * (FLOAT f, CONST D3DXCOLOR& c ) -{ - return D3DXCOLOR(f * c.r, f * c.g, f * c.b, f * c.a); -} - - -D3DXINLINE BOOL -D3DXCOLOR::operator == ( CONST D3DXCOLOR& c ) const -{ - return r == c.r && g == c.g && b == c.b && a == c.a; -} - -D3DXINLINE BOOL -D3DXCOLOR::operator != ( CONST D3DXCOLOR& c ) const -{ - return r != c.r || g != c.g || b != c.b || a != c.a; -} - - -#endif //__cplusplus - - - -//=========================================================================== -// -// Inline functions -// -//=========================================================================== - - -//-------------------------- -// 2D Vector -//-------------------------- - -D3DXINLINE FLOAT D3DXVec2Length - ( CONST D3DXVECTOR2 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - -#ifdef __cplusplus - return sqrtf(pV->x * pV->x + pV->y * pV->y); -#else - return (FLOAT) sqrt(pV->x * pV->x + pV->y * pV->y); -#endif -} - -D3DXINLINE FLOAT D3DXVec2LengthSq - ( CONST D3DXVECTOR2 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - - return pV->x * pV->x + pV->y * pV->y; -} - -D3DXINLINE FLOAT D3DXVec2Dot - ( CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pV1 || !pV2) - return 0.0f; -#endif - - return pV1->x * pV2->x + pV1->y * pV2->y; -} - -D3DXINLINE FLOAT D3DXVec2CCW - ( CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pV1 || !pV2) - return 0.0f; -#endif - - return pV1->x * pV2->y - pV1->y * pV2->x; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Add - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + pV2->x; - pOut->y = pV1->y + pV2->y; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Subtract - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x - pV2->x; - pOut->y = pV1->y - pV2->y; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Minimize - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x < pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y < pV2->y ? pV1->y : pV2->y; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Maximize - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x > pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y > pV2->y ? pV1->y : pV2->y; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Scale - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV, FLOAT s ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV) - return NULL; -#endif - - pOut->x = pV->x * s; - pOut->y = pV->y * s; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Lerp - ( D3DXVECTOR2 *pOut, CONST D3DXVECTOR2 *pV1, CONST D3DXVECTOR2 *pV2, - FLOAT s ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + s * (pV2->x - pV1->x); - pOut->y = pV1->y + s * (pV2->y - pV1->y); - return pOut; -} - - -//-------------------------- -// 3D Vector -//-------------------------- - -D3DXINLINE FLOAT D3DXVec3Length - ( CONST D3DXVECTOR3 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - -#ifdef __cplusplus - return sqrtf(pV->x * pV->x + pV->y * pV->y + pV->z * pV->z); -#else - return (FLOAT) sqrt(pV->x * pV->x + pV->y * pV->y + pV->z * pV->z); -#endif -} - -D3DXINLINE FLOAT D3DXVec3LengthSq - ( CONST D3DXVECTOR3 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - - return pV->x * pV->x + pV->y * pV->y + pV->z * pV->z; -} - -D3DXINLINE FLOAT D3DXVec3Dot - ( CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pV1 || !pV2) - return 0.0f; -#endif - - return pV1->x * pV2->x + pV1->y * pV2->y + pV1->z * pV2->z; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Cross - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ) -{ - D3DXVECTOR3 v; - -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - v.x = pV1->y * pV2->z - pV1->z * pV2->y; - v.y = pV1->z * pV2->x - pV1->x * pV2->z; - v.z = pV1->x * pV2->y - pV1->y * pV2->x; - - *pOut = v; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Add - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + pV2->x; - pOut->y = pV1->y + pV2->y; - pOut->z = pV1->z + pV2->z; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Subtract - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x - pV2->x; - pOut->y = pV1->y - pV2->y; - pOut->z = pV1->z - pV2->z; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Minimize - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x < pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y < pV2->y ? pV1->y : pV2->y; - pOut->z = pV1->z < pV2->z ? pV1->z : pV2->z; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Maximize - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x > pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y > pV2->y ? pV1->y : pV2->y; - pOut->z = pV1->z > pV2->z ? pV1->z : pV2->z; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Scale - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV, FLOAT s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV) - return NULL; -#endif - - pOut->x = pV->x * s; - pOut->y = pV->y * s; - pOut->z = pV->z * s; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Lerp - ( D3DXVECTOR3 *pOut, CONST D3DXVECTOR3 *pV1, CONST D3DXVECTOR3 *pV2, - FLOAT s ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + s * (pV2->x - pV1->x); - pOut->y = pV1->y + s * (pV2->y - pV1->y); - pOut->z = pV1->z + s * (pV2->z - pV1->z); - return pOut; -} - - -//-------------------------- -// 4D Vector -//-------------------------- - -D3DXINLINE FLOAT D3DXVec4Length - ( CONST D3DXVECTOR4 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - -#ifdef __cplusplus - return sqrtf(pV->x * pV->x + pV->y * pV->y + pV->z * pV->z + pV->w * pV->w); -#else - return (FLOAT) sqrt(pV->x * pV->x + pV->y * pV->y + pV->z * pV->z + pV->w * pV->w); -#endif -} - -D3DXINLINE FLOAT D3DXVec4LengthSq - ( CONST D3DXVECTOR4 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - - return pV->x * pV->x + pV->y * pV->y + pV->z * pV->z + pV->w * pV->w; -} - -D3DXINLINE FLOAT D3DXVec4Dot - ( CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pV1 || !pV2) - return 0.0f; -#endif - - return pV1->x * pV2->x + pV1->y * pV2->y + pV1->z * pV2->z + pV1->w * pV2->w; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Add - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + pV2->x; - pOut->y = pV1->y + pV2->y; - pOut->z = pV1->z + pV2->z; - pOut->w = pV1->w + pV2->w; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Subtract - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x - pV2->x; - pOut->y = pV1->y - pV2->y; - pOut->z = pV1->z - pV2->z; - pOut->w = pV1->w - pV2->w; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Minimize - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x < pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y < pV2->y ? pV1->y : pV2->y; - pOut->z = pV1->z < pV2->z ? pV1->z : pV2->z; - pOut->w = pV1->w < pV2->w ? pV1->w : pV2->w; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Maximize - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x > pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y > pV2->y ? pV1->y : pV2->y; - pOut->z = pV1->z > pV2->z ? pV1->z : pV2->z; - pOut->w = pV1->w > pV2->w ? pV1->w : pV2->w; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Scale - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV, FLOAT s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV) - return NULL; -#endif - - pOut->x = pV->x * s; - pOut->y = pV->y * s; - pOut->z = pV->z * s; - pOut->w = pV->w * s; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Lerp - ( D3DXVECTOR4 *pOut, CONST D3DXVECTOR4 *pV1, CONST D3DXVECTOR4 *pV2, - FLOAT s ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + s * (pV2->x - pV1->x); - pOut->y = pV1->y + s * (pV2->y - pV1->y); - pOut->z = pV1->z + s * (pV2->z - pV1->z); - pOut->w = pV1->w + s * (pV2->w - pV1->w); - return pOut; -} - - -//-------------------------- -// 4D Matrix -//-------------------------- - -D3DXINLINE D3DXMATRIX* D3DXMatrixIdentity - ( D3DXMATRIX *pOut ) -{ -#ifdef D3DX_DEBUG - if(!pOut) - return NULL; -#endif - - pOut->m[0][1] = pOut->m[0][2] = pOut->m[0][3] = - pOut->m[1][0] = pOut->m[1][2] = pOut->m[1][3] = - pOut->m[2][0] = pOut->m[2][1] = pOut->m[2][3] = - pOut->m[3][0] = pOut->m[3][1] = pOut->m[3][2] = 0.0f; - - pOut->m[0][0] = pOut->m[1][1] = pOut->m[2][2] = pOut->m[3][3] = 1.0f; - return pOut; -} - - -D3DXINLINE BOOL D3DXMatrixIsIdentity - ( CONST D3DXMATRIX *pM ) -{ -#ifdef D3DX_DEBUG - if(!pM) - return FALSE; -#endif - - return pM->m[0][0] == 1.0f && pM->m[0][1] == 0.0f && pM->m[0][2] == 0.0f && pM->m[0][3] == 0.0f && - pM->m[1][0] == 0.0f && pM->m[1][1] == 1.0f && pM->m[1][2] == 0.0f && pM->m[1][3] == 0.0f && - pM->m[2][0] == 0.0f && pM->m[2][1] == 0.0f && pM->m[2][2] == 1.0f && pM->m[2][3] == 0.0f && - pM->m[3][0] == 0.0f && pM->m[3][1] == 0.0f && pM->m[3][2] == 0.0f && pM->m[3][3] == 1.0f; -} - - -//-------------------------- -// Quaternion -//-------------------------- - -D3DXINLINE FLOAT D3DXQuaternionLength - ( CONST D3DXQUATERNION *pQ ) -{ -#ifdef D3DX_DEBUG - if(!pQ) - return 0.0f; -#endif - -#ifdef __cplusplus - return sqrtf(pQ->x * pQ->x + pQ->y * pQ->y + pQ->z * pQ->z + pQ->w * pQ->w); -#else - return (FLOAT) sqrt(pQ->x * pQ->x + pQ->y * pQ->y + pQ->z * pQ->z + pQ->w * pQ->w); -#endif -} - -D3DXINLINE FLOAT D3DXQuaternionLengthSq - ( CONST D3DXQUATERNION *pQ ) -{ -#ifdef D3DX_DEBUG - if(!pQ) - return 0.0f; -#endif - - return pQ->x * pQ->x + pQ->y * pQ->y + pQ->z * pQ->z + pQ->w * pQ->w; -} - -D3DXINLINE FLOAT D3DXQuaternionDot - ( CONST D3DXQUATERNION *pQ1, CONST D3DXQUATERNION *pQ2 ) -{ -#ifdef D3DX_DEBUG - if(!pQ1 || !pQ2) - return 0.0f; -#endif - - return pQ1->x * pQ2->x + pQ1->y * pQ2->y + pQ1->z * pQ2->z + pQ1->w * pQ2->w; -} - - -D3DXINLINE D3DXQUATERNION* D3DXQuaternionIdentity - ( D3DXQUATERNION *pOut ) -{ -#ifdef D3DX_DEBUG - if(!pOut) - return NULL; -#endif - - pOut->x = pOut->y = pOut->z = 0.0f; - pOut->w = 1.0f; - return pOut; -} - -D3DXINLINE BOOL D3DXQuaternionIsIdentity - ( CONST D3DXQUATERNION *pQ ) -{ -#ifdef D3DX_DEBUG - if(!pQ) - return FALSE; -#endif - - return pQ->x == 0.0f && pQ->y == 0.0f && pQ->z == 0.0f && pQ->w == 1.0f; -} - - -D3DXINLINE D3DXQUATERNION* D3DXQuaternionConjugate - ( D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pQ) - return NULL; -#endif - - pOut->x = -pQ->x; - pOut->y = -pQ->y; - pOut->z = -pQ->z; - pOut->w = pQ->w; - return pOut; -} - - -//-------------------------- -// Plane -//-------------------------- - -D3DXINLINE FLOAT D3DXPlaneDot - ( CONST D3DXPLANE *pP, CONST D3DXVECTOR4 *pV) -{ -#ifdef D3DX_DEBUG - if(!pP || !pV) - return 0.0f; -#endif - - return pP->a * pV->x + pP->b * pV->y + pP->c * pV->z + pP->d * pV->w; -} - -D3DXINLINE FLOAT D3DXPlaneDotCoord - ( CONST D3DXPLANE *pP, CONST D3DXVECTOR3 *pV) -{ -#ifdef D3DX_DEBUG - if(!pP || !pV) - return 0.0f; -#endif - - return pP->a * pV->x + pP->b * pV->y + pP->c * pV->z + pP->d; -} - -D3DXINLINE FLOAT D3DXPlaneDotNormal - ( CONST D3DXPLANE *pP, CONST D3DXVECTOR3 *pV) -{ -#ifdef D3DX_DEBUG - if(!pP || !pV) - return 0.0f; -#endif - - return pP->a * pV->x + pP->b * pV->y + pP->c * pV->z; -} - -D3DXINLINE D3DXPLANE* D3DXPlaneScale - (D3DXPLANE *pOut, CONST D3DXPLANE *pP, FLOAT s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pP) - return NULL; -#endif - - pOut->a = pP->a * s; - pOut->b = pP->b * s; - pOut->c = pP->c * s; - pOut->d = pP->d * s; - return pOut; -} - - -//-------------------------- -// Color -//-------------------------- - -D3DXINLINE D3DXCOLOR* D3DXColorNegative - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC) - return NULL; -#endif - - pOut->r = 1.0f - pC->r; - pOut->g = 1.0f - pC->g; - pOut->b = 1.0f - pC->b; - pOut->a = pC->a; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorAdd - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC1 || !pC2) - return NULL; -#endif - - pOut->r = pC1->r + pC2->r; - pOut->g = pC1->g + pC2->g; - pOut->b = pC1->b + pC2->b; - pOut->a = pC1->a + pC2->a; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorSubtract - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC1 || !pC2) - return NULL; -#endif - - pOut->r = pC1->r - pC2->r; - pOut->g = pC1->g - pC2->g; - pOut->b = pC1->b - pC2->b; - pOut->a = pC1->a - pC2->a; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorScale - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC, FLOAT s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC) - return NULL; -#endif - - pOut->r = pC->r * s; - pOut->g = pC->g * s; - pOut->b = pC->b * s; - pOut->a = pC->a * s; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorModulate - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC1 || !pC2) - return NULL; -#endif - - pOut->r = pC1->r * pC2->r; - pOut->g = pC1->g * pC2->g; - pOut->b = pC1->b * pC2->b; - pOut->a = pC1->a * pC2->a; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorLerp - (D3DXCOLOR *pOut, CONST D3DXCOLOR *pC1, CONST D3DXCOLOR *pC2, FLOAT s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC1 || !pC2) - return NULL; -#endif - - pOut->r = pC1->r + s * (pC2->r - pC1->r); - pOut->g = pC1->g + s * (pC2->g - pC1->g); - pOut->b = pC1->b + s * (pC2->b - pC1->b); - pOut->a = pC1->a + s * (pC2->a - pC1->a); - return pOut; -} - - -#endif // __D3DX9MATH_INL__ - diff --git a/sdk/dx8sdk/Include/d3dx9mesh.h b/sdk/dx8sdk/Include/d3dx9mesh.h deleted file mode 100644 index ba2bd47d..00000000 --- a/sdk/dx8sdk/Include/d3dx9mesh.h +++ /dev/null @@ -1,2536 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx9mesh.h -// Content: D3DX mesh types and functions -// -////////////////////////////////////////////////////////////////////////////// - -#include "d3dx9.h" - -#ifndef __D3DX9MESH_H__ -#define __D3DX9MESH_H__ - -// {7ED943DD-52E8-40b5-A8D8-76685C406330} -DEFINE_GUID(IID_ID3DXBaseMesh, -0x7ed943dd, 0x52e8, 0x40b5, 0xa8, 0xd8, 0x76, 0x68, 0x5c, 0x40, 0x63, 0x30); - -// {4020E5C2-1403-4929-883F-E2E849FAC195} -DEFINE_GUID(IID_ID3DXMesh, -0x4020e5c2, 0x1403, 0x4929, 0x88, 0x3f, 0xe2, 0xe8, 0x49, 0xfa, 0xc1, 0x95); - -// {8875769A-D579-4088-AAEB-534D1AD84E96} -DEFINE_GUID(IID_ID3DXPMesh, -0x8875769a, 0xd579, 0x4088, 0xaa, 0xeb, 0x53, 0x4d, 0x1a, 0xd8, 0x4e, 0x96); - -// {667EA4C7-F1CD-4386-B523-7C0290B83CC5} -DEFINE_GUID(IID_ID3DXSPMesh, -0x667ea4c7, 0xf1cd, 0x4386, 0xb5, 0x23, 0x7c, 0x2, 0x90, 0xb8, 0x3c, 0xc5); - -// {11EAA540-F9A6-4d49-AE6A-E19221F70CC4} -DEFINE_GUID(IID_ID3DXSkinInfo, -0x11eaa540, 0xf9a6, 0x4d49, 0xae, 0x6a, 0xe1, 0x92, 0x21, 0xf7, 0xc, 0xc4); - -// {3CE6CC22-DBF2-44f4-894D-F9C34A337139} -DEFINE_GUID(IID_ID3DXPatchMesh, -0x3ce6cc22, 0xdbf2, 0x44f4, 0x89, 0x4d, 0xf9, 0xc3, 0x4a, 0x33, 0x71, 0x39); - -//patch mesh can be quads or tris -typedef enum _D3DXPATCHMESHTYPE { - D3DXPATCHMESH_RECT = 0x001, - D3DXPATCHMESH_TRI = 0x002, - D3DXPATCHMESH_NPATCH = 0x003, - - D3DXPATCHMESH_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ -} D3DXPATCHMESHTYPE; - -// Mesh options - lower 3 bytes only, upper byte used by _D3DXMESHOPT option flags -enum _D3DXMESH { - D3DXMESH_32BIT = 0x001, // If set, then use 32 bit indices, if not set use 16 bit indices. - D3DXMESH_DONOTCLIP = 0x002, // Use D3DUSAGE_DONOTCLIP for VB & IB. - D3DXMESH_POINTS = 0x004, // Use D3DUSAGE_POINTS for VB & IB. - D3DXMESH_RTPATCHES = 0x008, // Use D3DUSAGE_RTPATCHES for VB & IB. - D3DXMESH_NPATCHES = 0x4000,// Use D3DUSAGE_NPATCHES for VB & IB. - D3DXMESH_VB_SYSTEMMEM = 0x010, // Use D3DPOOL_SYSTEMMEM for VB. Overrides D3DXMESH_MANAGEDVERTEXBUFFER - D3DXMESH_VB_MANAGED = 0x020, // Use D3DPOOL_MANAGED for VB. - D3DXMESH_VB_WRITEONLY = 0x040, // Use D3DUSAGE_WRITEONLY for VB. - D3DXMESH_VB_DYNAMIC = 0x080, // Use D3DUSAGE_DYNAMIC for VB. - D3DXMESH_VB_SOFTWAREPROCESSING = 0x8000, // Use D3DUSAGE_SOFTWAREPROCESSING for VB. - D3DXMESH_IB_SYSTEMMEM = 0x100, // Use D3DPOOL_SYSTEMMEM for IB. Overrides D3DXMESH_MANAGEDINDEXBUFFER - D3DXMESH_IB_MANAGED = 0x200, // Use D3DPOOL_MANAGED for IB. - D3DXMESH_IB_WRITEONLY = 0x400, // Use D3DUSAGE_WRITEONLY for IB. - D3DXMESH_IB_DYNAMIC = 0x800, // Use D3DUSAGE_DYNAMIC for IB. - D3DXMESH_IB_SOFTWAREPROCESSING= 0x10000, // Use D3DUSAGE_SOFTWAREPROCESSING for IB. - - D3DXMESH_VB_SHARE = 0x1000, // Valid for Clone* calls only, forces cloned mesh/pmesh to share vertex buffer - - D3DXMESH_USEHWONLY = 0x2000, // Valid for ID3DXSkinInfo::ConvertToBlendedMesh - - // Helper options - D3DXMESH_SYSTEMMEM = 0x110, // D3DXMESH_VB_SYSTEMMEM | D3DXMESH_IB_SYSTEMMEM - D3DXMESH_MANAGED = 0x220, // D3DXMESH_VB_MANAGED | D3DXMESH_IB_MANAGED - D3DXMESH_WRITEONLY = 0x440, // D3DXMESH_VB_WRITEONLY | D3DXMESH_IB_WRITEONLY - D3DXMESH_DYNAMIC = 0x880, // D3DXMESH_VB_DYNAMIC | D3DXMESH_IB_DYNAMIC - D3DXMESH_SOFTWAREPROCESSING = 0x18000, // D3DXMESH_VB_SOFTWAREPROCESSING | D3DXMESH_IB_SOFTWAREPROCESSING - -}; - -//patch mesh options -enum _D3DXPATCHMESH { - D3DXPATCHMESH_DEFAULT = 000, -}; -// option field values for specifying min value in D3DXGeneratePMesh and D3DXSimplifyMesh -enum _D3DXMESHSIMP -{ - D3DXMESHSIMP_VERTEX = 0x1, - D3DXMESHSIMP_FACE = 0x2, - -}; - -typedef enum _D3DXCLEANTYPE { - D3DXCLEAN_BACKFACING = 0x00000001, - D3DXCLEAN_BOWTIES = 0x00000002, - - // Helper options - D3DXCLEAN_SKINNING = D3DXCLEAN_BACKFACING, // Bowtie cleaning modifies geometry and breaks skinning - D3DXCLEAN_OPTIMIZATION = D3DXCLEAN_BACKFACING, - D3DXCLEAN_SIMPLIFICATION= D3DXCLEAN_BACKFACING | D3DXCLEAN_BOWTIES, -} D3DXCLEANTYPE; - -enum _MAX_FVF_DECL_SIZE -{ - MAX_FVF_DECL_SIZE = MAXD3DDECLLENGTH + 1 // +1 for END -}; - -typedef struct ID3DXBaseMesh *LPD3DXBASEMESH; -typedef struct ID3DXMesh *LPD3DXMESH; -typedef struct ID3DXPMesh *LPD3DXPMESH; -typedef struct ID3DXSPMesh *LPD3DXSPMESH; -typedef struct ID3DXSkinInfo *LPD3DXSKININFO; -typedef struct ID3DXPatchMesh *LPD3DXPATCHMESH; - -typedef struct _D3DXATTRIBUTERANGE -{ - DWORD AttribId; - DWORD FaceStart; - DWORD FaceCount; - DWORD VertexStart; - DWORD VertexCount; -} D3DXATTRIBUTERANGE; - -typedef D3DXATTRIBUTERANGE* LPD3DXATTRIBUTERANGE; - -typedef struct _D3DXMATERIAL -{ - D3DMATERIAL9 MatD3D; - LPSTR pTextureFilename; -} D3DXMATERIAL; -typedef D3DXMATERIAL *LPD3DXMATERIAL; - -typedef enum _D3DXEFFECTDEFAULTTYPE -{ - D3DXEDT_STRING = 0x1, // pValue points to a null terminated ASCII string - D3DXEDT_FLOATS = 0x2, // pValue points to an array of floats - number of floats is NumBytes / sizeof(float) - D3DXEDT_DWORD = 0x3, // pValue points to a DWORD - - D3DXEDT_FORCEDWORD = 0x7fffffff -} D3DXEFFECTDEFAULTTYPE; - -typedef struct _D3DXEFFECTDEFAULT -{ - LPSTR pParamName; - D3DXEFFECTDEFAULTTYPE Type; // type of the data pointed to by pValue - DWORD NumBytes; // size in bytes of the data pointed to by pValue - LPVOID pValue; // data for the default of the effect -} D3DXEFFECTDEFAULT, *LPD3DXEFFECTDEFAULT; - -typedef struct _D3DXEFFECTINSTANCE -{ - LPSTR pEffectFilename; - DWORD NumDefaults; - LPD3DXEFFECTDEFAULT pDefaults; -} D3DXEFFECTINSTANCE, *LPD3DXEFFECTINSTANCE; - -typedef struct _D3DXATTRIBUTEWEIGHTS -{ - FLOAT Position; - FLOAT Boundary; - FLOAT Normal; - FLOAT Diffuse; - FLOAT Specular; - FLOAT Texcoord[8]; - FLOAT Tangent; - FLOAT Binormal; -} D3DXATTRIBUTEWEIGHTS, *LPD3DXATTRIBUTEWEIGHTS; - -enum _D3DXWELDEPSILONSFLAGS -{ - D3DXWELDEPSILONS_WELDALL = 0x1, // weld all vertices marked by adjacency as being overlapping - - D3DXWELDEPSILONS_WELDPARTIALMATCHES = 0x2, // if a given vertex component is within epsilon, modify partial matched - // vertices so that both components identical AND if all components "equal" - // remove one of the vertices - D3DXWELDEPSILONS_DONOTREMOVEVERTICES = 0x4, // instructs weld to only allow modifications to vertices and not removal - // ONLY valid if D3DXWELDEPSILONS_WELDPARTIALMATCHES is set - // useful to modify vertices to be equal, but not allow vertices to be removed - - D3DXWELDEPSILONS_DONOTSPLIT = 0x8, // instructs weld to specify the D3DXMESHOPT_DONOTSPLIT flag when doing an Optimize(ATTR_SORT) - // if this flag is not set, all vertices that are in separate attribute groups - // will remain split and not welded. Setting this flag can slow down software vertex processing - -}; - -typedef struct _D3DXWELDEPSILONS -{ - FLOAT Position; // NOTE: This does NOT replace the epsilon in GenerateAdjacency - // in general, it should be the same value or greater than the one passed to GeneratedAdjacency - FLOAT BlendWeights; - FLOAT Normal; - FLOAT PSize; - FLOAT Specular; - FLOAT Diffuse; - FLOAT Texcoord[8]; - FLOAT Tangent; - FLOAT Binormal; - FLOAT TessFactor; -} D3DXWELDEPSILONS; - -typedef D3DXWELDEPSILONS* LPD3DXWELDEPSILONS; - - -#undef INTERFACE -#define INTERFACE ID3DXBaseMesh - -DECLARE_INTERFACE_(ID3DXBaseMesh, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXBaseMesh - STDMETHOD(DrawSubset)(THIS_ DWORD AttribId) PURE; - STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE; - STDMETHOD_(DWORD, GetFVF)(THIS) PURE; - STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9 Declaration[MAX_FVF_DECL_SIZE]) PURE; - STDMETHOD_(DWORD, GetNumBytesPerVertex)(THIS) PURE; - STDMETHOD_(DWORD, GetOptions)(THIS) PURE; - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9* ppDevice) PURE; - STDMETHOD(CloneMeshFVF)(THIS_ DWORD Options, - DWORD FVF, LPDIRECT3DDEVICE9 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(CloneMesh)(THIS_ DWORD Options, - CONST D3DVERTEXELEMENT9 *pDeclaration, LPDIRECT3DDEVICE9 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(GetVertexBuffer)(THIS_ LPDIRECT3DVERTEXBUFFER9* ppVB) PURE; - STDMETHOD(GetIndexBuffer)(THIS_ LPDIRECT3DINDEXBUFFER9* ppIB) PURE; - STDMETHOD(LockVertexBuffer)(THIS_ DWORD Flags, LPVOID *ppData) PURE; - STDMETHOD(UnlockVertexBuffer)(THIS) PURE; - STDMETHOD(LockIndexBuffer)(THIS_ DWORD Flags, LPVOID *ppData) PURE; - STDMETHOD(UnlockIndexBuffer)(THIS) PURE; - STDMETHOD(GetAttributeTable)( - THIS_ D3DXATTRIBUTERANGE *pAttribTable, DWORD* pAttribTableSize) PURE; - - STDMETHOD(ConvertPointRepsToAdjacency)(THIS_ CONST DWORD* pPRep, DWORD* pAdjacency) PURE; - STDMETHOD(ConvertAdjacencyToPointReps)(THIS_ CONST DWORD* pAdjacency, DWORD* pPRep) PURE; - STDMETHOD(GenerateAdjacency)(THIS_ FLOAT Epsilon, DWORD* pAdjacency) PURE; - - STDMETHOD(UpdateSemantics)(THIS_ D3DVERTEXELEMENT9 Declaration[MAX_FVF_DECL_SIZE]) PURE; -}; - - -#undef INTERFACE -#define INTERFACE ID3DXMesh - -DECLARE_INTERFACE_(ID3DXMesh, ID3DXBaseMesh) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXBaseMesh - STDMETHOD(DrawSubset)(THIS_ DWORD AttribId) PURE; - STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE; - STDMETHOD_(DWORD, GetFVF)(THIS) PURE; - STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9 Declaration[MAX_FVF_DECL_SIZE]) PURE; - STDMETHOD_(DWORD, GetNumBytesPerVertex)(THIS) PURE; - STDMETHOD_(DWORD, GetOptions)(THIS) PURE; - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9* ppDevice) PURE; - STDMETHOD(CloneMeshFVF)(THIS_ DWORD Options, - DWORD FVF, LPDIRECT3DDEVICE9 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(CloneMesh)(THIS_ DWORD Options, - CONST D3DVERTEXELEMENT9 *pDeclaration, LPDIRECT3DDEVICE9 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(GetVertexBuffer)(THIS_ LPDIRECT3DVERTEXBUFFER9* ppVB) PURE; - STDMETHOD(GetIndexBuffer)(THIS_ LPDIRECT3DINDEXBUFFER9* ppIB) PURE; - STDMETHOD(LockVertexBuffer)(THIS_ DWORD Flags, LPVOID *ppData) PURE; - STDMETHOD(UnlockVertexBuffer)(THIS) PURE; - STDMETHOD(LockIndexBuffer)(THIS_ DWORD Flags, LPVOID *ppData) PURE; - STDMETHOD(UnlockIndexBuffer)(THIS) PURE; - STDMETHOD(GetAttributeTable)( - THIS_ D3DXATTRIBUTERANGE *pAttribTable, DWORD* pAttribTableSize) PURE; - - STDMETHOD(ConvertPointRepsToAdjacency)(THIS_ CONST DWORD* pPRep, DWORD* pAdjacency) PURE; - STDMETHOD(ConvertAdjacencyToPointReps)(THIS_ CONST DWORD* pAdjacency, DWORD* pPRep) PURE; - STDMETHOD(GenerateAdjacency)(THIS_ FLOAT Epsilon, DWORD* pAdjacency) PURE; - - STDMETHOD(UpdateSemantics)(THIS_ D3DVERTEXELEMENT9 Declaration[MAX_FVF_DECL_SIZE]) PURE; - - // ID3DXMesh - STDMETHOD(LockAttributeBuffer)(THIS_ DWORD Flags, DWORD** ppData) PURE; - STDMETHOD(UnlockAttributeBuffer)(THIS) PURE; - STDMETHOD(Optimize)(THIS_ DWORD Flags, CONST DWORD* pAdjacencyIn, DWORD* pAdjacencyOut, - DWORD* pFaceRemap, LPD3DXBUFFER *ppVertexRemap, - LPD3DXMESH* ppOptMesh) PURE; - STDMETHOD(OptimizeInplace)(THIS_ DWORD Flags, CONST DWORD* pAdjacencyIn, DWORD* pAdjacencyOut, - DWORD* pFaceRemap, LPD3DXBUFFER *ppVertexRemap) PURE; - STDMETHOD(SetAttributeTable)(THIS_ CONST D3DXATTRIBUTERANGE *pAttribTable, DWORD cAttribTableSize) PURE; -}; - - -#undef INTERFACE -#define INTERFACE ID3DXPMesh - -DECLARE_INTERFACE_(ID3DXPMesh, ID3DXBaseMesh) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXBaseMesh - STDMETHOD(DrawSubset)(THIS_ DWORD AttribId) PURE; - STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE; - STDMETHOD_(DWORD, GetFVF)(THIS) PURE; - STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9 Declaration[MAX_FVF_DECL_SIZE]) PURE; - STDMETHOD_(DWORD, GetNumBytesPerVertex)(THIS) PURE; - STDMETHOD_(DWORD, GetOptions)(THIS) PURE; - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9* ppDevice) PURE; - STDMETHOD(CloneMeshFVF)(THIS_ DWORD Options, - DWORD FVF, LPDIRECT3DDEVICE9 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(CloneMesh)(THIS_ DWORD Options, - CONST D3DVERTEXELEMENT9 *pDeclaration, LPDIRECT3DDEVICE9 pD3DDevice, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(GetVertexBuffer)(THIS_ LPDIRECT3DVERTEXBUFFER9* ppVB) PURE; - STDMETHOD(GetIndexBuffer)(THIS_ LPDIRECT3DINDEXBUFFER9* ppIB) PURE; - STDMETHOD(LockVertexBuffer)(THIS_ DWORD Flags, LPVOID *ppData) PURE; - STDMETHOD(UnlockVertexBuffer)(THIS) PURE; - STDMETHOD(LockIndexBuffer)(THIS_ DWORD Flags, LPVOID *ppData) PURE; - STDMETHOD(UnlockIndexBuffer)(THIS) PURE; - STDMETHOD(GetAttributeTable)( - THIS_ D3DXATTRIBUTERANGE *pAttribTable, DWORD* pAttribTableSize) PURE; - - STDMETHOD(ConvertPointRepsToAdjacency)(THIS_ CONST DWORD* pPRep, DWORD* pAdjacency) PURE; - STDMETHOD(ConvertAdjacencyToPointReps)(THIS_ CONST DWORD* pAdjacency, DWORD* pPRep) PURE; - STDMETHOD(GenerateAdjacency)(THIS_ FLOAT Epsilon, DWORD* pAdjacency) PURE; - - STDMETHOD(UpdateSemantics)(THIS_ D3DVERTEXELEMENT9 Declaration[MAX_FVF_DECL_SIZE]) PURE; - - // ID3DXPMesh - STDMETHOD(ClonePMeshFVF)(THIS_ DWORD Options, - DWORD FVF, LPDIRECT3DDEVICE9 pD3DDevice, LPD3DXPMESH* ppCloneMesh) PURE; - STDMETHOD(ClonePMesh)(THIS_ DWORD Options, - CONST D3DVERTEXELEMENT9 *pDeclaration, LPDIRECT3DDEVICE9 pD3DDevice, LPD3DXPMESH* ppCloneMesh) PURE; - STDMETHOD(SetNumFaces)(THIS_ DWORD Faces) PURE; - STDMETHOD(SetNumVertices)(THIS_ DWORD Vertices) PURE; - STDMETHOD_(DWORD, GetMaxFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetMinFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetMaxVertices)(THIS) PURE; - STDMETHOD_(DWORD, GetMinVertices)(THIS) PURE; - STDMETHOD(Save)(THIS_ IStream *pStream, CONST D3DXMATERIAL* pMaterials, CONST D3DXEFFECTINSTANCE* pEffectInstances, DWORD NumMaterials) PURE; - - STDMETHOD(Optimize)(THIS_ DWORD Flags, DWORD* pAdjacencyOut, - DWORD* pFaceRemap, LPD3DXBUFFER *ppVertexRemap, - LPD3DXMESH* ppOptMesh) PURE; - - STDMETHOD(OptimizeBaseLOD)(THIS_ DWORD Flags, DWORD* pFaceRemap) PURE; - STDMETHOD(TrimByFaces)(THIS_ DWORD NewFacesMin, DWORD NewFacesMax, DWORD *rgiFaceRemap, DWORD *rgiVertRemap) PURE; - STDMETHOD(TrimByVertices)(THIS_ DWORD NewVerticesMin, DWORD NewVerticesMax, DWORD *rgiFaceRemap, DWORD *rgiVertRemap) PURE; - - STDMETHOD(GetAdjacency)(THIS_ DWORD* pAdjacency) PURE; - - // Used to generate the immediate "ancestor" for each vertex when it is removed by a vsplit. Allows generation of geomorphs - // Vertex buffer must be equal to or greater than the maximum number of vertices in the pmesh - STDMETHOD(GenerateVertexHistory)(THIS_ DWORD* pVertexHistory) PURE; -}; - - -#undef INTERFACE -#define INTERFACE ID3DXSPMesh - -DECLARE_INTERFACE_(ID3DXSPMesh, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXSPMesh - STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE; - STDMETHOD_(DWORD, GetFVF)(THIS) PURE; - STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9 Declaration[MAX_FVF_DECL_SIZE]) PURE; - STDMETHOD_(DWORD, GetOptions)(THIS) PURE; - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9* ppDevice) PURE; - STDMETHOD(CloneMeshFVF)(THIS_ DWORD Options, - DWORD FVF, LPDIRECT3DDEVICE9 pD3DDevice, DWORD *pAdjacencyOut, DWORD *pVertexRemapOut, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(CloneMesh)(THIS_ DWORD Options, - CONST D3DVERTEXELEMENT9 *pDeclaration, LPDIRECT3DDEVICE9 pD3DDevice, DWORD *pAdjacencyOut, DWORD *pVertexRemapOut, LPD3DXMESH* ppCloneMesh) PURE; - STDMETHOD(ClonePMeshFVF)(THIS_ DWORD Options, - DWORD FVF, LPDIRECT3DDEVICE9 pD3DDevice, DWORD *pVertexRemapOut, FLOAT *pErrorsByFace, LPD3DXPMESH* ppCloneMesh) PURE; - STDMETHOD(ClonePMesh)(THIS_ DWORD Options, - CONST D3DVERTEXELEMENT9 *pDeclaration, LPDIRECT3DDEVICE9 pD3DDevice, DWORD *pVertexRemapOut, FLOAT *pErrorsbyFace, LPD3DXPMESH* ppCloneMesh) PURE; - STDMETHOD(ReduceFaces)(THIS_ DWORD Faces) PURE; - STDMETHOD(ReduceVertices)(THIS_ DWORD Vertices) PURE; - STDMETHOD_(DWORD, GetMaxFaces)(THIS) PURE; - STDMETHOD_(DWORD, GetMaxVertices)(THIS) PURE; - STDMETHOD(GetVertexAttributeWeights)(THIS_ LPD3DXATTRIBUTEWEIGHTS pVertexAttributeWeights) PURE; - STDMETHOD(GetVertexWeights)(THIS_ FLOAT *pVertexWeights) PURE; -}; - -#define UNUSED16 (0xffff) -#define UNUSED32 (0xffffffff) - -// ID3DXMesh::Optimize options - upper byte only, lower 3 bytes used from _D3DXMESH option flags -enum _D3DXMESHOPT { - D3DXMESHOPT_COMPACT = 0x01000000, - D3DXMESHOPT_ATTRSORT = 0x02000000, - D3DXMESHOPT_VERTEXCACHE = 0x04000000, - D3DXMESHOPT_STRIPREORDER = 0x08000000, - D3DXMESHOPT_IGNOREVERTS = 0x10000000, // optimize faces only, don't touch vertices - D3DXMESHOPT_DONOTSPLIT = 0x20000000, // do not split vertices shared between attribute groups when attribute sorting - D3DXMESHOPT_DEVICEINDEPENDENT = 0x00400000, // Only affects VCache. uses a static known good cache size for all cards - - // D3DXMESHOPT_SHAREVB has been removed, please use D3DXMESH_VB_SHARE instead - -}; - -// Subset of the mesh that has the same attribute and bone combination. -// This subset can be rendered in a single draw call -typedef struct _D3DXBONECOMBINATION -{ - DWORD AttribId; - DWORD FaceStart; - DWORD FaceCount; - DWORD VertexStart; - DWORD VertexCount; - DWORD* BoneId; -} D3DXBONECOMBINATION, *LPD3DXBONECOMBINATION; - -// The following types of patch combinations are supported: -// Patch type Basis Degree -// Rect Bezier 2,3,5 -// Rect B-Spline 2,3,5 -// Rect Catmull-Rom 3 -// Tri Bezier 2,3,5 -// N-Patch N/A 3 - -typedef struct _D3DXPATCHINFO -{ - D3DXPATCHMESHTYPE PatchType; - D3DDEGREETYPE Degree; - D3DBASISTYPE Basis; -} D3DXPATCHINFO, *LPD3DXPATCHINFO; - -#undef INTERFACE -#define INTERFACE ID3DXPatchMesh - -DECLARE_INTERFACE_(ID3DXPatchMesh, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXPatchMesh - - // Return creation parameters - STDMETHOD_(DWORD, GetNumPatches)(THIS) PURE; - STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE; - STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9 Declaration[MAX_FVF_DECL_SIZE]) PURE; - STDMETHOD_(DWORD, GetControlVerticesPerPatch)(THIS) PURE; - STDMETHOD_(DWORD, GetOptions)(THIS) PURE; - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9 *ppDevice) PURE; - STDMETHOD(GetPatchInfo)(THIS_ LPD3DXPATCHINFO PatchInfo) PURE; - - // Control mesh access - STDMETHOD(GetVertexBuffer)(THIS_ LPDIRECT3DVERTEXBUFFER9* ppVB) PURE; - STDMETHOD(GetIndexBuffer)(THIS_ LPDIRECT3DINDEXBUFFER9* ppIB) PURE; - STDMETHOD(LockVertexBuffer)(THIS_ DWORD flags, LPVOID *ppData) PURE; - STDMETHOD(UnlockVertexBuffer)(THIS) PURE; - STDMETHOD(LockIndexBuffer)(THIS_ DWORD flags, LPVOID *ppData) PURE; - STDMETHOD(UnlockIndexBuffer)(THIS) PURE; - STDMETHOD(LockAttributeBuffer)(THIS_ DWORD flags, DWORD** ppData) PURE; - STDMETHOD(UnlockAttributeBuffer)(THIS) PURE; - - // This function returns the size of the tessellated mesh given a tessellation level. - // This assumes uniform tessellation. For adaptive tessellation the Adaptive parameter must - // be set to TRUE and TessellationLevel should be the max tessellation. - // This will result in the max mesh size necessary for adaptive tessellation. - STDMETHOD(GetTessSize)(THIS_ FLOAT fTessLevel,DWORD Adaptive, DWORD *NumTriangles,DWORD *NumVertices) PURE; - - //GenerateAdjacency determines which patches are adjacent with provided tolerance - //this information is used internally to optimize tessellation - STDMETHOD(GenerateAdjacency)(THIS_ FLOAT Tolerance) PURE; - - //CloneMesh Creates a new patchmesh with the specified decl, and converts the vertex buffer - //to the new decl. Entries in the new decl which are new are set to 0. If the current mesh - //has adjacency, the new mesh will also have adjacency - STDMETHOD(CloneMesh)(THIS_ DWORD Options, CONST D3DVERTEXELEMENT9 *pDecl, LPD3DXPATCHMESH *pMesh) PURE; - - // Optimizes the patchmesh for efficient tessellation. This function is designed - // to perform one time optimization for patch meshes that need to be tessellated - // repeatedly by calling the Tessellate() method. The optimization performed is - // independent of the actual tessellation level used. - // Currently Flags is unused. - // If vertices are changed, Optimize must be called again - STDMETHOD(Optimize)(THIS_ DWORD flags) PURE; - - //gets and sets displacement parameters - //displacement maps can only be 2D textures MIP-MAPPING is ignored for non adapative tessellation - STDMETHOD(SetDisplaceParam)(THIS_ LPDIRECT3DBASETEXTURE9 Texture, - D3DTEXTUREFILTERTYPE MinFilter, - D3DTEXTUREFILTERTYPE MagFilter, - D3DTEXTUREFILTERTYPE MipFilter, - D3DTEXTUREADDRESS Wrap, - DWORD dwLODBias) PURE; - - STDMETHOD(GetDisplaceParam)(THIS_ LPDIRECT3DBASETEXTURE9 *Texture, - D3DTEXTUREFILTERTYPE *MinFilter, - D3DTEXTUREFILTERTYPE *MagFilter, - D3DTEXTUREFILTERTYPE *MipFilter, - D3DTEXTUREADDRESS *Wrap, - DWORD *dwLODBias) PURE; - - // Performs the uniform tessellation based on the tessellation level. - // This function will perform more efficiently if the patch mesh has been optimized using the Optimize() call. - STDMETHOD(Tessellate)(THIS_ FLOAT fTessLevel,LPD3DXMESH pMesh) PURE; - - // Performs adaptive tessellation based on the Z based adaptive tessellation criterion. - // pTrans specifies a 4D vector that is dotted with the vertices to get the per vertex - // adaptive tessellation amount. Each edge is tessellated to the average of the criterion - // at the 2 vertices it connects. - // MaxTessLevel specifies the upper limit for adaptive tesselation. - // This function will perform more efficiently if the patch mesh has been optimized using the Optimize() call. - STDMETHOD(TessellateAdaptive)(THIS_ - CONST D3DXVECTOR4 *pTrans, - DWORD dwMaxTessLevel, - DWORD dwMinTessLevel, - LPD3DXMESH pMesh) PURE; - -}; - -#undef INTERFACE -#define INTERFACE ID3DXSkinInfo - -DECLARE_INTERFACE_(ID3DXSkinInfo, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // Specify the which vertices do each bones influence and by how much - STDMETHOD(SetBoneInfluence)(THIS_ DWORD bone, DWORD numInfluences, CONST DWORD* vertices, CONST FLOAT* weights) PURE; - STDMETHOD(SetBoneVertexInfluence)(THIS_ DWORD boneNum, DWORD influenceNum, float weight) PURE; - STDMETHOD_(DWORD, GetNumBoneInfluences)(THIS_ DWORD bone) PURE; - STDMETHOD(GetBoneInfluence)(THIS_ DWORD bone, DWORD* vertices, FLOAT* weights) PURE; - STDMETHOD(GetBoneVertexInfluence)(THIS_ DWORD boneNum, DWORD influenceNum, float *pWeight, DWORD *pVertexNum) PURE; - STDMETHOD(GetMaxVertexInfluences)(THIS_ DWORD* maxVertexInfluences) PURE; - STDMETHOD_(DWORD, GetNumBones)(THIS) PURE; - STDMETHOD(FindBoneVertexInfluenceIndex)(THIS_ DWORD boneNum, DWORD vertexNum, DWORD *pInfluenceIndex) PURE; - - // This gets the max face influences based on a triangle mesh with the specified index buffer - STDMETHOD(GetMaxFaceInfluences)(THIS_ LPDIRECT3DINDEXBUFFER9 pIB, DWORD NumFaces, DWORD* maxFaceInfluences) PURE; - - // Set min bone influence. Bone influences that are smaller than this are ignored - STDMETHOD(SetMinBoneInfluence)(THIS_ FLOAT MinInfl) PURE; - // Get min bone influence. - STDMETHOD_(FLOAT, GetMinBoneInfluence)(THIS) PURE; - - // Bone names are returned by D3DXLoadSkinMeshFromXof. They are not used by any other method of this object - STDMETHOD(SetBoneName)(THIS_ DWORD Bone, LPCSTR pName) PURE; // pName is copied to an internal string buffer - STDMETHOD_(LPCSTR, GetBoneName)(THIS_ DWORD Bone) PURE; // A pointer to an internal string buffer is returned. Do not free this. - - // Bone offset matrices are returned by D3DXLoadSkinMeshFromXof. They are not used by any other method of this object - STDMETHOD(SetBoneOffsetMatrix)(THIS_ DWORD Bone, CONST D3DXMATRIX *pBoneTransform) PURE; // pBoneTransform is copied to an internal buffer - STDMETHOD_(LPD3DXMATRIX, GetBoneOffsetMatrix)(THIS_ DWORD Bone) PURE; // A pointer to an internal matrix is returned. Do not free this. - - // Clone a skin info object - STDMETHOD(Clone)(THIS_ LPD3DXSKININFO* ppSkinInfo) PURE; - - // Update bone influence information to match vertices after they are reordered. This should be called - // if the target vertex buffer has been reordered externally. - STDMETHOD(Remap)(THIS_ DWORD NumVertices, DWORD* pVertexRemap) PURE; - - // These methods enable the modification of the vertex layout of the vertices that will be skinned - STDMETHOD(SetFVF)(THIS_ DWORD FVF) PURE; - STDMETHOD(SetDeclaration)(THIS_ CONST D3DVERTEXELEMENT9 *pDeclaration) PURE; - STDMETHOD_(DWORD, GetFVF)(THIS) PURE; - STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9 Declaration[MAX_FVF_DECL_SIZE]) PURE; - - // Apply SW skinning based on current pose matrices to the target vertices. - STDMETHOD(UpdateSkinnedMesh)(THIS_ - CONST D3DXMATRIX* pBoneTransforms, - CONST D3DXMATRIX* pBoneInvTransposeTransforms, - LPCVOID pVerticesSrc, - PVOID pVerticesDst) PURE; - - // Takes a mesh and returns a new mesh with per vertex blend weights and a bone combination - // table that describes which bones affect which subsets of the mesh - STDMETHOD(ConvertToBlendedMesh)(THIS_ - LPD3DXMESH pMesh, - DWORD Options, - CONST DWORD *pAdjacencyIn, - LPDWORD pAdjacencyOut, - DWORD* pFaceRemap, - LPD3DXBUFFER *ppVertexRemap, - DWORD* pMaxFaceInfl, - DWORD* pNumBoneCombinations, - LPD3DXBUFFER* ppBoneCombinationTable, - LPD3DXMESH* ppMesh) PURE; - - // Takes a mesh and returns a new mesh with per vertex blend weights and indices - // and a bone combination table that describes which bones palettes affect which subsets of the mesh - STDMETHOD(ConvertToIndexedBlendedMesh)(THIS_ - LPD3DXMESH pMesh, - DWORD Options, - DWORD paletteSize, - CONST DWORD *pAdjacencyIn, - LPDWORD pAdjacencyOut, - DWORD* pFaceRemap, - LPD3DXBUFFER *ppVertexRemap, - DWORD* pMaxVertexInfl, - DWORD* pNumBoneCombinations, - LPD3DXBUFFER* ppBoneCombinationTable, - LPD3DXMESH* ppMesh) PURE; -}; - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - - -HRESULT WINAPI - D3DXCreateMesh( - DWORD NumFaces, - DWORD NumVertices, - DWORD Options, - CONST D3DVERTEXELEMENT9 *pDeclaration, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXMESH* ppMesh); - -HRESULT WINAPI - D3DXCreateMeshFVF( - DWORD NumFaces, - DWORD NumVertices, - DWORD Options, - DWORD FVF, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXMESH* ppMesh); - -HRESULT WINAPI - D3DXCreateSPMesh( - LPD3DXMESH pMesh, - CONST DWORD* pAdjacency, - CONST D3DXATTRIBUTEWEIGHTS *pVertexAttributeWeights, - CONST FLOAT *pVertexWeights, - LPD3DXSPMESH* ppSMesh); - -// clean a mesh up for simplification, try to make manifold -HRESULT WINAPI - D3DXCleanMesh( - D3DXCLEANTYPE CleanType, - LPD3DXMESH pMeshIn, - CONST DWORD* pAdjacencyIn, - LPD3DXMESH* ppMeshOut, - DWORD* pAdjacencyOut, - LPD3DXBUFFER* ppErrorsAndWarnings); - -HRESULT WINAPI - D3DXValidMesh( - LPD3DXMESH pMeshIn, - CONST DWORD* pAdjacency, - LPD3DXBUFFER* ppErrorsAndWarnings); - -HRESULT WINAPI - D3DXGeneratePMesh( - LPD3DXMESH pMesh, - CONST DWORD* pAdjacency, - CONST D3DXATTRIBUTEWEIGHTS *pVertexAttributeWeights, - CONST FLOAT *pVertexWeights, - DWORD MinValue, - DWORD Options, - LPD3DXPMESH* ppPMesh); - -HRESULT WINAPI - D3DXSimplifyMesh( - LPD3DXMESH pMesh, - CONST DWORD* pAdjacency, - CONST D3DXATTRIBUTEWEIGHTS *pVertexAttributeWeights, - CONST FLOAT *pVertexWeights, - DWORD MinValue, - DWORD Options, - LPD3DXMESH* ppMesh); - -HRESULT WINAPI - D3DXComputeBoundingSphere( - CONST D3DXVECTOR3 *pFirstPosition, // pointer to first position - DWORD NumVertices, - DWORD dwStride, // count in bytes to subsequent position vectors - D3DXVECTOR3 *pCenter, - FLOAT *pRadius); - -HRESULT WINAPI - D3DXComputeBoundingBox( - CONST D3DXVECTOR3 *pFirstPosition, // pointer to first position - DWORD NumVertices, - DWORD dwStride, // count in bytes to subsequent position vectors - D3DXVECTOR3 *pMin, - D3DXVECTOR3 *pMax); - -HRESULT WINAPI - D3DXComputeNormals( - LPD3DXBASEMESH pMesh, - CONST DWORD *pAdjacency); - -HRESULT WINAPI - D3DXCreateBuffer( - DWORD NumBytes, - LPD3DXBUFFER *ppBuffer); - - -HRESULT WINAPI - D3DXLoadMeshFromXA( - LPCSTR pFilename, - DWORD Options, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXBUFFER *ppAdjacency, - LPD3DXBUFFER *ppMaterials, - LPD3DXBUFFER *ppEffectInstances, - DWORD *pNumMaterials, - LPD3DXMESH *ppMesh); - -HRESULT WINAPI - D3DXLoadMeshFromXW( - LPCWSTR pFilename, - DWORD Options, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXBUFFER *ppAdjacency, - LPD3DXBUFFER *ppMaterials, - LPD3DXBUFFER *ppEffectInstances, - DWORD *pNumMaterials, - LPD3DXMESH *ppMesh); - -#ifdef UNICODE -#define D3DXLoadMeshFromX D3DXLoadMeshFromXW -#else -#define D3DXLoadMeshFromX D3DXLoadMeshFromXA -#endif - -HRESULT WINAPI - D3DXLoadMeshFromXInMemory( - LPCVOID Memory, - DWORD SizeOfMemory, - DWORD Options, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXBUFFER *ppAdjacency, - LPD3DXBUFFER *ppMaterials, - LPD3DXBUFFER *ppEffectInstances, - DWORD *pNumMaterials, - LPD3DXMESH *ppMesh); - -HRESULT WINAPI - D3DXLoadMeshFromXResource( - HMODULE Module, - LPCSTR Name, - LPCSTR Type, - DWORD Options, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXBUFFER *ppAdjacency, - LPD3DXBUFFER *ppMaterials, - LPD3DXBUFFER *ppEffectInstances, - DWORD *pNumMaterials, - LPD3DXMESH *ppMesh); - -HRESULT WINAPI - D3DXSaveMeshToXA( - LPCSTR pFilename, - LPD3DXMESH pMesh, - CONST DWORD* pAdjacency, - CONST D3DXMATERIAL* pMaterials, - CONST D3DXEFFECTINSTANCE* pEffectInstances, - DWORD NumMaterials, - DWORD Format - ); - -HRESULT WINAPI - D3DXSaveMeshToXW( - LPCWSTR pFilename, - LPD3DXMESH pMesh, - CONST DWORD* pAdjacency, - CONST D3DXMATERIAL* pMaterials, - CONST D3DXEFFECTINSTANCE* pEffectInstances, - DWORD NumMaterials, - DWORD Format - ); - -#ifdef UNICODE -#define D3DXSaveMeshToX D3DXSaveMeshToXW -#else -#define D3DXSaveMeshToX D3DXSaveMeshToXA -#endif - - -HRESULT WINAPI - D3DXCreatePMeshFromStream( - IStream *pStream, - DWORD Options, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXBUFFER *ppMaterials, - LPD3DXBUFFER *ppEffectInstances, - DWORD* pNumMaterials, - LPD3DXPMESH *ppPMesh); - -// Creates a skin info object based on the number of vertices, number of bones, and a declaration describing the vertex layout of the target vertices -// The bone names and initial bone transforms are not filled in the skin info object by this method. -HRESULT WINAPI - D3DXCreateSkinInfo( - DWORD NumVertices, - CONST D3DVERTEXELEMENT9 *pDeclaration, - DWORD NumBones, - LPD3DXSKININFO* ppSkinInfo); - -// Creates a skin info object based on the number of vertices, number of bones, and a FVF describing the vertex layout of the target vertices -// The bone names and initial bone transforms are not filled in the skin info object by this method. -HRESULT WINAPI - D3DXCreateSkinInfoFVF( - DWORD NumVertices, - DWORD FVF, - DWORD NumBones, - LPD3DXSKININFO* ppSkinInfo); - -#ifdef __cplusplus -} - -extern "C" { -#endif //__cplusplus - -HRESULT WINAPI - D3DXLoadMeshFromXof( - LPD3DXFILEDATA pxofMesh, - DWORD Options, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXBUFFER *ppAdjacency, - LPD3DXBUFFER *ppMaterials, - LPD3DXBUFFER *ppEffectInstances, - DWORD *pNumMaterials, - LPD3DXMESH *ppMesh); - -// This similar to D3DXLoadMeshFromXof, except also returns skinning info if present in the file -// If skinning info is not present, ppSkinInfo will be NULL -HRESULT WINAPI - D3DXLoadSkinMeshFromXof( - LPD3DXFILEDATA pxofMesh, - DWORD Options, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXBUFFER* ppAdjacency, - LPD3DXBUFFER* ppMaterials, - LPD3DXBUFFER *ppEffectInstances, - DWORD *pMatOut, - LPD3DXSKININFO* ppSkinInfo, - LPD3DXMESH* ppMesh); - - -// The inverse of D3DXConvertTo{Indexed}BlendedMesh() functions. It figures out the skinning info from -// the mesh and the bone combination table and populates a skin info object with that data. The bone -// names and initial bone transforms are not filled in the skin info object by this method. This works -// with either a non-indexed or indexed blended mesh. It examines the FVF or declarator of the mesh to -// determine what type it is. -HRESULT WINAPI - D3DXCreateSkinInfoFromBlendedMesh( - LPD3DXBASEMESH pMesh, - DWORD NumBones, - CONST D3DXBONECOMBINATION *pBoneCombinationTable, - LPD3DXSKININFO* ppSkinInfo); - -HRESULT WINAPI - D3DXTessellateNPatches( - LPD3DXMESH pMeshIn, - CONST DWORD* pAdjacencyIn, - FLOAT NumSegs, - BOOL QuadraticInterpNormals, // if false use linear intrep for normals, if true use quadratic - LPD3DXMESH *ppMeshOut, - LPD3DXBUFFER *ppAdjacencyOut); - - -//generates implied outputdecl from input decl -//the decl generated from this should be used to generate the output decl for -//the tessellator subroutines. - -HRESULT WINAPI - D3DXGenerateOutputDecl( - D3DVERTEXELEMENT9 *pOutput, - CONST D3DVERTEXELEMENT9 *pInput); - -//loads patches from an XFileData -//since an X file can have up to 6 different patch meshes in it, -//returns them in an array - pNumPatches will contain the number of -//meshes in the actual file. -HRESULT WINAPI - D3DXLoadPatchMeshFromXof( - LPD3DXFILEDATA pXofObjMesh, - DWORD Options, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXBUFFER *ppMaterials, - LPD3DXBUFFER *ppEffectInstances, - PDWORD pNumMaterials, - LPD3DXPATCHMESH *ppMesh); - -//computes the size a single rect patch. -HRESULT WINAPI - D3DXRectPatchSize( - CONST FLOAT *pfNumSegs, //segments for each edge (4) - DWORD *pdwTriangles, //output number of triangles - DWORD *pdwVertices); //output number of vertices - -//computes the size of a single triangle patch -HRESULT WINAPI - D3DXTriPatchSize( - CONST FLOAT *pfNumSegs, //segments for each edge (3) - DWORD *pdwTriangles, //output number of triangles - DWORD *pdwVertices); //output number of vertices - - -//tessellates a patch into a created mesh -//similar to D3D RT patch -HRESULT WINAPI - D3DXTessellateRectPatch( - LPDIRECT3DVERTEXBUFFER9 pVB, - CONST FLOAT *pNumSegs, - CONST D3DVERTEXELEMENT9 *pdwInDecl, - CONST D3DRECTPATCH_INFO *pRectPatchInfo, - LPD3DXMESH pMesh); - - -HRESULT WINAPI - D3DXTessellateTriPatch( - LPDIRECT3DVERTEXBUFFER9 pVB, - CONST FLOAT *pNumSegs, - CONST D3DVERTEXELEMENT9 *pInDecl, - CONST D3DTRIPATCH_INFO *pTriPatchInfo, - LPD3DXMESH pMesh); - - - -//creates an NPatch PatchMesh from a D3DXMESH -HRESULT WINAPI - D3DXCreateNPatchMesh( - LPD3DXMESH pMeshSysMem, - LPD3DXPATCHMESH *pPatchMesh); - - -//creates a patch mesh -HRESULT WINAPI - D3DXCreatePatchMesh( - CONST D3DXPATCHINFO *pInfo, //patch type - DWORD dwNumPatches, //number of patches - DWORD dwNumVertices, //number of control vertices - DWORD dwOptions, //options - CONST D3DVERTEXELEMENT9 *pDecl, //format of control vertices - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXPATCHMESH *pPatchMesh); - - -//returns the number of degenerates in a patch mesh - -//text output put in string. -HRESULT WINAPI - D3DXValidPatchMesh(LPD3DXPATCHMESH pMesh, - DWORD *dwcDegenerateVertices, - DWORD *dwcDegeneratePatches, - LPD3DXBUFFER *ppErrorsAndWarnings); - -UINT WINAPI - D3DXGetFVFVertexSize(DWORD FVF); - -UINT WINAPI - D3DXGetDeclVertexSize(CONST D3DVERTEXELEMENT9 *pDecl,DWORD Stream); - -UINT WINAPI - D3DXGetDeclLength(CONST D3DVERTEXELEMENT9 *pDecl); - -HRESULT WINAPI - D3DXDeclaratorFromFVF( - DWORD FVF, - D3DVERTEXELEMENT9 pDeclarator[MAX_FVF_DECL_SIZE]); - -HRESULT WINAPI - D3DXFVFFromDeclarator( - CONST D3DVERTEXELEMENT9 *pDeclarator, - DWORD *pFVF); - -HRESULT WINAPI - D3DXWeldVertices( - LPD3DXMESH pMesh, - DWORD Flags, - CONST D3DXWELDEPSILONS *pEpsilons, - CONST DWORD *pAdjacencyIn, - DWORD *pAdjacencyOut, - DWORD *pFaceRemap, - LPD3DXBUFFER *ppVertexRemap); - -typedef struct _D3DXINTERSECTINFO -{ - DWORD FaceIndex; // index of face intersected - FLOAT U; // Barycentric Hit Coordinates - FLOAT V; // Barycentric Hit Coordinates - FLOAT Dist; // Ray-Intersection Parameter Distance -} D3DXINTERSECTINFO, *LPD3DXINTERSECTINFO; - - -HRESULT WINAPI - D3DXIntersect( - LPD3DXBASEMESH pMesh, - CONST D3DXVECTOR3 *pRayPos, - CONST D3DXVECTOR3 *pRayDir, - BOOL *pHit, // True if any faces were intersected - DWORD *pFaceIndex, // index of closest face intersected - FLOAT *pU, // Barycentric Hit Coordinates - FLOAT *pV, // Barycentric Hit Coordinates - FLOAT *pDist, // Ray-Intersection Parameter Distance - LPD3DXBUFFER *ppAllHits, // Array of D3DXINTERSECTINFOs for all hits (not just closest) - DWORD *pCountOfHits); // Number of entries in AllHits array - -HRESULT WINAPI - D3DXIntersectSubset( - LPD3DXBASEMESH pMesh, - DWORD AttribId, - CONST D3DXVECTOR3 *pRayPos, - CONST D3DXVECTOR3 *pRayDir, - BOOL *pHit, // True if any faces were intersected - DWORD *pFaceIndex, // index of closest face intersected - FLOAT *pU, // Barycentric Hit Coordinates - FLOAT *pV, // Barycentric Hit Coordinates - FLOAT *pDist, // Ray-Intersection Parameter Distance - LPD3DXBUFFER *ppAllHits, // Array of D3DXINTERSECTINFOs for all hits (not just closest) - DWORD *pCountOfHits); // Number of entries in AllHits array - - -HRESULT WINAPI D3DXSplitMesh - ( - LPD3DXMESH pMeshIn, - CONST DWORD *pAdjacencyIn, - CONST DWORD MaxSize, - CONST DWORD Options, - DWORD *pMeshesOut, - LPD3DXBUFFER *ppMeshArrayOut, - LPD3DXBUFFER *ppAdjacencyArrayOut, - LPD3DXBUFFER *ppFaceRemapArrayOut, - LPD3DXBUFFER *ppVertRemapArrayOut - ); - -BOOL WINAPI D3DXIntersectTri -( - CONST D3DXVECTOR3 *p0, // Triangle vertex 0 position - CONST D3DXVECTOR3 *p1, // Triangle vertex 1 position - CONST D3DXVECTOR3 *p2, // Triangle vertex 2 position - CONST D3DXVECTOR3 *pRayPos, // Ray origin - CONST D3DXVECTOR3 *pRayDir, // Ray direction - FLOAT *pU, // Barycentric Hit Coordinates - FLOAT *pV, // Barycentric Hit Coordinates - FLOAT *pDist); // Ray-Intersection Parameter Distance - -BOOL WINAPI - D3DXSphereBoundProbe( - CONST D3DXVECTOR3 *pCenter, - FLOAT Radius, - CONST D3DXVECTOR3 *pRayPosition, - CONST D3DXVECTOR3 *pRayDirection); - -BOOL WINAPI - D3DXBoxBoundProbe( - CONST D3DXVECTOR3 *pMin, - CONST D3DXVECTOR3 *pMax, - CONST D3DXVECTOR3 *pRayPosition, - CONST D3DXVECTOR3 *pRayDirection); - - - -//D3DXComputeTangent -// -//Computes the Tangent vectors for the TexStage texture coordinates -//and places the results in the TANGENT[TangentIndex] specified in the meshes' DECL -//puts the binorm in BINORM[BinormIndex] also specified in the decl. -// -//If neither the binorm or the tangnet are in the meshes declaration, -//the function will fail. -// -//If a tangent or Binorm field is in the Decl, but the user does not -//wish D3DXComputeTangent to replace them, then D3DX_DEFAULT specified -//in the TangentIndex or BinormIndex will cause it to ignore the specified -//semantic. -// -//Wrap should be specified if the texture coordinates wrap. - -HRESULT WINAPI D3DXComputeTangent(LPD3DXMESH Mesh, - DWORD TexStage, - DWORD TangentIndex, - DWORD BinormIndex, - DWORD Wrap, - CONST DWORD *pAdjacency); - -HRESULT WINAPI - D3DXConvertMeshSubsetToSingleStrip( - LPD3DXBASEMESH MeshIn, - DWORD AttribId, - DWORD IBOptions, - LPDIRECT3DINDEXBUFFER9 *ppIndexBuffer, - DWORD *pNumIndices); - -HRESULT WINAPI - D3DXConvertMeshSubsetToStrips( - LPD3DXBASEMESH MeshIn, - DWORD AttribId, - DWORD IBOptions, - LPDIRECT3DINDEXBUFFER9 *ppIndexBuffer, - DWORD *pNumIndices, - LPD3DXBUFFER *ppStripLengths, - DWORD *pNumStrips); - - -//============================================================================ -// -// D3DXOptimizeFaces: -// -------------------- -// Generate a face remapping for a triangle list that more effectively utilizes -// vertex caches. This optimization is identical to the one provided -// by ID3DXMesh::Optimize with the hardware independent option enabled. -// -// Parameters: -// pbIndices -// Triangle list indices to use for generating a vertex ordering -// NumFaces -// Number of faces in the triangle list -// NumVertices -// Number of vertices referenced by the triangle list -// b32BitIndices -// TRUE if indices are 32 bit, FALSE if indices are 16 bit -// pFaceRemap -// Destination buffer to store face ordering -// The number stored for a given element is where in the new ordering -// the face will have come from. See ID3DXMesh::Optimize for more info. -// -//============================================================================ -HRESULT WINAPI - D3DXOptimizeFaces( - LPCVOID pbIndices, - UINT cFaces, - UINT cVertices, - BOOL b32BitIndices, - DWORD* pFaceRemap); - -//============================================================================ -// -// D3DXOptimizeVertices: -// -------------------- -// Generate a vertex remapping to optimize for in order use of vertices for -// a given set of indices. This is commonly used after applying the face -// remap generated by D3DXOptimizeFaces -// -// Parameters: -// pbIndices -// Triangle list indices to use for generating a vertex ordering -// NumFaces -// Number of faces in the triangle list -// NumVertices -// Number of vertices referenced by the triangle list -// b32BitIndices -// TRUE if indices are 32 bit, FALSE if indices are 16 bit -// pVertexRemap -// Destination buffer to store vertex ordering -// The number stored for a given element is where in the new ordering -// the vertex will have come from. See ID3DXMesh::Optimize for more info. -// -//============================================================================ -HRESULT WINAPI - D3DXOptimizeVertices( - LPCVOID pbIndices, - UINT cFaces, - UINT cVertices, - BOOL b32BitIndices, - DWORD* pVertexRemap); - -#ifdef __cplusplus -} -#endif //__cplusplus - - -//=========================================================================== -// -// Data structures for Spherical Harmonic Precomputation -// -// -//============================================================================ - -typedef enum _D3DXSHCOMPRESSQUALITYTYPE { - D3DXSHCQUAL_FASTLOWQUALITY = 1, - D3DXSHCQUAL_SLOWHIGHQUALITY = 2, - D3DXSHCQUAL_FORCE_DWORD = 0x7fffffff -} D3DXSHCOMPRESSQUALITYTYPE; - -typedef enum _D3DXSHGPUSIMOPT { - D3DXSHGPUSIMOPT_SHADOWRES256 = 1, - D3DXSHGPUSIMOPT_SHADOWRES512 = 0, - D3DXSHGPUSIMOPT_SHADOWRES1024 = 2, - D3DXSHGPUSIMOPT_SHADOWRES2048 = 3, - - D3DXSHGPUSIMOPT_HIGHQUALITY = 4, - - D3DXSHGPUSIMOPT_FORCE_DWORD = 0x7fffffff -} D3DXSHGPUSIMOPT; - -// for all properties that are colors the luminance is computed -// if the simulator is run with a single channel using the following -// formula: R * 0.2125 + G * 0.7154 + B * 0.0721 - -typedef struct _D3DXSHMATERIAL { - D3DCOLORVALUE Diffuse; // Diffuse albedo of the surface. (Ignored if object is a Mirror) - BOOL bMirror; // Must be set to FALSE. bMirror == TRUE not currently supported - BOOL bSubSurf; // true if the object does subsurface scattering - can't do this and be a mirror - - // subsurface scattering parameters - FLOAT RelativeIndexOfRefraction; - D3DCOLORVALUE Absorption; - D3DCOLORVALUE ReducedScattering; - -} D3DXSHMATERIAL; - -// allocated in D3DXSHPRTCompSplitMeshSC -// vertices are duplicated into multiple super clusters but -// only have a valid status in one super cluster (fill in the rest) - -typedef struct _D3DXSHPRTSPLITMESHVERTDATA { - UINT uVertRemap; // vertex in original mesh this corresponds to - UINT uSubCluster; // cluster index relative to super cluster - UCHAR ucVertStatus; // 1 if vertex has valid data, 0 if it is "fill" -} D3DXSHPRTSPLITMESHVERTDATA; - -// used in D3DXSHPRTCompSplitMeshSC -// information for each super cluster that maps into face/vert arrays - -typedef struct _D3DXSHPRTSPLITMESHCLUSTERDATA { - UINT uVertStart; // initial index into remapped vertex array - UINT uVertLength; // number of vertices in this super cluster - - UINT uFaceStart; // initial index into face array - UINT uFaceLength; // number of faces in this super cluster - - UINT uClusterStart; // initial index into cluster array - UINT uClusterLength; // number of clusters in this super cluster -} D3DXSHPRTSPLITMESHCLUSTERDATA; - -// call back function for simulator -// return S_OK to keep running the simulator - anything else represents -// failure and the simulator will abort. - -typedef HRESULT (WINAPI *LPD3DXSHPRTSIMCB)(float fPercentDone, LPVOID lpUserContext); - -// interfaces for PRT buffers/simulator - -// GUIDs -// {F1827E47-00A8-49cd-908C-9D11955F8728} -DEFINE_GUID(IID_ID3DXPRTBuffer, -0xf1827e47, 0xa8, 0x49cd, 0x90, 0x8c, 0x9d, 0x11, 0x95, 0x5f, 0x87, 0x28); - -// {A758D465-FE8D-45ad-9CF0-D01E56266A07} -DEFINE_GUID(IID_ID3DXPRTCompBuffer, -0xa758d465, 0xfe8d, 0x45ad, 0x9c, 0xf0, 0xd0, 0x1e, 0x56, 0x26, 0x6a, 0x7); - -// {06F57E0A-BD95-43f1-A3DA-791CF6CA297B} -DEFINE_GUID(IID_ID3DXTextureGutterHelper, -0x6f57e0a, 0xbd95, 0x43f1, 0xa3, 0xda, 0x79, 0x1c, 0xf6, 0xca, 0x29, 0x7b); - -// {C3F4ADBF-E6D2-4b7b-BFE8-9E7208746ADF} -DEFINE_GUID(IID_ID3DXPRTEngine, -0xc3f4adbf, 0xe6d2, 0x4b7b, 0xbf, 0xe8, 0x9e, 0x72, 0x8, 0x74, 0x6a, 0xdf); - -// interface defenitions - - -typedef interface ID3DXTextureGutterHelper ID3DXTextureGutterHelper; -typedef interface ID3DXTextureGutterHelper *LPD3DXTEXTUREGUTTERHELPER; - -typedef interface ID3DXPRTBuffer ID3DXPRTBuffer; -typedef interface ID3DXPRTBuffer *LPD3DXPRTBUFFER; - - -#undef INTERFACE -#define INTERFACE ID3DXPRTBuffer - -// Buffer interface - contains "NumSamples" samples -// each sample in memory is stored as NumCoeffs scalars per channel (1 or 3) -// Same interface is used for both Vertex and Pixel PRT buffers - -DECLARE_INTERFACE_(ID3DXPRTBuffer, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXPRTBuffer - STDMETHOD_(UINT, GetNumSamples)(THIS) PURE; - STDMETHOD_(UINT, GetNumCoeffs)(THIS) PURE; - STDMETHOD_(UINT, GetNumChannels)(THIS) PURE; - - STDMETHOD_(BOOL, IsTexture)(THIS) PURE; - STDMETHOD_(UINT, GetWidth)(THIS) PURE; - STDMETHOD_(UINT, GetHeight)(THIS) PURE; - - // changes the number of samples allocated in the buffer - STDMETHOD(Resize)(THIS_ UINT NewSize) PURE; - - // ppData will point to the memory location where sample Start begins - // pointer is valid for at least NumSamples samples - STDMETHOD(LockBuffer)(THIS_ UINT Start, UINT NumSamples, FLOAT **ppData) PURE; - STDMETHOD(UnlockBuffer)(THIS) PURE; - - // every scalar in buffer is multiplied by Scale - STDMETHOD(ScaleBuffer)(THIS_ FLOAT Scale) PURE; - - // every scalar contains the sum of this and pBuffers values - // pBuffer must have the same storage class/dimensions - STDMETHOD(AddBuffer)(THIS_ LPD3DXPRTBUFFER pBuffer) PURE; - - // GutterHelper (described below) will fill in the gutter - // regions of a texture by interpolating "internal" values - STDMETHOD(AttachGH)(THIS_ LPD3DXTEXTUREGUTTERHELPER) PURE; - STDMETHOD(ReleaseGH)(THIS) PURE; - - // Evaluates attached gutter helper on the contents of this buffer - STDMETHOD(EvalGH)(THIS) PURE; - - // extracts a given channel into texture pTexture - // NumCoefficients starting from StartCoefficient are copied - STDMETHOD(ExtractTexture)(THIS_ UINT Channel, UINT StartCoefficient, - UINT NumCoefficients, LPDIRECT3DTEXTURE9 pTexture) PURE; - - // extracts NumCoefficients coefficients into mesh - only applicable on single channel - // buffers, otherwise just lockbuffer and copy data. With SHPRT data NumCoefficients - // should be Order^2 - STDMETHOD(ExtractToMesh)(THIS_ UINT NumCoefficients, D3DDECLUSAGE Usage, UINT UsageIndexStart, - LPD3DXMESH pScene) PURE; - -}; - -typedef interface ID3DXPRTCompBuffer ID3DXPRTCompBuffer; -typedef interface ID3DXPRTCompBuffer *LPD3DXPRTCOMPBUFFER; - -#undef INTERFACE -#define INTERFACE ID3DXPRTCompBuffer - -// compressed buffers stored a compressed version of a PRTBuffer - -DECLARE_INTERFACE_(ID3DXPRTCompBuffer, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DPRTCompBuffer - - // NumCoeffs and NumChannels are properties of input buffer - STDMETHOD_(UINT, GetNumSamples)(THIS) PURE; - STDMETHOD_(UINT, GetNumCoeffs)(THIS) PURE; - STDMETHOD_(UINT, GetNumChannels)(THIS) PURE; - - STDMETHOD_(BOOL, IsTexture)(THIS) PURE; - STDMETHOD_(UINT, GetWidth)(THIS) PURE; - STDMETHOD_(UINT, GetHeight)(THIS) PURE; - - // number of clusters, and PCA vectors per-cluster - STDMETHOD_(UINT, GetNumClusters)(THIS) PURE; - STDMETHOD_(UINT, GetNumPCA)(THIS) PURE; - - // normalizes PCA weights so that they are between [-1,1] - // basis vectors are modified to reflect this - STDMETHOD(NormalizeData)(THIS) PURE; - - // copies basis vectors for cluster "Cluster" into pClusterBasis - // (NumPCA+1)*NumCoeffs*NumChannels floats - STDMETHOD(ExtractBasis)(THIS_ UINT Cluster, FLOAT *pClusterBasis) PURE; - - // UINT per sample - which cluster it belongs to - STDMETHOD(ExtractClusterIDs)(THIS_ UINT *pClusterIDs) PURE; - - // copies NumExtract PCA projection coefficients starting at StartPCA - // into pPCACoefficients - NumSamples*NumExtract floats copied - STDMETHOD(ExtractPCA)(THIS_ UINT StartPCA, UINT NumExtract, FLOAT *pPCACoefficients) PURE; - - // copies NumPCA projection coefficients starting at StartPCA - // into pTexture - should be able to cope with signed formats - STDMETHOD(ExtractTexture)(THIS_ UINT StartPCA, UINT NumpPCA, - LPDIRECT3DTEXTURE9 pTexture) PURE; - - // copies NumPCA projection coefficients into mesh pScene - // Usage is D3DDECLUSAGE where coefficients are to be stored - // UsageIndexStart is starting index - STDMETHOD(ExtractToMesh)(THIS_ UINT NumPCA, D3DDECLUSAGE Usage, UINT UsageIndexStart, - LPD3DXMESH pScene) PURE; -}; - - -#undef INTERFACE -#define INTERFACE ID3DXTextureGutterHelper - -// ID3DXTextureGutterHelper will build and manage -// "gutter" regions in a texture - this will allow for -// bi-linear interpolation to not have artifacts when rendering -// It generates a map (in texture space) where each texel -// is in one of 3 states: -// 0 Invalid - not used at all -// 1 Inside triangle -// 2 Gutter texel -// 4 represents a gutter texel that will be computed during PRT -// For each Inside/Gutter texel it stores the face it -// belongs to and barycentric coordinates for the 1st two -// vertices of that face. Gutter vertices are assigned to -// the closest edge in texture space. -// -// When used with PRT this requires a unique parameterization -// of the model - every texel must correspond to a single point -// on the surface of the model and vice versa - -DECLARE_INTERFACE_(ID3DXTextureGutterHelper, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXTextureGutterHelper - - // dimensions of texture this is bound too - STDMETHOD_(UINT, GetWidth)(THIS) PURE; - STDMETHOD_(UINT, GetHeight)(THIS) PURE; - - - // Applying gutters recomputes all of the gutter texels of class "2" - // based on texels of class "1" or "4" - - // Applies gutters to a raw float buffer - each texel is NumCoeffs floats - // Width and Height must match GutterHelper - STDMETHOD(ApplyGuttersFloat)(THIS_ FLOAT *pDataIn, UINT NumCoeffs, UINT Width, UINT Height); - - // Applies gutters to pTexture - // Dimensions must match GutterHelper - STDMETHOD(ApplyGuttersTex)(THIS_ LPDIRECT3DTEXTURE9 pTexture); - - // Applies gutters to a D3DXPRTBuffer - // Dimensions must match GutterHelper - STDMETHOD(ApplyGuttersPRT)(THIS_ LPD3DXPRTBUFFER pBuffer); - - // the routines below provide access to the data structures - // used by the Apply functions - - // face map is a UINT per texel that represents the - // face of the mesh that texel belongs too - - // only valid if same texel is valid in pGutterData - // pFaceData must be allocated by the user - STDMETHOD(GetFaceMap)(THIS_ UINT *pFaceData) PURE; - - // BaryMap is a D3DXVECTOR2 per texel - // the 1st two barycentric coordinates for the corresponding - // face (3rd weight is always 1-sum of first two) - // only valid if same texel is valid in pGutterData - // pBaryData must be allocated by the user - STDMETHOD(GetBaryMap)(THIS_ D3DXVECTOR2 *pBaryData) PURE; - - // TexelMap is a D3DXVECTOR2 per texel that - // stores the location in pixel coordinates where the - // corresponding texel is mapped - // pTexelData must be allocated by the user - STDMETHOD(GetTexelMap)(THIS_ D3DXVECTOR2 *pTexelData) PURE; - - // GutterMap is a BYTE per texel - // 0/1/2 for Invalid/Internal/Gutter texels - // 4 represents a gutter texel that will be computed - // during PRT - // pGutterData must be allocated by the user - STDMETHOD(GetGutterMap)(THIS_ BYTE *pGutterData) PURE; - - // face map is a UINT per texel that represents the - // face of the mesh that texel belongs too - - // only valid if same texel is valid in pGutterData - STDMETHOD(SetFaceMap)(THIS_ UINT *pFaceData) PURE; - - // BaryMap is a D3DXVECTOR2 per texel - // the 1st two barycentric coordinates for the corresponding - // face (3rd weight is always 1-sum of first two) - // only valid if same texel is valid in pGutterData - STDMETHOD(SetBaryMap)(THIS_ D3DXVECTOR2 *pBaryData) PURE; - - // TexelMap is a D3DXVECTOR2 per texel that - // stores the location in pixel coordinates where the - // corresponding texel is mapped - STDMETHOD(SetTexelMap)(THIS_ D3DXVECTOR2 *pTexelData) PURE; - - // GutterMap is a BYTE per texel - // 0/1/2 for Invalid/Internal/Gutter texels - // 4 represents a gutter texel that will be computed - // during PRT - STDMETHOD(SetGutterMap)(THIS_ BYTE *pGutterData) PURE; -}; - - -typedef interface ID3DXPRTEngine ID3DXPRTEngine; -typedef interface ID3DXPRTEngine *LPD3DXPRTENGINE; - -#undef INTERFACE -#define INTERFACE ID3DXPRTEngine - -// ID3DXPRTEngine is used to compute a PRT simulation -// Use the following steps to compute PRT for SH -// (1) create an interface (which includes a scene) -// (2) call SetSamplingInfo -// (3) [optional] Set MeshMaterials/albedo's (required if doing bounces) -// (4) call ComputeDirectLightingSH -// (5) [optional] call ComputeBounce -// repeat step 5 for as many bounces as wanted. -// if you want to model subsurface scattering you -// need to call ComputeSS after direct lighting and -// each bounce. -// If you want to bake the albedo into the PRT signal, you -// must call MutliplyAlbedo, otherwise the user has to multiply -// the albedo themselves. Not multiplying the albedo allows you -// to model albedo variation at a finer scale then illumination, and -// can result in better compression results. -// Luminance values are computed from RGB values using the following -// formula: R * 0.2125 + G * 0.7154 + B * 0.0721 - -DECLARE_INTERFACE_(ID3DXPRTEngine, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXPRTEngine - - // This sets a material per attribute in the scene mesh and it is - // the only way to specify subsurface scattering parameters. if - // bSetAlbedo is FALSE, NumChannels must match the current - // configuration of the PRTEngine. If you intend to change - // NumChannels (through some other SetAlbedo function) it must - // happen before SetMeshMaterials is called. - // - // NumChannels 1 implies "grayscale" materials, set this to 3 to enable - // color bleeding effects - // bSetAlbedo sets albedo from material if TRUE - which clobbers per texel/vertex - // albedo that might have been set before. FALSE won't clobber. - // fLengthScale is used for subsurface scattering - scene is mapped into a 1mm unit cube - // and scaled by this amount - STDMETHOD(SetMeshMaterials)(THIS_ CONST D3DXSHMATERIAL **ppMaterials, UINT NumMeshes, - UINT NumChannels, BOOL bSetAlbedo, FLOAT fLengthScale) PURE; - - // setting albedo per-vertex or per-texel over rides the albedos stored per mesh - // but it does not over ride any other settings - - // sets an albedo to be used per vertex - the albedo is represented as a float - // pDataIn input pointer (pointint to albedo of 1st sample) - // NumChannels 1 implies "grayscale" materials, set this to 3 to enable - // color bleeding effects - // Stride - stride in bytes to get to next samples albedo - STDMETHOD(SetPerVertexAlbedo)(THIS_ CONST VOID *pDataIn, UINT NumChannels, UINT Stride) PURE; - - // represents the albedo per-texel instead of per-vertex (even if per-vertex PRT is used) - // pAlbedoTexture - texture that stores the albedo (dimension arbitrary) - // NumChannels 1 implies "grayscale" materials, set this to 3 to enable - // color bleeding effects - // pGH - optional gutter helper, otherwise one is constructed in computation routines and - // destroyed (if not attached to buffers) - STDMETHOD(SetPerTexelAlbedo)(THIS_ LPDIRECT3DTEXTURE9 pAlbedoTexture, - UINT NumChannels, - LPD3DXTEXTUREGUTTERHELPER pGH) PURE; - - // gets the per-vertex albedo - STDMETHOD(GetVertexAlbedo)(THIS_ D3DXCOLOR *pVertColors, UINT NumVerts) PURE; - - // If pixel PRT is being computed normals default to ones that are interpolated - // from the vertex normals. This specifies a texture that stores an object - // space normal map instead (must use a texture format that can represent signed values) - // pNormalTexture - normal map, must be same dimensions as PRTBuffers, signed - STDMETHOD(SetPerTexelNormal)(THIS_ LPDIRECT3DTEXTURE9 pNormalTexture) PURE; - - // Copies per-vertex albedo from mesh - // pMesh - mesh that represents the scene. It must have the same - // properties as the mesh used to create the PRTEngine - // Usage - D3DDECLUSAGE to extract albedos from - // NumChannels 1 implies "grayscale" materials, set this to 3 to enable - // color bleeding effects - STDMETHOD(ExtractPerVertexAlbedo)(THIS_ LPD3DXMESH pMesh, - D3DDECLUSAGE Usage, - UINT NumChannels) PURE; - - // Resamples the input buffer into the output buffer - // can be used to move between per-vertex and per-texel buffers. This can also be used - // to convert single channel buffers to 3-channel buffers and vice-versa. - STDMETHOD(ResampleBuffer)(THIS_ LPD3DXPRTBUFFER pBufferIn, LPD3DXPRTBUFFER pBufferOut) PURE; - - // Returns the scene mesh - including modifications from adaptive spatial sampling - // The returned mesh only has positions, normals and texture coordinates (if defined) - // pD3DDevice - d3d device that will be used to allocate the mesh - // pFaceRemap - each face has a pointer back to the face on the original mesh that it comes from - // if the face hasn't been subdivided this will be an identity mapping - // pVertRemap - each vertex contains 3 vertices that this is a linear combination of - // pVertWeights - weights for each of above indices (sum to 1.0f) - // ppMesh - mesh that will be allocated and filled - STDMETHOD(GetAdaptedMesh)(THIS_ LPDIRECT3DDEVICE9 pD3DDevice,UINT *pFaceRemap, UINT *pVertRemap, FLOAT *pfVertWeights, LPD3DXMESH *ppMesh) PURE; - - // Number of vertices currently allocated (includes new vertices from adaptive sampling) - STDMETHOD_(UINT, GetNumVerts)(THIS) PURE; - // Number of faces currently allocated (includes new faces) - STDMETHOD_(UINT, GetNumFaces)(THIS) PURE; - - // This will subdivide faces on a mesh so that adaptively simulations can - // use a more conservative threshold (it won't miss features.) - // MinEdgeLength - minimum edge length that will be generated, if 0.0f a - // reasonable default will be used - // MaxSubdiv - maximum level of subdivision, if 0 is specified a default - // value will be used (5) - STDMETHOD(RobustMeshRefine)(THIS_ FLOAT MinEdgeLength, UINT MaxSubdiv) PURE; - - // This sets to sampling information used by the simulator. Adaptive sampling - // parameters are currently ignored. - // NumRays - number of rays to shoot per sample - // UseSphere - if TRUE uses spherical samples, otherwise samples over - // the hemisphere. Should only be used with GPU and Vol computations - // UseCosine - if TRUE uses a cosine weighting - not used for Vol computations - // or if only the visiblity function is desired - // Adaptive - if TRUE adaptive sampling (angular) is used - // AdaptiveThresh - threshold used to terminate adaptive angular sampling - // ignored if adaptive sampling is not set - STDMETHOD(SetSamplingInfo)(THIS_ UINT NumRays, - BOOL UseSphere, - BOOL UseCosine, - BOOL Adaptive, - FLOAT AdaptiveThresh) PURE; - - // Methods that compute the direct lighting contribution for objects - // always represente light using spherical harmonics (SH) - // the albedo is not multiplied by the signal - it just integrates - // incoming light. If NumChannels is not 1 the vector is replicated - // - // SHOrder - order of SH to use - // pDataOut - PRT buffer that is generated. Can be single channel - STDMETHOD(ComputeDirectLightingSH)(THIS_ UINT SHOrder, - LPD3DXPRTBUFFER pDataOut) PURE; - - // Adaptive variant of above function. This will refine the mesh - // generating new vertices/faces to approximate the PRT signal - // more faithfully. - // SHOrder - order of SH to use - // AdaptiveThresh - threshold for adaptive subdivision (in PRT vector error) - // if value is less then 1e-6f, 1e-6f is specified - // MinEdgeLength - minimum edge length that will be generated - // if value is too small a fairly conservative model dependent value - // is used - // MaxSubdiv - maximum subdivision level, if 0 is specified it - // will default to 4 - // pDataOut - PRT buffer that is generated. Can be single channel. - STDMETHOD(ComputeDirectLightingSHAdaptive)(THIS_ UINT SHOrder, - FLOAT AdaptiveThresh, - FLOAT MinEdgeLength, - UINT MaxSubdiv, - LPD3DXPRTBUFFER pDataOut) PURE; - - // Function that computes the direct lighting contribution for objects - // light is always represented using spherical harmonics (SH) - // This is done on the GPU and is much faster then using the CPU. - // The albedo is not multiplied by the signal - it just integrates - // incoming light. If NumChannels is not 1 the vector is replicated. - // ZBias/ZAngleBias are akin to parameters used with shadow zbuffers. - // A reasonable default for both values is 0.005, but the user should - // experiment (ZAngleBias can be zero, ZBias should not be.) - // Callbacks should not use the Direct3D9Device the simulator is using. - // SetSamplingInfo must be called with TRUE for UseSphere and - // FALSE for UseCosine before this method is called. - // - // pD3DDevice - device used to run GPU simulator - must support PS2.0 - // and FP render targets - // Flags - parameters for the GPU simulator, combination of one or more - // D3DXSHGPUSIMOPT flags. Only one SHADOWRES setting should be set and - // the defaults is 512 - // SHOrder - order of SH to use - // ZBias - bias in normal direction (for depth test) - // ZAngleBias - scaled by one minus cosine of angle with light (offset in depth) - // pDataOut - PRT buffer that is filled in. Can be single channel - STDMETHOD(ComputeDirectLightingSHGPU)(THIS_ LPDIRECT3DDEVICE9 pD3DDevice, - UINT Flags, - UINT SHOrder, - FLOAT ZBias, - FLOAT ZAngleBias, - LPD3DXPRTBUFFER pDataOut) PURE; - - - // Functions that computes subsurface scattering (using material properties) - // Albedo is not multiplied by result. This only works for per-vertex data - // use ResampleBuffer to move per-vertex data into a texture and back. - // - // pDataIn - input data (previous bounce) - // pDataOut - result of subsurface scattering simulation - // pDataTotal - [optional] results can be summed into this buffer - STDMETHOD(ComputeSS)(THIS_ LPD3DXPRTBUFFER pDataIn, - LPD3DXPRTBUFFER pDataOut, LPD3DXPRTBUFFER pDataTotal) PURE; - - // computes a single bounce of inter-reflected light - // works for SH based PRT or generic lighting - // Albedo is not multiplied by result - // - // pDataIn - previous bounces data - // pDataOut - PRT buffer that is generated - // pDataTotal - [optional] can be used to keep a running sum - STDMETHOD(ComputeBounce)(THIS_ LPD3DXPRTBUFFER pDataIn, - LPD3DXPRTBUFFER pDataOut, - LPD3DXPRTBUFFER pDataTotal) PURE; - - // Adaptive version of above function. - // - // pDataIn - previous bounces data, can be single channel - // AdaptiveThresh - threshold for adaptive subdivision (in PRT vector error) - // if value is less then 1e-6f, 1e-6f is specified - // MinEdgeLength - minimum edge length that will be generated - // if value is too small a fairly conservative model dependent value - // is used - // MaxSubdiv - maximum subdivision level, if 0 is specified it - // will default to 4 - // pDataOut - PRT buffer that is generated - // pDataTotal - [optional] can be used to keep a running sum - STDMETHOD(ComputeBounceAdaptive)(THIS_ LPD3DXPRTBUFFER pDataIn, - FLOAT AdaptiveThresh, - FLOAT MinEdgeLength, - UINT MaxSubdiv, - LPD3DXPRTBUFFER pDataOut, - LPD3DXPRTBUFFER pDataTotal) PURE; - - // Computes projection of distant SH radiance into a local SH radiance - // function. This models how direct lighting is attenuated by the - // scene and is a form of "neighborhood transfer." The result is - // a linear operator (matrix) at every sample point, if you multiply - // this matrix by the distant SH lighting coefficients you get an - // approximation of the local incident radiance function from - // direct lighting. These resulting lighting coefficients can - // than be projected into another basis or used with any rendering - // technique that uses spherical harmonics as input. - // SetSamplingInfo must be called with TRUE for UseSphere and - // FALSE for UseCosine before this method is called. - // Generates SHOrderIn*SHOrderIn*SHOrderOut*SHOrderOut scalars - // per channel at each sample location. - // - // SHOrderIn - Order of the SH representation of distant lighting - // SHOrderOut - Order of the SH representation of local lighting - // NumVolSamples - Number of sample locations - // pSampleLocs - position of sample locations - // pDataOut - PRT Buffer that will store output results - STDMETHOD(ComputeVolumeSamplesDirectSH)(THIS_ UINT SHOrderIn, - UINT SHOrderOut, - UINT NumVolSamples, - CONST D3DXVECTOR3 *pSampleLocs, - LPD3DXPRTBUFFER pDataOut) PURE; - - // At each sample location computes a linear operator (matrix) that maps - // the representation of source radiance (NumCoeffs in pSurfDataIn) - // into a local incident radiance function approximated with spherical - // harmonics. For example if a light map data is specified in pSurfDataIn - // the result is an SH representation of the flow of light at each sample - // point. If PRT data for an outdoor scene is used, each sample point - // contains a matrix that models how distant lighting bounces of the objects - // in the scene and arrives at the given sample point. Combined with - // ComputeVolumeSamplesDirectSH this gives the complete representation for - // how light arrives at each sample point parameterized by distant lighting. - // SetSamplingInfo must be called with TRUE for UseSphere and - // FALSE for UseCosine before this method is called. - // Generates pSurfDataIn->NumCoeffs()*SHOrder*SHOrder scalars - // per channel at each sample location. - // - // pSurfDataIn - previous bounce data - // SHOrder - order of SH to generate projection with - // NumVolSamples - Number of sample locations - // pSampleLocs - position of sample locations - // pDataOut - PRT Buffer that will store output results - STDMETHOD(ComputeVolumeSamples)(THIS_ LPD3DXPRTBUFFER pSurfDataIn, - UINT SHOrder, - UINT NumVolSamples, - CONST D3DXVECTOR3 *pSampleLocs, - LPD3DXPRTBUFFER pDataOut) PURE; - // Frees temporary data structures that can be created for subsurface scattering - // this data is freed when the PRTComputeEngine is freed and is lazily created - STDMETHOD(FreeSSData)(THIS) PURE; - - // Frees temporary data structures that can be created for bounce simulations - // this data is freed when the PRTComputeEngine is freed and is lazily created - STDMETHOD(FreeBounceData)(THIS) PURE; - - // This computes the convolution coefficients relative to the per sample normals - // that minimize error in a least squares sense with respect to the input PRT - // data set. These coefficients can be used with skinned/transformed normals to - // model global effects with dynamic objects. Shading normals can optionaly be - // solved for - these normals (along with the convolution coefficients) can more - // accurately represent the PRT signal. - // - // pDataIn - SH PRT dataset that is input - // SHOrder - Order of SH to compute conv coefficients for - // pNormOut - Optional array of vectors (passed in) that will be filled with - // "shading normals", convolution coefficients are optimized for - // these normals. This array must be the same size as the number of - // samples in pDataIn - // pDataOut - Output buffer (SHOrder convolution coefficients per channel per sample) - STDMETHOD(ComputeConvCoeffs)(THIS_ LPD3DXPRTBUFFER pDataIn, - UINT SHOrder, - D3DXVECTOR3 *pNormOut, - LPD3DXPRTBUFFER pDataOut) PURE; - - // scales all the samples associated with a given sub mesh - // can be useful when using subsurface scattering - // fScale - value to scale each vector in submesh by - STDMETHOD(ScaleMeshChunk)(THIS_ UINT uMeshChunk, FLOAT fScale, LPD3DXPRTBUFFER pDataOut) PURE; - - // mutliplies each PRT vector by the albedo - can be used if you want to have the albedo - // burned into the dataset, often better not to do this. If this is not done the user - // must mutliply the albedo themselves when rendering - just multiply the albedo times - // the result of the PRT dot product. - // If pDataOut is a texture simulation result and there is an albedo texture it - // must be represented at the same resolution as the simulation buffer. You can use - // LoadSurfaceFromSurface and set a new albedo texture if this is an issue - but must - // be careful about how the gutters are handled. - // - // pDataOut - dataset that will get albedo pushed into it - STDMETHOD(MultiplyAlbedo)(THIS_ LPD3DXPRTBUFFER pDataOut) PURE; - - // Sets a pointer to an optional call back function that reports back to the - // user percentage done and gives them the option of quitting - // pCB - pointer to call back function, return S_OK for the simulation - // to continue - // Frequency - 1/Frequency is roughly the number of times the call back - // will be invoked - // lpUserContext - will be passed back to the users call back - STDMETHOD(SetCallBack)(THIS_ LPD3DXSHPRTSIMCB pCB, FLOAT Frequency, LPVOID lpUserContext) PURE; -}; - - -// API functions for creating interfaces - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -//============================================================================ -// -// D3DXCreatePRTBuffer: -// -------------------- -// Generates a PRT Buffer that can be compressed or filled by a simulator -// This function should be used to create per-vertex or volume buffers. -// When buffers are created all values are initialized to zero. -// -// Parameters: -// NumSamples -// Number of sample locations represented -// NumCoeffs -// Number of coefficients per sample location (order^2 for SH) -// NumChannels -// Number of color channels to represent (1 or 3) -// ppBuffer -// Buffer that will be allocated -// -//============================================================================ - -HRESULT WINAPI - D3DXCreatePRTBuffer( - UINT NumSamples, - UINT NumCoeffs, - UINT NumChannels, - LPD3DXPRTBUFFER* ppBuffer); - -//============================================================================ -// -// D3DXCreatePRTBufferTex: -// -------------------- -// Generates a PRT Buffer that can be compressed or filled by a simulator -// This function should be used to create per-pixel buffers. -// When buffers are created all values are initialized to zero. -// -// Parameters: -// Width -// Width of texture -// Height -// Height of texture -// NumCoeffs -// Number of coefficients per sample location (order^2 for SH) -// NumChannels -// Number of color channels to represent (1 or 3) -// ppBuffer -// Buffer that will be allocated -// -//============================================================================ - -HRESULT WINAPI - D3DXCreatePRTBufferTex( - UINT Width, - UINT Height, - UINT NumCoeffs, - UINT NumChannels, - LPD3DXPRTBUFFER* ppBuffer); - -//============================================================================ -// -// D3DXLoadPRTBufferFromFile: -// -------------------- -// Loads a PRT buffer that has been saved to disk. -// -// Parameters: -// pFilename -// Name of the file to load -// ppBuffer -// Buffer that will be allocated -// -//============================================================================ - -HRESULT WINAPI - D3DXLoadPRTBufferFromFileA( - LPCSTR pFilename, - LPD3DXPRTBUFFER* ppBuffer); - -HRESULT WINAPI - D3DXLoadPRTBufferFromFileW( - LPCWSTR pFilename, - LPD3DXPRTBUFFER* ppBuffer); - -#ifdef UNICODE -#define D3DXLoadPRTBufferFromFile D3DXLoadPRTBufferFromFileW -#else -#define D3DXLoadPRTBufferFromFile D3DXLoadPRTBufferFromFileA -#endif - - -//============================================================================ -// -// D3DXSavePRTBufferToFile: -// -------------------- -// Saves a PRTBuffer to disk. -// -// Parameters: -// pFilename -// Name of the file to save -// pBuffer -// Buffer that will be saved -// -//============================================================================ - -HRESULT WINAPI - D3DXSavePRTBufferToFileA( - LPCSTR pFileName, - LPD3DXPRTBUFFER pBuffer); - -HRESULT WINAPI - D3DXSavePRTBufferToFileW( - LPCWSTR pFileName, - LPD3DXPRTBUFFER pBuffer); - -#ifdef UNICODE -#define D3DXSavePRTBufferToFile D3DXSavePRTBufferToFileW -#else -#define D3DXSavePRTBufferToFile D3DXSavePRTBufferToFileA -#endif - - -//============================================================================ -// -// D3DXLoadPRTCompBufferFromFile: -// -------------------- -// Loads a PRTComp buffer that has been saved to disk. -// -// Parameters: -// pFilename -// Name of the file to load -// ppBuffer -// Buffer that will be allocated -// -//============================================================================ - -HRESULT WINAPI - D3DXLoadPRTCompBufferFromFileA( - LPCSTR pFilename, - LPD3DXPRTCOMPBUFFER* ppBuffer); - -HRESULT WINAPI - D3DXLoadPRTCompBufferFromFileW( - LPCWSTR pFilename, - LPD3DXPRTCOMPBUFFER* ppBuffer); - -#ifdef UNICODE -#define D3DXLoadPRTCompBufferFromFile D3DXLoadPRTCompBufferFromFileW -#else -#define D3DXLoadPRTCompBufferFromFile D3DXLoadPRTCompBufferFromFileA -#endif - -//============================================================================ -// -// D3DXSavePRTCompBufferToFile: -// -------------------- -// Saves a PRTCompBuffer to disk. -// -// Parameters: -// pFilename -// Name of the file to save -// pBuffer -// Buffer that will be saved -// -//============================================================================ - -HRESULT WINAPI - D3DXSavePRTCompBufferToFileA( - LPCSTR pFileName, - LPD3DXPRTCOMPBUFFER pBuffer); - -HRESULT WINAPI - D3DXSavePRTCompBufferToFileW( - LPCWSTR pFileName, - LPD3DXPRTCOMPBUFFER pBuffer); - -#ifdef UNICODE -#define D3DXSavePRTCompBufferToFile D3DXSavePRTCompBufferToFileW -#else -#define D3DXSavePRTCompBufferToFile D3DXSavePRTCompBufferToFileA -#endif - -//============================================================================ -// -// D3DXCreatePRTCompBuffer: -// -------------------- -// Compresses a PRT buffer (vertex or texel) -// -// Parameters: -// D3DXSHCOMPRESSQUALITYTYPE -// Quality of compression - low is faster (computes PCA per voronoi cluster) -// high is slower but better quality (clusters based on distance to affine subspace) -// NumClusters -// Number of clusters to compute -// NumPCA -// Number of basis vectors to compute -// ppBufferIn -// Buffer that will be compressed -// ppBufferOut -// Compressed buffer that will be created -// -//============================================================================ - - -HRESULT WINAPI - D3DXCreatePRTCompBuffer( - D3DXSHCOMPRESSQUALITYTYPE Quality, - UINT NumClusters, - UINT NumPCA, - LPD3DXPRTBUFFER pBufferIn, - LPD3DXPRTCOMPBUFFER *ppBufferOut - ); - -//============================================================================ -// -// D3DXCreateTextureGutterHelper: -// -------------------- -// Generates a "GutterHelper" for a given set of meshes and texture -// resolution -// -// Parameters: -// Width -// Width of texture -// Height -// Height of texture -// pMesh -// Mesh that represents the scene -// GutterSize -// Number of texels to over rasterize in texture space -// this should be at least 1.0 -// ppBuffer -// GutterHelper that will be created -// -//============================================================================ - - -HRESULT WINAPI - D3DXCreateTextureGutterHelper( - UINT Width, - UINT Height, - LPD3DXMESH pMesh, - FLOAT GutterSize, - LPD3DXTEXTUREGUTTERHELPER* ppBuffer); - - -//============================================================================ -// -// D3DXCreatePRTEngine: -// -------------------- -// Computes a PRTEngine which can efficiently generate PRT simulations -// of a scene -// -// Parameters: -// pMesh -// Mesh that represents the scene - must have an AttributeTable -// where vertices are in a unique attribute. -// ExtractUVs -// Set this to true if textures are going to be used for albedos -// or to store PRT vectors -// pBlockerMesh -// Optional mesh that just blocks the scene -// ppEngine -// PRTEngine that will be created -// -//============================================================================ - - -HRESULT WINAPI - D3DXCreatePRTEngine( - LPD3DXMESH pMesh, - BOOL ExtractUVs, - LPD3DXMESH pBlockerMesh, - LPD3DXPRTENGINE* ppEngine); - -//============================================================================ -// -// D3DXConcatenateMeshes: -// -------------------- -// Concatenates a group of meshes into one common mesh. This can optionaly transform -// each sub mesh or its texture coordinates. If no DECL is given it will -// generate a union of all of the DECL's of the sub meshes, promoting channels -// and types if neccesary. It will create an AttributeTable if possible, one can -// call OptimizeMesh with attribute sort and compacting enabled to ensure this. -// -// Parameters: -// ppMeshes -// Array of pointers to meshes that can store PRT vectors -// NumMeshes -// Number of meshes -// Options -// Passed through to D3DXCreateMesh -// pGeomXForms -// [optional] Each sub mesh is transformed by the corresponding -// matrix if this array is supplied -// pTextureXForms -// [optional] UV coordinates for each sub mesh are transformed -// by corresponding matrix if supplied -// pDecl -// [optional] Only information in this DECL is used when merging -// data -// pD3DDevice -// D3D device that is used to create the new mesh -// ppMeshOut -// Mesh that will be created -// -//============================================================================ - - -HRESULT WINAPI - D3DXConcatenateMeshes( - LPD3DXMESH *ppMeshes, - UINT NumMeshes, - DWORD Options, - CONST D3DXMATRIX *pGeomXForms, - CONST D3DXMATRIX *pTextureXForms, - CONST D3DVERTEXELEMENT9 *pDecl, - LPDIRECT3DDEVICE9 pD3DDevice, - LPD3DXMESH *ppMeshOut); - -//============================================================================ -// -// D3DXSHPRTCompSuperCluster: -// -------------------------- -// Used with compressed results of D3DXSHPRTSimulation. -// Generates "super clusters" - groups of clusters that can be drawn in -// the same draw call. A greedy algorithm that minimizes overdraw is used -// to group the clusters. -// -// Parameters: -// pClusterIDs -// NumVerts cluster ID's (extracted from a compressed buffer) -// pScene -// Mesh that represents composite scene passed to the simulator -// MaxNumClusters -// Maximum number of clusters allocated per super cluster -// NumClusters -// Number of clusters computed in the simulator -// pSuperClusterIDs -// Array of length NumClusters, contains index of super cluster -// that corresponding cluster was assigned to -// pNumSuperClusters -// Returns the number of super clusters allocated -// -//============================================================================ - -HRESULT WINAPI - D3DXSHPRTCompSuperCluster( - UINT *pClusterIDs, - LPD3DXMESH pScene, - UINT MaxNumClusters, - UINT NumClusters, - UINT *pSuperClusterIDs, - UINT *pNumSuperClusters); - -//============================================================================ -// -// D3DXSHPRTCompSplitMeshSC: -// ------------------------- -// Used with compressed results of the vertex version of the PRT simulator. -// After D3DXSHRTCompSuperCluster has been called this function can be used -// to split the mesh into a group of faces/vertices per super cluster. -// Each super cluster contains all of the faces that contain any vertex -// classified in one of its clusters. All of the vertices connected to this -// set of faces are also included with the returned array ppVertStatus -// indicating whether or not the vertex belongs to the supercluster. -// -// Parameters: -// pClusterIDs -// NumVerts cluster ID's (extracted from a compressed buffer) -// NumVertices -// Number of vertices in original mesh -// NumClusters -// Number of clusters (input parameter to compression) -// pSuperClusterIDs -// Array of size NumClusters that will contain super cluster ID's (from -// D3DXSHCompSuerCluster) -// NumSuperClusters -// Number of superclusters allocated in D3DXSHCompSuerCluster -// pInputIB -// Raw index buffer for mesh - format depends on bInputIBIs32Bit -// InputIBIs32Bit -// Indicates whether the input index buffer is 32-bit (otherwise 16-bit -// is assumed) -// NumFaces -// Number of faces in the original mesh (pInputIB is 3 times this length) -// ppIBData -// LPD3DXBUFFER holds raw index buffer that will contain the resulting split faces. -// Format determined by bIBIs32Bit. Allocated by function -// pIBDataLength -// Length of ppIBData, assigned in function -// OutputIBIs32Bit -// Indicates whether the output index buffer is to be 32-bit (otherwise -// 16-bit is assumed) -// ppFaceRemap -// LPD3DXBUFFER mapping of each face in ppIBData to original faces. Length is -// *pIBDataLength/3. Optional paramter, allocated in function -// ppVertData -// LPD3DXBUFFER contains new vertex data structure. Size of pVertDataLength -// pVertDataLength -// Number of new vertices in split mesh. Assigned in function -// pSCClusterList -// Array of length NumClusters which pSCData indexes into (Cluster* fields) -// for each SC, contains clusters sorted by super cluster -// pSCData -// Structure per super cluster - contains indices into ppIBData, -// pSCClusterList and ppVertData -// -//============================================================================ - -HRESULT WINAPI - D3DXSHPRTCompSplitMeshSC( - UINT *pClusterIDs, - UINT NumVertices, - UINT NumClusters, - UINT *pSuperClusterIDs, - UINT NumSuperClusters, - LPVOID pInputIB, - BOOL InputIBIs32Bit, - UINT NumFaces, - LPD3DXBUFFER *ppIBData, - UINT *pIBDataLength, - BOOL OutputIBIs32Bit, - LPD3DXBUFFER *ppFaceRemap, - LPD3DXBUFFER *ppVertData, - UINT *pVertDataLength, - UINT *pSCClusterList, - D3DXSHPRTSPLITMESHCLUSTERDATA *pSCData); - - -#ifdef __cplusplus -} -#endif //__cplusplus - -////////////////////////////////////////////////////////////////////////////// -// -// Definitions of .X file templates used by mesh load/save functions -// that are not RM standard -// -////////////////////////////////////////////////////////////////////////////// - -// {3CF169CE-FF7C-44ab-93C0-F78F62D172E2} -DEFINE_GUID(DXFILEOBJ_XSkinMeshHeader, -0x3cf169ce, 0xff7c, 0x44ab, 0x93, 0xc0, 0xf7, 0x8f, 0x62, 0xd1, 0x72, 0xe2); - -// {B8D65549-D7C9-4995-89CF-53A9A8B031E3} -DEFINE_GUID(DXFILEOBJ_VertexDuplicationIndices, -0xb8d65549, 0xd7c9, 0x4995, 0x89, 0xcf, 0x53, 0xa9, 0xa8, 0xb0, 0x31, 0xe3); - -// {A64C844A-E282-4756-8B80-250CDE04398C} -DEFINE_GUID(DXFILEOBJ_FaceAdjacency, -0xa64c844a, 0xe282, 0x4756, 0x8b, 0x80, 0x25, 0xc, 0xde, 0x4, 0x39, 0x8c); - -// {6F0D123B-BAD2-4167-A0D0-80224F25FABB} -DEFINE_GUID(DXFILEOBJ_SkinWeights, -0x6f0d123b, 0xbad2, 0x4167, 0xa0, 0xd0, 0x80, 0x22, 0x4f, 0x25, 0xfa, 0xbb); - -// {A3EB5D44-FC22-429d-9AFB-3221CB9719A6} -DEFINE_GUID(DXFILEOBJ_Patch, -0xa3eb5d44, 0xfc22, 0x429d, 0x9a, 0xfb, 0x32, 0x21, 0xcb, 0x97, 0x19, 0xa6); - -// {D02C95CC-EDBA-4305-9B5D-1820D7704BBF} -DEFINE_GUID(DXFILEOBJ_PatchMesh, -0xd02c95cc, 0xedba, 0x4305, 0x9b, 0x5d, 0x18, 0x20, 0xd7, 0x70, 0x4b, 0xbf); - -// {B9EC94E1-B9A6-4251-BA18-94893F02C0EA} -DEFINE_GUID(DXFILEOBJ_PatchMesh9, -0xb9ec94e1, 0xb9a6, 0x4251, 0xba, 0x18, 0x94, 0x89, 0x3f, 0x2, 0xc0, 0xea); - -// {B6C3E656-EC8B-4b92-9B62-681659522947} -DEFINE_GUID(DXFILEOBJ_PMInfo, -0xb6c3e656, 0xec8b, 0x4b92, 0x9b, 0x62, 0x68, 0x16, 0x59, 0x52, 0x29, 0x47); - -// {917E0427-C61E-4a14-9C64-AFE65F9E9844} -DEFINE_GUID(DXFILEOBJ_PMAttributeRange, -0x917e0427, 0xc61e, 0x4a14, 0x9c, 0x64, 0xaf, 0xe6, 0x5f, 0x9e, 0x98, 0x44); - -// {574CCC14-F0B3-4333-822D-93E8A8A08E4C} -DEFINE_GUID(DXFILEOBJ_PMVSplitRecord, -0x574ccc14, 0xf0b3, 0x4333, 0x82, 0x2d, 0x93, 0xe8, 0xa8, 0xa0, 0x8e, 0x4c); - -// {B6E70A0E-8EF9-4e83-94AD-ECC8B0C04897} -DEFINE_GUID(DXFILEOBJ_FVFData, -0xb6e70a0e, 0x8ef9, 0x4e83, 0x94, 0xad, 0xec, 0xc8, 0xb0, 0xc0, 0x48, 0x97); - -// {F752461C-1E23-48f6-B9F8-8350850F336F} -DEFINE_GUID(DXFILEOBJ_VertexElement, -0xf752461c, 0x1e23, 0x48f6, 0xb9, 0xf8, 0x83, 0x50, 0x85, 0xf, 0x33, 0x6f); - -// {BF22E553-292C-4781-9FEA-62BD554BDD93} -DEFINE_GUID(DXFILEOBJ_DeclData, -0xbf22e553, 0x292c, 0x4781, 0x9f, 0xea, 0x62, 0xbd, 0x55, 0x4b, 0xdd, 0x93); - -// {F1CFE2B3-0DE3-4e28-AFA1-155A750A282D} -DEFINE_GUID(DXFILEOBJ_EffectFloats, -0xf1cfe2b3, 0xde3, 0x4e28, 0xaf, 0xa1, 0x15, 0x5a, 0x75, 0xa, 0x28, 0x2d); - -// {D55B097E-BDB6-4c52-B03D-6051C89D0E42} -DEFINE_GUID(DXFILEOBJ_EffectString, -0xd55b097e, 0xbdb6, 0x4c52, 0xb0, 0x3d, 0x60, 0x51, 0xc8, 0x9d, 0xe, 0x42); - -// {622C0ED0-956E-4da9-908A-2AF94F3CE716} -DEFINE_GUID(DXFILEOBJ_EffectDWord, -0x622c0ed0, 0x956e, 0x4da9, 0x90, 0x8a, 0x2a, 0xf9, 0x4f, 0x3c, 0xe7, 0x16); - -// {3014B9A0-62F5-478c-9B86-E4AC9F4E418B} -DEFINE_GUID(DXFILEOBJ_EffectParamFloats, -0x3014b9a0, 0x62f5, 0x478c, 0x9b, 0x86, 0xe4, 0xac, 0x9f, 0x4e, 0x41, 0x8b); - -// {1DBC4C88-94C1-46ee-9076-2C28818C9481} -DEFINE_GUID(DXFILEOBJ_EffectParamString, -0x1dbc4c88, 0x94c1, 0x46ee, 0x90, 0x76, 0x2c, 0x28, 0x81, 0x8c, 0x94, 0x81); - -// {E13963BC-AE51-4c5d-B00F-CFA3A9D97CE5} -DEFINE_GUID(DXFILEOBJ_EffectParamDWord, -0xe13963bc, 0xae51, 0x4c5d, 0xb0, 0xf, 0xcf, 0xa3, 0xa9, 0xd9, 0x7c, 0xe5); - -// {E331F7E4-0559-4cc2-8E99-1CEC1657928F} -DEFINE_GUID(DXFILEOBJ_EffectInstance, -0xe331f7e4, 0x559, 0x4cc2, 0x8e, 0x99, 0x1c, 0xec, 0x16, 0x57, 0x92, 0x8f); - -// {9E415A43-7BA6-4a73-8743-B73D47E88476} -DEFINE_GUID(DXFILEOBJ_AnimTicksPerSecond, -0x9e415a43, 0x7ba6, 0x4a73, 0x87, 0x43, 0xb7, 0x3d, 0x47, 0xe8, 0x84, 0x76); - -// {7F9B00B3-F125-4890-876E-1CFFBF697C4D} -DEFINE_GUID(DXFILEOBJ_CompressedAnimationSet, -0x7f9b00b3, 0xf125, 0x4890, 0x87, 0x6e, 0x1c, 0x42, 0xbf, 0x69, 0x7c, 0x4d); - -#pragma pack(push, 1) -typedef struct _XFILECOMPRESSEDANIMATIONSET -{ - DWORD CompressedBlockSize; - FLOAT TicksPerSec; - DWORD PlaybackType; - DWORD BufferLength; -} XFILECOMPRESSEDANIMATIONSET; -#pragma pack(pop) - -#define XSKINEXP_TEMPLATES \ - "xof 0303txt 0032\ - template XSkinMeshHeader \ - { \ - <3CF169CE-FF7C-44ab-93C0-F78F62D172E2> \ - WORD nMaxSkinWeightsPerVertex; \ - WORD nMaxSkinWeightsPerFace; \ - WORD nBones; \ - } \ - template VertexDuplicationIndices \ - { \ - \ - DWORD nIndices; \ - DWORD nOriginalVertices; \ - array DWORD indices[nIndices]; \ - } \ - template FaceAdjacency \ - { \ - \ - DWORD nIndices; \ - array DWORD indices[nIndices]; \ - } \ - template SkinWeights \ - { \ - <6F0D123B-BAD2-4167-A0D0-80224F25FABB> \ - STRING transformNodeName; \ - DWORD nWeights; \ - array DWORD vertexIndices[nWeights]; \ - array float weights[nWeights]; \ - Matrix4x4 matrixOffset; \ - } \ - template Patch \ - { \ - \ - DWORD nControlIndices; \ - array DWORD controlIndices[nControlIndices]; \ - } \ - template PatchMesh \ - { \ - \ - DWORD nVertices; \ - array Vector vertices[nVertices]; \ - DWORD nPatches; \ - array Patch patches[nPatches]; \ - [ ... ] \ - } \ - template PatchMesh9 \ - { \ - \ - DWORD Type; \ - DWORD Degree; \ - DWORD Basis; \ - DWORD nVertices; \ - array Vector vertices[nVertices]; \ - DWORD nPatches; \ - array Patch patches[nPatches]; \ - [ ... ] \ - } " \ - "template EffectFloats \ - { \ - \ - DWORD nFloats; \ - array float Floats[nFloats]; \ - } \ - template EffectString \ - { \ - \ - STRING Value; \ - } \ - template EffectDWord \ - { \ - <622C0ED0-956E-4da9-908A-2AF94F3CE716> \ - DWORD Value; \ - } " \ - "template EffectParamFloats \ - { \ - <3014B9A0-62F5-478c-9B86-E4AC9F4E418B> \ - STRING ParamName; \ - DWORD nFloats; \ - array float Floats[nFloats]; \ - } " \ - "template EffectParamString \ - { \ - <1DBC4C88-94C1-46ee-9076-2C28818C9481> \ - STRING ParamName; \ - STRING Value; \ - } \ - template EffectParamDWord \ - { \ - \ - STRING ParamName; \ - DWORD Value; \ - } \ - template EffectInstance \ - { \ - \ - STRING EffectFilename; \ - [ ... ] \ - } " \ - "template AnimTicksPerSecond \ - { \ - <9E415A43-7BA6-4a73-8743-B73D47E88476> \ - DWORD AnimTicksPerSecond; \ - } \ - template CompressedAnimationSet \ - { \ - <7F9B00B3-F125-4890-876E-1C42BF697C4D> \ - DWORD CompressedBlockSize; \ - FLOAT TicksPerSec; \ - DWORD PlaybackType; \ - DWORD BufferLength; \ - array DWORD CompressedData[BufferLength]; \ - } " - -#define XEXTENSIONS_TEMPLATES \ - "xof 0303txt 0032\ - template FVFData \ - { \ - \ - DWORD dwFVF; \ - DWORD nDWords; \ - array DWORD data[nDWords]; \ - } \ - template VertexElement \ - { \ - \ - DWORD Type; \ - DWORD Method; \ - DWORD Usage; \ - DWORD UsageIndex; \ - } \ - template DeclData \ - { \ - \ - DWORD nElements; \ - array VertexElement Elements[nElements]; \ - DWORD nDWords; \ - array DWORD data[nDWords]; \ - } \ - template PMAttributeRange \ - { \ - <917E0427-C61E-4a14-9C64-AFE65F9E9844> \ - DWORD iFaceOffset; \ - DWORD nFacesMin; \ - DWORD nFacesMax; \ - DWORD iVertexOffset; \ - DWORD nVerticesMin; \ - DWORD nVerticesMax; \ - } \ - template PMVSplitRecord \ - { \ - <574CCC14-F0B3-4333-822D-93E8A8A08E4C> \ - DWORD iFaceCLW; \ - DWORD iVlrOffset; \ - DWORD iCode; \ - } \ - template PMInfo \ - { \ - \ - DWORD nAttributes; \ - array PMAttributeRange attributeRanges[nAttributes]; \ - DWORD nMaxValence; \ - DWORD nMinLogicalVertices; \ - DWORD nMaxLogicalVertices; \ - DWORD nVSplits; \ - array PMVSplitRecord splitRecords[nVSplits]; \ - DWORD nAttributeMispredicts; \ - array DWORD attributeMispredicts[nAttributeMispredicts]; \ - } " - -#endif //__D3DX9MESH_H__ - - diff --git a/sdk/dx8sdk/Include/d3dx9shader.h b/sdk/dx8sdk/Include/d3dx9shader.h deleted file mode 100644 index cae915a7..00000000 --- a/sdk/dx8sdk/Include/d3dx9shader.h +++ /dev/null @@ -1,1072 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// File: d3dx9shader.h -// Content: D3DX Shader APIs -// -////////////////////////////////////////////////////////////////////////////// - -#include "d3dx9.h" - -#ifndef __D3DX9SHADER_H__ -#define __D3DX9SHADER_H__ - - -//--------------------------------------------------------------------------- -// D3DXTX_VERSION: -// -------------- -// Version token used to create a procedural texture filler in effects -// Used by D3DXFill[]TX functions -//--------------------------------------------------------------------------- -#define D3DXTX_VERSION(_Major,_Minor) (('T' << 24) | ('X' << 16) | ((_Major) << 8) | (_Minor)) - - - -//---------------------------------------------------------------------------- -// D3DXSHADER flags: -// ----------------- -// D3DXSHADER_DEBUG -// Insert debug file/line/type/symbol information. -// -// D3DXSHADER_SKIPVALIDATION -// 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. -// -// D3DXSHADER_SKIPOPTIMIZATION -// 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. -// -// D3DXSHADER_PACKMATRIX_ROWMAJOR -// Unless explicitly specified, matrices will be packed in row-major order -// on input and output from the shader. -// -// D3DXSHADER_PACKMATRIX_COLUMNMAJOR -// 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. -// -// D3DXSHADER_PARTIALPRECISION -// Force all computations in resulting shader to occur at partial precision. -// This may result in faster evaluation of shaders on some hardware. -// -// D3DXSHADER_FORCE_VS_SOFTWARE_NOOPT -// Force compiler to compile against the next highest available software -// target for vertex shaders. This flag also turns optimizations off, -// and debugging on. -// -// D3DXSHADER_FORCE_PS_SOFTWARE_NOOPT -// Force compiler to compile against the next highest available software -// target for pixel shaders. This flag also turns optimizations off, -// and debugging on. -// -// D3DXSHADER_NO_PRESHADER -// Disables Preshaders. Using this flag will cause the compiler to not -// pull out static expression for evaluation on the host cpu -// -// D3DXSHADER_AVOID_FLOW_CONTROL -// Hint compiler to avoid flow-control constructs where possible. -// -// D3DXSHADER_PREFER_FLOW_CONTROL -// Hint compiler to prefer flow-control constructs where possible. -// -//---------------------------------------------------------------------------- - -#define D3DXSHADER_DEBUG (1 << 0) -#define D3DXSHADER_SKIPVALIDATION (1 << 1) -#define D3DXSHADER_SKIPOPTIMIZATION (1 << 2) -#define D3DXSHADER_PACKMATRIX_ROWMAJOR (1 << 3) -#define D3DXSHADER_PACKMATRIX_COLUMNMAJOR (1 << 4) -#define D3DXSHADER_PARTIALPRECISION (1 << 5) -#define D3DXSHADER_FORCE_VS_SOFTWARE_NOOPT (1 << 6) -#define D3DXSHADER_FORCE_PS_SOFTWARE_NOOPT (1 << 7) -#define D3DXSHADER_NO_PRESHADER (1 << 8) -#define D3DXSHADER_AVOID_FLOW_CONTROL (1 << 9) -#define D3DXSHADER_PREFER_FLOW_CONTROL (1 << 10) - - - -//---------------------------------------------------------------------------- -// D3DXHANDLE: -// ----------- -// Handle values used to efficiently reference shader and effect parameters. -// Strings can be used as handles. However, handles are not always strings. -//---------------------------------------------------------------------------- - -typedef LPCSTR D3DXHANDLE; -typedef D3DXHANDLE *LPD3DXHANDLE; - - -//---------------------------------------------------------------------------- -// D3DXMACRO: -// ---------- -// Preprocessor macro definition. The application pass in a NULL-terminated -// array of this structure to various D3DX APIs. This enables the application -// to #define tokens at runtime, before the file is parsed. -//---------------------------------------------------------------------------- - -typedef struct _D3DXMACRO -{ - LPCSTR Name; - LPCSTR Definition; - -} D3DXMACRO, *LPD3DXMACRO; - - -//---------------------------------------------------------------------------- -// D3DXSEMANTIC: -//---------------------------------------------------------------------------- - -typedef struct _D3DXSEMANTIC -{ - UINT Usage; - UINT UsageIndex; - -} D3DXSEMANTIC, *LPD3DXSEMANTIC; - - - -//---------------------------------------------------------------------------- -// D3DXFRAGMENT_DESC: -//---------------------------------------------------------------------------- - -typedef struct _D3DXFRAGMENT_DESC -{ - LPCSTR Name; - DWORD Target; - -} D3DXFRAGMENT_DESC, *LPD3DXFRAGMENT_DESC; - - -//---------------------------------------------------------------------------- -// D3DXREGISTER_SET: -//---------------------------------------------------------------------------- - -typedef enum _D3DXREGISTER_SET -{ - D3DXRS_BOOL, - D3DXRS_INT4, - D3DXRS_FLOAT4, - D3DXRS_SAMPLER, - - // force 32-bit size enum - D3DXRS_FORCE_DWORD = 0x7fffffff - -} D3DXREGISTER_SET, *LPD3DXREGISTER_SET; - - -//---------------------------------------------------------------------------- -// D3DXPARAMETER_CLASS: -//---------------------------------------------------------------------------- - -typedef enum _D3DXPARAMETER_CLASS -{ - D3DXPC_SCALAR, - D3DXPC_VECTOR, - D3DXPC_MATRIX_ROWS, - D3DXPC_MATRIX_COLUMNS, - D3DXPC_OBJECT, - D3DXPC_STRUCT, - - // force 32-bit size enum - D3DXPC_FORCE_DWORD = 0x7fffffff - -} D3DXPARAMETER_CLASS, *LPD3DXPARAMETER_CLASS; - - -//---------------------------------------------------------------------------- -// D3DXPARAMETER_TYPE: -//---------------------------------------------------------------------------- - -typedef enum _D3DXPARAMETER_TYPE -{ - D3DXPT_VOID, - D3DXPT_BOOL, - D3DXPT_INT, - D3DXPT_FLOAT, - D3DXPT_STRING, - D3DXPT_TEXTURE, - D3DXPT_TEXTURE1D, - D3DXPT_TEXTURE2D, - D3DXPT_TEXTURE3D, - D3DXPT_TEXTURECUBE, - D3DXPT_SAMPLER, - D3DXPT_SAMPLER1D, - D3DXPT_SAMPLER2D, - D3DXPT_SAMPLER3D, - D3DXPT_SAMPLERCUBE, - D3DXPT_PIXELSHADER, - D3DXPT_VERTEXSHADER, - D3DXPT_PIXELFRAGMENT, - D3DXPT_VERTEXFRAGMENT, - - // force 32-bit size enum - D3DXPT_FORCE_DWORD = 0x7fffffff - -} D3DXPARAMETER_TYPE, *LPD3DXPARAMETER_TYPE; - - -//---------------------------------------------------------------------------- -// D3DXCONSTANTTABLE_DESC: -//---------------------------------------------------------------------------- - -typedef struct _D3DXCONSTANTTABLE_DESC -{ - LPCSTR Creator; // Creator string - DWORD Version; // Shader version - UINT Constants; // Number of constants - -} D3DXCONSTANTTABLE_DESC, *LPD3DXCONSTANTTABLE_DESC; - - -//---------------------------------------------------------------------------- -// D3DXCONSTANT_DESC: -//---------------------------------------------------------------------------- - -typedef struct _D3DXCONSTANT_DESC -{ - LPCSTR Name; // Constant name - - D3DXREGISTER_SET RegisterSet; // Register set - UINT RegisterIndex; // Register index - UINT RegisterCount; // Number of registers occupied - - D3DXPARAMETER_CLASS Class; // Class - D3DXPARAMETER_TYPE Type; // Component type - - UINT Rows; // Number of rows - UINT Columns; // Number of columns - UINT Elements; // Number of array elements - UINT StructMembers; // Number of structure member sub-parameters - - UINT Bytes; // Data size, in bytes - LPCVOID DefaultValue; // Pointer to default value - -} D3DXCONSTANT_DESC, *LPD3DXCONSTANT_DESC; - - - -//---------------------------------------------------------------------------- -// ID3DXConstantTable: -//---------------------------------------------------------------------------- - -typedef interface ID3DXConstantTable ID3DXConstantTable; -typedef interface ID3DXConstantTable *LPD3DXCONSTANTTABLE; - -// {AB3C758F-093E-4356-B762-4DB18F1B3A01} -DEFINE_GUID(IID_ID3DXConstantTable, -0xab3c758f, 0x93e, 0x4356, 0xb7, 0x62, 0x4d, 0xb1, 0x8f, 0x1b, 0x3a, 0x1); - - -#undef INTERFACE -#define INTERFACE ID3DXConstantTable - -DECLARE_INTERFACE_(ID3DXConstantTable, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // Buffer - STDMETHOD_(LPVOID, GetBufferPointer)(THIS) PURE; - STDMETHOD_(DWORD, GetBufferSize)(THIS) PURE; - - // Descs - STDMETHOD(GetDesc)(THIS_ D3DXCONSTANTTABLE_DESC *pDesc) PURE; - STDMETHOD(GetConstantDesc)(THIS_ D3DXHANDLE hConstant, D3DXCONSTANT_DESC *pConstantDesc, UINT *pCount) PURE; - STDMETHOD_(UINT, GetSamplerIndex)(THIS_ D3DXHANDLE hConstant) PURE; - - // Handle operations - STDMETHOD_(D3DXHANDLE, GetConstant)(THIS_ D3DXHANDLE hConstant, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetConstantByName)(THIS_ D3DXHANDLE hConstant, LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetConstantElement)(THIS_ D3DXHANDLE hConstant, UINT Index) PURE; - - // Set Constants - STDMETHOD(SetDefaults)(THIS_ LPDIRECT3DDEVICE9 pDevice) PURE; - STDMETHOD(SetValue)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, LPCVOID pData, UINT Bytes) PURE; - STDMETHOD(SetBool)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, BOOL b) PURE; - STDMETHOD(SetBoolArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST BOOL* pb, UINT Count) PURE; - STDMETHOD(SetInt)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, INT n) PURE; - STDMETHOD(SetIntArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST INT* pn, UINT Count) PURE; - STDMETHOD(SetFloat)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, FLOAT f) PURE; - STDMETHOD(SetFloatArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST FLOAT* pf, UINT Count) PURE; - STDMETHOD(SetVector)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXVECTOR4* pVector) PURE; - STDMETHOD(SetVectorArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXVECTOR4* pVector, UINT Count) PURE; - STDMETHOD(SetMatrix)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXMATRIX* pMatrix) PURE; - STDMETHOD(SetMatrixArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixPointerArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixTranspose)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXMATRIX* pMatrix) PURE; - STDMETHOD(SetMatrixTransposeArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixTransposePointerArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE; -}; - - -//---------------------------------------------------------------------------- -// ID3DXTextureShader: -//---------------------------------------------------------------------------- - -typedef interface ID3DXTextureShader ID3DXTextureShader; -typedef interface ID3DXTextureShader *LPD3DXTEXTURESHADER; - -// {3E3D67F8-AA7A-405d-A857-BA01D4758426} -DEFINE_GUID(IID_ID3DXTextureShader, -0x3e3d67f8, 0xaa7a, 0x405d, 0xa8, 0x57, 0xba, 0x1, 0xd4, 0x75, 0x84, 0x26); - -#undef INTERFACE -#define INTERFACE ID3DXTextureShader - -DECLARE_INTERFACE_(ID3DXTextureShader, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // Gets - STDMETHOD(GetFunction)(THIS_ LPD3DXBUFFER *ppFunction) PURE; - STDMETHOD(GetConstantBuffer)(THIS_ LPD3DXBUFFER *ppConstantBuffer) PURE; - - // Descs - STDMETHOD(GetDesc)(THIS_ D3DXCONSTANTTABLE_DESC *pDesc) PURE; - STDMETHOD(GetConstantDesc)(THIS_ D3DXHANDLE hConstant, D3DXCONSTANT_DESC *pConstantDesc, UINT *pCount) PURE; - - // Handle operations - STDMETHOD_(D3DXHANDLE, GetConstant)(THIS_ D3DXHANDLE hConstant, UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetConstantByName)(THIS_ D3DXHANDLE hConstant, LPCSTR pName) PURE; - STDMETHOD_(D3DXHANDLE, GetConstantElement)(THIS_ D3DXHANDLE hConstant, UINT Index) PURE; - - // Set Constants - STDMETHOD(SetDefaults)(THIS) PURE; - STDMETHOD(SetValue)(THIS_ D3DXHANDLE hConstant, LPCVOID pData, UINT Bytes) PURE; - STDMETHOD(SetBool)(THIS_ D3DXHANDLE hConstant, BOOL b) PURE; - STDMETHOD(SetBoolArray)(THIS_ D3DXHANDLE hConstant, CONST BOOL* pb, UINT Count) PURE; - STDMETHOD(SetInt)(THIS_ D3DXHANDLE hConstant, INT n) PURE; - STDMETHOD(SetIntArray)(THIS_ D3DXHANDLE hConstant, CONST INT* pn, UINT Count) PURE; - STDMETHOD(SetFloat)(THIS_ D3DXHANDLE hConstant, FLOAT f) PURE; - STDMETHOD(SetFloatArray)(THIS_ D3DXHANDLE hConstant, CONST FLOAT* pf, UINT Count) PURE; - STDMETHOD(SetVector)(THIS_ D3DXHANDLE hConstant, CONST D3DXVECTOR4* pVector) PURE; - STDMETHOD(SetVectorArray)(THIS_ D3DXHANDLE hConstant, CONST D3DXVECTOR4* pVector, UINT Count) PURE; - STDMETHOD(SetMatrix)(THIS_ D3DXHANDLE hConstant, CONST D3DXMATRIX* pMatrix) PURE; - STDMETHOD(SetMatrixArray)(THIS_ D3DXHANDLE hConstant, CONST D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixPointerArray)(THIS_ D3DXHANDLE hConstant, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixTranspose)(THIS_ D3DXHANDLE hConstant, CONST D3DXMATRIX* pMatrix) PURE; - STDMETHOD(SetMatrixTransposeArray)(THIS_ D3DXHANDLE hConstant, CONST D3DXMATRIX* pMatrix, UINT Count) PURE; - STDMETHOD(SetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hConstant, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE; -}; - - - -//---------------------------------------------------------------------------- -// ID3DXFragmentLinker -//---------------------------------------------------------------------------- - -typedef interface ID3DXFragmentLinker ID3DXFragmentLinker; -typedef interface ID3DXFragmentLinker *LPD3DXFRAGMENTLINKER; - -// {1A2C0CC2-E5B6-4ebc-9E8D-390E057811B6} -DEFINE_GUID(IID_ID3DXFragmentLinker, -0x1a2c0cc2, 0xe5b6, 0x4ebc, 0x9e, 0x8d, 0x39, 0xe, 0x5, 0x78, 0x11, 0xb6); - -#undef INTERFACE -#define INTERFACE ID3DXFragmentLinker - -DECLARE_INTERFACE_(ID3DXFragmentLinker, IUnknown) -{ - // IUnknown - STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; - STDMETHOD_(ULONG, AddRef)(THIS) PURE; - STDMETHOD_(ULONG, Release)(THIS) PURE; - - // ID3DXFragmentLinker - - // fragment access and information retrieval functions - STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9* ppDevice) PURE; - STDMETHOD_(UINT, GetNumberOfFragments)(THIS) PURE; - - STDMETHOD_(D3DXHANDLE, GetFragmentHandleByIndex)(THIS_ UINT Index) PURE; - STDMETHOD_(D3DXHANDLE, GetFragmentHandleByName)(THIS_ LPCSTR Name) PURE; - STDMETHOD(GetFragmentDesc)(THIS_ D3DXHANDLE Name, LPD3DXFRAGMENT_DESC FragDesc) PURE; - - // add the fragments in the buffer to the linker - STDMETHOD(AddFragments)(THIS_ CONST DWORD *Fragments) PURE; - - // Create a buffer containing the fragments. Suitable for saving to disk - STDMETHOD(GetAllFragments)(THIS_ LPD3DXBUFFER *ppBuffer) PURE; - STDMETHOD(GetFragment)(THIS_ D3DXHANDLE Name, LPD3DXBUFFER *ppBuffer) PURE; - - STDMETHOD(LinkShader)(THIS_ LPCSTR pProfile, DWORD Flags, CONST D3DXHANDLE *rgFragmentHandles, UINT cFragments, LPD3DXBUFFER *ppBuffer, LPD3DXBUFFER *ppErrorMsgs) PURE; - STDMETHOD(LinkVertexShader)(THIS_ LPCSTR pProfile, DWORD Flags, CONST D3DXHANDLE *rgFragmentHandles, UINT cFragments, LPDIRECT3DVERTEXSHADER9 *pVShader, LPD3DXBUFFER *ppErrorMsgs) PURE; - STDMETHOD(LinkPixelShader)(THIS_ LPCSTR pProfile, DWORD Flags, CONST D3DXHANDLE *rgFragmentHandles, UINT cFragments, LPDIRECT3DPIXELSHADER9 *pPShader, LPD3DXBUFFER *ppErrorMsgs) PURE; - - STDMETHOD(ClearCache)(THIS) PURE; -}; - - -//---------------------------------------------------------------------------- -// D3DXINCLUDE_TYPE: -//---------------------------------------------------------------------------- - -typedef enum _D3DXINCLUDE_TYPE -{ - D3DXINC_LOCAL, - D3DXINC_SYSTEM, - - // force 32-bit size enum - D3DXINC_FORCE_DWORD = 0x7fffffff - -} D3DXINCLUDE_TYPE, *LPD3DXINCLUDE_TYPE; - - -//---------------------------------------------------------------------------- -// ID3DXInclude: -// ------------- -// This interface is intended to be implemented by the application, and can -// be used by various D3DX 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. -// Close() -// Closes an include file. If Open was successful, Close is guaranteed -// to be called before the API using this interface returns. -//---------------------------------------------------------------------------- - -typedef interface ID3DXInclude ID3DXInclude; -typedef interface ID3DXInclude *LPD3DXINCLUDE; - -#undef INTERFACE -#define INTERFACE ID3DXInclude - -DECLARE_INTERFACE(ID3DXInclude) -{ - STDMETHOD(Open)(THIS_ D3DXINCLUDE_TYPE IncludeType, LPCSTR pFileName, LPCVOID pParentData, LPCVOID *ppData, UINT *pBytes) PURE; - STDMETHOD(Close)(THIS_ LPCVOID pData) PURE; -}; - - -////////////////////////////////////////////////////////////////////////////// -// APIs ////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - - -//---------------------------------------------------------------------------- -// D3DXAssembleShader: -// ------------------- -// Assembles 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 -// SrcDataLen -// 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 assembling -// from file, and will error when assembling from resource or memory. -// Flags -// See D3DXSHADER_xxx flags -// ppShader -// Returns a buffer containing the created shader. This buffer contains -// the assembled shader code, as well as any embedded debug info. -// 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 - D3DXAssembleShaderFromFileA( - LPCSTR pSrcFile, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs); - -HRESULT WINAPI - D3DXAssembleShaderFromFileW( - LPCWSTR pSrcFile, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs); - -#ifdef UNICODE -#define D3DXAssembleShaderFromFile D3DXAssembleShaderFromFileW -#else -#define D3DXAssembleShaderFromFile D3DXAssembleShaderFromFileA -#endif - - -HRESULT WINAPI - D3DXAssembleShaderFromResourceA( - HMODULE hSrcModule, - LPCSTR pSrcResource, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs); - -HRESULT WINAPI - D3DXAssembleShaderFromResourceW( - HMODULE hSrcModule, - LPCWSTR pSrcResource, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs); - -#ifdef UNICODE -#define D3DXAssembleShaderFromResource D3DXAssembleShaderFromResourceW -#else -#define D3DXAssembleShaderFromResource D3DXAssembleShaderFromResourceA -#endif - - -HRESULT WINAPI - D3DXAssembleShader( - LPCSTR pSrcData, - UINT SrcDataLen, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs); - - - -//---------------------------------------------------------------------------- -// D3DXCompileShader: -// ------------------ -// 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. -// SrcDataLen -// 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. Currently supported -// profiles are "vs_1_1", "vs_2_0", "vs_2_a", "vs_2_sw", "ps_1_1", -// "ps_1_2", "ps_1_3", "ps_1_4", "ps_2_0", "ps_2_a", "ps_2_sw", "tx_1_0" -// Flags -// See D3DXSHADER_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 D3DXGetShaderConstantTable) -// 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. -// ppConstantTable -// Returns a ID3DXConstantTable object which can be used to set -// shader constants to the device. Alternatively, an application can -// parse the D3DXSHADER_CONSTANTTABLE block embedded as a comment within -// the shader. -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXCompileShaderFromFileA( - LPCSTR pSrcFile, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - LPCSTR pFunctionName, - LPCSTR pProfile, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs, - LPD3DXCONSTANTTABLE* ppConstantTable); - -HRESULT WINAPI - D3DXCompileShaderFromFileW( - LPCWSTR pSrcFile, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - LPCSTR pFunctionName, - LPCSTR pProfile, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs, - LPD3DXCONSTANTTABLE* ppConstantTable); - -#ifdef UNICODE -#define D3DXCompileShaderFromFile D3DXCompileShaderFromFileW -#else -#define D3DXCompileShaderFromFile D3DXCompileShaderFromFileA -#endif - - -HRESULT WINAPI - D3DXCompileShaderFromResourceA( - HMODULE hSrcModule, - LPCSTR pSrcResource, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - LPCSTR pFunctionName, - LPCSTR pProfile, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs, - LPD3DXCONSTANTTABLE* ppConstantTable); - -HRESULT WINAPI - D3DXCompileShaderFromResourceW( - HMODULE hSrcModule, - LPCWSTR pSrcResource, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - LPCSTR pFunctionName, - LPCSTR pProfile, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs, - LPD3DXCONSTANTTABLE* ppConstantTable); - -#ifdef UNICODE -#define D3DXCompileShaderFromResource D3DXCompileShaderFromResourceW -#else -#define D3DXCompileShaderFromResource D3DXCompileShaderFromResourceA -#endif - - -HRESULT WINAPI - D3DXCompileShader( - LPCSTR pSrcData, - UINT SrcDataLen, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - LPCSTR pFunctionName, - LPCSTR pProfile, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs, - LPD3DXCONSTANTTABLE* ppConstantTable); - - -//---------------------------------------------------------------------------- -// D3DXDisassembleShader: -// ---------------------- -// Takes a binary shader, and returns a buffer containing text assembly. -// -// Parameters: -// pShader -// Pointer to the shader byte code. -// ShaderSizeInBytes -// 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 - D3DXDisassembleShader( - CONST DWORD* pShader, - BOOL EnableColorCode, - LPCSTR pComments, - LPD3DXBUFFER* ppDisassembly); - - -//---------------------------------------------------------------------------- -// D3DXGetPixelShaderProfile/D3DXGetVertexShaderProfile: -// ----------------------------------------------------- -// Returns the name of the HLSL profile best suited to a given device. -// -// Parameters: -// pDevice -// Pointer to the device in question -//---------------------------------------------------------------------------- - -LPCSTR WINAPI - D3DXGetPixelShaderProfile( - LPDIRECT3DDEVICE9 pDevice); - -LPCSTR WINAPI - D3DXGetVertexShaderProfile( - LPDIRECT3DDEVICE9 pDevice); - - -//---------------------------------------------------------------------------- -// D3DXFindShaderComment: -// ---------------------- -// Searches through a shader for a particular comment, denoted by a FourCC in -// the first DWORD of the comment. If the comment is not found, and no other -// error has occurred, S_FALSE is returned. -// -// Parameters: -// pFunction -// Pointer to the function DWORD stream -// FourCC -// FourCC used to identify the desired comment block. -// ppData -// Returns a pointer to the comment data (not including comment token -// and FourCC). Can be NULL. -// pSizeInBytes -// Returns the size of the comment data in bytes. Can be NULL. -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXFindShaderComment( - CONST DWORD* pFunction, - DWORD FourCC, - LPCVOID* ppData, - UINT* pSizeInBytes); - - -//---------------------------------------------------------------------------- -// D3DXGetShaderSize: -// ------------------ -// Returns the size of the shader byte-code, in bytes. -// -// Parameters: -// pFunction -// Pointer to the function DWORD stream -//---------------------------------------------------------------------------- - -UINT WINAPI - D3DXGetShaderSize( - CONST DWORD* pFunction); - - -//---------------------------------------------------------------------------- -// D3DXGetShaderVersion: -// ----------------------- -// Returns the shader version of a given shader. Returns zero if the shader -// function is NULL. -// -// Parameters: -// pFunction -// Pointer to the function DWORD stream -//---------------------------------------------------------------------------- - -DWORD WINAPI - D3DXGetShaderVersion( - CONST DWORD* pFunction); - -//---------------------------------------------------------------------------- -// D3DXGetShaderSemantics: -// ----------------------- -// Gets semantics for all input elements referenced inside a given shader. -// -// Parameters: -// pFunction -// Pointer to the function DWORD stream -// pSemantics -// Pointer to an array of D3DXSEMANTIC structures. The function will -// fill this array with the semantics for each input element referenced -// inside the shader. This array is assumed to contain at least -// MAXD3DDECLLENGTH elements. -// pCount -// Returns the number of elements referenced by the shader -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXGetShaderInputSemantics( - CONST DWORD* pFunction, - D3DXSEMANTIC* pSemantics, - UINT* pCount); - -HRESULT WINAPI - D3DXGetShaderOutputSemantics( - CONST DWORD* pFunction, - D3DXSEMANTIC* pSemantics, - UINT* pCount); - - -//---------------------------------------------------------------------------- -// D3DXGetShaderSamplers: -// ---------------------- -// Gets semantics for all input elements referenced inside a given shader. -// -// pFunction -// Pointer to the function DWORD stream -// pSamplers -// Pointer to an array of LPCSTRs. The function will fill this array -// with pointers to the sampler names contained within pFunction, for -// each sampler referenced inside the shader. This array is assumed to -// contain at least 16 elements. -// pCount -// Returns the number of samplers referenced by the shader -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXGetShaderSamplers( - CONST DWORD* pFunction, - LPCSTR* pSamplers, - UINT* pCount); - - -//---------------------------------------------------------------------------- -// D3DXGetShaderConstantTable: -// --------------------------- -// Gets shader constant table embedded inside shader. A constant table is -// generated by D3DXAssembleShader and D3DXCompileShader, and is embedded in -// the body of the shader. -// -// Parameters: -// pFunction -// Pointer to the function DWORD stream -// ppConstantTable -// Returns a ID3DXConstantTable object which can be used to set -// shader constants to the device. Alternatively, an application can -// parse the D3DXSHADER_CONSTANTTABLE block embedded as a comment within -// the shader. -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXGetShaderConstantTable( - CONST DWORD* pFunction, - LPD3DXCONSTANTTABLE* ppConstantTable); - - - -//---------------------------------------------------------------------------- -// D3DXCreateTextureShader: -// ------------------------ -// Creates a texture shader object, given the compiled shader. -// -// Parameters -// pFunction -// Pointer to the function DWORD stream -// ppTextureShader -// Returns a ID3DXTextureShader object which can be used to procedurally -// fill the contents of a texture using the D3DXFillTextureTX functions. -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXCreateTextureShader( - CONST DWORD* pFunction, - LPD3DXTEXTURESHADER* ppTextureShader); - - - -//---------------------------------------------------------------------------- -// D3DXGatherFragments: -// ------------------- -// Assembles shader fragments into a buffer to be passed to a fragment linker. -// will generate shader fragments for all fragments in the file -// -// 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 -// SrcDataLen -// 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 assembling -// from file, and will error when assembling from resource or memory. -// Flags -// See D3DXSHADER_xxx flags -// ppShader -// Returns a buffer containing the created shader fragments. This buffer contains -// the assembled shader code, as well as any embedded debug info. -// 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 -D3DXGatherFragmentsFromFileA( - LPCSTR pSrcFile, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs); - -HRESULT WINAPI -D3DXGatherFragmentsFromFileW( - LPCWSTR pSrcFile, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs); - -#ifdef UNICODE -#define D3DXGatherFragmentsFromFile D3DXGatherFragmentsFromFileW -#else -#define D3DXGatherFragmentsFromFile D3DXGatherFragmentsFromFileA -#endif - - -HRESULT WINAPI - D3DXGatherFragmentsFromResourceA( - HMODULE hSrcModule, - LPCSTR pSrcResource, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs); - -HRESULT WINAPI - D3DXGatherFragmentsFromResourceW( - HMODULE hSrcModule, - LPCWSTR pSrcResource, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs); - -#ifdef UNICODE -#define D3DXGatherFragmentsFromResource D3DXGatherFragmentsFromResourceW -#else -#define D3DXGatherFragmentsFromResource D3DXGatherFragmentsFromResourceA -#endif - - -HRESULT WINAPI - D3DXGatherFragments( - LPCSTR pSrcData, - UINT SrcDataLen, - CONST D3DXMACRO* pDefines, - LPD3DXINCLUDE pInclude, - DWORD Flags, - LPD3DXBUFFER* ppShader, - LPD3DXBUFFER* ppErrorMsgs); - - - -//---------------------------------------------------------------------------- -// D3DXCreateFragmentLinker: -// ------------------------- -// Creates a fragment linker with a given cache size. The interface returned -// can be used to link together shader fragments. (both HLSL & ASM fragements) -// -// Parameters: -// pDevice -// Pointer to the device on which to create the shaders -// ShaderCacheSize -// Size of the shader cache -// ppFragmentLinker -// pointer to a memory location to put the created interface pointer -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXCreateFragmentLinker( - LPDIRECT3DDEVICE9 pDevice, - UINT ShaderCacheSize, - LPD3DXFRAGMENTLINKER* ppFragmentLinker); - - - -#ifdef __cplusplus -} -#endif //__cplusplus - - -////////////////////////////////////////////////////////////////////////////// -// Shader comment block layouts ////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -//---------------------------------------------------------------------------- -// D3DXSHADER_CONSTANTTABLE: -// ------------------------- -// Shader constant information; included as an CTAB comment block inside -// shaders. All offsets are BYTE offsets from start of CONSTANTTABLE struct. -// Entries in the table are sorted by Name in ascending order. -//---------------------------------------------------------------------------- - -typedef struct _D3DXSHADER_CONSTANTTABLE -{ - DWORD Size; // sizeof(D3DXSHADER_CONSTANTTABLE) - DWORD Creator; // LPCSTR offset - DWORD Version; // shader version - DWORD Constants; // number of constants - DWORD ConstantInfo; // D3DXSHADER_CONSTANTINFO[Constants] offset - DWORD Flags; // flags shader was compiled with - DWORD Target; // LPCSTR offset - -} D3DXSHADER_CONSTANTTABLE, *LPD3DXSHADER_CONSTANTTABLE; - - -typedef struct _D3DXSHADER_CONSTANTINFO -{ - DWORD Name; // LPCSTR offset - WORD RegisterSet; // D3DXREGISTER_SET - WORD RegisterIndex; // register number - WORD RegisterCount; // number of registers - WORD Reserved; // reserved - DWORD TypeInfo; // D3DXSHADER_TYPEINFO offset - DWORD DefaultValue; // offset of default value - -} D3DXSHADER_CONSTANTINFO, *LPD3DXSHADER_CONSTANTINFO; - - -typedef struct _D3DXSHADER_TYPEINFO -{ - WORD Class; // D3DXPARAMETER_CLASS - WORD Type; // D3DXPARAMETER_TYPE - WORD Rows; // number of rows (matrices) - WORD Columns; // number of columns (vectors and matrices) - WORD Elements; // array dimension - WORD StructMembers; // number of struct members - DWORD StructMemberInfo; // D3DXSHADER_STRUCTMEMBERINFO[Members] offset - -} D3DXSHADER_TYPEINFO, *LPD3DXSHADER_TYPEINFO; - - -typedef struct _D3DXSHADER_STRUCTMEMBERINFO -{ - DWORD Name; // LPCSTR offset - DWORD TypeInfo; // D3DXSHADER_TYPEINFO offset - -} D3DXSHADER_STRUCTMEMBERINFO, *LPD3DXSHADER_STRUCTMEMBERINFO; - - - -#endif //__D3DX9SHADER_H__ - diff --git a/sdk/dx8sdk/Include/d3dx9shape.h b/sdk/dx8sdk/Include/d3dx9shape.h deleted file mode 100644 index 4c230915..00000000 --- a/sdk/dx8sdk/Include/d3dx9shape.h +++ /dev/null @@ -1,221 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx9shapes.h -// Content: D3DX simple shapes -// -/////////////////////////////////////////////////////////////////////////// - -#include "d3dx9.h" - -#ifndef __D3DX9SHAPES_H__ -#define __D3DX9SHAPES_H__ - -/////////////////////////////////////////////////////////////////////////// -// Functions: -/////////////////////////////////////////////////////////////////////////// - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - - -//------------------------------------------------------------------------- -// D3DXCreatePolygon: -// ------------------ -// Creates a mesh containing an n-sided polygon. The polygon is centered -// at the origin. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// Length Length of each side. -// Sides Number of sides the polygon has. (Must be >= 3) -// ppMesh The mesh object which will be created -// ppAdjacency Returns a buffer containing adjacency info. Can be NULL. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreatePolygon( - LPDIRECT3DDEVICE9 pDevice, - FLOAT Length, - UINT Sides, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency); - - -//------------------------------------------------------------------------- -// D3DXCreateBox: -// -------------- -// Creates a mesh containing an axis-aligned box. The box is centered at -// the origin. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// Width Width of box (along X-axis) -// Height Height of box (along Y-axis) -// Depth Depth of box (along Z-axis) -// ppMesh The mesh object which will be created -// ppAdjacency Returns a buffer containing adjacency info. Can be NULL. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateBox( - LPDIRECT3DDEVICE9 pDevice, - FLOAT Width, - FLOAT Height, - FLOAT Depth, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency); - - -//------------------------------------------------------------------------- -// D3DXCreateCylinder: -// ------------------- -// Creates a mesh containing a cylinder. The generated cylinder is -// centered at the origin, and its axis is aligned with the Z-axis. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// Radius1 Radius at -Z end (should be >= 0.0f) -// Radius2 Radius at +Z end (should be >= 0.0f) -// Length Length of cylinder (along Z-axis) -// Slices Number of slices about the main axis -// Stacks Number of stacks along the main axis -// ppMesh The mesh object which will be created -// ppAdjacency Returns a buffer containing adjacency info. Can be NULL. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateCylinder( - LPDIRECT3DDEVICE9 pDevice, - FLOAT Radius1, - FLOAT Radius2, - FLOAT Length, - UINT Slices, - UINT Stacks, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency); - - -//------------------------------------------------------------------------- -// D3DXCreateSphere: -// ----------------- -// Creates a mesh containing a sphere. The sphere is centered at the -// origin. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// Radius Radius of the sphere (should be >= 0.0f) -// Slices Number of slices about the main axis -// Stacks Number of stacks along the main axis -// ppMesh The mesh object which will be created -// ppAdjacency Returns a buffer containing adjacency info. Can be NULL. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateSphere( - LPDIRECT3DDEVICE9 pDevice, - FLOAT Radius, - UINT Slices, - UINT Stacks, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency); - - -//------------------------------------------------------------------------- -// D3DXCreateTorus: -// ---------------- -// Creates a mesh containing a torus. The generated torus is centered at -// the origin, and its axis is aligned with the Z-axis. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// InnerRadius Inner radius of the torus (should be >= 0.0f) -// OuterRadius Outer radius of the torue (should be >= 0.0f) -// Sides Number of sides in a cross-section (must be >= 3) -// Rings Number of rings making up the torus (must be >= 3) -// ppMesh The mesh object which will be created -// ppAdjacency Returns a buffer containing adjacency info. Can be NULL. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateTorus( - LPDIRECT3DDEVICE9 pDevice, - FLOAT InnerRadius, - FLOAT OuterRadius, - UINT Sides, - UINT Rings, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency); - - -//------------------------------------------------------------------------- -// D3DXCreateTeapot: -// ----------------- -// Creates a mesh containing a teapot. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// ppMesh The mesh object which will be created -// ppAdjacency Returns a buffer containing adjacency info. Can be NULL. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateTeapot( - LPDIRECT3DDEVICE9 pDevice, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency); - - -//------------------------------------------------------------------------- -// D3DXCreateText: -// --------------- -// Creates a mesh containing the specified text using the font associated -// with the device context. -// -// Parameters: -// -// pDevice The D3D device with which the mesh is going to be used. -// hDC Device context, with desired font selected -// pText Text to generate -// Deviation Maximum chordal deviation from true font outlines -// Extrusion Amount to extrude text in -Z direction -// ppMesh The mesh object which will be created -// pGlyphMetrics Address of buffer to receive glyph metric data (or NULL) -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateTextA( - LPDIRECT3DDEVICE9 pDevice, - HDC hDC, - LPCSTR pText, - FLOAT Deviation, - FLOAT Extrusion, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency, - LPGLYPHMETRICSFLOAT pGlyphMetrics); - -HRESULT WINAPI - D3DXCreateTextW( - LPDIRECT3DDEVICE9 pDevice, - HDC hDC, - LPCWSTR pText, - FLOAT Deviation, - FLOAT Extrusion, - LPD3DXMESH* ppMesh, - LPD3DXBUFFER* ppAdjacency, - LPGLYPHMETRICSFLOAT pGlyphMetrics); - -#ifdef UNICODE -#define D3DXCreateText D3DXCreateTextW -#else -#define D3DXCreateText D3DXCreateTextA -#endif - - -#ifdef __cplusplus -} -#endif //__cplusplus - -#endif //__D3DX9SHAPES_H__ - diff --git a/sdk/dx8sdk/Include/d3dx9tex.h b/sdk/dx8sdk/Include/d3dx9tex.h deleted file mode 100644 index 0d62b699..00000000 --- a/sdk/dx8sdk/Include/d3dx9tex.h +++ /dev/null @@ -1,1723 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx9tex.h -// Content: D3DX texturing APIs -// -////////////////////////////////////////////////////////////////////////////// - -#include "d3dx9.h" - -#ifndef __D3DX9TEX_H__ -#define __D3DX9TEX_H__ - - -//---------------------------------------------------------------------------- -// D3DX_FILTER flags: -// ------------------ -// -// A valid filter must contain one of these values: -// -// D3DX_FILTER_NONE -// No scaling or filtering will take place. Pixels outside the bounds -// of the source image are assumed to be transparent black. -// D3DX_FILTER_POINT -// Each destination pixel is computed by sampling the nearest pixel -// from the source image. -// D3DX_FILTER_LINEAR -// Each destination pixel is computed by linearly interpolating between -// the nearest pixels in the source image. This filter works best -// when the scale on each axis is less than 2. -// D3DX_FILTER_TRIANGLE -// Every pixel in the source image contributes equally to the -// destination image. This is the slowest of all the filters. -// D3DX_FILTER_BOX -// Each pixel is computed by averaging a 2x2(x2) box pixels from -// the source image. Only works when the dimensions of the -// destination are half those of the source. (as with mip maps) -// -// And can be OR'd with any of these optional flags: -// -// D3DX_FILTER_MIRROR_U -// Indicates that pixels off the edge of the texture on the U-axis -// should be mirrored, not wraped. -// D3DX_FILTER_MIRROR_V -// Indicates that pixels off the edge of the texture on the V-axis -// should be mirrored, not wraped. -// D3DX_FILTER_MIRROR_W -// Indicates that pixels off the edge of the texture on the W-axis -// should be mirrored, not wraped. -// D3DX_FILTER_MIRROR -// Same as specifying D3DX_FILTER_MIRROR_U | D3DX_FILTER_MIRROR_V | -// D3DX_FILTER_MIRROR_V -// D3DX_FILTER_DITHER -// Dithers the resulting image using a 4x4 order dither pattern. -// D3DX_FILTER_SRGB_IN -// Denotes that the input data is in sRGB (gamma 2.2) colorspace. -// D3DX_FILTER_SRGB_OUT -// Denotes that the output data is in sRGB (gamma 2.2) colorspace. -// D3DX_FILTER_SRGB -// Same as specifying D3DX_FILTER_SRGB_IN | D3DX_FILTER_SRGB_OUT -// -//---------------------------------------------------------------------------- - -#define D3DX_FILTER_NONE (1 << 0) -#define D3DX_FILTER_POINT (2 << 0) -#define D3DX_FILTER_LINEAR (3 << 0) -#define D3DX_FILTER_TRIANGLE (4 << 0) -#define D3DX_FILTER_BOX (5 << 0) - -#define D3DX_FILTER_MIRROR_U (1 << 16) -#define D3DX_FILTER_MIRROR_V (2 << 16) -#define D3DX_FILTER_MIRROR_W (4 << 16) -#define D3DX_FILTER_MIRROR (7 << 16) - -#define D3DX_FILTER_DITHER (1 << 19) -#define D3DX_FILTER_DITHER_DIFFUSION (2 << 19) - -#define D3DX_FILTER_SRGB_IN (1 << 21) -#define D3DX_FILTER_SRGB_OUT (2 << 21) -#define D3DX_FILTER_SRGB (3 << 21) - - -//---------------------------------------------------------------------------- -// D3DX_NORMALMAP flags: -// --------------------- -// These flags are used to control how D3DXComputeNormalMap generates normal -// maps. Any number of these flags may be OR'd together in any combination. -// -// D3DX_NORMALMAP_MIRROR_U -// Indicates that pixels off the edge of the texture on the U-axis -// should be mirrored, not wraped. -// D3DX_NORMALMAP_MIRROR_V -// Indicates that pixels off the edge of the texture on the V-axis -// should be mirrored, not wraped. -// D3DX_NORMALMAP_MIRROR -// Same as specifying D3DX_NORMALMAP_MIRROR_U | D3DX_NORMALMAP_MIRROR_V -// D3DX_NORMALMAP_INVERTSIGN -// Inverts the direction of each normal -// D3DX_NORMALMAP_COMPUTE_OCCLUSION -// Compute the per pixel Occlusion term and encodes it into the alpha. -// An Alpha of 1 means that the pixel is not obscured in anyway, and -// an alpha of 0 would mean that the pixel is completly obscured. -// -//---------------------------------------------------------------------------- - -//---------------------------------------------------------------------------- - -#define D3DX_NORMALMAP_MIRROR_U (1 << 16) -#define D3DX_NORMALMAP_MIRROR_V (2 << 16) -#define D3DX_NORMALMAP_MIRROR (3 << 16) -#define D3DX_NORMALMAP_INVERTSIGN (8 << 16) -#define D3DX_NORMALMAP_COMPUTE_OCCLUSION (16 << 16) - - - - -//---------------------------------------------------------------------------- -// D3DX_CHANNEL flags: -// ------------------- -// These flags are used by functions which operate on or more channels -// in a texture. -// -// D3DX_CHANNEL_RED -// Indicates the red channel should be used -// D3DX_CHANNEL_BLUE -// Indicates the blue channel should be used -// D3DX_CHANNEL_GREEN -// Indicates the green channel should be used -// D3DX_CHANNEL_ALPHA -// Indicates the alpha channel should be used -// D3DX_CHANNEL_LUMINANCE -// Indicates the luminaces of the red green and blue channels should be -// used. -// -//---------------------------------------------------------------------------- - -#define D3DX_CHANNEL_RED (1 << 0) -#define D3DX_CHANNEL_BLUE (1 << 1) -#define D3DX_CHANNEL_GREEN (1 << 2) -#define D3DX_CHANNEL_ALPHA (1 << 3) -#define D3DX_CHANNEL_LUMINANCE (1 << 4) - - - - -//---------------------------------------------------------------------------- -// D3DXIMAGE_FILEFORMAT: -// --------------------- -// This enum is used to describe supported image file formats. -// -//---------------------------------------------------------------------------- - -typedef enum _D3DXIMAGE_FILEFORMAT -{ - D3DXIFF_BMP = 0, - D3DXIFF_JPG = 1, - D3DXIFF_TGA = 2, - D3DXIFF_PNG = 3, - D3DXIFF_DDS = 4, - D3DXIFF_PPM = 5, - D3DXIFF_DIB = 6, - D3DXIFF_HDR = 7, //high dynamic range formats - D3DXIFF_PFM = 8, // - D3DXIFF_FORCE_DWORD = 0x7fffffff - -} D3DXIMAGE_FILEFORMAT; - - -//---------------------------------------------------------------------------- -// LPD3DXFILL2D and LPD3DXFILL3D: -// ------------------------------ -// Function types used by the texture fill functions. -// -// Parameters: -// pOut -// Pointer to a vector which the function uses to return its result. -// X,Y,Z,W will be mapped to R,G,B,A respectivly. -// pTexCoord -// Pointer to a vector containing the coordinates of the texel currently -// being evaluated. Textures and VolumeTexture texcoord components -// range from 0 to 1. CubeTexture texcoord component range from -1 to 1. -// pTexelSize -// Pointer to a vector containing the dimensions of the current texel. -// pData -// Pointer to user data. -// -//---------------------------------------------------------------------------- - -typedef VOID (WINAPI *LPD3DXFILL2D)(D3DXVECTOR4 *pOut, - CONST D3DXVECTOR2 *pTexCoord, CONST D3DXVECTOR2 *pTexelSize, LPVOID pData); - -typedef VOID (WINAPI *LPD3DXFILL3D)(D3DXVECTOR4 *pOut, - CONST D3DXVECTOR3 *pTexCoord, CONST D3DXVECTOR3 *pTexelSize, LPVOID pData); - - - -//---------------------------------------------------------------------------- -// D3DXIMAGE_INFO: -// --------------- -// This structure is used to return a rough description of what the -// the original contents of an image file looked like. -// -// Width -// Width of original image in pixels -// Height -// Height of original image in pixels -// Depth -// Depth of original image in pixels -// MipLevels -// Number of mip levels in original image -// Format -// D3D format which most closely describes the data in original image -// ResourceType -// D3DRESOURCETYPE representing the type of texture stored in the file. -// D3DRTYPE_TEXTURE, D3DRTYPE_VOLUMETEXTURE, or D3DRTYPE_CUBETEXTURE. -// ImageFileFormat -// D3DXIMAGE_FILEFORMAT representing the format of the image file. -// -//---------------------------------------------------------------------------- - -typedef struct _D3DXIMAGE_INFO -{ - UINT Width; - UINT Height; - UINT Depth; - UINT MipLevels; - D3DFORMAT Format; - D3DRESOURCETYPE ResourceType; - D3DXIMAGE_FILEFORMAT ImageFileFormat; - -} D3DXIMAGE_INFO; - - - - - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - - - -////////////////////////////////////////////////////////////////////////////// -// Image File APIs /////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// -; -//---------------------------------------------------------------------------- -// GetImageInfoFromFile/Resource: -// ------------------------------ -// Fills in a D3DXIMAGE_INFO struct with information about an image file. -// -// Parameters: -// pSrcFile -// File name of the source image. -// pSrcModule -// Module where resource is located, or NULL for module associated -// with image the os used to create the current process. -// pSrcResource -// Resource name -// pSrcData -// Pointer to file in memory. -// SrcDataSize -// Size in bytes of file in memory. -// pSrcInfo -// Pointer to a D3DXIMAGE_INFO structure to be filled in with the -// description of the data in the source image file. -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXGetImageInfoFromFileA( - LPCSTR pSrcFile, - D3DXIMAGE_INFO* pSrcInfo); - -HRESULT WINAPI - D3DXGetImageInfoFromFileW( - LPCWSTR pSrcFile, - D3DXIMAGE_INFO* pSrcInfo); - -#ifdef UNICODE -#define D3DXGetImageInfoFromFile D3DXGetImageInfoFromFileW -#else -#define D3DXGetImageInfoFromFile D3DXGetImageInfoFromFileA -#endif - - -HRESULT WINAPI - D3DXGetImageInfoFromResourceA( - HMODULE hSrcModule, - LPCSTR pSrcResource, - D3DXIMAGE_INFO* pSrcInfo); - -HRESULT WINAPI - D3DXGetImageInfoFromResourceW( - HMODULE hSrcModule, - LPCWSTR pSrcResource, - D3DXIMAGE_INFO* pSrcInfo); - -#ifdef UNICODE -#define D3DXGetImageInfoFromResource D3DXGetImageInfoFromResourceW -#else -#define D3DXGetImageInfoFromResource D3DXGetImageInfoFromResourceA -#endif - - -HRESULT WINAPI - D3DXGetImageInfoFromFileInMemory( - LPCVOID pSrcData, - UINT SrcDataSize, - D3DXIMAGE_INFO* pSrcInfo); - - - - -////////////////////////////////////////////////////////////////////////////// -// Load/Save Surface APIs //////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -//---------------------------------------------------------------------------- -// D3DXLoadSurfaceFromFile/Resource: -// --------------------------------- -// Load surface from a file or resource -// -// Parameters: -// pDestSurface -// Destination surface, which will receive the image. -// pDestPalette -// Destination palette of 256 colors, or NULL -// pDestRect -// Destination rectangle, or NULL for entire surface -// pSrcFile -// File name of the source image. -// pSrcModule -// Module where resource is located, or NULL for module associated -// with image the os used to create the current process. -// pSrcResource -// Resource name -// pSrcData -// Pointer to file in memory. -// SrcDataSize -// Size in bytes of file in memory. -// pSrcRect -// Source rectangle, or NULL for entire image -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// pSrcInfo -// Pointer to a D3DXIMAGE_INFO structure to be filled in with the -// description of the data in the source image file, or NULL. -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXLoadSurfaceFromFileA( - LPDIRECT3DSURFACE9 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - LPCSTR pSrcFile, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -HRESULT WINAPI - D3DXLoadSurfaceFromFileW( - LPDIRECT3DSURFACE9 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - LPCWSTR pSrcFile, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -#ifdef UNICODE -#define D3DXLoadSurfaceFromFile D3DXLoadSurfaceFromFileW -#else -#define D3DXLoadSurfaceFromFile D3DXLoadSurfaceFromFileA -#endif - - - -HRESULT WINAPI - D3DXLoadSurfaceFromResourceA( - LPDIRECT3DSURFACE9 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - HMODULE hSrcModule, - LPCSTR pSrcResource, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -HRESULT WINAPI - D3DXLoadSurfaceFromResourceW( - LPDIRECT3DSURFACE9 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - - -#ifdef UNICODE -#define D3DXLoadSurfaceFromResource D3DXLoadSurfaceFromResourceW -#else -#define D3DXLoadSurfaceFromResource D3DXLoadSurfaceFromResourceA -#endif - - - -HRESULT WINAPI - D3DXLoadSurfaceFromFileInMemory( - LPDIRECT3DSURFACE9 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - LPCVOID pSrcData, - UINT SrcDataSize, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - - - -//---------------------------------------------------------------------------- -// D3DXLoadSurfaceFromSurface: -// --------------------------- -// Load surface from another surface (with color conversion) -// -// Parameters: -// pDestSurface -// Destination surface, which will receive the image. -// pDestPalette -// Destination palette of 256 colors, or NULL -// pDestRect -// Destination rectangle, or NULL for entire surface -// pSrcSurface -// Source surface -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcRect -// Source rectangle, or NULL for entire surface -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXLoadSurfaceFromSurface( - LPDIRECT3DSURFACE9 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - LPDIRECT3DSURFACE9 pSrcSurface, - CONST PALETTEENTRY* pSrcPalette, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey); - - -//---------------------------------------------------------------------------- -// D3DXLoadSurfaceFromMemory: -// -------------------------- -// Load surface from memory. -// -// Parameters: -// pDestSurface -// Destination surface, which will receive the image. -// pDestPalette -// Destination palette of 256 colors, or NULL -// pDestRect -// Destination rectangle, or NULL for entire surface -// pSrcMemory -// Pointer to the top-left corner of the source image in memory -// SrcFormat -// Pixel format of the source image. -// SrcPitch -// Pitch of source image, in bytes. For DXT formats, this number -// should represent the width of one row of cells, in bytes. -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcRect -// Source rectangle. -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXLoadSurfaceFromMemory( - LPDIRECT3DSURFACE9 pDestSurface, - CONST PALETTEENTRY* pDestPalette, - CONST RECT* pDestRect, - LPCVOID pSrcMemory, - D3DFORMAT SrcFormat, - UINT SrcPitch, - CONST PALETTEENTRY* pSrcPalette, - CONST RECT* pSrcRect, - DWORD Filter, - D3DCOLOR ColorKey); - - -//---------------------------------------------------------------------------- -// D3DXSaveSurfaceToFile: -// ---------------------- -// Save a surface to a image file. -// -// Parameters: -// pDestFile -// File name of the destination file -// DestFormat -// D3DXIMAGE_FILEFORMAT specifying file format to use when saving. -// pSrcSurface -// Source surface, containing the image to be saved -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcRect -// Source rectangle, or NULL for the entire image -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXSaveSurfaceToFileA( - LPCSTR pDestFile, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DSURFACE9 pSrcSurface, - CONST PALETTEENTRY* pSrcPalette, - CONST RECT* pSrcRect); - -HRESULT WINAPI - D3DXSaveSurfaceToFileW( - LPCWSTR pDestFile, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DSURFACE9 pSrcSurface, - CONST PALETTEENTRY* pSrcPalette, - CONST RECT* pSrcRect); - -#ifdef UNICODE -#define D3DXSaveSurfaceToFile D3DXSaveSurfaceToFileW -#else -#define D3DXSaveSurfaceToFile D3DXSaveSurfaceToFileA -#endif - -//---------------------------------------------------------------------------- -// D3DXSaveSurfaceToFileInMemory: -// ---------------------- -// Save a surface to a image file. -// -// Parameters: -// ppDestBuf -// address of pointer to d3dxbuffer for returning data bits -// DestFormat -// D3DXIMAGE_FILEFORMAT specifying file format to use when saving. -// pSrcSurface -// Source surface, containing the image to be saved -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcRect -// Source rectangle, or NULL for the entire image -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXSaveSurfaceToFileInMemory( - LPD3DXBUFFER* ppDestBuf, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DSURFACE9 pSrcSurface, - CONST PALETTEENTRY* pSrcPalette, - CONST RECT* pSrcRect); - - -////////////////////////////////////////////////////////////////////////////// -// Load/Save Volume APIs ///////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -//---------------------------------------------------------------------------- -// D3DXLoadVolumeFromFile/Resource: -// -------------------------------- -// Load volume from a file or resource -// -// Parameters: -// pDestVolume -// Destination volume, which will receive the image. -// pDestPalette -// Destination palette of 256 colors, or NULL -// pDestBox -// Destination box, or NULL for entire volume -// pSrcFile -// File name of the source image. -// pSrcModule -// Module where resource is located, or NULL for module associated -// with image the os used to create the current process. -// pSrcResource -// Resource name -// pSrcData -// Pointer to file in memory. -// SrcDataSize -// Size in bytes of file in memory. -// pSrcBox -// Source box, or NULL for entire image -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// pSrcInfo -// Pointer to a D3DXIMAGE_INFO structure to be filled in with the -// description of the data in the source image file, or NULL. -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXLoadVolumeFromFileA( - LPDIRECT3DVOLUME9 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - LPCSTR pSrcFile, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -HRESULT WINAPI - D3DXLoadVolumeFromFileW( - LPDIRECT3DVOLUME9 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - LPCWSTR pSrcFile, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -#ifdef UNICODE -#define D3DXLoadVolumeFromFile D3DXLoadVolumeFromFileW -#else -#define D3DXLoadVolumeFromFile D3DXLoadVolumeFromFileA -#endif - - -HRESULT WINAPI - D3DXLoadVolumeFromResourceA( - LPDIRECT3DVOLUME9 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - HMODULE hSrcModule, - LPCSTR pSrcResource, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -HRESULT WINAPI - D3DXLoadVolumeFromResourceW( - LPDIRECT3DVOLUME9 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - -#ifdef UNICODE -#define D3DXLoadVolumeFromResource D3DXLoadVolumeFromResourceW -#else -#define D3DXLoadVolumeFromResource D3DXLoadVolumeFromResourceA -#endif - - - -HRESULT WINAPI - D3DXLoadVolumeFromFileInMemory( - LPDIRECT3DVOLUME9 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - LPCVOID pSrcData, - UINT SrcDataSize, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo); - - - -//---------------------------------------------------------------------------- -// D3DXLoadVolumeFromVolume: -// ------------------------- -// Load volume from another volume (with color conversion) -// -// Parameters: -// pDestVolume -// Destination volume, which will receive the image. -// pDestPalette -// Destination palette of 256 colors, or NULL -// pDestBox -// Destination box, or NULL for entire volume -// pSrcVolume -// Source volume -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcBox -// Source box, or NULL for entire volume -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXLoadVolumeFromVolume( - LPDIRECT3DVOLUME9 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - LPDIRECT3DVOLUME9 pSrcVolume, - CONST PALETTEENTRY* pSrcPalette, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey); - - - -//---------------------------------------------------------------------------- -// D3DXLoadVolumeFromMemory: -// ------------------------- -// Load volume from memory. -// -// Parameters: -// pDestVolume -// Destination volume, which will receive the image. -// pDestPalette -// Destination palette of 256 colors, or NULL -// pDestBox -// Destination box, or NULL for entire volume -// pSrcMemory -// Pointer to the top-left corner of the source volume in memory -// SrcFormat -// Pixel format of the source volume. -// SrcRowPitch -// Pitch of source image, in bytes. For DXT formats, this number -// should represent the size of one row of cells, in bytes. -// SrcSlicePitch -// Pitch of source image, in bytes. For DXT formats, this number -// should represent the size of one slice of cells, in bytes. -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcBox -// Source box. -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXLoadVolumeFromMemory( - LPDIRECT3DVOLUME9 pDestVolume, - CONST PALETTEENTRY* pDestPalette, - CONST D3DBOX* pDestBox, - LPCVOID pSrcMemory, - D3DFORMAT SrcFormat, - UINT SrcRowPitch, - UINT SrcSlicePitch, - CONST PALETTEENTRY* pSrcPalette, - CONST D3DBOX* pSrcBox, - DWORD Filter, - D3DCOLOR ColorKey); - - - -//---------------------------------------------------------------------------- -// D3DXSaveVolumeToFile: -// --------------------- -// Save a volume to a image file. -// -// Parameters: -// pDestFile -// File name of the destination file -// DestFormat -// D3DXIMAGE_FILEFORMAT specifying file format to use when saving. -// pSrcVolume -// Source volume, containing the image to be saved -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcBox -// Source box, or NULL for the entire volume -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXSaveVolumeToFileA( - LPCSTR pDestFile, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DVOLUME9 pSrcVolume, - CONST PALETTEENTRY* pSrcPalette, - CONST D3DBOX* pSrcBox); - -HRESULT WINAPI - D3DXSaveVolumeToFileW( - LPCWSTR pDestFile, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DVOLUME9 pSrcVolume, - CONST PALETTEENTRY* pSrcPalette, - CONST D3DBOX* pSrcBox); - -#ifdef UNICODE -#define D3DXSaveVolumeToFile D3DXSaveVolumeToFileW -#else -#define D3DXSaveVolumeToFile D3DXSaveVolumeToFileA -#endif - - -//---------------------------------------------------------------------------- -// D3DXSaveVolumeToFileInMemory: -// --------------------- -// Save a volume to a image file. -// -// Parameters: -// pDestFile -// File name of the destination file -// DestFormat -// D3DXIMAGE_FILEFORMAT specifying file format to use when saving. -// pSrcVolume -// Source volume, containing the image to be saved -// pSrcPalette -// Source palette of 256 colors, or NULL -// pSrcBox -// Source box, or NULL for the entire volume -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXSaveVolumeToFileInMemory( - LPD3DXBUFFER* ppDestBuf, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DVOLUME9 pSrcVolume, - CONST PALETTEENTRY* pSrcPalette, - CONST D3DBOX* pSrcBox); - -////////////////////////////////////////////////////////////////////////////// -// Create/Save Texture APIs ////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -//---------------------------------------------------------------------------- -// D3DXCheckTextureRequirements: -// ----------------------------- -// Checks texture creation parameters. If parameters are invalid, this -// function returns corrected parameters. -// -// Parameters: -// -// pDevice -// The D3D device to be used -// pWidth, pHeight, pDepth, pSize -// Desired size in pixels, or NULL. Returns corrected size. -// pNumMipLevels -// Number of desired mipmap levels, or NULL. Returns corrected number. -// Usage -// Texture usage flags -// pFormat -// Desired pixel format, or NULL. Returns corrected format. -// Pool -// Memory pool to be used to create texture -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXCheckTextureRequirements( - LPDIRECT3DDEVICE9 pDevice, - UINT* pWidth, - UINT* pHeight, - UINT* pNumMipLevels, - DWORD Usage, - D3DFORMAT* pFormat, - D3DPOOL Pool); - -HRESULT WINAPI - D3DXCheckCubeTextureRequirements( - LPDIRECT3DDEVICE9 pDevice, - UINT* pSize, - UINT* pNumMipLevels, - DWORD Usage, - D3DFORMAT* pFormat, - D3DPOOL Pool); - -HRESULT WINAPI - D3DXCheckVolumeTextureRequirements( - LPDIRECT3DDEVICE9 pDevice, - UINT* pWidth, - UINT* pHeight, - UINT* pDepth, - UINT* pNumMipLevels, - DWORD Usage, - D3DFORMAT* pFormat, - D3DPOOL Pool); - - -//---------------------------------------------------------------------------- -// D3DXCreateTexture: -// ------------------ -// Create an empty texture -// -// Parameters: -// -// pDevice -// The D3D device with which the texture is going to be used. -// Width, Height, Depth, Size -// size in pixels. these must be non-zero -// MipLevels -// number of mip levels desired. if zero or D3DX_DEFAULT, a complete -// mipmap chain will be created. -// Usage -// Texture usage flags -// Format -// Pixel format. -// Pool -// Memory pool to be used to create texture -// ppTexture, ppCubeTexture, ppVolumeTexture -// The texture object that will be created -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXCreateTexture( - LPDIRECT3DDEVICE9 pDevice, - UINT Width, - UINT Height, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - LPDIRECT3DTEXTURE9* ppTexture); - -HRESULT WINAPI - D3DXCreateCubeTexture( - LPDIRECT3DDEVICE9 pDevice, - UINT Size, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - LPDIRECT3DCUBETEXTURE9* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTexture( - LPDIRECT3DDEVICE9 pDevice, - UINT Width, - UINT Height, - UINT Depth, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - LPDIRECT3DVOLUMETEXTURE9* ppVolumeTexture); - - - -//---------------------------------------------------------------------------- -// D3DXCreateTextureFromFile/Resource: -// ----------------------------------- -// Create a texture object from a file or resource. -// -// Parameters: -// -// pDevice -// The D3D device with which the texture is going to be used. -// pSrcFile -// File name. -// hSrcModule -// Module handle. if NULL, current module will be used. -// pSrcResource -// Resource name in module -// pvSrcData -// Pointer to file in memory. -// SrcDataSize -// Size in bytes of file in memory. -// Width, Height, Depth, Size -// Size in pixels. If zero or D3DX_DEFAULT, the size will be taken from -// the file and rounded up to a power of two. If D3DX_DEFAULT_NONPOW2, -// and the device supports NONPOW2 textures, the size will not be rounded. -// If D3DX_FROM_FILE, the size will be taken exactly as it is in the file, -// and the call will fail if this violates device capabilities. -// MipLevels -// Number of mip levels. If zero or D3DX_DEFAULT, a complete mipmap -// chain will be created. If D3DX_FROM_FILE, the size will be taken -// exactly as it is in the file, and the call will fail if this violates -// device capabilities. -// Usage -// Texture usage flags -// Format -// Desired pixel format. If D3DFMT_UNKNOWN, the format will be -// taken from the file. If D3DFMT_FROM_FILE, the format will be taken -// exactly as it is in the file, and the call will fail if the device does -// not support the given format. -// Pool -// Memory pool to be used to create texture -// Filter -// D3DX_FILTER flags controlling how the image is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE. -// MipFilter -// D3DX_FILTER flags controlling how each miplevel is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_BOX, -// ColorKey -// Color to replace with transparent black, or 0 to disable colorkey. -// This is always a 32-bit ARGB color, independent of the source image -// format. Alpha is significant, and should usually be set to FF for -// opaque colorkeys. (ex. Opaque black == 0xff000000) -// pSrcInfo -// Pointer to a D3DXIMAGE_INFO structure to be filled in with the -// description of the data in the source image file, or NULL. -// pPalette -// 256 color palette to be filled in, or NULL -// ppTexture, ppCubeTexture, ppVolumeTexture -// The texture object that will be created -// -//---------------------------------------------------------------------------- - - -// FromFile - -HRESULT WINAPI - D3DXCreateTextureFromFileA( - LPDIRECT3DDEVICE9 pDevice, - LPCSTR pSrcFile, - LPDIRECT3DTEXTURE9* ppTexture); - -HRESULT WINAPI - D3DXCreateTextureFromFileW( - LPDIRECT3DDEVICE9 pDevice, - LPCWSTR pSrcFile, - LPDIRECT3DTEXTURE9* ppTexture); - -#ifdef UNICODE -#define D3DXCreateTextureFromFile D3DXCreateTextureFromFileW -#else -#define D3DXCreateTextureFromFile D3DXCreateTextureFromFileA -#endif - - -HRESULT WINAPI - D3DXCreateCubeTextureFromFileA( - LPDIRECT3DDEVICE9 pDevice, - LPCSTR pSrcFile, - LPDIRECT3DCUBETEXTURE9* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateCubeTextureFromFileW( - LPDIRECT3DDEVICE9 pDevice, - LPCWSTR pSrcFile, - LPDIRECT3DCUBETEXTURE9* ppCubeTexture); - -#ifdef UNICODE -#define D3DXCreateCubeTextureFromFile D3DXCreateCubeTextureFromFileW -#else -#define D3DXCreateCubeTextureFromFile D3DXCreateCubeTextureFromFileA -#endif - - -HRESULT WINAPI - D3DXCreateVolumeTextureFromFileA( - LPDIRECT3DDEVICE9 pDevice, - LPCSTR pSrcFile, - LPDIRECT3DVOLUMETEXTURE9* ppVolumeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTextureFromFileW( - LPDIRECT3DDEVICE9 pDevice, - LPCWSTR pSrcFile, - LPDIRECT3DVOLUMETEXTURE9* ppVolumeTexture); - -#ifdef UNICODE -#define D3DXCreateVolumeTextureFromFile D3DXCreateVolumeTextureFromFileW -#else -#define D3DXCreateVolumeTextureFromFile D3DXCreateVolumeTextureFromFileA -#endif - - -// FromResource - -HRESULT WINAPI - D3DXCreateTextureFromResourceA( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - LPDIRECT3DTEXTURE9* ppTexture); - -HRESULT WINAPI - D3DXCreateTextureFromResourceW( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - LPDIRECT3DTEXTURE9* ppTexture); - -#ifdef UNICODE -#define D3DXCreateTextureFromResource D3DXCreateTextureFromResourceW -#else -#define D3DXCreateTextureFromResource D3DXCreateTextureFromResourceA -#endif - - -HRESULT WINAPI - D3DXCreateCubeTextureFromResourceA( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - LPDIRECT3DCUBETEXTURE9* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateCubeTextureFromResourceW( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - LPDIRECT3DCUBETEXTURE9* ppCubeTexture); - -#ifdef UNICODE -#define D3DXCreateCubeTextureFromResource D3DXCreateCubeTextureFromResourceW -#else -#define D3DXCreateCubeTextureFromResource D3DXCreateCubeTextureFromResourceA -#endif - - -HRESULT WINAPI - D3DXCreateVolumeTextureFromResourceA( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - LPDIRECT3DVOLUMETEXTURE9* ppVolumeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTextureFromResourceW( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - LPDIRECT3DVOLUMETEXTURE9* ppVolumeTexture); - -#ifdef UNICODE -#define D3DXCreateVolumeTextureFromResource D3DXCreateVolumeTextureFromResourceW -#else -#define D3DXCreateVolumeTextureFromResource D3DXCreateVolumeTextureFromResourceA -#endif - - -// FromFileEx - -HRESULT WINAPI - D3DXCreateTextureFromFileExA( - LPDIRECT3DDEVICE9 pDevice, - LPCSTR pSrcFile, - UINT Width, - UINT Height, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DTEXTURE9* ppTexture); - -HRESULT WINAPI - D3DXCreateTextureFromFileExW( - LPDIRECT3DDEVICE9 pDevice, - LPCWSTR pSrcFile, - UINT Width, - UINT Height, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DTEXTURE9* ppTexture); - -#ifdef UNICODE -#define D3DXCreateTextureFromFileEx D3DXCreateTextureFromFileExW -#else -#define D3DXCreateTextureFromFileEx D3DXCreateTextureFromFileExA -#endif - - -HRESULT WINAPI - D3DXCreateCubeTextureFromFileExA( - LPDIRECT3DDEVICE9 pDevice, - LPCSTR pSrcFile, - UINT Size, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DCUBETEXTURE9* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateCubeTextureFromFileExW( - LPDIRECT3DDEVICE9 pDevice, - LPCWSTR pSrcFile, - UINT Size, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DCUBETEXTURE9* ppCubeTexture); - -#ifdef UNICODE -#define D3DXCreateCubeTextureFromFileEx D3DXCreateCubeTextureFromFileExW -#else -#define D3DXCreateCubeTextureFromFileEx D3DXCreateCubeTextureFromFileExA -#endif - - -HRESULT WINAPI - D3DXCreateVolumeTextureFromFileExA( - LPDIRECT3DDEVICE9 pDevice, - LPCSTR pSrcFile, - UINT Width, - UINT Height, - UINT Depth, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DVOLUMETEXTURE9* ppVolumeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTextureFromFileExW( - LPDIRECT3DDEVICE9 pDevice, - LPCWSTR pSrcFile, - UINT Width, - UINT Height, - UINT Depth, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DVOLUMETEXTURE9* ppVolumeTexture); - -#ifdef UNICODE -#define D3DXCreateVolumeTextureFromFileEx D3DXCreateVolumeTextureFromFileExW -#else -#define D3DXCreateVolumeTextureFromFileEx D3DXCreateVolumeTextureFromFileExA -#endif - - -// FromResourceEx - -HRESULT WINAPI - D3DXCreateTextureFromResourceExA( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - UINT Width, - UINT Height, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DTEXTURE9* ppTexture); - -HRESULT WINAPI - D3DXCreateTextureFromResourceExW( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - UINT Width, - UINT Height, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DTEXTURE9* ppTexture); - -#ifdef UNICODE -#define D3DXCreateTextureFromResourceEx D3DXCreateTextureFromResourceExW -#else -#define D3DXCreateTextureFromResourceEx D3DXCreateTextureFromResourceExA -#endif - - -HRESULT WINAPI - D3DXCreateCubeTextureFromResourceExA( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - UINT Size, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DCUBETEXTURE9* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateCubeTextureFromResourceExW( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - UINT Size, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DCUBETEXTURE9* ppCubeTexture); - -#ifdef UNICODE -#define D3DXCreateCubeTextureFromResourceEx D3DXCreateCubeTextureFromResourceExW -#else -#define D3DXCreateCubeTextureFromResourceEx D3DXCreateCubeTextureFromResourceExA -#endif - - -HRESULT WINAPI - D3DXCreateVolumeTextureFromResourceExA( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCSTR pSrcResource, - UINT Width, - UINT Height, - UINT Depth, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DVOLUMETEXTURE9* ppVolumeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTextureFromResourceExW( - LPDIRECT3DDEVICE9 pDevice, - HMODULE hSrcModule, - LPCWSTR pSrcResource, - UINT Width, - UINT Height, - UINT Depth, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DVOLUMETEXTURE9* ppVolumeTexture); - -#ifdef UNICODE -#define D3DXCreateVolumeTextureFromResourceEx D3DXCreateVolumeTextureFromResourceExW -#else -#define D3DXCreateVolumeTextureFromResourceEx D3DXCreateVolumeTextureFromResourceExA -#endif - - -// FromFileInMemory - -HRESULT WINAPI - D3DXCreateTextureFromFileInMemory( - LPDIRECT3DDEVICE9 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - LPDIRECT3DTEXTURE9* ppTexture); - -HRESULT WINAPI - D3DXCreateCubeTextureFromFileInMemory( - LPDIRECT3DDEVICE9 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - LPDIRECT3DCUBETEXTURE9* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTextureFromFileInMemory( - LPDIRECT3DDEVICE9 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - LPDIRECT3DVOLUMETEXTURE9* ppVolumeTexture); - - -// FromFileInMemoryEx - -HRESULT WINAPI - D3DXCreateTextureFromFileInMemoryEx( - LPDIRECT3DDEVICE9 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - UINT Width, - UINT Height, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DTEXTURE9* ppTexture); - -HRESULT WINAPI - D3DXCreateCubeTextureFromFileInMemoryEx( - LPDIRECT3DDEVICE9 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - UINT Size, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DCUBETEXTURE9* ppCubeTexture); - -HRESULT WINAPI - D3DXCreateVolumeTextureFromFileInMemoryEx( - LPDIRECT3DDEVICE9 pDevice, - LPCVOID pSrcData, - UINT SrcDataSize, - UINT Width, - UINT Height, - UINT Depth, - UINT MipLevels, - DWORD Usage, - D3DFORMAT Format, - D3DPOOL Pool, - DWORD Filter, - DWORD MipFilter, - D3DCOLOR ColorKey, - D3DXIMAGE_INFO* pSrcInfo, - PALETTEENTRY* pPalette, - LPDIRECT3DVOLUMETEXTURE9* ppVolumeTexture); - - - -//---------------------------------------------------------------------------- -// D3DXSaveTextureToFile: -// ---------------------- -// Save a texture to a file. -// -// Parameters: -// pDestFile -// File name of the destination file -// DestFormat -// D3DXIMAGE_FILEFORMAT specifying file format to use when saving. -// pSrcTexture -// Source texture, containing the image to be saved -// pSrcPalette -// Source palette of 256 colors, or NULL -// -//---------------------------------------------------------------------------- - - -HRESULT WINAPI - D3DXSaveTextureToFileA( - LPCSTR pDestFile, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DBASETEXTURE9 pSrcTexture, - CONST PALETTEENTRY* pSrcPalette); - -HRESULT WINAPI - D3DXSaveTextureToFileW( - LPCWSTR pDestFile, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DBASETEXTURE9 pSrcTexture, - CONST PALETTEENTRY* pSrcPalette); - -#ifdef UNICODE -#define D3DXSaveTextureToFile D3DXSaveTextureToFileW -#else -#define D3DXSaveTextureToFile D3DXSaveTextureToFileA -#endif - - -//---------------------------------------------------------------------------- -// D3DXSaveTextureToFileInMemory: -// ---------------------- -// Save a texture to a file. -// -// Parameters: -// ppDestBuf -// address of a d3dxbuffer pointer to return the image data -// DestFormat -// D3DXIMAGE_FILEFORMAT specifying file format to use when saving. -// pSrcTexture -// Source texture, containing the image to be saved -// pSrcPalette -// Source palette of 256 colors, or NULL -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXSaveTextureToFileInMemory( - LPD3DXBUFFER* ppDestBuf, - D3DXIMAGE_FILEFORMAT DestFormat, - LPDIRECT3DBASETEXTURE9 pSrcTexture, - CONST PALETTEENTRY* pSrcPalette); - - - - -////////////////////////////////////////////////////////////////////////////// -// Misc Texture APIs ///////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -//---------------------------------------------------------------------------- -// D3DXFilterTexture: -// ------------------ -// Filters mipmaps levels of a texture. -// -// Parameters: -// pBaseTexture -// The texture object to be filtered -// pPalette -// 256 color palette to be used, or NULL for non-palettized formats -// SrcLevel -// The level whose image is used to generate the subsequent levels. -// Filter -// D3DX_FILTER flags controlling how each miplevel is filtered. -// Or D3DX_DEFAULT for D3DX_FILTER_BOX, -// -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXFilterTexture( - LPDIRECT3DBASETEXTURE9 pBaseTexture, - CONST PALETTEENTRY* pPalette, - UINT SrcLevel, - DWORD Filter); - -#define D3DXFilterCubeTexture D3DXFilterTexture -#define D3DXFilterVolumeTexture D3DXFilterTexture - - - -//---------------------------------------------------------------------------- -// D3DXFillTexture: -// ---------------- -// Uses a user provided function to fill each texel of each mip level of a -// given texture. -// -// Paramters: -// pTexture, pCubeTexture, pVolumeTexture -// Pointer to the texture to be filled. -// pFunction -// Pointer to user provided evalutor function which will be used to -// compute the value of each texel. -// pData -// Pointer to an arbitrary block of user defined data. This pointer -// will be passed to the function provided in pFunction -//----------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXFillTexture( - LPDIRECT3DTEXTURE9 pTexture, - LPD3DXFILL2D pFunction, - LPVOID pData); - -HRESULT WINAPI - D3DXFillCubeTexture( - LPDIRECT3DCUBETEXTURE9 pCubeTexture, - LPD3DXFILL3D pFunction, - LPVOID pData); - -HRESULT WINAPI - D3DXFillVolumeTexture( - LPDIRECT3DVOLUMETEXTURE9 pVolumeTexture, - LPD3DXFILL3D pFunction, - LPVOID pData); - -//--------------------------------------------------------------------------- -// D3DXFillTextureTX: -// ------------------ -// Uses a TX Shader target to function to fill each texel of each mip level -// of a given texture. The TX Shader target should be a compiled function -// taking 2 paramters and returning a float4 color. -// -// Paramters: -// pTexture, pCubeTexture, pVolumeTexture -// Pointer to the texture to be filled. -// pTextureShader -// Pointer to the texture shader to be used to fill in the texture -//---------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXFillTextureTX( - LPDIRECT3DTEXTURE9 pTexture, - LPD3DXTEXTURESHADER pTextureShader); - - -HRESULT WINAPI - D3DXFillCubeTextureTX( - LPDIRECT3DCUBETEXTURE9 pCubeTexture, - LPD3DXTEXTURESHADER pTextureShader); - - -HRESULT WINAPI - D3DXFillVolumeTextureTX( - LPDIRECT3DVOLUMETEXTURE9 pVolumeTexture, - LPD3DXTEXTURESHADER pTextureShader); - - - -//---------------------------------------------------------------------------- -// D3DXComputeNormalMap: -// --------------------- -// Converts a height map into a normal map. The (x,y,z) components of each -// normal are mapped to the (r,g,b) channels of the output texture. -// -// Parameters -// pTexture -// Pointer to the destination texture -// pSrcTexture -// Pointer to the source heightmap texture -// pSrcPalette -// Source palette of 256 colors, or NULL -// Flags -// D3DX_NORMALMAP flags -// Channel -// D3DX_CHANNEL specifying source of height information -// Amplitude -// The constant value which the height information is multiplied by. -//--------------------------------------------------------------------------- - -HRESULT WINAPI - D3DXComputeNormalMap( - LPDIRECT3DTEXTURE9 pTexture, - LPDIRECT3DTEXTURE9 pSrcTexture, - CONST PALETTEENTRY* pSrcPalette, - DWORD Flags, - DWORD Channel, - FLOAT Amplitude); - - - - -#ifdef __cplusplus -} -#endif //__cplusplus - -#endif //__D3DX9TEX_H__ - diff --git a/sdk/dx8sdk/Include/d3dx9xof.h b/sdk/dx8sdk/Include/d3dx9xof.h deleted file mode 100644 index c513f0fc..00000000 --- a/sdk/dx8sdk/Include/d3dx9xof.h +++ /dev/null @@ -1,299 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dx9xof.h -// Content: D3DX .X File types and functions -// -/////////////////////////////////////////////////////////////////////////// - -#include "d3dx9.h" - -#if !defined( __D3DX9XOF_H__ ) -#define __D3DX9XOF_H__ - -#if defined( __cplusplus ) -extern "C" { -#endif // defined( __cplusplus ) - -//---------------------------------------------------------------------------- -// D3DXF_FILEFORMAT -// This flag is used to specify what file type to use when saving to disk. -// _BINARY, and _TEXT are mutually exclusive, while -// _COMPRESSED is an optional setting that works with all file types. -//---------------------------------------------------------------------------- -typedef DWORD D3DXF_FILEFORMAT; - -#define D3DXF_FILEFORMAT_BINARY 0 -#define D3DXF_FILEFORMAT_TEXT 1 -#define D3DXF_FILEFORMAT_COMPRESSED 2 - -//---------------------------------------------------------------------------- -// D3DXF_FILESAVEOPTIONS -// This flag is used to specify where to save the file to. Each flag is -// mutually exclusive, indicates the data location of the file, and also -// chooses which additional data will specify the location. -// _TOFILE is paired with a filename (LPCSTR) -// _TOWFILE is paired with a filename (LPWSTR) -//---------------------------------------------------------------------------- -typedef DWORD D3DXF_FILESAVEOPTIONS; - -#define D3DXF_FILESAVE_TOFILE 0x00L -#define D3DXF_FILESAVE_TOWFILE 0x01L - -//---------------------------------------------------------------------------- -// D3DXF_FILELOADOPTIONS -// This flag is used to specify where to load the file from. Each flag is -// mutually exclusive, indicates the data location of the file, and also -// chooses which additional data will specify the location. -// _FROMFILE is paired with a filename (LPCSTR) -// _FROMWFILE is paired with a filename (LPWSTR) -// _FROMRESOURCE is paired with a (D3DXF_FILELOADRESOUCE*) description. -// _FROMMEMORY is paired with a (D3DXF_FILELOADMEMORY*) description. -//---------------------------------------------------------------------------- -typedef DWORD D3DXF_FILELOADOPTIONS; - -#define D3DXF_FILELOAD_FROMFILE 0x00L -#define D3DXF_FILELOAD_FROMWFILE 0x01L -#define D3DXF_FILELOAD_FROMRESOURCE 0x02L -#define D3DXF_FILELOAD_FROMMEMORY 0x03L - -//---------------------------------------------------------------------------- -// D3DXF_FILELOADRESOURCE: -//---------------------------------------------------------------------------- - -typedef struct _D3DXF_FILELOADRESOURCE -{ - HMODULE hModule; // Desc - LPCSTR lpName; // Desc - LPCSTR lpType; // Desc -} D3DXF_FILELOADRESOURCE; - -//---------------------------------------------------------------------------- -// D3DXF_FILELOADMEMORY: -//---------------------------------------------------------------------------- - -typedef struct _D3DXF_FILELOADMEMORY -{ - LPCVOID lpMemory; // Desc - SIZE_T dSize; // Desc -} D3DXF_FILELOADMEMORY; - -#if defined( _WIN32 ) && !defined( _NO_COM ) - -// {cef08cf9-7b4f-4429-9624-2a690a933201} -DEFINE_GUID( IID_ID3DXFile, -0xcef08cf9, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01 ); - -// {cef08cfa-7b4f-4429-9624-2a690a933201} -DEFINE_GUID( IID_ID3DXFileSaveObject, -0xcef08cfa, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01 ); - -// {cef08cfb-7b4f-4429-9624-2a690a933201} -DEFINE_GUID( IID_ID3DXFileSaveData, -0xcef08cfb, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01 ); - -// {cef08cfc-7b4f-4429-9624-2a690a933201} -DEFINE_GUID( IID_ID3DXFileEnumObject, -0xcef08cfc, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01 ); - -// {cef08cfd-7b4f-4429-9624-2a690a933201} -DEFINE_GUID( IID_ID3DXFileData, -0xcef08cfd, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01 ); - -#endif // defined( _WIN32 ) && !defined( _NO_COM ) - -#if defined( __cplusplus ) -#if !defined( DECLSPEC_UUID ) -#if _MSC_VER >= 1100 -#define DECLSPEC_UUID( x ) __declspec( uuid( x ) ) -#else // !( _MSC_VER >= 1100 ) -#define DECLSPEC_UUID( x ) -#endif // !( _MSC_VER >= 1100 ) -#endif // !defined( DECLSPEC_UUID ) - -interface DECLSPEC_UUID( "cef08cf9-7b4f-4429-9624-2a690a933201" ) - ID3DXFile; -interface DECLSPEC_UUID( "cef08cfa-7b4f-4429-9624-2a690a933201" ) - ID3DXFileSaveObject; -interface DECLSPEC_UUID( "cef08cfb-7b4f-4429-9624-2a690a933201" ) - ID3DXFileSaveData; -interface DECLSPEC_UUID( "cef08cfc-7b4f-4429-9624-2a690a933201" ) - ID3DXFileEnumObject; -interface DECLSPEC_UUID( "cef08cfd-7b4f-4429-9624-2a690a933201" ) - ID3DXFileData; - -#if defined( _COM_SMARTPTR_TYPEDEF ) -_COM_SMARTPTR_TYPEDEF( ID3DXFile, - __uuidof( ID3DXFile ) ); -_COM_SMARTPTR_TYPEDEF( ID3DXFileSaveObject, - __uuidof( ID3DXFileSaveObject ) ); -_COM_SMARTPTR_TYPEDEF( ID3DXFileSaveData, - __uuidof( ID3DXFileSaveData ) ); -_COM_SMARTPTR_TYPEDEF( ID3DXFileEnumObject, - __uuidof( ID3DXFileEnumObject ) ); -_COM_SMARTPTR_TYPEDEF( ID3DXFileData, - __uuidof( ID3DXFileData ) ); -#endif // defined( _COM_SMARTPTR_TYPEDEF ) -#endif // defined( __cplusplus ) - -typedef interface ID3DXFile ID3DXFile; -typedef interface ID3DXFileSaveObject ID3DXFileSaveObject; -typedef interface ID3DXFileSaveData ID3DXFileSaveData; -typedef interface ID3DXFileEnumObject ID3DXFileEnumObject; -typedef interface ID3DXFileData ID3DXFileData; - -////////////////////////////////////////////////////////////////////////////// -// ID3DXFile ///////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -#undef INTERFACE -#define INTERFACE ID3DXFile - -DECLARE_INTERFACE_( ID3DXFile, IUnknown ) -{ - STDMETHOD( QueryInterface )( THIS_ REFIID, LPVOID* ) PURE; - STDMETHOD_( ULONG, AddRef )( THIS ) PURE; - STDMETHOD_( ULONG, Release )( THIS ) PURE; - - STDMETHOD( CreateEnumObject )( THIS_ LPCVOID, D3DXF_FILELOADOPTIONS, - ID3DXFileEnumObject** ) PURE; - STDMETHOD( CreateSaveObject )( THIS_ LPCVOID, D3DXF_FILESAVEOPTIONS, - D3DXF_FILEFORMAT, ID3DXFileSaveObject** ) PURE; - STDMETHOD( RegisterTemplates )( THIS_ LPCVOID, SIZE_T ) PURE; - STDMETHOD( RegisterEnumTemplates )( THIS_ ID3DXFileEnumObject* ) PURE; -}; - -////////////////////////////////////////////////////////////////////////////// -// ID3DXFileSaveObject /////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -#undef INTERFACE -#define INTERFACE ID3DXFileSaveObject - -DECLARE_INTERFACE_( ID3DXFileSaveObject, IUnknown ) -{ - STDMETHOD( QueryInterface )( THIS_ REFIID, LPVOID* ) PURE; - STDMETHOD_( ULONG, AddRef )( THIS ) PURE; - STDMETHOD_( ULONG, Release )( THIS ) PURE; - - STDMETHOD( GetFile )( THIS_ ID3DXFile** ) PURE; - STDMETHOD( AddDataObject )( THIS_ REFGUID, LPCSTR, CONST GUID*, - SIZE_T, LPCVOID, ID3DXFileSaveData** ) PURE; - STDMETHOD( Save )( THIS ) PURE; -}; - -////////////////////////////////////////////////////////////////////////////// -// ID3DXFileSaveData ///////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -#undef INTERFACE -#define INTERFACE ID3DXFileSaveData - -DECLARE_INTERFACE_( ID3DXFileSaveData, IUnknown ) -{ - STDMETHOD( QueryInterface )( THIS_ REFIID, LPVOID* ) PURE; - STDMETHOD_( ULONG, AddRef )( THIS ) PURE; - STDMETHOD_( ULONG, Release )( THIS ) PURE; - - STDMETHOD( GetSave )( THIS_ ID3DXFileSaveObject** ) PURE; - STDMETHOD( GetName )( THIS_ LPSTR, SIZE_T* ) PURE; - STDMETHOD( GetId )( THIS_ LPGUID ) PURE; - STDMETHOD( GetType )( THIS_ GUID* ) PURE; - STDMETHOD( AddDataObject )( THIS_ REFGUID, LPCSTR, CONST GUID*, - SIZE_T, LPCVOID, ID3DXFileSaveData** ) PURE; - STDMETHOD( AddDataReference )( THIS_ LPCSTR, CONST GUID* ) PURE; -}; - -////////////////////////////////////////////////////////////////////////////// -// ID3DXFileEnumObject /////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -#undef INTERFACE -#define INTERFACE ID3DXFileEnumObject - -DECLARE_INTERFACE_( ID3DXFileEnumObject, IUnknown ) -{ - STDMETHOD( QueryInterface )( THIS_ REFIID, LPVOID* ) PURE; - STDMETHOD_( ULONG, AddRef )( THIS ) PURE; - STDMETHOD_( ULONG, Release )( THIS ) PURE; - - STDMETHOD( GetFile )( THIS_ ID3DXFile** ) PURE; - STDMETHOD( GetChildren )( THIS_ SIZE_T* ) PURE; - STDMETHOD( GetChild )( THIS_ SIZE_T, ID3DXFileData** ) PURE; - STDMETHOD( GetDataObjectById )( THIS_ REFGUID, ID3DXFileData** ) PURE; - STDMETHOD( GetDataObjectByName )( THIS_ LPCSTR, ID3DXFileData** ) PURE; -}; - -////////////////////////////////////////////////////////////////////////////// -// ID3DXFileData ///////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// - -#undef INTERFACE -#define INTERFACE ID3DXFileData - -DECLARE_INTERFACE_( ID3DXFileData, IUnknown ) -{ - STDMETHOD( QueryInterface )( THIS_ REFIID, LPVOID* ) PURE; - STDMETHOD_( ULONG, AddRef )( THIS ) PURE; - STDMETHOD_( ULONG, Release )( THIS ) PURE; - - STDMETHOD( GetEnum )( THIS_ ID3DXFileEnumObject** ) PURE; - STDMETHOD( GetName )( THIS_ LPSTR, SIZE_T* ) PURE; - STDMETHOD( GetId )( THIS_ LPGUID ) PURE; - STDMETHOD( Lock )( THIS_ SIZE_T*, LPCVOID* ) PURE; - STDMETHOD( Unlock )( THIS ) PURE; - STDMETHOD( GetType )( THIS_ GUID* ) PURE; - STDMETHOD_( BOOL, IsReference )( THIS ) PURE; - STDMETHOD( GetChildren )( THIS_ SIZE_T* ) PURE; - STDMETHOD( GetChild )( THIS_ SIZE_T, ID3DXFileData** ) PURE; -}; - -STDAPI D3DXFileCreate( ID3DXFile** lplpDirectXFile ); - -/* - * DirectX File errors. - */ - -#define _FACD3DXF 0x876 - -#define D3DXFERR_BADOBJECT MAKE_HRESULT( 1, _FACD3DXF, 900 ) -#define D3DXFERR_BADVALUE MAKE_HRESULT( 1, _FACD3DXF, 901 ) -#define D3DXFERR_BADTYPE MAKE_HRESULT( 1, _FACD3DXF, 902 ) -#define D3DXFERR_NOTFOUND MAKE_HRESULT( 1, _FACD3DXF, 903 ) -#define D3DXFERR_NOTDONEYET MAKE_HRESULT( 1, _FACD3DXF, 904 ) -#define D3DXFERR_FILENOTFOUND MAKE_HRESULT( 1, _FACD3DXF, 905 ) -#define D3DXFERR_RESOURCENOTFOUND MAKE_HRESULT( 1, _FACD3DXF, 906 ) -#define D3DXFERR_BADRESOURCE MAKE_HRESULT( 1, _FACD3DXF, 907 ) -#define D3DXFERR_BADFILETYPE MAKE_HRESULT( 1, _FACD3DXF, 908 ) -#define D3DXFERR_BADFILEVERSION MAKE_HRESULT( 1, _FACD3DXF, 909 ) -#define D3DXFERR_BADFILEFLOATSIZE MAKE_HRESULT( 1, _FACD3DXF, 910 ) -#define D3DXFERR_BADFILE MAKE_HRESULT( 1, _FACD3DXF, 911 ) -#define D3DXFERR_PARSEERROR MAKE_HRESULT( 1, _FACD3DXF, 912 ) -#define D3DXFERR_BADARRAYSIZE MAKE_HRESULT( 1, _FACD3DXF, 913 ) -#define D3DXFERR_BADDATAREFERENCE MAKE_HRESULT( 1, _FACD3DXF, 914 ) -#define D3DXFERR_NOMOREOBJECTS MAKE_HRESULT( 1, _FACD3DXF, 915 ) -#define D3DXFERR_NOMOREDATA MAKE_HRESULT( 1, _FACD3DXF, 916 ) -#define D3DXFERR_BADCACHEFILE MAKE_HRESULT( 1, _FACD3DXF, 917 ) - -/* - * DirectX File object types. - */ - -#ifndef WIN_TYPES -#define WIN_TYPES(itype, ptype) typedef interface itype *LP##ptype, **LPLP##ptype -#endif - -WIN_TYPES(ID3DXFile, D3DXFILE); -WIN_TYPES(ID3DXFileEnumObject, D3DXFILEENUMOBJECT); -WIN_TYPES(ID3DXFileSaveObject, D3DXFILESAVEOBJECT); -WIN_TYPES(ID3DXFileData, D3DXFILEDATA); -WIN_TYPES(ID3DXFileSaveData, D3DXFILESAVEDATA); - -#if defined( __cplusplus ) -} // extern "C" -#endif // defined( __cplusplus ) - -#endif // !defined( __D3DX9XOF_H__ ) - - diff --git a/sdk/dx8sdk/Include/d3dxcore.h b/sdk/dx8sdk/Include/d3dxcore.h deleted file mode 100644 index da1e9893..00000000 --- a/sdk/dx8sdk/Include/d3dxcore.h +++ /dev/null @@ -1,1027 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dxcore.h -// Content: D3DX core types and functions -// -/////////////////////////////////////////////////////////////////////////// - -#ifndef __D3DXCORE_H__ -#define __D3DXCORE_H__ - -#include -#include -#include "d3dxerr.h" - - -typedef struct ID3DXContext *LPD3DXCONTEXT; - -// {9B74ED7A-BBEF-11d2-9F8E-0000F8080835} -DEFINE_GUID(IID_ID3DXContext, - 0x9b74ed7a, 0xbbef, 0x11d2, 0x9f, 0x8e, 0x0, 0x0, 0xf8, 0x8, 0x8, 0x35); - - -/////////////////////////////////////////////////////////////////////////// -// Defines and Enumerators used below: -/////////////////////////////////////////////////////////////////////////// - -//------------------------------------------------------------------------- -// D3DX_DEFAULT: -// --------- -// A predefined value that could be used for any parameter in D3DX APIs or -// member functions that is an enumerant or a handle. The D3DX -// documentation indicates wherever D3DX_DEFAULT may be used, -// and how it will be interpreted in each situation. -//------------------------------------------------------------------------- -#define D3DX_DEFAULT ULONG_MAX - -//------------------------------------------------------------------------- -// D3DX_DEFAULT_FLOAT: -// ------------------ -// Similar to D3DX_DEFAULT, but used for floating point parameters. -// The D3DX documentation indicates wherever D3DX_DEFAULT_FLOAT may be used, -// and how it will be interpreted in each situation. -//------------------------------------------------------------------------- -#define D3DX_DEFAULT_FLOAT FLT_MAX - -//------------------------------------------------------------------------- -// Hardware Acceleration Level: -// --------------------------- -// These constants represent pre-defined hardware acceleration levels, -// and may be used as a default anywhere a (DWORD) deviceIndex is required. -// Each pre-define indicates a different level of hardware acceleration. -// They are an alternative to using explicit deviceIndices retrieved by -// D3DXGetDeviceDescription(). -// -// The only case these pre-defines should be used as device indices is if -// a particular level of acceleration is required, and given more than -// one capable device on the computer, it does not matter which one -// is used. -// -// The method of selection is as follows: If one of the D3DX devices on -// the primary DDraw device supports a requested hardware acceleration -// level, it will be used. Otherwise, the first matching device discovered -// by D3DX will be used. -// -// Of course, it is possible for no match to exist for any of the -// pre-defines on a particular computer. Passing such a value into the -// D3DX apis will simply cause them to fail, reporting that no match -// is available. -// -// D3DX_HWLEVEL_NULL: Null implementation (draws nothing) -// D3DX_HWLEVEL_REFERENCE: Reference implementation (slowest) -// D3DX_HWLEVEL_2D: 2D acceleration only (RGB rasterizer used) -// D3DX_HWLEVEL_RASTER: Rasterization acceleration (likely most useful) -// D3DX_HWLEVEL_TL: Transform and lighting acceleration -// D3DX_DEFAULT: The highest level of acceleration available -// on the primary DDraw device. -//------------------------------------------------------------------------- -#define D3DX_HWLEVEL_NULL (D3DX_DEFAULT - 1) -#define D3DX_HWLEVEL_REFERENCE (D3DX_DEFAULT - 2) -#define D3DX_HWLEVEL_2D (D3DX_DEFAULT - 3) -#define D3DX_HWLEVEL_RASTER (D3DX_DEFAULT - 4) -#define D3DX_HWLEVEL_TL (D3DX_DEFAULT - 5) - -//------------------------------------------------------------------------- -// Surface Class: -// ------------- -// These are the various types of 2D-surfaces classified according to their -// usage. Note that a number of them overlap. e.g. STENCILBUFFERS and -// DEPTHBUFFERS overlap (since in DX7 implementation the stencil and depth -// bits are part of the same pixel format). -// -// Mapping to the DX7 DDPIXELFORMAT concepts: -// ----------------------------------------- -// D3DX_SC_DEPTHBUFFER: All ddpfs which have the DDPF_ZPIXELS or the -// DDPF_ZBUFFER flags set. -// D3DX_SC_STENCILBUFFER: All ddpfs which have the DDPF_STENCILBUFFER -// flag set. -// D3DX_SC_BUMPMAP: All ddpfs which have the DDPF_BUMPLUMINANCE -// or the DDPF_BUMPDUDV flags set. -// D3DX_SC_LUMINANCEMAP: All ddpfs which have the DDPF_BUMPLUMINANCE -// or the DDPF_LUMINANCE flags set. -// D3DX_SC_COLORTEXTURE: All the surfaces that have color information in -// them and can be used for texturing. -// D3DX_SC_COLORRENDERTGT: All the surfaces that contain color -// information and can be used as render targets. -//------------------------------------------------------------------------- -#define D3DX_SC_DEPTHBUFFER 0x01 -#define D3DX_SC_STENCILBUFFER 0x02 -#define D3DX_SC_COLORTEXTURE 0x04 -#define D3DX_SC_BUMPMAP 0x08 -#define D3DX_SC_LUMINANCEMAP 0x10 -#define D3DX_SC_COLORRENDERTGT 0x20 - -//------------------------------------------------------------------------- -// Surface Formats: -// --------------- -// These are the various types of surface formats that can be enumerated, -// there is no DDPIXELFORMAT structure in D3DX, the enums carry the meaning -// (like FOURCCs). -// -// All the surface classes are represented here. -// -//------------------------------------------------------------------------- -typedef enum _D3DX_SURFACEFORMAT -{ - D3DX_SF_UNKNOWN = 0, - D3DX_SF_R8G8B8 = 1, - D3DX_SF_A8R8G8B8 = 2, - D3DX_SF_X8R8G8B8 = 3, - D3DX_SF_R5G6B5 = 4, - D3DX_SF_R5G5B5 = 5, - D3DX_SF_PALETTE4 = 6, - D3DX_SF_PALETTE8 = 7, - D3DX_SF_A1R5G5B5 = 8, - D3DX_SF_X4R4G4B4 = 9, - D3DX_SF_A4R4G4B4 =10, - D3DX_SF_L8 =11, // 8 bit luminance-only - D3DX_SF_A8L8 =12, // 16 bit alpha-luminance - D3DX_SF_U8V8 =13, // 16 bit bump map format - D3DX_SF_U5V5L6 =14, // 16 bit bump map format with luminance - D3DX_SF_U8V8L8 =15, // 24 bit bump map format with luminance - D3DX_SF_UYVY =16, // UYVY format (PC98 compliance) - D3DX_SF_YUY2 =17, // YUY2 format (PC98 compliance) - D3DX_SF_DXT1 =18, // S3 texture compression technique 1 - D3DX_SF_DXT3 =19, // S3 texture compression technique 3 - D3DX_SF_DXT5 =20, // S3 texture compression technique 5 - D3DX_SF_R3G3B2 =21, // 8 bit RGB texture format - D3DX_SF_A8 =22, // 8 bit alpha-only - D3DX_SF_TEXTUREMAX =23, // Last texture format - - D3DX_SF_Z16S0 =256, - D3DX_SF_Z32S0 =257, - D3DX_SF_Z15S1 =258, - D3DX_SF_Z24S8 =259, - D3DX_SF_S1Z15 =260, - D3DX_SF_S8Z24 =261, - D3DX_SF_DEPTHMAX =262, // Last depth format - - D3DX_SF_FORCEMAX = (DWORD)(-1) -} D3DX_SURFACEFORMAT; - -//------------------------------------------------------------------------- -// Filtering types for Texture APIs -// -// ------------- -// These are the various filter types for generation of mip-maps -// -// D3DX_FILTERTYPE -// ----------------------------------------- -// D3DX_FT_POINT: Point sampling only - no filtering -// D3DX_FT_LINEAR: Bi-linear filtering -// -//------------------------------------------------------------------------- -typedef enum _D3DX_FILTERTYPE -{ - D3DX_FT_POINT = 0x01, - D3DX_FT_LINEAR = 0x02, - D3DX_FT_DEFAULT = D3DX_DEFAULT -} D3DX_FILTERTYPE; - -/////////////////////////////////////////////////////////////////////////// -// Structures used below: -/////////////////////////////////////////////////////////////////////////// - -//------------------------------------------------------------------------- -// D3DX_VIDMODEDESC: Display mode description. -// ---------------- -// width: Screen Width -// height: Screen Height -// bpp: Bits per pixel -// refreshRate: Refresh rate -//------------------------------------------------------------------------- -typedef struct _D3DX_VIDMODEDESC -{ - DWORD width; - DWORD height; - DWORD bpp; - DWORD refreshRate; -} D3DX_VIDMODEDESC; - -//------------------------------------------------------------------------- -// D3DX_DEVICEDESC: Description of a device that can do 3D -// --------------- -// deviceIndex: Unique (DWORD) number for the device. -// hwLevel: Level of acceleration afforded. This is one of the -// predefined Device Indices, and exists in this -// structure for informational purposes only. More than -// one device on the system may have the same hwLevel. -// To refer to a particular device with the D3DX apis, -// use the value in the deviceIndex member instead. -// ddGuid: The ddraw GUID -// d3dDeviceGuid: Direct3D Device GUID -// ddDeviceID: DDraw's GetDeviceIdentifier GUID. This GUID is unique to -// a particular driver revision on a particular video card. -// driverDesc: String describing the driver -// monitor: Handle to the video monitor used by this device (multimon -// specific). Devices that use different monitors on a -// multimon system report different values in this field. -// Therefore, to test for a multimon system, an application -// should look for more than one different monitor handle in -// the list of D3DX devices. -// onPrimary: Indicates if this device is on the primary monitor -// (multimon specific). -//------------------------------------------------------------------------- -#define D3DX_DRIVERDESC_LENGTH 256 - -typedef struct _D3DX_DEVICEDESC -{ - DWORD deviceIndex; - DWORD hwLevel; - GUID ddGuid; - GUID d3dDeviceGuid; - GUID ddDeviceID; - char driverDesc[D3DX_DRIVERDESC_LENGTH]; - HMONITOR monitor; - BOOL onPrimary; -} D3DX_DEVICEDESC; - -/////////////////////////////////////////////////////////////////////////// -// APIs: -/////////////////////////////////////////////////////////////////////////// -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -//------------------------------------------------------------------------- -// D3DXInitialize: The very first call a D3DX app must make. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXInitialize(); - -//------------------------------------------------------------------------- -// D3DXUninitialize: The very last call a D3DX app must make. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXUninitialize(); - -//------------------------------------------------------------------------- -// D3DXGetDeviceCount: Returns the maximum number of D3DXdevices -// ------------------ available. -// -// D3DXGetDeviceDescription: Lists the 2D and 3D capabilities of the devices. -// ------------------------ Also, the various guids needed by ddraw and d3d. -// -// Params: -// [in] DWORD deviceIndex: Which device? Starts at 0. -// [in] D3DX_DEVICEDESC* pd3dxDevice: Pointer to the D3DX_DEVICEDESC -// structure to be filled in. -//------------------------------------------------------------------------- -DWORD WINAPI - D3DXGetDeviceCount(); - -HRESULT WINAPI - D3DXGetDeviceDescription(DWORD deviceIndex, - D3DX_DEVICEDESC* pd3dxDeviceDesc); - -//------------------------------------------------------------------------- -// D3DXGetMaxNumVideoModes: Returns the maximum number of video-modes . -// ----------------------- -// -// Params: -// [in] DWORD deviceIndex: The device being referred to. -// [in] DWORD flags: If D3DX_GVM_REFRESHRATE is set, then the refresh -// rates are not ignored. -// -// D3DXGetVideoMode: Describes a particular video mode for this device -// ---------------- -// -// Note: These queries will simply give you a list of modes that the -// display adapter tells DirectX that it supports. -// There is no guarantee that D3DXCreateContext(Ex) will succeed -// with all listed video modes. This is a fundamental limitation -// of the current DirectX architecture which D3DX cannot hide in -// any clean way. -// -// Params: -// [in] DWORD deviceIndex: The device being referred to. -// [in] DWORD flags: If D3DX_GVM_REFRESHRATE is set, then the refresh -// rates are returned -// [in] DWORD which: Which VideoMode ? Starts at 0. -// [out] D3DX_VIDMODEDESC* pModeList: Pointer to the D3DX_VIDMODEDESC -// structure that will be filled in. -//------------------------------------------------------------------------- -DWORD WINAPI - D3DXGetMaxNumVideoModes(DWORD deviceIndex, - DWORD flags); - -HRESULT WINAPI - D3DXGetVideoMode(DWORD deviceIndex, - DWORD flags, - DWORD modeIndex, - D3DX_VIDMODEDESC* pModeDesc); - -#define D3DX_GVM_REFRESHRATE 0x00000001 -//------------------------------------------------------------------------- -// D3DXGetMaxSurfaceFormats: Returns the maximum number of surface -// ------------------------ formats supported by the device at that -// video mode. -// -// D3DXGetSurfaceFormat: Describes one of the supported surface formats. -// --------------------- -// -// Params: -// [in] DWORD deviceIndex: The device being referred to. -// [in] D3DX_VIDMODEDESC* pDesc: The display mode at which the supported -// surface formats are requested. If it is -// NULL, the current display mode is -// assumed. -// [in] DWORD surfClassFlags: Required surface classes. Only surface -// formats which support all specified -// surface classes will be returned. -// (Multiple surface classes may be specified -// using bitwise OR.) -// [in] DWORD which: Which surface formats to retrieve. Starts at 0. -// [out] D3DX_SURFACEFORMAT* pFormat: The surface format -//------------------------------------------------------------------------- -DWORD WINAPI - D3DXGetMaxSurfaceFormats(DWORD deviceIndex, - D3DX_VIDMODEDESC* pDesc, - DWORD surfClassFlags); -HRESULT WINAPI - D3DXGetSurfaceFormat(DWORD deviceIndex, - D3DX_VIDMODEDESC* pDesc, - DWORD surfClassFlags, - DWORD surfaceIndex, - D3DX_SURFACEFORMAT* pFormat); - - -//------------------------------------------------------------------------- -// D3DXGetCurrentVideoMode: Retrieves the current video mode for this device. -// ------------------- -// -// Params: -// [in] DWORD deviceIndex: The device being referred to. -// [out] D3DX_VIDMODEDESC* pVidMode: The current video mode -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXGetCurrentVideoMode(DWORD deviceIndex, - D3DX_VIDMODEDESC* pVidMode); - -//------------------------------------------------------------------------- -// D3DXGetDeviceCaps: Lists all the capabilities of a device at a display -// mode. -// ---------------- -// -// Params: -// [in] DWORD deviceIndex: The device being referred to. -// [in] D3DX_VIDMODEDESC* pDesc: If this is NULL, we will return the -// caps at the current display mode of -// the device. -// [out] D3DDEVICEDESC7* pD3DDeviceDesc7: D3D Caps ( NULL to ignore -// parameter) -// [out] DDCAPS7* pDDHalCaps: DDraw HAL Caps (NULL to ignore parameter) -// [out] DDCAPS7* pDDHelCaps: DDraw HEL Caps (NULL to ignore paramter) -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXGetDeviceCaps(DWORD deviceIndex, - D3DX_VIDMODEDESC* pVidMode, - D3DDEVICEDESC7* pD3DCaps, - DDCAPS* pDDHALCaps, - DDCAPS* pDDHELCaps); - -//------------------------------------------------------------------------- -// D3DXCreateContext: Initializes the chosen device. It is the simplest init -// ----------------- function available. Parameters are treated the same -// as the matching subset of parameters in -// D3DXCreateContextEx, documented below. -// Remaining D3DXCreateContextEx parameters that are -// not present in D3DXCreateContext are treated as -// D3DX_DEFAULT. Note that multimon is not supported -// with D3DXCreateContext. -// -// D3DXCreateContextEx: A more advanced function to initialize the device. -// ------------------- Also accepts D3DX_DEFAULT for most of the parameters -// and then will do what D3DXCreateContext did. -// -// Note: Do not expect D3DXCreateContext(Ex) to be fail-safe (as with any -// API). Supported device capablilites should be used as a guide -// for choosing parameter values. Keep in mind that there will -// inevitably be some combinations of parameters that just do not work. -// -// Params: -// [in] DWORD deviceIndex: The device being referred to. -// [in] DWORD flags: The valid flags are D3DX_CONTEXT_FULLSCREEN, and -// D3DX_CONTEXT_OFFSCREEN. These flags cannot both -// be specified. If no flags are specified, the -// context defaults to windowed mode. -// -// [in] HWND hwnd: Device window. See note. -// [in] HWND hwndFocus: Window which receives keyboard messages from -// the device window. The device window should be -// a child of focus window. Useful for multimon -// applications. See note. -// NOTE: -// windowed: -// hwnd must be a valid window. hwndFocus must be NULL or -// D3DX_DEFAULT. -// -// fullscreen: -// Either hwnd or hwndFocus must be a valid window. (Both cannot -// be NULL or D3DX_DEFAULT). If hwnd is NULL or D3DX_DEFAULT, -// a default device window will be created as a child of hwndFocus. -// -// offscreen: -// Both hwnd and hwndFocus must be NULL or D3DX_DEFAULT -// -// [in] DWORD numColorBits: If D3DX_DEFAULT is passed for windowed mode, -// the current desktop's color depth is chosen. -// For full screen mode, D3DX_DEFAULT causes 16 -// bit color to be used. -// [in] DWORD numAlphaBits: If D3DX_DEFAULT is passed, 0 is chosen. -// [in] DWORD numDepthbits: If D3DX_DEFAULT is passed, -// the highest available number of depth bits -// is chosen. See note. -// [in] DWORD numStencilBits: If D3DX_DEFAULT is passed, the highest -// available number of stencil bits is chosen. -// See note. -// -// NOTE: If both numDepthBits and numStencilBits are D3DX_DEFAULT, -// D3DX first picks the highest available number of stencil -// bits. Then, for the chosen number of stencil bits, -// the highest available number of depth bits is chosen. -// If only one of numStencilBits or numDepthBits -// is D3DX_DEFAULT, the highest number of bits available -// for this parameter is chosen out of only the formats -// that support the number of bits requested for the -// fixed parameter. -// -// [in] DWORD numBackBuffers: Number of back buffers, or D3DX_DEFAULT. -// See note. -// -// NOTE: -// windowed: D3DX_DEFAULT means 1. You must specify one back buffer. -// -// fullscreen: D3DX_DEFAULT means 1. Any number of back buffers can be -// specified. -// -// offscreen: D3DX_DEFAULT means 0. You cannot specify additional back -// buffers. -// -// [in] DWORD width: Width, in pixels, or D3DX_DEFAULT. See note. -// [in] DWORD height: Height, in pixels, or D3DX_DEFAULT. See note. -// -// NOTE: -// windowed: If either width or height is D3DX_DEFAULT, both values -// default to the dimensions of the client area of hwnd. -// -// fullscreen: If either width or height is D3DX_DEFAULT, width -// defaults to 640, and height defaults to 480. -// -// offscreen: An error is returned if either width or height is -// D3DX_DEFAULT. -// -// [in] DWORD refreshRate: D3DX_DEFAULT means we let ddraw choose for -// us. Ignored for windowed and offscreen modes. -// [out] LPD3DXCONTEXT* ppCtx: This is the Context object that is used for -// rendering on that device. -// -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateContext(DWORD deviceIndex, - DWORD flags, - HWND hwnd, - DWORD width, - DWORD height, - LPD3DXCONTEXT* ppCtx); - -HRESULT WINAPI - D3DXCreateContextEx(DWORD deviceIndex, - DWORD flags, - HWND hwnd, - HWND hwndFocus, - DWORD numColorBits, - DWORD numAlphaBits, - DWORD numDepthbits, - DWORD numStencilBits, - DWORD numBackBuffers, - DWORD width, - DWORD height, - DWORD refreshRate, - LPD3DXCONTEXT* ppCtx); - -// The D3DXCreateContext(Ex) flags are: -#define D3DX_CONTEXT_FULLSCREEN 0x00000001 -#define D3DX_CONTEXT_OFFSCREEN 0x00000002 - -//------------------------------------------------------------------------- -// D3DXGetErrorString: Prints out the error string given an hresult. Prints -// ------------------ Win32 as well as DX6 error messages besides the D3DX -// messages. -// -// Params: -// [in] HRESULT hr: The error code to be deciphered. -// [in] DWORD strLength: Length of the string passed in. -// [out] LPSTR pStr: The string output. This string of appropriate -// size needs to be passed in. -//------------------------------------------------------------------------- -void WINAPI - D3DXGetErrorString(HRESULT hr, - DWORD strLength, - LPSTR pStr); - -//------------------------------------------------------------------------- -// D3DXMakeDDPixelFormat: Fills in a DDPIXELFORMAT structure based on the -// --------------------- D3DX surface format requested. -// -// Params: -// [in] D3DX_SURFACEFORMAT d3dxFormat: Surface format. -// [out] DDPIXELFORMAT* pddpf: Pixel format matching the given -// surface format. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXMakeDDPixelFormat(D3DX_SURFACEFORMAT d3dxFormat, - DDPIXELFORMAT* pddpf); - -//------------------------------------------------------------------------- -// D3DXMakeSurfaceFormat: Determines the surface format corresponding to -// --------------------- a given DDPIXELFORMAT. -// -// Params: -// [in] DDPIXELFORMAT* pddpf: Pixel format. -// Return Value: -// D3DX_SURFACEFORMAT: Surface format matching the given pixel format. -// D3DX_SF_UNKNOWN if the format is not supported -//------------------------------------------------------------------------- -D3DX_SURFACEFORMAT WINAPI - D3DXMakeSurfaceFormat(DDPIXELFORMAT* pddpf); - -#ifdef __cplusplus -} -#endif //__cplusplus - -/////////////////////////////////////////////////////////////////////////// -// Interfaces: -/////////////////////////////////////////////////////////////////////////// - -//------------------------------------------------------------------------- -// ID3DXContext interface: -// -// This encapsulates all the stuff that the app might -// want to do at initialization time and any global control over d3d and -// ddraw. -//------------------------------------------------------------------------- - - -DECLARE_INTERFACE_(ID3DXContext, IUnknown) -{ - // - // IUnknown methods - // - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID* ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - // Get the DDraw and Direct3D objects to call DirectDraw or - // Direct3D Immediate Mode functions. - // If the objects don't exist (because they have not - // been created for some reason) NULL is returned. - // All the objects returned in the following Get* functions - // are addref'ed. It is the application's responsibility to - // release them when no longer needed. - STDMETHOD_(LPDIRECTDRAW7,GetDD)(THIS) PURE; - STDMETHOD_(LPDIRECT3D7,GetD3D)(THIS) PURE; - STDMETHOD_(LPDIRECT3DDEVICE7,GetD3DDevice)(THIS) PURE; - - // Get the various buffers that get created at the init time - // These are addref'ed as well. It is the application's responsibility - // to release them before the app quits or when it needs a resize. - STDMETHOD_(LPDIRECTDRAWSURFACE7,GetPrimary)(THIS) PURE; - STDMETHOD_(LPDIRECTDRAWSURFACE7,GetZBuffer)(THIS) PURE; - STDMETHOD_(LPDIRECTDRAWSURFACE7,GetBackBuffer)(THIS_ DWORD which) PURE; - - // Get the associated window handles - STDMETHOD_(HWND,GetWindow)(THIS) PURE; - STDMETHOD_(HWND,GetFocusWindow)(THIS) PURE; - - // - // Various Get methods, in case the user had specified default - // parameters - // - STDMETHOD(GetDeviceIndex)(THIS_ - LPDWORD pDeviceIndex, - LPDWORD pHwLevel) PURE; - - STDMETHOD_(DWORD, GetNumBackBuffers)(THIS) PURE; - - STDMETHOD(GetNumBits)(THIS_ - LPDWORD pColorBits, - LPDWORD pDepthBits, - LPDWORD pAlphaBits, - LPDWORD pStencilBits) PURE; - - STDMETHOD(GetBufferSize)(THIS_ - LPDWORD pWidth, - LPDWORD pHeight) PURE; - - // Get the flags that were used to create this context - STDMETHOD_(DWORD, GetCreationFlags)(THIS) PURE; - STDMETHOD_(DWORD, GetRefreshRate)(THIS) PURE; - - // Restoring surfaces in case stuff is lost - STDMETHOD(RestoreSurfaces)(THIS) PURE; - - // Resize all the buffers to the new width and height - STDMETHOD(Resize)(THIS_ DWORD width, DWORD height) PURE; - - // Update the frame using a flip or a blit, - // If the D3DX_UPDATE_NOVSYNC flag is set, blit is used if the - // driver cannot flip without waiting for vsync in full-screen mode. - STDMETHOD(UpdateFrame)(THIS_ DWORD flags) PURE; - - // Render a string at the specified coordinates, with the specified - // colour. This is only provided as a convenience for - // debugging/information during development. - // topLeftX and topLeftY represent the location of the top left corner - // of the string, on the render target. - // The coordinate and color parameters each have a range of 0.0-1.0 - STDMETHOD(DrawDebugText)(THIS_ - float topLeftX, - float topLeftY, - D3DCOLOR color, - LPSTR pString) PURE; - - // Clears to the current viewport - // The following are the valid flags: - // D3DCLEAR_TARGET (to clear the render target ) - // D3DCLEAR_ZBUFFER (to clear the depth-buffer ) - // D3DCLEAR_STENCIL (to clear the stencil-buffer ) - STDMETHOD(Clear)(THIS_ DWORD ClearFlags) PURE; - - STDMETHOD(SetClearColor)(THIS_ D3DCOLOR color ) PURE; - STDMETHOD(SetClearDepth)(THIS_ float z) PURE; - STDMETHOD(SetClearStencil)(THIS_ DWORD stencil) PURE; -}; - - -//------------------------------------------------------------------------- -// Flags for Update member function: -// - -// Flag to indicate that blit should be used instead of a flip -// for full-screen rendering. -#define D3DX_UPDATE_NOVSYNC (1<<0) - -/////////////////////////////////////////////////////////////////////////// -// Texturing APIs: -/////////////////////////////////////////////////////////////////////////// -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -//------------------------------------------------------------------------- -// D3DXCheckTextureRequirements: Return information about texture creation -// ---------------------------- (used by CreateTexture, CreateTextureFromFile -// and CreateCubeMapTexture) -// -// Parameters: -// -// pd3dDevice -// The D3D device with which the texture is going to be used. -// pFlags -// allows specification of D3DX_TEXTURE_NOMIPMAP -// D3DX_TEXTURE_NOMIPMAP may be returned in the case where mipmap creation -// is not supported. -// pWidth -// width in pixels or NULL -// returns corrected width -// pHeight -// height in pixels or NULL -// returns corrected height -// pPixelFormat -// surface format -// returns best match to input format -// -// Notes: 1. Unless the flags is set to specifically prevent creating -// mipmaps, mipmaps are generated all the way till 1x1 surface. -// 2. width, height and pixelformat are altered based on available -// hardware. For example: -// a. Texture dimensions may be required to be powers of 2 -// b. We may require width == height for some devices -// c. If PixelFormat is unavailable, a best fit is made -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCheckTextureRequirements( LPDIRECT3DDEVICE7 pd3dDevice, - LPDWORD pFlags, - LPDWORD pWidth, - LPDWORD pHeight, - D3DX_SURFACEFORMAT* pPixelFormat); - -//------------------------------------------------------------------------- -// D3DXCreateTexture: Create an empty texture object -// ----------------- -// -// Parameters: -// -// pd3dDevice -// The D3D device with which the texture is going to be used. -// pFlags -// allows specification of D3DX_TEXTURE_NOMIPMAP -// D3DX_TEXTURE_NOMIPMAP may be returned in the case where mipmap creation -// is not supported. Additionally, D3DX_TEXTURE_STAGE can be specified -// to indicate which texture stage the texture is for e.g. -// D3D_TEXTURE_STAGE1 indicates that the texture is for use with texture -// stage one. Stage Zero is the default if no TEXTURE_STAGE flags are -// set. -// pWidth -// width in pixels; 0 or NULL is unacceptable -// returns corrected width -// pHeight -// height in pixels; 0 or NULL is unacceptable -// returns corrected height -// pPixelFormat -// surface format. D3DX_DEFAULT is unacceptable. -// returns actual format that was used -// pDDPal -// DDraw palette that is set (if present) on paletted surfaces. -// It is ignored even if it is set, for non-paletted surfaces. -// ppDDSurf -// The ddraw surface that will be created -// pNumMipMaps -// the number of mipmaps actually generated -// -// Notes: See notes for D3DXCheckTextureRequirements. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateTexture( LPDIRECT3DDEVICE7 pd3dDevice, - LPDWORD pFlags, - LPDWORD pWidth, - LPDWORD pHeight, - D3DX_SURFACEFORMAT* pPixelFormat, - LPDIRECTDRAWPALETTE pDDPal, - LPDIRECTDRAWSURFACE7* ppDDSurf, - LPDWORD pNumMipMaps); - -//------------------------------------------------------------------------- -// D3DXCreateCubeMapTexture: Create blank cube-map texture -// ------------------------ -// -// Parameters: -// -// pd3dDevice -// The D3D device with which the texture is going to be used. -// pFlags -// allows specification of D3DX_TEXTURE_NOMIPMAP -// D3DX_TEXTURE_NOMIPMAP may be returned in the case where mipmap creation -// is not supported. Additionally, D3DX_TEXTURE_STAGE can be specified -// to indicate which texture stage the texture is for e.g. -// D3D_TEXTURE_STAGE1 indicates that the texture is for use with texture -// stage one. Stage Zero is the default if no TEXTURE_STAGE flags are -// set. -// cubefaces -// allows specification of which faces of the cube-map to generate. -// D3DX_DEFAULT, 0, and DDSCAPS2_CUBEMAP_ALLFACES all mean -// "create all 6 faces of the cubemap". Any combination of -// DDSCAPS2_CUBEMAP_POSITIVEX, DDSCAPS2_CUBEMAP_NEGATIVEX, -// DDSCAPS2_CUBEMAP_POSITIVEY, DDSCAPS2_CUBEMAP_NEGATIVEY, -// DDSCAPS2_CUBEMAP_POSITIVEZ, or DDSCAPS2_CUBEMAP_NEGATIVEZ, is -// valid. -// colorEmptyFaces -// allows specification of the color to use for the faces that were not -// specified in the cubefaces parameter. -// pWidth -// width in pixels; 0 or NULL is unacceptable -// returns corrected width -// pHeight -// height in pixels; 0 or NULL is unacceptable -// returns corrected height -// pPixelFormat -// surface format. D3DX_DEFAULT is unacceptable. -// returns actual format that was used -// pDDPal -// DDraw palette that is set (if present) on paletted surfaces. -// It is ignored even if it is set, for non-paletted surfaces. -// ppDDSurf -// the ddraw surface that will be created -// pNumMipMaps -// the number of mipmaps generated for a particular face of the -// cubemap. -// -// Notes: See notes for D3DXCheckTextureRequirements. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateCubeMapTexture( LPDIRECT3DDEVICE7 pd3dDevice, - LPDWORD pFlags, - DWORD cubefaces, - D3DCOLOR colorEmptyFaces, - LPDWORD pWidth, - LPDWORD pHeight, - D3DX_SURFACEFORMAT *pPixelFormat, - LPDIRECTDRAWPALETTE pDDPal, - LPDIRECTDRAWSURFACE7* ppDDSurf, - LPDWORD pNumMipMaps); - - -//------------------------------------------------------------------------- -// D3DXCreateTextureFromFile: Create a texture object from a file or from the -// ------------------------- resource. Only BMP and DIB are supported from the -// resource portion of the executable. -// -// Parameters: -// -// pd3dDevice -// The D3D device with which the texture is going to be used. -// pFlags -// allows specification of D3DX_TEXTURE_NOMIPMAP -// D3DX_TEXTURE_NOMIPMAP may be returned in the case where mipmap creation -// is not supported. Additionally, D3DX_TEXTURE_STAGE can be specified -// to indicate which texture stage the texture is for e.g. -// D3D_TEXTURE_STAGE1 indicates that the texture is for use with texture -// stage one. Stage Zero is the default if no TEXTURE_STAGE flags are -// set. -// pWidth -// Width in pixels. If 0 or D3DX_DEFAULT, the width will be taken -// from the file -// returns corrected width -// pHeight -// Height in pixels. If 0 or D3DX_DEFAULT, the height will be taken -// from the file -// returns corrected height -// pPixelFormat -// If D3DX_SF_UNKNOWN is passed in, pixel format closest to the bitmap -// will be chosen -// returns actual format that was used -// pDDPal -// DDraw palette that is set (if present) on paletted surfaces. -// It is ignored even if it is set, for non-paletted surfaces. -// ppDDSurf -// The ddraw surface that will be created. -// pNumMipMaps -// The number of mipmaps generated. -// pSrcName -// File name. BMP, DIB, DDS, are supported. -// -// TGA is supported for the following cases: 16, 24, 32bpp direct color and 8bpp palettized. -// Also, 8, 16bpp grayscale is supported. RLE versions of the above -// TGA formats are also supported. ColorKey and Premultiplied Alpha -// are not currently supported for TGA files. -// returns created format -// -// Notes: See notes for D3DXCheckTextureRequirements. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateTextureFromFile( LPDIRECT3DDEVICE7 pd3dDevice, - LPDWORD pFlags, - LPDWORD pWidth, - LPDWORD pHeight, - D3DX_SURFACEFORMAT* pPixelFormat, - LPDIRECTDRAWPALETTE pDDPal, - LPDIRECTDRAWSURFACE7* ppDDSurf, - LPDWORD pNumMipMaps, - LPSTR pSrcName, - D3DX_FILTERTYPE filterType); - -//------------------------------------------------------------------------- -// D3DXLoadTextureFromFile: Load from a file into a mipmap level. Doing the -// ----------------------- necessary color conversion and rescaling. File -// format support is identical to -// D3DXCreateTextureFromFile's. -// -// pd3dDevice -// The D3D device with which the texture is going to be used. -// pTexture -// a pointer to a DD7Surface which was created with either -// CreateTextureFromFile or CreateTexture. -// mipMapLevel -// indicates mipmap level -// Note: -// 1. Error if mipmap level doesn't exist -// 2. If D3DX_DEFAULT and equal number of mipmap levels exist -// then all the source mip-levels are loaded -// 3. If the source has mipmaps and the dest doesn't, use the top one -// 4. If the dest has miplevels and source doesn't, we expand -// 5. If there are unequal numbers of miplevels, we expand -// pSrcName -// File name. BMP, DIB, DDS, are supported. -// For details on TGA support, refer to the comments for -// D3DXCreateTextureFromFile -// pSrcRect -// the source rectangle or null (whole surface) -// pDestRect -// the destination rectangle or null (whole surface) -// filterType -// filter used for mipmap generation -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXLoadTextureFromFile( LPDIRECT3DDEVICE7 pd3dDevice, - LPDIRECTDRAWSURFACE7 pTexture, - DWORD mipMapLevel, - LPSTR pSrcName, - RECT* pSrcRect, - RECT* pDestRect, - D3DX_FILTERTYPE filterType); - -//------------------------------------------------------------------------- -// D3DXLoadTextureFromSurface: Load from a DDraw Surface into a mipmap level. -// -------------------------- Doing the necessary color conversion. -// -// pd3dDevice -// The D3D device with which the texture is going to be used. -// pTexture -// a pointer to a DD7Surface which was created with either -// CreateTextureFromFile or CreateTexture. -// mipMapLevel -// indicates mipmap level -// Note: -// 1. Error if mipmap level doesn't exist -// 2. If D3DX_DEFAULT and equal number of mipmap levels exist -// then all the source mip-levels are loaded -// 3. If the source has mipmaps and the dest doesn't, use the top one -// 4. If the dest has miplevels and source doesn't, we expand -// 5. If there are unequal numbers of miplevels, we expand -// pSurfaceSrc -// the source surface -// pSrcRect -// the source rectangle or null (whole surface) -// pDestRect -// the destination rectangle or null (whole surface) -// filterType -// filter used for mipmap generation -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXLoadTextureFromSurface( LPDIRECT3DDEVICE7 pd3dDevice, - LPDIRECTDRAWSURFACE7 pTexture, - DWORD mipMapLevel, - LPDIRECTDRAWSURFACE7 pSurfaceSrc, - RECT* pSrcRect, - RECT* pDestRect, - D3DX_FILTERTYPE filterType); - -//------------------------------------------------------------------------- -// D3DXLoadTextureFromMemory: Load a mip level from memory. Doing the necessary -// ------------------------- color conversion. -// -// pd3dDevice -// The D3D device with which the texture is going to be used. -// pTexture -// a pointer to a DD7Surface which was created with either -// CreateTextureFromFile or CreateTexture. -// mipMapLevel -// indicates mipmap level -// Note: -// 1. Error if mipmap level doesn't exist -// 2. If D3DX_DEFAULT and equal number of mipmap levels exist -// then all the source mip-levels are loaded -// 3. If the source has mipmaps and the dest doesn't, use the top one -// 4. If the dest has miplevels and source doesn't, we expand -// 5. If there are unequal numbers of miplevels, we expand -// pMemory -// pointer to source memory from which the texture will be loaded -// pDDPal -// DirectDraw Palette, that the app passes in optionally if the memory is -// supposed to be paletteized. -// srcPixelFormat -// PixelFormat of the source. -// srcPitch -// The pitch of the memory or D3DX_DEFAULT (based on srcPixelFormat) -// pDestRect -// The destination rectangle or null (whole surface) -// filterType -// filter used for mipmap generation -// -// Assumptions: The source (memory) is loaded in full -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXLoadTextureFromMemory( LPDIRECT3DDEVICE7 pd3dDevice, - LPDIRECTDRAWSURFACE7 pTexture, - DWORD mipMapLevel, - LPVOID pMemory, - LPDIRECTDRAWPALETTE pDDPal, - D3DX_SURFACEFORMAT srcPixelFormat, - DWORD srcPitch, - RECT* pDestRect, - D3DX_FILTERTYPE filterType); - -#ifdef __cplusplus -} -#endif //__cplusplus - -//------------------------------------------------------------------------- -// Flags for texture create functions; applies to -// D3DXCreateTexture, D3DXCreateCubeMapTexture and D3DXCreateTextureFromFile. -// - -// Flag to indicate that mipmap generation is not desired. -#define D3DX_TEXTURE_NOMIPMAP (1 << 8) - -// Flags to indicate which texture stage the texture is -// intended for use with. Specifying the stage is necessary at -// texture creation time for HW devices that expose the -// D3DDEVCAPS_SEPARATETEXTUREMEMORIES bit in their D3DDEVICEDESC -// structure. -#define D3DX_TEXTURE_STAGE0 (0) -#define D3DX_TEXTURE_STAGE1 (1) -#define D3DX_TEXTURE_STAGE2 (2) -#define D3DX_TEXTURE_STAGE3 (3) -#define D3DX_TEXTURE_STAGE4 (4) -#define D3DX_TEXTURE_STAGE5 (5) -#define D3DX_TEXTURE_STAGE6 (6) -#define D3DX_TEXTURE_STAGE7 (7) - -// Mask to extract the texture stage value out of the flags to -// the texture create functions. -#define D3DX_TEXTURE_STAGE_MASK (0x7) - -#endif //__D3DXCORE_H__ diff --git a/sdk/dx8sdk/Include/d3dxerr.h b/sdk/dx8sdk/Include/d3dxerr.h deleted file mode 100644 index 155005b7..00000000 --- a/sdk/dx8sdk/Include/d3dxerr.h +++ /dev/null @@ -1,407 +0,0 @@ -//---------------------------------------------------------------------- -// -// d3dxerr.h -- 0xC code definitions for the D3DX API -// -// Copyright (c) Microsoft Corp. All rights reserved. -// -//---------------------------------------------------------------------- -#ifndef __D3DXERR_H__ -#define __D3DXERR_H__ - -// -// -// 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_D3DX 0x877 - - - -// -// MessageId: D3DXERR_NOMEMORY -// -// MessageText: -// -// Out of memory. -// -#define D3DXERR_NOMEMORY ((HRESULT)0xC8770BB8L) - - -// -// MessageId: D3DXERR_NULLPOINTER -// -// MessageText: -// -// A NULL pointer was passed as a parameter. -// -#define D3DXERR_NULLPOINTER ((HRESULT)0xC8770BB9L) - - -// -// MessageId: D3DXERR_INVALIDD3DXDEVICEINDEX -// -// MessageText: -// -// The Device Index passed in is invalid. -// -#define D3DXERR_INVALIDD3DXDEVICEINDEX ((HRESULT)0xC8770BBAL) - - -// -// MessageId: D3DXERR_NODIRECTDRAWAVAILABLE -// -// MessageText: -// -// DirectDraw has not been created. -// -#define D3DXERR_NODIRECTDRAWAVAILABLE ((HRESULT)0xC8770BBBL) - - -// -// MessageId: D3DXERR_NODIRECT3DAVAILABLE -// -// MessageText: -// -// Direct3D has not been created. -// -#define D3DXERR_NODIRECT3DAVAILABLE ((HRESULT)0xC8770BBCL) - - -// -// MessageId: D3DXERR_NODIRECT3DDEVICEAVAILABLE -// -// MessageText: -// -// Direct3D device has not been created. -// -#define D3DXERR_NODIRECT3DDEVICEAVAILABLE ((HRESULT)0xC8770BBDL) - - -// -// MessageId: D3DXERR_NOPRIMARYAVAILABLE -// -// MessageText: -// -// Primary surface has not been created. -// -#define D3DXERR_NOPRIMARYAVAILABLE ((HRESULT)0xC8770BBEL) - - -// -// MessageId: D3DXERR_NOZBUFFERAVAILABLE -// -// MessageText: -// -// Z buffer has not been created. -// -#define D3DXERR_NOZBUFFERAVAILABLE ((HRESULT)0xC8770BBFL) - - -// -// MessageId: D3DXERR_NOBACKBUFFERAVAILABLE -// -// MessageText: -// -// Backbuffer has not been created. -// -#define D3DXERR_NOBACKBUFFERAVAILABLE ((HRESULT)0xC8770BC0L) - - -// -// MessageId: D3DXERR_COULDNTUPDATECAPS -// -// MessageText: -// -// Failed to update caps database after changing display mode. -// -#define D3DXERR_COULDNTUPDATECAPS ((HRESULT)0xC8770BC1L) - - -// -// MessageId: D3DXERR_NOZBUFFER -// -// MessageText: -// -// Could not create Z buffer. -// -#define D3DXERR_NOZBUFFER ((HRESULT)0xC8770BC2L) - - -// -// MessageId: D3DXERR_INVALIDMODE -// -// MessageText: -// -// Display mode is not valid. -// -#define D3DXERR_INVALIDMODE ((HRESULT)0xC8770BC3L) - - -// -// MessageId: D3DXERR_INVALIDPARAMETER -// -// MessageText: -// -// One or more of the parameters passed is invalid. -// -#define D3DXERR_INVALIDPARAMETER ((HRESULT)0xC8770BC4L) - - -// -// MessageId: D3DXERR_INITFAILED -// -// MessageText: -// -// D3DX failed to initialize itself. -// -#define D3DXERR_INITFAILED ((HRESULT)0xC8770BC5L) - - -// -// MessageId: D3DXERR_STARTUPFAILED -// -// MessageText: -// -// D3DX failed to start up. -// -#define D3DXERR_STARTUPFAILED ((HRESULT)0xC8770BC6L) - - -// -// MessageId: D3DXERR_D3DXNOTSTARTEDYET -// -// MessageText: -// -// D3DXInitialize() must be called first. -// -#define D3DXERR_D3DXNOTSTARTEDYET ((HRESULT)0xC8770BC7L) - - -// -// MessageId: D3DXERR_NOTINITIALIZED -// -// MessageText: -// -// D3DX is not initialized yet. -// -#define D3DXERR_NOTINITIALIZED ((HRESULT)0xC8770BC8L) - - -// -// MessageId: D3DXERR_FAILEDDRAWTEXT -// -// MessageText: -// -// Failed to render text to the surface. -// -#define D3DXERR_FAILEDDRAWTEXT ((HRESULT)0xC8770BC9L) - - -// -// MessageId: D3DXERR_BADD3DXCONTEXT -// -// MessageText: -// -// Bad D3DX context. -// -#define D3DXERR_BADD3DXCONTEXT ((HRESULT)0xC8770BCAL) - - -// -// MessageId: D3DXERR_CAPSNOTSUPPORTED -// -// MessageText: -// -// The requested device capabilities are not supported. -// -#define D3DXERR_CAPSNOTSUPPORTED ((HRESULT)0xC8770BCBL) - - -// -// MessageId: D3DXERR_UNSUPPORTEDFILEFORMAT -// -// MessageText: -// -// The image file format is unrecognized. -// -#define D3DXERR_UNSUPPORTEDFILEFORMAT ((HRESULT)0xC8770BCCL) - - -// -// MessageId: D3DXERR_IFLERROR -// -// MessageText: -// -// The image file loading library error. -// -#define D3DXERR_IFLERROR ((HRESULT)0xC8770BCDL) - - -// -// MessageId: D3DXERR_FAILEDGETCAPS -// -// MessageText: -// -// Could not obtain device caps. -// -#define D3DXERR_FAILEDGETCAPS ((HRESULT)0xC8770BCEL) - - -// -// MessageId: D3DXERR_CANNOTRESIZEFULLSCREEN -// -// MessageText: -// -// Resize does not work for full-screen. -// -#define D3DXERR_CANNOTRESIZEFULLSCREEN ((HRESULT)0xC8770BCFL) - - -// -// MessageId: D3DXERR_CANNOTRESIZENONWINDOWED -// -// MessageText: -// -// Resize does not work for non-windowed contexts. -// -#define D3DXERR_CANNOTRESIZENONWINDOWED ((HRESULT)0xC8770BD0L) - - -// -// MessageId: D3DXERR_FRONTBUFFERALREADYEXISTS -// -// MessageText: -// -// Front buffer already exists. -// -#define D3DXERR_FRONTBUFFERALREADYEXISTS ((HRESULT)0xC8770BD1L) - - -// -// MessageId: D3DXERR_FULLSCREENPRIMARYEXISTS -// -// MessageText: -// -// The app is using the primary in full-screen mode. -// -#define D3DXERR_FULLSCREENPRIMARYEXISTS ((HRESULT)0xC8770BD2L) - - -// -// MessageId: D3DXERR_GETDCFAILED -// -// MessageText: -// -// Could not get device context. -// -#define D3DXERR_GETDCFAILED ((HRESULT)0xC8770BD3L) - - -// -// MessageId: D3DXERR_BITBLTFAILED -// -// MessageText: -// -// Could not bitBlt. -// -#define D3DXERR_BITBLTFAILED ((HRESULT)0xC8770BD4L) - - -// -// MessageId: D3DXERR_NOTEXTURE -// -// MessageText: -// -// There is no surface backing up this texture. -// -#define D3DXERR_NOTEXTURE ((HRESULT)0xC8770BD5L) - - -// -// MessageId: D3DXERR_MIPLEVELABSENT -// -// MessageText: -// -// There is no such miplevel for this surface. -// -#define D3DXERR_MIPLEVELABSENT ((HRESULT)0xC8770BD6L) - - -// -// MessageId: D3DXERR_SURFACENOTPALETTED -// -// MessageText: -// -// The surface is not paletted. -// -#define D3DXERR_SURFACENOTPALETTED ((HRESULT)0xC8770BD7L) - - -// -// MessageId: D3DXERR_ENUMFORMATSFAILED -// -// MessageText: -// -// An error occured while enumerating surface formats. -// -#define D3DXERR_ENUMFORMATSFAILED ((HRESULT)0xC8770BD8L) - - -// -// MessageId: D3DXERR_COLORDEPTHTOOLOW -// -// MessageText: -// -// D3DX only supports color depths of 16 bit or greater. -// -#define D3DXERR_COLORDEPTHTOOLOW ((HRESULT)0xC8770BD9L) - - -// -// MessageId: D3DXERR_INVALIDFILEFORMAT -// -// MessageText: -// -// The file format is invalid. -// -#define D3DXERR_INVALIDFILEFORMAT ((HRESULT)0xC8770BDAL) - - -// -// MessageId: D3DXERR_NOMATCHFOUND -// -// MessageText: -// -// No suitable match found. -// -#define D3DXERR_NOMATCHFOUND ((HRESULT)0xC8770BDBL) - - - -#endif //__D3DXERR_H__ - diff --git a/sdk/dx8sdk/Include/d3dxmath.h b/sdk/dx8sdk/Include/d3dxmath.h deleted file mode 100644 index 42f00d1a..00000000 --- a/sdk/dx8sdk/Include/d3dxmath.h +++ /dev/null @@ -1,1092 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dxmath.h -// Content: D3DX math types and functions -// -////////////////////////////////////////////////////////////////////////////// - -#ifndef __D3DXMATH_H__ -#define __D3DXMATH_H__ - -#include -#include -#include -#include "d3dxerr.h" - -#ifndef D3DXINLINE -#ifdef __cplusplus -#define D3DXINLINE inline -#else -#define D3DXINLINE _inline -#endif -#endif - -#if _MSC_VER >= 1200 -#pragma warning(push) -#endif -#pragma warning(disable:4201) // anonymous unions warning - - - -typedef struct ID3DXMatrixStack *LPD3DXMATRIXSTACK; - -// {E3357330-CC5E-11d2-A434-00A0C90629A8} -DEFINE_GUID( IID_ID3DXMatrixStack, - 0xe3357330, 0xcc5e, 0x11d2, 0xa4, 0x34, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); - - -//=========================================================================== -// -// General purpose utilities -// -//=========================================================================== -#define D3DX_PI ((float) 3.141592654f) -#define D3DX_1BYPI ((float) 0.318309886f) - -#define D3DXToRadian( degree ) ((degree) * (D3DX_PI / 180.0f)) -#define D3DXToDegree( radian ) ((radian) * (180.0f / D3DX_PI)) - - - -//=========================================================================== -// -// Vectors -// -//=========================================================================== - -//-------------------------- -// 2D Vector -//-------------------------- -typedef struct D3DXVECTOR2 -{ -#ifdef __cplusplus -public: - D3DXVECTOR2() {}; - D3DXVECTOR2( const float * ); - D3DXVECTOR2( float x, float y ); - - // casting - operator float* (); - operator const float* () const; - - // assignment operators - D3DXVECTOR2& operator += ( const D3DXVECTOR2& ); - D3DXVECTOR2& operator -= ( const D3DXVECTOR2& ); - D3DXVECTOR2& operator *= ( float ); - D3DXVECTOR2& operator /= ( float ); - - // unary operators - D3DXVECTOR2 operator + () const; - D3DXVECTOR2 operator - () const; - - // binary operators - D3DXVECTOR2 operator + ( const D3DXVECTOR2& ) const; - D3DXVECTOR2 operator - ( const D3DXVECTOR2& ) const; - D3DXVECTOR2 operator * ( float ) const; - D3DXVECTOR2 operator / ( float ) const; - - friend D3DXVECTOR2 operator * ( float, const D3DXVECTOR2& ); - - BOOL operator == ( const D3DXVECTOR2& ) const; - BOOL operator != ( const D3DXVECTOR2& ) const; - - -public: -#endif //__cplusplus - float x, y; -} D3DXVECTOR2, *LPD3DXVECTOR2; - - -//-------------------------- -// 3D Vector -//-------------------------- -typedef struct D3DXVECTOR3 -{ -#ifdef __cplusplus -public: - D3DXVECTOR3() {}; - D3DXVECTOR3( const float * ); - D3DXVECTOR3( const D3DVECTOR& ); - D3DXVECTOR3( float x, float y, float z ); - - // casting - operator float* (); - operator const float* () const; - - operator D3DVECTOR* (); - operator const D3DVECTOR* () const; - - operator D3DVECTOR& (); - operator const D3DVECTOR& () const; - - // assignment operators - D3DXVECTOR3& operator += ( const D3DXVECTOR3& ); - D3DXVECTOR3& operator -= ( const D3DXVECTOR3& ); - D3DXVECTOR3& operator *= ( float ); - D3DXVECTOR3& operator /= ( float ); - - // unary operators - D3DXVECTOR3 operator + () const; - D3DXVECTOR3 operator - () const; - - // binary operators - D3DXVECTOR3 operator + ( const D3DXVECTOR3& ) const; - D3DXVECTOR3 operator - ( const D3DXVECTOR3& ) const; - D3DXVECTOR3 operator * ( float ) const; - D3DXVECTOR3 operator / ( float ) const; - - friend D3DXVECTOR3 operator * ( float, const struct D3DXVECTOR3& ); - - BOOL operator == ( const D3DXVECTOR3& ) const; - BOOL operator != ( const D3DXVECTOR3& ) const; - -public: -#endif //__cplusplus - float x, y, z; -} D3DXVECTOR3, *LPD3DXVECTOR3; - - -//-------------------------- -// 4D Vector -//-------------------------- -typedef struct D3DXVECTOR4 -{ -#ifdef __cplusplus -public: - D3DXVECTOR4() {}; - D3DXVECTOR4( const float* ); - D3DXVECTOR4( float x, float y, float z, float w ); - - // casting - operator float* (); - operator const float* () const; - - // assignment operators - D3DXVECTOR4& operator += ( const D3DXVECTOR4& ); - D3DXVECTOR4& operator -= ( const D3DXVECTOR4& ); - D3DXVECTOR4& operator *= ( float ); - D3DXVECTOR4& operator /= ( float ); - - // unary operators - D3DXVECTOR4 operator + () const; - D3DXVECTOR4 operator - () const; - - // binary operators - D3DXVECTOR4 operator + ( const D3DXVECTOR4& ) const; - D3DXVECTOR4 operator - ( const D3DXVECTOR4& ) const; - D3DXVECTOR4 operator * ( float ) const; - D3DXVECTOR4 operator / ( float ) const; - - friend D3DXVECTOR4 operator * ( float, const D3DXVECTOR4& ); - - BOOL operator == ( const D3DXVECTOR4& ) const; - BOOL operator != ( const D3DXVECTOR4& ) const; - -public: -#endif //__cplusplus - float x, y, z, w; -} D3DXVECTOR4, *LPD3DXVECTOR4; - - -//=========================================================================== -// -// Matrices -// -//=========================================================================== -typedef struct D3DXMATRIX -{ -#ifdef __cplusplus -public: - D3DXMATRIX() {}; - D3DXMATRIX( const float * ); - D3DXMATRIX( const D3DMATRIX& ); - D3DXMATRIX( 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 ); - - - // access grants - float& operator () ( UINT iRow, UINT iCol ); - float operator () ( UINT iRow, UINT iCol ) const; - - // casting operators - operator float* (); - operator const float* () const; - - operator D3DMATRIX* (); - operator const D3DMATRIX* () const; - - operator D3DMATRIX& (); - operator const D3DMATRIX& () const; - - // assignment operators - D3DXMATRIX& operator *= ( const D3DXMATRIX& ); - D3DXMATRIX& operator += ( const D3DXMATRIX& ); - D3DXMATRIX& operator -= ( const D3DXMATRIX& ); - D3DXMATRIX& operator *= ( float ); - D3DXMATRIX& operator /= ( float ); - - // unary operators - D3DXMATRIX operator + () const; - D3DXMATRIX operator - () const; - - // binary operators - D3DXMATRIX operator * ( const D3DXMATRIX& ) const; - D3DXMATRIX operator + ( const D3DXMATRIX& ) const; - D3DXMATRIX operator - ( const D3DXMATRIX& ) const; - D3DXMATRIX operator * ( float ) const; - D3DXMATRIX operator / ( float ) const; - - friend D3DXMATRIX operator * ( float, const D3DXMATRIX& ); - - BOOL operator == ( const D3DXMATRIX& ) const; - BOOL operator != ( const D3DXMATRIX& ) const; - - -#endif //__cplusplus - - union - { - float m[4][4]; -#ifdef __cplusplus - struct - { - float m00, m01, m02, m03; - float m10, m11, m12, m13; - float m20, m21, m22, m23; - float m30, m31, m32, m33; - }; -#endif //__cplusplus - }; -} D3DXMATRIX, *LPD3DXMATRIX; - - -//=========================================================================== -// -// Quaternions -// -//=========================================================================== -typedef struct D3DXQUATERNION -{ -#ifdef __cplusplus -public: - D3DXQUATERNION() {} - D3DXQUATERNION( const float * ); - D3DXQUATERNION( float x, float y, float z, float w ); - - // casting - operator float* (); - operator const float* () const; - - // assignment operators - D3DXQUATERNION& operator += ( const D3DXQUATERNION& ); - D3DXQUATERNION& operator -= ( const D3DXQUATERNION& ); - D3DXQUATERNION& operator *= ( const D3DXQUATERNION& ); - D3DXQUATERNION& operator *= ( float ); - D3DXQUATERNION& operator /= ( float ); - - // unary operators - D3DXQUATERNION operator + () const; - D3DXQUATERNION operator - () const; - - // binary operators - D3DXQUATERNION operator + ( const D3DXQUATERNION& ) const; - D3DXQUATERNION operator - ( const D3DXQUATERNION& ) const; - D3DXQUATERNION operator * ( const D3DXQUATERNION& ) const; - D3DXQUATERNION operator * ( float ) const; - D3DXQUATERNION operator / ( float ) const; - - friend D3DXQUATERNION operator * (float, const D3DXQUATERNION& ); - - BOOL operator == ( const D3DXQUATERNION& ) const; - BOOL operator != ( const D3DXQUATERNION& ) const; - -#endif //__cplusplus - float x, y, z, w; -} D3DXQUATERNION, *LPD3DXQUATERNION; - - -//=========================================================================== -// -// Planes -// -//=========================================================================== -typedef struct D3DXPLANE -{ -#ifdef __cplusplus -public: - D3DXPLANE() {} - D3DXPLANE( const float* ); - D3DXPLANE( float a, float b, float c, float d ); - - // casting - operator float* (); - operator const float* () const; - - // unary operators - D3DXPLANE operator + () const; - D3DXPLANE operator - () const; - - // binary operators - BOOL operator == ( const D3DXPLANE& ) const; - BOOL operator != ( const D3DXPLANE& ) const; - -#endif //__cplusplus - float a, b, c, d; -} D3DXPLANE, *LPD3DXPLANE; - - -//=========================================================================== -// -// Colors -// -//=========================================================================== - -typedef struct D3DXCOLOR -{ -#ifdef __cplusplus -public: - D3DXCOLOR() {} - D3DXCOLOR( DWORD argb ); - D3DXCOLOR( const float * ); - D3DXCOLOR( const D3DCOLORVALUE& ); - D3DXCOLOR( float r, float g, float b, float a ); - - // casting - operator DWORD () const; - - operator float* (); - operator const float* () const; - - operator D3DCOLORVALUE* (); - operator const D3DCOLORVALUE* () const; - - operator D3DCOLORVALUE& (); - operator const D3DCOLORVALUE& () const; - - // assignment operators - D3DXCOLOR& operator += ( const D3DXCOLOR& ); - D3DXCOLOR& operator -= ( const D3DXCOLOR& ); - D3DXCOLOR& operator *= ( float ); - D3DXCOLOR& operator /= ( float ); - - // unary operators - D3DXCOLOR operator + () const; - D3DXCOLOR operator - () const; - - // binary operators - D3DXCOLOR operator + ( const D3DXCOLOR& ) const; - D3DXCOLOR operator - ( const D3DXCOLOR& ) const; - D3DXCOLOR operator * ( float ) const; - D3DXCOLOR operator / ( float ) const; - - friend D3DXCOLOR operator * (float, const D3DXCOLOR& ); - - BOOL operator == ( const D3DXCOLOR& ) const; - BOOL operator != ( const D3DXCOLOR& ) const; - -#endif //__cplusplus - FLOAT r, g, b, a; -} D3DXCOLOR, *LPD3DXCOLOR; - - - -//=========================================================================== -// -// D3DX math functions: -// -// NOTE: -// * All these functions can take the same object as in and out parameters. -// -// * Out parameters are typically also returned as return values, so that -// the output of one function may be used as a parameter to another. -// -//=========================================================================== - -//-------------------------- -// 2D Vector -//-------------------------- - -// inline - -float D3DXVec2Length - ( const D3DXVECTOR2 *pV ); - -float D3DXVec2LengthSq - ( const D3DXVECTOR2 *pV ); - -float D3DXVec2Dot - ( const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2 ); - -// Z component of ((x1,y1,0) cross (x2,y2,0)) -float D3DXVec2CCW - ( const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2 ); - -D3DXVECTOR2* D3DXVec2Add - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2 ); - -D3DXVECTOR2* D3DXVec2Subtract - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2 ); - -// Minimize each component. x = min(x1, x2), y = min(y1, y2) -D3DXVECTOR2* D3DXVec2Minimize - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2 ); - -// Maximize each component. x = max(x1, x2), y = max(y1, y2) -D3DXVECTOR2* D3DXVec2Maximize - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2 ); - -D3DXVECTOR2* D3DXVec2Scale - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV, float s ); - -// Linear interpolation. V1 + s(V2-V1) -D3DXVECTOR2* D3DXVec2Lerp - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2, - float s ); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -D3DXVECTOR2* WINAPI D3DXVec2Normalize - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV ); - -// Hermite interpolation between position V1, tangent T1 (when s == 0) -// and position V2, tangent T2 (when s == 1). -D3DXVECTOR2* WINAPI D3DXVec2Hermite - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pT1, - const D3DXVECTOR2 *pV2, const D3DXVECTOR2 *pT2, float s ); - -// Barycentric coordinates. V1 + f(V2-V1) + g(V3-V1) -D3DXVECTOR2* WINAPI D3DXVec2BaryCentric - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2, - D3DXVECTOR2 *pV3, float f, float g); - -// Transform (x, y, 0, 1) by matrix. -D3DXVECTOR4* WINAPI D3DXVec2Transform - ( D3DXVECTOR4 *pOut, const D3DXVECTOR2 *pV, const D3DXMATRIX *pM ); - -// Transform (x, y, 0, 1) by matrix, project result back into w=1. -D3DXVECTOR2* WINAPI D3DXVec2TransformCoord - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV, const D3DXMATRIX *pM ); - -// Transform (x, y, 0, 0) by matrix. -D3DXVECTOR2* WINAPI D3DXVec2TransformNormal - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV, const D3DXMATRIX *pM ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// 3D Vector -//-------------------------- - -// inline - -float D3DXVec3Length - ( const D3DXVECTOR3 *pV ); - -float D3DXVec3LengthSq - ( const D3DXVECTOR3 *pV ); - -float D3DXVec3Dot - ( const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2 ); - -D3DXVECTOR3* D3DXVec3Cross - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2 ); - -D3DXVECTOR3* D3DXVec3Add - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2 ); - -D3DXVECTOR3* D3DXVec3Subtract - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2 ); - -// Minimize each component. x = min(x1, x2), y = min(y1, y2), ... -D3DXVECTOR3* D3DXVec3Minimize - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2 ); - -// Maximize each component. x = max(x1, x2), y = max(y1, y2), ... -D3DXVECTOR3* D3DXVec3Maximize - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2 ); - -D3DXVECTOR3* D3DXVec3Scale - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV, float s); - -// Linear interpolation. V1 + s(V2-V1) -D3DXVECTOR3* D3DXVec3Lerp - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2, - float s ); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -D3DXVECTOR3* WINAPI D3DXVec3Normalize - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV ); - -// Hermite interpolation between position V1, tangent T1 (when s == 0) -// and position V2, tangent T2 (when s == 1). -D3DXVECTOR3* WINAPI D3DXVec3Hermite - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pT1, - const D3DXVECTOR3 *pV2, const D3DXVECTOR3 *pT2, float s ); - -// Barycentric coordinates. V1 + f(V2-V1) + g(V3-V1) -D3DXVECTOR3* WINAPI D3DXVec3BaryCentric - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2, - const D3DXVECTOR3 *pV3, float f, float g); - -// Transform (x, y, z, 1) by matrix. -D3DXVECTOR4* WINAPI D3DXVec3Transform - ( D3DXVECTOR4 *pOut, const D3DXVECTOR3 *pV, const D3DXMATRIX *pM ); - -// Transform (x, y, z, 1) by matrix, project result back into w=1. -D3DXVECTOR3* WINAPI D3DXVec3TransformCoord - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV, const D3DXMATRIX *pM ); - -// Transform (x, y, z, 0) by matrix. -D3DXVECTOR3* WINAPI D3DXVec3TransformNormal - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV, const D3DXMATRIX *pM ); - -#ifdef __cplusplus -} -#endif - - - -//-------------------------- -// 4D Vector -//-------------------------- - -// inline - -float D3DXVec4Length - ( const D3DXVECTOR4 *pV ); - -float D3DXVec4LengthSq - ( const D3DXVECTOR4 *pV ); - -float D3DXVec4Dot - ( const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2 ); - -D3DXVECTOR4* D3DXVec4Add - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2); - -D3DXVECTOR4* D3DXVec4Subtract - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2); - -// Minimize each component. x = min(x1, x2), y = min(y1, y2), ... -D3DXVECTOR4* D3DXVec4Minimize - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2); - -// Maximize each component. x = max(x1, x2), y = max(y1, y2), ... -D3DXVECTOR4* D3DXVec4Maximize - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2); - -D3DXVECTOR4* D3DXVec4Scale - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV, float s); - -// Linear interpolation. V1 + s(V2-V1) -D3DXVECTOR4* D3DXVec4Lerp - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2, - float s ); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Cross-product in 4 dimensions. -D3DXVECTOR4* WINAPI D3DXVec4Cross - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2, - const D3DXVECTOR4 *pV3); - -D3DXVECTOR4* WINAPI D3DXVec4Normalize - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV ); - -// Hermite interpolation between position V1, tangent T1 (when s == 0) -// and position V2, tangent T2 (when s == 1). -D3DXVECTOR4* WINAPI D3DXVec4Hermite - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pT1, - const D3DXVECTOR4 *pV2, const D3DXVECTOR4 *pT2, float s ); - -// Barycentric coordinates. V1 + f(V2-V1) + g(V3-V1) -D3DXVECTOR4* WINAPI D3DXVec4BaryCentric - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2, - const D3DXVECTOR4 *pV3, float f, float g); - -// Transform vector by matrix. -D3DXVECTOR4* WINAPI D3DXVec4Transform - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV, const D3DXMATRIX *pM ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// 4D Matrix -//-------------------------- - -// inline - -D3DXMATRIX* D3DXMatrixIdentity - ( D3DXMATRIX *pOut ); - -BOOL D3DXMatrixIsIdentity - ( const D3DXMATRIX *pM ); - - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -float WINAPI D3DXMatrixfDeterminant - ( const D3DXMATRIX *pM ); - -// Matrix multiplication. The result represents the transformation M2 -// followed by the transformation M1. (Out = M1 * M2) -D3DXMATRIX* WINAPI D3DXMatrixMultiply - ( D3DXMATRIX *pOut, const D3DXMATRIX *pM1, const D3DXMATRIX *pM2 ); - -D3DXMATRIX* WINAPI D3DXMatrixTranspose - ( D3DXMATRIX *pOut, const D3DXMATRIX *pM ); - -// Calculate inverse of matrix. Inversion my fail, in which case NULL will -// be returned. The determinant of pM is also returned it pfDeterminant -// is non-NULL. -D3DXMATRIX* WINAPI D3DXMatrixInverse - ( D3DXMATRIX *pOut, float *pfDeterminant, const D3DXMATRIX *pM ); - -// Build a matrix which scales by (sx, sy, sz) -D3DXMATRIX* WINAPI D3DXMatrixScaling - ( D3DXMATRIX *pOut, float sx, float sy, float sz ); - -// Build a matrix which translates by (x, y, z) -D3DXMATRIX* WINAPI D3DXMatrixTranslation - ( D3DXMATRIX *pOut, float x, float y, float z ); - -// Build a matrix which rotates around the X axis -D3DXMATRIX* WINAPI D3DXMatrixRotationX - ( D3DXMATRIX *pOut, float angle ); - -// Build a matrix which rotates around the Y axis -D3DXMATRIX* WINAPI D3DXMatrixRotationY - ( D3DXMATRIX *pOut, float angle ); - -// Build a matrix which rotates around the Z axis -D3DXMATRIX* WINAPI D3DXMatrixRotationZ - ( D3DXMATRIX *pOut, float angle ); - -// Build a matrix which rotates around an arbitrary axis -D3DXMATRIX* WINAPI D3DXMatrixRotationAxis - ( D3DXMATRIX *pOut, const D3DXVECTOR3 *pV, float angle ); - -// Build a matrix from a quaternion -D3DXMATRIX* WINAPI D3DXMatrixRotationQuaternion - ( D3DXMATRIX *pOut, const D3DXQUATERNION *pQ); - -// Yaw around the Y axis, a pitch around the X axis, -// and a roll around the Z axis. -D3DXMATRIX* WINAPI D3DXMatrixRotationYawPitchRoll - ( D3DXMATRIX *pOut, float yaw, float pitch, float roll ); - - -// Build transformation matrix. NULL arguments are treated as identity. -// Mout = Msc-1 * Msr-1 * Ms * Msr * Msc * Mrc-1 * Mr * Mrc * Mt -D3DXMATRIX* WINAPI D3DXMatrixTransformation - ( D3DXMATRIX *pOut, const D3DXVECTOR3 *pScalingCenter, - const D3DXQUATERNION *pScalingRotation, const D3DXVECTOR3 *pScaling, - const D3DXVECTOR3 *pRotationCenter, const D3DXQUATERNION *pRotation, - const D3DXVECTOR3 *pTranslation); - -// Build affine transformation matrix. NULL arguments are treated as identity. -// Mout = Ms * Mrc-1 * Mr * Mrc * Mt -D3DXMATRIX* WINAPI D3DXMatrixAffineTransformation - ( D3DXMATRIX *pOut, float Scaling, const D3DXVECTOR3 *pRotationCenter, - const D3DXQUATERNION *pRotation, const D3DXVECTOR3 *pTranslation); - -// Build a lookat matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixLookAt - ( D3DXMATRIX *pOut, const D3DXVECTOR3 *pEye, const D3DXVECTOR3 *pAt, - const D3DXVECTOR3 *pUp ); - -// Build a lookat matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixLookAtLH - ( D3DXMATRIX *pOut, const D3DXVECTOR3 *pEye, const D3DXVECTOR3 *pAt, - const D3DXVECTOR3 *pUp ); - -// Build a perspective projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspective - ( D3DXMATRIX *pOut, float w, float h, float zn, float zf ); - -// Build a perspective projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveLH - ( D3DXMATRIX *pOut, float w, float h, float zn, float zf ); - -// Build a perspective projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveFov - ( D3DXMATRIX *pOut, float fovy, float aspect, float zn, float zf ); - -// Build a perspective projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveFovLH - ( D3DXMATRIX *pOut, float fovy, float aspect, float zn, float zf ); - -// Build a perspective projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveOffCenter - ( D3DXMATRIX *pOut, float l, float r, float b, float t, float zn, - float zf ); - -// Build a perspective projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixPerspectiveOffCenterLH - ( D3DXMATRIX *pOut, float l, float r, float b, float t, float zn, - float zf ); - -// Build an ortho projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixOrtho - ( D3DXMATRIX *pOut, float w, float h, float zn, float zf ); - -// Build an ortho projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixOrthoLH - ( D3DXMATRIX *pOut, float w, float h, float zn, float zf ); - -// Build an ortho projection matrix. (right-handed) -D3DXMATRIX* WINAPI D3DXMatrixOrthoOffCenter - ( D3DXMATRIX *pOut, float l, float r, float b, float t, float zn, - float zf ); - -// Build an ortho projection matrix. (left-handed) -D3DXMATRIX* WINAPI D3DXMatrixOrthoOffCenterLH - ( D3DXMATRIX *pOut, float l, float r, float b, float t, float zn, - float zf ); - -// Build a matrix which flattens geometry into a plane, as if casting -// a shadow from a light. -D3DXMATRIX* WINAPI D3DXMatrixShadow - ( D3DXMATRIX *pOut, const D3DXVECTOR4 *pLight, - const D3DXPLANE *pPlane ); - -// Build a matrix which reflects the coordinate system about a plane -D3DXMATRIX* WINAPI D3DXMatrixReflect - ( D3DXMATRIX *pOut, const D3DXPLANE *pPlane ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// Quaternion -//-------------------------- - -// inline - -float D3DXQuaternionLength - ( const D3DXQUATERNION *pQ ); - -// Length squared, or "norm" -float D3DXQuaternionLengthSq - ( const D3DXQUATERNION *pQ ); - -float D3DXQuaternionDot - ( const D3DXQUATERNION *pQ1, const D3DXQUATERNION *pQ2 ); - -// (0, 0, 0, 1) -D3DXQUATERNION* D3DXQuaternionIdentity - ( D3DXQUATERNION *pOut ); - -BOOL D3DXQuaternionIsIdentity - ( const D3DXQUATERNION *pQ ); - -// (-x, -y, -z, w) -D3DXQUATERNION* D3DXQuaternionConjugate - ( D3DXQUATERNION *pOut, const D3DXQUATERNION *pQ ); - - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Compute a quaternin's axis and angle of rotation. Expects unit quaternions. -void WINAPI D3DXQuaternionToAxisAngle - ( const D3DXQUATERNION *pQ, D3DXVECTOR3 *pAxis, float *pAngle ); - -// Build a quaternion from a rotation matrix. -D3DXQUATERNION* WINAPI D3DXQuaternionRotationMatrix - ( D3DXQUATERNION *pOut, const D3DXMATRIX *pM); - -// Rotation about arbitrary axis. -D3DXQUATERNION* WINAPI D3DXQuaternionRotationAxis - ( D3DXQUATERNION *pOut, const D3DXVECTOR3 *pV, float angle ); - -// Yaw around the Y axis, a pitch around the X axis, -// and a roll around the Z axis. -D3DXQUATERNION* WINAPI D3DXQuaternionRotationYawPitchRoll - ( D3DXQUATERNION *pOut, float yaw, float pitch, float roll ); - -// Quaternion multiplication. The result represents the rotation Q2 -// followed by the rotation Q1. (Out = Q2 * Q1) -D3DXQUATERNION* WINAPI D3DXQuaternionMultiply - ( D3DXQUATERNION *pOut, const D3DXQUATERNION *pQ1, - const D3DXQUATERNION *pQ2 ); - -D3DXQUATERNION* WINAPI D3DXQuaternionNormalize - ( D3DXQUATERNION *pOut, const D3DXQUATERNION *pQ ); - -// Conjugate and re-norm -D3DXQUATERNION* WINAPI D3DXQuaternionInverse - ( D3DXQUATERNION *pOut, const D3DXQUATERNION *pQ ); - -// Expects unit quaternions. -// if q = (cos(theta), sin(theta) * v); ln(q) = (0, theta * v) -D3DXQUATERNION* WINAPI D3DXQuaternionLn - ( D3DXQUATERNION *pOut, const D3DXQUATERNION *pQ ); - -// Expects pure quaternions. (w == 0) w is ignored in calculation. -// if q = (0, theta * v); exp(q) = (cos(theta), sin(theta) * v) -D3DXQUATERNION* WINAPI D3DXQuaternionExp - ( D3DXQUATERNION *pOut, const D3DXQUATERNION *pQ ); - -// Spherical linear interpolation between Q1 (s == 0) and Q2 (s == 1). -// Expects unit quaternions. -D3DXQUATERNION* WINAPI D3DXQuaternionSlerp - ( D3DXQUATERNION *pOut, const D3DXQUATERNION *pQ1, - const D3DXQUATERNION *pQ2, float t ); - -// Spherical quadrangle interpolation. -// Slerp(Slerp(Q1, Q4, t), Slerp(Q2, Q3, t), 2t(1-t)) -D3DXQUATERNION* WINAPI D3DXQuaternionSquad - ( D3DXQUATERNION *pOut, const D3DXQUATERNION *pQ1, - const D3DXQUATERNION *pQ2, const D3DXQUATERNION *pQ3, - const D3DXQUATERNION *pQ4, float t ); - -// Slerp(Slerp(Q1, Q2, f+g), Slerp(Q1, Q3, f+g), g/(f+g)) -D3DXQUATERNION* WINAPI D3DXQuaternionBaryCentric - ( D3DXQUATERNION *pOut, const D3DXQUATERNION *pQ1, - const D3DXQUATERNION *pQ2, const D3DXQUATERNION *pQ3, - float f, float g ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// Plane -//-------------------------- - -// inline - -// ax + by + cz + dw -float D3DXPlaneDot - ( const D3DXPLANE *pP, const D3DXVECTOR4 *pV); - -// ax + by + cz + d -float D3DXPlaneDotCoord - ( const D3DXPLANE *pP, const D3DXVECTOR3 *pV); - -// ax + by + cz -float D3DXPlaneDotNormal - ( const D3DXPLANE *pP, const D3DXVECTOR3 *pV); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Normalize plane (so that |a,b,c| == 1) -D3DXPLANE* WINAPI D3DXPlaneNormalize - ( D3DXPLANE *pOut, const D3DXPLANE *pP); - -// Find the intersection between a plane and a line. If the line is -// parallel to the plane, NULL is returned. -D3DXVECTOR3* WINAPI D3DXPlaneIntersectLine - ( D3DXVECTOR3 *pOut, const D3DXPLANE *pP, const D3DXVECTOR3 *pV1, - const D3DXVECTOR3 *pV2); - -// Construct a plane from a point and a normal -D3DXPLANE* WINAPI D3DXPlaneFromPointNormal - ( D3DXPLANE *pOut, const D3DXVECTOR3 *pPoint, const D3DXVECTOR3 *pNormal); - -// Construct a plane from 3 points -D3DXPLANE* WINAPI D3DXPlaneFromPoints - ( D3DXPLANE *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2, - const D3DXVECTOR3 *pV3); - -// Transform a plane by a matrix. The vector (a,b,c) must be normal. -// M must be an affine transform. -D3DXPLANE* WINAPI D3DXPlaneTransform - ( D3DXPLANE *pOut, const D3DXPLANE *pP, const D3DXMATRIX *pM ); - -#ifdef __cplusplus -} -#endif - - -//-------------------------- -// Color -//-------------------------- - -// inline - -// (1-r, 1-g, 1-b, a) -D3DXCOLOR* D3DXColorNegative - (D3DXCOLOR *pOut, const D3DXCOLOR *pC); - -D3DXCOLOR* D3DXColorAdd - (D3DXCOLOR *pOut, const D3DXCOLOR *pC1, const D3DXCOLOR *pC2); - -D3DXCOLOR* D3DXColorSubtract - (D3DXCOLOR *pOut, const D3DXCOLOR *pC1, const D3DXCOLOR *pC2); - -D3DXCOLOR* D3DXColorScale - (D3DXCOLOR *pOut, const D3DXCOLOR *pC, float s); - -// (r1*r2, g1*g2, b1*b2, a1*a2) -D3DXCOLOR* D3DXColorModulate - (D3DXCOLOR *pOut, const D3DXCOLOR *pC1, const D3DXCOLOR *pC2); - -// Linear interpolation of r,g,b, and a. C1 + s(C2-C1) -D3DXCOLOR* D3DXColorLerp - (D3DXCOLOR *pOut, const D3DXCOLOR *pC1, const D3DXCOLOR *pC2, float s); - -// non-inline -#ifdef __cplusplus -extern "C" { -#endif - -// Interpolate r,g,b between desaturated color and color. -// DesaturatedColor + s(Color - DesaturatedColor) -D3DXCOLOR* WINAPI D3DXColorAdjustSaturation - (D3DXCOLOR *pOut, const D3DXCOLOR *pC, float s); - -// Interpolate r,g,b between 50% grey and color. Grey + s(Color - Grey) -D3DXCOLOR* WINAPI D3DXColorAdjustContrast - (D3DXCOLOR *pOut, const D3DXCOLOR *pC, float c); - -#ifdef __cplusplus -} -#endif - - - - - - -//=========================================================================== -// -// Matrix Stack -// -//=========================================================================== - -DECLARE_INTERFACE_(ID3DXMatrixStack, IUnknown) -{ - // - // IUnknown methods - // - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - // - // ID3DXMatrixStack methods - // - - // Pops the top of the stack, returns the current top - // *after* popping the top. - STDMETHOD(Pop)(THIS) PURE; - - // Pushes the stack by one, duplicating the current matrix. - STDMETHOD(Push)(THIS) PURE; - - // Loads identity in the current matrix. - STDMETHOD(LoadIdentity)(THIS) PURE; - - // Loads the given matrix into the current matrix - STDMETHOD(LoadMatrix)(THIS_ const D3DXMATRIX* pM ) PURE; - - // Right-Multiplies the given matrix to the current matrix. - // (transformation is about the current world origin) - STDMETHOD(MultMatrix)(THIS_ const D3DXMATRIX* pM ) PURE; - - // Left-Multiplies the given matrix to the current matrix - // (transformation is about the local origin of the object) - STDMETHOD(MultMatrixLocal)(THIS_ const D3DXMATRIX* pM ) PURE; - - // Right multiply the current matrix with the computed rotation - // matrix, counterclockwise about the given axis with the given angle. - // (rotation is about the current world origin) - STDMETHOD(RotateAxis) - (THIS_ const D3DXVECTOR3* pV, float angle) PURE; - - // Left multiply the current matrix with the computed rotation - // matrix, counterclockwise about the given axis with the given angle. - // (rotation is about the local origin of the object) - STDMETHOD(RotateAxisLocal) - (THIS_ const D3DXVECTOR3* pV, float angle) PURE; - - // Right multiply the current matrix with the computed rotation - // matrix. All angles are counterclockwise. (rotation is about the - // current world origin) - - // The rotation is composed of a yaw around the Y axis, a pitch around - // the X axis, and a roll around the Z axis. - STDMETHOD(RotateYawPitchRoll) - (THIS_ float yaw, float pitch, float roll) PURE; - - // Left multiply the current matrix with the computed rotation - // matrix. All angles are counterclockwise. (rotation is about the - // local origin of the object) - - // The rotation is composed of a yaw around the Y axis, a pitch around - // the X axis, and a roll around the Z axis. - STDMETHOD(RotateYawPitchRollLocal) - (THIS_ float yaw, float pitch, float roll) PURE; - - // Right multiply the current matrix with the computed scale - // matrix. (transformation is about the current world origin) - STDMETHOD(Scale)(THIS_ float x, float y, float z) PURE; - - // Left multiply the current matrix with the computed scale - // matrix. (transformation is about the local origin of the object) - STDMETHOD(ScaleLocal)(THIS_ float x, float y, float z) PURE; - - // Right multiply the current matrix with the computed translation - // matrix. (transformation is about the current world origin) - STDMETHOD(Translate)(THIS_ float x, float y, float z ) PURE; - - // Left multiply the current matrix with the computed translation - // matrix. (transformation is about the local origin of the object) - STDMETHOD(TranslateLocal)(THIS_ float x, float y, float z) PURE; - - // Obtain the current matrix at the top of the stack - STDMETHOD_(D3DXMATRIX*, GetTop)(THIS) PURE; -}; - -#ifdef __cplusplus -extern "C" { -#endif - -HRESULT WINAPI D3DXCreateMatrixStack( DWORD flags, LPD3DXMATRIXSTACK *ppStack ); - -#ifdef __cplusplus -} -#endif - -#include "d3dxmath.inl" - -#if _MSC_VER >= 1200 -#pragma warning(pop) -#else -#pragma warning(default:4201) -#endif - -#endif // __D3DXMATH_H__ diff --git a/sdk/dx8sdk/Include/d3dxmath.inl b/sdk/dx8sdk/Include/d3dxmath.inl deleted file mode 100644 index 05f04319..00000000 --- a/sdk/dx8sdk/Include/d3dxmath.inl +++ /dev/null @@ -1,1809 +0,0 @@ -////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dxmath.inl -// Content: D3DX math inline functions -// -////////////////////////////////////////////////////////////////////////////// - -#ifndef __D3DXMATH_INL__ -#define __D3DXMATH_INL__ - - -//=========================================================================== -// -// Inline Class Methods -// -//=========================================================================== - -#ifdef __cplusplus - -//-------------------------- -// 2D Vector -//-------------------------- - -D3DXINLINE -D3DXVECTOR2::D3DXVECTOR2( const float *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - x = pf[0]; - y = pf[1]; -} - -D3DXINLINE -D3DXVECTOR2::D3DXVECTOR2( float fx, float fy ) -{ - x = fx; - y = fy; -} - -// casting -D3DXINLINE -D3DXVECTOR2::operator float* () -{ - return (float *) &x; -} - -D3DXINLINE -D3DXVECTOR2::operator const float* () const -{ - return (const float *) &x; -} - -// assignment operators -D3DXINLINE D3DXVECTOR2& -D3DXVECTOR2::operator += ( const D3DXVECTOR2& v ) -{ - x += v.x; - y += v.y; - return *this; -} - -D3DXINLINE D3DXVECTOR2& -D3DXVECTOR2::operator -= ( const D3DXVECTOR2& v ) -{ - x -= v.x; - y -= v.y; - return *this; -} - -D3DXINLINE D3DXVECTOR2& -D3DXVECTOR2::operator *= ( float f ) -{ - x *= f; - y *= f; - return *this; -} - -D3DXINLINE D3DXVECTOR2& -D3DXVECTOR2::operator /= ( float f ) -{ - float fInv = 1.0f / f; - x *= fInv; - y *= fInv; - return *this; -} - -// unary operators -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator - () const -{ - return D3DXVECTOR2(-x, -y); -} - -// binary operators -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator + ( const D3DXVECTOR2& v ) const -{ - return D3DXVECTOR2(x + v.x, y + v.y); -} - -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator - ( const D3DXVECTOR2& v ) const -{ - return D3DXVECTOR2(x - v.x, y - v.y); -} - -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator * ( float f ) const -{ - return D3DXVECTOR2(x * f, y * f); -} - -D3DXINLINE D3DXVECTOR2 -D3DXVECTOR2::operator / ( float f ) const -{ - float fInv = 1.0f / f; - return D3DXVECTOR2(x * fInv, y * fInv); -} - - -D3DXINLINE D3DXVECTOR2 -operator * ( float f, const D3DXVECTOR2& v ) -{ - return D3DXVECTOR2(f * v.x, f * v.y); -} - -D3DXINLINE BOOL -D3DXVECTOR2::operator == ( const D3DXVECTOR2& v ) const -{ - return x == v.x && y == v.y; -} - -D3DXINLINE BOOL -D3DXVECTOR2::operator != ( const D3DXVECTOR2& v ) const -{ - return x != v.x || y != v.y; -} - - - - -//-------------------------- -// 3D Vector -//-------------------------- -D3DXINLINE -D3DXVECTOR3::D3DXVECTOR3( const float *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - x = pf[0]; - y = pf[1]; - z = pf[2]; -} - -D3DXINLINE -D3DXVECTOR3::D3DXVECTOR3( const D3DVECTOR& v ) -{ - x = v.x; - y = v.y; - z = v.z; -} - -D3DXINLINE -D3DXVECTOR3::D3DXVECTOR3( float fx, float fy, float fz ) -{ - x = fx; - y = fy; - z = fz; -} - - -// casting -D3DXINLINE -D3DXVECTOR3::operator float* () -{ - return (float *) &x; -} - -D3DXINLINE -D3DXVECTOR3::operator const float* () const -{ - return (const float *) &x; -} - - -D3DXINLINE -D3DXVECTOR3::operator D3DVECTOR* () -{ - return (D3DVECTOR *) &x; -} - -D3DXINLINE -D3DXVECTOR3::operator const D3DVECTOR* () const -{ - return (const D3DVECTOR *) &x; -} - - -D3DXINLINE -D3DXVECTOR3::operator D3DVECTOR& () -{ - return *((D3DVECTOR *) &x); -} - -D3DXINLINE -D3DXVECTOR3::operator const D3DVECTOR& () const -{ - return *((const D3DVECTOR *) &x); -} - - -// assignment operators -D3DXINLINE D3DXVECTOR3& -D3DXVECTOR3::operator += ( const D3DXVECTOR3& v ) -{ - x += v.x; - y += v.y; - z += v.z; - return *this; -} - -D3DXINLINE D3DXVECTOR3& -D3DXVECTOR3::operator -= ( const D3DXVECTOR3& v ) -{ - x -= v.x; - y -= v.y; - z -= v.z; - return *this; -} - -D3DXINLINE D3DXVECTOR3& -D3DXVECTOR3::operator *= ( float f ) -{ - x *= f; - y *= f; - z *= f; - return *this; -} - -D3DXINLINE D3DXVECTOR3& -D3DXVECTOR3::operator /= ( float f ) -{ - float fInv = 1.0f / f; - x *= fInv; - y *= fInv; - z *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator - () const -{ - return D3DXVECTOR3(-x, -y, -z); -} - - -// binary operators -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator + ( const D3DXVECTOR3& v ) const -{ - return D3DXVECTOR3(x + v.x, y + v.y, z + v.z); -} - -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator - ( const D3DXVECTOR3& v ) const -{ - return D3DXVECTOR3(x - v.x, y - v.y, z - v.z); -} - -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator * ( float f ) const -{ - return D3DXVECTOR3(x * f, y * f, z * f); -} - -D3DXINLINE D3DXVECTOR3 -D3DXVECTOR3::operator / ( float f ) const -{ - float fInv = 1.0f / f; - return D3DXVECTOR3(x * fInv, y * fInv, z * fInv); -} - - -D3DXINLINE D3DXVECTOR3 -operator * ( float f, const struct D3DXVECTOR3& v ) -{ - return D3DXVECTOR3(f * v.x, f * v.y, f * v.z); -} - - -D3DXINLINE BOOL -D3DXVECTOR3::operator == ( const D3DXVECTOR3& v ) const -{ - return x == v.x && y == v.y && z == v.z; -} - -D3DXINLINE BOOL -D3DXVECTOR3::operator != ( const D3DXVECTOR3& v ) const -{ - return x != v.x || y != v.y || z != v.z; -} - - - -//-------------------------- -// 4D Vector -//-------------------------- -D3DXINLINE -D3DXVECTOR4::D3DXVECTOR4( const float *pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - x = pf[0]; - y = pf[1]; - z = pf[2]; - w = pf[3]; -} - -D3DXINLINE -D3DXVECTOR4::D3DXVECTOR4( float fx, float fy, float fz, float fw ) -{ - x = fx; - y = fy; - z = fz; - w = fw; -} - - -// casting -D3DXINLINE -D3DXVECTOR4::operator float* () -{ - return (float *) &x; -} - -D3DXINLINE -D3DXVECTOR4::operator const float* () const -{ - return (const float *) &x; -} - - -// assignment operators -D3DXINLINE D3DXVECTOR4& -D3DXVECTOR4::operator += ( const D3DXVECTOR4& v ) -{ - x += v.x; - y += v.y; - z += v.z; - w += v.w; - return *this; -} - -D3DXINLINE D3DXVECTOR4& -D3DXVECTOR4::operator -= ( const D3DXVECTOR4& v ) -{ - x -= v.x; - y -= v.y; - z -= v.z; - w -= v.w; - return *this; -} - -D3DXINLINE D3DXVECTOR4& -D3DXVECTOR4::operator *= ( float f ) -{ - x *= f; - y *= f; - z *= f; - w *= f; - return *this; -} - -D3DXINLINE D3DXVECTOR4& -D3DXVECTOR4::operator /= ( float f ) -{ - float fInv = 1.0f / f; - x *= fInv; - y *= fInv; - z *= fInv; - w *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator - () const -{ - return D3DXVECTOR4(-x, -y, -z, -w); -} - - -// binary operators -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator + ( const D3DXVECTOR4& v ) const -{ - return D3DXVECTOR4(x + v.x, y + v.y, z + v.z, w + v.w); -} - -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator - ( const D3DXVECTOR4& v ) const -{ - return D3DXVECTOR4(x - v.x, y - v.y, z - v.z, w - v.w); -} - -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator * ( float f ) const -{ - return D3DXVECTOR4(x * f, y * f, z * f, w * f); -} - -D3DXINLINE D3DXVECTOR4 -D3DXVECTOR4::operator / ( float f ) const -{ - float fInv = 1.0f / f; - return D3DXVECTOR4(x * fInv, y * fInv, z * fInv, w * fInv); -} - - -D3DXINLINE D3DXVECTOR4 -operator * ( float f, const D3DXVECTOR4& v ) -{ - return D3DXVECTOR4(f * v.x, f * v.y, f * v.z, f * v.w); -} - - -D3DXINLINE BOOL -D3DXVECTOR4::operator == ( const D3DXVECTOR4& v ) const -{ - return x == v.x && y == v.y && z == v.z && w == v.w; -} - -D3DXINLINE BOOL -D3DXVECTOR4::operator != ( const D3DXVECTOR4& v ) const -{ - return x != v.x || y != v.y || z != v.z || w != v.w; -} - - -//-------------------------- -// Matrix -//-------------------------- -D3DXINLINE -D3DXMATRIX::D3DXMATRIX( const float* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - memcpy(&m00, pf, sizeof(D3DXMATRIX)); -} - -D3DXINLINE -D3DXMATRIX::D3DXMATRIX( const D3DMATRIX& mat ) -{ - memcpy(&m00, &mat, sizeof(D3DXMATRIX)); -} - -D3DXINLINE -D3DXMATRIX::D3DXMATRIX( float f00, float f01, float f02, float f03, - float f10, float f11, float f12, float f13, - float f20, float f21, float f22, float f23, - float f30, float f31, float f32, float f33 ) -{ - m00 = f00; m01 = f01; m02 = f02; m03 = f03; - m10 = f10; m11 = f11; m12 = f12; m13 = f13; - m20 = f20; m21 = f21; m22 = f22; m23 = f23; - m30 = f30; m31 = f31; m32 = f32; m33 = f33; -} - - - -// access grants -D3DXINLINE float& -D3DXMATRIX::operator () ( UINT iRow, UINT iCol ) -{ - return m[iRow][iCol]; -} - -D3DXINLINE float -D3DXMATRIX::operator () ( UINT iRow, UINT iCol ) const -{ - return m[iRow][iCol]; -} - - -// casting operators -D3DXINLINE -D3DXMATRIX::operator float* () -{ - return (float *) &m00; -} - -D3DXINLINE -D3DXMATRIX::operator const float* () const -{ - return (const float *) &m00; -} - - -D3DXINLINE -D3DXMATRIX::operator D3DMATRIX* () -{ - return (D3DMATRIX *) &m00; -} - -D3DXINLINE -D3DXMATRIX::operator const D3DMATRIX* () const -{ - return (const D3DMATRIX *) &m00; -} - - -D3DXINLINE -D3DXMATRIX::operator D3DMATRIX& () -{ - return *((D3DMATRIX *) &m00); -} - -D3DXINLINE -D3DXMATRIX::operator const D3DMATRIX& () const -{ - return *((const D3DMATRIX *) &m00); -} - - -// assignment operators -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator *= ( const D3DXMATRIX& mat ) -{ - D3DXMatrixMultiply(this, this, &mat); - return *this; -} - -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator += ( const D3DXMATRIX& mat ) -{ - m00 += mat.m00; m01 += mat.m01; m02 += mat.m02; m03 += mat.m03; - m10 += mat.m10; m11 += mat.m11; m12 += mat.m12; m13 += mat.m13; - m20 += mat.m20; m21 += mat.m21; m22 += mat.m22; m23 += mat.m23; - m30 += mat.m30; m31 += mat.m31; m32 += mat.m32; m33 += mat.m33; - return *this; -} - -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator -= ( const D3DXMATRIX& mat ) -{ - m00 -= mat.m00; m01 -= mat.m01; m02 -= mat.m02; m03 -= mat.m03; - m10 -= mat.m10; m11 -= mat.m11; m12 -= mat.m12; m13 -= mat.m13; - m20 -= mat.m20; m21 -= mat.m21; m22 -= mat.m22; m23 -= mat.m23; - m30 -= mat.m30; m31 -= mat.m31; m32 -= mat.m32; m33 -= mat.m33; - return *this; -} - -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator *= ( float f ) -{ - m00 *= f; m01 *= f; m02 *= f; m03 *= f; - m10 *= f; m11 *= f; m12 *= f; m13 *= f; - m20 *= f; m21 *= f; m22 *= f; m23 *= f; - m30 *= f; m31 *= f; m32 *= f; m33 *= f; - return *this; -} - -D3DXINLINE D3DXMATRIX& -D3DXMATRIX::operator /= ( float f ) -{ - float fInv = 1.0f / f; - m00 *= fInv; m01 *= fInv; m02 *= fInv; m03 *= fInv; - m10 *= fInv; m11 *= fInv; m12 *= fInv; m13 *= fInv; - m20 *= fInv; m21 *= fInv; m22 *= fInv; m23 *= fInv; - m30 *= fInv; m31 *= fInv; m32 *= fInv; m33 *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator - () const -{ - return D3DXMATRIX(-m00, -m01, -m02, -m03, - -m10, -m11, -m12, -m13, - -m20, -m21, -m22, -m23, - -m30, -m31, -m32, -m33); -} - - -// binary operators -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator * ( const D3DXMATRIX& mat ) const -{ - D3DXMATRIX matT; - D3DXMatrixMultiply(&matT, this, &mat); - return matT; -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator + ( const D3DXMATRIX& mat ) const -{ - return D3DXMATRIX(m00 + mat.m00, m01 + mat.m01, m02 + mat.m02, m03 + mat.m03, - m10 + mat.m10, m11 + mat.m11, m12 + mat.m12, m13 + mat.m13, - m20 + mat.m20, m21 + mat.m21, m22 + mat.m22, m23 + mat.m23, - m30 + mat.m30, m31 + mat.m31, m32 + mat.m32, m33 + mat.m33); -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator - ( const D3DXMATRIX& mat ) const -{ - return D3DXMATRIX(m00 - mat.m00, m01 - mat.m01, m02 - mat.m02, m03 - mat.m03, - m10 - mat.m10, m11 - mat.m11, m12 - mat.m12, m13 - mat.m13, - m20 - mat.m20, m21 - mat.m21, m22 - mat.m22, m23 - mat.m23, - m30 - mat.m30, m31 - mat.m31, m32 - mat.m32, m33 - mat.m33); -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator * ( float f ) const -{ - return D3DXMATRIX(m00 * f, m01 * f, m02 * f, m03 * f, - m10 * f, m11 * f, m12 * f, m13 * f, - m20 * f, m21 * f, m22 * f, m23 * f, - m30 * f, m31 * f, m32 * f, m33 * f); -} - -D3DXINLINE D3DXMATRIX -D3DXMATRIX::operator / ( float f ) const -{ - float fInv = 1.0f / f; - return D3DXMATRIX(m00 * fInv, m01 * fInv, m02 * fInv, m03 * fInv, - m10 * fInv, m11 * fInv, m12 * fInv, m13 * fInv, - m20 * fInv, m21 * fInv, m22 * fInv, m23 * fInv, - m30 * fInv, m31 * fInv, m32 * fInv, m33 * fInv); -} - - -D3DXINLINE D3DXMATRIX -operator * ( float f, const D3DXMATRIX& mat ) -{ - return D3DXMATRIX(f * mat.m00, f * mat.m01, f * mat.m02, f * mat.m03, - f * mat.m10, f * mat.m11, f * mat.m12, f * mat.m13, - f * mat.m20, f * mat.m21, f * mat.m22, f * mat.m23, - f * mat.m30, f * mat.m31, f * mat.m32, f * mat.m33); -} - - -D3DXINLINE BOOL -D3DXMATRIX::operator == ( const D3DXMATRIX& mat ) const -{ - return 0 == memcmp(this, &mat, sizeof(D3DXMATRIX)); -} - -D3DXINLINE BOOL -D3DXMATRIX::operator != ( const D3DXMATRIX& mat ) const -{ - return 0 != memcmp(this, &mat, sizeof(D3DXMATRIX)); -} - - - -//-------------------------- -// Quaternion -//-------------------------- - -D3DXINLINE -D3DXQUATERNION::D3DXQUATERNION( const float* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - x = pf[0]; - y = pf[1]; - z = pf[2]; - w = pf[3]; -} - -D3DXINLINE -D3DXQUATERNION::D3DXQUATERNION( float fx, float fy, float fz, float fw ) -{ - x = fx; - y = fy; - z = fz; - w = fw; -} - - -// casting -D3DXINLINE -D3DXQUATERNION::operator float* () -{ - return (float *) &x; -} - -D3DXINLINE -D3DXQUATERNION::operator const float* () const -{ - return (const float *) &x; -} - - -// assignment operators -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator += ( const D3DXQUATERNION& q ) -{ - x += q.x; - y += q.y; - z += q.z; - w += q.w; - return *this; -} - -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator -= ( const D3DXQUATERNION& q ) -{ - x -= q.x; - y -= q.y; - z -= q.z; - w -= q.w; - return *this; -} - -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator *= ( const D3DXQUATERNION& q ) -{ - D3DXQuaternionMultiply(this, this, &q); - return *this; -} - -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator *= ( float f ) -{ - x *= f; - y *= f; - z *= f; - w *= f; - return *this; -} - -D3DXINLINE D3DXQUATERNION& -D3DXQUATERNION::operator /= ( float f ) -{ - float fInv = 1.0f / f; - x *= fInv; - y *= fInv; - z *= fInv; - w *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator - () const -{ - return D3DXQUATERNION(-x, -y, -z, -w); -} - - -// binary operators -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator + ( const D3DXQUATERNION& q ) const -{ - return D3DXQUATERNION(x + q.x, y + q.y, z + q.z, w + q.w); -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator - ( const D3DXQUATERNION& q ) const -{ - return D3DXQUATERNION(x - q.x, y - q.y, z - q.z, w - q.w); -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator * ( const D3DXQUATERNION& q ) const -{ - D3DXQUATERNION qT; - D3DXQuaternionMultiply(&qT, this, &q); - return qT; -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator * ( float f ) const -{ - return D3DXQUATERNION(x * f, y * f, z * f, w * f); -} - -D3DXINLINE D3DXQUATERNION -D3DXQUATERNION::operator / ( float f ) const -{ - float fInv = 1.0f / f; - return D3DXQUATERNION(x * fInv, y * fInv, z * fInv, w * fInv); -} - - -D3DXINLINE D3DXQUATERNION -operator * (float f, const D3DXQUATERNION& q ) -{ - return D3DXQUATERNION(f * q.x, f * q.y, f * q.z, f * q.w); -} - - -D3DXINLINE BOOL -D3DXQUATERNION::operator == ( const D3DXQUATERNION& q ) const -{ - return x == q.x && y == q.y && z == q.z && w == q.w; -} - -D3DXINLINE BOOL -D3DXQUATERNION::operator != ( const D3DXQUATERNION& q ) const -{ - return x != q.x || y != q.y || z != q.z || w != q.w; -} - - - -//-------------------------- -// Plane -//-------------------------- - -D3DXINLINE -D3DXPLANE::D3DXPLANE( const float* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - a = pf[0]; - b = pf[1]; - c = pf[2]; - d = pf[3]; -} - -D3DXINLINE -D3DXPLANE::D3DXPLANE( float fa, float fb, float fc, float fd ) -{ - a = fa; - b = fb; - c = fc; - d = fd; -} - - -// casting -D3DXINLINE -D3DXPLANE::operator float* () -{ - return (float *) &a; -} - -D3DXINLINE -D3DXPLANE::operator const float* () const -{ - return (const float *) &a; -} - - -// unary operators -D3DXINLINE D3DXPLANE -D3DXPLANE::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXPLANE -D3DXPLANE::operator - () const -{ - return D3DXPLANE(-a, -b, -c, -d); -} - - -// binary operators -D3DXINLINE BOOL -D3DXPLANE::operator == ( const D3DXPLANE& p ) const -{ - return a == p.a && b == p.b && c == p.c && d == p.d; -} - -D3DXINLINE BOOL -D3DXPLANE::operator != ( const D3DXPLANE& p ) const -{ - return a != p.a || b != p.b || c != p.c || d != p.d; -} - - - - -//-------------------------- -// Color -//-------------------------- - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( DWORD dw ) -{ - const float f = 1.0f / 255.0f; - r = f * (float) (unsigned char) (dw >> 16); - g = f * (float) (unsigned char) (dw >> 8); - b = f * (float) (unsigned char) (dw >> 0); - a = f * (float) (unsigned char) (dw >> 24); -} - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( const float* pf ) -{ -#ifdef D3DX_DEBUG - if(!pf) - return; -#endif - - r = pf[0]; - g = pf[1]; - b = pf[2]; - a = pf[3]; -} - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( const D3DCOLORVALUE& c ) -{ - r = c.r; - g = c.g; - b = c.b; - a = c.a; -} - -D3DXINLINE -D3DXCOLOR::D3DXCOLOR( float fr, float fg, float fb, float fa ) -{ - r = fr; - g = fg; - b = fb; - a = fa; -} - - -// casting -D3DXINLINE -D3DXCOLOR::operator DWORD () const -{ - DWORD dwR = r >= 1.0f ? 0xff : r <= 0.0f ? 0x00 : (DWORD) (r * 255.0f + 0.5f); - DWORD dwG = g >= 1.0f ? 0xff : g <= 0.0f ? 0x00 : (DWORD) (g * 255.0f + 0.5f); - DWORD dwB = b >= 1.0f ? 0xff : b <= 0.0f ? 0x00 : (DWORD) (b * 255.0f + 0.5f); - DWORD dwA = a >= 1.0f ? 0xff : a <= 0.0f ? 0x00 : (DWORD) (a * 255.0f + 0.5f); - - return (dwA << 24) | (dwR << 16) | (dwG << 8) | dwB; -} - - -D3DXINLINE -D3DXCOLOR::operator float * () -{ - return (float *) &r; -} - -D3DXINLINE -D3DXCOLOR::operator const float * () const -{ - return (const float *) &r; -} - - -D3DXINLINE -D3DXCOLOR::operator D3DCOLORVALUE * () -{ - return (D3DCOLORVALUE *) &r; -} - -D3DXINLINE -D3DXCOLOR::operator const D3DCOLORVALUE * () const -{ - return (const D3DCOLORVALUE *) &r; -} - - -D3DXINLINE -D3DXCOLOR::operator D3DCOLORVALUE& () -{ - return *((D3DCOLORVALUE *) &r); -} - -D3DXINLINE -D3DXCOLOR::operator const D3DCOLORVALUE& () const -{ - return *((const D3DCOLORVALUE *) &r); -} - - -// assignment operators -D3DXINLINE D3DXCOLOR& -D3DXCOLOR::operator += ( const D3DXCOLOR& c ) -{ - r += c.r; - g += c.g; - b += c.b; - a += c.a; - return *this; -} - -D3DXINLINE D3DXCOLOR& -D3DXCOLOR::operator -= ( const D3DXCOLOR& c ) -{ - r -= c.r; - g -= c.g; - b -= c.b; - a -= c.a; - return *this; -} - -D3DXINLINE D3DXCOLOR& -D3DXCOLOR::operator *= ( float f ) -{ - r *= f; - g *= f; - b *= f; - a *= f; - return *this; -} - -D3DXINLINE D3DXCOLOR& -D3DXCOLOR::operator /= ( float f ) -{ - float fInv = 1.0f / f; - r *= fInv; - g *= fInv; - b *= fInv; - a *= fInv; - return *this; -} - - -// unary operators -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator + () const -{ - return *this; -} - -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator - () const -{ - return D3DXCOLOR(-r, -g, -b, -a); -} - - -// binary operators -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator + ( const D3DXCOLOR& c ) const -{ - return D3DXCOLOR(r + c.r, g + c.g, b + c.b, a + c.a); -} - -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator - ( const D3DXCOLOR& c ) const -{ - return D3DXCOLOR(r - c.r, g - c.g, b - c.b, a - c.a); -} - -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator * ( float f ) const -{ - return D3DXCOLOR(r * f, g * f, b * f, a * f); -} - -D3DXINLINE D3DXCOLOR -D3DXCOLOR::operator / ( float f ) const -{ - float fInv = 1.0f / f; - return D3DXCOLOR(r * fInv, g * fInv, b * fInv, a * fInv); -} - - -D3DXINLINE D3DXCOLOR -operator * (float f, const D3DXCOLOR& c ) -{ - return D3DXCOLOR(f * c.r, f * c.g, f * c.b, f * c.a); -} - - -D3DXINLINE BOOL -D3DXCOLOR::operator == ( const D3DXCOLOR& c ) const -{ - return r == c.r && g == c.g && b == c.b && a == c.a; -} - -D3DXINLINE BOOL -D3DXCOLOR::operator != ( const D3DXCOLOR& c ) const -{ - return r != c.r || g != c.g || b != c.b || a != c.a; -} - - -#endif //__cplusplus - - - -//=========================================================================== -// -// Inline functions -// -//=========================================================================== - - -//-------------------------- -// 2D Vector -//-------------------------- - -D3DXINLINE float D3DXVec2Length - ( const D3DXVECTOR2 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - -#ifdef __cplusplus - return sqrtf(pV->x * pV->x + pV->y * pV->y); -#else - return (float) sqrt(pV->x * pV->x + pV->y * pV->y); -#endif -} - -D3DXINLINE float D3DXVec2LengthSq - ( const D3DXVECTOR2 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - - return pV->x * pV->x + pV->y * pV->y; -} - -D3DXINLINE float D3DXVec2Dot - ( const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pV1 || !pV2) - return 0.0f; -#endif - - return pV1->x * pV2->x + pV1->y * pV2->y; -} - -D3DXINLINE float D3DXVec2CCW - ( const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pV1 || !pV2) - return 0.0f; -#endif - - return pV1->x * pV2->y - pV1->y * pV2->x; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Add - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + pV2->x; - pOut->y = pV1->y + pV2->y; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Subtract - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x - pV2->x; - pOut->y = pV1->y - pV2->y; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Minimize - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x < pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y < pV2->y ? pV1->y : pV2->y; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Maximize - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x > pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y > pV2->y ? pV1->y : pV2->y; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Scale - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV, float s ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV) - return NULL; -#endif - - pOut->x = pV->x * s; - pOut->y = pV->y * s; - return pOut; -} - -D3DXINLINE D3DXVECTOR2* D3DXVec2Lerp - ( D3DXVECTOR2 *pOut, const D3DXVECTOR2 *pV1, const D3DXVECTOR2 *pV2, - float s ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + s * (pV2->x - pV1->x); - pOut->y = pV1->y + s * (pV2->y - pV1->y); - return pOut; -} - - -//-------------------------- -// 3D Vector -//-------------------------- - -D3DXINLINE float D3DXVec3Length - ( const D3DXVECTOR3 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - -#ifdef __cplusplus - return sqrtf(pV->x * pV->x + pV->y * pV->y + pV->z * pV->z); -#else - return (float) sqrt(pV->x * pV->x + pV->y * pV->y + pV->z * pV->z); -#endif -} - -D3DXINLINE float D3DXVec3LengthSq - ( const D3DXVECTOR3 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - - return pV->x * pV->x + pV->y * pV->y + pV->z * pV->z; -} - -D3DXINLINE float D3DXVec3Dot - ( const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pV1 || !pV2) - return 0.0f; -#endif - - return pV1->x * pV2->x + pV1->y * pV2->y + pV1->z * pV2->z; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Cross - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2 ) -{ - D3DXVECTOR3 v; - -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - v.x = pV1->y * pV2->z - pV1->z * pV2->y; - v.y = pV1->z * pV2->x - pV1->x * pV2->z; - v.z = pV1->x * pV2->y - pV1->y * pV2->x; - - *pOut = v; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Add - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + pV2->x; - pOut->y = pV1->y + pV2->y; - pOut->z = pV1->z + pV2->z; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Subtract - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x - pV2->x; - pOut->y = pV1->y - pV2->y; - pOut->z = pV1->z - pV2->z; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Minimize - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x < pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y < pV2->y ? pV1->y : pV2->y; - pOut->z = pV1->z < pV2->z ? pV1->z : pV2->z; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Maximize - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x > pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y > pV2->y ? pV1->y : pV2->y; - pOut->z = pV1->z > pV2->z ? pV1->z : pV2->z; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Scale - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV, float s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV) - return NULL; -#endif - - pOut->x = pV->x * s; - pOut->y = pV->y * s; - pOut->z = pV->z * s; - return pOut; -} - -D3DXINLINE D3DXVECTOR3* D3DXVec3Lerp - ( D3DXVECTOR3 *pOut, const D3DXVECTOR3 *pV1, const D3DXVECTOR3 *pV2, - float s ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + s * (pV2->x - pV1->x); - pOut->y = pV1->y + s * (pV2->y - pV1->y); - pOut->z = pV1->z + s * (pV2->z - pV1->z); - return pOut; -} - - -//-------------------------- -// 4D Vector -//-------------------------- - -D3DXINLINE float D3DXVec4Length - ( const D3DXVECTOR4 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - -#ifdef __cplusplus - return sqrtf(pV->x * pV->x + pV->y * pV->y + pV->z * pV->z + pV->w * pV->w); -#else - return (float) sqrt(pV->x * pV->x + pV->y * pV->y + pV->z * pV->z + pV->w * pV->w); -#endif -} - -D3DXINLINE float D3DXVec4LengthSq - ( const D3DXVECTOR4 *pV ) -{ -#ifdef D3DX_DEBUG - if(!pV) - return 0.0f; -#endif - - return pV->x * pV->x + pV->y * pV->y + pV->z * pV->z + pV->w * pV->w; -} - -D3DXINLINE float D3DXVec4Dot - ( const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2 ) -{ -#ifdef D3DX_DEBUG - if(!pV1 || !pV2) - return 0.0f; -#endif - - return pV1->x * pV2->x + pV1->y * pV2->y + pV1->z * pV2->z + pV1->w * pV2->w; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Add - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + pV2->x; - pOut->y = pV1->y + pV2->y; - pOut->z = pV1->z + pV2->z; - pOut->w = pV1->w + pV2->w; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Subtract - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x - pV2->x; - pOut->y = pV1->y - pV2->y; - pOut->z = pV1->z - pV2->z; - pOut->w = pV1->w - pV2->w; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Minimize - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x < pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y < pV2->y ? pV1->y : pV2->y; - pOut->z = pV1->z < pV2->z ? pV1->z : pV2->z; - pOut->w = pV1->w < pV2->w ? pV1->w : pV2->w; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Maximize - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x > pV2->x ? pV1->x : pV2->x; - pOut->y = pV1->y > pV2->y ? pV1->y : pV2->y; - pOut->z = pV1->z > pV2->z ? pV1->z : pV2->z; - pOut->w = pV1->w > pV2->w ? pV1->w : pV2->w; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Scale - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV, float s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV) - return NULL; -#endif - - pOut->x = pV->x * s; - pOut->y = pV->y * s; - pOut->z = pV->z * s; - pOut->w = pV->w * s; - return pOut; -} - -D3DXINLINE D3DXVECTOR4* D3DXVec4Lerp - ( D3DXVECTOR4 *pOut, const D3DXVECTOR4 *pV1, const D3DXVECTOR4 *pV2, - float s ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pV1 || !pV2) - return NULL; -#endif - - pOut->x = pV1->x + s * (pV2->x - pV1->x); - pOut->y = pV1->y + s * (pV2->y - pV1->y); - pOut->z = pV1->z + s * (pV2->z - pV1->z); - pOut->w = pV1->w + s * (pV2->w - pV1->w); - return pOut; -} - - -//-------------------------- -// 4D Matrix -//-------------------------- - -D3DXINLINE D3DXMATRIX* D3DXMatrixIdentity - ( D3DXMATRIX *pOut ) -{ -#ifdef D3DX_DEBUG - if(!pOut) - return NULL; -#endif - - pOut->m[0][1] = pOut->m[0][2] = pOut->m[0][3] = - pOut->m[1][0] = pOut->m[1][2] = pOut->m[1][3] = - pOut->m[2][0] = pOut->m[2][1] = pOut->m[2][3] = - pOut->m[3][0] = pOut->m[3][1] = pOut->m[3][2] = 0.0f; - - pOut->m[0][0] = pOut->m[1][1] = pOut->m[2][2] = pOut->m[3][3] = 1.0f; - return pOut; -} - - -D3DXINLINE BOOL D3DXMatrixIsIdentity - ( const D3DXMATRIX *pM ) -{ -#ifdef D3DX_DEBUG - if(!pM) - return FALSE; -#endif - - return pM->m[0][0] == 1.0f && pM->m[0][1] == 0.0f && pM->m[0][2] == 0.0f && pM->m[0][3] == 0.0f && - pM->m[1][0] == 0.0f && pM->m[1][1] == 1.0f && pM->m[1][2] == 0.0f && pM->m[1][3] == 0.0f && - pM->m[2][0] == 0.0f && pM->m[2][1] == 0.0f && pM->m[2][2] == 1.0f && pM->m[2][3] == 0.0f && - pM->m[3][0] == 0.0f && pM->m[3][1] == 0.0f && pM->m[3][2] == 0.0f && pM->m[3][3] == 1.0f; -} - - -//-------------------------- -// Quaternion -//-------------------------- - -D3DXINLINE float D3DXQuaternionLength - ( const D3DXQUATERNION *pQ ) -{ -#ifdef D3DX_DEBUG - if(!pQ) - return 0.0f; -#endif - -#ifdef __cplusplus - return sqrtf(pQ->x * pQ->x + pQ->y * pQ->y + pQ->z * pQ->z + pQ->w * pQ->w); -#else - return (float) sqrt(pQ->x * pQ->x + pQ->y * pQ->y + pQ->z * pQ->z + pQ->w * pQ->w); -#endif -} - -D3DXINLINE float D3DXQuaternionLengthSq - ( const D3DXQUATERNION *pQ ) -{ -#ifdef D3DX_DEBUG - if(!pQ) - return 0.0f; -#endif - - return pQ->x * pQ->x + pQ->y * pQ->y + pQ->z * pQ->z + pQ->w * pQ->w; -} - -D3DXINLINE float D3DXQuaternionDot - ( const D3DXQUATERNION *pQ1, const D3DXQUATERNION *pQ2 ) -{ -#ifdef D3DX_DEBUG - if(!pQ1 || !pQ2) - return 0.0f; -#endif - - return pQ1->x * pQ2->x + pQ1->y * pQ2->y + pQ1->z * pQ2->z + pQ1->w * pQ2->w; -} - - -D3DXINLINE D3DXQUATERNION* D3DXQuaternionIdentity - ( D3DXQUATERNION *pOut ) -{ -#ifdef D3DX_DEBUG - if(!pOut) - return NULL; -#endif - - pOut->x = pOut->y = pOut->z = 0.0f; - pOut->w = 1.0f; - return pOut; -} - -D3DXINLINE BOOL D3DXQuaternionIsIdentity - ( const D3DXQUATERNION *pQ ) -{ -#ifdef D3DX_DEBUG - if(!pQ) - return FALSE; -#endif - - return pQ->x == 0.0f && pQ->y == 0.0f && pQ->z == 0.0f && pQ->w == 1.0f; -} - - -D3DXINLINE D3DXQUATERNION* D3DXQuaternionConjugate - ( D3DXQUATERNION *pOut, const D3DXQUATERNION *pQ ) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pQ) - return NULL; -#endif - - pOut->x = -pQ->x; - pOut->y = -pQ->y; - pOut->z = -pQ->z; - pOut->w = pQ->w; - return pOut; -} - - -//-------------------------- -// Plane -//-------------------------- - -D3DXINLINE float D3DXPlaneDot - ( const D3DXPLANE *pP, const D3DXVECTOR4 *pV) -{ -#ifdef D3DX_DEBUG - if(!pP || !pV) - return 0.0f; -#endif - - return pP->a * pV->x + pP->b * pV->y + pP->c * pV->z + pP->d * pV->w; -} - -D3DXINLINE float D3DXPlaneDotCoord - ( const D3DXPLANE *pP, const D3DXVECTOR3 *pV) -{ -#ifdef D3DX_DEBUG - if(!pP || !pV) - return 0.0f; -#endif - - return pP->a * pV->x + pP->b * pV->y + pP->c * pV->z + pP->d; -} - -D3DXINLINE float D3DXPlaneDotNormal - ( const D3DXPLANE *pP, const D3DXVECTOR3 *pV) -{ -#ifdef D3DX_DEBUG - if(!pP || !pV) - return 0.0f; -#endif - - return pP->a * pV->x + pP->b * pV->y + pP->c * pV->z; -} - - -//-------------------------- -// Color -//-------------------------- - -D3DXINLINE D3DXCOLOR* D3DXColorNegative - (D3DXCOLOR *pOut, const D3DXCOLOR *pC) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC) - return NULL; -#endif - - pOut->r = 1.0f - pC->r; - pOut->g = 1.0f - pC->g; - pOut->b = 1.0f - pC->b; - pOut->a = pC->a; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorAdd - (D3DXCOLOR *pOut, const D3DXCOLOR *pC1, const D3DXCOLOR *pC2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC1 || !pC2) - return NULL; -#endif - - pOut->r = pC1->r + pC2->r; - pOut->g = pC1->g + pC2->g; - pOut->b = pC1->b + pC2->b; - pOut->a = pC1->a + pC2->a; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorSubtract - (D3DXCOLOR *pOut, const D3DXCOLOR *pC1, const D3DXCOLOR *pC2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC1 || !pC2) - return NULL; -#endif - - pOut->r = pC1->r - pC2->r; - pOut->g = pC1->g - pC2->g; - pOut->b = pC1->b - pC2->b; - pOut->a = pC1->a - pC2->a; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorScale - (D3DXCOLOR *pOut, const D3DXCOLOR *pC, float s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC) - return NULL; -#endif - - pOut->r = pC->r * s; - pOut->g = pC->g * s; - pOut->b = pC->b * s; - pOut->a = pC->a * s; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorModulate - (D3DXCOLOR *pOut, const D3DXCOLOR *pC1, const D3DXCOLOR *pC2) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC1 || !pC2) - return NULL; -#endif - - pOut->r = pC1->r * pC2->r; - pOut->g = pC1->g * pC2->g; - pOut->b = pC1->b * pC2->b; - pOut->a = pC1->a * pC2->a; - return pOut; -} - -D3DXINLINE D3DXCOLOR* D3DXColorLerp - (D3DXCOLOR *pOut, const D3DXCOLOR *pC1, const D3DXCOLOR *pC2, float s) -{ -#ifdef D3DX_DEBUG - if(!pOut || !pC1 || !pC2) - return NULL; -#endif - - pOut->r = pC1->r + s * (pC2->r - pC1->r); - pOut->g = pC1->g + s * (pC2->g - pC1->g); - pOut->b = pC1->b + s * (pC2->b - pC1->b); - pOut->a = pC1->a + s * (pC2->a - pC1->a); - return pOut; -} - - -#endif // __D3DXMATH_INL__ diff --git a/sdk/dx8sdk/Include/d3dxshapes.h b/sdk/dx8sdk/Include/d3dxshapes.h deleted file mode 100644 index 765c59f5..00000000 --- a/sdk/dx8sdk/Include/d3dxshapes.h +++ /dev/null @@ -1,209 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dxshapes.h -// Content: D3DX simple shapes -// -/////////////////////////////////////////////////////////////////////////// - -#ifndef __D3DXSHAPES_H__ -#define __D3DXSHAPES_H__ - -#include -#include -#include "d3dxerr.h" - - -typedef struct ID3DXSimpleShape *LPD3DXSIMPLESHAPE; - -// {CFCD4602-EB7B-11d2-A440-00A0C90629A8} -DEFINE_GUID( IID_ID3DXSimpleShape, -0xcfcd4602, 0xeb7b, 0x11d2, 0xa4, 0x40, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8 ); - - -/////////////////////////////////////////////////////////////////////////// -// Interfaces: -/////////////////////////////////////////////////////////////////////////// - -//------------------------------------------------------------------------- -// ID3DXSimpleShape interface: -//------------------------------------------------------------------------- - -DECLARE_INTERFACE_(ID3DXSimpleShape, IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID* ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - // ID3DXSimpleShape methods - STDMETHOD_(LPDIRECT3DVERTEXBUFFER7, GetVB)(THIS) PURE; - STDMETHOD_(DWORD, GetIndices)(THIS_ LPWORD *ppIndices) PURE; - STDMETHOD(Draw)(THIS) PURE; -}; - - - -/////////////////////////////////////////////////////////////////////////// -// Functions: -/////////////////////////////////////////////////////////////////////////// - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - - -//------------------------------------------------------------------------- -// D3DXCreatePolygon: Creates an 'n' sided polygon using the device -// ---------------- specified. It returns a vertex buffer that can be used -// for drawing or manipulation by the program later on. -// -// Params: -// [in] LPDIRECT3DDEVICE7 pDevice: The device to create off. -// [in] float sideSize: Length of a side. -// [in] DWORD numTexCoords: The number of texture coordinates desired -// in the vertex-buffer. (Default is 1) -// D3DX_DEFAULT is a valid input. -// [out] IDirect3DVertexBuffer7** ppVB: The output shape interface. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreatePolygon(LPDIRECT3DDEVICE7 pDevice, - float sideSize, - DWORD numSides, - DWORD numTexCoords, - LPD3DXSIMPLESHAPE* ppShape ); - -//------------------------------------------------------------------------- -// D3DXCreateBox: Creates a box (cuboid) of given dimensions using the -// ------------ device. It returns a vertex buffer that can -// be used for drawing or manipulation by the program later on. -// -// Params: -// [in] LPDIRECT3DDEVICE7 pDevice: The device to create off. -// [in] float width: Width of the box (along x-axis) -// [in] float height: Height of the box (along y-axis) -// [in] float depth: Depth of the box (along z-axis) -// [in] DWORD numTexCoords: The number of texture coordinates desired -// in the vertex-buffer. Default is 1. -// D3DX_DEFAULT is a valid input here. -// [out] LPD3DXSIMPLESHAPE* ppShape: The output vertex-buffer. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateBox(LPDIRECT3DDEVICE7 pDevice, - float width, - float height, - float depth, - DWORD numTexCoords, - LPD3DXSIMPLESHAPE* ppShape ); - -//------------------------------------------------------------------------- -// D3DXCreateCylinder: Creates a cylinder of given dimensions using the -// ----------------- device. It returns a vertex buffer that -// can be used for drawing or manipulation by the program -// later on. -// -// Params: -// [in] LPDIRECT3DDEVICE7 pDevice: The device to create off. -// [in] float baseRadius: Base-radius (default is 1.0f, shd be >= 0.0f) -// [in] float topRadius: Top-radius (default is 1.0f, shd be >= 0.0f) -// [in] float height: Height (default is 1.0f, shd be >= 0.0f) -// [in] DWORD numSlices: Number of slices about the main axis. -// (default is 8) D3DX_DEFAULT is a valid input. -// [in] DWORD numStacks: Number of stacks along the main axis. -// (default is 8) D3DX_DEFAULT is a valid input. -// [in] DWORD numTexCoords: The number of texture coordinates desired -// in the vertex-buffer. Default is 1. -// D3DX_DEFAULT is a valid input here. -// [out] LPD3DXSIMPLESHAPE* ppShape: The output shape interface. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateCylinder(LPDIRECT3DDEVICE7 pDevice, - float baseRadius, - float topRadius, - float height, - DWORD numSlices, - DWORD numStacks, - DWORD numTexCoords, - LPD3DXSIMPLESHAPE* ppShape ); - - -//------------------------------------------------------------------------- -// D3DXCreateTorus: Creates a torus of given dimensions using the -// -------------- device specified. It returns a vertex buffer that can -// be used for drawing or manipulation by the program later -// on. It draws a doughnut, centered at (0, 0, 0) whose axis -// is aligned with the z-axis. With the innerRadius used -// as the radius of the cross-section (minor-Radius) and -// the outerRadius used as the radius of the central 'hole'. -// -// Params: -// [in] LPDIRECT3DDEVICE7 pDevice: The device to create off. -// [in] float innerRadius: inner radius (default is 1.0f, shd be >= 0.0f) -// [in] float outerRadius: outer radius (default is 2.0f, shd be >= 0.0f) -// [in] DWORD numSides: Number of sides in the cross-section -// (default is 8). D3DX_DEFAULT is a valid input. -// [in] DWORD numRings: Number of rings making up the torus -// (default is 8) D3DX_DEFAULT is a valid input. -// [in] DWORD numTexCoords: The number of texture coordinates desired -// in the vertex-buffer. Default is 1. -// D3DX_DEFAULT is a valid input here. -// [out] LPD3DXSIMPLESHAPE* ppShape: The output shape interface. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateTorus(LPDIRECT3DDEVICE7 pDevice, - float innerRadius, - float outerRadius, - DWORD numSides, - DWORD numRings, - DWORD numTexCoords, - LPD3DXSIMPLESHAPE* ppShape ); - -//------------------------------------------------------------------------- -// D3DXCreateTeapot: Creates a teapot using the device specified. -// ---------------- It returns a vertex buffer that can be used for -// drawing or manipulation by the program later on. -// -// Params: -// [in] LPDIRECT3DDEVICE7 pDevice: The device to create off. -// [in] DWORD numTexCoords: The number of texture coordinates desired -// in the vertex-buffer. Default is 1. -// D3DX_DEFAULT is a valid input here. -// [out] LPD3DXSIMPLESHAPE* ppShape: The output shape interface. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateTeapot(LPDIRECT3DDEVICE7 pDevice, - DWORD numTexCoords, - LPD3DXSIMPLESHAPE* ppShape); - -//------------------------------------------------------------------------- -// D3DXCreateSphere: Creates a cylinder of given dimensions using the -// ---------------- device specified. -// It returns a vertex buffer that can be used for -// drawing or manipulation by the program later on. -// -// Params: -// [in] LPDIRECT3DDEVICE7 pDevice: The device to create off. -// [in] float radius: radius (default is 1.0f, shd be >= 0.0f) -// [in] float height: Height (default is 1.0f, shd be >= 0.0f) -// [in] DWORD numSlices: Number of slices about the main axis -// (default is 8) D3DX_DEFAULT is a valid input. -// [in] DWORD numStacks: Number of stacks along the main axis -// (default is 8) D3DX_DEFAULT is a valid input. -// [in] DWORD numTexCoords: The number of texture coordinates desired -// in the vertex-buffer. Default is 1. -// D3DX_DEFAULT is a valid input here. -// [out] LPD3DXSIMPLESHAPE* ppShape: The output shape interface. -//------------------------------------------------------------------------- -HRESULT WINAPI - D3DXCreateSphere(LPDIRECT3DDEVICE7 pDevice, - float radius, - DWORD numSlices, - DWORD numStacks, - DWORD numTexCoords, - LPD3DXSIMPLESHAPE* ppShape); - -#ifdef __cplusplus -} -#endif //__cplusplus -#endif //__D3DXSHAPES_H__ diff --git a/sdk/dx8sdk/Include/d3dxsprite.h b/sdk/dx8sdk/Include/d3dxsprite.h deleted file mode 100644 index a08b4a99..00000000 --- a/sdk/dx8sdk/Include/d3dxsprite.h +++ /dev/null @@ -1,321 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) Microsoft Corporation. All Rights Reserved. -// -// File: d3dxsprite.h -// Content: D3DX sprite helper functions -// -// These functions allow you to use sprites with D3DX. A "sprite" is -// loosely defined as a 2D image that you want to transfer to the -// rendering target. The source image can be a texture created -// with the help of the D3DX texture loader; though advanced users may -// want to create their own. A helper function (PrepareDeviceForSprite) -// is provided to make it easy to set up render states on a device. -// (Again, advanced users can use their own created devices.) -// -// There are two general techniques for sprites; the simpler one just -// specifies a destination rectangle and a rotation anlge. A more -// powerful technique supports rendering to non-rectangular quads. -// -// Both techniques support clipping, alpha, and rotation. More -// details are below. -// -/////////////////////////////////////////////////////////////////////////// - -#ifndef __D3DXSPRITE_H__ -#define __D3DXSPRITE_H__ - -#include -#include -#include "d3dxerr.h" - -#ifdef __cplusplus -extern "C" { -#endif - - -//------------------------------------------------------------------------- -// D3DXPrepareDeviceForSprite: -// -// Call this function to set up all the render states necessary for -// BltSprite/WarpSprite to work correctly. (Advanced users may opt to -// not call this function first; in which case Blt/WarpSprite functions -// will use whatever render/texture states were set up on the device when -// they are called.) -// -// Warning: This function modifies render states and may impact performance -// negatively on some 3D hardware if it is called too often per frame. -// -// Warning: If the render state changes (other than through calls to -// BltSprite or WarpSprite), you will need to call this function again before -// calling BltSprite or WarpSprite. -// -// Details: This function modifies the the rendering first texture stage and -// it modifies some renderstates for the entire device. Here is the exact -// list: -// -// SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE); -// SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_SELECTARG1); -// SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE); -// SetTextureStageState(0, D3DTSS_ALPHAARG2, D3DTA_DIFFUSE); -// SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_MODULATE); -// SetTextureStageState(0, D3DTSS_MINFILTER, D3DTFN_LINEAR); -// SetTextureStageState(0, D3DTSS_MAGFILTER, D3DTFG_LINEAR); -// -// SetRenderState(D3DRENDERSTATE_SRCBLEND, D3DBLEND_SRCALPHA); -// SetRenderState(D3DRENDERSTATE_DESTBLEND, D3DBLEND_INVSRCALPHA); -// SetRenderState(D3DRENDERSTATE_ALPHABLENDENABLE, TRUE); -// -// Depending on the value of ZEnable parameter, this function will -// will either call -// SetRenderState(D3DRENDERSTATE_ZENABLE, FALSE); -// - or - -// SetRenderState(D3DRENDERSTATE_ZENABLE, TRUE); -// -// Parameters: -// pd3dDevice - a pointer to the d3d device that you wish to prepare -// for use with D3DX Sprite Services -// ZEnable - a flag indicating whether you want the sprites to -// check and update the Z buffer as part of rendering. -// If ZEnable is FALSE, OR you are using -// alpha-blending, then it is necessary to render your -// sprites from back-to-front. -// -//------------------------------------------------------------------------- - -#ifdef __cplusplus -HRESULT WINAPI - D3DXPrepareDeviceForSprite( LPDIRECT3DDEVICE7 pd3dDevice, - BOOL ZEnable = FALSE); -#else -HRESULT WINAPI - D3DXPrepareDeviceForSprite( LPDIRECT3DDEVICE7 pd3dDevice, - BOOL ZEnable); -#endif - - - -//------------------------------------------------------------------------- -// The D3DXDrawBasicSprite() function performs blitting of source images onto -// a 3D rendering device. This function only calls SetTexture on the first -// renderstage with the parameter (pd3dTexture) if that parameter is non-null. -// This function assumes that D3DXPrepareDeviceForSprite has been called on -// the device or that caller has in some other way correctly prepared the -// renderstates. -// -// This function supports scaling, rotations, alpha-blending, and choosing -// a source sub-rect. -// -// Rotation angle is specified in radians. Both rotations and scales -// are applied around the center of the sprite; where the center of the -// sprite is half the width/height of the sprite, plus the offset parameter. -// -// Use the offset parameter if you want the sprite's center to be something -// other than the image center. -// -// The destination point indicates where you would like the center of -// the sprite to draw to. -// -// Parameters: -// pd3dTexture - a pointer to the surface containing the texture -// pd3dDevice - a pointer to the d3d device to render to. It is -// assumed that render states are set up. (See -// D3DXPrepareDeviceForSprite) -// ppointDest - a pointer to the target point for the sprite. The -// components of the vector must be in screen -// space. -// alpha - alpha value to apply to sprite. 1.0 means totally -// opaque; and 0.0 means totally transparent. -// WARNING: If you are using alpha, then you should render -// from back to front in order to avoid rendering -// artifacts. -// angleRad - angle of rotation around the 'center' of the rect -// scale - a uniform scale that is applied to the source rect -// to specify the size of the image that is rendered -// pOffset - offset from the center of the source rect to use as the -// center of rotation -// pSourceRect - a rect that indicates what portion of the source -// source texture to use. If NULL is passed, then the -// entire source is used. If the source texture was -// created via D3DX, then the rect should be specified -// in the coordinates of the original image (so that you -// don't have to worry about stretching/scaling that D3DX -// may have done to make the image work with your current -// 3D Device.) Note that horizontal or vertical mirroring -// may be simply accomplished by swapping the left/right -// or top/bottom fields of this RECT. -//------------------------------------------------------------------------- - -#ifdef __cplusplus -HRESULT WINAPI - D3DXDrawSpriteSimple(LPDIRECTDRAWSURFACE7 pd3dTexture, - LPDIRECT3DDEVICE7 pd3dDevice, - const D3DXVECTOR3 *ppointDest, - float alpha = 1.0f, - float scale = 1.0f, - float angleRad = 0.0f, - const D3DXVECTOR2 *pOffset = NULL, - const RECT *pSourceRect = NULL); -#else -HRESULT WINAPI - D3DXDrawSpriteSimple(LPDIRECTDRAWSURFACE7 pd3dTexture, - LPDIRECT3DDEVICE7 pd3dDevice, - D3DXVECTOR3 *ppointDest, - float alpha, - float scale, - float angleRad, - D3DXVECTOR2 *pOffset, - RECT *pSourceRect); -#endif - -//------------------------------------------------------------------------- -// The D3DXDrawSprite() function transforms source images onto a 3D -// rendering device. It takes a general 4x4 matrix which is use to transform -// the points of a default rect: (left=-.5, top=-.5, right=+.5, bottom=+.5). -// (This default rect was chosen so that it was centered around the origin -// to ease setting up rotations. And it was chosen to have a width/height of one -// to ease setting up scales.) -// -// This function only calls SetTexture on the first -// renderstage with the parameter (pd3dTexture) if that parameter is non-null. -// This function assumes that D3DXPrepareDeviceForSprite has been called on -// the device or that caller has in some other way correctly prepared the -// renderstates. -// -// This function supports alpha-blending, and choosing -// a source sub-rect. (A value of NULL for source sub-rect means the entire -// texture is used.) -// -// Note that if the transformed points have a value for w (the homogenous -// coordinate) that is not 1, then this function will invert it and pass -// that value to D3D as the rhw field of a TLVERTEX. If the value for w is -// zero, then it use 1 as the rhw. -// -// Parameters: -// pd3dTexture - a pointer to the surface containing the texture -// pd3dDevice - a pointer to the d3d device to render to. It is -// assumed that render states are set up. (See -// D3DXPrepareDeviceForSprite) -// pMatrixTransform - 4x4 matrix that specifies the transformation -// that will be applied to the default -.5 to +.5 -// rectangle. -// alpha - alpha value to apply to sprite. 1.0 means totally -// opaque; and 0.0 means totally transparent. -// WARNING: If you are using alpha, then you should render -// from back to front in order to avoid rendering -// artifacts.Furthermore, you should avoid scenarios where -// semi-transparent objects intersect. -// pSourceRect - a rect that indicates what portion of the source -// source texture to use. If NULL is passed, then the -// entire source is used. If the source texture was -// created via D3DX, then the rect should be specified -// in the coordinates of the original image (so that you -// don't have to worry about stretching/scaling that D3DX -// may have done to make the image work with your current -// 3D Device.) Note that mirroring may be simply accomplished -// by swapping the left/right or top/bottom fields of -// this RECT. -// -//------------------------------------------------------------------------- - -#ifdef __cplusplus -HRESULT WINAPI - D3DXDrawSpriteTransform(LPDIRECTDRAWSURFACE7 pd3dTexture, - LPDIRECT3DDEVICE7 pd3dDevice, - const D3DXMATRIX *pMatrixTransform, - float alpha = 1.0f, - const RECT *pSourceRect = NULL); -#else -HRESULT WINAPI - D3DXDrawSpriteTransform(LPDIRECTDRAWSURFACE7 pd3dTexture, - LPDIRECT3DDEVICE7 pd3dDevice, - D3DXMATRIX *pMatrixTransform, - float alpha, - RECT *pSourceRect); -#endif - -//------------------------------------------------------------------------- -// The D3DXBuildSpriteTransform() function is a helper provided which -// creates a matrix corresponding to simple properties. This matrix is -// set up to pass directly to D3DXTransformSprite. -// -// Parameters: -// pMatrix - a pointer to the result matrix -// prectDest - a pointer to the target rectangle for the sprite -// angleRad - angle of rotation around the 'center' of the rect -// pOffset - offset from the center of the source rect to use as the -// center of rotation -// -//------------------------------------------------------------------------- - -#ifdef __cplusplus -void WINAPI - D3DXBuildSpriteTransform(D3DXMATRIX *pMatrix, - const RECT *prectDest, - float angleRad = 0.0f, - const D3DXVECTOR2 *pOffset = NULL); -#else -void WINAPI - D3DXBuildSpriteTransform(D3DXMATRIX *pMatrix, - RECT *prectDest, - float angleRad, - D3DXVECTOR2 *pOffset); -#endif - - -//------------------------------------------------------------------------- -// The D3DXDrawSprite3D() function renders a texture onto a 3D quad. The -// quad ABCD is broken into two triangles ABC and ACD which are rendered -// via DrawPrim. -// -// Parameters: -// pd3dTexture - a pointer to the surface containing the texture -// pd3dDevice - a pointer to the d3d device to render to. It is -// assumed that render states are set up. (See -// D3DXPrepareDeviceForSprite) -// quad - array of 4 points in the following order: -// upper-left, upper-right, lower-right, lower-left. -// If these vectors contain a W, then this function -// will take the reciprocal of that value to pass as -// as the rhw (i.e. reciprocal homogenous w). -// alpha - alpha value to apply to sprite. 1.0 means totally -// opaque; and 0.0 means totally transparent. -// WARNING: If you are using alpha, then you should render -// from back to front in order to avoid rendering -// artifacts.Furthermore, you should avoid scenarios where -// semi-transparent objects intersect. -// pSourceRect - a rect that indicates what portion of the source -// source texture to use. If NULL is passed, then the -// entire source is used. If the source texture was -// created via D3DX, then the rect should be specified -// in the coordinates of the original image (so that you -// don't have to worry about stretching/scaling that D3DX -// may have done to make the image work with your current -// 3D Device.) Note that mirroring may be simply accomplished -// by swapping the left/right or top/bottom fields of -// this RECT. -//------------------------------------------------------------------------- - -#ifdef __cplusplus -HRESULT WINAPI - D3DXDrawSprite3D(LPDIRECTDRAWSURFACE7 pd3dTexture, - LPDIRECT3DDEVICE7 pd3dDevice, - const D3DXVECTOR4 quad[4], - float alpha = 1.0f, - const RECT *pSourceRect = NULL); -#else -HRESULT WINAPI - D3DXDrawSprite3D(LPDIRECTDRAWSURFACE7 pd3dTexture, - LPDIRECT3DDEVICE7 pd3dDevice, - D3DXVECTOR4 quad[4], - float alpha, - RECT *pSourceRect); -#endif - - - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif // __D3DXSPRITE_H__ diff --git a/sdk/dx8sdk/Include/ddraw.h b/sdk/dx8sdk/Include/ddraw.h deleted file mode 100644 index e66314bf..00000000 --- a/sdk/dx8sdk/Include/ddraw.h +++ /dev/null @@ -1,5792 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: ddraw.h - * Content: DirectDraw include file - * - ***************************************************************************/ - -#ifndef __DDRAW_INCLUDED__ -#define __DDRAW_INCLUDED__ - -//Disable the nameless union warning when building internally -#undef ENABLE_NAMELESS_UNION_PRAGMA -#ifdef DIRECTX_REDIST -#define ENABLE_NAMELESS_UNION_PRAGMA -#endif - -#ifdef ENABLE_NAMELESS_UNION_PRAGMA -#pragma warning(disable:4201) -#endif - -/* - * 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 HRESULT WINAPI DirectDrawEnumerateW( LPDDENUMCALLBACKW lpCallback, LPVOID lpContext ); - extern 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 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 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) -typedef long HRESULT; -#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 - */ -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; - -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 - - - /**************************************************************************** - * - * 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 - - -/**************************************************************************** - * - * 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 - - -/**************************************************************************** - * - * 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 - -#ifdef ENABLE_NAMELESS_UNION_PRAGMA -#pragma warning(default:4201) -#endif - -#endif //__DDRAW_INCLUDED__ - - diff --git a/sdk/dx8sdk/Include/ddstream.h b/sdk/dx8sdk/Include/ddstream.h deleted file mode 100644 index 49c3171e..00000000 --- a/sdk/dx8sdk/Include/ddstream.h +++ /dev/null @@ -1,533 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for ddstream.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __ddstream_h__ -#define __ddstream_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#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 - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_ddstream_0000 */ -/* [local] */ - -// -// 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_0001 - { DDSFF_PROGRESSIVERENDER = 0x1 - } ; - - - - - - - -extern RPC_IF_HANDLE __MIDL_itf_ddstream_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_ddstream_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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDirectDrawMediaStream * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDirectDrawMediaStream * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDirectDrawMediaStream * This); - - HRESULT ( STDMETHODCALLTYPE *GetMultiMediaStream )( - IDirectDrawMediaStream * This, - /* [out] */ IMultiMediaStream **ppMultiMediaStream); - - HRESULT ( STDMETHODCALLTYPE *GetInformation )( - IDirectDrawMediaStream * This, - /* [out] */ MSPID *pPurposeId, - /* [out] */ STREAM_TYPE *pType); - - HRESULT ( STDMETHODCALLTYPE *SetSameFormat )( - IDirectDrawMediaStream * This, - /* [in] */ IMediaStream *pStreamThatHasDesiredFormat, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *AllocateSample )( - IDirectDrawMediaStream * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppSample); - - HRESULT ( STDMETHODCALLTYPE *CreateSharedSample )( - IDirectDrawMediaStream * This, - /* [in] */ IStreamSample *pExistingSample, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppNewSample); - - HRESULT ( STDMETHODCALLTYPE *SendEndOfStream )( - IDirectDrawMediaStream * This, - DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *GetFormat )( - IDirectDrawMediaStream * This, - /* [out] */ DDSURFACEDESC *pDDSDCurrent, - /* [out] */ IDirectDrawPalette **ppDirectDrawPalette, - /* [out] */ DDSURFACEDESC *pDDSDDesired, - /* [out] */ DWORD *pdwFlags); - - HRESULT ( STDMETHODCALLTYPE *SetFormat )( - IDirectDrawMediaStream * This, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ IDirectDrawPalette *pDirectDrawPalette); - - HRESULT ( STDMETHODCALLTYPE *GetDirectDraw )( - IDirectDrawMediaStream * This, - /* [out] */ IDirectDraw **ppDirectDraw); - - HRESULT ( STDMETHODCALLTYPE *SetDirectDraw )( - IDirectDrawMediaStream * This, - /* [in] */ IDirectDraw *pDirectDraw); - - HRESULT ( STDMETHODCALLTYPE *CreateSample )( - IDirectDrawMediaStream * This, - /* [in] */ IDirectDrawSurface *pSurface, - /* [in] */ const RECT *pRect, - /* [in] */ DWORD dwFlags, - /* [out] */ IDirectDrawStreamSample **ppSample); - - 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 */ - - - -HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_GetFormat_Proxy( - IDirectDrawMediaStream * This, - /* [out] */ DDSURFACEDESC *pDDSDCurrent, - /* [out] */ IDirectDrawPalette **ppDirectDrawPalette, - /* [out] */ DDSURFACEDESC *pDDSDDesired, - /* [out] */ DWORD *pdwFlags); - - -void __RPC_STUB IDirectDrawMediaStream_GetFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_SetFormat_Proxy( - IDirectDrawMediaStream * This, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ IDirectDrawPalette *pDirectDrawPalette); - - -void __RPC_STUB IDirectDrawMediaStream_SetFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_GetDirectDraw_Proxy( - IDirectDrawMediaStream * This, - /* [out] */ IDirectDraw **ppDirectDraw); - - -void __RPC_STUB IDirectDrawMediaStream_GetDirectDraw_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_SetDirectDraw_Proxy( - IDirectDrawMediaStream * This, - /* [in] */ IDirectDraw *pDirectDraw); - - -void __RPC_STUB IDirectDrawMediaStream_SetDirectDraw_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_CreateSample_Proxy( - IDirectDrawMediaStream * This, - /* [in] */ IDirectDrawSurface *pSurface, - /* [in] */ const RECT *pRect, - /* [in] */ DWORD dwFlags, - /* [out] */ IDirectDrawStreamSample **ppSample); - - -void __RPC_STUB IDirectDrawMediaStream_CreateSample_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_GetTimePerFrame_Proxy( - IDirectDrawMediaStream * This, - /* [out] */ STREAM_TIME *pFrameTime); - - -void __RPC_STUB IDirectDrawMediaStream_GetTimePerFrame_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#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 - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDirectDrawStreamSample * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDirectDrawStreamSample * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDirectDrawStreamSample * This); - - HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( - IDirectDrawStreamSample * This, - /* [in] */ IMediaStream **ppMediaStream); - - HRESULT ( STDMETHODCALLTYPE *GetSampleTimes )( - IDirectDrawStreamSample * This, - /* [out] */ STREAM_TIME *pStartTime, - /* [out] */ STREAM_TIME *pEndTime, - /* [out] */ STREAM_TIME *pCurrentTime); - - HRESULT ( STDMETHODCALLTYPE *SetSampleTimes )( - IDirectDrawStreamSample * This, - /* [in] */ const STREAM_TIME *pStartTime, - /* [in] */ const STREAM_TIME *pEndTime); - - HRESULT ( STDMETHODCALLTYPE *Update )( - IDirectDrawStreamSample * This, - /* [in] */ DWORD dwFlags, - /* [in] */ HANDLE hEvent, - /* [in] */ PAPCFUNC pfnAPC, - /* [in] */ DWORD_PTR dwAPCData); - - HRESULT ( STDMETHODCALLTYPE *CompletionStatus )( - IDirectDrawStreamSample * This, - /* [in] */ DWORD dwFlags, - /* [in] */ DWORD dwMilliseconds); - - HRESULT ( STDMETHODCALLTYPE *GetSurface )( - IDirectDrawStreamSample * This, - /* [out] */ IDirectDrawSurface **ppDirectDrawSurface, - /* [out] */ RECT *pRect); - - 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 */ - - - -HRESULT STDMETHODCALLTYPE IDirectDrawStreamSample_GetSurface_Proxy( - IDirectDrawStreamSample * This, - /* [out] */ IDirectDrawSurface **ppDirectDrawSurface, - /* [out] */ RECT *pRect); - - -void __RPC_STUB IDirectDrawStreamSample_GetSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDirectDrawStreamSample_SetRect_Proxy( - IDirectDrawStreamSample * This, - /* [in] */ const RECT *pRect); - - -void __RPC_STUB IDirectDrawStreamSample_SetRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDirectDrawStreamSample_INTERFACE_DEFINED__ */ - - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/dinput.h b/sdk/dx8sdk/Include/dinput.h deleted file mode 100644 index 5aac2563..00000000 --- a/sdk/dx8sdk/Include/dinput.h +++ /dev/null @@ -1,4417 +0,0 @@ -/**************************************************************************** - * - * Copyright (C) 1996-2000 Microsoft Corporation. All Rights Reserved. - * - * File: dinput.h - * Content: DirectInput include file - * - ****************************************************************************/ - -#ifndef __DINPUT_INCLUDED__ -#define __DINPUT_INCLUDED__ - -#ifndef DIJ_RINGZERO - -#ifdef _WIN32 -#define COM_NO_WINDOWS_H -#include -#endif - -#endif /* DIJ_RINGZERO */ - -#ifdef __cplusplus -extern "C" { -#endif - - - - - -/* - * 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 */ -#ifndef DIDFT_OPTIONAL -#define DIDFT_OPTIONAL 0x80000000 -#endif - -#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 const DIDATAFORMAT c_dfDIJoystick2; -#endif /* DIRECTINPUT_VERSION >= 0x0500 */ - -#ifdef __cplusplus -}; -#endif - - -#if DIRECTINPUT_VERSION > 0x0700 - -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; - - -#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 - * - ****************************************************************************/ -#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 - - -/*--- DINPUT Mapper Definitions: New for Dx8 ---*/ - - -/*--- Keyboard - Physical Keyboard Device ---*/ - -#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 ) - - -#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 - -/* - * 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 /* DIJ_RINGZERO */ - - -/* - * 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 - -#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/sdk/dx8sdk/Include/dinputd.h b/sdk/dx8sdk/Include/dinputd.h deleted file mode 100644 index f5343538..00000000 --- a/sdk/dx8sdk/Include/dinputd.h +++ /dev/null @@ -1,755 +0,0 @@ -/**************************************************************************** - * - * Copyright (C) 1995-2000 Microsoft Corporation. All Rights Reserved. - * - * File: dinputd.h - * Content: DirectInput include file for device driver implementors - * - ****************************************************************************/ -#ifndef __DINPUTD_INCLUDED__ -#define __DINPUTD_INCLUDED__ - -#ifndef DIRECTINPUT_VERSION -#define DIRECTINPUT_VERSION 0x0800 -#pragma message(__FILE__ ": DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800") -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/**************************************************************************** - * - * Interfaces - * - ****************************************************************************/ - -#ifndef DIJ_RINGZERO - -DEFINE_GUID(IID_IDirectInputEffectDriver, 0x02538130,0x898F,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); -DEFINE_GUID(IID_IDirectInputJoyConfig, 0x1DE12AB1,0xC9F5,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); -DEFINE_GUID(IID_IDirectInputPIDDriver, 0xEEC6993A,0xB3FD,0x11D2,0xA9,0x16,0x00,0xC0,0x4F,0xB9,0x86,0x38); - -DEFINE_GUID(IID_IDirectInputJoyConfig8, 0xeb0d7dfa,0x1990,0x4f27,0xb4,0xd6,0xed,0xf2,0xee,0xc4,0xa4,0x4c); - -#endif /* DIJ_RINGZERO */ - - -/**************************************************************************** - * - * IDirectInputEffectDriver - * - ****************************************************************************/ - -typedef struct DIOBJECTATTRIBUTES { - DWORD dwFlags; - WORD wUsagePage; - WORD wUsage; -} DIOBJECTATTRIBUTES, *LPDIOBJECTATTRIBUTES; -typedef const DIOBJECTATTRIBUTES *LPCDIOBJECTATTRIBUTES; - -typedef struct DIFFOBJECTATTRIBUTES { - DWORD dwFFMaxForce; - DWORD dwFFForceResolution; -} DIFFOBJECTATTRIBUTES, *LPDIFFOBJECTATTRIBUTES; -typedef const DIFFOBJECTATTRIBUTES *LPCDIFFOBJECTATTRIBUTES; - -typedef struct DIOBJECTCALIBRATION { - LONG lMin; - LONG lCenter; - LONG lMax; -} DIOBJECTCALIBRATION, *LPDIOBJECTCALIBRATION; -typedef const DIOBJECTCALIBRATION *LPCDIOBJECTCALIBRATION; - -typedef struct DIPOVCALIBRATION { - LONG lMin[5]; - LONG lMax[5]; -} DIPOVCALIBRATION, *LPDIPOVCALIBRATION; -typedef const DIPOVCALIBRATION *LPCDIPOVCALIBRATION; - -typedef struct DIEFFECTATTRIBUTES { - DWORD dwEffectId; - DWORD dwEffType; - DWORD dwStaticParams; - DWORD dwDynamicParams; - DWORD dwCoords; -} DIEFFECTATTRIBUTES, *LPDIEFFECTATTRIBUTES; -typedef const DIEFFECTATTRIBUTES *LPCDIEFFECTATTRIBUTES; - -typedef struct DIFFDEVICEATTRIBUTES { - DWORD dwFlags; - DWORD dwFFSamplePeriod; - DWORD dwFFMinTimeResolution; -} DIFFDEVICEATTRIBUTES, *LPDIFFDEVICEATTRIBUTES; -typedef const DIFFDEVICEATTRIBUTES *LPCDIFFDEVICEATTRIBUTES; - -typedef struct DIDRIVERVERSIONS { - DWORD dwSize; - DWORD dwFirmwareRevision; - DWORD dwHardwareRevision; - DWORD dwFFDriverVersion; -} DIDRIVERVERSIONS, *LPDIDRIVERVERSIONS; -typedef const DIDRIVERVERSIONS *LPCDIDRIVERVERSIONS; - -typedef struct DIDEVICESTATE { - DWORD dwSize; - DWORD dwState; - DWORD dwLoad; -} DIDEVICESTATE, *LPDIDEVICESTATE; - -#define DEV_STS_EFFECT_RUNNING DIEGES_PLAYING - -#ifndef DIJ_RINGZERO - -typedef struct DIHIDFFINITINFO { - DWORD dwSize; - LPWSTR pwszDeviceInterface; - GUID GuidInstance; -} DIHIDFFINITINFO, *LPDIHIDFFINITINFO; - -#undef INTERFACE -#define INTERFACE IDirectInputEffectDriver - -DECLARE_INTERFACE_(IDirectInputEffectDriver, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputEffectDriver methods ***/ - STDMETHOD(DeviceID)(THIS_ DWORD,DWORD,DWORD,DWORD,LPVOID) PURE; - STDMETHOD(GetVersions)(THIS_ LPDIDRIVERVERSIONS) PURE; - STDMETHOD(Escape)(THIS_ DWORD,DWORD,LPDIEFFESCAPE) PURE; - STDMETHOD(SetGain)(THIS_ DWORD,DWORD) PURE; - STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD,DWORD) PURE; - STDMETHOD(GetForceFeedbackState)(THIS_ DWORD,LPDIDEVICESTATE) PURE; - STDMETHOD(DownloadEffect)(THIS_ DWORD,DWORD,LPDWORD,LPCDIEFFECT,DWORD) PURE; - STDMETHOD(DestroyEffect)(THIS_ DWORD,DWORD) PURE; - STDMETHOD(StartEffect)(THIS_ DWORD,DWORD,DWORD,DWORD) PURE; - STDMETHOD(StopEffect)(THIS_ DWORD,DWORD) PURE; - STDMETHOD(GetEffectStatus)(THIS_ DWORD,DWORD,LPDWORD) PURE; -}; - -typedef struct IDirectInputEffectDriver *LPDIRECTINPUTEFFECTDRIVER; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectInputEffectDriver_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputEffectDriver_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputEffectDriver_Release(p) (p)->lpVtbl->Release(p) -#define IDirectInputEffectDriver_DeviceID(p,a,b,c,d,e) (p)->lpVtbl->DeviceID(p,a,b,c,d,e) -#define IDirectInputEffectDriver_GetVersions(p,a) (p)->lpVtbl->GetVersions(p,a) -#define IDirectInputEffectDriver_Escape(p,a,b,c) (p)->lpVtbl->Escape(p,a,b,c) -#define IDirectInputEffectDriver_SetGain(p,a,b) (p)->lpVtbl->SetGain(p,a,b) -#define IDirectInputEffectDriver_SendForceFeedbackCommand(p,a,b) (p)->lpVtbl->SendForceFeedbackCommand(p,a,b) -#define IDirectInputEffectDriver_GetForceFeedbackState(p,a,b) (p)->lpVtbl->GetForceFeedbackState(p,a,b) -#define IDirectInputEffectDriver_DownloadEffect(p,a,b,c,d,e) (p)->lpVtbl->DownloadEffect(p,a,b,c,d,e) -#define IDirectInputEffectDriver_DestroyEffect(p,a,b) (p)->lpVtbl->DestroyEffect(p,a,b) -#define IDirectInputEffectDriver_StartEffect(p,a,b,c,d) (p)->lpVtbl->StartEffect(p,a,b,c,d) -#define IDirectInputEffectDriver_StopEffect(p,a,b) (p)->lpVtbl->StopEffect(p,a,b) -#define IDirectInputEffectDriver_GetEffectStatus(p,a,b,c) (p)->lpVtbl->GetEffectStatus(p,a,b,c) -#else -#define IDirectInputEffectDriver_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputEffectDriver_AddRef(p) (p)->AddRef() -#define IDirectInputEffectDriver_Release(p) (p)->Release() -#define IDirectInputEffectDriver_DeviceID(p,a,b,c,d,e) (p)->DeviceID(a,b,c,d,e) -#define IDirectInputEffectDriver_GetVersions(p,a) (p)->GetVersions(a) -#define IDirectInputEffectDriver_Escape(p,a,b,c) (p)->Escape(a,b,c) -#define IDirectInputEffectDriver_SetGain(p,a,b) (p)->SetGain(a,b) -#define IDirectInputEffectDriver_SendForceFeedbackCommand(p,a,b) (p)->SendForceFeedbackCommand(a,b) -#define IDirectInputEffectDriver_GetForceFeedbackState(p,a,b) (p)->GetForceFeedbackState(a,b) -#define IDirectInputEffectDriver_DownloadEffect(p,a,b,c,d,e) (p)->DownloadEffect(a,b,c,d,e) -#define IDirectInputEffectDriver_DestroyEffect(p,a,b) (p)->DestroyEffect(a,b) -#define IDirectInputEffectDriver_StartEffect(p,a,b,c,d) (p)->StartEffect(a,b,c,d) -#define IDirectInputEffectDriver_StopEffect(p,a,b) (p)->StopEffect(a,b) -#define IDirectInputEffectDriver_GetEffectStatus(p,a,b,c) (p)->GetEffectStatus(a,b,c) -#endif - - -#endif /* DIJ_RINGZERO */ - - -/**************************************************************************** - * - * IDirectInputJoyConfig - * - ****************************************************************************/ - -/**************************************************************************** - * - * Definitions copied from the DDK - * - ****************************************************************************/ - -#ifndef JOY_HW_NONE - -/* pre-defined joystick types */ -#define JOY_HW_NONE 0 -#define JOY_HW_CUSTOM 1 -#define JOY_HW_2A_2B_GENERIC 2 -#define JOY_HW_2A_4B_GENERIC 3 -#define JOY_HW_2B_GAMEPAD 4 -#define JOY_HW_2B_FLIGHTYOKE 5 -#define JOY_HW_2B_FLIGHTYOKETHROTTLE 6 -#define JOY_HW_3A_2B_GENERIC 7 -#define JOY_HW_3A_4B_GENERIC 8 -#define JOY_HW_4B_GAMEPAD 9 -#define JOY_HW_4B_FLIGHTYOKE 10 -#define JOY_HW_4B_FLIGHTYOKETHROTTLE 11 -#define JOY_HW_TWO_2A_2B_WITH_Y 12 -#define JOY_HW_LASTENTRY 13 - - -/* calibration flags */ -#define JOY_ISCAL_XY 0x00000001l /* XY are calibrated */ -#define JOY_ISCAL_Z 0x00000002l /* Z is calibrated */ -#define JOY_ISCAL_R 0x00000004l /* R is calibrated */ -#define JOY_ISCAL_U 0x00000008l /* U is calibrated */ -#define JOY_ISCAL_V 0x00000010l /* V is calibrated */ -#define JOY_ISCAL_POV 0x00000020l /* POV is calibrated */ - -/* point of view constants */ -#define JOY_POV_NUMDIRS 4 -#define JOY_POVVAL_FORWARD 0 -#define JOY_POVVAL_BACKWARD 1 -#define JOY_POVVAL_LEFT 2 -#define JOY_POVVAL_RIGHT 3 - -/* Specific settings for joystick hardware */ -#define JOY_HWS_HASZ 0x00000001l /* has Z info? */ -#define JOY_HWS_HASPOV 0x00000002l /* point of view hat present */ -#define JOY_HWS_POVISBUTTONCOMBOS 0x00000004l /* pov done through combo of buttons */ -#define JOY_HWS_POVISPOLL 0x00000008l /* pov done through polling */ -#define JOY_HWS_ISYOKE 0x00000010l /* joystick is a flight yoke */ -#define JOY_HWS_ISGAMEPAD 0x00000020l /* joystick is a game pad */ -#define JOY_HWS_ISCARCTRL 0x00000040l /* joystick is a car controller */ -/* X defaults to J1 X axis */ -#define JOY_HWS_XISJ1Y 0x00000080l /* X is on J1 Y axis */ -#define JOY_HWS_XISJ2X 0x00000100l /* X is on J2 X axis */ -#define JOY_HWS_XISJ2Y 0x00000200l /* X is on J2 Y axis */ -/* Y defaults to J1 Y axis */ -#define JOY_HWS_YISJ1X 0x00000400l /* Y is on J1 X axis */ -#define JOY_HWS_YISJ2X 0x00000800l /* Y is on J2 X axis */ -#define JOY_HWS_YISJ2Y 0x00001000l /* Y is on J2 Y axis */ -/* Z defaults to J2 Y axis */ -#define JOY_HWS_ZISJ1X 0x00002000l /* Z is on J1 X axis */ -#define JOY_HWS_ZISJ1Y 0x00004000l /* Z is on J1 Y axis */ -#define JOY_HWS_ZISJ2X 0x00008000l /* Z is on J2 X axis */ -/* POV defaults to J2 Y axis, if it is not button based */ -#define JOY_HWS_POVISJ1X 0x00010000l /* pov done through J1 X axis */ -#define JOY_HWS_POVISJ1Y 0x00020000l /* pov done through J1 Y axis */ -#define JOY_HWS_POVISJ2X 0x00040000l /* pov done through J2 X axis */ -/* R defaults to J2 X axis */ -#define JOY_HWS_HASR 0x00080000l /* has R (4th axis) info */ -#define JOY_HWS_RISJ1X 0x00100000l /* R done through J1 X axis */ -#define JOY_HWS_RISJ1Y 0x00200000l /* R done through J1 Y axis */ -#define JOY_HWS_RISJ2Y 0x00400000l /* R done through J2 X axis */ -/* U & V for future hardware */ -#define JOY_HWS_HASU 0x00800000l /* has U (5th axis) info */ -#define JOY_HWS_HASV 0x01000000l /* has V (6th axis) info */ - -/* Usage settings */ -#define JOY_US_HASRUDDER 0x00000001l /* joystick configured with rudder */ -#define JOY_US_PRESENT 0x00000002l /* is joystick actually present? */ -#define JOY_US_ISOEM 0x00000004l /* joystick is an OEM defined type */ - -/* reserved for future use -> as link to next possible dword */ -#define JOY_US_RESERVED 0x80000000l /* reserved */ - - -/* Settings for TypeInfo Flags1 */ -#define JOYTYPE_ZEROGAMEENUMOEMDATA 0x00000001l /* Zero GameEnum's OEM data field */ -#define JOYTYPE_NOAUTODETECTGAMEPORT 0x00000002l /* Device does not support Autodetect gameport*/ -#define JOYTYPE_NOHIDDIRECT 0x00000004l /* Do not use HID directly for this device */ -#define JOYTYPE_ANALOGCOMPAT 0x00000008l /* Expose the analog compatible ID */ -#define JOYTYPE_DEFAULTPROPSHEET 0x80000000l /* CPL overrides custom property sheet */ - -/* Settings for TypeInfo Flags2 */ -#define JOYTYPE_DEVICEHIDE 0x00010000l /* Hide unclassified devices */ -#define JOYTYPE_MOUSEHIDE 0x00020000l /* Hide mice */ -#define JOYTYPE_KEYBHIDE 0x00040000l /* Hide keyboards */ -#define JOYTYPE_GAMEHIDE 0x00080000l /* Hide game controllers */ -#define JOYTYPE_HIDEACTIVE 0x00100000l /* Hide flags are active */ -#define JOYTYPE_INFOMASK 0x00E00000l /* Mask for type specific info */ -#define JOYTYPE_INFODEFAULT 0x00000000l /* Use default axis mappings */ -#define JOYTYPE_INFOYYPEDALS 0x00200000l /* Use Y as a combined pedals axis */ -#define JOYTYPE_INFOZYPEDALS 0x00400000l /* Use Z for accelerate, Y for brake */ -#define JOYTYPE_INFOYRPEDALS 0x00600000l /* Use Y for accelerate, R for brake */ -#define JOYTYPE_INFOZRPEDALS 0x00800000l /* Use Z for accelerate, R for brake */ -#define JOYTYPE_INFOZISSLIDER 0x00200000l /* Use Z as a slider */ -#define JOYTYPE_INFOZISZ 0x00400000l /* Use Z as Z axis */ -#define JOYTYPE_ENABLEINPUTREPORT 0x01000000l /* Enable initial input reports */ - -/* struct for storing x,y, z, and rudder values */ -typedef struct joypos_tag { - DWORD dwX; - DWORD dwY; - DWORD dwZ; - DWORD dwR; - DWORD dwU; - DWORD dwV; -} JOYPOS, FAR *LPJOYPOS; - -/* struct for storing ranges */ -typedef struct joyrange_tag { - JOYPOS jpMin; - JOYPOS jpMax; - JOYPOS jpCenter; -} JOYRANGE,FAR *LPJOYRANGE; - -/* - * dwTimeout - value at which to timeout joystick polling - * jrvRanges - range of values app wants returned for axes - * jpDeadZone - area around center to be considered - * as "dead". specified as a percentage - * (0-100). Only X & Y handled by system driver - */ -typedef struct joyreguservalues_tag { - DWORD dwTimeOut; - JOYRANGE jrvRanges; - JOYPOS jpDeadZone; -} JOYREGUSERVALUES, FAR *LPJOYREGUSERVALUES; - -typedef struct joyreghwsettings_tag { - DWORD dwFlags; - DWORD dwNumButtons; -} JOYREGHWSETTINGS, FAR *LPJOYHWSETTINGS; - -/* range of values returned by the hardware (filled in by calibration) */ -/* - * jrvHardware - values returned by hardware - * dwPOVValues - POV values returned by hardware - * dwCalFlags - what has been calibrated - */ -typedef struct joyreghwvalues_tag { - JOYRANGE jrvHardware; - DWORD dwPOVValues[JOY_POV_NUMDIRS]; - DWORD dwCalFlags; -} JOYREGHWVALUES, FAR *LPJOYREGHWVALUES; - -/* hardware configuration */ -/* - * hws - hardware settings - * dwUsageSettings - usage settings - * hwv - values returned by hardware - * dwType - type of joystick - * dwReserved - reserved for OEM drivers - */ -typedef struct joyreghwconfig_tag { - JOYREGHWSETTINGS hws; - DWORD dwUsageSettings; - JOYREGHWVALUES hwv; - DWORD dwType; - DWORD dwReserved; -} JOYREGHWCONFIG, FAR *LPJOYREGHWCONFIG; - -/* joystick calibration info structure */ -typedef struct joycalibrate_tag { - UINT wXbase; - UINT wXdelta; - UINT wYbase; - UINT wYdelta; - UINT wZbase; - UINT wZdelta; -} JOYCALIBRATE; -typedef JOYCALIBRATE FAR *LPJOYCALIBRATE; - -#endif - -#ifndef DIJ_RINGZERO - -#define MAX_JOYSTRING 256 -typedef BOOL (FAR PASCAL * LPDIJOYTYPECALLBACK)(LPCWSTR, LPVOID); - -#ifndef MAX_JOYSTICKOEMVXDNAME -#define MAX_JOYSTICKOEMVXDNAME 260 -#endif - -#define DITC_REGHWSETTINGS 0x00000001 -#define DITC_CLSIDCONFIG 0x00000002 -#define DITC_DISPLAYNAME 0x00000004 -#define DITC_CALLOUT 0x00000008 -#define DITC_HARDWAREID 0x00000010 -#define DITC_FLAGS1 0x00000020 -#define DITC_FLAGS2 0x00000040 -#define DITC_MAPFILE 0x00000080 - - - -/* This structure is defined for DirectX 5.0 compatibility */ - -typedef struct DIJOYTYPEINFO_DX5 { - DWORD dwSize; - JOYREGHWSETTINGS hws; - CLSID clsidConfig; - WCHAR wszDisplayName[MAX_JOYSTRING]; - WCHAR wszCallout[MAX_JOYSTICKOEMVXDNAME]; -} DIJOYTYPEINFO_DX5, *LPDIJOYTYPEINFO_DX5; -typedef const DIJOYTYPEINFO_DX5 *LPCDIJOYTYPEINFO_DX5; - -/* This structure is defined for DirectX 6.1 compatibility */ -typedef struct DIJOYTYPEINFO_DX6 { - DWORD dwSize; - JOYREGHWSETTINGS hws; - CLSID clsidConfig; - WCHAR wszDisplayName[MAX_JOYSTRING]; - WCHAR wszCallout[MAX_JOYSTICKOEMVXDNAME]; - WCHAR wszHardwareId[MAX_JOYSTRING]; - DWORD dwFlags1; -} DIJOYTYPEINFO_DX6, *LPDIJOYTYPEINFO_DX6; -typedef const DIJOYTYPEINFO_DX6 *LPCDIJOYTYPEINFO_DX6; - -typedef struct DIJOYTYPEINFO { - DWORD dwSize; - JOYREGHWSETTINGS hws; - CLSID clsidConfig; - WCHAR wszDisplayName[MAX_JOYSTRING]; - WCHAR wszCallout[MAX_JOYSTICKOEMVXDNAME]; -#if(DIRECTINPUT_VERSION >= 0x05b2) - WCHAR wszHardwareId[MAX_JOYSTRING]; - DWORD dwFlags1; -#if(DIRECTINPUT_VERSION >= 0x0800) - DWORD dwFlags2; - WCHAR wszMapFile[MAX_JOYSTRING]; -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ -#endif /* DIRECTINPUT_VERSION >= 0x05b2 */ -} DIJOYTYPEINFO, *LPDIJOYTYPEINFO; -typedef const DIJOYTYPEINFO *LPCDIJOYTYPEINFO; -#define DIJC_GUIDINSTANCE 0x00000001 -#define DIJC_REGHWCONFIGTYPE 0x00000002 -#define DIJC_GAIN 0x00000004 -#define DIJC_CALLOUT 0x00000008 -#define DIJC_WDMGAMEPORT 0x00000010 - -/* This structure is defined for DirectX 5.0 compatibility */ - -typedef struct DIJOYCONFIG_DX5 { - DWORD dwSize; - GUID guidInstance; - JOYREGHWCONFIG hwc; - DWORD dwGain; - WCHAR wszType[MAX_JOYSTRING]; - WCHAR wszCallout[MAX_JOYSTRING]; -} DIJOYCONFIG_DX5, *LPDIJOYCONFIG_DX5; -typedef const DIJOYCONFIG_DX5 *LPCDIJOYCONFIG_DX5; - -typedef struct DIJOYCONFIG { - DWORD dwSize; - GUID guidInstance; - JOYREGHWCONFIG hwc; - DWORD dwGain; - WCHAR wszType[MAX_JOYSTRING]; - WCHAR wszCallout[MAX_JOYSTRING]; -#if(DIRECTINPUT_VERSION >= 0x05b2) - GUID guidGameport; -#endif /* DIRECTINPUT_VERSION >= 0x05b2 */ - } DIJOYCONFIG, *LPDIJOYCONFIG; -typedef const DIJOYCONFIG *LPCDIJOYCONFIG; - - -#define DIJU_USERVALUES 0x00000001 -#define DIJU_GLOBALDRIVER 0x00000002 -#define DIJU_GAMEPORTEMULATOR 0x00000004 - -typedef struct DIJOYUSERVALUES { - DWORD dwSize; - JOYREGUSERVALUES ruv; - WCHAR wszGlobalDriver[MAX_JOYSTRING]; - WCHAR wszGameportEmulator[MAX_JOYSTRING]; -} DIJOYUSERVALUES, *LPDIJOYUSERVALUES; -typedef const DIJOYUSERVALUES *LPCDIJOYUSERVALUES; - -DEFINE_GUID(GUID_KeyboardClass, 0x4D36E96B,0xE325,0x11CE,0xBF,0xC1,0x08,0x00,0x2B,0xE1,0x03,0x18); -DEFINE_GUID(GUID_MediaClass, 0x4D36E96C,0xE325,0x11CE,0xBF,0xC1,0x08,0x00,0x2B,0xE1,0x03,0x18); -DEFINE_GUID(GUID_MouseClass, 0x4D36E96F,0xE325,0x11CE,0xBF,0xC1,0x08,0x00,0x2B,0xE1,0x03,0x18); -DEFINE_GUID(GUID_HIDClass, 0x745A17A0,0x74D3,0x11D0,0xB6,0xFE,0x00,0xA0,0xC9,0x0F,0x57,0xDA); - -#undef INTERFACE -#define INTERFACE IDirectInputJoyConfig - -DECLARE_INTERFACE_(IDirectInputJoyConfig, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputJoyConfig methods ***/ - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(SendNotify)(THIS) PURE; - STDMETHOD(EnumTypes)(THIS_ LPDIJOYTYPECALLBACK,LPVOID) PURE; - STDMETHOD(GetTypeInfo)(THIS_ LPCWSTR,LPDIJOYTYPEINFO,DWORD) PURE; - STDMETHOD(SetTypeInfo)(THIS_ LPCWSTR,LPCDIJOYTYPEINFO,DWORD) PURE; - STDMETHOD(DeleteType)(THIS_ LPCWSTR) PURE; - STDMETHOD(GetConfig)(THIS_ UINT,LPDIJOYCONFIG,DWORD) PURE; - STDMETHOD(SetConfig)(THIS_ UINT,LPCDIJOYCONFIG,DWORD) PURE; - STDMETHOD(DeleteConfig)(THIS_ UINT) PURE; - STDMETHOD(GetUserValues)(THIS_ LPDIJOYUSERVALUES,DWORD) PURE; - STDMETHOD(SetUserValues)(THIS_ LPCDIJOYUSERVALUES,DWORD) PURE; - STDMETHOD(AddNewHardware)(THIS_ HWND,REFGUID) PURE; - STDMETHOD(OpenTypeKey)(THIS_ LPCWSTR,DWORD,PHKEY) PURE; - STDMETHOD(OpenConfigKey)(THIS_ UINT,DWORD,PHKEY) PURE; -}; - -typedef struct IDirectInputJoyConfig *LPDIRECTINPUTJOYCONFIG; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectInputJoyConfig_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputJoyConfig_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputJoyConfig_Release(p) (p)->lpVtbl->Release(p) -#define IDirectInputJoyConfig_Acquire(p) (p)->lpVtbl->Acquire(p) -#define IDirectInputJoyConfig_Unacquire(p) (p)->lpVtbl->Unacquire(p) -#define IDirectInputJoyConfig_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) -#define IDirectInputJoyConfig_SendNotify(p) (p)->lpVtbl->SendNotify(p) -#define IDirectInputJoyConfig_EnumTypes(p,a,b) (p)->lpVtbl->EnumTypes(p,a,b) -#define IDirectInputJoyConfig_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c) -#define IDirectInputJoyConfig_SetTypeInfo(p,a,b,c) (p)->lpVtbl->SetTypeInfo(p,a,b,c) -#define IDirectInputJoyConfig_DeleteType(p,a) (p)->lpVtbl->DeleteType(p,a) -#define IDirectInputJoyConfig_GetConfig(p,a,b,c) (p)->lpVtbl->GetConfig(p,a,b,c) -#define IDirectInputJoyConfig_SetConfig(p,a,b,c) (p)->lpVtbl->SetConfig(p,a,b,c) -#define IDirectInputJoyConfig_DeleteConfig(p,a) (p)->lpVtbl->DeleteConfig(p,a) -#define IDirectInputJoyConfig_GetUserValues(p,a,b) (p)->lpVtbl->GetUserValues(p,a,b) -#define IDirectInputJoyConfig_SetUserValues(p,a,b) (p)->lpVtbl->SetUserValues(p,a,b) -#define IDirectInputJoyConfig_AddNewHardware(p,a,b) (p)->lpVtbl->AddNewHardware(p,a,b) -#define IDirectInputJoyConfig_OpenTypeKey(p,a,b,c) (p)->lpVtbl->OpenTypeKey(p,a,b,c) -#define IDirectInputJoyConfig_OpenConfigKey(p,a,b,c) (p)->lpVtbl->OpenConfigKey(p,a,b,c) -#else -#define IDirectInputJoyConfig_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputJoyConfig_AddRef(p) (p)->AddRef() -#define IDirectInputJoyConfig_Release(p) (p)->Release() -#define IDirectInputJoyConfig_Acquire(p) (p)->Acquire() -#define IDirectInputJoyConfig_Unacquire(p) (p)->Unacquire() -#define IDirectInputJoyConfig_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) -#define IDirectInputJoyConfig_SendNotify(p) (p)->SendNotify() -#define IDirectInputJoyConfig_EnumTypes(p,a,b) (p)->EnumTypes(a,b) -#define IDirectInputJoyConfig_GetTypeInfo(p,a,b,c) (p)->GetTypeInfo(a,b,c) -#define IDirectInputJoyConfig_SetTypeInfo(p,a,b,c) (p)->SetTypeInfo(a,b,c) -#define IDirectInputJoyConfig_DeleteType(p,a) (p)->DeleteType(a) -#define IDirectInputJoyConfig_GetConfig(p,a,b,c) (p)->GetConfig(a,b,c) -#define IDirectInputJoyConfig_SetConfig(p,a,b,c) (p)->SetConfig(a,b,c) -#define IDirectInputJoyConfig_DeleteConfig(p,a) (p)->DeleteConfig(a) -#define IDirectInputJoyConfig_GetUserValues(p,a,b) (p)->GetUserValues(a,b) -#define IDirectInputJoyConfig_SetUserValues(p,a,b) (p)->SetUserValues(a,b) -#define IDirectInputJoyConfig_AddNewHardware(p,a,b) (p)->AddNewHardware(a,b) -#define IDirectInputJoyConfig_OpenTypeKey(p,a,b,c) (p)->OpenTypeKey(a,b,c) -#define IDirectInputJoyConfig_OpenConfigKey(p,a,b,c) (p)->OpenConfigKey(a,b,c) -#endif - -#endif /* DIJ_RINGZERO */ - -#if(DIRECTINPUT_VERSION >= 0x0800) - -#ifndef DIJ_RINGZERO - -#undef INTERFACE -#define INTERFACE IDirectInputJoyConfig8 - -DECLARE_INTERFACE_(IDirectInputJoyConfig8, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - - /*** IDirectInputJoyConfig8 methods ***/ - STDMETHOD(Acquire)(THIS) PURE; - STDMETHOD(Unacquire)(THIS) PURE; - STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; - STDMETHOD(SendNotify)(THIS) PURE; - STDMETHOD(EnumTypes)(THIS_ LPDIJOYTYPECALLBACK,LPVOID) PURE; - STDMETHOD(GetTypeInfo)(THIS_ LPCWSTR,LPDIJOYTYPEINFO,DWORD) PURE; - STDMETHOD(SetTypeInfo)(THIS_ LPCWSTR,LPCDIJOYTYPEINFO,DWORD,LPWSTR) PURE; - STDMETHOD(DeleteType)(THIS_ LPCWSTR) PURE; - STDMETHOD(GetConfig)(THIS_ UINT,LPDIJOYCONFIG,DWORD) PURE; - STDMETHOD(SetConfig)(THIS_ UINT,LPCDIJOYCONFIG,DWORD) PURE; - STDMETHOD(DeleteConfig)(THIS_ UINT) PURE; - STDMETHOD(GetUserValues)(THIS_ LPDIJOYUSERVALUES,DWORD) PURE; - STDMETHOD(SetUserValues)(THIS_ LPCDIJOYUSERVALUES,DWORD) PURE; - STDMETHOD(AddNewHardware)(THIS_ HWND,REFGUID) PURE; - STDMETHOD(OpenTypeKey)(THIS_ LPCWSTR,DWORD,PHKEY) PURE; - STDMETHOD(OpenAppStatusKey)(THIS_ PHKEY) PURE; -}; - -typedef struct IDirectInputJoyConfig8 *LPDIRECTINPUTJOYCONFIG8; - -#if !defined(__cplusplus) || defined(CINTERFACE) -#define IDirectInputJoyConfig8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectInputJoyConfig8_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectInputJoyConfig8_Release(p) (p)->lpVtbl->Release(p) -#define IDirectInputJoyConfig8_Acquire(p) (p)->lpVtbl->Acquire(p) -#define IDirectInputJoyConfig8_Unacquire(p) (p)->lpVtbl->Unacquire(p) -#define IDirectInputJoyConfig8_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) -#define IDirectInputJoyConfig8_SendNotify(p) (p)->lpVtbl->SendNotify(p) -#define IDirectInputJoyConfig8_EnumTypes(p,a,b) (p)->lpVtbl->EnumTypes(p,a,b) -#define IDirectInputJoyConfig8_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c) -#define IDirectInputJoyConfig8_SetTypeInfo(p,a,b,c,d) (p)->lpVtbl->SetTypeInfo(p,a,b,c,d) -#define IDirectInputJoyConfig8_DeleteType(p,a) (p)->lpVtbl->DeleteType(p,a) -#define IDirectInputJoyConfig8_GetConfig(p,a,b,c) (p)->lpVtbl->GetConfig(p,a,b,c) -#define IDirectInputJoyConfig8_SetConfig(p,a,b,c) (p)->lpVtbl->SetConfig(p,a,b,c) -#define IDirectInputJoyConfig8_DeleteConfig(p,a) (p)->lpVtbl->DeleteConfig(p,a) -#define IDirectInputJoyConfig8_GetUserValues(p,a,b) (p)->lpVtbl->GetUserValues(p,a,b) -#define IDirectInputJoyConfig8_SetUserValues(p,a,b) (p)->lpVtbl->SetUserValues(p,a,b) -#define IDirectInputJoyConfig8_AddNewHardware(p,a,b) (p)->lpVtbl->AddNewHardware(p,a,b) -#define IDirectInputJoyConfig8_OpenTypeKey(p,a,b,c) (p)->lpVtbl->OpenTypeKey(p,a,b,c) -#define IDirectInputJoyConfig8_OpenAppStatusKey(p,a) (p)->lpVtbl->OpenAppStatusKey(p,a) -#else -#define IDirectInputJoyConfig8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectInputJoyConfig8_AddRef(p) (p)->AddRef() -#define IDirectInputJoyConfig8_Release(p) (p)->Release() -#define IDirectInputJoyConfig8_Acquire(p) (p)->Acquire() -#define IDirectInputJoyConfig8_Unacquire(p) (p)->Unacquire() -#define IDirectInputJoyConfig8_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) -#define IDirectInputJoyConfig8_SendNotify(p) (p)->SendNotify() -#define IDirectInputJoyConfig8_EnumTypes(p,a,b) (p)->EnumTypes(a,b) -#define IDirectInputJoyConfig8_GetTypeInfo(p,a,b,c) (p)->GetTypeInfo(a,b,c) -#define IDirectInputJoyConfig8_SetTypeInfo(p,a,b,c,d) (p)->SetTypeInfo(a,b,c,d) -#define IDirectInputJoyConfig8_DeleteType(p,a) (p)->DeleteType(a) -#define IDirectInputJoyConfig8_GetConfig(p,a,b,c) (p)->GetConfig(a,b,c) -#define IDirectInputJoyConfig8_SetConfig(p,a,b,c) (p)->SetConfig(a,b,c) -#define IDirectInputJoyConfig8_DeleteConfig(p,a) (p)->DeleteConfig(a) -#define IDirectInputJoyConfig8_GetUserValues(p,a,b) (p)->GetUserValues(a,b) -#define IDirectInputJoyConfig8_SetUserValues(p,a,b) (p)->SetUserValues(a,b) -#define IDirectInputJoyConfig8_AddNewHardware(p,a,b) (p)->AddNewHardware(a,b) -#define IDirectInputJoyConfig8_OpenTypeKey(p,a,b,c) (p)->OpenTypeKey(a,b,c) -#define IDirectInputJoyConfig8_OpenAppStatusKey(p,a) (p)->OpenAppStatusKey(a) -#endif - -#endif /* DIJ_RINGZERO */ - -/**************************************************************************** - * - * Notification Messages - * - ****************************************************************************/ - -/* RegisterWindowMessage with this to get DirectInput notification messages */ -#define DIRECTINPUT_NOTIFICATION_MSGSTRINGA "DIRECTINPUT_NOTIFICATION_MSGSTRING" -#define DIRECTINPUT_NOTIFICATION_MSGSTRINGW L"DIRECTINPUT_NOTIFICATION_MSGSTRING" - -#ifdef UNICODE -#define DIRECTINPUT_NOTIFICATION_MSGSTRING DIRECTINPUT_NOTIFICATION_MSGSTRINGW -#else -#define DIRECTINPUT_NOTIFICATION_MSGSTRING DIRECTINPUT_NOTIFICATION_MSGSTRINGA -#endif - -#define DIMSGWP_NEWAPPSTART 0x00000001 -#define DIMSGWP_DX8APPSTART 0x00000002 -#define DIMSGWP_DX8MAPPERAPPSTART 0x00000003 - -#endif /* DIRECTINPUT_VERSION >= 0x0800 */ - -#define DIAPPIDFLAG_NOTIME 0x00000001 -#define DIAPPIDFLAG_NOSIZE 0x00000002 - -#define DIRECTINPUT_REGSTR_VAL_APPIDFLAGA "AppIdFlag" -#define DIRECTINPUT_REGSTR_KEY_LASTAPPA "MostRecentApplication" -#define DIRECTINPUT_REGSTR_KEY_LASTMAPAPPA "MostRecentMapperApplication" -#define DIRECTINPUT_REGSTR_VAL_VERSIONA "Version" -#define DIRECTINPUT_REGSTR_VAL_NAMEA "Name" -#define DIRECTINPUT_REGSTR_VAL_IDA "Id" -#define DIRECTINPUT_REGSTR_VAL_MAPPERA "UsesMapper" -#define DIRECTINPUT_REGSTR_VAL_LASTSTARTA "MostRecentStart" - -#define DIRECTINPUT_REGSTR_VAL_APPIDFLAGW L"AppIdFlag" -#define DIRECTINPUT_REGSTR_KEY_LASTAPPW L"MostRecentApplication" -#define DIRECTINPUT_REGSTR_KEY_LASTMAPAPPW L"MostRecentMapperApplication" -#define DIRECTINPUT_REGSTR_VAL_VERSIONW L"Version" -#define DIRECTINPUT_REGSTR_VAL_NAMEW L"Name" -#define DIRECTINPUT_REGSTR_VAL_IDW L"Id" -#define DIRECTINPUT_REGSTR_VAL_MAPPERW L"UsesMapper" -#define DIRECTINPUT_REGSTR_VAL_LASTSTARTW L"MostRecentStart" - -#ifdef UNICODE -#define DIRECTINPUT_REGSTR_VAL_APPIDFLAG DIRECTINPUT_REGSTR_VAL_APPIDFLAGW -#define DIRECTINPUT_REGSTR_KEY_LASTAPP DIRECTINPUT_REGSTR_KEY_LASTAPPW -#define DIRECTINPUT_REGSTR_KEY_LASTMAPAPP DIRECTINPUT_REGSTR_KEY_LASTMAPAPPW -#define DIRECTINPUT_REGSTR_VAL_VERSION DIRECTINPUT_REGSTR_VAL_VERSIONW -#define DIRECTINPUT_REGSTR_VAL_NAME DIRECTINPUT_REGSTR_VAL_NAMEW -#define DIRECTINPUT_REGSTR_VAL_ID DIRECTINPUT_REGSTR_VAL_IDW -#define DIRECTINPUT_REGSTR_VAL_MAPPER DIRECTINPUT_REGSTR_VAL_MAPPERW -#define DIRECTINPUT_REGSTR_VAL_LASTSTART DIRECTINPUT_REGSTR_VAL_LASTSTARTW -#else -#define DIRECTINPUT_REGSTR_VAL_APPIDFLAG DIRECTINPUT_REGSTR_VAL_APPIDFLAGA -#define DIRECTINPUT_REGSTR_KEY_LASTAPP DIRECTINPUT_REGSTR_KEY_LASTAPPA -#define DIRECTINPUT_REGSTR_KEY_LASTMAPAPP DIRECTINPUT_REGSTR_KEY_LASTMAPAPPA -#define DIRECTINPUT_REGSTR_VAL_VERSION DIRECTINPUT_REGSTR_VAL_VERSIONA -#define DIRECTINPUT_REGSTR_VAL_NAME DIRECTINPUT_REGSTR_VAL_NAMEA -#define DIRECTINPUT_REGSTR_VAL_ID DIRECTINPUT_REGSTR_VAL_IDA -#define DIRECTINPUT_REGSTR_VAL_MAPPER DIRECTINPUT_REGSTR_VAL_MAPPERA -#define DIRECTINPUT_REGSTR_VAL_LASTSTART DIRECTINPUT_REGSTR_VAL_LASTSTARTA -#endif - - -/**************************************************************************** - * - * Return Codes - * - ****************************************************************************/ - -#define DIERR_NOMOREITEMS \ - MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_NO_MORE_ITEMS) - -/* - * Device driver-specific codes. - */ - -#define DIERR_DRIVERFIRST 0x80040300L -#define DIERR_DRIVERLAST 0x800403FFL - -/* - * Unless the specific driver has been precisely identified, no meaning - * should be attributed to these values other than that the driver - * originated the error. However, to illustrate the types of error that - * may be causing the failure, the PID force feedback driver distributed - * with DirectX 7 could return the following errors: - * - * DIERR_DRIVERFIRST + 1 - * The requested usage was not found. - * DIERR_DRIVERFIRST + 2 - * The parameter block couldn't be downloaded to the device. - * DIERR_DRIVERFIRST + 3 - * PID initialization failed. - * DIERR_DRIVERFIRST + 4 - * The provided values couldn't be scaled. - */ - - -/* - * Device installer errors. - */ - -/* - * Registry entry or DLL for class installer invalid - * or class installer not found. - */ -#define DIERR_INVALIDCLASSINSTALLER 0x80040400L - -/* - * The user cancelled the install operation. - */ -#define DIERR_CANCELLED 0x80040401L - -/* - * The INF file for the selected device could not be - * found or is invalid or is damaged. - */ -#define DIERR_BADINF 0x80040402L - -/**************************************************************************** - * - * Map files - * - ****************************************************************************/ - -/* - * Delete particular data from default map file. - */ -#define DIDIFT_DELETE 0x01000000 - -#ifdef __cplusplus -}; -#endif - -#endif /* __DINPUTD_INCLUDED__ */ diff --git a/sdk/dx8sdk/Include/dls1.h b/sdk/dx8sdk/Include/dls1.h deleted file mode 100644 index fc88a317..00000000 --- a/sdk/dx8sdk/Include/dls1.h +++ /dev/null @@ -1,267 +0,0 @@ -/*==========================================================================; -// -// dls1.h -// -// -// Description: -// -// Interface defines and structures for the Instrument Collection Form -// RIFF DLS. -// -// -// Written by Sonic Foundry 1996. Released for public use. -// -//=========================================================================*/ - -#ifndef _INC_DLS1 -#define _INC_DLS1 - -/*////////////////////////////////////////////////////////////////////////// -// -// -// Layout of an instrument collection: -// -// -// RIFF [] 'DLS ' [dlid,colh,INSTLIST,WAVEPOOL,INFOLIST] -// -// INSTLIST -// LIST [] 'lins' -// LIST [] 'ins ' [dlid,insh,RGNLIST,ARTLIST,INFOLIST] -// LIST [] 'ins ' [dlid,insh,RGNLIST,ARTLIST,INFOLIST] -// LIST [] 'ins ' [dlid,insh,RGNLIST,ARTLIST,INFOLIST] -// -// RGNLIST -// LIST [] 'lrgn' -// LIST [] 'rgn ' [rgnh,wsmp,wlnk,ARTLIST] -// LIST [] 'rgn ' [rgnh,wsmp,wlnk,ARTLIST] -// LIST [] 'rgn ' [rgnh,wsmp,wlnk,ARTLIST] -// -// ARTLIST -// LIST [] 'lart' -// 'art1' level 1 Articulation connection graph -// 'art2' level 2 Articulation connection graph -// '3rd1' Possible 3rd party articulation structure 1 -// '3rd2' Possible 3rd party articulation structure 2 .... and so on -// -// WAVEPOOL -// ptbl [] [pool table] -// LIST [] 'wvpl' -// [path], -// [path], -// LIST [] 'wave' [dlid,RIFFWAVE] -// LIST [] 'wave' [dlid,RIFFWAVE] -// LIST [] 'wave' [dlid,RIFFWAVE] -// LIST [] 'wave' [dlid,RIFFWAVE] -// LIST [] 'wave' [dlid,RIFFWAVE] -// -// INFOLIST -// LIST [] 'INFO' -// 'icmt' 'One of those crazy comments.' -// 'icop' 'Copyright (C) 1996 Sonic Foundry' -// -/////////////////////////////////////////////////////////////////////////*/ - - -/*///////////////////////////////////////////////////////////////////////// -// FOURCC's used in the DLS file -/////////////////////////////////////////////////////////////////////////*/ - -#define FOURCC_DLS mmioFOURCC('D','L','S',' ') -#define FOURCC_DLID mmioFOURCC('d','l','i','d') -#define FOURCC_COLH mmioFOURCC('c','o','l','h') -#define FOURCC_WVPL mmioFOURCC('w','v','p','l') -#define FOURCC_PTBL mmioFOURCC('p','t','b','l') -#define FOURCC_PATH mmioFOURCC('p','a','t','h') -#define FOURCC_wave mmioFOURCC('w','a','v','e') -#define FOURCC_LINS mmioFOURCC('l','i','n','s') -#define FOURCC_INS mmioFOURCC('i','n','s',' ') -#define FOURCC_INSH mmioFOURCC('i','n','s','h') -#define FOURCC_LRGN mmioFOURCC('l','r','g','n') -#define FOURCC_RGN mmioFOURCC('r','g','n',' ') -#define FOURCC_RGNH mmioFOURCC('r','g','n','h') -#define FOURCC_LART mmioFOURCC('l','a','r','t') -#define FOURCC_ART1 mmioFOURCC('a','r','t','1') -#define FOURCC_WLNK mmioFOURCC('w','l','n','k') -#define FOURCC_WSMP mmioFOURCC('w','s','m','p') -#define FOURCC_VERS mmioFOURCC('v','e','r','s') - -/*///////////////////////////////////////////////////////////////////////// -// Articulation connection graph definitions -/////////////////////////////////////////////////////////////////////////*/ - -/* Generic Sources */ -#define CONN_SRC_NONE 0x0000 -#define CONN_SRC_LFO 0x0001 -#define CONN_SRC_KEYONVELOCITY 0x0002 -#define CONN_SRC_KEYNUMBER 0x0003 -#define CONN_SRC_EG1 0x0004 -#define CONN_SRC_EG2 0x0005 -#define CONN_SRC_PITCHWHEEL 0x0006 - -/* Midi Controllers 0-127 */ -#define CONN_SRC_CC1 0x0081 -#define CONN_SRC_CC7 0x0087 -#define CONN_SRC_CC10 0x008a -#define CONN_SRC_CC11 0x008b - -/* Generic Destinations */ -#define CONN_DST_NONE 0x0000 -#define CONN_DST_ATTENUATION 0x0001 -#define CONN_DST_PITCH 0x0003 -#define CONN_DST_PAN 0x0004 - -/* LFO Destinations */ -#define CONN_DST_LFO_FREQUENCY 0x0104 -#define CONN_DST_LFO_STARTDELAY 0x0105 - -/* EG1 Destinations */ -#define CONN_DST_EG1_ATTACKTIME 0x0206 -#define CONN_DST_EG1_DECAYTIME 0x0207 -#define CONN_DST_EG1_RELEASETIME 0x0209 -#define CONN_DST_EG1_SUSTAINLEVEL 0x020a - -/* EG2 Destinations */ -#define CONN_DST_EG2_ATTACKTIME 0x030a -#define CONN_DST_EG2_DECAYTIME 0x030b -#define CONN_DST_EG2_RELEASETIME 0x030d -#define CONN_DST_EG2_SUSTAINLEVEL 0x030e - -#define CONN_TRN_NONE 0x0000 -#define CONN_TRN_CONCAVE 0x0001 - -typedef struct _DLSID { - ULONG ulData1; - USHORT usData2; - USHORT usData3; - BYTE abData4[8]; -} DLSID, FAR *LPDLSID; - -typedef struct _DLSVERSION { - DWORD dwVersionMS; - DWORD dwVersionLS; -}DLSVERSION, FAR *LPDLSVERSION; - - -typedef struct _CONNECTION { - USHORT usSource; - USHORT usControl; - USHORT usDestination; - USHORT usTransform; - LONG lScale; - }CONNECTION, FAR *LPCONNECTION; - - -/* Level 1 Articulation Data */ - -typedef struct _CONNECTIONLIST { - ULONG cbSize; /* size of the connection list structure */ - ULONG cConnections; /* count of connections in the list */ - } CONNECTIONLIST, FAR *LPCONNECTIONLIST; - - - -/*///////////////////////////////////////////////////////////////////////// -// Generic type defines for regions and instruments -/////////////////////////////////////////////////////////////////////////*/ - -typedef struct _RGNRANGE { - USHORT usLow; - USHORT usHigh; -}RGNRANGE, FAR * LPRGNRANGE; - -#define F_INSTRUMENT_DRUMS 0x80000000 - -typedef struct _MIDILOCALE { - ULONG ulBank; - ULONG ulInstrument; -}MIDILOCALE, FAR *LPMIDILOCALE; - -/*///////////////////////////////////////////////////////////////////////// -// Header structures found in an DLS file for collection, instruments, and -// regions. -/////////////////////////////////////////////////////////////////////////*/ - -#define F_RGN_OPTION_SELFNONEXCLUSIVE 0x0001 - -typedef struct _RGNHEADER { - RGNRANGE RangeKey; /* Key range */ - RGNRANGE RangeVelocity; /* Velocity Range */ - USHORT fusOptions; /* Synthesis options for this range */ - USHORT usKeyGroup; /* Key grouping for non simultaneous play */ - /* 0 = no group, 1 up is group */ - /* for Level 1 only groups 1-15 are allowed */ -}RGNHEADER, FAR *LPRGNHEADER; - -typedef struct _INSTHEADER { - ULONG cRegions; /* Count of regions in this instrument */ - MIDILOCALE Locale; /* Intended MIDI locale of this instrument */ -}INSTHEADER, FAR *LPINSTHEADER; - -typedef struct _DLSHEADER { - ULONG cInstruments; /* Count of instruments in the collection */ -}DLSHEADER, FAR *LPDLSHEADER; - -/*//////////////////////////////////////////////////////////////////////////// -// definitions for the Wave link structure -////////////////////////////////////////////////////////////////////////////*/ - -/* **** For level 1 only WAVELINK_CHANNEL_MONO is valid **** */ -/* ulChannel allows for up to 32 channels of audio with each bit position */ -/* specifiying a channel of playback */ - -#define WAVELINK_CHANNEL_LEFT 0x0001l -#define WAVELINK_CHANNEL_RIGHT 0x0002l - -#define F_WAVELINK_PHASE_MASTER 0x0001 - -typedef struct _WAVELINK { /* any paths or links are stored right after struct */ - USHORT fusOptions; /* options flags for this wave */ - USHORT usPhaseGroup; /* Phase grouping for locking channels */ - ULONG ulChannel; /* channel placement */ - ULONG ulTableIndex; /* index into the wave pool table, 0 based */ -}WAVELINK, FAR *LPWAVELINK; - -#define POOL_CUE_NULL 0xffffffffl - -typedef struct _POOLCUE { - ULONG ulOffset; /* Offset to the entry in the list */ -}POOLCUE, FAR *LPPOOLCUE; - -typedef struct _POOLTABLE { - ULONG cbSize; /* size of the pool table structure */ - ULONG cCues; /* count of cues in the list */ - } POOLTABLE, FAR *LPPOOLTABLE; - -/*//////////////////////////////////////////////////////////////////////////// -// Structures for the "wsmp" chunk -////////////////////////////////////////////////////////////////////////////*/ - -#define F_WSMP_NO_TRUNCATION 0x0001l -#define F_WSMP_NO_COMPRESSION 0x0002l - - -typedef struct _rwsmp { - ULONG cbSize; - USHORT usUnityNote; /* MIDI Unity Playback Note */ - SHORT sFineTune; /* Fine Tune in log tuning */ - LONG lAttenuation; /* Overall Attenuation to be applied to data */ - ULONG fulOptions; /* Flag options */ - ULONG cSampleLoops; /* Count of Sample loops, 0 loops is one shot */ - } WSMPL, FAR *LPWSMPL; - - -/* This loop type is a normal forward playing loop which is continually */ -/* played until the envelope reaches an off threshold in the release */ -/* portion of the volume envelope */ - -#define WLOOP_TYPE_FORWARD 0 - -typedef struct _rloop { - ULONG cbSize; - ULONG ulType; /* Loop Type */ - ULONG ulStart; /* Start of loop in samples */ - ULONG ulLength; /* Length of loop in samples */ -} WLOOP, FAR *LPWLOOP; - -#endif /*_INC_DLS1 */ - diff --git a/sdk/dx8sdk/Include/dls2.h b/sdk/dx8sdk/Include/dls2.h deleted file mode 100644 index 30cec23a..00000000 --- a/sdk/dx8sdk/Include/dls2.h +++ /dev/null @@ -1,130 +0,0 @@ -/* - - dls2.h - - Description: - - Interface defines and structures for the DLS2 extensions of DLS. - - - Written by Microsoft 1998. Released for public use. - -*/ - -#ifndef _INC_DLS2 -#define _INC_DLS2 - -/* - FOURCC's used in the DLS2 file, in addition to DLS1 chunks -*/ - -#define FOURCC_RGN2 mmioFOURCC('r','g','n','2') -#define FOURCC_LAR2 mmioFOURCC('l','a','r','2') -#define FOURCC_ART2 mmioFOURCC('a','r','t','2') -#define FOURCC_CDL mmioFOURCC('c','d','l',' ') -#define FOURCC_DLID mmioFOURCC('d','l','i','d') - -/* - Articulation connection graph definitions. These are in addition to - the definitions in the DLS1 header. -*/ - -/* Generic Sources (in addition to DLS1 sources. */ -#define CONN_SRC_POLYPRESSURE 0x0007 /* Polyphonic Pressure */ -#define CONN_SRC_CHANNELPRESSURE 0x0008 /* Channel Pressure */ -#define CONN_SRC_VIBRATO 0x0009 /* Vibrato LFO */ -#define CONN_SRC_MONOPRESSURE 0x000a /* MIDI Mono pressure */ - - -/* Midi Controllers */ -#define CONN_SRC_CC91 0x00db /* Reverb Send */ -#define CONN_SRC_CC93 0x00dd /* Chorus Send */ - - -/* Generic Destinations */ -#define CONN_DST_GAIN 0x0001 /* Same as CONN_DST_ ATTENUATION, but more appropriate terminology. */ -#define CONN_DST_KEYNUMBER 0x0005 /* Key Number Generator */ - -/* Audio Channel Output Destinations */ -#define CONN_DST_LEFT 0x0010 /* Left Channel Send */ -#define CONN_DST_RIGHT 0x0011 /* Right Channel Send */ -#define CONN_DST_CENTER 0x0012 /* Center Channel Send */ -#define CONN_DST_LEFTREAR 0x0013 /* Left Rear Channel Send */ -#define CONN_DST_RIGHTREAR 0x0014 /* Right Rear Channel Send */ -#define CONN_DST_LFE_CHANNEL 0x0015 /* LFE Channel Send */ -#define CONN_DST_CHORUS 0x0080 /* Chorus Send */ -#define CONN_DST_REVERB 0x0081 /* Reverb Send */ - -/* Vibrato LFO Destinations */ -#define CONN_DST_VIB_FREQUENCY 0x0114 /* Vibrato Frequency */ -#define CONN_DST_VIB_STARTDELAY 0x0115 /* Vibrato Start Delay */ - -/* EG1 Destinations */ -#define CONN_DST_EG1_DELAYTIME 0x020B /* EG1 Delay Time */ -#define CONN_DST_EG1_HOLDTIME 0x020C /* EG1 Hold Time */ -#define CONN_DST_EG1_SHUTDOWNTIME 0x020D /* EG1 Shutdown Time */ - - -/* EG2 Destinations */ -#define CONN_DST_EG2_DELAYTIME 0x030F /* EG2 Delay Time */ -#define CONN_DST_EG2_HOLDTIME 0x0310 /* EG2 Hold Time */ - - -/* Filter Destinations */ -#define CONN_DST_FILTER_CUTOFF 0x0500 /* Filter Cutoff Frequency */ -#define CONN_DST_FILTER_Q 0x0501 /* Filter Resonance */ - - -/* Transforms */ -#define CONN_TRN_CONVEX 0x0002 /* Convex Transform */ -#define CONN_TRN_SWITCH 0x0003 /* Switch Transform */ - - -/* Conditional chunk operators */ - #define DLS_CDL_AND 0x0001 /* X = X & Y */ - #define DLS_CDL_OR 0x0002 /* X = X | Y */ - #define DLS_CDL_XOR 0x0003 /* X = X ^ Y */ - #define DLS_CDL_ADD 0x0004 /* X = X + Y */ - #define DLS_CDL_SUBTRACT 0x0005 /* X = X - Y */ - #define DLS_CDL_MULTIPLY 0x0006 /* X = X * Y */ - #define DLS_CDL_DIVIDE 0x0007 /* X = X / Y */ - #define DLS_CDL_LOGICAL_AND 0x0008 /* X = X && Y */ - #define DLS_CDL_LOGICAL_OR 0x0009 /* X = X || Y */ - #define DLS_CDL_LT 0x000A /* X = (X < Y) */ - #define DLS_CDL_LE 0x000B /* X = (X <= Y) */ - #define DLS_CDL_GT 0x000C /* X = (X > Y) */ - #define DLS_CDL_GE 0x000D /* X = (X >= Y) */ - #define DLS_CDL_EQ 0x000E /* X = (X == Y) */ - #define DLS_CDL_NOT 0x000F /* X = !X */ - #define DLS_CDL_CONST 0x0010 /* 32-bit constant */ - #define DLS_CDL_QUERY 0x0011 /* 32-bit value returned from query */ - #define DLS_CDL_QUERYSUPPORTED 0x0012 /* Test to see if query is supported by synth */ - -/* - Loop and release -*/ - -#define WLOOP_TYPE_RELEASE 1 - -/* - WaveLink chunk -*/ - -#define F_WAVELINK_MULTICHANNEL 0x0002 - - -/* - DLSID queries for -*/ - -DEFINE_GUID(DLSID_GMInHardware, 0x178f2f24, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); -DEFINE_GUID(DLSID_GSInHardware, 0x178f2f25, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); -DEFINE_GUID(DLSID_XGInHardware, 0x178f2f26, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); -DEFINE_GUID(DLSID_SupportsDLS1, 0x178f2f27, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); -DEFINE_GUID(DLSID_SupportsDLS2, 0xf14599e5, 0x4689, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); -DEFINE_GUID(DLSID_SampleMemorySize, 0x178f2f28, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); -DEFINE_GUID(DLSID_ManufacturersID, 0xb03e1181, 0x8095, 0x11d2, 0xa1, 0xef, 0x0, 0x60, 0x8, 0x33, 0xdb, 0xd8); -DEFINE_GUID(DLSID_ProductID, 0xb03e1182, 0x8095, 0x11d2, 0xa1, 0xef, 0x0, 0x60, 0x8, 0x33, 0xdb, 0xd8); -DEFINE_GUID(DLSID_SamplePlaybackRate, 0x2a91f713, 0xa4bf, 0x11d2, 0xbb, 0xdf, 0x0, 0x60, 0x8, 0x33, 0xdb, 0xd8); - -#endif /* _INC_DLS2 */ diff --git a/sdk/dx8sdk/Include/dmdls.h b/sdk/dx8sdk/Include/dmdls.h deleted file mode 100644 index c5072681..00000000 --- a/sdk/dx8sdk/Include/dmdls.h +++ /dev/null @@ -1,199 +0,0 @@ -/************************************************************************ -* * -* dmdls.h -- DLS download definitions for DirectMusic API's * -* * -* Copyright (c) Microsoft Corporation. All rights reserved. * -* * -************************************************************************/ - -#ifndef _DMDLS_ -#define _DMDLS_ - -#include "dls1.h" - -typedef long PCENT; /* Pitch cents */ -typedef long GCENT; /* Gain cents */ -typedef long TCENT; /* Time cents */ -typedef long PERCENT; /* Per.. cent! */ - -typedef LONGLONG REFERENCE_TIME; -typedef REFERENCE_TIME *LPREFERENCE_TIME; - -#ifndef MAKE_FOURCC -#define MAKEFOURCC(ch0, ch1, ch2, ch3) \ - ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \ - ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 )) - - -typedef DWORD FOURCC; /* a four character code */ -#endif - -typedef struct _DMUS_DOWNLOADINFO -{ - DWORD dwDLType; /* Instrument or Wave */ - DWORD dwDLId; /* Unique identifier to tag this download. */ - DWORD dwNumOffsetTableEntries; /* Number of index in the offset address table. */ - DWORD cbSize; /* Total size of this memory chunk. */ -} DMUS_DOWNLOADINFO; - -#define DMUS_DOWNLOADINFO_INSTRUMENT 1 -#define DMUS_DOWNLOADINFO_WAVE 2 -#define DMUS_DOWNLOADINFO_INSTRUMENT2 3 /* New version for better DLS2 support. */ - -/* Support for oneshot and streaming wave data - */ -#define DMUS_DOWNLOADINFO_WAVEARTICULATION 4 /* Wave articulation data */ -#define DMUS_DOWNLOADINFO_STREAMINGWAVE 5 /* One chunk of a streaming */ -#define DMUS_DOWNLOADINFO_ONESHOTWAVE 6 - -#define DMUS_DEFAULT_SIZE_OFFSETTABLE 1 - -/* Flags for DMUS_INSTRUMENT's ulFlags member */ - -#define DMUS_INSTRUMENT_GM_INSTRUMENT (1 << 0) - -typedef struct _DMUS_OFFSETTABLE -{ - ULONG ulOffsetTable[DMUS_DEFAULT_SIZE_OFFSETTABLE]; -} DMUS_OFFSETTABLE; - -typedef struct _DMUS_INSTRUMENT -{ - ULONG ulPatch; - ULONG ulFirstRegionIdx; - ULONG ulGlobalArtIdx; /* If zero the instrument does not have an articulation */ - ULONG ulFirstExtCkIdx; /* If zero no 3rd party entenstion chunks associated with the instrument */ - ULONG ulCopyrightIdx; /* If zero no Copyright information associated with the instrument */ - ULONG ulFlags; -} DMUS_INSTRUMENT; - -typedef struct _DMUS_REGION -{ - RGNRANGE RangeKey; - RGNRANGE RangeVelocity; - USHORT fusOptions; - USHORT usKeyGroup; - ULONG ulRegionArtIdx; /* If zero the region does not have an articulation */ - ULONG ulNextRegionIdx; /* If zero no more regions */ - ULONG ulFirstExtCkIdx; /* If zero no 3rd party entenstion chunks associated with the region */ - WAVELINK WaveLink; - WSMPL WSMP; /* If WSMP.cSampleLoops > 1 then a WLOOP is included */ - WLOOP WLOOP[1]; -} DMUS_REGION; - -typedef struct _DMUS_LFOPARAMS -{ - PCENT pcFrequency; - TCENT tcDelay; - GCENT gcVolumeScale; - PCENT pcPitchScale; - GCENT gcMWToVolume; - PCENT pcMWToPitch; -} DMUS_LFOPARAMS; - -typedef struct _DMUS_VEGPARAMS -{ - TCENT tcAttack; - TCENT tcDecay; - PERCENT ptSustain; - TCENT tcRelease; - TCENT tcVel2Attack; - TCENT tcKey2Decay; -} DMUS_VEGPARAMS; - -typedef struct _DMUS_PEGPARAMS -{ - TCENT tcAttack; - TCENT tcDecay; - PERCENT ptSustain; - TCENT tcRelease; - TCENT tcVel2Attack; - TCENT tcKey2Decay; - PCENT pcRange; -} DMUS_PEGPARAMS; - -typedef struct _DMUS_MSCPARAMS -{ - PERCENT ptDefaultPan; -} DMUS_MSCPARAMS; - -typedef struct _DMUS_ARTICPARAMS -{ - DMUS_LFOPARAMS LFO; - DMUS_VEGPARAMS VolEG; - DMUS_PEGPARAMS PitchEG; - DMUS_MSCPARAMS Misc; -} DMUS_ARTICPARAMS; - -typedef struct _DMUS_ARTICULATION /* Articulation chunk for DMUS_DOWNLOADINFO_INSTRUMENT format. */ -{ - ULONG ulArt1Idx; /* DLS Level 1 articulation chunk */ - ULONG ulFirstExtCkIdx; /* 3rd party extenstion chunks associated with the articulation */ -} DMUS_ARTICULATION; - -typedef struct _DMUS_ARTICULATION2 /* Articulation chunk for DMUS_DOWNLOADINFO_INSTRUMENT2 format. */ -{ - ULONG ulArtIdx; /* DLS Level 1/2 articulation chunk */ - ULONG ulFirstExtCkIdx; /* 3rd party extenstion chunks associated with the articulation */ - ULONG ulNextArtIdx; /* Additional articulation chunks */ -} DMUS_ARTICULATION2; - -#define DMUS_MIN_DATA_SIZE 4 -/* The actual number is determined by cbSize of struct _DMUS_EXTENSIONCHUNK */ - -typedef struct _DMUS_EXTENSIONCHUNK -{ - ULONG cbSize; /* Size of extension chunk */ - ULONG ulNextExtCkIdx; /* If zero no more 3rd party entenstion chunks */ - FOURCC ExtCkID; - BYTE byExtCk[DMUS_MIN_DATA_SIZE]; /* The actual number that follows is determined by cbSize */ -} DMUS_EXTENSIONCHUNK; - -/* The actual number is determined by cbSize of struct _DMUS_COPYRIGHT */ - -typedef struct _DMUS_COPYRIGHT -{ - ULONG cbSize; /* Size of copyright information */ - BYTE byCopyright[DMUS_MIN_DATA_SIZE]; /* The actual number that follows is determined by cbSize */ -} DMUS_COPYRIGHT; - -typedef struct _DMUS_WAVEDATA -{ - ULONG cbSize; - BYTE byData[DMUS_MIN_DATA_SIZE]; -} DMUS_WAVEDATA; - -typedef struct _DMUS_WAVE -{ - ULONG ulFirstExtCkIdx; /* If zero no 3rd party entenstion chunks associated with the wave */ - ULONG ulCopyrightIdx; /* If zero no Copyright information associated with the wave */ - ULONG ulWaveDataIdx; /* Location of actual wave data. */ - WAVEFORMATEX WaveformatEx; -} DMUS_WAVE; - -typedef struct _DMUS_NOTERANGE *LPDMUS_NOTERANGE; -typedef struct _DMUS_NOTERANGE -{ - DWORD dwLowNote; /* Sets the low note for the range of MIDI note events to which the instrument responds.*/ - DWORD dwHighNote; /* Sets the high note for the range of MIDI note events to which the instrument responds.*/ -} DMUS_NOTERANGE; - -typedef struct _DMUS_WAVEARTDL -{ - ULONG ulDownloadIdIdx; /* Download ID's of each buffer */ - ULONG ulBus; /* Playback bus */ - ULONG ulBuffers; /* Buffers */ - ULONG ulMasterDLId; /* Download ID of master voice of slave group */ - USHORT usOptions; /* Same as DLS2 region options */ -} DMUS_WAVEARTDL, - *LPDMUS_WAVEARTDL; - -typedef struct _DMUS_WAVEDL -{ - ULONG cbWaveData; /* Bytes of wave data */ -} DMUS_WAVEDL, - *LPDMUS_WAVEDL; - -#endif - - diff --git a/sdk/dx8sdk/Include/dmerror.h b/sdk/dx8sdk/Include/dmerror.h deleted file mode 100644 index a0a61ffc..00000000 --- a/sdk/dx8sdk/Include/dmerror.h +++ /dev/null @@ -1,843 +0,0 @@ -/************************************************************************ -* * -* dmerror.h -- Error codes returned by DirectMusic API's * -* * -* Copyright (c) Microsoft Corporation. All rights reserved. * -* * -************************************************************************/ - -#ifndef _DMERROR_ -#define _DMERROR_ - -#define FACILITY_DIRECTMUSIC 0x878 /* Shared with DirectSound */ -#define DMUS_ERRBASE 0x1000 /* Make error codes human readable in hex */ - -#ifndef MAKE_HRESULT -#define MAKE_HRESULT(sev,fac,code) \ - ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) ) -#endif - -#define MAKE_DMHRESULTSUCCESS(code) MAKE_HRESULT(0, FACILITY_DIRECTMUSIC, (DMUS_ERRBASE + (code))) -#define MAKE_DMHRESULTERROR(code) MAKE_HRESULT(1, FACILITY_DIRECTMUSIC, (DMUS_ERRBASE + (code))) - -/* DMUS_S_PARTIALLOAD - * - * The object could only load partially. This can happen if some components are - * not registered properly, such as embedded tracks and tools. This can also happen - * if some content is missing. For example, if a segment uses a DLS collection that - * is not in the loader's current search directory. - */ -#define DMUS_S_PARTIALLOAD MAKE_DMHRESULTSUCCESS(0x091) - -/* DMUS_S_PARTIALDOWNLOAD - * - * Return value from IDirectMusicBand::Download() which indicates that - * some of the instruments safely downloaded, but others failed. This usually - * occurs when some instruments are on PChannels not supported by the performance - * or port. - */ -#define DMUS_S_PARTIALDOWNLOAD MAKE_DMHRESULTSUCCESS(0x092) - -/* DMUS_S_REQUEUE - * - * Return value from IDirectMusicTool::ProcessPMsg() which indicates to the - * performance that it should cue the PMsg again automatically. - */ -#define DMUS_S_REQUEUE MAKE_DMHRESULTSUCCESS(0x200) - -/* DMUS_S_FREE - * - * Return value from IDirectMusicTool::ProcessPMsg() which indicates to the - * performance that it should free the PMsg automatically. - */ -#define DMUS_S_FREE MAKE_DMHRESULTSUCCESS(0x201) - -/* DMUS_S_END - * - * Return value from IDirectMusicTrack::Play() which indicates to the - * segment that the track has no more data after mtEnd. - */ -#define DMUS_S_END MAKE_DMHRESULTSUCCESS(0x202) - -/* DMUS_S_STRING_TRUNCATED - * - * Returned string has been truncated to fit the buffer size. - */ -#define DMUS_S_STRING_TRUNCATED MAKE_DMHRESULTSUCCESS(0x210) - -/* DMUS_S_LAST_TOOL - * - * Returned from IDirectMusicGraph::StampPMsg(), this indicates that the PMsg - * is already stamped with the last tool in the graph. The returned PMsg's - * tool pointer is now NULL. - */ -#define DMUS_S_LAST_TOOL MAKE_DMHRESULTSUCCESS(0x211) - -/* DMUS_S_OVER_CHORD - * - * Returned from IDirectMusicPerformance::MusicToMIDI(), this indicates - * that no note has been calculated because the music value has the note - * at a position higher than the top note of the chord. This applies only - * to DMUS_PLAYMODE_NORMALCHORD play mode. This success code indicates - * that the caller should not do anything with the note. It is not meant - * to be played against this chord. - */ -#define DMUS_S_OVER_CHORD MAKE_DMHRESULTSUCCESS(0x212) - -/* DMUS_S_UP_OCTAVE - * - * Returned from IDirectMusicPerformance::MIDIToMusic(), and - * IDirectMusicPerformance::MusicToMIDI(), this indicates - * that the note conversion generated a note value that is below 0, - * so it has been bumped up one or more octaves to be in the proper - * MIDI range of 0 through 127. - * Note that this is valid for MIDIToMusic() when using play modes - * DMUS_PLAYMODE_FIXEDTOCHORD and DMUS_PLAYMODE_FIXEDTOKEY, both of - * which store MIDI values in wMusicValue. With MusicToMIDI(), it is - * valid for all play modes. - * Ofcourse, DMUS_PLAYMODE_FIXED will never return this success code. - */ -#define DMUS_S_UP_OCTAVE MAKE_DMHRESULTSUCCESS(0x213) - -/* DMUS_S_DOWN_OCTAVE - * - * Returned from IDirectMusicPerformance::MIDIToMusic(), and - * IDirectMusicPerformance::MusicToMIDI(), this indicates - * that the note conversion generated a note value that is above 127, - * so it has been bumped down one or more octaves to be in the proper - * MIDI range of 0 through 127. - * Note that this is valid for MIDIToMusic() when using play modes - * DMUS_PLAYMODE_FIXEDTOCHORD and DMUS_PLAYMODE_FIXEDTOKEY, both of - * which store MIDI values in wMusicValue. With MusicToMIDI(), it is - * valid for all play modes. - * Ofcourse, DMUS_PLAYMODE_FIXED will never return this success code. - */ -#define DMUS_S_DOWN_OCTAVE MAKE_DMHRESULTSUCCESS(0x214) - -/* DMUS_S_NOBUFFERCONTROL - * - * Although the audio output from the port will be routed to the - * same device as the given DirectSound buffer, buffer controls - * such as pan and volume will not affect the output. - * - */ -#define DMUS_S_NOBUFFERCONTROL MAKE_DMHRESULTSUCCESS(0x215) - -/* DMUS_S_GARBAGE_COLLECTED - * - * The requested operation was not performed because during CollectGarbage - * the loader determined that the object had been released. - */ -#define DMUS_S_GARBAGE_COLLECTED MAKE_DMHRESULTSUCCESS(0x216) - -/* DMUS_E_DRIVER_FAILED - * - * An unexpected error was returned from a device driver, indicating - * possible failure of the driver or hardware. - */ -#define DMUS_E_DRIVER_FAILED MAKE_DMHRESULTERROR(0x0101) - -/* DMUS_E_PORTS_OPEN - * - * The requested operation cannot be performed while there are - * instantiated ports in any process in the system. - */ -#define DMUS_E_PORTS_OPEN MAKE_DMHRESULTERROR(0x0102) - -/* DMUS_E_DEVICE_IN_USE - * - * The requested device is already in use (possibly by a non-DirectMusic - * client) and cannot be opened again. - */ -#define DMUS_E_DEVICE_IN_USE MAKE_DMHRESULTERROR(0x0103) - -/* DMUS_E_INSUFFICIENTBUFFER - * - * Buffer is not large enough for requested operation. - */ -#define DMUS_E_INSUFFICIENTBUFFER MAKE_DMHRESULTERROR(0x0104) - -/* DMUS_E_BUFFERNOTSET - * - * No buffer was prepared for the download data. - */ -#define DMUS_E_BUFFERNOTSET MAKE_DMHRESULTERROR(0x0105) - -/* DMUS_E_BUFFERNOTAVAILABLE - * - * Download failed due to inability to access or create download buffer. - */ -#define DMUS_E_BUFFERNOTAVAILABLE MAKE_DMHRESULTERROR(0x0106) - -/* DMUS_E_NOTADLSCOL - * - * Error parsing DLS collection. File is corrupt. - */ -#define DMUS_E_NOTADLSCOL MAKE_DMHRESULTERROR(0x0108) - -/* DMUS_E_INVALIDOFFSET - * - * Wave chunks in DLS collection file are at incorrect offsets. - */ -#define DMUS_E_INVALIDOFFSET MAKE_DMHRESULTERROR(0x0109) - -/* DMUS_E_ALREADY_LOADED - * - * Second attempt to load a DLS collection that is currently open. - */ -#define DMUS_E_ALREADY_LOADED MAKE_DMHRESULTERROR(0x0111) - -/* DMUS_E_INVALIDPOS - * - * Error reading wave data from DLS collection. Indicates bad file. - */ -#define DMUS_E_INVALIDPOS MAKE_DMHRESULTERROR(0x0113) - -/* DMUS_E_INVALIDPATCH - * - * There is no instrument in the collection that matches patch number. - */ -#define DMUS_E_INVALIDPATCH MAKE_DMHRESULTERROR(0x0114) - -/* DMUS_E_CANNOTSEEK - * - * The IStream* doesn't support Seek(). - */ -#define DMUS_E_CANNOTSEEK MAKE_DMHRESULTERROR(0x0115) - -/* DMUS_E_CANNOTWRITE - * - * The IStream* doesn't support Write(). - */ -#define DMUS_E_CANNOTWRITE MAKE_DMHRESULTERROR(0x0116) - -/* DMUS_E_CHUNKNOTFOUND - * - * The RIFF parser doesn't contain a required chunk while parsing file. - */ -#define DMUS_E_CHUNKNOTFOUND MAKE_DMHRESULTERROR(0x0117) - -/* DMUS_E_INVALID_DOWNLOADID - * - * Invalid download id was used in the process of creating a download buffer. - */ -#define DMUS_E_INVALID_DOWNLOADID MAKE_DMHRESULTERROR(0x0119) - -/* DMUS_E_NOT_DOWNLOADED_TO_PORT - * - * Tried to unload an object that was not downloaded or previously unloaded. - */ -#define DMUS_E_NOT_DOWNLOADED_TO_PORT MAKE_DMHRESULTERROR(0x0120) - -/* DMUS_E_ALREADY_DOWNLOADED - * - * Buffer was already downloaded to synth. - */ -#define DMUS_E_ALREADY_DOWNLOADED MAKE_DMHRESULTERROR(0x0121) - -/* DMUS_E_UNKNOWN_PROPERTY - * - * The specified property item was not recognized by the target object. - */ -#define DMUS_E_UNKNOWN_PROPERTY MAKE_DMHRESULTERROR(0x0122) - -/* DMUS_E_SET_UNSUPPORTED - * - * The specified property item may not be set on the target object. - */ -#define DMUS_E_SET_UNSUPPORTED MAKE_DMHRESULTERROR(0x0123) - -/* DMUS_E_GET_UNSUPPORTED - * - * The specified property item may not be retrieved from the target object. - */ -#define DMUS_E_GET_UNSUPPORTED MAKE_DMHRESULTERROR(0x0124) - -/* DMUS_E_NOTMONO - * - * Wave chunk has more than one interleaved channel. DLS format requires MONO. - */ -#define DMUS_E_NOTMONO MAKE_DMHRESULTERROR(0x0125) - -/* DMUS_E_BADARTICULATION - * - * Invalid articulation chunk in DLS collection. - */ -#define DMUS_E_BADARTICULATION MAKE_DMHRESULTERROR(0x0126) - -/* DMUS_E_BADINSTRUMENT - * - * Invalid instrument chunk in DLS collection. - */ -#define DMUS_E_BADINSTRUMENT MAKE_DMHRESULTERROR(0x0127) - -/* DMUS_E_BADWAVELINK - * - * Wavelink chunk in DLS collection points to invalid wave. - */ -#define DMUS_E_BADWAVELINK MAKE_DMHRESULTERROR(0x0128) - -/* DMUS_E_NOARTICULATION - * - * Articulation missing from instrument in DLS collection. - */ -#define DMUS_E_NOARTICULATION MAKE_DMHRESULTERROR(0x0129) - -/* DMUS_E_NOTPCM - * - * Downoaded DLS wave is not in PCM format. -*/ -#define DMUS_E_NOTPCM MAKE_DMHRESULTERROR(0x012A) - -/* DMUS_E_BADWAVE - * - * Bad wave chunk in DLS collection - */ -#define DMUS_E_BADWAVE MAKE_DMHRESULTERROR(0x012B) - -/* DMUS_E_BADOFFSETTABLE - * - * Offset Table for download buffer has errors. - */ -#define DMUS_E_BADOFFSETTABLE MAKE_DMHRESULTERROR(0x012C) - -/* DMUS_E_UNKNOWNDOWNLOAD - * - * Attempted to download unknown data type. - */ -#define DMUS_E_UNKNOWNDOWNLOAD MAKE_DMHRESULTERROR(0x012D) - -/* DMUS_E_NOSYNTHSINK - * - * The operation could not be completed because no sink was connected to - * the synthesizer. - */ -#define DMUS_E_NOSYNTHSINK MAKE_DMHRESULTERROR(0x012E) - -/* DMUS_E_ALREADYOPEN - * - * An attempt was made to open the software synthesizer while it was already - * open. - * ASSERT? - */ -#define DMUS_E_ALREADYOPEN MAKE_DMHRESULTERROR(0x012F) - -/* DMUS_E_ALREADYCLOSE - * - * An attempt was made to close the software synthesizer while it was already - * open. - * ASSERT? - */ -#define DMUS_E_ALREADYCLOSED MAKE_DMHRESULTERROR(0x0130) - -/* DMUS_E_SYNTHNOTCONFIGURED - * - * The operation could not be completed because the software synth has not - * yet been fully configured. - * ASSERT? - */ -#define DMUS_E_SYNTHNOTCONFIGURED MAKE_DMHRESULTERROR(0x0131) - -/* DMUS_E_SYNTHACTIVE - * - * The operation cannot be carried out while the synthesizer is active. - */ -#define DMUS_E_SYNTHACTIVE MAKE_DMHRESULTERROR(0x0132) - -/* DMUS_E_CANNOTREAD - * - * An error occurred while attempting to read from the IStream* object. - */ -#define DMUS_E_CANNOTREAD MAKE_DMHRESULTERROR(0x0133) - -/* DMUS_E_DMUSIC_RELEASED - * - * The operation cannot be performed because the final instance of the - * DirectMusic object was released. Ports cannot be used after final - * release of the DirectMusic object. - */ -#define DMUS_E_DMUSIC_RELEASED MAKE_DMHRESULTERROR(0x0134) - -/* DMUS_E_BUFFER_EMPTY - * - * There was no data in the referenced buffer. - */ -#define DMUS_E_BUFFER_EMPTY MAKE_DMHRESULTERROR(0x0135) - -/* DMUS_E_BUFFER_FULL - * - * There is insufficient space to insert the given event into the buffer. - */ -#define DMUS_E_BUFFER_FULL MAKE_DMHRESULTERROR(0x0136) - -/* DMUS_E_PORT_NOT_CAPTURE - * - * The given operation could not be carried out because the port is a - * capture port. - */ -#define DMUS_E_PORT_NOT_CAPTURE MAKE_DMHRESULTERROR(0x0137) - -/* DMUS_E_PORT_NOT_RENDER - * - * The given operation could not be carried out because the port is a - * render port. - */ -#define DMUS_E_PORT_NOT_RENDER MAKE_DMHRESULTERROR(0x0138) - -/* DMUS_E_DSOUND_NOT_SET - * - * The port could not be created because no DirectSound has been specified. - * Specify a DirectSound interface via the IDirectMusic::SetDirectSound - * method; pass NULL to have DirectMusic manage usage of DirectSound. - */ -#define DMUS_E_DSOUND_NOT_SET MAKE_DMHRESULTERROR(0x0139) - -/* DMUS_E_ALREADY_ACTIVATED - * - * The operation cannot be carried out while the port is active. - */ -#define DMUS_E_ALREADY_ACTIVATED MAKE_DMHRESULTERROR(0x013A) - -/* DMUS_E_INVALIDBUFFER - * - * Invalid DirectSound buffer was handed to port. - */ -#define DMUS_E_INVALIDBUFFER MAKE_DMHRESULTERROR(0x013B) - -/* DMUS_E_WAVEFORMATNOTSUPPORTED - * - * Invalid buffer format was handed to the synth sink. - */ -#define DMUS_E_WAVEFORMATNOTSUPPORTED MAKE_DMHRESULTERROR(0x013C) - -/* DMUS_E_SYNTHINACTIVE - * - * The operation cannot be carried out while the synthesizer is inactive. - */ -#define DMUS_E_SYNTHINACTIVE MAKE_DMHRESULTERROR(0x013D) - -/* DMUS_E_DSOUND_ALREADY_SET - * - * IDirectMusic::SetDirectSound has already been called. It may not be - * changed while in use. - */ -#define DMUS_E_DSOUND_ALREADY_SET MAKE_DMHRESULTERROR(0x013E) - -/* DMUS_E_INVALID_EVENT - * - * The given event is invalid (either it is not a valid MIDI message - * or it makes use of running status). The event cannot be packed - * into the buffer. - */ -#define DMUS_E_INVALID_EVENT MAKE_DMHRESULTERROR(0x013F) - -/* DMUS_E_UNSUPPORTED_STREAM - * - * The IStream* object does not contain data supported by the loading object. - */ -#define DMUS_E_UNSUPPORTED_STREAM MAKE_DMHRESULTERROR(0x0150) - -/* DMUS_E_ALREADY_INITED - * - * The object has already been initialized. - */ -#define DMUS_E_ALREADY_INITED MAKE_DMHRESULTERROR(0x0151) - -/* DMUS_E_INVALID_BAND - * - * The file does not contain a valid band. - */ -#define DMUS_E_INVALID_BAND MAKE_DMHRESULTERROR(0x0152) - -/* DMUS_E_TRACK_HDR_NOT_FIRST_CK - * - * The IStream* object's data does not have a track header as the first chunk, - * and therefore can not be read by the segment object. - */ -#define DMUS_E_TRACK_HDR_NOT_FIRST_CK MAKE_DMHRESULTERROR(0x0155) - -/* DMUS_E_TOOL_HDR_NOT_FIRST_CK - * - * The IStream* object's data does not have a tool header as the first chunk, - * and therefore can not be read by the graph object. - */ -#define DMUS_E_TOOL_HDR_NOT_FIRST_CK MAKE_DMHRESULTERROR(0x0156) - -/* DMUS_E_INVALID_TRACK_HDR - * - * The IStream* object's data contains an invalid track header (ckid is 0 and - * fccType is NULL,) and therefore can not be read by the segment object. - */ -#define DMUS_E_INVALID_TRACK_HDR MAKE_DMHRESULTERROR(0x0157) - -/* DMUS_E_INVALID_TOOL_HDR - * - * The IStream* object's data contains an invalid tool header (ckid is 0 and - * fccType is NULL,) and therefore can not be read by the graph object. - */ -#define DMUS_E_INVALID_TOOL_HDR MAKE_DMHRESULTERROR(0x0158) - -/* DMUS_E_ALL_TOOLS_FAILED - * - * The graph object was unable to load all tools from the IStream* object data. - * This may be due to errors in the stream, or the tools being incorrectly - * registered on the client. - */ -#define DMUS_E_ALL_TOOLS_FAILED MAKE_DMHRESULTERROR(0x0159) - -/* DMUS_E_ALL_TRACKS_FAILED - * - * The segment object was unable to load all tracks from the IStream* object data. - * This may be due to errors in the stream, or the tracks being incorrectly - * registered on the client. - */ -#define DMUS_E_ALL_TRACKS_FAILED MAKE_DMHRESULTERROR(0x0160) - -/* DMUS_E_NOT_FOUND - * - * The requested item was not contained by the object. - */ -#define DMUS_E_NOT_FOUND MAKE_DMHRESULTERROR(0x0161) - -/* DMUS_E_NOT_INIT - * - * A required object is not initialized or failed to initialize. - */ -#define DMUS_E_NOT_INIT MAKE_DMHRESULTERROR(0x0162) - -/* DMUS_E_TYPE_DISABLED - * - * The requested parameter type is currently disabled. Parameter types may - * be enabled and disabled by certain calls to SetParam(). - */ -#define DMUS_E_TYPE_DISABLED MAKE_DMHRESULTERROR(0x0163) - -/* DMUS_E_TYPE_UNSUPPORTED - * - * The requested parameter type is not supported on the object. - */ -#define DMUS_E_TYPE_UNSUPPORTED MAKE_DMHRESULTERROR(0x0164) - -/* DMUS_E_TIME_PAST - * - * The time is in the past, and the operation can not succeed. - */ -#define DMUS_E_TIME_PAST MAKE_DMHRESULTERROR(0x0165) - -/* DMUS_E_TRACK_NOT_FOUND - * - * The requested track is not contained by the segment. - */ -#define DMUS_E_TRACK_NOT_FOUND MAKE_DMHRESULTERROR(0x0166) - -/* DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT - * - * The track does not support clock time playback or getparam. - */ -#define DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT MAKE_DMHRESULTERROR(0x0167) - -/* DMUS_E_NO_MASTER_CLOCK - * - * There is no master clock in the performance. Be sure to call - * IDirectMusicPerformance::Init(). - */ -#define DMUS_E_NO_MASTER_CLOCK MAKE_DMHRESULTERROR(0x0170) - -/* DMUS_E_LOADER_NOCLASSID - * - * The class id field is required and missing in the DMUS_OBJECTDESC. - */ -#define DMUS_E_LOADER_NOCLASSID MAKE_DMHRESULTERROR(0x0180) - -/* DMUS_E_LOADER_BADPATH - * - * The requested file path is invalid. - */ -#define DMUS_E_LOADER_BADPATH MAKE_DMHRESULTERROR(0x0181) - -/* DMUS_E_LOADER_FAILEDOPEN - * - * File open failed - either file doesn't exist or is locked. - */ -#define DMUS_E_LOADER_FAILEDOPEN MAKE_DMHRESULTERROR(0x0182) - -/* DMUS_E_LOADER_FORMATNOTSUPPORTED - * - * Search data type is not supported. - */ -#define DMUS_E_LOADER_FORMATNOTSUPPORTED MAKE_DMHRESULTERROR(0x0183) - -/* DMUS_E_LOADER_FAILEDCREATE - * - * Unable to find or create object. - */ -#define DMUS_E_LOADER_FAILEDCREATE MAKE_DMHRESULTERROR(0x0184) - -/* DMUS_E_LOADER_OBJECTNOTFOUND - * - * Object was not found. - */ -#define DMUS_E_LOADER_OBJECTNOTFOUND MAKE_DMHRESULTERROR(0x0185) - -/* DMUS_E_LOADER_NOFILENAME - * - * The file name is missing from the DMUS_OBJECTDESC. - */ -#define DMUS_E_LOADER_NOFILENAME MAKE_DMHRESULTERROR(0x0186) - -/* DMUS_E_INVALIDFILE - * - * The file requested is not a valid file. - */ -#define DMUS_E_INVALIDFILE MAKE_DMHRESULTERROR(0x0200) - -/* DMUS_E_ALREADY_EXISTS - * - * The tool is already contained in the graph. Create a new instance. - */ -#define DMUS_E_ALREADY_EXISTS MAKE_DMHRESULTERROR(0x0201) - -/* DMUS_E_OUT_OF_RANGE - * - * Value is out of range, for instance the requested length is longer than - * the segment. - */ -#define DMUS_E_OUT_OF_RANGE MAKE_DMHRESULTERROR(0x0202) - -/* DMUS_E_SEGMENT_INIT_FAILED - * - * Segment initialization failed, most likely due to a critical memory situation. - */ -#define DMUS_E_SEGMENT_INIT_FAILED MAKE_DMHRESULTERROR(0x0203) - -/* DMUS_E_ALREADY_SENT - * - * The DMUS_PMSG has already been sent to the performance object via - * IDirectMusicPerformance::SendPMsg(). - */ -#define DMUS_E_ALREADY_SENT MAKE_DMHRESULTERROR(0x0204) - -/* DMUS_E_CANNOT_FREE - * - * The DMUS_PMSG was either not allocated by the performance via - * IDirectMusicPerformance::AllocPMsg(), or it was already freed via - * IDirectMusicPerformance::FreePMsg(). - */ -#define DMUS_E_CANNOT_FREE MAKE_DMHRESULTERROR(0x0205) - -/* DMUS_E_CANNOT_OPEN_PORT - * - * The default system port could not be opened. - */ -#define DMUS_E_CANNOT_OPEN_PORT MAKE_DMHRESULTERROR(0x0206) - -/* DMUS_E_CANNOT_CONVERT - * - * A call to MIDIToMusic() or MusicToMIDI() resulted in an error because - * the requested conversion could not happen. This usually occurs when the - * provided DMUS_CHORD_KEY structure has an invalid chord or scale pattern. - */ -#define DMUS_E_CANNOT_CONVERT MAKE_DMHRESULTERROR(0x0207) -/* misspelling in previous versions of DirectX preserved for backward compatibility */ -#define DMUS_E_CONNOT_CONVERT DMUS_E_CANNOT_CONVERT - -/* DMUS_E_DESCEND_CHUNK_FAIL - * - * DMUS_E_DESCEND_CHUNK_FAIL is returned when the end of the file - * was reached before the desired chunk was found. - */ -#define DMUS_E_DESCEND_CHUNK_FAIL MAKE_DMHRESULTERROR(0x0210) - -/* DMUS_E_NOT_LOADED - * - * An attempt to use this object failed because it first needs to - * be loaded. - */ -#define DMUS_E_NOT_LOADED MAKE_DMHRESULTERROR(0x0211) - -/* DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE - * - * The activeX scripting engine for the script's language is not compatible with - * DirectMusic. - * - */ -#define DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE MAKE_DMHRESULTERROR(0x0213) - -/* DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE - * - * A varient was used that had a type that is not supported by DirectMusic. - * - */ -#define DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE MAKE_DMHRESULTERROR(0x0214) - -/* DMUS_E_SCRIPT_ERROR_IN_SCRIPT - * - * An error was encountered while parsing or executing the script. - * The pErrorInfo parameter (if supplied) was filled with information about the error. - */ -#define DMUS_E_SCRIPT_ERROR_IN_SCRIPT MAKE_DMHRESULTERROR(0x0215) - -/* DMUS_E_SCRIPT_CANTLOAD_OLEAUT32 - * - * Loading of oleaut32.dll failed. VBScript and other activeX scripting languages - * require use of oleaut32.dll. On platforms where oleaut32.dll is not present, only - * the DirectMusicScript language, which doesn't require oleaut32.dll can be used. - */ -#define DMUS_E_SCRIPT_CANTLOAD_OLEAUT32 MAKE_DMHRESULTERROR(0x0216) - -/* DMUS_E_SCRIPT_LOADSCRIPT_ERROR - * - * An error occured while parsing a script loaded using LoadScript. The script that - * was loaded contains an error. - */ -#define DMUS_E_SCRIPT_LOADSCRIPT_ERROR MAKE_DMHRESULTERROR(0x0217) - -/* DMUS_E_SCRIPT_INVALID_FILE - * - * The script file is invalid. - */ -#define DMUS_E_SCRIPT_INVALID_FILE MAKE_DMHRESULTERROR(0x0218) - -/* DMUS_E_INVALID_SCRIPTTRACK - * - * The file contains an invalid script track. - */ -#define DMUS_E_INVALID_SCRIPTTRACK MAKE_DMHRESULTERROR(0x0219) - -/* DMUS_E_SCRIPT_VARIABLE_NOT_FOUND - * - * The script does not contain a variable with the specified name. - */ -#define DMUS_E_SCRIPT_VARIABLE_NOT_FOUND MAKE_DMHRESULTERROR(0x021A) - -/* DMUS_E_SCRIPT_ROUTINE_NOT_FOUND - * - * The script does not contain a routine with the specified name. - */ -#define DMUS_E_SCRIPT_ROUTINE_NOT_FOUND MAKE_DMHRESULTERROR(0x021B) - -/* DMUS_E_SCRIPT_CONTENT_READONLY - * - * Scripts variables for content referenced or embedded in a script cannot be set. - */ -#define DMUS_E_SCRIPT_CONTENT_READONLY MAKE_DMHRESULTERROR(0x021C) - -/* DMUS_E_SCRIPT_NOT_A_REFERENCE - * - * Attempt was made to set a script's variable by reference to a value that was - * not an object type. - */ -#define DMUS_E_SCRIPT_NOT_A_REFERENCE MAKE_DMHRESULTERROR(0x021D) - -/* DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED - * - * Attempt was made to set a script's variable by value to an object that does - * not support a default value property. - */ -#define DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED MAKE_DMHRESULTERROR(0x021E) - -/* DMUS_E_INVALID_SEGMENTTRIGGERTRACK - * - * The file contains an invalid segment trigger track. - */ -#define DMUS_E_INVALID_SEGMENTTRIGGERTRACK MAKE_DMHRESULTERROR(0x0220) - -/* DMUS_E_INVALID_LYRICSTRACK - * - * The file contains an invalid lyrics track. - */ -#define DMUS_E_INVALID_LYRICSTRACK MAKE_DMHRESULTERROR(0x0221) - -/* DMUS_E_INVALID_PARAMCONTROLTRACK - * - * The file contains an invalid parameter control track. - */ -#define DMUS_E_INVALID_PARAMCONTROLTRACK MAKE_DMHRESULTERROR(0x0222) - -/* DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR - * - * A script written in AudioVBScript could not be read because it contained a statement that - * is not allowed by the AudioVBScript language. - */ -#define DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR MAKE_DMHRESULTERROR(0x0223) - -/* DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR - * - * A script routine written in AudioVBScript failed because an invalid operation occurred. For example, - * adding the number 3 to a segment object would produce this error. So would attempting to call a routine - * that doesn't exist. - */ -#define DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR MAKE_DMHRESULTERROR(0x0224) - -/* DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE - * - * A script routine written in AudioVBScript failed because a function outside of a script failed to complete. - * For example, a call to PlaySegment that fails to play because of low memory would return this error. - */ -#define DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE MAKE_DMHRESULTERROR(0x0225) - -/* DMUS_E_AUDIOPATHS_NOT_VALID - * - * The Performance has set up some PChannels using the AssignPChannel command, which - * makes it not capable of supporting audio paths. - */ -#define DMUS_E_AUDIOPATHS_NOT_VALID MAKE_DMHRESULTERROR(0x0226) - -/* DMUS_E_AUDIOPATHS_IN_USE - * - * This is the inverse of the previous error. - * The Performance has set up some audio paths, which makes is incompatible - * with the calls to allocate pchannels, etc. - */ -#define DMUS_E_AUDIOPATHS_IN_USE MAKE_DMHRESULTERROR(0x0227) - -/* DMUS_E_NO_AUDIOPATH_CONFIG - * - * A segment was asked for its embedded audio path configuration, - * but there isn't any. - */ -#define DMUS_E_NO_AUDIOPATH_CONFIG MAKE_DMHRESULTERROR(0x0228) - -/* DMUS_E_AUDIOPATH_INACTIVE - * - * An audiopath is inactive, perhaps because closedown was called. - */ -#define DMUS_E_AUDIOPATH_INACTIVE MAKE_DMHRESULTERROR(0x0229) - -/* DMUS_E_AUDIOPATH_NOBUFFER - * - * An audiopath failed to create because a requested buffer could not be created. - */ -#define DMUS_E_AUDIOPATH_NOBUFFER MAKE_DMHRESULTERROR(0x022A) - -/* DMUS_E_AUDIOPATH_NOPORT - * - * An audiopath could not be used for playback because it lacked port assignments. - */ -#define DMUS_E_AUDIOPATH_NOPORT MAKE_DMHRESULTERROR(0x022B) - -/* DMUS_E_NO_AUDIOPATH - * - * Attempt was made to play segment in audiopath mode and there was no audiopath. - */ -#define DMUS_E_NO_AUDIOPATH MAKE_DMHRESULTERROR(0x022C) - -/* DMUS_E_INVALIDCHUNK - * - * Invalid data was found in a RIFF file chunk. - */ -#define DMUS_E_INVALIDCHUNK MAKE_DMHRESULTERROR(0x022D) - -/* DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER - * - * Attempt was made to create an audiopath that sends to a global effects buffer which did not exist. - */ -#define DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER MAKE_DMHRESULTERROR(0x022E) - -/* DMUS_E_INVALID_CONTAINER_OBJECT - * - * The file does not contain a valid container object. - */ -#define DMUS_E_INVALID_CONTAINER_OBJECT MAKE_DMHRESULTERROR(0x022F) - -#endif diff --git a/sdk/dx8sdk/Include/dmksctrl.h b/sdk/dx8sdk/Include/dmksctrl.h deleted file mode 100644 index f53e714b..00000000 --- a/sdk/dx8sdk/Include/dmksctrl.h +++ /dev/null @@ -1,166 +0,0 @@ -/************************************************************************ -* * -* 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_ - -#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 PKSPROPERTY Property, - IN ULONG PropertyLength, - IN OUT LPVOID PropertyData, - IN ULONG DataLength, - OUT ULONG* BytesReturned - ) PURE; - STDMETHOD(KsMethod)( - THIS_ - IN PKSMETHOD Method, - IN ULONG MethodLength, - IN OUT LPVOID MethodData, - IN ULONG DataLength, - OUT ULONG* BytesReturned - ) PURE; - STDMETHOD(KsEvent)( - THIS_ - IN PKSEVENT Event OPTIONAL, - IN ULONG EventLength, - IN OUT 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 /* _DMKSCTRL */ - - - diff --git a/sdk/dx8sdk/Include/dmo.h b/sdk/dx8sdk/Include/dmo.h deleted file mode 100644 index 30cc2e9d..00000000 --- a/sdk/dx8sdk/Include/dmo.h +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// 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 "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 //__DMO_H__ diff --git a/sdk/dx8sdk/Include/dmodshow.h b/sdk/dx8sdk/Include/dmodshow.h deleted file mode 100644 index 48b323d8..00000000 --- a/sdk/dx8sdk/Include/dmodshow.h +++ /dev/null @@ -1,176 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for dmodshow.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __dmodshow_h__ -#define __dmodshow_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#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 - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_dmodshow_0000 */ -/* [local] */ - -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_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dmodshow_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( - REFCLSID clsidDMO, - REFCLSID catDMO) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDMOWrapperFilterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDMOWrapperFilter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDMOWrapperFilter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDMOWrapperFilter * This); - - HRESULT ( STDMETHODCALLTYPE *Init )( - IDMOWrapperFilter * This, - REFCLSID clsidDMO, - 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 */ - - - -HRESULT STDMETHODCALLTYPE IDMOWrapperFilter_Init_Proxy( - IDMOWrapperFilter * This, - REFCLSID clsidDMO, - REFCLSID catDMO); - - -void __RPC_STUB IDMOWrapperFilter_Init_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDMOWrapperFilter_INTERFACE_DEFINED__ */ - - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/dmoimpl.h b/sdk/dx8sdk/Include/dmoimpl.h deleted file mode 100644 index 8ba6e3a8..00000000 --- a/sdk/dx8sdk/Include/dmoimpl.h +++ /dev/null @@ -1,645 +0,0 @@ -//------------------------------------------------------------------------------ -// File: DMOImpl.h -// -// Desc: Classes to implement a DMO. -// -// Copyright (c) 2000-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef _dmoimpl_h_ -#define _dmoimpl_h_ - -#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; - } - - for (DWORD 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 // _dmoimpl_h_ - diff --git a/sdk/dx8sdk/Include/dmoreg.h b/sdk/dx8sdk/Include/dmoreg.h deleted file mode 100644 index 6c6c22f7..00000000 --- a/sdk/dx8sdk/Include/dmoreg.h +++ /dev/null @@ -1,110 +0,0 @@ -//------------------------------------------------------------------------------ -// File: DMOReg.h -// -// Desc: -// -// Copyright (c) 1999 - 2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef __DMOREG_H__ -#define __DMOREG_H__ - -#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, - WCHAR szName[80] -); -#endif //__DMOREG_H__ diff --git a/sdk/dx8sdk/Include/dmort.h b/sdk/dx8sdk/Include/dmort.h deleted file mode 100644 index cfe25a4a..00000000 --- a/sdk/dx8sdk/Include/dmort.h +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// 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__ - -// -// 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 //__DMORT_H__ diff --git a/sdk/dx8sdk/Include/dmplugin.h b/sdk/dx8sdk/Include/dmplugin.h deleted file mode 100644 index 3f3e1414..00000000 --- a/sdk/dx8sdk/Include/dmplugin.h +++ /dev/null @@ -1,280 +0,0 @@ -/************************************************************************ -* * -* dmplugin.h -- This module contains the API for plugins for the * -* DirectMusic performance layer * -* * -* Copyright (c) Microsoft Corporation. All rights reserved. * -* * -************************************************************************/ - -#ifndef _DMPLUGIN_ -#define _DMPLUGIN_ - -#include - -#define COM_NO_WINDOWS_H -#include - -#include -#include - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -interface IDirectMusicTrack; -interface IDirectMusicTool; -interface IDirectMusicTool8; -interface IDirectMusicTrack8; -interface IDirectMusicPerformance; -interface IDirectMusicPerformance8; -interface IDirectMusicSegment; -interface IDirectMusicSegment8; -interface IDirectMusicSegmentState; -interface IDirectMusicSegmentState8; -interface IDirectMusicGraph; -#ifndef __cplusplus -typedef interface IDirectMusicTrack IDirectMusicTrack; -typedef interface IDirectMusicTool IDirectMusicTool; -typedef interface IDirectMusicTool8 IDirectMusicTool8; -typedef interface IDirectMusicTrack8 IDirectMusicTrack8; -typedef interface IDirectMusicPerformance IDirectMusicPerformance; -typedef interface IDirectMusicPerformance8 IDirectMusicPerformance8; -typedef interface IDirectMusicSegment IDirectMusicSegment; -typedef interface IDirectMusicSegment8 IDirectMusicSegment8; -typedef interface IDirectMusicSegmentState IDirectMusicSegmentState; -typedef interface IDirectMusicSegmentState8 IDirectMusicSegmentState8; -typedef interface IDirectMusicGraph IDirectMusicGraph; -#endif - -typedef struct _DMUS_PMSG DMUS_PMSG; -typedef long MUSIC_TIME; - -/* Registry location for tools */ -#define DMUS_REGSTR_PATH_TOOLS "Software\\Microsoft\\DirectMusic\\Tools" - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicTool */ -#undef INTERFACE -#define INTERFACE IDirectMusicTool -DECLARE_INTERFACE_(IDirectMusicTool, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicTool */ - STDMETHOD(Init) (THIS_ IDirectMusicGraph* pGraph) PURE; - STDMETHOD(GetMsgDeliveryType) (THIS_ DWORD* pdwDeliveryType ) PURE; - STDMETHOD(GetMediaTypeArraySize)(THIS_ DWORD* pdwNumElements ) PURE; - STDMETHOD(GetMediaTypes) (THIS_ DWORD** padwMediaTypes, - DWORD dwNumElements) PURE; - STDMETHOD(ProcessPMsg) (THIS_ IDirectMusicPerformance* pPerf, - DMUS_PMSG* pPMSG) PURE; - STDMETHOD(Flush) (THIS_ IDirectMusicPerformance* pPerf, - DMUS_PMSG* pPMSG, - REFERENCE_TIME rtTime) PURE; -}; - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicTool8 */ -#undef INTERFACE -#define INTERFACE IDirectMusicTool8 -DECLARE_INTERFACE_(IDirectMusicTool8, IDirectMusicTool) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicTool */ - STDMETHOD(Init) (THIS_ IDirectMusicGraph* pGraph) PURE; - STDMETHOD(GetMsgDeliveryType) (THIS_ DWORD* pdwDeliveryType ) PURE; - STDMETHOD(GetMediaTypeArraySize)(THIS_ DWORD* pdwNumElements ) PURE; - STDMETHOD(GetMediaTypes) (THIS_ DWORD** padwMediaTypes, - DWORD dwNumElements) PURE; - STDMETHOD(ProcessPMsg) (THIS_ IDirectMusicPerformance* pPerf, - DMUS_PMSG* pPMSG) PURE; - STDMETHOD(Flush) (THIS_ IDirectMusicPerformance* pPerf, - DMUS_PMSG* pPMSG, - REFERENCE_TIME rtTime) PURE; - /* IDirectMusicTool8 */ - STDMETHOD(Clone) (THIS_ IDirectMusicTool ** ppTool) PURE; -}; - - -/* The following flags are sent in the IDirectMusicTrack::Play() method */ -/* inside the dwFlags parameter */ -typedef enum enumDMUS_TRACKF_FLAGS -{ - DMUS_TRACKF_SEEK = 1, /* set on a seek */ - DMUS_TRACKF_LOOP = 2, /* set on a loop (repeat) */ - DMUS_TRACKF_START = 4, /* set on first call to Play */ - DMUS_TRACKF_FLUSH = 8, /* set when this call is in response to a flush on the perfomance */ - DMUS_TRACKF_DIRTY = 0x10, /* set when the track should consider any cached values from a previous call to GetParam to be invalidated */ - /* The following flags are DX8 only. */ - DMUS_TRACKF_NOTIFY_OFF = 0x20, /* tells track not to send notifications. */ - DMUS_TRACKF_PLAY_OFF = 0x40, /* tells track not to play anything (but can still send notifications.) */ - DMUS_TRACKF_LOOPEND = 0x80, /* set when the end of range is also a loop end. */ - DMUS_TRACKF_STOP = 0x100, /* set when the end of range is also end of playing this segment. */ - DMUS_TRACKF_RECOMPOSE = 0x200, /* set to indicate the track should compose. */ - DMUS_TRACKF_CLOCK = 0x400, /* set when time parameters are in reference (clock) time. Only valid for PlayEx(). */ -} DMUS_TRACKF_FLAGS; - -/* The following flags are sent in the IDirectMusicTrack8::GetParamEx() and SetParamEx() methods */ -/* inside the dwFlags parameter */ -#define DMUS_TRACK_PARAMF_CLOCK 0x01 /* set when the time is measured is in reference (clock) time */ - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicTrack */ -#undef INTERFACE -#define INTERFACE IDirectMusicTrack -DECLARE_INTERFACE_(IDirectMusicTrack, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicTrack */ - STDMETHOD(Init) (THIS_ IDirectMusicSegment* pSegment) PURE; - STDMETHOD(InitPlay) (THIS_ IDirectMusicSegmentState* pSegmentState, - IDirectMusicPerformance* pPerformance, - void** ppStateData, - DWORD dwVirtualTrackID, - DWORD dwFlags) PURE; - STDMETHOD(EndPlay) (THIS_ void* pStateData) PURE; - STDMETHOD(Play) (THIS_ void* pStateData, - MUSIC_TIME mtStart, - MUSIC_TIME mtEnd, - MUSIC_TIME mtOffset, - DWORD dwFlags, - IDirectMusicPerformance* pPerf, - IDirectMusicSegmentState* pSegSt, - DWORD dwVirtualID) PURE; - STDMETHOD(GetParam) (THIS_ REFGUID rguidType, - MUSIC_TIME mtTime, - MUSIC_TIME* pmtNext, - void* pParam) PURE; - STDMETHOD(SetParam) (THIS_ REFGUID rguidType, - MUSIC_TIME mtTime, - void* pParam) PURE; - STDMETHOD(IsParamSupported) (THIS_ REFGUID rguidType) PURE; - STDMETHOD(AddNotificationType) (THIS_ REFGUID rguidNotificationType) PURE; - STDMETHOD(RemoveNotificationType) (THIS_ REFGUID rguidNotificationType) PURE; - STDMETHOD(Clone) (THIS_ MUSIC_TIME mtStart, - MUSIC_TIME mtEnd, - IDirectMusicTrack** ppTrack) PURE; -}; - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicTrack8 */ -#undef INTERFACE -#define INTERFACE IDirectMusicTrack8 -DECLARE_INTERFACE_(IDirectMusicTrack8, IDirectMusicTrack) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicTrack */ - STDMETHOD(Init) (THIS_ IDirectMusicSegment* pSegment) PURE; - STDMETHOD(InitPlay) (THIS_ IDirectMusicSegmentState* pSegmentState, - IDirectMusicPerformance* pPerformance, - void** ppStateData, - DWORD dwVirtualTrackID, - DWORD dwFlags) PURE; - STDMETHOD(EndPlay) (THIS_ void* pStateData) PURE; - STDMETHOD(Play) (THIS_ void* pStateData, - MUSIC_TIME mtStart, - MUSIC_TIME mtEnd, - MUSIC_TIME mtOffset, - DWORD dwFlags, - IDirectMusicPerformance* pPerf, - IDirectMusicSegmentState* pSegSt, - DWORD dwVirtualID) PURE; - STDMETHOD(GetParam) (THIS_ REFGUID rguidType, - MUSIC_TIME mtTime, - MUSIC_TIME* pmtNext, - void* pParam) PURE; - STDMETHOD(SetParam) (THIS_ REFGUID rguidType, - MUSIC_TIME mtTime, - void* pParam) PURE; - STDMETHOD(IsParamSupported) (THIS_ REFGUID rguidType) PURE; - STDMETHOD(AddNotificationType) (THIS_ REFGUID rguidNotificationType) PURE; - STDMETHOD(RemoveNotificationType) (THIS_ REFGUID rguidNotificationType) PURE; - STDMETHOD(Clone) (THIS_ MUSIC_TIME mtStart, - MUSIC_TIME mtEnd, - IDirectMusicTrack** ppTrack) PURE; - /* IDirectMusicTrack8 */ - STDMETHOD(PlayEx) (THIS_ void* pStateData, - REFERENCE_TIME rtStart, - REFERENCE_TIME rtEnd, - REFERENCE_TIME rtOffset, - DWORD dwFlags, - IDirectMusicPerformance* pPerf, - IDirectMusicSegmentState* pSegSt, - DWORD dwVirtualID) PURE; - STDMETHOD(GetParamEx) (THIS_ REFGUID rguidType, /* Command type. */ - REFERENCE_TIME rtTime, /* Time, in ref time if dwFlags == DMUS_TRACK_PARAMF_CLOCK. Otherwise, music time. */ - REFERENCE_TIME* prtNext, /* Time of next parameter, relative to rtTime, in music or clock time units. */ - void* pParam, /* Pointer to the parameter data. */ - void * pStateData, /* State data for track instance. */ - DWORD dwFlags) PURE; /* Control flags. */ - STDMETHOD(SetParamEx) (THIS_ REFGUID rguidType, - REFERENCE_TIME rtTime, - void* pParam, /* Pointer to the parameter data. */ - void * pStateData, /* State data for track instance. */ - DWORD dwFlags) PURE; /* Control flags. */ - STDMETHOD(Compose) (THIS_ IUnknown* pContext, /* Context for composition */ - DWORD dwTrackGroup, - IDirectMusicTrack** ppResultTrack) PURE; - STDMETHOD(Join) (THIS_ IDirectMusicTrack* pNewTrack, - MUSIC_TIME mtJoin, - IUnknown* pContext, /* Context for joining */ - DWORD dwTrackGroup, - IDirectMusicTrack** ppResultTrack) PURE; -}; - -/* CLSID's */ -DEFINE_GUID(CLSID_DirectMusicTempoTrack,0xd2ac2885, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicSeqTrack,0xd2ac2886, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicSysExTrack,0xd2ac2887, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicTimeSigTrack,0xd2ac2888, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicChordTrack,0xd2ac288b, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicCommandTrack,0xd2ac288c, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicStyleTrack,0xd2ac288d, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicMotifTrack,0xd2ac288e, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicSignPostTrack,0xf17e8672, 0xc3b4, 0x11d1, 0x87, 0xb, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicBandTrack,0xd2ac2894, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicChordMapTrack,0xd2ac2896, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicMuteTrack,0xd2ac2898, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* New CLSID's for DX8 */ -DEFINE_GUID(CLSID_DirectMusicScriptTrack,0x4108fa85, 0x3586, 0x11d3, 0x8b, 0xd7, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xb6); /* {4108FA85-3586-11d3-8BD7-00600893B1B6} */ -DEFINE_GUID(CLSID_DirectMusicMarkerTrack,0x55a8fd00, 0x4288, 0x11d3, 0x9b, 0xd1, 0x8a, 0xd, 0x61, 0xc8, 0x88, 0x35); -DEFINE_GUID(CLSID_DirectMusicSegmentTriggerTrack, 0xbae4d665, 0x4ea1, 0x11d3, 0x8b, 0xda, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xb6); /* {BAE4D665-4EA1-11d3-8BDA-00600893B1B6} */ -DEFINE_GUID(CLSID_DirectMusicLyricsTrack, 0x995c1cf5, 0x54ff, 0x11d3, 0x8b, 0xda, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xb6); /* {995C1CF5-54FF-11d3-8BDA-00600893B1B6} */ -DEFINE_GUID(CLSID_DirectMusicParamControlTrack, 0x4be0537b, 0x5c19, 0x11d3, 0x8b, 0xdc, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xb6); /* {4BE0537B-5C19-11d3-8BDC-00600893B1B6} */ -DEFINE_GUID(CLSID_DirectMusicWaveTrack,0xeed36461, 0x9ea5, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74); - -/* IID's */ -DEFINE_GUID(IID_IDirectMusicTrack, 0xf96029a1, 0x4282, 0x11d2, 0x87, 0x17, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(IID_IDirectMusicTool,0xd2ac28ba, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Interface IDs for DX8 */ -/* changed interfaces (GUID only) */ -DEFINE_GUID(IID_IDirectMusicTool8, 0xe674303, 0x3b05, 0x11d3, 0x9b, 0xd1, 0xf9, 0xe7, 0xf0, 0xa0, 0x15, 0x36); -DEFINE_GUID(IID_IDirectMusicTrack8, 0xe674304, 0x3b05, 0x11d3, 0x9b, 0xd1, 0xf9, 0xe7, 0xf0, 0xa0, 0x15, 0x36); - -#ifdef __cplusplus -}; /* extern "C" */ -#endif - -#include - -#endif /* #ifndef _DMPLUGIN_ */ diff --git a/sdk/dx8sdk/Include/dmusbuff.h b/sdk/dx8sdk/Include/dmusbuff.h deleted file mode 100644 index 54884538..00000000 --- a/sdk/dx8sdk/Include/dmusbuff.h +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************** -* * -* DMusBuff.h -- This module defines the buffer format for DirectMusic * -* Shared file between user mode and kernel mode components * -* * -* Copyright (c) 1998, Microsoft Corp. All rights reserved. * -* * -***************************************************************************/ - -#ifndef _DMusBuff_ -#define _DMusBuff_ - -/* Format of DirectMusic events in a buffer - * - * A buffer contains 1 or more events, each with the following header. - * Immediately following the header is the event data. The header+data - * size is rounded to the nearest quadword (8 bytes). - */ - -#include /* Do not pad at end - that's where the data is */ -typedef struct _DMUS_EVENTHEADER *LPDMUS_EVENTHEADER; -typedef struct _DMUS_EVENTHEADER -{ - DWORD cbEvent; /* Unrounded bytes in event */ - DWORD dwChannelGroup; /* Channel group of event */ - REFERENCE_TIME rtDelta; /* Delta from start time of entire buffer */ - DWORD dwFlags; /* Flags DMUS_EVENT_xxx */ -} DMUS_EVENTHEADER; -#include - -#define DMUS_EVENT_STRUCTURED 0x00000001 /* Unstructured data (SysEx, etc.) */ - -/* The number of bytes to allocate for an event with 'cb' data bytes. - */ -#define QWORD_ALIGN(x) (((x) + 7) & ~7) -#define DMUS_EVENT_SIZE(cb) QWORD_ALIGN(sizeof(DMUS_EVENTHEADER) + cb) - - -#endif /* _DMusBuff_ */ - - diff --git a/sdk/dx8sdk/Include/dmusicc.h b/sdk/dx8sdk/Include/dmusicc.h deleted file mode 100644 index 3084d110..00000000 --- a/sdk/dx8sdk/Include/dmusicc.h +++ /dev/null @@ -1,784 +0,0 @@ -/************************************************************************ -* * -* dmusicc.h -- This module defines the DirectMusic core API's * -* * -* Copyright (c) Microsoft Corporation. All rights reserved. * -* * -************************************************************************/ - -#ifndef _DMUSICC_ -#define _DMUSICC_ - -#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 - -typedef ULONGLONG SAMPLE_TIME; -typedef ULONGLONG SAMPLE_POSITION; -typedef SAMPLE_TIME *LPSAMPLE_TIME; - -#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 -#define DMUS_EFFECT_DELAY 0x00000004 - -/* 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. -#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. - -#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 -#define DMUS_PORTPARAMS_FEATURES 0x00000080 /* DirectX 8.0 and above */ - -typedef struct _DMUS_PORTPARAMS -{ - DWORD dwSize; - DWORD dwValidParams; - DWORD dwVoices; - DWORD dwChannelGroups; - DWORD dwAudioChannels; - DWORD dwSampleRate; - DWORD dwEffectFlags; - BOOL fShare; -} DMUS_PORTPARAMS7; - -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; -typedef DMUS_PORTPARAMS *LPDMUS_PORTPARAMS; - -typedef struct _DMUS_SYNTHSTATS *LPDMUS_SYNTHSTATS; -typedef struct _DMUS_SYNTHSTATS8 *LPDMUS_SYNTHSTATS8; -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; - -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; - -#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; - -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; -typedef DMUS_CLOCKINFO *LPDMUS_CLOCKINFO; - -/* 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 - -interface IDirectMusic; -interface IDirectMusic8; -interface IDirectMusicBuffer; -interface IDirectMusicPort; -interface IDirectMusicThru; -interface IReferenceClock; - -#ifndef __cplusplus - -typedef interface IDirectMusic IDirectMusic; -typedef interface IDirectMusic8 IDirectMusic8; -typedef interface IDirectMusicPort IDirectMusicPort; -typedef interface IDirectMusicBuffer IDirectMusicBuffer; -typedef interface IDirectMusicThru IDirectMusicThru; -typedef interface IReferenceClock IReferenceClock; - -#endif /* C++ */ - -typedef IDirectMusic *LPDIRECTMUSIC; -typedef IDirectMusic8 *LPDIRECTMUSIC8; -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; -}; - -#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; -}; - -#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; -}; - -typedef IDirectMusicBuffer IDirectMusicBuffer8; -typedef IDirectMusicBuffer8 *LPDIRECTMUSICBUFFER8; - -#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; -}; - -typedef IDirectMusicInstrument IDirectMusicInstrument8; -typedef IDirectMusicInstrument8 *LPDIRECTMUSICINSTRUMENT8; - -#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 */ -}; - -typedef IDirectMusicDownloadedInstrument IDirectMusicDownloadedInstrument8; -typedef IDirectMusicDownloadedInstrument8 *LPDIRECTMUSICDOWNLOADEDINSTRUMENT8; - -#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; -}; - -typedef IDirectMusicCollection IDirectMusicCollection8; -typedef IDirectMusicCollection8 *LPDIRECTMUSICCOLLECTION8; - -#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; -}; - -typedef IDirectMusicDownload IDirectMusicDownload8; -typedef IDirectMusicDownload8 *LPDIRECTMUSICDOWNLOAD8; - -#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; -}; - -typedef IDirectMusicPortDownload IDirectMusicPortDownload8; -typedef IDirectMusicPortDownload8 *LPDIRECTMUSICPORTDOWNLOAD8; - -/* 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; -}; - -typedef IDirectMusicPort IDirectMusicPort8; -typedef IDirectMusicPort8 *LPDIRECTMUSICPORT8; - -#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; -}; - -typedef IDirectMusicThru IDirectMusicThru8; -typedef IDirectMusicThru8 *LPDIRECTMUSICTHRU8; - -#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); - -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 - - -/* 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 /* #ifndef _DMUSICC_ */ diff --git a/sdk/dx8sdk/Include/dmusicf.h b/sdk/dx8sdk/Include/dmusicf.h deleted file mode 100644 index 195edd7e..00000000 --- a/sdk/dx8sdk/Include/dmusicf.h +++ /dev/null @@ -1,2199 +0,0 @@ -/************************************************************************ -* * -* dmusicf.h -- This module defines the DirectMusic file formats * -* * -* Copyright (c) Microsoft Corporation. All rights reserved. * -* * -************************************************************************/ - -#ifndef _DMUSICF_ -#define _DMUSICF_ - - -#include - -#define COM_NO_WINDOWS_H -#include - -#include - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -interface IDirectMusicCollection; -#ifndef __cplusplus -typedef interface IDirectMusicCollection IDirectMusicCollection; -#endif - -/* Common chunks */ - -#define DMUS_FOURCC_GUID_CHUNK mmioFOURCC('g','u','i','d') -#define DMUS_FOURCC_INFO_LIST mmioFOURCC('I','N','F','O') -#define DMUS_FOURCC_UNFO_LIST mmioFOURCC('U','N','F','O') -#define DMUS_FOURCC_UNAM_CHUNK mmioFOURCC('U','N','A','M') -#define DMUS_FOURCC_UART_CHUNK mmioFOURCC('U','A','R','T') -#define DMUS_FOURCC_UCOP_CHUNK mmioFOURCC('U','C','O','P') -#define DMUS_FOURCC_USBJ_CHUNK mmioFOURCC('U','S','B','J') -#define DMUS_FOURCC_UCMT_CHUNK mmioFOURCC('U','C','M','T') -#define DMUS_FOURCC_CATEGORY_CHUNK mmioFOURCC('c','a','t','g') -#define DMUS_FOURCC_VERSION_CHUNK mmioFOURCC('v','e','r','s') - -/* The following structures are used by the Tracks, and are the packed structures */ -/* that are passed to the Tracks inside the IStream. */ - - -typedef struct _DMUS_IO_SEQ_ITEM -{ - MUSIC_TIME mtTime; - MUSIC_TIME mtDuration; - DWORD dwPChannel; - short nOffset; - BYTE bStatus; - BYTE bByte1; - BYTE bByte2; -} DMUS_IO_SEQ_ITEM; - - -typedef struct _DMUS_IO_CURVE_ITEM -{ - MUSIC_TIME mtStart; - MUSIC_TIME mtDuration; - MUSIC_TIME mtResetDuration; - DWORD dwPChannel; - short nOffset; - short nStartValue; - short nEndValue; - short nResetValue; - BYTE bType; - BYTE bCurveShape; - BYTE bCCData; - BYTE bFlags; - /* Following was added for DX8. */ - WORD wParamType; /* RPN or NRPN parameter number. */ - WORD wMergeIndex; /* Allows multiple parameters to be merged (pitchbend, volume, and expression.) */ -} DMUS_IO_CURVE_ITEM; - - -typedef struct _DMUS_IO_TEMPO_ITEM -{ - MUSIC_TIME lTime; - double dblTempo; -} DMUS_IO_TEMPO_ITEM; - - -typedef struct _DMUS_IO_SYSEX_ITEM -{ - MUSIC_TIME mtTime; - DWORD dwPChannel; - DWORD dwSysExLength; -} DMUS_IO_SYSEX_ITEM; - -typedef DMUS_CHORD_KEY DMUS_CHORD_PARAM; /* DMUS_CHORD_KEY defined in dmusici.h */ - -typedef struct _DMUS_RHYTHM_PARAM -{ - DMUS_TIMESIGNATURE TimeSig; - DWORD dwRhythmPattern; -} DMUS_RHYTHM_PARAM; - -typedef struct _DMUS_TEMPO_PARAM -{ - MUSIC_TIME mtTime; - double dblTempo; -} DMUS_TEMPO_PARAM; - - -typedef struct _DMUS_MUTE_PARAM -{ - DWORD dwPChannel; - DWORD dwPChannelMap; - BOOL fMute; -} DMUS_MUTE_PARAM; - -/* Style chunks */ - -#define DMUS_FOURCC_STYLE_FORM mmioFOURCC('D','M','S','T') -#define DMUS_FOURCC_STYLE_CHUNK mmioFOURCC('s','t','y','h') -#define DMUS_FOURCC_PART_LIST mmioFOURCC('p','a','r','t') -#define DMUS_FOURCC_PART_CHUNK mmioFOURCC('p','r','t','h') -#define DMUS_FOURCC_NOTE_CHUNK mmioFOURCC('n','o','t','e') -#define DMUS_FOURCC_CURVE_CHUNK mmioFOURCC('c','r','v','e') -#define DMUS_FOURCC_MARKER_CHUNK mmioFOURCC('m','r','k','r') -#define DMUS_FOURCC_RESOLUTION_CHUNK mmioFOURCC('r','s','l','n') -#define DMUS_FOURCC_ANTICIPATION_CHUNK mmioFOURCC('a','n','p','n') -#define DMUS_FOURCC_PATTERN_LIST mmioFOURCC('p','t','t','n') -#define DMUS_FOURCC_PATTERN_CHUNK mmioFOURCC('p','t','n','h') -#define DMUS_FOURCC_RHYTHM_CHUNK mmioFOURCC('r','h','t','m') -#define DMUS_FOURCC_PARTREF_LIST mmioFOURCC('p','r','e','f') -#define DMUS_FOURCC_PARTREF_CHUNK mmioFOURCC('p','r','f','c') -#define DMUS_FOURCC_STYLE_PERS_REF_LIST mmioFOURCC('p','r','r','f') -#define DMUS_FOURCC_MOTIFSETTINGS_CHUNK mmioFOURCC('m','t','f','s') - -/* Flags used by variations: these make up the DWORDs in dwVariationChoices. */ - -/* These flags determine the types of chords supported by a given variation in DirectMusic */ -/* mode. The first seven flags (bits 1-7) are set if the variation supports major chords */ -/* rooted in scale positions, so, e.g., if bits 1, 2, and 4 are set, the variation */ -/* supports major chords rooted in the tonic, second, and fourth scale positions. The */ -/* next seven flags serve the same purpose, but for minor chords, and the following seven */ -/* flags serve the same purpose for chords that are not major or minor (e.g., SUS 4 */ -/* chords). Bits 22, 23, and 24 are set if the variation supports chords rooted in the */ -/* scale, chords rooted sharp of scale tones, and chords rooted flat of scale tones, */ -/* respectively. For example, to support a C# minor chord in the scale of C Major, */ -/* bits 8 (for tonic minor) and 24 (for sharp) need to be set. Bits 25, 26, an 27 handle */ -/* chords that are triads, 6th or 7th chords, and chords with extensions, respectively. */ -/* bits 28 and 29 handle chords that are followed by tonic and dominant chords, */ -/* respectively. */ -#define DMUS_VARIATIONF_MAJOR 0x0000007F /* Seven positions in the scale - major chords. */ -#define DMUS_VARIATIONF_MINOR 0x00003F80 /* Seven positions in the scale - minor chords. */ -#define DMUS_VARIATIONF_OTHER 0x001FC000 /* Seven positions in the scale - other chords. */ -#define DMUS_VARIATIONF_ROOT_SCALE 0x00200000 /* Handles chord roots in the scale. */ -#define DMUS_VARIATIONF_ROOT_FLAT 0x00400000 /* Handles flat chord roots (based on scale notes). */ -#define DMUS_VARIATIONF_ROOT_SHARP 0x00800000 /* Handles sharp chord roots (based on scale notes). */ -#define DMUS_VARIATIONF_TYPE_TRIAD 0x01000000 /* Handles simple chords - triads. */ -#define DMUS_VARIATIONF_TYPE_6AND7 0x02000000 /* Handles simple chords - 6 and 7. */ -#define DMUS_VARIATIONF_TYPE_COMPLEX 0x04000000 /* Handles complex chords. */ -#define DMUS_VARIATIONF_DEST_TO1 0x08000000 /* Handles transitions to 1 chord. */ -#define DMUS_VARIATIONF_DEST_TO5 0x10000000 /* Handles transitions to 5 chord. */ -#define DMUS_VARIATIONF_DEST_OTHER 0x40000000 /* Handles transitions to chords other than 1 . */ - -/* legacy mask for variation modes */ -#define DMUS_VARIATIONF_MODES 0xE0000000 -/* Bits 29 and 31 of the variation flags are the Mode bits. If both are 0, it's IMA. */ -/* If bit 29 is 1, it's Direct Music. */ -#define DMUS_VARIATIONF_MODES_EX (0x20000000 | 0x80000000) -#define DMUS_VARIATIONF_IMA25_MODE 0x00000000 -#define DMUS_VARIATIONF_DMUS_MODE 0x20000000 - -/* Set this if the part uses marker events */ -#define DMUS_PARTF_USE_MARKERS 0x1 -/* Set this if the part is allowed to switch only on chord-aligned markers */ -#define DMUS_PARTF_ALIGN_CHORDS 0x2 - -/* These specify if the marker event signals whether to stop a variation or start a -pattern/variation (or both), and whether new variations must align with a chord */ -#define DMUS_MARKERF_START 0x1 -#define DMUS_MARKERF_STOP 0x2 -#define DMUS_MARKERF_CHORD_ALIGN 0x4 - -/* if this flag is set, variation settings in a playing pattern-based track's state data will -persist in the track after it stops playing */ -#define DMUS_PATTERNF_PERSIST_CONTROL 0x1 - -/* These specify possible values for DMUS_IO_PARTREF.bRandomVariation - all but DMUS_VARIATIONT_SEQUENTIAL and DMUS_VARIATIONT_RANDOM are dx8. */ -typedef enum enumDMUS_VARIATIONT_TYPES -{ - DMUS_VARIATIONT_SEQUENTIAL = 0, /* Play sequential starting with variation 1. */ - DMUS_VARIATIONT_RANDOM = 1, /* Play randomly. */ - DMUS_VARIATIONT_RANDOM_START = 2, /* Play sequential starting with a random variation. */ - DMUS_VARIATIONT_NO_REPEAT = 3, /* Play randomly, but don't play the same variation twice. */ - DMUS_VARIATIONT_RANDOM_ROW = 4 /* Play randomly as a row: don't repeat any variation until all have played. */ -} DMUS_VARIATIONT_TYPES; - -/* These specify possible values for DMUS_IO_PATTERN.wEmbellishment (dx8) */ -typedef enum enumDMUS_EMBELLISHT_TYPES -{ - DMUS_EMBELLISHT_NORMAL = 0, - DMUS_EMBELLISHT_FILL = 1, - DMUS_EMBELLISHT_BREAK = 2, - DMUS_EMBELLISHT_INTRO = 4, - DMUS_EMBELLISHT_END = 8, - DMUS_EMBELLISHT_MOTIF = 16, - DMUS_EMBELLISHT_ALL = 0xFFFF -} DMUS_EMBELLISHT_TYPES; - -#pragma pack(2) - -typedef struct _DMUS_IO_TIMESIG -{ - /* Time signatures define how many beats per measure, which note receives */ - /* the beat, and the grid resolution. */ - BYTE bBeatsPerMeasure; /* beats per measure (top of time sig) */ - BYTE bBeat; /* what note receives the beat (bottom of time sig.) */ - /* we can assume that 0 means 256th note */ - WORD wGridsPerBeat; /* grids per beat */ -} DMUS_IO_TIMESIG; - -typedef struct _DMUS_IO_STYLE -{ - DMUS_IO_TIMESIG timeSig; /* Styles have a default Time Signature */ - double dblTempo; -} DMUS_IO_STYLE; - -typedef struct _DMUS_IO_VERSION -{ - DWORD dwVersionMS; /* Version # high-order 32 bits */ - DWORD dwVersionLS; /* Version # low-order 32 bits */ -} DMUS_IO_VERSION; - -typedef struct _DMUS_IO_PATTERN -{ - DMUS_IO_TIMESIG timeSig; /* Patterns can override the Style's Time sig. */ - BYTE bGrooveBottom; /* bottom of groove range */ - BYTE bGrooveTop; /* top of groove range */ - WORD wEmbellishment; /* Fill, Break, Intro, End, Normal, Motif */ - WORD wNbrMeasures; /* length in measures */ - BYTE bDestGrooveBottom; /* bottom of groove range for next pattern */ - BYTE bDestGrooveTop; /* top of groove range for next pattern */ - DWORD dwFlags; /* various flags */ -} DMUS_IO_PATTERN; - -typedef struct _DMUS_IO_STYLEPART -{ - DMUS_IO_TIMESIG timeSig; /* can override pattern's */ - DWORD dwVariationChoices[32]; /* MOAW choice bitfield */ - GUID guidPartID; /* identifies the part */ - WORD wNbrMeasures; /* length of the Part */ - BYTE bPlayModeFlags; /* see PLAYMODE flags */ - BYTE bInvertUpper; /* inversion upper limit */ - BYTE bInvertLower; /* inversion lower limit */ - BYTE bPad[3]; /* for DWORD alignment */ - DWORD dwFlags; /* various flags */ -} DMUS_IO_STYLEPART; - -typedef struct _DMUS_IO_PARTREF -{ - GUID guidPartID; /* unique ID for matching up with parts */ - WORD wLogicalPartID; /* corresponds to port/device/midi channel OBSOLETE */ - BYTE bVariationLockID; /* parts with the same ID lock variations. */ - /* high bit is used to identify master Part */ - BYTE bSubChordLevel; /* tells which sub chord level this part wants */ - BYTE bPriority; /* 256 priority levels. Parts with lower priority */ - /* aren't played first when a device runs out of */ - /* notes */ - BYTE bRandomVariation; /* when set, matching variations play in random order */ - /* when clear, matching variations play sequentially */ - WORD wPad; /* not used */ - DWORD dwPChannel; /* replaces wLogicalPartID */ -} DMUS_IO_PARTREF; - -typedef struct _DMUS_IO_STYLENOTE -{ - MUSIC_TIME mtGridStart; /* when this note occurs */ - DWORD dwVariation; /* variation bits */ - MUSIC_TIME mtDuration; /* how long this note lasts */ - short nTimeOffset; /* offset from mtGridStart */ - WORD wMusicValue; /* Position in scale. */ - BYTE bVelocity; /* Note velocity. */ - BYTE bTimeRange; /* Range to randomize start time. */ - BYTE bDurRange; /* Range to randomize duration. */ - BYTE bVelRange; /* Range to randomize velocity. */ - BYTE bInversionID; /* Identifies inversion group to which this note belongs */ - BYTE bPlayModeFlags; /* Can override part */ - /* Following exists only under DX8 and on */ - BYTE bNoteFlags; /* values from DMUS_NOTEF_FLAGS */ -} DMUS_IO_STYLENOTE; - -typedef struct _DMUS_IO_STYLECURVE -{ - MUSIC_TIME mtGridStart; /* when this curve occurs */ - DWORD dwVariation; /* variation bits */ - MUSIC_TIME mtDuration; /* how long this curve lasts */ - MUSIC_TIME mtResetDuration;/* how long after the end of the curve to reset the curve */ - short nTimeOffset; /* offset from mtGridStart */ - short nStartValue; /* curve's start value */ - short nEndValue; /* curve's end value */ - short nResetValue; /* the value to which to reset the curve */ - BYTE bEventType; /* type of curve */ - BYTE bCurveShape; /* shape of curve */ - BYTE bCCData; /* CC# */ - BYTE bFlags; /* Bit 1=TRUE means to send nResetValue. Otherwise, don't. - Other bits are reserved. */ - /* Following was added for DX8. */ - WORD wParamType; /* RPN or NRPN parameter number. */ - WORD wMergeIndex; /* Allows multiple parameters to be merged (pitchbend, volume, and expression.) */ -} DMUS_IO_STYLECURVE; - -typedef struct _DMUS_IO_STYLEMARKER -{ - MUSIC_TIME mtGridStart; /* when this marker occurs */ - DWORD dwVariation; /* variation bits */ - WORD wMarkerFlags; /* how the marker is used */ -} DMUS_IO_STYLEMARKER; - -typedef struct _DMUS_IO_STYLERESOLUTION -{ - DWORD dwVariation; /* variation bits */ - WORD wMusicValue; /* Position in scale. */ - BYTE bInversionID; /* Identifies inversion group to which this note belongs */ - BYTE bPlayModeFlags; /* Can override part */ -} DMUS_IO_STYLERESOLUTION; - -typedef struct _DMUS_IO_STYLE_ANTICIPATION -{ - MUSIC_TIME mtGridStart; /* when this anticipation occurs */ - DWORD dwVariation; /* variation bits */ - short nTimeOffset; /* offset from mtGridStart */ - BYTE bTimeRange; /* Range to randomize start time. */ -} DMUS_IO_STYLE_ANTICIPATION; - -typedef struct _DMUS_IO_MOTIFSETTINGS -{ - DWORD dwRepeats; /* Number of repeats. By default, 0. */ - MUSIC_TIME mtPlayStart; /* Start of playback. By default, 0. */ - MUSIC_TIME mtLoopStart; /* Start of looping portion. By default, 0. */ - MUSIC_TIME mtLoopEnd; /* End of loop. Must be greater than mtLoopStart. Or, 0, indicating loop full motif. */ - DWORD dwResolution; /* Default resolution. */ -} DMUS_IO_MOTIFSETTINGS; - -#pragma pack() - - -/* -RIFF -( - 'DMST' // Style - // Style header chunk - // Every Style has a GUID - [] // Name, author, copyright info., comments - [] // version chunk - ... // Array of parts in the Style, used by patterns - ... // Array of patterns in the Style - ... // Array of bands in the Style - []...// Optional array of chord map references in the Style -) - - // - styh - ( - - ) - - // - guid - ( - - ) - - // - vers - ( - - ) - - // - LIST - ( - 'part' - // Part header chunk - [] // Name, author, copyright info., comments - [] // Optional chunk containing an array of notes in Part - [] // Optional chunk containing an array of curves in Part - [] // Optional chunk containing an array of markers in Part - [] // Optional chunk containing an array of variation resolutions in Part - [] // Optional chunk containing an array of resolution anticipations in Part - ) - - // - prth - ( - - ) - - // - 'note' - ( - // sizeof DMUS_IO_STYLENOTE:DWORD - ... - ) - - // - 'crve' - ( - // sizeof DMUS_IO_STYLECURVE:DWORD - ... - ) - - // - 'mrkr' - ( - // sizeof DMUS_IO_STYLEMARKER:DWORD - ... - ) - - // - 'rsln' - ( - // sizeof DMUS_IO_STYLERESOLUTION:DWORD - ... - ) - - // - 'anpn' - ( - // sizeof DMUS_IO_STYLE_ANTICIPATION:DWORD - ... - ) - - // - LIST - ( - 'pttn' - // Pattern header chunk - // Chunk containing an array of rhythms for chord matching - [] // Name, author, copyright info., comments - [] // Motif settings chunk - [] // Optional band to be associated with the pattern (for motifs) - ... // Array of part reference id's - ) - - // - ptnh - ( - - ) - - // - 'rhtm' - ( - // DWORD's representing rhythms for chord matching based on number - // of measures in the pattern - ) - - - // pref-list - LIST - ( - 'pref' - // part ref chunk - ) - - // - prfc - ( - - ) - - // - mtfs - ( - - ) - - // - LIST - ( - 'prrf' - ... // Array of Chordmap references - ) -*/ - -/* Pattern chunk, for use in Pattern tracks */ - -#define DMUS_FOURCC_PATTERN_FORM mmioFOURCC('D','M','P','T') - -/* -RIFF -( - 'DMPT' // Pattern - // Style header chunk - // The pattern, in single pattern format (includes DMUS_FOURCC_PART_LIST chunks) -) -*/ - - -/* Chord and command file formats */ - -/* These specify possible values for DMUS_IO_COMMAND.bRepeatMode (dx8) */ -typedef enum enumDMUS_PATTERNT_TYPES -{ - DMUS_PATTERNT_RANDOM = 0, /* Play randomly. (dx7 behavior) */ - DMUS_PATTERNT_REPEAT = 1, /* Repeat last pattern. */ - DMUS_PATTERNT_SEQUENTIAL = 2, /* Play sequential starting with first matching pattern. */ - DMUS_PATTERNT_RANDOM_START = 3, /* Play sequential starting with a random pattern. */ - DMUS_PATTERNT_NO_REPEAT = 4, /* Play randomly, but don't play the same pattern twice. */ - DMUS_PATTERNT_RANDOM_ROW = 5 /* Play randomly as a row: don't repeat any pattern until all have played. */ -} DMUS_PATTERNT_TYPES; - - -#define DMUS_FOURCC_CHORDTRACK_LIST mmioFOURCC('c','o','r','d') -#define DMUS_FOURCC_CHORDTRACKHEADER_CHUNK mmioFOURCC('c','r','d','h') -#define DMUS_FOURCC_CHORDTRACKBODY_CHUNK mmioFOURCC('c','r','d','b') - -#define DMUS_FOURCC_COMMANDTRACK_CHUNK mmioFOURCC('c','m','n','d') - -typedef struct _DMUS_IO_CHORD -{ - WCHAR wszName[16]; /* Name of the chord */ - MUSIC_TIME mtTime; /* Time of this chord */ - WORD wMeasure; /* Measure this falls on */ - BYTE bBeat; /* Beat this falls on */ - BYTE bFlags; /* Various flags */ -} DMUS_IO_CHORD; - -typedef struct _DMUS_IO_SUBCHORD -{ - DWORD dwChordPattern; /* Notes in the subchord */ - DWORD dwScalePattern; /* Notes in the scale */ - DWORD dwInversionPoints; /* Where inversions can occur */ - DWORD dwLevels; /* Which levels are supported by this subchord */ - BYTE bChordRoot; /* Root of the subchord */ - BYTE bScaleRoot; /* Root of the scale */ -} DMUS_IO_SUBCHORD; - -typedef struct _DMUS_IO_COMMAND -{ - MUSIC_TIME mtTime; /* Time of this command */ - WORD wMeasure; /* Measure this falls on */ - BYTE bBeat; /* Beat this falls on */ - BYTE bCommand; /* Command type (see #defines below) */ - BYTE bGrooveLevel; /* Groove level (0 if command is not a groove) */ - BYTE bGrooveRange; /* Groove range */ - BYTE bRepeatMode; /* Used to control selection of patterns with same groove level */ -} DMUS_IO_COMMAND; - - -/* - - // - LIST - ( - 'cord' - - ... // Chord body chunks - ) - - // - crdh - ( - // Scale: dword (upper 8 bits for root, lower 24 for scale) - ) - - // - crdb - ( - // sizeof DMUS_IO_CHORD:dword - - // # of DMUS_IO_SUBCHORDS:dword - // sizeof DMUS_IO_SUBCHORDS:dword - // a number of - ) - - - // - 'cmnd' - ( - //sizeof DMUS_IO_COMMAND: DWORD - ... - ) - -*/ - -/* File io for DirectMusic Tool and ToolGraph objects -*/ - -/* RIFF ids: */ - -#define DMUS_FOURCC_TOOLGRAPH_FORM mmioFOURCC('D','M','T','G') -#define DMUS_FOURCC_TOOL_LIST mmioFOURCC('t','o','l','l') -#define DMUS_FOURCC_TOOL_FORM mmioFOURCC('D','M','T','L') -#define DMUS_FOURCC_TOOL_CHUNK mmioFOURCC('t','o','l','h') - -/* io structures: */ - -typedef struct _DMUS_IO_TOOL_HEADER -{ - GUID guidClassID; /* Class id of tool. */ - long lIndex; /* Position in graph. */ - DWORD cPChannels; /* Number of items in channels array. */ - FOURCC ckid; /* chunk ID of tool's data chunk if 0 fccType valid. */ - FOURCC fccType; /* list type if NULL ckid valid. */ - DWORD dwPChannels[1]; /* Array of PChannels, size determined by cPChannels. */ -} DMUS_IO_TOOL_HEADER; - -/* -RIFF -( - 'DMTG' // DirectMusic ToolGraph chunk - [] // GUID for ToolGraph - [] // Optional version info - [] // Name, author, copyright info., comments - // List of Tools -) - - // - 'guid' - ( - - ) - - // - vers - ( - - ) - - // - LIST - ( - 'toll' // Array of tools - ... // Each tool is encapsulated in a RIFF chunk - ) - -// Tools are embedded in a graph. Theoretically, they can be saved as individual files too. -RIFF -( - 'DMTL' - - [] // Tool data. Must be a RIFF readable chunk. -) - - // // Tool header chunk - ( - 'tolh' - // Tool header - ) -*/ - -/* The AudioPath file carries everything for describing a specific audio path, - including Tool Graph and Buffer Descriptor. - This can even be used for configuring a complete performance. -*/ - -#define DMUS_FOURCC_AUDIOPATH_FORM mmioFOURCC('D','M','A','P') - -/* -RIFF -( - 'DMAP' // DirectMusic AudioPath chunk - [] // GUID for this Audio Path configuration - [] // Optional version info - [] // Name, author, copyright info., comments - [] // Optional ToolGraph - [] // Optional list of port configurations - []...// Optional array of Dsound buffer descriptors -) -*/ - -#define DMUS_FOURCC_PORTCONFIGS_LIST mmioFOURCC('p','c','s','l') -#define DMUS_FOURCC_PORTCONFIG_LIST mmioFOURCC('p','c','f','l') -#define DMUS_FOURCC_PORTCONFIG_ITEM mmioFOURCC('p','c','f','h') -#define DMUS_FOURCC_PORTPARAMS_ITEM mmioFOURCC('p','p','r','h') -#define DMUS_FOURCC_DSBUFFER_LIST mmioFOURCC('d','b','f','l') -#define DMUS_FOURCC_DSBUFFATTR_ITEM mmioFOURCC('d','d','a','h') -#define DMUS_FOURCC_PCHANNELS_LIST mmioFOURCC('p','c','h','l') -#define DMUS_FOURCC_PCHANNELS_ITEM mmioFOURCC('p','c','h','h') - -typedef struct _DMUS_IO_PORTCONFIG_HEADER -{ - GUID guidPort; /* GUID of requested port. */ - DWORD dwPChannelBase; /* PChannel that this should start on. */ - DWORD dwPChannelCount; /* How many channels. */ - DWORD dwFlags; /* Various flags. */ -} DMUS_IO_PORTCONFIG_HEADER; - -#define DMUS_PORTCONFIGF_DRUMSON10 1 /* This port configured for drums on channel 10. */ -#define DMUS_PORTCONFIGF_USEDEFAULT 2 /* Use the default port. */ - -/* Each portconfig has one or more pchannel to buffer mappings. Each buffer - is identified by a guid. Each pchannel can map to one or more buffers. - This is defined with one or more DMUS_IO_PCHANNELTOBUFFER_HEADER - structures. Each defines a range of PChannels and the set of buffers - that they connect to. -*/ - -typedef struct _DMUS_IO_PCHANNELTOBUFFER_HEADER -{ - DWORD dwPChannelBase; /* PChannel that this should start on. */ - DWORD dwPChannelCount; /* How many PChannels. */ - DWORD dwBufferCount; /* How many buffers do these connect to. */ - DWORD dwFlags; /* Various flags. Currently reserved for future use. Must be 0. */ -} DMUS_IO_PCHANNELTOBUFFER_HEADER; - -/* Each buffer is represented by an DSBC form. This is wrapped by the - DMUS_IO_BUFFER_ATTRIBUTES_HEADER which identifies how to use the - buffer. In particular, it indicates whether this gets dynamically duplicated - or all references to this should share the same instance. - To resolve references, the unique GUID of the buffer is also stored - in this structure. -*/ - -typedef struct _DMUS_IO_BUFFER_ATTRIBUTES_HEADER -{ - GUID guidBufferID; /* Each buffer config has a unique ID. */ - DWORD dwFlags; /* Various flags. */ -} DMUS_IO_BUFFER_ATTRIBUTES_HEADER; - -/* DMUS_IO_BUFFER_ATTRIBUTES_HEADER.dwFlags: */ -#define DMUS_BUFFERF_SHARED 1 /* Share this with other audio paths, instead of creating unique copies. */ -#define DMUS_BUFFERF_DEFINED 2 /* Use one of the standard predefined buffers (see GUID_Buffer... in dmusici.h.) */ -#define DMUS_BUFFERF_MIXIN 8 /* This is a mixin buffer. */ - -/* - -LIST -( - 'pcsl' // Array of port configurations - ... // One or more port configurations, each in a list chunk -) - -LIST -( - 'pcfl' // List container for one port configuration. - // Portconfig header chunk. - // Port params, to be used to create the port. - []...// Optional array of Dsound buffer descriptors - [] // Optional list of pchannel to buffer assignments - -) - - // // Port config header chunk - ( - 'pcfh' - // Port config header - ) - - // // Port params header chunk - ( - 'pprh' - // Port params header - ) - -LIST -( - 'pchl' // List container for one or more pchannel to buffer assignments. - ... // One or more pchannel to buffer assignment headers and data. - - // - ( - 'pchh' - // Description of PChannels - ... // Array of GUIDs defining the buffers they all connect to. - ) -) - -LIST -( - 'dbfl' // List container for one buffer and buffer attributes header. - // Buffer attributes header. - [] // Buffer configuration. Not required when header uses a predefined buffer type. - - // - ( - 'ddah' - // Buffer attributes. - ) -) -*/ - -/* File io for DirectMusic Band Track object */ - - -/* RIFF ids: */ -#define DMUS_FOURCC_BANDTRACK_FORM mmioFOURCC('D','M','B','T') -#define DMUS_FOURCC_BANDTRACK_CHUNK mmioFOURCC('b','d','t','h') -#define DMUS_FOURCC_BANDS_LIST mmioFOURCC('l','b','d','l') -#define DMUS_FOURCC_BAND_LIST mmioFOURCC('l','b','n','d') -#define DMUS_FOURCC_BANDITEM_CHUNK mmioFOURCC('b','d','i','h') -#define DMUS_FOURCC_BANDITEM_CHUNK2 mmioFOURCC('b','d','2','h') - -/* io structures */ -typedef struct _DMUS_IO_BAND_TRACK_HEADER -{ - BOOL bAutoDownload; /* Determines if Auto-Download is enabled. */ -} DMUS_IO_BAND_TRACK_HEADER; - -typedef struct _DMUS_IO_BAND_ITEM_HEADER -{ - MUSIC_TIME lBandTime; /* Position in track list. */ -} DMUS_IO_BAND_ITEM_HEADER; - -typedef struct _DMUS_IO_BAND_ITEM_HEADER2 -{ - MUSIC_TIME lBandTimeLogical; /* Position in track list. Time in the music with which band change is associated. */ - MUSIC_TIME lBandTimePhysical; /* Precise time band change will take effect. Should be close to logical time. */ -} DMUS_IO_BAND_ITEM_HEADER2; - -/* -RIFF -( - 'DMBT' // DirectMusic Band Track form-type - [] // Band track header - [] // GUID for band track - [] // Optional version info - [] // Name, author, copyright info., comments - // List of Band items -) - - // - 'bdth' - ( - - ) - - // - 'guid' - ( - - ) - - // - vers - ( - - ) - - // - LIST - ( - 'lbdl' - ... // Array of bands, each encapsulated in a list chunk - ) - - // - LIST - ( - 'lbnd' - or // bdih is a legacy format. bd2h is preferred for new content. - // Band - ) - - // or // band item header - ( - or // Band item header - ) -*/ - - -/* File io for DirectMusic Band object -*/ - -/* RIFF ids: */ - -#define DMUS_FOURCC_BAND_FORM mmioFOURCC('D','M','B','D') -#define DMUS_FOURCC_INSTRUMENTS_LIST mmioFOURCC('l','b','i','l') -#define DMUS_FOURCC_INSTRUMENT_LIST mmioFOURCC('l','b','i','n') -#define DMUS_FOURCC_INSTRUMENT_CHUNK mmioFOURCC('b','i','n','s') - -/* Flags for DMUS_IO_INSTRUMENT - */ -#define DMUS_IO_INST_PATCH (1 << 0) /* dwPatch is valid. */ -#define DMUS_IO_INST_BANKSELECT (1 << 1) /* dwPatch contains a valid Bank Select MSB and LSB part */ -#define DMUS_IO_INST_ASSIGN_PATCH (1 << 3) /* dwAssignPatch is valid */ -#define DMUS_IO_INST_NOTERANGES (1 << 4) /* dwNoteRanges is valid */ -#define DMUS_IO_INST_PAN (1 << 5) /* bPan is valid */ -#define DMUS_IO_INST_VOLUME (1 << 6 ) /* bVolume is valid */ -#define DMUS_IO_INST_TRANSPOSE (1 << 7) /* nTranspose is valid */ -#define DMUS_IO_INST_GM (1 << 8) /* Instrument is from GM collection */ -#define DMUS_IO_INST_GS (1 << 9) /* Instrument is from GS collection */ -#define DMUS_IO_INST_XG (1 << 10) /* Instrument is from XG collection */ -#define DMUS_IO_INST_CHANNEL_PRIORITY (1 << 11) /* dwChannelPriority is valid */ -#define DMUS_IO_INST_USE_DEFAULT_GM_SET (1 << 12) /* Always use the default GM set for this patch, */ - /* don't rely on the synth caps stating GM or GS in hardware. */ -#define DMUS_IO_INST_PITCHBENDRANGE (1 << 13) /* nPitchBendRange is valid */ - -/* io structures */ -typedef struct _DMUS_IO_INSTRUMENT -{ - DWORD dwPatch; /* MSB, LSB and Program change to define instrument */ - DWORD dwAssignPatch; /* MSB, LSB and Program change to assign to instrument when downloading */ - DWORD dwNoteRanges[4]; /* 128 bits; one for each MIDI note instrument needs to able to play */ - DWORD dwPChannel; /* PChannel instrument plays on */ - DWORD dwFlags; /* DMUS_IO_INST_ flags */ - BYTE bPan; /* Pan for instrument */ - BYTE bVolume; /* Volume for instrument */ - short nTranspose; /* Number of semitones to transpose notes */ - DWORD dwChannelPriority; /* Channel priority */ - short nPitchBendRange; /* Number of semitones shifted by pitch bend */ -} DMUS_IO_INSTRUMENT; - -/* -// bands can be embedded in other forms -RIFF -( - 'DMBD' // DirectMusic Band chunk - [] // GUID for band - [] // Optional version info - [] // Name, author, copyright info., comments - // List of Instruments -) - - // - 'guid' - ( - - ) - - // - vers - ( - - ) - - // - LIST - ( - 'lbil' // Array of instruments - ... // Each instrument is encapsulated in a list - ) - - // - LIST - ( - 'lbin' - - [] // Optional reference to DLS Collection file. - ) - - // // Instrument chunk - ( - 'bins' - // Instrument header - ) -*/ - -/* This RIFF id and io struct have been added to allow wave files (and the wave object) to - differentiate between streaming and one-shot waves, and to give a prefetch for streaming - waves */ - -#define DMUS_FOURCC_WAVEHEADER_CHUNK mmioFOURCC('w','a','v','h') - -typedef struct _DMUS_IO_WAVE_HEADER -{ - REFERENCE_TIME rtReadAhead; /* How far ahead in the stream wave data will be read (in REFERENCE_TIME). Ignored for one-shot waves. */ - DWORD dwFlags; /* Various flags, including whether this is a streaming wave and whether it can be invalidated. */ -} DMUS_IO_WAVE_HEADER; - - -/* File io for Wave track */ - -/* RIFF ids: */ - -#define DMUS_FOURCC_WAVETRACK_LIST mmioFOURCC('w','a','v','t') -#define DMUS_FOURCC_WAVETRACK_CHUNK mmioFOURCC('w','a','t','h') -#define DMUS_FOURCC_WAVEPART_LIST mmioFOURCC('w','a','v','p') -#define DMUS_FOURCC_WAVEPART_CHUNK mmioFOURCC('w','a','p','h') -#define DMUS_FOURCC_WAVEITEM_LIST mmioFOURCC('w','a','v','i') -#define DMUS_FOURCC_WAVE_LIST mmioFOURCC('w','a','v','e') -#define DMUS_FOURCC_WAVEITEM_CHUNK mmioFOURCC('w','a','i','h') - -/* This flag is included in DMUS_IO_WAVE_TRACK_HEADER.dwFlags. If set, the track will get its - variations from a pattern track, via GetParam(GUID_Variations). */ -#define DMUS_WAVETRACKF_SYNC_VAR 0x1 -/* This is also included in DMUS_IO_WAVE_TRACK_HEADER.dwFlags. If set, variation control - information will persist from one playback instance to the next.*/ -#define DMUS_WAVETRACKF_PERSIST_CONTROL 0x2 - -typedef struct _DMUS_IO_WAVE_TRACK_HEADER -{ - long lVolume; /* Gain, in 1/100th of dB, to be applied to all waves. Note: All gain values should be negative. */ - DWORD dwFlags; /* Flags, including whether this track syncs to a pattern track for its variations. */ -} DMUS_IO_WAVE_TRACK_HEADER; - -typedef struct _DMUS_IO_WAVE_PART_HEADER -{ - long lVolume; /* Gain, in 1/100th of dB, to be applied to all waves in wave part. Note: All gain values should be negative. */ - DWORD dwVariations; /* Variation mask for which of 32 variations */ - DWORD dwPChannel; /* PChannel */ - DWORD dwLockToPart; /* Part ID to lock to. */ - DWORD dwFlags; /* Flags, including stuff for managing how variations are chosen (in low-order nibble) */ - DWORD dwIndex; /* Index for distinguishing multiple parts on the same PChannel*/ -} DMUS_IO_WAVE_PART_HEADER; - -typedef struct _DMUS_IO_WAVE_ITEM_HEADER -{ - long lVolume; /* Gain, in 1/100th of dB. Note: All gain values should be negative. */ - long lPitch; /* Pitch offset in 1/100th of a semitone. */ - DWORD dwVariations; /* Variation flags for which of 32 variations this wave belongs to. */ - REFERENCE_TIME rtTime; /* Start time, in REFERENCE_TIME, if clock time track, or MUSIC_TIME for music time track. */ - REFERENCE_TIME rtStartOffset; /* Distance into wave to start playback, in reference time units. */ - REFERENCE_TIME rtReserved; /* Reserved field. */ - REFERENCE_TIME rtDuration; /* Duration, in REFERENCE_TIME or MUSIC_TIME, depending on track timing format. */ - MUSIC_TIME mtLogicalTime; /* If in music track format, this indicates the musical boundary where this belongs. Otherwise, ignored. */ - DWORD dwLoopStart; /* Start point for a looping wave. */ - DWORD dwLoopEnd; /* End point for a looping wave. */ - DWORD dwFlags; /* Various flags, including whether this is a streaming wave and whether it can be invalidated. */ - WORD wVolumeRange; /* Random range for volume. */ - WORD wPitchRange; /* Random range for pitch. */ -} DMUS_IO_WAVE_ITEM_HEADER; - -/* -LIST -{ - 'wavt' // Wave track chunk - // Wave track header - ... // Array of Wave Parts -} - // - 'wath' - { - - } - - // - LIST - { - 'wavp' - // Wave Part Header - // List of wave items - } - - // - 'waph' - { - - } - - // - LIST - { - 'wavi' - ... // Array of waves; each wave is encapsulated in a list - } - - // - LIST - { - 'wave' - // Wave item header - // Reference to wave object - } - - // - 'waih' - { - - } - -*/ - -/* File io for DirectMusic Container file. This embeds a set of related files. And, - in turn, it can be embedded within a segment or script file. -*/ - -#define DMUS_FOURCC_CONTAINER_FORM mmioFOURCC('D','M','C','N') -#define DMUS_FOURCC_CONTAINER_CHUNK mmioFOURCC('c','o','n','h') -#define DMUS_FOURCC_CONTAINED_ALIAS_CHUNK mmioFOURCC('c','o','b','a') -#define DMUS_FOURCC_CONTAINED_OBJECT_CHUNK mmioFOURCC('c','o','b','h') -#define DMUS_FOURCC_CONTAINED_OBJECTS_LIST mmioFOURCC('c','o','s','l') -#define DMUS_FOURCC_CONTAINED_OBJECT_LIST mmioFOURCC('c','o','b','l') - -typedef struct _DMUS_IO_CONTAINER_HEADER -{ - DWORD dwFlags; /* Flags. */ -} DMUS_IO_CONTAINER_HEADER; - -#define DMUS_CONTAINER_NOLOADS (1 << 1) /* Contained items are not loaded when the container is loaded. - Entries will be created in the loader (via SetObject) but - the actual objects will not be created until they are - specifically loaded at a later time. */ - -typedef struct _DMUS_IO_CONTAINED_OBJECT_HEADER -{ - GUID guidClassID; /* Class id of object. */ - DWORD dwFlags; /* Flags, for example DMUS_CONTAINED_OBJF_KEEP. */ - FOURCC ckid; /* chunk ID of track's data chunk if 0 fccType valid. */ - FOURCC fccType; /* list type if NULL ckid valid */ - /* Note that LIST:DMRF may be used for ckid and fccType in order to reference an - object instead of embedding it within the container. */ -} DMUS_IO_CONTAINED_OBJECT_HEADER; - -#define DMUS_CONTAINED_OBJF_KEEP 1 /* Keep the object cached in the loader after the container is released. */ - -/* -RIFF -( - 'DMCN' // DirectMusic Container chunk - // Container header chunk - [] // GUID for container - [] // Optional version info - [] // Name, author, copyright info., comments - // List of objects. -) - - // - 'conh' - ( - - ) - - // - 'guid' - ( - - ) - - // - vers - ( - - ) - - LIST - ( - 'cosl' // Array of embedded objects. - ... // Each object is encapsulated in a LIST chunk - ) - - // // Encapsulates one object - LIST - ( - 'cobl' - [] // Alias. An alternative name by which this object is known - // within the container. - // Required header, includes CLASS ID for object. - [] or // Object data of the type specified in . - // If DMRF, it is a reference of where to find the object. - // Otherwise, it could be any RIFF readable chunk in the - // exact same format as a file. The object will load - // itself from this data. - ) - - // - 'coba' - ( - // Alias, stored as NULL terminated string of WCHARs - ) - - // - 'cobh' - ( - - ) -*/ - -/* File io for DirectMusic Segment object */ - -/* RIFF ids: */ - -#define DMUS_FOURCC_SEGMENT_FORM mmioFOURCC('D','M','S','G') -#define DMUS_FOURCC_SEGMENT_CHUNK mmioFOURCC('s','e','g','h') -#define DMUS_FOURCC_TRACK_LIST mmioFOURCC('t','r','k','l') -#define DMUS_FOURCC_TRACK_FORM mmioFOURCC('D','M','T','K') -#define DMUS_FOURCC_TRACK_CHUNK mmioFOURCC('t','r','k','h') -#define DMUS_FOURCC_TRACK_EXTRAS_CHUNK mmioFOURCC('t','r','k','x') - -/* io structures:*/ - -typedef struct _DMUS_IO_SEGMENT_HEADER -{ - DWORD dwRepeats; /* Number of repeats. By default, 0. */ - MUSIC_TIME mtLength; /* Length, in music time. */ - MUSIC_TIME mtPlayStart; /* Start of playback. By default, 0. */ - MUSIC_TIME mtLoopStart; /* Start of looping portion. By default, 0. */ - MUSIC_TIME mtLoopEnd; /* End of loop. Must be greater than dwPlayStart. Or, 0, indicating loop full segment. */ - DWORD dwResolution; /* Default resolution. */ - /* Following added for DX8: */ - REFERENCE_TIME rtLength; /* Length, in reference time (overrides music time length.) */ - DWORD dwFlags; - DWORD dwReserved; /* Reserved. */ - /* Added for DX9. */ - REFERENCE_TIME rtLoopStart; /* Clock time loop start. */ - REFERENCE_TIME rtLoopEnd; /* Clock time loop end. */ - REFERENCE_TIME rtPlayStart; /* Start of playback in clock time. */ -} DMUS_IO_SEGMENT_HEADER; - -#define DMUS_SEGIOF_REFLENGTH 1 /* Use the time in rtLength for the segment length. */ -#define DMUS_SEGIOF_CLOCKTIME 2 /* This is a clock time segment. */ - -typedef struct _DMUS_IO_TRACK_HEADER -{ - GUID guidClassID; /* Class id of track. */ - DWORD dwPosition; /* Position in track list. */ - DWORD dwGroup; /* Group bits for track. */ - FOURCC ckid; /* chunk ID of track's data chunk. */ - FOURCC fccType; /* list type if ckid is RIFF or LIST */ -} DMUS_IO_TRACK_HEADER; - -/* Additional parameters for the track header chunk, introduced in DX8 and - on, are stored in a separate chunk. */ - -typedef struct _DMUS_IO_TRACK_EXTRAS_HEADER -{ - DWORD dwFlags; /* DX8 Added flags for control tracks. */ - DWORD dwPriority; /* Priority for composition. */ -} DMUS_IO_TRACK_EXTRAS_HEADER; - -/* -RIFF -( - 'DMSG' // DirectMusic Segment chunk - // Segment header chunk - [] // GUID for segment - [] // Optional version info - [] // Name, author, copyright info., comments - [] // Optional container of objects embedded in file. Must precede tracklist. - // List of Tracks - [] // Optional ToolGraph - [] // Optional Audio Path -) - - // - 'segh' - ( - - ) - - // - 'guid' - ( - - ) - - // - vers - ( - - ) - - // - LIST - ( - 'trkl' // Array of tracks - ... // Each track is encapsulated in a RIFF chunk - ) - - // // Tracks can be embedded in a segment or stored as separate files. - RIFF - ( - 'DMTK' - - [] // Optional track flags. - [] // Optional GUID for track object instance (not to be confused with Class id in track header) - [] // Optional version info - [] // Optional name, author, copyright info., comments - [] // Track data. Must be a RIFF readable chunk. - ) - - // // Track header chunk - ( - 'trkh' - // Track header - ) - - // // Track flags chunk - ( - 'trkx' - // DX8 Track flags header - ) -*/ - -/* File io for DirectMusic reference chunk. - This is used to embed a reference to an object. -*/ - -/* RIFF ids: */ - -#define DMUS_FOURCC_REF_LIST mmioFOURCC('D','M','R','F') -#define DMUS_FOURCC_REF_CHUNK mmioFOURCC('r','e','f','h') -#define DMUS_FOURCC_DATE_CHUNK mmioFOURCC('d','a','t','e') -#define DMUS_FOURCC_NAME_CHUNK mmioFOURCC('n','a','m','e') -#define DMUS_FOURCC_FILE_CHUNK mmioFOURCC('f','i','l','e') - -typedef struct _DMUS_IO_REFERENCE -{ - GUID guidClassID; /* Class id is always required. */ - DWORD dwValidData; /* Flags. */ -} DMUS_IO_REFERENCE; - -/* -LIST -( - 'DMRF' // DirectMusic Reference chunk - // Reference header chunk - [] // Optional object GUID. - [] // Optional file date. - [] // Optional name. - [] // Optional file name. - [] // Optional category name. - [] // Optional version info. -) - - // - 'refh' - ( - - ) - - // - 'guid' - ( - - ) - - // - date - ( - - ) - - // - name - ( - // Name, stored as NULL terminated string of WCHARs - ) - - // - file - ( - // File name, stored as NULL terminated string of WCHARs - ) - - // - catg - ( - // Category name, stored as NULL terminated string of WCHARs - ) - - // - vers - ( - - ) -*/ - -/* Chord Maps */ - -/* runtime chunks */ -#define DMUS_FOURCC_CHORDMAP_FORM mmioFOURCC('D','M','P','R') -#define DMUS_FOURCC_IOCHORDMAP_CHUNK mmioFOURCC('p','e','r','h') -#define DMUS_FOURCC_SUBCHORD_CHUNK mmioFOURCC('c','h','d','t') -#define DMUS_FOURCC_CHORDENTRY_CHUNK mmioFOURCC('c','h','e','h') -#define DMUS_FOURCC_SUBCHORDID_CHUNK mmioFOURCC('s','b','c','n') -#define DMUS_FOURCC_IONEXTCHORD_CHUNK mmioFOURCC('n','c','r','d') -#define DMUS_FOURCC_NEXTCHORDSEQ_CHUNK mmioFOURCC('n','c','s','q') -#define DMUS_FOURCC_IOSIGNPOST_CHUNK mmioFOURCC('s','p','s','h') -#define DMUS_FOURCC_CHORDNAME_CHUNK mmioFOURCC('I','N','A','M') - -/* runtime list chunks */ -#define DMUS_FOURCC_CHORDENTRY_LIST mmioFOURCC('c','h','o','e') -#define DMUS_FOURCC_CHORDMAP_LIST mmioFOURCC('c','m','a','p') -#define DMUS_FOURCC_CHORD_LIST mmioFOURCC('c','h','r','d') -#define DMUS_FOURCC_CHORDPALETTE_LIST mmioFOURCC('c','h','p','l') -#define DMUS_FOURCC_CADENCE_LIST mmioFOURCC('c','a','d','e') -#define DMUS_FOURCC_SIGNPOSTITEM_LIST mmioFOURCC('s','p','s','t') - -#define DMUS_FOURCC_SIGNPOST_LIST mmioFOURCC('s','p','s','q') - -/* values for dwChord field of DMUS_IO_PERS_SIGNPOST */ -/* DMUS_SIGNPOSTF_ flags are also used in templates (DMUS_IO_SIGNPOST) */ -#define DMUS_SIGNPOSTF_A 1 -#define DMUS_SIGNPOSTF_B 2 -#define DMUS_SIGNPOSTF_C 4 -#define DMUS_SIGNPOSTF_D 8 -#define DMUS_SIGNPOSTF_E 0x10 -#define DMUS_SIGNPOSTF_F 0x20 -#define DMUS_SIGNPOSTF_LETTER (DMUS_SIGNPOSTF_A | DMUS_SIGNPOSTF_B | DMUS_SIGNPOSTF_C | DMUS_SIGNPOSTF_D | DMUS_SIGNPOSTF_E | DMUS_SIGNPOSTF_F) -#define DMUS_SIGNPOSTF_1 0x100 -#define DMUS_SIGNPOSTF_2 0x200 -#define DMUS_SIGNPOSTF_3 0x400 -#define DMUS_SIGNPOSTF_4 0x800 -#define DMUS_SIGNPOSTF_5 0x1000 -#define DMUS_SIGNPOSTF_6 0x2000 -#define DMUS_SIGNPOSTF_7 0x4000 -#define DMUS_SIGNPOSTF_ROOT (DMUS_SIGNPOSTF_1 | DMUS_SIGNPOSTF_2 | DMUS_SIGNPOSTF_3 | DMUS_SIGNPOSTF_4 | DMUS_SIGNPOSTF_5 | DMUS_SIGNPOSTF_6 | DMUS_SIGNPOSTF_7) -#define DMUS_SIGNPOSTF_CADENCE 0x8000 - -/* values for dwFlags field of DMUS_IO_CHORDMAP */ -#define DMUS_CHORDMAPF_VERSION8 1 /* Chordmap is version 8 or above. */ - -/* values for dwChord field of DMUS_IO_PERS_SIGNPOST */ -#define DMUS_SPOSTCADENCEF_1 2 /* Use the first cadence chord. */ -#define DMUS_SPOSTCADENCEF_2 4 /* Use the second cadence chord. */ - -/* run time data structs */ -typedef struct _DMUS_IO_CHORDMAP -{ - WCHAR wszLoadName[20]; - DWORD dwScalePattern; - DWORD dwFlags; /* Various flags. Only lower 16 bits are significant. */ -} DMUS_IO_CHORDMAP; - -typedef struct _DMUS_IO_CHORDMAP_SUBCHORD -{ - DWORD dwChordPattern; - DWORD dwScalePattern; - DWORD dwInvertPattern; - BYTE bChordRoot; - BYTE bScaleRoot; - WORD wCFlags; - DWORD dwLevels; /* parts or which subchord levels this chord supports */ -} DMUS_IO_CHORDMAP_SUBCHORD; - -/* Legacy name... */ -typedef DMUS_IO_CHORDMAP_SUBCHORD DMUS_IO_PERS_SUBCHORD; - -typedef struct _DMUS_IO_CHORDENTRY -{ - DWORD dwFlags; - WORD wConnectionID; /* replaces runtime "pointer to this" */ -} DMUS_IO_CHORDENTRY; - -typedef struct _DMUS_IO_NEXTCHORD -{ - DWORD dwFlags; - WORD nWeight; - WORD wMinBeats; - WORD wMaxBeats; - WORD wConnectionID; /* points to an ioChordEntry */ -} DMUS_IO_NEXTCHORD; - -typedef struct _DMUS_IO_CHORDMAP_SIGNPOST -{ - DWORD dwChords; /* 1bit per group */ - DWORD dwFlags; -} DMUS_IO_CHORDMAP_SIGNPOST; - -/* Legacy name... */ -typedef DMUS_IO_CHORDMAP_SIGNPOST DMUS_IO_PERS_SIGNPOST; - -/* -RIFF -( - 'DMPR' - // Chord map header chunk - [] // guid chunk - [] // version chunk (two DWORDS) - [] // Unfo chunk - // subchord database - // chord palette - // chord map - // signpost list - ) - - ::= LIST('cmap' ) - - ::= LIST('choe' - // chord entry data - // chord definition - // connecting(next) chords - ) - - ::= LIST('chrd' - // name of chord in wide char format - // list of subchords composing chord - ) - - ::= LIST('chpl' - ... // chord definition - ) - - ::== LIST('spsq' ... ) - - ::= LIST('spst' - - - [] - ) - - ::= LIST('cade' ...) - - ::= perh() - - ::= chdt( - ... ) - - ::= cheh() - - ::= sbcn( ...) - - ::= ncsq( - ...) - - ::= spsh() - -*/ - -/* File io for DirectMusic Script object */ - -/* RIFF ids: */ - -#define DMUS_FOURCC_SCRIPT_FORM mmioFOURCC('D','M','S','C') -#define DMUS_FOURCC_SCRIPT_CHUNK mmioFOURCC('s','c','h','d') -#define DMUS_FOURCC_SCRIPTVERSION_CHUNK mmioFOURCC('s','c','v','e') -#define DMUS_FOURCC_SCRIPTLANGUAGE_CHUNK mmioFOURCC('s','c','l','a') -#define DMUS_FOURCC_SCRIPTSOURCE_CHUNK mmioFOURCC('s','c','s','r') - -/* io structures:*/ - -typedef struct _DMUS_IO_SCRIPT_HEADER -{ - DWORD dwFlags; /* DMUS_SCRIPTIOF_ flags */ -} DMUS_IO_SCRIPT_HEADER; - -#define DMUS_SCRIPTIOF_LOAD_ALL_CONTENT (1 << 0) - /* If set, when the script loads it will also load all the content in its container. */ -#define DMUS_SCRIPTIOF_DOWNLOAD_ALL_SEGMENTS (1 << 1) - /* If set and LOAD_ALL_CONTENT is also set, when the script initializes it will also download all the segments in its container. - If set and LOAD_ALL_CONTENT is not set, when the script calls segment.Load on a segment then the segment will also be downloaded. - If not set, the script must manually download and unload by calling segment.DownloadSoundData and segment.UnloadSoundData. */ - -/* -RIFF -( - 'DMSC' // DirectMusic Script chunk - // Script header chunk - [] // GUID for script - [] // Optional version info - [] // Name, author, copyright info., comments - // Version of DirectMusic this script was authored to run against - // Container of content referenced by the script. - // ActiveX scripting language in which the script is written - or // The script's source code. - // If scsr-ck, the source is embedding in the chunk. - // If DMRF, it is a reference of where to find a text file with the source. - // Class id (guidClassID in DMUS_IO_REFERENCE) must be GUID_NULL because - // this text file is not a DirectMusic object in its own right. -) - - // - 'schd' - ( - - ) - - // - 'guid' - ( - - ) - - // - vers - ( - - ) - - // - scve - ( - - ) - - 'scla' - ( - // Language name, stored as NULL terminated string of WCHARs - ) - - 'scsr' - ( - // Source code, stored as NULL terminated string of WCHARs - ) -*/ - -/* Signpost tracks */ - -#define DMUS_FOURCC_SIGNPOST_TRACK_CHUNK mmioFOURCC( 's', 'g', 'n', 'p' ) - - -typedef struct _DMUS_IO_SIGNPOST -{ - MUSIC_TIME mtTime; - DWORD dwChords; - WORD wMeasure; -} DMUS_IO_SIGNPOST; - -/* - - // - 'sgnp' - ( - //sizeof DMUS_IO_SIGNPOST: DWORD - ... - ) - -*/ - -#define DMUS_FOURCC_MUTE_CHUNK mmioFOURCC('m','u','t','e') - -typedef struct _DMUS_IO_MUTE -{ - MUSIC_TIME mtTime; - DWORD dwPChannel; - DWORD dwPChannelMap; -} DMUS_IO_MUTE; - -/* - - // - 'mute' - ( - //sizeof DMUS_IO_MUTE:DWORD - ... - ) - - -*/ - -/* Used for both style and chord map tracks */ - -#define DMUS_FOURCC_TIME_STAMP_CHUNK mmioFOURCC('s', 't', 'm', 'p') - -/* Style tracks */ - -#define DMUS_FOURCC_STYLE_TRACK_LIST mmioFOURCC('s', 't', 't', 'r') -#define DMUS_FOURCC_STYLE_REF_LIST mmioFOURCC('s', 't', 'r', 'f') - -/* - - // - LIST('sttr' - ( - ... // Array of Style references - ) - - // - LIST('strf' - ( - - - ) - - // - 'stmp' - ( - // time:DWORD - ) - -*/ - -/* Chord map tracks */ - -#define DMUS_FOURCC_PERS_TRACK_LIST mmioFOURCC('p', 'f', 't', 'r') -#define DMUS_FOURCC_PERS_REF_LIST mmioFOURCC('p', 'f', 'r', 'f') - -/* - - // - LIST('pftr' - ( - ... // Array of Chord map references - ) - - // - LIST('pfrf' - ( - - - ) - - // - 'stmp' - ( - // time:DWORD - ) - -*/ - -#define DMUS_FOURCC_TEMPO_TRACK mmioFOURCC('t','e','t','r') - -/* - // tempo array - 'tetr' - ( - // sizeof DMUS_IO_TEMPO_ITEM: DWORD - ... - ) - */ - -#define DMUS_FOURCC_SEQ_TRACK mmioFOURCC('s','e','q','t') -#define DMUS_FOURCC_SEQ_LIST mmioFOURCC('e','v','t','l') -#define DMUS_FOURCC_CURVE_LIST mmioFOURCC('c','u','r','l') - -/* - // sequence track - 'seqt' - ( - // sequence array - 'evtl' - ( - // sizeof DMUS_IO_SEQ_ITEM: DWORD - ... - ) - // curve array - 'curl' - ( - // sizeof DMUS_IO_CURVE_ITEM: DWORD - ... - ) - ) -*/ - -#define DMUS_FOURCC_SYSEX_TRACK mmioFOURCC('s','y','e','x') - -/* - // sysex track - 'syex' - ( - { - - ... // Array of bytes, length defined in the DMUS_IO_SYSEXITEM structure - }... - ) -*/ - -#define DMUS_FOURCC_TIMESIGNATURE_TRACK mmioFOURCC('t','i','m','s') - -typedef struct _DMUS_IO_TIMESIGNATURE_ITEM -{ - MUSIC_TIME lTime; - BYTE bBeatsPerMeasure; /* beats per measure (top of time sig) */ - BYTE bBeat; /* what note receives the beat (bottom of time sig.) */ - /* we can assume that 0 means 256th note */ - WORD wGridsPerBeat; /* grids per beat */ -} DMUS_IO_TIMESIGNATURE_ITEM; - -/* DX6 time signature track - - 'tims' - ( - // size of DMUS_IO_TIMESIGNATURE_ITEM : DWORD - ... - ) -*/ - -/* DX8 Time signature track. The track has been updated from DX7 to support a list of - RIFF chunks. This will allow the time signature track to expand in the future. -*/ - -#define DMUS_FOURCC_TIMESIGTRACK_LIST mmioFOURCC('T','I','M','S') -#define DMUS_FOURCC_TIMESIG_CHUNK DMUS_FOURCC_TIMESIGNATURE_TRACK - -/* -LIST -( - 'TIMS' // Time Signature Track list-type - // Chunk containing an array of time signatures -) - - 'tims' - ( - // size of DMUS_IO_TIMESIGNATURE_ITEM : DWORD - ... - ) - -*/ - -/* DX8 Marker track. This is used to store valid start points and other - flow control parameters that may come later. For example, if we want - to implement more sophisticated looping and branching constructs, they - would live in this track. -*/ - -#define DMUS_FOURCC_MARKERTRACK_LIST mmioFOURCC('M','A','R','K') -#define DMUS_FOURCC_VALIDSTART_CHUNK mmioFOURCC('v','a','l','s') -#define DMUS_FOURCC_PLAYMARKER_CHUNK mmioFOURCC('p','l','a','y') - -/* io structures */ -typedef struct _DMUS_IO_VALID_START -{ - MUSIC_TIME mtTime; /* Time of a legal start. */ -} DMUS_IO_VALID_START; - -typedef struct _DMUS_IO_PLAY_MARKER -{ - MUSIC_TIME mtTime; /* Time of a next legal play point marker. */ -} DMUS_IO_PLAY_MARKER; - -/* -LIST -( - 'MARK' // Marker Track list-type - [] // Chunk containing an array of start points - [] // Chunk containing an array of play start markers -) - - 'vals' - ( - // size of DMUS_IO_VALID_START : DWORD - ... - ) - - 'play' - ( - // size of DMUS_IO_PLAY_MARKER : DWORD - ... - ) - -*/ - -/* segment trigger tracks */ - -/* RIFF ids: */ -#define DMUS_FOURCC_SEGTRACK_LIST mmioFOURCC('s','e','g','t') -#define DMUS_FOURCC_SEGTRACK_CHUNK mmioFOURCC('s','g','t','h') -#define DMUS_FOURCC_SEGMENTS_LIST mmioFOURCC('l','s','g','l') -#define DMUS_FOURCC_SEGMENT_LIST mmioFOURCC('l','s','e','g') -#define DMUS_FOURCC_SEGMENTITEM_CHUNK mmioFOURCC('s','g','i','h') -#define DMUS_FOURCC_SEGMENTITEMNAME_CHUNK mmioFOURCC('s','n','a','m') - -/* io structures */ -typedef struct _DMUS_IO_SEGMENT_TRACK_HEADER -{ - DWORD dwFlags; /* Reserved leave as 0. */ -} DMUS_IO_SEGMENT_TRACK_HEADER; - -typedef struct _DMUS_IO_SEGMENT_ITEM_HEADER -{ - MUSIC_TIME lTimeLogical; /* Position in track list. Time in the music with which the event is associated. */ - MUSIC_TIME lTimePhysical; /* Precise time event will be triggered. Should be close to logical time. */ - DWORD dwPlayFlags; /* Flags for PlaySegment(). */ - DWORD dwFlags; /* Flags. */ -} DMUS_IO_SEGMENT_ITEM_HEADER; - -/* values for dwflags field of DMUS_IO_SEGMENT_ITEM_HEADER */ -#define DMUS_SEGMENTTRACKF_MOTIF 1 /* interpret DMRF as link to style, and use snam as the name of a motif within the style */ - -/* -LIST -( - 'segt' // DirectMusic Segment Trigger Track form-type - [] // Segment track header - // List of Segment Lists -) - - // - 'sgth' - ( - - ) - - // - LIST - ( - 'lsgl' // Array of segments - ... // Each segment is encapsulated in a list (that way it can still be riff parsed.) - ) - - // - LIST - ( - 'lseg' - - // Link to a segment or style file. - [] // Name field. Used with DMUS_SEGMENTTRACKF_MOTIF flag. - ) - - // // segment item header - ( - // Segment item header - ) - - // - ( - // Name, stored as NULL terminated string of WCHARs - ) -*/ - -/* Script track. */ - -/* RIFF ids: */ -#define DMUS_FOURCC_SCRIPTTRACK_LIST mmioFOURCC('s','c','r','t') -#define DMUS_FOURCC_SCRIPTTRACKEVENTS_LIST mmioFOURCC('s','c','r','l') -#define DMUS_FOURCC_SCRIPTTRACKEVENT_LIST mmioFOURCC('s','c','r','e') -#define DMUS_FOURCC_SCRIPTTRACKEVENTHEADER_CHUNK mmioFOURCC('s','c','r','h') -#define DMUS_FOURCC_SCRIPTTRACKEVENTNAME_CHUNK mmioFOURCC('s','c','r','n') - -/* Flags for DMUS_IO_SCRIPTTRACK_TIMING - */ -#define DMUS_IO_SCRIPTTRACKF_PREPARE (1 << 0) /* Fire event in advance of time stamp, at Prepare time. This is the default because it leaves the script time to change the music happening at the target time. */ -#define DMUS_IO_SCRIPTTRACKF_QUEUE (1 << 1) /* Fire event just before time stamp, at Queue time. */ -#define DMUS_IO_SCRIPTTRACKF_ATTIME (1 << 2) /* Fire event right at the time stamp. */ - -typedef struct _DMUS_IO_SCRIPTTRACK_EVENTHEADER -{ - DWORD dwFlags; /* various bits (see DMUS_IO_SCRIPTTRACKF_*) */ - MUSIC_TIME lTimeLogical; /* Position in track list. Time in the music with which the event is associated. */ - MUSIC_TIME lTimePhysical; /* Precise time event will be triggered. Should be close to logical time. */ -} DMUS_IO_SCRIPTTRACK_EVENTHEADER; - -/* - // Script Track - - // - LIST - ( - // List of script events - ) - - // - LIST - ( - ... // Array of event descriptions - ) - - // - LIST - ( - // Event header chunk - - // Routine name - ) - - 'scrh' - ( - - ) - - 'scrn' - ( - // Name, stored as NULL terminated string of WCHARs - ) -*/ - -/* Lyrics/Notification track. */ - -/* RIFF ids: */ -#define DMUS_FOURCC_LYRICSTRACK_LIST mmioFOURCC('l','y','r','t') -#define DMUS_FOURCC_LYRICSTRACKEVENTS_LIST mmioFOURCC('l','y','r','l') -#define DMUS_FOURCC_LYRICSTRACKEVENT_LIST mmioFOURCC('l','y','r','e') -#define DMUS_FOURCC_LYRICSTRACKEVENTHEADER_CHUNK mmioFOURCC('l','y','r','h') -#define DMUS_FOURCC_LYRICSTRACKEVENTTEXT_CHUNK mmioFOURCC('l','y','r','n') - -typedef struct _DMUS_IO_LYRICSTRACK_EVENTHEADER -{ - DWORD dwFlags; /* Reserved leave as 0. */ - DWORD dwTimingFlags; /* Combination DMUS_PMSGF_TOOL_* flags. Determines the precise timing of when the notification happens. Invalid with the flag DMUS_PMSGF_REFTIME, DMUS_PMSGF_MUSICTIME, DMUS_PMSGF_TOOL_FLUSH, or DMUS_PMSGF_LOCKTOREFTIME. */ - MUSIC_TIME lTimeLogical; /* Position in track list. Time in the music with which the event is associated. */ - MUSIC_TIME lTimePhysical; /* Precise time event will be triggered. Should be close to logical time. */ -} DMUS_IO_LYRICSTRACK_EVENTHEADER; - -/* - // Lyrics/Notification Track - - // - LIST - ( - // List of notification events - ) - - // - LIST - ( - ... // Array of event descriptions - ) - - // - LIST - ( - // Event header chunk - // Notification text - ) - - 'lyrh' - ( - - ) - - 'lyrn' - ( - // Name, stored as NULL terminated string of WCHARs - ) -*/ - -/* Parameter control track */ - -/* RIFF ids: */ -#define DMUS_FOURCC_PARAMCONTROLTRACK_TRACK_LIST mmioFOURCC('p','r','m','t') -#define DMUS_FOURCC_PARAMCONTROLTRACK_OBJECT_LIST mmioFOURCC('p','r','o','l') -#define DMUS_FOURCC_PARAMCONTROLTRACK_OBJECT_CHUNK mmioFOURCC('p','r','o','h') -#define DMUS_FOURCC_PARAMCONTROLTRACK_PARAM_LIST mmioFOURCC('p','r','p','l') -#define DMUS_FOURCC_PARAMCONTROLTRACK_PARAM_CHUNK mmioFOURCC('p','r','p','h') -#define DMUS_FOURCC_PARAMCONTROLTRACK_CURVES_CHUNK mmioFOURCC('p','r','c','c') - -typedef struct _DMUS_IO_PARAMCONTROLTRACK_OBJECTHEADER -{ - DWORD dwFlags; /* Reserved. Must be zero. */ - GUID guidTimeFormat; /* Time format to set the object to. Must be GUID_TIME_REFERNCE or GUID_TIME_MUSIC from medparam.h. */ - /* Path for finding the object. These fields correspond to the first five parameters of IDirectMusicSegmentState::GetObjectInPath. */ - DWORD dwPChannel; - DWORD dwStage; - DWORD dwBuffer; - GUID guidObject; - DWORD dwIndex; -} DMUS_IO_PARAMCONTROLTRACK_OBJECTHEADER; - -typedef struct _DMUS_IO_PARAMCONTROLTRACK_PARAMHEADER -{ - DWORD dwFlags; /* Reserved. Must be zero. */ - DWORD dwIndex; /* Index number of the parameter on the object */ -} DMUS_IO_PARAMCONTROLTRACK_PARAMHEADER; - -typedef struct _DMUS_IO_PARAMCONTROLTRACK_CURVEINFO -{ - MUSIC_TIME mtStartTime; - MUSIC_TIME mtEndTime; - float fltStartValue; - float fltEndValue; - DWORD dwCurveType; /* One of the items from the MP_CURVE_TYPE enum in medparam.h */ - DWORD dwFlags; /* A combination of the MPF_ENVLP_* constants in medparam.h */ -} DMUS_IO_PARAMCONTROLTRACK_CURVEINFO; - -/* - // - LIST - ( - ... // one for each object - ) - - // - LIST - ( - // object header chunk - ... // one for each parameter - ) - - // - proh - ( - - ) - - // - LIST - ( - // parameter header chunk - // chunk containing an array of curves - ) - - // - prph - ( - - ) - - // - prcc - ( - // sizeof DMUS_IO_PARAMCONTROLTRACK_CURVEINFO:DWORD - ... // curves, sorted in order of mtTime - ) -*/ - -#if (DIRECTSOUND_VERSION >= 0x0800) - -/* DirectSoundBufferConfig FX Map */ - -/* RIFF ids: */ - -#define DMUS_FOURCC_DSBC_FORM mmioFOURCC('D','S','B','C') -#define DMUS_FOURCC_DSBD_CHUNK mmioFOURCC('d','s','b','d') -#define DMUS_FOURCC_BSID_CHUNK mmioFOURCC('b','s','i','d') -#define DMUS_FOURCC_DS3D_CHUNK mmioFOURCC('d','s','3','d') -#define DMUS_FOURCC_DSBC_LIST mmioFOURCC('f','x','l','s') -#define DMUS_FOURCC_DSFX_FORM mmioFOURCC('D','S','F','X') -#define DMUS_FOURCC_DSFX_CHUNK mmioFOURCC('f','x','h','r') -#define DMUS_FOURCC_DSFX_DATA mmioFOURCC('d','a','t','a') - -/* io structures */ - -typedef struct _DSOUND_IO_DSBUFFERDESC -{ - DWORD dwFlags; /* DirectSound buffer creation flags */ - WORD nChannels; /* No. of channels (rest of buffer format is determined by owning sink) */ - LONG lVolume; /* Initial pan; only used if CTRLVOLUME is specified */ - LONG lPan; /* Initial pan; only used if CTRLPAN is specified */ - DWORD dwReserved; /* Reserved - must be 0 */ -} DSOUND_IO_DSBUFFERDESC; - -typedef struct _DSOUND_IO_DSBUSID -{ - DWORD busid[1]; /* Array size determined from chunk size */ -} DSOUND_IO_DSBUSID; - -typedef struct _DSOUND_IO_3D -{ - GUID guid3DAlgorithm; /* GUID identifying the 3D algorithm to use (defined in dsound.h) */ - DS3DBUFFER ds3d; /* Initial 3D parameters */ -} DSOUND_IO_3D; - -typedef struct _DSOUND_IO_DXDMO_HEADER -{ - DWORD dwEffectFlags; /* Effect creation flags - equivalent to DSEFFECTDESC::dwFlags */ - GUID guidDSFXClass; /* GUID identifying the effect to use - corresponds to a COM CLSID */ - GUID guidReserved; /* Reserved - must be the null GUID */ - GUID guidSendBuffer; /* GUID identifying the buffer to send to if this is a send effect */ - DWORD dwReserved; /* Reserved - must be 0 */ -} DSOUND_IO_DXDMO_HEADER; - -typedef struct _DSOUND_IO_DXDMO_DATA -{ - DWORD data[1]; /* Array size determined by the DMO involved */ -} DSOUND_IO_DXDMO_DATA; - -/* -RIFF -( - 'DSBC' // DirectSoundBufferConfig chunk - [] // GUID identifier for this DirectSoundBufferConfig - [] // Optional version info - [] // Name, author, copyright info., comments - // DirectSound Buffer descriptor chunk - [] // Optional bus id array - [] // Optional 3d Parameters - [] // Optional list of FX descriptors -) - - // - 'guid' - ( - - ) - - // - 'vers' - ( - - ) - - // - 'dsbd' - ( - // Creation parameters and initial settings for the buffer - ) - - // - 'bsid' - ( - // The size of DSOUND_IO_DSBUSID is determined by the chunk size - ) - - // - 'ds3d' - ( - // Initial 3D buffer parameters: position, etc. - ) - - // - LIST - ( - 'fxls' // Array of DMO creation parameter blocks - ... // Each DMO is encapsulated in a RIFF chunk - ) - -// // DMOs can be embedded in a buffer configuration or stored as separate files -RIFF -( - 'DSFX' - // FX header chunk - [] // FX initial settings chunk -) - - // - 'fxhr' - ( - - ) - - // - 'data' - ( - // Opaque data block used by the DMO to load itself. - // For our standard included DMOs, this is simply the structure accepted by - // the DMO's SetAllParameters() method - e.g. struct DSFXChorus for Chorus. - ) -*/ - -#endif - -#ifdef __cplusplus -}; /* extern "C" */ -#endif - -#include - -#endif /* #ifndef _DMUSICF_ */ diff --git a/sdk/dx8sdk/Include/dmusici.h b/sdk/dx8sdk/Include/dmusici.h deleted file mode 100644 index d985806b..00000000 --- a/sdk/dx8sdk/Include/dmusici.h +++ /dev/null @@ -1,1883 +0,0 @@ -/************************************************************************ -* * -* dmusici.h -- This module contains the API for the * -* DirectMusic performance layer * -* * -* Copyright (c) Microsoft Corporation. All rights reserved. * -* * -************************************************************************/ - -#ifndef _DMUSICI_ -#define _DMUSICI_ - -#include - -#define COM_NO_WINDOWS_H -#include - -#include -#include -/* plugin (track and tool) interfaces. This #include will eventually go away. */ -#include - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef WORD TRANSITION_TYPE; -typedef __int64 REFERENCE_TIME; -typedef long MUSIC_TIME; - -#define MT_MIN 0x80000000 /* Minimum music time value. */ -#define MT_MAX 0x7FFFFFFF /* Maximum music time value. */ - -#define DMUS_PPQ 768 /* parts per quarter note */ - -interface IDirectMusicTrack; -interface IDirectMusicPerformance; -interface IDirectMusicPerformance8; -interface IDirectMusicTool; -interface IDirectMusicSegment; -interface IDirectMusicSegment8; -interface IDirectMusicSegmentState; -interface IDirectMusicSegmentState8; -interface IDirectMusicGraph; -interface IDirectMusicBuffer; -interface IDirectMusicInstrument; -interface IDirectMusicDownloadedInstrument; -interface IDirectMusicBand; -interface IDirectMusicChordMap; -interface IDirectMusicLoader; -interface IDirectMusicLoader8; -interface IDirectMusicScript; -interface IDirectMusicObject; -interface IDirectMusicStyle8; -interface IDirectMusicPatternTrack; -interface IDirectMusicContainer; -interface IDirectMusicTool8; -interface IDirectMusicTrack8; -interface IDirectMusicAudioPath; -#ifndef __cplusplus -typedef interface IDirectMusicTrack IDirectMusicTrack; -typedef interface IDirectMusicPerformance IDirectMusicPerformance; -typedef interface IDirectMusicPerformance8 IDirectMusicPerformance8; -typedef interface IDirectMusicTool IDirectMusicTool; -typedef interface IDirectMusicSegment IDirectMusicSegment; -typedef interface IDirectMusicSegment8 IDirectMusicSegment8; -typedef interface IDirectMusicSegmentState IDirectMusicSegmentState; -typedef interface IDirectMusicSegmentState8 IDirectMusicSegmentState8; -typedef interface IDirectMusicGraph IDirectMusicGraph; -typedef interface IDirectMusicBuffer IDirectMusicBuffer; -typedef interface IDirectMusicInstrument IDirectMusicInstrument; -typedef interface IDirectMusicDownloadedInstrument IDirectMusicDownloadedInstrument; -typedef interface IDirectMusicBand IDirectMusicBand; -typedef interface IDirectMusicChordMap IDirectMusicChordMap; -typedef interface IDirectMusicObject IDirectMusicObject; -typedef interface IDirectMusicLoader IDirectMusicLoader; -typedef interface IDirectMusicLoader8 IDirectMusicLoader8; -typedef interface IDirectMusicScript IDirectMusicScript; -typedef interface IDirectMusicStyle8 IDirectMusicStyle8; -typedef interface IDirectMusicPatternTrack IDirectMusicPatternTrack; -typedef interface IDirectMusicContainer IDirectMusicContainer; -typedef interface IDirectMusicTool8 IDirectMusicTool8; -typedef interface IDirectMusicTrack8 IDirectMusicTrack8; -typedef interface IDirectMusicAudioPath IDirectMusicAudioPath; -#endif - -typedef enum enumDMUS_STYLET_TYPES -{ - DMUS_STYLET_PATTERN = 0, - DMUS_STYLET_MOTIF = 1, -} DMUS_STYLET_TYPES; - - -typedef enum enumDMUS_COMMANDT_TYPES -{ - DMUS_COMMANDT_GROOVE = 0, - DMUS_COMMANDT_FILL = 1, - DMUS_COMMANDT_INTRO = 2, - DMUS_COMMANDT_BREAK = 3, - DMUS_COMMANDT_END = 4, - DMUS_COMMANDT_ENDANDINTRO = 5 -} DMUS_COMMANDT_TYPES; - -typedef enum enumDMUS_SHAPET_TYPES -{ - DMUS_SHAPET_FALLING = 0, - DMUS_SHAPET_LEVEL = 1, - DMUS_SHAPET_LOOPABLE = 2, - DMUS_SHAPET_LOUD = 3, - DMUS_SHAPET_QUIET = 4, - DMUS_SHAPET_PEAKING = 5, - DMUS_SHAPET_RANDOM = 6, - DMUS_SHAPET_RISING = 7, - DMUS_SHAPET_SONG = 8 -} DMUS_SHAPET_TYPES; - -typedef enum enumDMUS_COMPOSEF_FLAGS -{ - DMUS_COMPOSEF_NONE = 0, - DMUS_COMPOSEF_ALIGN = 0x1, - DMUS_COMPOSEF_OVERLAP = 0x2, - DMUS_COMPOSEF_IMMEDIATE = 0x4, - DMUS_COMPOSEF_GRID = 0x8, - DMUS_COMPOSEF_BEAT = 0x10, - DMUS_COMPOSEF_MEASURE = 0x20, - DMUS_COMPOSEF_AFTERPREPARETIME = 0x40, - DMUS_COMPOSEF_VALID_START_BEAT = 0x80, /* In conjunction with DMUS_COMPOSEF_ALIGN, allows the switch to occur on any beat. */ - DMUS_COMPOSEF_VALID_START_GRID = 0x100, /* In conjunction with DMUS_COMPOSEF_ALIGN, allows the switch to occur on any grid. */ - DMUS_COMPOSEF_VALID_START_TICK = 0x200, /* In conjunction with DMUS_COMPOSEF_ALIGN, allows the switch to occur any time. */ - DMUS_COMPOSEF_SEGMENTEND = 0x400, /* Play the transition at the end of the current segment. */ - DMUS_COMPOSEF_MARKER = 0x800, /* Play the transition at the next marker in the current segment. */ - DMUS_COMPOSEF_MODULATE = 0x1000, - DMUS_COMPOSEF_LONG = 0x2000, - DMUS_COMPOSEF_ENTIRE_TRANSITION = 0x4000, /* play the entire transition pattern */ - DMUS_COMPOSEF_1BAR_TRANSITION = 0x8000, /* play one bar of the transition pattern */ - DMUS_COMPOSEF_ENTIRE_ADDITION = 0x10000, /* play the additional pattern in its entirety */ - DMUS_COMPOSEF_1BAR_ADDITION = 0x20000, /* play one bar of the additional pattern */ - DMUS_COMPOSEF_VALID_START_MEASURE = 0x40000, /* In conjunction with DMUS_COMPOSEF_ALIGN, allows the switch to occur on any bar. */ - DMUS_COMPOSEF_DEFAULT = 0x80000, /* Use segment's default boundary */ - DMUS_COMPOSEF_NOINVALIDATE = 0x100000, /* Play without invalidating the currently playing segment(s) */ - DMUS_COMPOSEF_USE_AUDIOPATH = 0x200000, /* Uses the audio paths that are embedded in the segments */ - DMUS_COMPOSEF_INVALIDATE_PRI = 0x400000 /* Invalidate only the current primary seg state */ -} DMUS_COMPOSEF_FLAGS; - -#define DMUS_PMSG_PART \ - DWORD dwSize; \ - REFERENCE_TIME rtTime; /* real time (in 100 nanosecond increments) */ \ - MUSIC_TIME mtTime; /* music time */ \ - DWORD dwFlags; /* various bits (see DMUS_PMSGF_FLAGS enumeration) */ \ - DWORD dwPChannel; /* Performance Channel. The Performance can */ \ - /* use this to determine the port/channel. */ \ - DWORD dwVirtualTrackID; /* virtual track ID */ \ - IDirectMusicTool* pTool; /* tool interface pointer */ \ - IDirectMusicGraph* pGraph; /* tool graph interface pointer */ \ - DWORD dwType; /* PMSG type (see DMUS_PMSGT_TYPES defines) */ \ - DWORD dwVoiceID; /* unique voice id which allows synthesizers to */ \ - /* identify a specific event. For DirectX 6.0, */ \ - /* this field should always be 0. */ \ - DWORD dwGroupID; /* Track group id */ \ - IUnknown* punkUser; /* user com pointer, auto released upon PMSG free */ - -/* every DMUS_PMSG is based off of this structure. The Performance needs - to access these members consistently in every PMSG that goes through it. */ -typedef struct _DMUS_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - -} DMUS_PMSG; - -#define DMUS_PCHANNEL_BROADCAST_PERFORMANCE 0xFFFFFFFF /* PMsg is sent on all PChannels of the performance. */ -#define DMUS_PCHANNEL_BROADCAST_AUDIOPATH 0xFFFFFFFE /* PMsg is sent on all PChannels of the audio path. */ -#define DMUS_PCHANNEL_BROADCAST_SEGMENT 0xFFFFFFFD /* PMsg is sent on all PChannels of the segment. */ -#define DMUS_PCHANNEL_BROADCAST_GROUPS 0xFFFFFFFC /* A duplicate PMsg is for each Channels Groups in the performance. */ - -/* The DMUS_PATH constants are used in conjunction with GetObjectInPath to find a requested - interface at a particular stage in the audio path. -*/ -#define DMUS_PATH_SEGMENT 0x1000 /* Get the segment itself (from a segment state.) */ -#define DMUS_PATH_SEGMENT_TRACK 0x1100 /* Look in Track List of Segment. */ -#define DMUS_PATH_SEGMENT_GRAPH 0x1200 /* Get the segment's tool graph. */ -#define DMUS_PATH_SEGMENT_TOOL 0x1300 /* Look in Tool Graph of Segment. */ -#define DMUS_PATH_AUDIOPATH 0x2000 /* Get the audiopath itself (from a segment state.) */ -#define DMUS_PATH_AUDIOPATH_GRAPH 0x2200 /* Get the audiopath's tool graph. */ -#define DMUS_PATH_AUDIOPATH_TOOL 0x2300 /* Look in Tool Graph of Audio Path. */ -#define DMUS_PATH_PERFORMANCE 0x3000 /* Access the performance. */ -#define DMUS_PATH_PERFORMANCE_GRAPH 0x3200 /* Get the performance's tool graph. */ -#define DMUS_PATH_PERFORMANCE_TOOL 0x3300 /* Look in Tool Graph of Performance. */ -#define DMUS_PATH_PORT 0x4000 /* Access the synth. */ -#define DMUS_PATH_BUFFER 0x6000 /* Look in DirectSoundBuffer. */ -#define DMUS_PATH_BUFFER_DMO 0x6100 /* Access a DMO in the buffer. */ -#define DMUS_PATH_MIXIN_BUFFER 0x7000 /* Look in a global mixin buffer. */ -#define DMUS_PATH_MIXIN_BUFFER_DMO 0x7100 /* Access a DMO in a global mixin buffer. */ -#define DMUS_PATH_PRIMARY_BUFFER 0x8000 /* Access the primary buffer. */ - -/* To ignore PChannels when calling GetObjectInPath(), use the DMUS_PCHANNEL_ALL constant. */ -#define DMUS_PCHANNEL_ALL 0xFFFFFFFB - -/* The DMUS_APATH types are used in conjunction with CreateStandardAudioPath to - build default path types. _SHARED_ means the same buffer is shared across multiple - instantiations of the audiopath type. _DYNAMIC_ means a unique buffer is created - every time. -*/ - -#define DMUS_APATH_SHARED_STEREOPLUSREVERB 1 /* A standard music set up with stereo outs and reverb. */ -#define DMUS_APATH_DYNAMIC_3D 6 /* An audio path with one dynamic bus from the synth feeding to a dynamic 3d buffer. Does not send to env reverb. */ -#define DMUS_APATH_DYNAMIC_MONO 7 /* An audio path with one dynamic bus from the synth feeding to a dynamic mono buffer. */ -#define DMUS_APATH_DYNAMIC_STEREO 8 /* An audio path with two dynamic buses from the synth feeding to a dynamic stereo buffer. */ - -typedef struct _DMUS_AUDIOPARAMS -{ - DWORD dwSize; /* Size of this structure. */ - BOOL fInitNow; /* If true, the sink and synth are created immediately and results returned in this structure. */ - DWORD dwValidData; /* Flags indicating which fields below are valid. */ - DWORD dwFeatures; /* Required DMUS_AUDIOF features. */ - DWORD dwVoices; /* Required number of voices. */ - DWORD dwSampleRate; /* Sample rate of synths and sink. */ - CLSID clsidDefaultSynth; /* Class ID of default synthesizer. */ -} DMUS_AUDIOPARAMS; - -/* dwFeatures flags. These indicate which features are required for the audio environment. */ -#define DMUS_AUDIOF_3D 0x1 /* Require 3D buffers. */ -#define DMUS_AUDIOF_ENVIRON 0x2 /* Require environmental modeling. */ -#define DMUS_AUDIOF_EAX 0x4 /* Require use of EAX effects. */ -#define DMUS_AUDIOF_DMOS 0x8 /* Require use of additional DMOs. */ -#define DMUS_AUDIOF_STREAMING 0x10 /* Require support for streaming waves. */ -#define DMUS_AUDIOF_BUFFERS 0x20 /* Require support for multiple buffers (all above cases need this.) */ -#define DMUS_AUDIOF_ALL 0x3F /* Requires everything. */ - -/* dwValidData flags. These indicate which fields in DMUS_AUDIOPARAMS have been filled in. If fInitNow is set, these also return what was allocated. */ -#define DMUS_AUDIOPARAMS_FEATURES 0x00000001 -#define DMUS_AUDIOPARAMS_VOICES 0x00000002 -#define DMUS_AUDIOPARAMS_SAMPLERATE 0x00000004 -#define DMUS_AUDIOPARAMS_DEFAULTSYNTH 0x00000008 - -/* DMUS_PMSGF_FLAGS fill the DMUS_PMSG's dwFlags member */ -typedef enum enumDMUS_PMSGF_FLAGS -{ - DMUS_PMSGF_REFTIME = 1, /* if rtTime is valid */ - DMUS_PMSGF_MUSICTIME = 2, /* if mtTime is valid */ - DMUS_PMSGF_TOOL_IMMEDIATE = 4, /* if PMSG should be processed immediately */ - DMUS_PMSGF_TOOL_QUEUE = 8, /* if PMSG should be processed a little early, at Queue time */ - DMUS_PMSGF_TOOL_ATTIME = 0x10, /* if PMSG should be processed at the time stamp */ - DMUS_PMSGF_TOOL_FLUSH = 0x20, /* if PMSG is being flushed */ - DMUS_PMSGF_LOCKTOREFTIME = 0x40, /* if rtTime can not be overriden by a tempo change. */ - DMUS_PMSGF_DX8 = 0x80 /* if the message has DX8 or later extensions. */ - /* The values of DMUS_TIME_RESOLVE_FLAGS may also be used inside the */ - /* DMUS_PMSG's dwFlags member. */ -} DMUS_PMSGF_FLAGS; - -/* DMUS_PMSGT_TYPES fill the DMUS_PMSG's dwType member */ -typedef enum enumDMUS_PMSGT_TYPES -{ - DMUS_PMSGT_MIDI = 0, /* MIDI short message */ - DMUS_PMSGT_NOTE = 1, /* Interactive Music Note */ - DMUS_PMSGT_SYSEX = 2, /* MIDI long message (system exclusive message) */ - DMUS_PMSGT_NOTIFICATION = 3, /* Notification message */ - DMUS_PMSGT_TEMPO = 4, /* Tempo message */ - DMUS_PMSGT_CURVE = 5, /* Control change / pitch bend, etc. curve */ - DMUS_PMSGT_TIMESIG = 6, /* Time signature */ - DMUS_PMSGT_PATCH = 7, /* Patch changes */ - DMUS_PMSGT_TRANSPOSE = 8, /* Transposition messages */ - DMUS_PMSGT_CHANNEL_PRIORITY = 9, /* Channel priority */ - DMUS_PMSGT_STOP = 10, /* Stop message */ - DMUS_PMSGT_DIRTY = 11, /* Tells Tools that cache GetParam() info to refresh */ - DMUS_PMSGT_WAVE = 12, /* Carries control information for playing a wave. */ - DMUS_PMSGT_LYRIC = 13, /* Lyric message from lyric track. */ - DMUS_PMSGT_SCRIPTLYRIC = 14, /* Lyric message sent by a script with the Trace function. */ - DMUS_PMSGT_USER = 255 /* User message */ -} DMUS_PMSGT_TYPES; - -/* DMUS_SEGF_FLAGS correspond to IDirectMusicPerformance::PlaySegment, and other API */ -typedef enum enumDMUS_SEGF_FLAGS -{ - DMUS_SEGF_REFTIME = 1<<6, /* 0x40 Time parameter is in reference time */ - DMUS_SEGF_SECONDARY = 1<<7, /* 0x80 Secondary segment */ - DMUS_SEGF_QUEUE = 1<<8, /* 0x100 Queue at the end of the primary segment queue (primary only) */ - DMUS_SEGF_CONTROL = 1<<9, /* 0x200 Play as a control track (secondary segments only) */ - DMUS_SEGF_AFTERPREPARETIME = 1<<10, /* 0x400 Play after the prepare time (See IDirectMusicPerformance::GetPrepareTime) */ - DMUS_SEGF_GRID = 1<<11, /* 0x800 Play on grid boundary */ - DMUS_SEGF_BEAT = 1<<12, /* 0x1000 Play on beat boundary */ - DMUS_SEGF_MEASURE = 1<<13, /* 0x2000 Play on measure boundary */ - DMUS_SEGF_DEFAULT = 1<<14, /* 0x4000 Use segment's default boundary */ - DMUS_SEGF_NOINVALIDATE = 1<<15, /* 0x8000 Play without invalidating the currently playing segment(s) */ - DMUS_SEGF_ALIGN = 1<<16, /* 0x10000 Align segment with requested boundary, but switch at first valid point */ - DMUS_SEGF_VALID_START_BEAT = 1<<17, /* 0x20000 In conjunction with DMUS_SEGF_ALIGN, allows the switch to occur on any beat. */ - DMUS_SEGF_VALID_START_GRID = 1<<18, /* 0x40000 In conjunction with DMUS_SEGF_ALIGN, allows the switch to occur on any grid. */ - DMUS_SEGF_VALID_START_TICK = 1<<19, /* 0x80000 In conjunction with DMUS_SEGF_ALIGN, allows the switch to occur any time. */ - DMUS_SEGF_AUTOTRANSITION = 1<<20, /* 0x100000 Compose and play a transition segment, using the transition template. */ - DMUS_SEGF_AFTERQUEUETIME = 1<<21, /* 0x200000 Make sure to play after the queue time. This is default for primary segments */ - DMUS_SEGF_AFTERLATENCYTIME = 1<<22, /* 0x400000 Make sure to play after the latency time. This is true for all segments, so this is a nop */ - DMUS_SEGF_SEGMENTEND = 1<<23, /* 0x800000 Play at the next end of segment. */ - DMUS_SEGF_MARKER = 1<<24, /* 0x1000000 Play at next marker in the primary segment. If there are no markers, default to any other resolution requests. */ - DMUS_SEGF_TIMESIG_ALWAYS = 1<<25, /* 0x2000000 Even if there is no primary segment, align start time with current time signature. */ - DMUS_SEGF_USE_AUDIOPATH = 1<<26, /* 0x4000000 Uses the audio path that is embedded in the segment. */ - DMUS_SEGF_VALID_START_MEASURE = 1<<27, /* 0x8000000 In conjunction with DMUS_SEGF_ALIGN, allows the switch to occur on any bar. */ - DMUS_SEGF_INVALIDATE_PRI = 1<<28 /* 0x10000000 invalidate only the current primary seg state */ -} DMUS_SEGF_FLAGS; - -#define DMUS_SEG_REPEAT_INFINITE 0xFFFFFFFF /* For IDirectMusicSegment::SetRepeat*/ -#define DMUS_SEG_ALLTRACKS 0x80000000 /* For IDirectMusicSegment::SetParam() and SetTrackConfig() - selects all tracks instead on nth index. */ -#define DMUS_SEG_ANYTRACK 0x80000000 /* For IDirectMusicSegment::GetParam() - checks each track until it finds one that returns data (not DMUS_E_NOT_FOUND.) */ - - -/* DMUS_TIME_RESOLVE_FLAGS correspond to IDirectMusicPerformance::GetResolvedTime, and can */ -/* also be used interchangeably with the corresponding DMUS_SEGF_FLAGS, since their values */ -/* are intentionally the same */ -typedef enum enumDMUS_TIME_RESOLVE_FLAGS -{ - DMUS_TIME_RESOLVE_AFTERPREPARETIME = DMUS_SEGF_AFTERPREPARETIME, - DMUS_TIME_RESOLVE_AFTERQUEUETIME = DMUS_SEGF_AFTERQUEUETIME, - DMUS_TIME_RESOLVE_AFTERLATENCYTIME = DMUS_SEGF_AFTERLATENCYTIME, - DMUS_TIME_RESOLVE_GRID = DMUS_SEGF_GRID, - DMUS_TIME_RESOLVE_BEAT = DMUS_SEGF_BEAT, - DMUS_TIME_RESOLVE_MEASURE = DMUS_SEGF_MEASURE, - DMUS_TIME_RESOLVE_MARKER = DMUS_SEGF_MARKER, - DMUS_TIME_RESOLVE_SEGMENTEND = DMUS_SEGF_SEGMENTEND, -} DMUS_TIME_RESOLVE_FLAGS; - -/* The following flags are sent inside the DMUS_CHORD_KEY.dwFlags parameter */ -typedef enum enumDMUS_CHORDKEYF_FLAGS -{ - DMUS_CHORDKEYF_SILENT = 1, /* is the chord silent? */ -} DMUS_CHORDKEYF_FLAGS; - -#define DMUS_MAXSUBCHORD 8 - -typedef struct _DMUS_SUBCHORD -{ - DWORD dwChordPattern; /* Notes in the subchord */ - DWORD dwScalePattern; /* Notes in the scale */ - DWORD dwInversionPoints; /* Where inversions can occur */ - DWORD dwLevels; /* Which levels are supported by this subchord */ - BYTE bChordRoot; /* Root of the subchord */ - BYTE bScaleRoot; /* Root of the scale */ -} DMUS_SUBCHORD; - -typedef struct _DMUS_CHORD_KEY -{ - WCHAR wszName[16]; /* Name of the chord */ - WORD wMeasure; /* Measure this falls on */ - BYTE bBeat; /* Beat this falls on */ - BYTE bSubChordCount; /* Number of chords in the list of subchords */ - DMUS_SUBCHORD SubChordList[DMUS_MAXSUBCHORD]; /* List of sub chords */ - DWORD dwScale; /* Scale underlying the entire chord */ - BYTE bKey; /* Key underlying the entire chord */ - BYTE bFlags; /* Miscelaneous flags */ -} DMUS_CHORD_KEY; - -/* DMUS_NOTE_PMSG */ -typedef struct _DMUS_NOTE_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - - MUSIC_TIME mtDuration; /* duration */ - WORD wMusicValue; /* Description of note in chord and key. */ - WORD wMeasure; /* Measure in which this note occurs */ - short nOffset; /* Offset from grid at which this note occurs */ - BYTE bBeat; /* Beat (in measure) at which this note occurs */ - BYTE bGrid; /* Grid offset from beat at which this note occurs */ - BYTE bVelocity; /* Note velocity */ - BYTE bFlags; /* see DMUS_NOTEF_FLAGS */ - BYTE bTimeRange; /* Range to randomize time. */ - BYTE bDurRange; /* Range to randomize duration. */ - BYTE bVelRange; /* Range to randomize velocity. */ - BYTE bPlayModeFlags; /* Play mode */ - BYTE bSubChordLevel; /* Which subchord level this note uses. */ - BYTE bMidiValue; /* The MIDI note value, converted from wMusicValue */ - char cTranspose; /* Transposition to add to midi note value after converted from wMusicValue. */ -} DMUS_NOTE_PMSG; - -typedef enum enumDMUS_NOTEF_FLAGS -{ - DMUS_NOTEF_NOTEON = 1, /* Set if this is a MIDI Note On. Otherwise, it is MIDI Note Off */ - /* DX8 flags: */ - DMUS_NOTEF_NOINVALIDATE = 2, /* Don't invalidate this note off. */ - DMUS_NOTEF_NOINVALIDATE_INSCALE = 4,/* Don't invalidate if still within the scale. */ - DMUS_NOTEF_NOINVALIDATE_INCHORD = 8,/* Don't invalidate if still within the chord. */ - DMUS_NOTEF_REGENERATE = 0x10, /* Regenerate the note on an invalidate. */ -} DMUS_NOTEF_FLAGS; - -/* The DMUS_PLAYMODE_FLAGS are used to determine how to convert wMusicValue - into the appropriate bMidiValue. -*/ - -typedef enum enumDMUS_PLAYMODE_FLAGS -{ - DMUS_PLAYMODE_KEY_ROOT = 1, /* Transpose on top of the key root. */ - DMUS_PLAYMODE_CHORD_ROOT = 2, /* Transpose on top of the chord root. */ - DMUS_PLAYMODE_SCALE_INTERVALS = 4, /* Use scale intervals from scale pattern. */ - DMUS_PLAYMODE_CHORD_INTERVALS = 8, /* Use chord intervals from chord pattern. */ - DMUS_PLAYMODE_NONE = 16, /* No mode. Indicates the parent part's mode should be used. */ -} DMUS_PLAYMODE_FLAGS; - -/* The following are playback modes that can be created by combining the DMUS_PLAYMODE_FLAGS - in various ways: -*/ - -/* Fixed. wMusicValue holds final MIDI note value. This is used for drums, sound effects, and sequenced - notes that should not be transposed by the chord or scale. -*/ -#define DMUS_PLAYMODE_FIXED 0 -/* In fixed to key, the musicvalue is again a fixed MIDI value, but it - is transposed on top of the key root. -*/ -#define DMUS_PLAYMODE_FIXEDTOKEY DMUS_PLAYMODE_KEY_ROOT -/* In fixed to chord, the musicvalue is also a fixed MIDI value, but it - is transposed on top of the chord root. -*/ -#define DMUS_PLAYMODE_FIXEDTOCHORD DMUS_PLAYMODE_CHORD_ROOT -/* In Pedalpoint, the key root is used and the notes only track the intervals in - the scale. The chord root and intervals are completely ignored. This is useful - for melodic lines that play relative to the key root. -*/ -#define DMUS_PLAYMODE_PEDALPOINT (DMUS_PLAYMODE_KEY_ROOT | DMUS_PLAYMODE_SCALE_INTERVALS) -/* In the Melodic mode, the chord root is used but the notes only track the intervals in - the scale. The key root and chord intervals are completely ignored. This is useful - for melodic lines that play relative to the chord root. -*/ -#define DMUS_PLAYMODE_MELODIC (DMUS_PLAYMODE_CHORD_ROOT | DMUS_PLAYMODE_SCALE_INTERVALS) -/* Normal chord mode is the prevalent playback mode. - The notes track the intervals in the chord, which is based on the chord root. - If there is a scale component to the MusicValue, the additional intervals - are pulled from the scale and added. - If the chord does not have an interval to match the chord component of - the MusicValue, the note is silent. -*/ -#define DMUS_PLAYMODE_NORMALCHORD (DMUS_PLAYMODE_CHORD_ROOT | DMUS_PLAYMODE_CHORD_INTERVALS) -/* If it is desirable to play a note that is above the top of the chord, the - always play mode (known as "purpleized" in a former life) finds a position - for the note by using intervals from the scale. Essentially, this mode is - a combination of the Normal and Melodic playback modes, where a failure - in Normal causes a second try in Melodic mode. -*/ -#define DMUS_PLAYMODE_ALWAYSPLAY (DMUS_PLAYMODE_MELODIC | DMUS_PLAYMODE_NORMALCHORD) - -/* These playmodes are new for dx8. */ -/* In PedalpointChord, the key root is used and the notes only track the intervals in - the chord. The chord root and scale intervals are completely ignored. This is useful - for chordal lines that play relative to the key root. -*/ -#define DMUS_PLAYMODE_PEDALPOINTCHORD (DMUS_PLAYMODE_KEY_ROOT | DMUS_PLAYMODE_CHORD_INTERVALS) - -/* For completeness, here's a mode that tries for pedalpointchord, but if it fails - uses scale intervals -*/ -#define DMUS_PLAYMODE_PEDALPOINTALWAYS (DMUS_PLAYMODE_PEDALPOINT | DMUS_PLAYMODE_PEDALPOINTCHORD) - - -/* Legacy names for modes... */ -#define DMUS_PLAYMODE_PURPLEIZED DMUS_PLAYMODE_ALWAYSPLAY -#define DMUS_PLAYMODE_SCALE_ROOT DMUS_PLAYMODE_KEY_ROOT -#define DMUS_PLAYMODE_FIXEDTOSCALE DMUS_PLAYMODE_FIXEDTOKEY - - -/* DMUS_MIDI_PMSG */ -typedef struct _DMUS_MIDI_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - - BYTE bStatus; - BYTE bByte1; - BYTE bByte2; - BYTE bPad[1]; -} DMUS_MIDI_PMSG; - -/* DMUS_PATCH_PMSG */ -typedef struct _DMUS_PATCH_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - - BYTE byInstrument; - BYTE byMSB; - BYTE byLSB; - BYTE byPad[1]; -} DMUS_PATCH_PMSG; - -/* DMUS_TRANSPOSE_PMSG */ -typedef struct _DMUS_TRANSPOSE_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - - short nTranspose; - /* Following exists only under DX8 and on (check dwFlags for DMUS_PMSGF_DX8) */ - WORD wMergeIndex; /* Allows multiple parameters to be merged (pitchbend, volume, and expression.)*/ -} DMUS_TRANSPOSE_PMSG; - -/* DMUS_CHANNEL_PRIORITY_PMSG */ -typedef struct _DMUS_CHANNEL_PRIORITY_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - - DWORD dwChannelPriority; -} DMUS_CHANNEL_PRIORITY_PMSG; - -/* DMUS_TEMPO_PMSG */ -typedef struct _DMUS_TEMPO_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - - double dblTempo; /* the tempo */ -} DMUS_TEMPO_PMSG; - -#define DMUS_TEMPO_MAX 1000 -#define DMUS_TEMPO_MIN 1 - -#define DMUS_MASTERTEMPO_MAX 100.0f -#define DMUS_MASTERTEMPO_MIN 0.01f - -/* DMUS_SYSEX_PMSG */ -typedef struct _DMUS_SYSEX_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - - DWORD dwLen; /* length of the data */ - BYTE abData[1]; /* array of data, length equal to dwLen */ -} DMUS_SYSEX_PMSG; - -/* DMUS_CURVE_PMSG */ -typedef struct _DMUS_CURVE_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - - MUSIC_TIME mtDuration; /* how long this curve lasts */ - MUSIC_TIME mtOriginalStart; /* must be set to either zero when this PMSG is created or to the original mtTime of the curve */ - MUSIC_TIME mtResetDuration; /* how long after the curve is finished to allow a flush or - invalidation to reset to the reset value, nResetValue */ - short nStartValue; /* curve's start value */ - short nEndValue; /* curve's end value */ - short nResetValue; /* curve's reset value, set when a flush or invalidation - occurs within mtDuration + mtResetDuration */ - WORD wMeasure; /* Measure in which this curve occurs */ - short nOffset; /* Offset from grid at which this curve occurs */ - BYTE bBeat; /* Beat (in measure) at which this curve occurs */ - BYTE bGrid; /* Grid offset from beat at which this curve occurs */ - BYTE bType; /* type of curve */ - BYTE bCurveShape; /* shape of curve */ - BYTE bCCData; /* CC# if this is a control change type */ - BYTE bFlags; /* Curve reset and start from current value flags. */ - /* Following exists only under DX8 and on (check dwFlags for DMUS_PMSGF_DX8) */ - WORD wParamType; /* RPN or NRPN parameter number. */ - WORD wMergeIndex; /* Allows multiple parameters to be merged (pitchbend, volume, and expression.)*/ -} DMUS_CURVE_PMSG; - -typedef enum enumDMUS_CURVE_FLAGS -{ - DMUS_CURVE_RESET = 1, /* When set, the nResetValue must be sent when the - time is reached or an invalidate occurs because - of a transition. If not set, the curve stays - permanently stuck at the new value. */ - DMUS_CURVE_START_FROM_CURRENT = 2/* Ignore Start, start the curve at the current value. - This only works for volume, expression, and pitchbend. */ -} DMUS_CURVE_FLAGS; - - -#define DMUS_CURVE_RESET 1 - -/* Curve shapes */ -enum -{ - DMUS_CURVES_LINEAR = 0, - DMUS_CURVES_INSTANT = 1, - DMUS_CURVES_EXP = 2, - DMUS_CURVES_LOG = 3, - DMUS_CURVES_SINE = 4 -}; -/* curve types */ -#define DMUS_CURVET_PBCURVE 0x03 /* Pitch bend curve. */ -#define DMUS_CURVET_CCCURVE 0x04 /* Control change curve. */ -#define DMUS_CURVET_MATCURVE 0x05 /* Mono aftertouch curve. */ -#define DMUS_CURVET_PATCURVE 0x06 /* Poly aftertouch curve. */ -#define DMUS_CURVET_RPNCURVE 0x07 /* RPN curve with curve type in wParamType. */ -#define DMUS_CURVET_NRPNCURVE 0x08 /* NRPN curve with curve type in wParamType. */ - -/* DMUS_TIMESIG_PMSG */ -typedef struct _DMUS_TIMESIG_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - - /* Time signatures define how many beats per measure, which note receives */ - /* the beat, and the grid resolution. */ - BYTE bBeatsPerMeasure; /* beats per measure (top of time sig) */ - BYTE bBeat; /* what note receives the beat (bottom of time sig.) */ - /* we can assume that 0 means 256th note */ - WORD wGridsPerBeat; /* grids per beat */ -} DMUS_TIMESIG_PMSG; - - - -/* notification type values */ -/* The following correspond to GUID_NOTIFICATION_SEGMENT */ -#define DMUS_NOTIFICATION_SEGSTART 0 -#define DMUS_NOTIFICATION_SEGEND 1 -#define DMUS_NOTIFICATION_SEGALMOSTEND 2 -#define DMUS_NOTIFICATION_SEGLOOP 3 -#define DMUS_NOTIFICATION_SEGABORT 4 -/* The following correspond to GUID_NOTIFICATION_PERFORMANCE */ -#define DMUS_NOTIFICATION_MUSICSTARTED 0 -#define DMUS_NOTIFICATION_MUSICSTOPPED 1 -#define DMUS_NOTIFICATION_MUSICALMOSTEND 2 -/* The following corresponds to GUID_NOTIFICATION_MEASUREANDBEAT */ -#define DMUS_NOTIFICATION_MEASUREBEAT 0 -/* The following corresponds to GUID_NOTIFICATION_CHORD */ -#define DMUS_NOTIFICATION_CHORD 0 -/* The following correspond to GUID_NOTIFICATION_COMMAND */ -#define DMUS_NOTIFICATION_GROOVE 0 -#define DMUS_NOTIFICATION_EMBELLISHMENT 1 -/* The following corresponds to GUID_NOTIFICATION_RECOMPOSE */ -#define DMUS_NOTIFICATION_RECOMPOSE 0 - -/* DMUS_NOTIFICATION_PMSG */ -typedef struct _DMUS_NOTIFICATION_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - - GUID guidNotificationType; - DWORD dwNotificationOption; - DWORD dwField1; - DWORD dwField2; -} DMUS_NOTIFICATION_PMSG; - -/* DMUS_WAVE_PMSG */ -typedef struct _DMUS_WAVE_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - - REFERENCE_TIME rtStartOffset; /* How far into the wave to start, in reference time units only. */ - REFERENCE_TIME rtDuration; /* Duration of the wave, in either reference time or music time. */ - long lOffset; /* Offset from actual time to logical time, in music or ref time. */ - long lVolume; /* Initial volume, in 100ths of a dB. */ - long lPitch; /* Initial pitch, in 100ths of a semitone. */ - BYTE bFlags; /* Flags, including DMUS_WAVEF_OFF... */ -} DMUS_WAVE_PMSG; - -#define DMUS_WAVEF_OFF 1 /* If wave is playing and this is the off message. */ -#define DMUS_WAVEF_STREAMING 2 /* If wave is streaming. */ -#define DMUS_WAVEF_NOINVALIDATE 4 /* Don't invalidate this wave. */ -#define DMUS_WAVEF_NOPREROLL 8 /* Don't preroll any wave data. */ -#define DMUS_WAVEF_IGNORELOOPS 0x20 /* Ignore segment looping. */ - -/* DMUS_LYRIC_PMSG */ -typedef struct _DMUS_LYRIC_PMSG -{ - /* begin DMUS_PMSG_PART */ - DMUS_PMSG_PART - /* end DMUS_PMSG_PART */ - - WCHAR wszString[1]; /* null-terminated Unicode lyric string (structure is actually larger than size 1) */ -} DMUS_LYRIC_PMSG; - -#define DMUS_MAX_NAME 64 /* Maximum object name length. */ -#define DMUS_MAX_CATEGORY 64 /* Maximum object category name length. */ -#define DMUS_MAX_FILENAME MAX_PATH - -typedef struct _DMUS_VERSION { - DWORD dwVersionMS; - DWORD dwVersionLS; -}DMUS_VERSION, FAR *LPDMUS_VERSION; - -/* Time Signature structure, used by IDirectMusicStyle */ -/* Also used as a parameter for GetParam() and SetParam */ -typedef struct _DMUS_TIMESIGNATURE -{ - MUSIC_TIME mtTime; - BYTE bBeatsPerMeasure; /* beats per measure (top of time sig) */ - BYTE bBeat; /* what note receives the beat (bottom of time sig.) */ - /* we can assume that 0 means 256th note */ - WORD wGridsPerBeat; /* grids per beat */ -} DMUS_TIMESIGNATURE; - -typedef struct _DMUS_VALID_START_PARAM -{ - MUSIC_TIME mtTime; /* Time of the first legal start - point after (or including) the requested time. - This is a returned value. - Time format is the relative offset from requested time. */ -} DMUS_VALID_START_PARAM; - -typedef struct _DMUS_PLAY_MARKER_PARAM -{ - MUSIC_TIME mtTime; /* Time of the first legal segment play - marker before (or including) the requested time. - This is a returned value. - Time format is the relative offset from requested time. */ -} DMUS_PLAY_MARKER_PARAM; - -/* The DMUSOBJECTDESC structure is used to communicate everything you could */ -/* possibly use to describe a DirectMusic object. */ - -typedef struct _DMUS_OBJECTDESC -{ - DWORD dwSize; /* Size of this structure. */ - DWORD dwValidData; /* Flags indicating which fields below are valid. */ - GUID guidObject; /* Unique ID for this object. */ - GUID guidClass; /* GUID for the class of object. */ - FILETIME ftDate; /* Last edited date of object. */ - DMUS_VERSION vVersion; /* Version. */ - WCHAR wszName[DMUS_MAX_NAME]; /* Name of object. */ - WCHAR wszCategory[DMUS_MAX_CATEGORY]; /* Category for object (optional). */ - WCHAR wszFileName[DMUS_MAX_FILENAME]; /* File path. */ - LONGLONG llMemLength; /* Size of Memory data. */ - LPBYTE pbMemData; /* Memory pointer for data. */ - IStream * pStream; /* Stream with data. */ -} DMUS_OBJECTDESC; - -typedef DMUS_OBJECTDESC *LPDMUS_OBJECTDESC; - -/* Flags for dwValidData. When set, a flag indicates that the */ -/* corresponding field in DMUSOBJECTDESC holds valid data. */ - -#define DMUS_OBJ_OBJECT (1 << 0) /* Object GUID is valid. */ -#define DMUS_OBJ_CLASS (1 << 1) /* Class GUID is valid. */ -#define DMUS_OBJ_NAME (1 << 2) /* Name is valid. */ -#define DMUS_OBJ_CATEGORY (1 << 3) /* Category is valid. */ -#define DMUS_OBJ_FILENAME (1 << 4) /* File path is valid. */ -#define DMUS_OBJ_FULLPATH (1 << 5) /* Path is full path. */ -#define DMUS_OBJ_URL (1 << 6) /* Path is URL. */ -#define DMUS_OBJ_VERSION (1 << 7) /* Version is valid. */ -#define DMUS_OBJ_DATE (1 << 8) /* Date is valid. */ -#define DMUS_OBJ_LOADED (1 << 9) /* Object is currently loaded in memory. */ -#define DMUS_OBJ_MEMORY (1 << 10) /* Object is pointed to by pbMemData. */ -#define DMUS_OBJ_STREAM (1 << 11) /* Object is stored in pStream. */ - -/* The DMUS_SCRIPT_ERRORINFO structure describes an error that occurred in a script. - It is returned by methods in IDirectMusicScript. */ -typedef struct _DMUS_SCRIPT_ERRORINFO -{ - DWORD dwSize; /* Size of this structure. */ - HRESULT hr; - ULONG ulLineNumber; - LONG ichCharPosition; - WCHAR wszSourceFile[DMUS_MAX_FILENAME]; - WCHAR wszSourceComponent[DMUS_MAX_FILENAME]; - WCHAR wszDescription[DMUS_MAX_FILENAME]; - WCHAR wszSourceLineText[DMUS_MAX_FILENAME]; -} DMUS_SCRIPT_ERRORINFO; - -/* Track configuration flags, used with IDirectMusicSegment8::SetTrackConfig() */ - -#define DMUS_TRACKCONFIG_OVERRIDE_ALL 1 /* This track should get parameters from this segment before controlling and primary tracks. */ -#define DMUS_TRACKCONFIG_OVERRIDE_PRIMARY 2 /* This track should get parameters from this segment before the primary segment tracks. */ -#define DMUS_TRACKCONFIG_FALLBACK 4 /* This track should get parameters from this segment if the primary and controlling segments don't succeed. */ -#define DMUS_TRACKCONFIG_CONTROL_ENABLED 8 /* GetParam() enabled for this track. */ -#define DMUS_TRACKCONFIG_PLAY_ENABLED 0x10 /* Play() enabled for this track. */ -#define DMUS_TRACKCONFIG_NOTIFICATION_ENABLED 0x20 /* Notifications enabled for this track. */ -#define DMUS_TRACKCONFIG_PLAY_CLOCKTIME 0x40 /* This track plays in clock time, not music time. */ -#define DMUS_TRACKCONFIG_PLAY_COMPOSE 0x80 /* This track should regenerate data each time it starts playing. */ -#define DMUS_TRACKCONFIG_LOOP_COMPOSE 0x100 /* This track should regenerate data each time it repeats. */ -#define DMUS_TRACKCONFIG_COMPOSING 0x200 /* This track is used to compose other tracks. */ -#define DMUS_TRACKCONFIG_CONTROL_PLAY 0x10000 /* This track, when played in a controlling segment, overrides playback of primary segment tracks. */ -#define DMUS_TRACKCONFIG_CONTROL_NOTIFICATION 0x20000 /* This track, when played in a controlling segment, overrides notification of primary segment tracks. */ -/* Additional track config flags for composing transitions */ -#define DMUS_TRACKCONFIG_TRANS1_FROMSEGSTART 0x400 /* Get track info from start of From segment */ -#define DMUS_TRACKCONFIG_TRANS1_FROMSEGCURRENT 0x800 /* Get track info from current place in From segment */ -#define DMUS_TRACKCONFIG_TRANS1_TOSEGSTART 0x1000 /* Get track info from start of To segment */ -#define DMUS_TRACKCONFIG_DEFAULT (DMUS_TRACKCONFIG_CONTROL_ENABLED | DMUS_TRACKCONFIG_PLAY_ENABLED | DMUS_TRACKCONFIG_NOTIFICATION_ENABLED) - -/* Get/SetParam structs for commands */ -/* PARAM structures, used by GetParam() and SetParam() */ -typedef struct _DMUS_COMMAND_PARAM -{ - BYTE bCommand; - BYTE bGrooveLevel; - BYTE bGrooveRange; - BYTE bRepeatMode; -} DMUS_COMMAND_PARAM; - -typedef struct _DMUS_COMMAND_PARAM_2 -{ - MUSIC_TIME mtTime; - BYTE bCommand; - BYTE bGrooveLevel; - BYTE bGrooveRange; - BYTE bRepeatMode; -} DMUS_COMMAND_PARAM_2; - -typedef IDirectMusicObject __RPC_FAR *LPDMUS_OBJECT; -typedef IDirectMusicLoader __RPC_FAR *LPDMUS_LOADER; -typedef IDirectMusicBand __RPC_FAR *LPDMUS_BAND; - -#define DMUSB_LOADED (1 << 0) /* Set when band has been loaded */ -#define DMUSB_DEFAULT (1 << 1) /* Set when band is default band for a style */ - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicBand */ -#undef INTERFACE -#define INTERFACE IDirectMusicBand -DECLARE_INTERFACE_(IDirectMusicBand, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicBand */ - STDMETHOD(CreateSegment) (THIS_ IDirectMusicSegment** ppSegment) PURE; - STDMETHOD(Download) (THIS_ IDirectMusicPerformance* pPerformance) PURE; - STDMETHOD(Unload) (THIS_ IDirectMusicPerformance* pPerformance) PURE; -}; - -typedef IDirectMusicBand IDirectMusicBand8; - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicObject */ -#undef INTERFACE -#define INTERFACE IDirectMusicObject -DECLARE_INTERFACE_(IDirectMusicObject, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicObject */ - STDMETHOD(GetDescriptor) (THIS_ LPDMUS_OBJECTDESC pDesc) PURE; - STDMETHOD(SetDescriptor) (THIS_ LPDMUS_OBJECTDESC pDesc) PURE; - STDMETHOD(ParseDescriptor) (THIS_ LPSTREAM pStream, - LPDMUS_OBJECTDESC pDesc) PURE; -}; - -typedef IDirectMusicObject IDirectMusicObject8; - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicLoader */ -#undef INTERFACE -#define INTERFACE IDirectMusicLoader -DECLARE_INTERFACE_(IDirectMusicLoader, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicLoader */ - STDMETHOD(GetObject) (THIS_ LPDMUS_OBJECTDESC pDesc, - REFIID riid, - LPVOID FAR *ppv) PURE; - STDMETHOD(SetObject) (THIS_ LPDMUS_OBJECTDESC pDesc) PURE; - STDMETHOD(SetSearchDirectory) (THIS_ REFGUID rguidClass, - WCHAR *pwzPath, - BOOL fClear) PURE; - STDMETHOD(ScanDirectory) (THIS_ REFGUID rguidClass, - WCHAR *pwzFileExtension, - WCHAR *pwzScanFileName) PURE; - STDMETHOD(CacheObject) (THIS_ IDirectMusicObject * pObject) PURE; - STDMETHOD(ReleaseObject) (THIS_ IDirectMusicObject * pObject) PURE; - STDMETHOD(ClearCache) (THIS_ REFGUID rguidClass) PURE; - STDMETHOD(EnableCache) (THIS_ REFGUID rguidClass, - BOOL fEnable) PURE; - STDMETHOD(EnumObject) (THIS_ REFGUID rguidClass, - DWORD dwIndex, - LPDMUS_OBJECTDESC pDesc) PURE; -}; - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicLoader8 */ -#undef INTERFACE -#define INTERFACE IDirectMusicLoader8 -DECLARE_INTERFACE_(IDirectMusicLoader8, IDirectMusicLoader) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicLoader */ - STDMETHOD(GetObject) (THIS_ LPDMUS_OBJECTDESC pDesc, - REFIID riid, - LPVOID FAR *ppv) PURE; - STDMETHOD(SetObject) (THIS_ LPDMUS_OBJECTDESC pDesc) PURE; - STDMETHOD(SetSearchDirectory) (THIS_ REFGUID rguidClass, - WCHAR *pwzPath, - BOOL fClear) PURE; - STDMETHOD(ScanDirectory) (THIS_ REFGUID rguidClass, - WCHAR *pwzFileExtension, - WCHAR *pwzScanFileName) PURE; - STDMETHOD(CacheObject) (THIS_ IDirectMusicObject * pObject) PURE; - STDMETHOD(ReleaseObject) (THIS_ IDirectMusicObject * pObject) PURE; - STDMETHOD(ClearCache) (THIS_ REFGUID rguidClass) PURE; - STDMETHOD(EnableCache) (THIS_ REFGUID rguidClass, - BOOL fEnable) PURE; - STDMETHOD(EnumObject) (THIS_ REFGUID rguidClass, - DWORD dwIndex, - LPDMUS_OBJECTDESC pDesc) PURE; - - /* IDirectMusicLoader8 */ - STDMETHOD_(void, CollectGarbage) (THIS) PURE; - STDMETHOD(ReleaseObjectByUnknown) (THIS_ IUnknown *pObject) PURE; - STDMETHOD(LoadObjectFromFile) (THIS_ REFGUID rguidClassID, - REFIID iidInterfaceID, - WCHAR *pwzFilePath, - void ** ppObject) PURE; -}; - -/* Stream object supports IDirectMusicGetLoader interface to access loader while file parsing. */ - -#undef INTERFACE -#define INTERFACE IDirectMusicGetLoader -DECLARE_INTERFACE_(IDirectMusicGetLoader, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicGetLoader */ - STDMETHOD(GetLoader) (THIS_ IDirectMusicLoader ** ppLoader) PURE; -}; - -typedef IDirectMusicGetLoader IDirectMusicGetLoader8; - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicSegment */ -#undef INTERFACE -#define INTERFACE IDirectMusicSegment -DECLARE_INTERFACE_(IDirectMusicSegment, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicSegment */ - STDMETHOD(GetLength) (THIS_ MUSIC_TIME* pmtLength) PURE; - STDMETHOD(SetLength) (THIS_ MUSIC_TIME mtLength) PURE; - STDMETHOD(GetRepeats) (THIS_ DWORD* pdwRepeats) PURE; - STDMETHOD(SetRepeats) (THIS_ DWORD dwRepeats) PURE; - STDMETHOD(GetDefaultResolution) (THIS_ DWORD* pdwResolution) PURE; - STDMETHOD(SetDefaultResolution) (THIS_ DWORD dwResolution) PURE; - STDMETHOD(GetTrack) (THIS_ REFGUID rguidType, - DWORD dwGroupBits, - DWORD dwIndex, - IDirectMusicTrack** ppTrack) PURE; - STDMETHOD(GetTrackGroup) (THIS_ IDirectMusicTrack* pTrack, - DWORD* pdwGroupBits) PURE; - STDMETHOD(InsertTrack) (THIS_ IDirectMusicTrack* pTrack, - DWORD dwGroupBits) PURE; - STDMETHOD(RemoveTrack) (THIS_ IDirectMusicTrack* pTrack) PURE; - STDMETHOD(InitPlay) (THIS_ IDirectMusicSegmentState** ppSegState, - IDirectMusicPerformance* pPerformance, - DWORD dwFlags) PURE; - STDMETHOD(GetGraph) (THIS_ IDirectMusicGraph** ppGraph) PURE; - STDMETHOD(SetGraph) (THIS_ IDirectMusicGraph* pGraph) PURE; - STDMETHOD(AddNotificationType) (THIS_ REFGUID rguidNotificationType) PURE; - STDMETHOD(RemoveNotificationType) (THIS_ REFGUID rguidNotificationType) PURE; - STDMETHOD(GetParam) (THIS_ REFGUID rguidType, - DWORD dwGroupBits, - DWORD dwIndex, - MUSIC_TIME mtTime, - MUSIC_TIME* pmtNext, - void* pParam) PURE; - STDMETHOD(SetParam) (THIS_ REFGUID rguidType, - DWORD dwGroupBits, - DWORD dwIndex, - MUSIC_TIME mtTime, - void* pParam) PURE; - STDMETHOD(Clone) (THIS_ MUSIC_TIME mtStart, - MUSIC_TIME mtEnd, - IDirectMusicSegment** ppSegment) PURE; - STDMETHOD(SetStartPoint) (THIS_ MUSIC_TIME mtStart) PURE; - STDMETHOD(GetStartPoint) (THIS_ MUSIC_TIME* pmtStart) PURE; - STDMETHOD(SetLoopPoints) (THIS_ MUSIC_TIME mtStart, - MUSIC_TIME mtEnd) PURE; - STDMETHOD(GetLoopPoints) (THIS_ MUSIC_TIME* pmtStart, - MUSIC_TIME* pmtEnd) PURE; - STDMETHOD(SetPChannelsUsed) (THIS_ DWORD dwNumPChannels, - DWORD* paPChannels) PURE; -}; - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicSegment8 */ -#undef INTERFACE -#define INTERFACE IDirectMusicSegment8 -DECLARE_INTERFACE_(IDirectMusicSegment8, IDirectMusicSegment) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicSegment */ - STDMETHOD(GetLength) (THIS_ MUSIC_TIME* pmtLength) PURE; - STDMETHOD(SetLength) (THIS_ MUSIC_TIME mtLength) PURE; - STDMETHOD(GetRepeats) (THIS_ DWORD* pdwRepeats) PURE; - STDMETHOD(SetRepeats) (THIS_ DWORD dwRepeats) PURE; - STDMETHOD(GetDefaultResolution) (THIS_ DWORD* pdwResolution) PURE; - STDMETHOD(SetDefaultResolution) (THIS_ DWORD dwResolution) PURE; - STDMETHOD(GetTrack) (THIS_ REFGUID rguidType, - DWORD dwGroupBits, - DWORD dwIndex, - IDirectMusicTrack** ppTrack) PURE; - STDMETHOD(GetTrackGroup) (THIS_ IDirectMusicTrack* pTrack, - DWORD* pdwGroupBits) PURE; - STDMETHOD(InsertTrack) (THIS_ IDirectMusicTrack* pTrack, - DWORD dwGroupBits) PURE; - STDMETHOD(RemoveTrack) (THIS_ IDirectMusicTrack* pTrack) PURE; - STDMETHOD(InitPlay) (THIS_ IDirectMusicSegmentState** ppSegState, - IDirectMusicPerformance* pPerformance, - DWORD dwFlags) PURE; - STDMETHOD(GetGraph) (THIS_ IDirectMusicGraph** ppGraph) PURE; - STDMETHOD(SetGraph) (THIS_ IDirectMusicGraph* pGraph) PURE; - STDMETHOD(AddNotificationType) (THIS_ REFGUID rguidNotificationType) PURE; - STDMETHOD(RemoveNotificationType) (THIS_ REFGUID rguidNotificationType) PURE; - STDMETHOD(GetParam) (THIS_ REFGUID rguidType, - DWORD dwGroupBits, - DWORD dwIndex, - MUSIC_TIME mtTime, - MUSIC_TIME* pmtNext, - void* pParam) PURE; - STDMETHOD(SetParam) (THIS_ REFGUID rguidType, - DWORD dwGroupBits, - DWORD dwIndex, - MUSIC_TIME mtTime, - void* pParam) PURE; - STDMETHOD(Clone) (THIS_ MUSIC_TIME mtStart, - MUSIC_TIME mtEnd, - IDirectMusicSegment** ppSegment) PURE; - STDMETHOD(SetStartPoint) (THIS_ MUSIC_TIME mtStart) PURE; - STDMETHOD(GetStartPoint) (THIS_ MUSIC_TIME* pmtStart) PURE; - STDMETHOD(SetLoopPoints) (THIS_ MUSIC_TIME mtStart, - MUSIC_TIME mtEnd) PURE; - STDMETHOD(GetLoopPoints) (THIS_ MUSIC_TIME* pmtStart, - MUSIC_TIME* pmtEnd) PURE; - STDMETHOD(SetPChannelsUsed) (THIS_ DWORD dwNumPChannels, - DWORD* paPChannels) PURE; - /* IDirectMusicSegment8 */ - STDMETHOD(SetTrackConfig) (THIS_ REFGUID rguidTrackClassID, /* Class ID of the type of track on which to set the configuration flags. */ - DWORD dwGroupBits, /* Group bits. */ - DWORD dwIndex, /* Nth track (or DMUS_SEG_ALLTRACKS) that matches class id and group id. */ - DWORD dwFlagsOn, /* DMUS_TRACKCONFIG_ flags to enable. */ - DWORD dwFlagsOff) PURE; /* DMUS_TRACKCONFIG_ flags to disable. */ - STDMETHOD(GetAudioPathConfig) (THIS_ IUnknown ** ppAudioPathConfig) PURE; - STDMETHOD(Compose) (THIS_ MUSIC_TIME mtTime, - IDirectMusicSegment* pFromSegment, - IDirectMusicSegment* pToSegment, - IDirectMusicSegment** ppComposedSegment) PURE; - STDMETHOD(Download) (THIS_ IUnknown *pAudioPath) PURE; - STDMETHOD(Unload) (THIS_ IUnknown *pAudioPath) PURE; -}; - -/*///////////////////////////////////////////////////////////////////// -// IDirectMusicSegmentState */ -#undef INTERFACE -#define INTERFACE IDirectMusicSegmentState -DECLARE_INTERFACE_(IDirectMusicSegmentState, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicSegmentState */ - STDMETHOD(GetRepeats) (THIS_ DWORD* pdwRepeats) PURE; - STDMETHOD(GetSegment ) (THIS_ IDirectMusicSegment** ppSegment) PURE; - STDMETHOD(GetStartTime) (THIS_ MUSIC_TIME* pmtStart) PURE; - STDMETHOD(GetSeek) (THIS_ MUSIC_TIME* pmtSeek) PURE; - STDMETHOD(GetStartPoint) (THIS_ MUSIC_TIME* pmtStart) PURE; -}; - -/*///////////////////////////////////////////////////////////////////// -// IDirectMusicSegmentState8 */ -#undef INTERFACE -#define INTERFACE IDirectMusicSegmentState8 -DECLARE_INTERFACE_(IDirectMusicSegmentState8, IDirectMusicSegmentState) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicSegmentState */ - STDMETHOD(GetRepeats) (THIS_ DWORD* pdwRepeats) PURE; - STDMETHOD(GetSegment ) (THIS_ IDirectMusicSegment** ppSegment) PURE; - STDMETHOD(GetStartTime) (THIS_ MUSIC_TIME* pmtStart) PURE; - STDMETHOD(GetSeek) (THIS_ MUSIC_TIME* pmtSeek) PURE; - STDMETHOD(GetStartPoint) (THIS_ MUSIC_TIME* pmtStart) PURE; - - /* IDirectMusicSegmentState8 */ - STDMETHOD(SetTrackConfig) (THIS_ REFGUID rguidTrackClassID, /* Class ID of the type of track on which to set the configuration flags. */ - DWORD dwGroupBits, /* Group bits. */ - DWORD dwIndex, /* Nth track (or DMUS_SEG_ALLTRACKS) that matches class id and group id. */ - DWORD dwFlagsOn, /* DMUS_TRACKCONFIG_ flags to enable. */ - DWORD dwFlagsOff) PURE; /* DMUS_TRACKCONFIG_ flags to disable. */ - STDMETHOD(GetObjectInPath) (THIS_ DWORD dwPChannel, /* PChannel to search. */ - DWORD dwStage, /* Which stage in the path. */ - DWORD dwBuffer, /* Which buffer to address, if more than one. */ - REFGUID guidObject, /* ClassID of object. */ - DWORD dwIndex, /* Which object of that class. */ - REFGUID iidInterface,/* Requested COM interface. */ - void ** ppObject) PURE; /* Pointer to interface. */ -}; - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicAudioPath */ -#undef INTERFACE -#define INTERFACE IDirectMusicAudioPath -DECLARE_INTERFACE_(IDirectMusicAudioPath, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicAudioPath */ - STDMETHOD(GetObjectInPath) (THIS_ DWORD dwPChannel, /* PChannel to search. */ - DWORD dwStage, /* Which stage in the path. */ - DWORD dwBuffer, /* Which buffer to address, if more than one. */ - REFGUID guidObject, /* ClassID of object. */ - DWORD dwIndex, /* Which object of that class. */ - REFGUID iidInterface,/* Requested COM interface. */ - void ** ppObject) PURE; /* Pointer to interface. */ - STDMETHOD(Activate) (THIS_ BOOL fActivate) PURE;/* True to activate, False to deactivate. */ - STDMETHOD(SetVolume) (THIS_ long lVolume, /* Gain, in 100ths of a dB. This must be negative (0 represents full volume.) */ - DWORD dwDuration) PURE;/* Duration of volume ramp in milliseconds. Note that 0 is more efficient. */ - STDMETHOD(ConvertPChannel) (THIS_ DWORD dwPChannelIn, /* Pchannel of source. */ - DWORD *pdwPChannelOut) PURE; /* Equivalent pchannel on performance. */ -}; - -typedef IDirectMusicAudioPath IDirectMusicAudioPath8; - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicPerformance */ -#undef INTERFACE -#define INTERFACE IDirectMusicPerformance -DECLARE_INTERFACE_(IDirectMusicPerformance, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicPerformance */ - STDMETHOD(Init) (THIS_ IDirectMusic** ppDirectMusic, - LPDIRECTSOUND pDirectSound, - HWND hWnd) PURE; - STDMETHOD(PlaySegment) (THIS_ IDirectMusicSegment* pSegment, - DWORD dwFlags, - __int64 i64StartTime, - IDirectMusicSegmentState** ppSegmentState) PURE; - STDMETHOD(Stop) (THIS_ IDirectMusicSegment* pSegment, - IDirectMusicSegmentState* pSegmentState, - MUSIC_TIME mtTime, - DWORD dwFlags) PURE; - STDMETHOD(GetSegmentState) (THIS_ IDirectMusicSegmentState** ppSegmentState, - MUSIC_TIME mtTime) PURE; - STDMETHOD(SetPrepareTime) (THIS_ DWORD dwMilliSeconds) PURE; - STDMETHOD(GetPrepareTime) (THIS_ DWORD* pdwMilliSeconds) PURE; - STDMETHOD(SetBumperLength) (THIS_ DWORD dwMilliSeconds) PURE; - STDMETHOD(GetBumperLength) (THIS_ DWORD* pdwMilliSeconds) PURE; - STDMETHOD(SendPMsg) (THIS_ DMUS_PMSG* pPMSG) PURE; - STDMETHOD(MusicToReferenceTime) (THIS_ MUSIC_TIME mtTime, - REFERENCE_TIME* prtTime) PURE; - STDMETHOD(ReferenceToMusicTime) (THIS_ REFERENCE_TIME rtTime, - MUSIC_TIME* pmtTime) PURE; - STDMETHOD(IsPlaying) (THIS_ IDirectMusicSegment* pSegment, - IDirectMusicSegmentState* pSegState) PURE; - STDMETHOD(GetTime) (THIS_ REFERENCE_TIME* prtNow, - MUSIC_TIME* pmtNow) PURE; - STDMETHOD(AllocPMsg) (THIS_ ULONG cb, - DMUS_PMSG** ppPMSG) PURE; - STDMETHOD(FreePMsg) (THIS_ DMUS_PMSG* pPMSG) PURE; - STDMETHOD(GetGraph) (THIS_ IDirectMusicGraph** ppGraph) PURE; - STDMETHOD(SetGraph) (THIS_ IDirectMusicGraph* pGraph) PURE; - STDMETHOD(SetNotificationHandle)(THIS_ HANDLE hNotification, - REFERENCE_TIME rtMinimum) PURE; - STDMETHOD(GetNotificationPMsg) (THIS_ DMUS_NOTIFICATION_PMSG** ppNotificationPMsg) PURE; - STDMETHOD(AddNotificationType) (THIS_ REFGUID rguidNotificationType) PURE; - STDMETHOD(RemoveNotificationType)(THIS_ REFGUID rguidNotificationType) PURE; - STDMETHOD(AddPort) (THIS_ IDirectMusicPort* pPort) PURE; - STDMETHOD(RemovePort) (THIS_ IDirectMusicPort* pPort ) PURE; - STDMETHOD(AssignPChannelBlock) (THIS_ DWORD dwBlockNum, - IDirectMusicPort* pPort, - DWORD dwGroup ) PURE; - STDMETHOD(AssignPChannel) (THIS_ DWORD dwPChannel, - IDirectMusicPort* pPort, - DWORD dwGroup, - DWORD dwMChannel ) PURE; - STDMETHOD(PChannelInfo) (THIS_ DWORD dwPChannel, - IDirectMusicPort** ppPort, - DWORD* pdwGroup, - DWORD* pdwMChannel ) PURE; - STDMETHOD(DownloadInstrument) (THIS_ IDirectMusicInstrument* pInst, - DWORD dwPChannel, - IDirectMusicDownloadedInstrument** ppDownInst, - DMUS_NOTERANGE* pNoteRanges, - DWORD dwNumNoteRanges, - IDirectMusicPort** ppPort, - DWORD* pdwGroup, - DWORD* pdwMChannel ) PURE; - STDMETHOD(Invalidate) (THIS_ MUSIC_TIME mtTime, - DWORD dwFlags) PURE; - STDMETHOD(GetParam) (THIS_ REFGUID rguidType, - DWORD dwGroupBits, - DWORD dwIndex, - MUSIC_TIME mtTime, - MUSIC_TIME* pmtNext, - void* pParam) PURE; - STDMETHOD(SetParam) (THIS_ REFGUID rguidType, - DWORD dwGroupBits, - DWORD dwIndex, - MUSIC_TIME mtTime, - void* pParam) PURE; - STDMETHOD(GetGlobalParam) (THIS_ REFGUID rguidType, - void* pParam, - DWORD dwSize) PURE; - STDMETHOD(SetGlobalParam) (THIS_ REFGUID rguidType, - void* pParam, - DWORD dwSize) PURE; - STDMETHOD(GetLatencyTime) (THIS_ REFERENCE_TIME* prtTime) PURE; - STDMETHOD(GetQueueTime) (THIS_ REFERENCE_TIME* prtTime) PURE; - STDMETHOD(AdjustTime) (THIS_ REFERENCE_TIME rtAmount) PURE; - STDMETHOD(CloseDown) (THIS) PURE; - STDMETHOD(GetResolvedTime) (THIS_ REFERENCE_TIME rtTime, - REFERENCE_TIME* prtResolved, - DWORD dwTimeResolveFlags) PURE; - STDMETHOD(MIDIToMusic) (THIS_ BYTE bMIDIValue, - DMUS_CHORD_KEY* pChord, - BYTE bPlayMode, - BYTE bChordLevel, - WORD *pwMusicValue) PURE; - STDMETHOD(MusicToMIDI) (THIS_ WORD wMusicValue, - DMUS_CHORD_KEY* pChord, - BYTE bPlayMode, - BYTE bChordLevel, - BYTE *pbMIDIValue) PURE; - STDMETHOD(TimeToRhythm) (THIS_ MUSIC_TIME mtTime, - DMUS_TIMESIGNATURE *pTimeSig, - WORD *pwMeasure, - BYTE *pbBeat, - BYTE *pbGrid, - short *pnOffset) PURE; - STDMETHOD(RhythmToTime) (THIS_ WORD wMeasure, - BYTE bBeat, - BYTE bGrid, - short nOffset, - DMUS_TIMESIGNATURE *pTimeSig, - MUSIC_TIME *pmtTime) PURE; -}; - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicPerformance8 */ -#undef INTERFACE -#define INTERFACE IDirectMusicPerformance8 -DECLARE_INTERFACE_(IDirectMusicPerformance8, IDirectMusicPerformance) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicPerformance */ - STDMETHOD(Init) (THIS_ IDirectMusic** ppDirectMusic, - LPDIRECTSOUND pDirectSound, - HWND hWnd) PURE; - STDMETHOD(PlaySegment) (THIS_ IDirectMusicSegment* pSegment, - DWORD dwFlags, - __int64 i64StartTime, - IDirectMusicSegmentState** ppSegmentState) PURE; - STDMETHOD(Stop) (THIS_ IDirectMusicSegment* pSegment, - IDirectMusicSegmentState* pSegmentState, - MUSIC_TIME mtTime, - DWORD dwFlags) PURE; - STDMETHOD(GetSegmentState) (THIS_ IDirectMusicSegmentState** ppSegmentState, - MUSIC_TIME mtTime) PURE; - STDMETHOD(SetPrepareTime) (THIS_ DWORD dwMilliSeconds) PURE; - STDMETHOD(GetPrepareTime) (THIS_ DWORD* pdwMilliSeconds) PURE; - STDMETHOD(SetBumperLength) (THIS_ DWORD dwMilliSeconds) PURE; - STDMETHOD(GetBumperLength) (THIS_ DWORD* pdwMilliSeconds) PURE; - STDMETHOD(SendPMsg) (THIS_ DMUS_PMSG* pPMSG) PURE; - STDMETHOD(MusicToReferenceTime) (THIS_ MUSIC_TIME mtTime, - REFERENCE_TIME* prtTime) PURE; - STDMETHOD(ReferenceToMusicTime) (THIS_ REFERENCE_TIME rtTime, - MUSIC_TIME* pmtTime) PURE; - STDMETHOD(IsPlaying) (THIS_ IDirectMusicSegment* pSegment, - IDirectMusicSegmentState* pSegState) PURE; - STDMETHOD(GetTime) (THIS_ REFERENCE_TIME* prtNow, - MUSIC_TIME* pmtNow) PURE; - STDMETHOD(AllocPMsg) (THIS_ ULONG cb, - DMUS_PMSG** ppPMSG) PURE; - STDMETHOD(FreePMsg) (THIS_ DMUS_PMSG* pPMSG) PURE; - STDMETHOD(GetGraph) (THIS_ IDirectMusicGraph** ppGraph) PURE; - STDMETHOD(SetGraph) (THIS_ IDirectMusicGraph* pGraph) PURE; - STDMETHOD(SetNotificationHandle)(THIS_ HANDLE hNotification, - REFERENCE_TIME rtMinimum) PURE; - STDMETHOD(GetNotificationPMsg) (THIS_ DMUS_NOTIFICATION_PMSG** ppNotificationPMsg) PURE; - STDMETHOD(AddNotificationType) (THIS_ REFGUID rguidNotificationType) PURE; - STDMETHOD(RemoveNotificationType)(THIS_ REFGUID rguidNotificationType) PURE; - STDMETHOD(AddPort) (THIS_ IDirectMusicPort* pPort) PURE; - STDMETHOD(RemovePort) (THIS_ IDirectMusicPort* pPort ) PURE; - STDMETHOD(AssignPChannelBlock) (THIS_ DWORD dwBlockNum, - IDirectMusicPort* pPort, - DWORD dwGroup ) PURE; - STDMETHOD(AssignPChannel) (THIS_ DWORD dwPChannel, - IDirectMusicPort* pPort, - DWORD dwGroup, - DWORD dwMChannel ) PURE; - STDMETHOD(PChannelInfo) (THIS_ DWORD dwPChannel, - IDirectMusicPort** ppPort, - DWORD* pdwGroup, - DWORD* pdwMChannel ) PURE; - STDMETHOD(DownloadInstrument) (THIS_ IDirectMusicInstrument* pInst, - DWORD dwPChannel, - IDirectMusicDownloadedInstrument** ppDownInst, - DMUS_NOTERANGE* pNoteRanges, - DWORD dwNumNoteRanges, - IDirectMusicPort** ppPort, - DWORD* pdwGroup, - DWORD* pdwMChannel ) PURE; - STDMETHOD(Invalidate) (THIS_ MUSIC_TIME mtTime, - DWORD dwFlags) PURE; - STDMETHOD(GetParam) (THIS_ REFGUID rguidType, - DWORD dwGroupBits, - DWORD dwIndex, - MUSIC_TIME mtTime, - MUSIC_TIME* pmtNext, - void* pParam) PURE; - STDMETHOD(SetParam) (THIS_ REFGUID rguidType, - DWORD dwGroupBits, - DWORD dwIndex, - MUSIC_TIME mtTime, - void* pParam) PURE; - STDMETHOD(GetGlobalParam) (THIS_ REFGUID rguidType, - void* pParam, - DWORD dwSize) PURE; - STDMETHOD(SetGlobalParam) (THIS_ REFGUID rguidType, - void* pParam, - DWORD dwSize) PURE; - STDMETHOD(GetLatencyTime) (THIS_ REFERENCE_TIME* prtTime) PURE; - STDMETHOD(GetQueueTime) (THIS_ REFERENCE_TIME* prtTime) PURE; - STDMETHOD(AdjustTime) (THIS_ REFERENCE_TIME rtAmount) PURE; - STDMETHOD(CloseDown) (THIS) PURE; - STDMETHOD(GetResolvedTime) (THIS_ REFERENCE_TIME rtTime, - REFERENCE_TIME* prtResolved, - DWORD dwTimeResolveFlags) PURE; - STDMETHOD(MIDIToMusic) (THIS_ BYTE bMIDIValue, - DMUS_CHORD_KEY* pChord, - BYTE bPlayMode, - BYTE bChordLevel, - WORD *pwMusicValue) PURE; - STDMETHOD(MusicToMIDI) (THIS_ WORD wMusicValue, - DMUS_CHORD_KEY* pChord, - BYTE bPlayMode, - BYTE bChordLevel, - BYTE *pbMIDIValue) PURE; - STDMETHOD(TimeToRhythm) (THIS_ MUSIC_TIME mtTime, - DMUS_TIMESIGNATURE *pTimeSig, - WORD *pwMeasure, - BYTE *pbBeat, - BYTE *pbGrid, - short *pnOffset) PURE; - STDMETHOD(RhythmToTime) (THIS_ WORD wMeasure, - BYTE bBeat, - BYTE bGrid, - short nOffset, - DMUS_TIMESIGNATURE *pTimeSig, - MUSIC_TIME *pmtTime) PURE; - /* IDirectMusicPerformance8 */ - STDMETHOD(InitAudio) (THIS_ IDirectMusic** ppDirectMusic, /* Optional DMusic pointer. */ - IDirectSound** ppDirectSound, /* Optional DSound pointer. */ - HWND hWnd, /* HWND for DSound. */ - DWORD dwDefaultPathType, /* Requested default audio path type, also optional. */ - DWORD dwPChannelCount, /* Number of PChannels, if default audio path to be created. */ - DWORD dwFlags, /* DMUS_AUDIOF flags, if no pParams structure. */ - DMUS_AUDIOPARAMS *pParams) PURE; /* Optional initialization structure, defining required voices, buffers, etc. */ - STDMETHOD(PlaySegmentEx) (THIS_ IUnknown* pSource, /* Segment to play. */ - WCHAR *pwzSegmentName, /* Not supported in DX8. */ - IUnknown* pTransition, /* Optional template segment to compose transition with. */ - DWORD dwFlags, /* DMUS_SEGF_ flags. */ - __int64 i64StartTime, /* Time to start playback. */ - IDirectMusicSegmentState** ppSegmentState, /* Returned Segment State. */ - IUnknown *pFrom, /* Optional segmentstate or audiopath to replace. */ - IUnknown *pAudioPath) PURE; /* Optional audioPath to play on. */ - STDMETHOD(StopEx) (THIS_ IUnknown *pObjectToStop, /* Segstate, AudioPath, or Segment. */ - __int64 i64StopTime, - DWORD dwFlags) PURE; - STDMETHOD(ClonePMsg) (THIS_ DMUS_PMSG* pSourcePMSG, - DMUS_PMSG** ppCopyPMSG) PURE; - STDMETHOD(CreateAudioPath) (THIS_ IUnknown *pSourceConfig, /* Source configuration, from AudioPathConfig file. */ - BOOL fActivate, /* TRUE to activate on creation. */ - IDirectMusicAudioPath **ppNewPath) PURE; /* Returns created audiopath. */ - STDMETHOD(CreateStandardAudioPath)(THIS_ DWORD dwType, /* Type of path to create. */ - DWORD dwPChannelCount, /* How many PChannels to allocate for it. */ - BOOL fActivate, /* TRUE to activate on creation. */ - IDirectMusicAudioPath **ppNewPath) PURE; /* Returns created audiopath. */ - STDMETHOD(SetDefaultAudioPath) (THIS_ IDirectMusicAudioPath *pAudioPath) PURE; - STDMETHOD(GetDefaultAudioPath) (THIS_ IDirectMusicAudioPath **ppAudioPath) PURE; - STDMETHOD(GetParamEx) (THIS_ REFGUID rguidType, /* GetParam command ID. */ - DWORD dwTrackID, /* Virtual track ID of caller. */ - DWORD dwGroupBits, /* Group bits of caller. */ - DWORD dwIndex, /* Index to Nth parameter. */ - MUSIC_TIME mtTime, /* Time of requested parameter. */ - MUSIC_TIME* pmtNext, /* Returned delta to next parameter. */ - void* pParam) PURE; /* Data structure to fill with parameter. */ -}; - - - -/*//////////////////////////////////////////////////////////////////// -// IDirectMusicGraph */ -#undef INTERFACE -#define INTERFACE IDirectMusicGraph -DECLARE_INTERFACE_(IDirectMusicGraph, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicGraph */ - STDMETHOD(StampPMsg) (THIS_ DMUS_PMSG* pPMSG) PURE; - STDMETHOD(InsertTool) (THIS_ IDirectMusicTool* pTool, - DWORD* pdwPChannels, - DWORD cPChannels, - LONG lIndex) PURE; - STDMETHOD(GetTool) (THIS_ DWORD dwIndex, - IDirectMusicTool** ppTool) PURE; - STDMETHOD(RemoveTool) (THIS_ IDirectMusicTool* pTool) PURE; -}; - -typedef IDirectMusicGraph IDirectMusicGraph8; - - -/*///////////////////////////////////////////////////////////////////// -// IDirectMusicStyle */ -#undef INTERFACE -#define INTERFACE IDirectMusicStyle -DECLARE_INTERFACE_(IDirectMusicStyle, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicStyle */ - STDMETHOD(GetBand) (THIS_ WCHAR* pwszName, - IDirectMusicBand** ppBand) PURE; - STDMETHOD(EnumBand) (THIS_ DWORD dwIndex, - WCHAR *pwszName) PURE; - STDMETHOD(GetDefaultBand) (THIS_ IDirectMusicBand** ppBand) PURE; - STDMETHOD(EnumMotif) (THIS_ DWORD dwIndex, - WCHAR* pwszName) PURE; - STDMETHOD(GetMotif) (THIS_ WCHAR* pwszName, - IDirectMusicSegment** ppSegment) PURE; - STDMETHOD(GetDefaultChordMap) (THIS_ IDirectMusicChordMap** ppChordMap) PURE; - STDMETHOD(EnumChordMap) (THIS_ DWORD dwIndex, - WCHAR *pwszName) PURE; - STDMETHOD(GetChordMap) (THIS_ WCHAR* pwszName, - IDirectMusicChordMap** ppChordMap) PURE; - STDMETHOD(GetTimeSignature) (THIS_ DMUS_TIMESIGNATURE* pTimeSig) PURE; - STDMETHOD(GetEmbellishmentLength) (THIS_ DWORD dwType, - DWORD dwLevel, - DWORD* pdwMin, - DWORD* pdwMax) PURE; - STDMETHOD(GetTempo) (THIS_ double* pTempo) PURE; -}; - -/*///////////////////////////////////////////////////////////////////// -// IDirectMusicStyle8 */ -#undef INTERFACE -#define INTERFACE IDirectMusicStyle8 -DECLARE_INTERFACE_(IDirectMusicStyle8, IDirectMusicStyle) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicStyle */ - STDMETHOD(GetBand) (THIS_ WCHAR* pwszName, - IDirectMusicBand** ppBand) PURE; - STDMETHOD(EnumBand) (THIS_ DWORD dwIndex, - WCHAR *pwszName) PURE; - STDMETHOD(GetDefaultBand) (THIS_ IDirectMusicBand** ppBand) PURE; - STDMETHOD(EnumMotif) (THIS_ DWORD dwIndex, - WCHAR* pwszName) PURE; - STDMETHOD(GetMotif) (THIS_ WCHAR* pwszName, - IDirectMusicSegment** ppSegment) PURE; - STDMETHOD(GetDefaultChordMap) (THIS_ IDirectMusicChordMap** ppChordMap) PURE; - STDMETHOD(EnumChordMap) (THIS_ DWORD dwIndex, - WCHAR *pwszName) PURE; - STDMETHOD(GetChordMap) (THIS_ WCHAR* pwszName, - IDirectMusicChordMap** ppChordMap) PURE; - STDMETHOD(GetTimeSignature) (THIS_ DMUS_TIMESIGNATURE* pTimeSig) PURE; - STDMETHOD(GetEmbellishmentLength) (THIS_ DWORD dwType, - DWORD dwLevel, - DWORD* pdwMin, - DWORD* pdwMax) PURE; - STDMETHOD(GetTempo) (THIS_ double* pTempo) PURE; - - /* IDirectMusicStyle8 */ - STDMETHOD(EnumPattern) (THIS_ DWORD dwIndex, - DWORD dwPatternType, - WCHAR* pwszName) PURE; -}; - -/*///////////////////////////////////////////////////////////////////// -// IDirectMusicChordMap */ -#undef INTERFACE -#define INTERFACE IDirectMusicChordMap -DECLARE_INTERFACE_(IDirectMusicChordMap, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicChordMap */ - STDMETHOD(GetScale) (THIS_ DWORD* pdwScale) PURE; -}; - -typedef IDirectMusicChordMap IDirectMusicChordMap8; - -/*///////////////////////////////////////////////////////////////////// -// IDirectMusicComposer */ -#undef INTERFACE -#define INTERFACE IDirectMusicComposer -DECLARE_INTERFACE_(IDirectMusicComposer, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicComposer */ - STDMETHOD(ComposeSegmentFromTemplate) (THIS_ IDirectMusicStyle* pStyle, - IDirectMusicSegment* pTemplate, - WORD wActivity, - IDirectMusicChordMap* pChordMap, - IDirectMusicSegment** ppSegment) PURE; - STDMETHOD(ComposeSegmentFromShape) (THIS_ IDirectMusicStyle* pStyle, - WORD wNumMeasures, - WORD wShape, - WORD wActivity, - BOOL fIntro, - BOOL fEnd, - IDirectMusicChordMap* pChordMap, - IDirectMusicSegment** ppSegment ) PURE; - STDMETHOD(ComposeTransition) (THIS_ IDirectMusicSegment* pFromSeg, - IDirectMusicSegment* pToSeg, - MUSIC_TIME mtTime, - WORD wCommand, - DWORD dwFlags, - IDirectMusicChordMap* pChordMap, - IDirectMusicSegment** ppTransSeg) PURE; - STDMETHOD(AutoTransition) (THIS_ IDirectMusicPerformance* pPerformance, - IDirectMusicSegment* pToSeg, - WORD wCommand, - DWORD dwFlags, - IDirectMusicChordMap* pChordMap, - IDirectMusicSegment** ppTransSeg, - IDirectMusicSegmentState** ppToSegState, - IDirectMusicSegmentState** ppTransSegState) PURE; - STDMETHOD(ComposeTemplateFromShape) (THIS_ WORD wNumMeasures, - WORD wShape, - BOOL fIntro, - BOOL fEnd, - WORD wEndLength, - IDirectMusicSegment** ppTemplate) PURE; - STDMETHOD(ChangeChordMap) (THIS_ IDirectMusicSegment* pSegment, - BOOL fTrackScale, - IDirectMusicChordMap* pChordMap) PURE; -}; - -typedef IDirectMusicComposer IDirectMusicComposer8; - -/*///////////////////////////////////////////////////////////////////// -// IDirectMusicPatternTrack */ - -#undef INTERFACE -#define INTERFACE IDirectMusicPatternTrack -DECLARE_INTERFACE_(IDirectMusicPatternTrack, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicPatternTrack */ - STDMETHOD(CreateSegment) (THIS_ IDirectMusicStyle* pStyle, - IDirectMusicSegment** ppSegment) PURE; - STDMETHOD(SetVariation) (THIS_ IDirectMusicSegmentState* pSegState, - DWORD dwVariationFlags, - DWORD dwPart) PURE; - STDMETHOD(SetPatternByName) (THIS_ IDirectMusicSegmentState* pSegState, - WCHAR* wszName, - IDirectMusicStyle* pStyle, - DWORD dwPatternType, - DWORD* pdwLength) PURE; -}; - -typedef IDirectMusicPatternTrack IDirectMusicPatternTrack8; - -/*///////////////////////////////////////////////////////////////////// -// IDirectMusicScript */ - -#undef INTERFACE -#define INTERFACE IDirectMusicScript -DECLARE_INTERFACE_(IDirectMusicScript, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicScript */ - STDMETHOD(Init) (THIS_ IDirectMusicPerformance *pPerformance, - DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; - STDMETHOD(CallRoutine) (THIS_ WCHAR *pwszRoutineName, - DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; - STDMETHOD(SetVariableVariant) (THIS_ WCHAR *pwszVariableName, - VARIANT varValue, - BOOL fSetRef, - DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; - STDMETHOD(GetVariableVariant) (THIS_ WCHAR *pwszVariableName, - VARIANT *pvarValue, - DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; - STDMETHOD(SetVariableNumber) (THIS_ WCHAR *pwszVariableName, - LONG lValue, - DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; - STDMETHOD(GetVariableNumber) (THIS_ WCHAR *pwszVariableName, - LONG *plValue, - DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; - STDMETHOD(SetVariableObject) (THIS_ WCHAR *pwszVariableName, - IUnknown *punkValue, - DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; - STDMETHOD(GetVariableObject) (THIS_ WCHAR *pwszVariableName, - REFIID riid, - LPVOID FAR *ppv, - DMUS_SCRIPT_ERRORINFO *pErrorInfo) PURE; - STDMETHOD(EnumRoutine) (THIS_ DWORD dwIndex, - WCHAR *pwszName) PURE; - STDMETHOD(EnumVariable) (THIS_ DWORD dwIndex, - WCHAR *pwszName) PURE; -}; - -typedef IDirectMusicScript IDirectMusicScript8; - -/*///////////////////////////////////////////////////////////////////// -// IDirectMusicContainer */ - -#undef INTERFACE -#define INTERFACE IDirectMusicContainer -DECLARE_INTERFACE_(IDirectMusicContainer, IUnknown) -{ - /* IUnknown */ - STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectMusicContainer */ - STDMETHOD(EnumObject) (THIS_ REFGUID rguidClass, - DWORD dwIndex, - LPDMUS_OBJECTDESC pDesc, - WCHAR *pwszAlias) PURE; -}; - -typedef IDirectMusicContainer IDirectMusicContainer8; - -/* CLSID's */ -DEFINE_GUID(CLSID_DirectMusicPerformance,0xd2ac2881, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicSegment,0xd2ac2882, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicSegmentState,0xd2ac2883, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicGraph,0xd2ac2884, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicStyle,0xd2ac288a, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicChordMap,0xd2ac288f, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicComposer,0xd2ac2890, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicLoader,0xd2ac2892, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicBand,0x79ba9e00, 0xb6ee, 0x11d1, 0x86, 0xbe, 0x0, 0xc0, 0x4f, 0xbf, 0x8f, 0xef); - -/* New CLSID's for DX8 */ -DEFINE_GUID(CLSID_DirectMusicPatternTrack,0xd2ac2897, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(CLSID_DirectMusicScript,0x810b5013, 0xe88d, 0x11d2, 0x8b, 0xc1, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xb6); /* {810B5013-E88D-11d2-8BC1-00600893B1B6} */ -DEFINE_GUID(CLSID_DirectMusicContainer,0x9301e380, 0x1f22, 0x11d3, 0x82, 0x26, 0xd2, 0xfa, 0x76, 0x25, 0x5d, 0x47); -DEFINE_GUID(CLSID_DirectSoundWave,0x8a667154, 0xf9cb, 0x11d2, 0xad, 0x8a, 0x0, 0x60, 0xb0, 0x57, 0x5a, 0xbc); -DEFINE_GUID(CLSID_DirectMusicAudioPathConfig,0xee0b9ca0, 0xa81e, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74); - -/* Special GUID for all object types. This is used by the loader. */ -DEFINE_GUID(GUID_DirectMusicAllTypes,0xd2ac2893, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Notification guids */ -DEFINE_GUID(GUID_NOTIFICATION_SEGMENT,0xd2ac2899, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(GUID_NOTIFICATION_PERFORMANCE,0x81f75bc5, 0x4e5d, 0x11d2, 0xbc, 0xc7, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb); -DEFINE_GUID(GUID_NOTIFICATION_MEASUREANDBEAT,0xd2ac289a, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(GUID_NOTIFICATION_CHORD,0xd2ac289b, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(GUID_NOTIFICATION_COMMAND,0xd2ac289c, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(GUID_NOTIFICATION_RECOMPOSE, 0xd348372b, 0x945b, 0x45ae, 0xa5, 0x22, 0x45, 0xf, 0x12, 0x5b, 0x84, 0xa5); - -/* Track param type guids */ -/* Use to get/set a DMUS_COMMAND_PARAM param in the Command track */ -DEFINE_GUID(GUID_CommandParam,0xd2ac289d, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Use to get a DMUS_COMMAND_PARAM_2 param in the Command track */ -DEFINE_GUID(GUID_CommandParam2, 0x28f97ef7, 0x9538, 0x11d2, 0x97, 0xa9, 0x0, 0xc0, 0x4f, 0xa3, 0x6e, 0x58); - -/* Use to get/set a DMUS_COMMAND_PARAM_2 param to be used as the command following all commands in -the Command track (this information can't be saved) */ -DEFINE_GUID(GUID_CommandParamNext, 0x472afe7a, 0x281b, 0x11d3, 0x81, 0x7d, 0x0, 0xc0, 0x4f, 0xa3, 0x6e, 0x58); - -/* Use to get/set a DMUS_CHORD_PARAM param in the Chord track */ -DEFINE_GUID(GUID_ChordParam,0xd2ac289e, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Use to get a DMUS_RHYTHM_PARAM param in the Chord track */ -DEFINE_GUID(GUID_RhythmParam,0xd2ac289f, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Use to get/set an IDirectMusicStyle param in the Style track */ -DEFINE_GUID(GUID_IDirectMusicStyle,0xd2ac28a1, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Use to get a DMUS_TIMESIGNATURE param in the Style and TimeSig tracks */ -DEFINE_GUID(GUID_TimeSignature,0xd2ac28a4, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Use to get/set a DMUS_TEMPO_PARAM param in the Tempo track */ -DEFINE_GUID(GUID_TempoParam,0xd2ac28a5, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Use to get the next valid point in a segment at which it may start */ -DEFINE_GUID(GUID_Valid_Start_Time,0x7f6b1760, 0x1fdb, 0x11d3, 0x82, 0x26, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0); - -/* Use to get the next point in the currently playing primary segment at which a new segment may start */ -DEFINE_GUID(GUID_Play_Marker,0xd8761a41, 0x801a, 0x11d3, 0x9b, 0xd1, 0xda, 0xf7, 0xe1, 0xc3, 0xd8, 0x34); - -/* Use to get (GetParam) or add (SetParam) bands in the Band track */ -DEFINE_GUID(GUID_BandParam,0x2bb1938, 0xcb8b, 0x11d2, 0x8b, 0xb9, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xb6); -typedef struct _DMUS_BAND_PARAM -{ - MUSIC_TIME mtTimePhysical; /* Note: If this is a clock-time track, then this field is interpreted in the track's internal time format, which is the number of milliseconds after the beginning of playback. */ - IDirectMusicBand *pBand; -} DMUS_BAND_PARAM; - -/* Obsolete -- doesn't distinguish physical and logical time. Use GUID_BandParam instead. */ -DEFINE_GUID(GUID_IDirectMusicBand,0xd2ac28ac, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Use to get/set an IDirectMusicChordMap param in the ChordMap track */ -DEFINE_GUID(GUID_IDirectMusicChordMap,0xd2ac28ad, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Use to get/set a DMUS_MUTE_PARAM param in the Mute track */ -DEFINE_GUID(GUID_MuteParam,0xd2ac28af, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* These guids are used in IDirectMusicSegment::SetParam to tell the band track to perform various actions. - Some of these guids (where noted) also apply to wave tracks. - */ -/* Download bands/waves for the IDirectMusicSegment */ -DEFINE_GUID(GUID_Download,0xd2ac28a7, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Unload bands/waves for the IDirectMusicSegment */ -DEFINE_GUID(GUID_Unload,0xd2ac28a8, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Connect segment's bands to an IDirectMusicCollection */ -DEFINE_GUID(GUID_ConnectToDLSCollection, 0x1db1ae6b, 0xe92e, 0x11d1, 0xa8, 0xc5, 0x0, 0xc0, 0x4f, 0xa3, 0x72, 0x6e); - -/* Enable/disable autodownloading of bands/waves */ -DEFINE_GUID(GUID_Enable_Auto_Download,0xd2ac28a9, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(GUID_Disable_Auto_Download,0xd2ac28aa, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Clear all bands */ -DEFINE_GUID(GUID_Clear_All_Bands,0xd2ac28ab, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Set segment to manage all program changes, bank selects, etc. for simple playback of a standard MIDI file */ -DEFINE_GUID(GUID_StandardMIDIFile, 0x6621075, 0xe92e, 0x11d1, 0xa8, 0xc5, 0x0, 0xc0, 0x4f, 0xa3, 0x72, 0x6e); -/* For compatibility with beta releases... */ -#define GUID_IgnoreBankSelectForGM GUID_StandardMIDIFile - -/* Disable/enable param guids. Use these in SetParam calls to disable or enable sending - * specific PMsg types. - */ -DEFINE_GUID(GUID_DisableTimeSig, 0x45fc707b, 0x1db4, 0x11d2, 0xbc, 0xac, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb); -DEFINE_GUID(GUID_EnableTimeSig, 0x45fc707c, 0x1db4, 0x11d2, 0xbc, 0xac, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb); -DEFINE_GUID(GUID_DisableTempo, 0x45fc707d, 0x1db4, 0x11d2, 0xbc, 0xac, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb); -DEFINE_GUID(GUID_EnableTempo, 0x45fc707e, 0x1db4, 0x11d2, 0xbc, 0xac, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb); - -/* Used in SetParam calls for pattern-based tracks. A nonzero value seeds the random number -generator for variation selection; a value of zero reverts to the default behavior of -getting the seed from the system clock. -*/ -DEFINE_GUID(GUID_SeedVariations, 0x65b76fa5, 0xff37, 0x11d2, 0x81, 0x4e, 0x0, 0xc0, 0x4f, 0xa3, 0x6e, 0x58); - -/* Used to get the variations currently in effect across PChannels */ -DEFINE_GUID(GUID_Variations, 0x11f72cce, 0x26e6, 0x4ecd, 0xaf, 0x2e, 0xd6, 0x68, 0xe6, 0x67, 0x7, 0xd8); -typedef struct _DMUS_VARIATIONS_PARAM -{ - DWORD dwPChannelsUsed; /* number of PChannels in use */ - DWORD* padwPChannels; /* array of PChannels in use */ - DWORD* padwVariations; /* array of variations in effect for each PChannel */ -} DMUS_VARIATIONS_PARAM; - -/* Download bands/waves for the IDirectMusicSegment, passed an IDirectMusicAudioPath instead of an IDirectMusicPerformance */ -DEFINE_GUID(GUID_DownloadToAudioPath,0x9f2c0341, 0xc5c4, 0x11d3, 0x9b, 0xd1, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0); - -/* Unload bands/waves for the IDirectMusicSegment, passed an IDirectMusicAudioPath instead of an IDirectMusicPerformance */ -DEFINE_GUID(GUID_UnloadFromAudioPath,0x9f2c0342, 0xc5c4, 0x11d3, 0x9b, 0xd1, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0); - - -/* Global data guids */ -DEFINE_GUID(GUID_PerfMasterTempo,0xd2ac28b0, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(GUID_PerfMasterVolume,0xd2ac28b1, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(GUID_PerfMasterGrooveLevel,0xd2ac28b2, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(GUID_PerfAutoDownload, 0xfb09565b, 0x3631, 0x11d2, 0xbc, 0xb8, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb); - -/* GUID for default GM/GS dls collection. */ -DEFINE_GUID(GUID_DefaultGMCollection, 0xf17e8673, 0xc3b4, 0x11d1, 0x87, 0xb, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* GUID to define default synth, placed in AudioPath configuration file. */ -DEFINE_GUID(GUID_Synth_Default,0x26bb9432, 0x45fe, 0x48d3, 0xa3, 0x75, 0x24, 0x72, 0xc5, 0xe3, 0xe7, 0x86); - -/* GUIDs to define default buffer configurations to place in AudioPath configuration file. */ -DEFINE_GUID(GUID_Buffer_Reverb,0x186cc541, 0xdb29, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74); -DEFINE_GUID(GUID_Buffer_EnvReverb,0x186cc542, 0xdb29, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74); -DEFINE_GUID(GUID_Buffer_Stereo,0x186cc545, 0xdb29, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74); -DEFINE_GUID(GUID_Buffer_3D_Dry,0x186cc546, 0xdb29, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74); -DEFINE_GUID(GUID_Buffer_Mono,0x186cc547, 0xdb29, 0x11d3, 0x9b, 0xd1, 0x0, 0x80, 0xc7, 0x15, 0xa, 0x74); - -/* IID's */ -DEFINE_GUID(IID_IDirectMusicLoader, 0x2ffaaca2, 0x5dca, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); -DEFINE_GUID(IID_IDirectMusicGetLoader,0x68a04844, 0xd13d, 0x11d1, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); -DEFINE_GUID(IID_IDirectMusicObject,0xd2ac28b5, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(IID_IDirectMusicSegment, 0xf96029a2, 0x4282, 0x11d2, 0x87, 0x17, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(IID_IDirectMusicSegmentState, 0xa3afdcc7, 0xd3ee, 0x11d1, 0xbc, 0x8d, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb); -DEFINE_GUID(IID_IDirectMusicPerformance,0x7d43d03, 0x6523, 0x11d2, 0x87, 0x1d, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(IID_IDirectMusicGraph,0x2befc277, 0x5497, 0x11d2, 0xbc, 0xcb, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xeb); -DEFINE_GUID(IID_IDirectMusicStyle,0xd2ac28bd, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(IID_IDirectMusicChordMap,0xd2ac28be, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(IID_IDirectMusicComposer,0xd2ac28bf, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); -DEFINE_GUID(IID_IDirectMusicBand,0xd2ac28c0, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Alternate interface IDs, available in DX7 release and after. */ -DEFINE_GUID(IID_IDirectMusicPerformance2,0x6fc2cae0, 0xbc78, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); -DEFINE_GUID(IID_IDirectMusicSegment2, 0xd38894d1, 0xc052, 0x11d2, 0x87, 0x2f, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); - -/* Interface IDs for DX8 */ -/* changed interfaces (GUID only) */ -DEFINE_GUID(IID_IDirectMusicLoader8, 0x19e7c08c, 0xa44, 0x4e6a, 0xa1, 0x16, 0x59, 0x5a, 0x7c, 0xd5, 0xde, 0x8c); -DEFINE_GUID(IID_IDirectMusicPerformance8, 0x679c4137, 0xc62e, 0x4147, 0xb2, 0xb4, 0x9d, 0x56, 0x9a, 0xcb, 0x25, 0x4c); -DEFINE_GUID(IID_IDirectMusicSegment8,0xc6784488, 0x41a3, 0x418f, 0xaa, 0x15, 0xb3, 0x50, 0x93, 0xba, 0x42, 0xd4); -DEFINE_GUID(IID_IDirectMusicSegmentState8, 0xa50e4730, 0xae4, 0x48a7, 0x98, 0x39, 0xbc, 0x4, 0xbf, 0xe0, 0x77, 0x72); -DEFINE_GUID(IID_IDirectMusicStyle8, 0xfd24ad8a, 0xa260, 0x453d, 0xbf, 0x50, 0x6f, 0x93, 0x84, 0xf7, 0x9, 0x85); -/* new interfaces (GUID + alias) */ -DEFINE_GUID(IID_IDirectMusicPatternTrack, 0x51c22e10, 0xb49f, 0x46fc, 0xbe, 0xc2, 0xe6, 0x28, 0x8f, 0xb9, 0xed, 0xe6); -#define IID_IDirectMusicPatternTrack8 IID_IDirectMusicPatternTrack -DEFINE_GUID(IID_IDirectMusicScript, 0x2252373a, 0x5814, 0x489b, 0x82, 0x9, 0x31, 0xfe, 0xde, 0xba, 0xf1, 0x37); /* {2252373A-5814-489b-8209-31FEDEBAF137} */ -#define IID_IDirectMusicScript8 IID_IDirectMusicScript -DEFINE_GUID(IID_IDirectMusicContainer, 0x9301e386, 0x1f22, 0x11d3, 0x82, 0x26, 0xd2, 0xfa, 0x76, 0x25, 0x5d, 0x47); -#define IID_IDirectMusicContainer8 IID_IDirectMusicContainer -DEFINE_GUID(IID_IDirectMusicAudioPath,0xc87631f5, 0x23be, 0x4986, 0x88, 0x36, 0x5, 0x83, 0x2f, 0xcc, 0x48, 0xf9); -#define IID_IDirectMusicAudioPath8 IID_IDirectMusicAudioPath -/* unchanged interfaces (alias only) */ -#define IID_IDirectMusicGetLoader8 IID_IDirectMusicGetLoader -#define IID_IDirectMusicChordMap8 IID_IDirectMusicChordMap -#define IID_IDirectMusicGraph8 IID_IDirectMusicGraph -#define IID_IDirectMusicBand8 IID_IDirectMusicBand -#define IID_IDirectMusicObject8 IID_IDirectMusicObject -#define IID_IDirectMusicComposer8 IID_IDirectMusicComposer - - -#ifdef __cplusplus -}; /* extern "C" */ -#endif - -#include - -#endif /* #ifndef _DMUSICI_ */ diff --git a/sdk/dx8sdk/Include/dmusics.h b/sdk/dx8sdk/Include/dmusics.h deleted file mode 100644 index 8f1e45d8..00000000 --- a/sdk/dx8sdk/Include/dmusics.h +++ /dev/null @@ -1,193 +0,0 @@ -/************************************************************************ -* * -* dmusics.h -- Definitions for created a DirectMusic software synth * -* * -* Copyright (c) Microsoft Corporation. All rights reserved. * -* * -************************************************************************/ - -#ifndef _DMUSICS_ -#define _DMUSICS_ - -#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 - -#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 - -#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; -}; - -#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; -}; - -#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_IDirectMusicSynth8,0x53cab625, 0x2711, 0x4c9f, 0x9d, 0xe7, 0x1b, 0x7f, 0x92, 0x5f, 0x6f, 0xc8); -DEFINE_GUID(IID_IDirectMusicSynthSink,0x9823663, 0x5c85, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); - -/* 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 diff --git a/sdk/dx8sdk/Include/dpaddr.h b/sdk/dx8sdk/Include/dpaddr.h deleted file mode 100644 index 6e3fccf6..00000000 --- a/sdk/dx8sdk/Include/dpaddr.h +++ /dev/null @@ -1,392 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) 2000-2002 Microsoft Corporation. All Rights Reserved. - * - * File: dpaddr.h - * Content: DirectPlayAddress include file - ***************************************************************************/ - -#ifndef __DIRECTPLAYADDRESS__ -#define __DIRECTPLAYADDRESS__ - -#include // for DECLARE_INTERFACE_ and HRESULT - -#ifdef __cplusplus -extern "C" { -#endif - -#include "dplay8.h" - - - -/**************************************************************************** - * - * DirectPlay8Address CLSIDs - * - ****************************************************************************/ - -// {934A9523-A3CA-4bc5-ADA0-D6D95D979421} -DEFINE_GUID(CLSID_DirectPlay8Address, -0x934a9523, 0xa3ca, 0x4bc5, 0xad, 0xa0, 0xd6, 0xd9, 0x5d, 0x97, 0x94, 0x21); - - -/**************************************************************************** - * - * DirectPlay8Address Interface IIDs - * - ****************************************************************************/ - - -typedef REFIID DPNAREFIID; - -// {83783300-4063-4c8a-9DB3-82830A7FEB31} -DEFINE_GUID(IID_IDirectPlay8Address, -0x83783300, 0x4063, 0x4c8a, 0x9d, 0xb3, 0x82, 0x83, 0xa, 0x7f, 0xeb, 0x31); - -// {E5A0E990-2BAD-430b-87DA-A142CF75DE58} -DEFINE_GUID(IID_IDirectPlay8AddressIP, -0xe5a0e990, 0x2bad, 0x430b, 0x87, 0xda, 0xa1, 0x42, 0xcf, 0x75, 0xde, 0x58); - - - -/**************************************************************************** - * - * DirectPlay8Address Interface Pointer definitions - * - ****************************************************************************/ - -typedef struct IDirectPlay8Address *PDIRECTPLAY8ADDRESS, *LPDIRECTPLAY8ADDRESS; -typedef struct IDirectPlay8AddressIP *PDIRECTPLAY8ADDRESSIP, *LPDIRECTPLAY8ADDRESSIP; - - -/**************************************************************************** - * - * DirectPlay8Address Forward Declarations For External Types - * - ****************************************************************************/ - -typedef struct sockaddr SOCKADDR; - -/**************************************************************************** - * - * DirectPlay8Address Constants - * - ****************************************************************************/ -// -// Asynchronous operation flags -// -#define DPNA_DATATYPE_STRING 0x00000001 -#define DPNA_DATATYPE_DWORD 0x00000002 -#define DPNA_DATATYPE_GUID 0x00000003 -#define DPNA_DATATYPE_BINARY 0x00000004 -#define DPNA_DATATYPE_STRING_ANSI 0x00000005 - -#define DPNA_DPNSVR_PORT 6073 - -#define DPNA_INDEX_INVALID 0xFFFFFFFF - -/**************************************************************************** - * - * DirectPlay8Address Address Elements - * - ****************************************************************************/ - -#define DPNA_SEPARATOR_KEYVALUE L'=' -#define DPNA_SEPARATOR_USERDATA L'#' -#define DPNA_SEPARATOR_COMPONENT L';' -#define DPNA_ESCAPECHAR L'%' - -// Header -#define DPNA_HEADER L"x-directplay:/" - -// key names for address components -#define DPNA_KEY_NAT_RESOLVER L"natresolver" -#define DPNA_KEY_NAT_RESOLVER_USER_STRING L"natresolveruserstring" -#define DPNA_KEY_APPLICATION_INSTANCE L"applicationinstance" -#define DPNA_KEY_DEVICE L"device" -#define DPNA_KEY_HOSTNAME L"hostname" -#define DPNA_KEY_PORT L"port" -#define DPNA_KEY_NAMEINFO L"nameinfo" -#define DPNA_KEY_PROCESSOR L"processor" -#define DPNA_KEY_PROGRAM L"program" -#define DPNA_KEY_PROVIDER L"provider" -#define DPNA_KEY_SCOPE L"scope" -#define DPNA_KEY_TRAVERSALMODE L"traversalmode" -#define DPNA_KEY_BAUD L"baud" -#define DPNA_KEY_FLOWCONTROL L"flowcontrol" -#define DPNA_KEY_PARITY L"parity" -#define DPNA_KEY_PHONENUMBER L"phonenumber" -#define DPNA_KEY_STOPBITS L"stopbits" - -// values for baud rate -#define DPNA_BAUD_RATE_9600 9600 -#define DPNA_BAUD_RATE_14400 14400 -#define DPNA_BAUD_RATE_19200 19200 -#define DPNA_BAUD_RATE_38400 38400 -#define DPNA_BAUD_RATE_56000 56000 -#define DPNA_BAUD_RATE_57600 57600 -#define DPNA_BAUD_RATE_115200 115200 - -// values for stop bits -#define DPNA_STOP_BITS_ONE L"1" -#define DPNA_STOP_BITS_ONE_FIVE L"1.5" -#define DPNA_STOP_BITS_TWO L"2" - -// values for parity -#define DPNA_PARITY_NONE L"NONE" -#define DPNA_PARITY_EVEN L"EVEN" -#define DPNA_PARITY_ODD L"ODD" -#define DPNA_PARITY_MARK L"MARK" -#define DPNA_PARITY_SPACE L"SPACE" - -// values for flow control -#define DPNA_FLOW_CONTROL_NONE L"NONE" -#define DPNA_FLOW_CONTROL_XONXOFF L"XONXOFF" -#define DPNA_FLOW_CONTROL_RTS L"RTS" -#define DPNA_FLOW_CONTROL_DTR L"DTR" -#define DPNA_FLOW_CONTROL_RTSDTR L"RTSDTR" -// values for traversal mode -#define DPNA_TRAVERSALMODE_NONE 0 -#define DPNA_TRAVERSALMODE_PORTREQUIRED 1 -#define DPNA_TRAVERSALMODE_PORTRECOMMENDED 2 -// Shortcut values -// -// These can be used instead of the corresponding CLSID_DP8SP_XXXX guids -// -#define DPNA_VALUE_TCPIPPROVIDER L"IP" -#define DPNA_VALUE_IPXPROVIDER L"IPX" -#define DPNA_VALUE_MODEMPROVIDER L"MODEM" -#define DPNA_VALUE_SERIALPROVIDER L"SERIAL" - -//// ANSI DEFINITIONS - -// Header -#define DPNA_HEADER_A "x-directplay:/" -#define DPNA_SEPARATOR_KEYVALUE_A '=' -#define DPNA_SEPARATOR_USERDATA_A '#' -#define DPNA_SEPARATOR_COMPONENT_A ';' -#define DPNA_ESCAPECHAR_A '%' - -// key names for address components -#define DPNA_KEY_NAT_RESOLVER_A "natresolver" -#define DPNA_KEY_NAT_RESOLVER_USER_STRING_A "natresolveruserstring" -#define DPNA_KEY_APPLICATION_INSTANCE_A "applicationinstance" -#define DPNA_KEY_DEVICE_A "device" -#define DPNA_KEY_HOSTNAME_A "hostname" -#define DPNA_KEY_PORT_A "port" -#define DPNA_KEY_NAMEINFO_A "nameinfo" -#define DPNA_KEY_PROCESSOR_A "processor" -#define DPNA_KEY_PROGRAM_A "program" -#define DPNA_KEY_PROVIDER_A "provider" -#define DPNA_KEY_SCOPE_A "scope" -#define DPNA_KEY_TRAVERSALMODE_A "traversalmode" -#define DPNA_KEY_BAUD_A "baud" -#define DPNA_KEY_FLOWCONTROL_A "flowcontrol" -#define DPNA_KEY_PARITY_A "parity" -#define DPNA_KEY_PHONENUMBER_A "phonenumber" -#define DPNA_KEY_STOPBITS_A "stopbits" - -// values for stop bits -#define DPNA_STOP_BITS_ONE_A "1" -#define DPNA_STOP_BITS_ONE_FIVE_A "1.5" -#define DPNA_STOP_BITS_TWO_A "2" - -// values for parity -#define DPNA_PARITY_NONE_A "NONE" -#define DPNA_PARITY_EVEN_A "EVEN" -#define DPNA_PARITY_ODD_A "ODD" -#define DPNA_PARITY_MARK_A "MARK" -#define DPNA_PARITY_SPACE_A "SPACE" - -// values for flow control -#define DPNA_FLOW_CONTROL_NONE_A "NONE" -#define DPNA_FLOW_CONTROL_XONXOFF_A "XONXOFF" -#define DPNA_FLOW_CONTROL_RTS_A "RTS" -#define DPNA_FLOW_CONTROL_DTR_A "DTR" -#define DPNA_FLOW_CONTROL_RTSDTR_A "RTSDTR" -// Shortcut values -// -// These can be used instead of the corresponding CLSID_DP8SP_XXXX guids -// -#define DPNA_VALUE_TCPIPPROVIDER_A "IP" -#define DPNA_VALUE_IPXPROVIDER_A "IPX" -#define DPNA_VALUE_MODEMPROVIDER_A "MODEM" -#define DPNA_VALUE_SERIALPROVIDER_A "SERIAL" - -/**************************************************************************** - * - * DirectPlay8Address Functions - * - ****************************************************************************/ - - -/* - * - * This function is no longer supported. It is recommended that CoCreateInstance be used to create - * DirectPlay8 address objects. - * - * HRESULT WINAPI DirectPlay8AddressCreate( const GUID * pcIID, void **ppvInterface, IUnknown *pUnknown); - * - */ - - -/**************************************************************************** - * - * DirectPlay8Address Application Interfaces - * - ****************************************************************************/ - -// -// COM definition for IDirectPlay8Address Generic Interface -// -#undef INTERFACE // External COM Implementation -#define INTERFACE IDirectPlay8Address -DECLARE_INTERFACE_(IDirectPlay8Address,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ DPNAREFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /*** IDirectPlay8Address methods ***/ - STDMETHOD(BuildFromURLW)(THIS_ WCHAR *pwszSourceURL ) PURE; - STDMETHOD(BuildFromURLA)(THIS_ CHAR *pszSourceURL ) PURE; - STDMETHOD(Duplicate)(THIS_ PDIRECTPLAY8ADDRESS *ppdpaNewAddress ) PURE; - STDMETHOD(SetEqual)(THIS_ PDIRECTPLAY8ADDRESS pdpaAddress ) PURE; - STDMETHOD(IsEqual)(THIS_ PDIRECTPLAY8ADDRESS pdpaAddress ) PURE; - STDMETHOD(Clear)(THIS ) PURE; - STDMETHOD(GetURLW)(THIS_ WCHAR *pwszURL, PDWORD pdwNumChars ) PURE; - STDMETHOD(GetURLA)(THIS_ CHAR *pszURL, PDWORD pdwNumChars) PURE; - STDMETHOD(GetSP)(THIS_ GUID *pguidSP ) PURE; - STDMETHOD(GetUserData)(THIS_ void *pvUserData, PDWORD pdwBufferSize) PURE; - STDMETHOD(SetSP)(THIS_ const GUID * const pguidSP ) PURE; - STDMETHOD(SetUserData)(THIS_ const void * const pvUserData, const DWORD dwDataSize) PURE; - STDMETHOD(GetNumComponents)(THIS_ PDWORD pdwNumComponents ) PURE; - STDMETHOD(GetComponentByName)(THIS_ const WCHAR * const pwszName, void *pvBuffer, PDWORD pdwBufferSize, PDWORD pdwDataType ) PURE; - STDMETHOD(GetComponentByIndex)(THIS_ const DWORD dwComponentID, WCHAR * pwszName, PDWORD pdwNameLen, void *pvBuffer, PDWORD pdwBufferSize, PDWORD pdwDataType ) PURE; - STDMETHOD(AddComponent)(THIS_ const WCHAR * const pwszName, const void * const lpvData, const DWORD dwDataSize, const DWORD dwDataType ) PURE; - STDMETHOD(GetDevice)(THIS_ GUID * ) PURE; - STDMETHOD(SetDevice)(THIS_ const GUID * const) PURE; - STDMETHOD(BuildFromDPADDRESS)( THIS_ LPVOID pvAddress, DWORD dwDataSize ) PURE; -}; - -// -// COM definition for IDirectPlay8AddressIP Generic Interface -// -#undef INTERFACE // External COM Implementation -#define INTERFACE IDirectPlay8AddressIP -DECLARE_INTERFACE_(IDirectPlay8AddressIP,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ DPNAREFIID, PVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /*** IDirectPlay8AddressIP methods ***/ - - // Constructs a IDirectPlay8 TCP Address from a SOCKADDR structure - STDMETHOD(BuildFromSockAddr)(THIS_ const SOCKADDR * const ) PURE; - - // Constructs a TCP Address from a string (hostname) and port - STDMETHOD(BuildAddress)(THIS_ const WCHAR * const wszAddress, const USHORT usPort ) PURE; - - // Builds a local TCP Address - STDMETHOD(BuildLocalAddress)(THIS_ const GUID * const pguidAdapter, const USHORT usPort ) PURE; - - // Gets the address from the structure in SOCKADR format - STDMETHOD(GetSockAddress)(THIS_ SOCKADDR *, PDWORD ) PURE; - - // Gets the local afddress - STDMETHOD(GetLocalAddress)(THIS_ GUID *pguidAdapter, USHORT *pusPort ) PURE; - - // Gets the remote address - STDMETHOD(GetAddress)(THIS_ WCHAR *wszAddress, PDWORD pdwAddressLength, USHORT *psPort ) PURE; -}; - - -/**************************************************************************** - * - * IDirectPlay8 application interface macros - * - ****************************************************************************/ - -#if !defined(__cplusplus) || defined(CINTERFACE) - -#define IDirectPlay8Address_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlay8Address_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlay8Address_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlay8Address_BuildFromURLW(p,a) (p)->lpVtbl->BuildFromURLW(p,a) -#define IDirectPlay8Address_BuildFromURLA(p,a) (p)->lpVtbl->BuildFromURLA(p,a) -#define IDirectPlay8Address_Duplicate(p,a) (p)->lpVtbl->Duplicate(p,a) -#define IDirectPlay8Address_SetEqual(p,a) (p)->lpVtbl->SetEqual(p,a) -#define IDirectPlay8Address_IsEqual(p,a) (p)->lpVtbl->IsEqual(p,a) -#define IDirectPlay8Address_Clear(p) (p)->lpVtbl->Clear(p) -#define IDirectPlay8Address_GetURLW(p,a,b) (p)->lpVtbl->GetURLW(p,a,b) -#define IDirectPlay8Address_GetURLA(p,a,b) (p)->lpVtbl->GetURLA(p,a,b) -#define IDirectPlay8Address_GetSP(p,a) (p)->lpVtbl->GetSP(p,a) -#define IDirectPlay8Address_GetUserData(p,a,b) (p)->lpVtbl->GetUserData(p,a,b) -#define IDirectPlay8Address_SetSP(p,a) (p)->lpVtbl->SetSP(p,a) -#define IDirectPlay8Address_SetUserData(p,a,b) (p)->lpVtbl->SetUserData(p,a,b) -#define IDirectPlay8Address_GetNumComponents(p,a) (p)->lpVtbl->GetNumComponents(p,a) -#define IDirectPlay8Address_GetComponentByName(p,a,b,c,d) (p)->lpVtbl->GetComponentByName(p,a,b,c,d) -#define IDirectPlay8Address_GetComponentByIndex(p,a,b,c,d,e,f) (p)->lpVtbl->GetComponentByIndex(p,a,b,c,d,e,f) -#define IDirectPlay8Address_AddComponent(p,a,b,c,d) (p)->lpVtbl->AddComponent(p,a,b,c,d) -#define IDirectPlay8Address_SetDevice(p,a) (p)->lpVtbl->SetDevice(p,a) -#define IDirectPlay8Address_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) -#define IDirectPlay8Address_BuildFromDirectPlay4Address(p,a,b) (p)->lpVtbl->BuildFromDirectPlay4Address(p,a,b) - -#define IDirectPlay8AddressIP_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlay8AddressIP_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlay8AddressIP_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlay8AddressIP_BuildFromSockAddr(p,a) (p)->lpVtbl->BuildFromSockAddr(p,a) -#define IDirectPlay8AddressIP_BuildAddress(p,a,b) (p)->lpVtbl->BuildAddress(p,a,b) -#define IDirectPlay8AddressIP_BuildLocalAddress(p,a,b) (p)->lpVtbl->BuildLocalAddress(p,a,b) -#define IDirectPlay8AddressIP_GetSockAddress(p,a,b) (p)->lpVtbl->GetSockAddress(p,a,b) -#define IDirectPlay8AddressIP_GetLocalAddress(p,a,b) (p)->lpVtbl->GetLocalAddress(p,a,b) -#define IDirectPlay8AddressIP_GetAddress(p,a,b,c) (p)->lpVtbl->GetAddress(p,a,b,c) - -#else /* C++ */ - -#define IDirectPlay8Address_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlay8Address_AddRef(p) (p)->AddRef() -#define IDirectPlay8Address_Release(p) (p)->Release() -#define IDirectPlay8Address_BuildFromURLW(p,a) (p)->BuildFromURLW(a) -#define IDirectPlay8Address_BuildFromURLA(p,a) (p)->BuildFromURLA(a) -#define IDirectPlay8Address_Duplicate(p,a) (p)->Duplicate(a) -#define IDirectPlay8Address_SetEqual(p,a) (p)->SetEqual(a) -#define IDirectPlay8Address_IsEqual(p,a) (p)->IsEqual(a) -#define IDirectPlay8Address_Clear(p) (p)->Clear() -#define IDirectPlay8Address_GetURLW(p,a,b) (p)->GetURLW(a,b) -#define IDirectPlay8Address_GetURLA(p,a,b) (p)->GetURLA(a,b) -#define IDirectPlay8Address_GetSP(p,a) (p)->GetSP(a) -#define IDirectPlay8Address_GetUserData(p,a,b) (p)->GetUserData(a,b) -#define IDirectPlay8Address_SetSP(p,a) (p)->SetSP(a) -#define IDirectPlay8Address_SetUserData(p,a,b) (p)->SetUserData(a,b) -#define IDirectPlay8Address_GetNumComponents(p,a) (p)->GetNumComponents(a) -#define IDirectPlay8Address_GetComponentByName(p,a,b,c,d) (p)->GetComponentByName(a,b,c,d) -#define IDirectPlay8Address_GetComponentByIndex(p,a,b,c,d,e,f) (p)->GetComponentByIndex(a,b,c,d,e,f) -#define IDirectPlay8Address_AddComponent(p,a,b,c,d) (p)->AddComponent(a,b,c,d) -#define IDirectPlay8Address_SetDevice(p,a) (p)->SetDevice(a) -#define IDirectPlay8Address_GetDevice(p,a) (p)->GetDevice(a) -#define IDirectPlay8Address_BuildFromDirectPlay4Address(p,a,b) (p)->BuildFromDirectPlay4Address(a,b) - -#define IDirectPlay8AddressIP_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlay8AddressIP_AddRef(p) (p)->AddRef() -#define IDirectPlay8AddressIP_Release(p) (p)->Release() -#define IDirectPlay8AddressIP_BuildFromSockAddr(p,a) (p)->BuildFromSockAddr(a) -#define IDirectPlay8AddressIP_BuildAddress(p,a,b) (p)->BuildAddress(a,b) -#define IDirectPlay8AddressIP_BuildLocalAddress(p,a,b) (p)->BuildLocalAddress(a,b) -#define IDirectPlay8AddressIP_GetSockAddress(p,a,b) (p)->GetSockAddress(a,b) -#define IDirectPlay8AddressIP_GetLocalAddress(p,a,b) (p)->GetLocalAddress(a,b) -#define IDirectPlay8AddressIP_GetAddress(p,a,b,c) (p)->GetAddress(a,b,c) - -#endif - - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/dplay.h b/sdk/dx8sdk/Include/dplay.h deleted file mode 100644 index d91c0a5e..00000000 --- a/sdk/dx8sdk/Include/dplay.h +++ /dev/null @@ -1,2154 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) 1994-1997 Microsoft Corporation. All Rights Reserved. - * - * File: dplay.h - * Content: DirectPlay include file - * - ***************************************************************************/ - -#ifndef __DPLAY_INCLUDED__ -#define __DPLAY_INCLUDED__ - -#include // for DECLARE_INTERFACE and HRESULT - -/* avoid warnings in MSVC at Level4 */ -#if _MSC_VER >= 1200 -#pragma warning(push) -#endif -#pragma warning(disable:4201) - - -/* - * Some types - */ - -#ifndef _WIN64 -#define DWORD_PTR DWORD -#endif - -typedef LPVOID (*LPRGLPVOID)[]; -typedef LPRGLPVOID PRGPVOID, LPRGPVOID, PRGLPVOID, PAPVOID, LPAPVOID, PALPVOID, LPALPVOID; - -#define VOL volatile -typedef VOID *VOL LPVOIDV; - - -#define _FACDP 0x877 -#define MAKE_DPHRESULT( code ) MAKE_HRESULT( 1, _FACDP, code ) - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * GUIDS used by DirectPlay objects - */ -DEFINE_GUID(IID_IDirectPlay2, 0x2b74f7c0, 0x9154, 0x11cf, 0xa9, 0xcd, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3); -DEFINE_GUID(IID_IDirectPlay2A,0x9d460580, 0xa822, 0x11cf, 0x96, 0xc, 0x0, 0x80, 0xc7, 0x53, 0x4e, 0x82); - -DEFINE_GUID(IID_IDirectPlay3, 0x133efe40, 0x32dc, 0x11d0, 0x9c, 0xfb, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb); -DEFINE_GUID(IID_IDirectPlay3A,0x133efe41, 0x32dc, 0x11d0, 0x9c, 0xfb, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb); - -DEFINE_GUID(IID_IDirectPlay4, 0xab1c530, 0x4745, 0x11d1, 0xa7, 0xa1, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc); -DEFINE_GUID(IID_IDirectPlay4A,0xab1c531, 0x4745, 0x11d1, 0xa7, 0xa1, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc); - -// {D1EB6D20-8923-11d0-9D97-00A0C90A43CB} -DEFINE_GUID(CLSID_DirectPlay,0xd1eb6d20, 0x8923, 0x11d0, 0x9d, 0x97, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb); - -/* - * GUIDS used by Service Providers shipped with DirectPlay - * Use these to identify Service Provider returned by EnumConnections - */ - -// GUID for IPX service provider -// {685BC400-9D2C-11cf-A9CD-00AA006886E3} -DEFINE_GUID(DPSPGUID_IPX, -0x685bc400, 0x9d2c, 0x11cf, 0xa9, 0xcd, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3); - -// GUID for TCP/IP service provider -// 36E95EE0-8577-11cf-960C-0080C7534E82 -DEFINE_GUID(DPSPGUID_TCPIP, -0x36E95EE0, 0x8577, 0x11cf, 0x96, 0xc, 0x0, 0x80, 0xc7, 0x53, 0x4e, 0x82); - -// GUID for Serial service provider -// {0F1D6860-88D9-11cf-9C4E-00A0C905425E} -DEFINE_GUID(DPSPGUID_SERIAL, -0xf1d6860, 0x88d9, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e); - -// GUID for Modem service provider -// {44EAA760-CB68-11cf-9C4E-00A0C905425E} -DEFINE_GUID(DPSPGUID_MODEM, -0x44eaa760, 0xcb68, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e); - -/**************************************************************************** - * - * DirectPlay Structures - * - * Various structures used to invoke DirectPlay. - * - ****************************************************************************/ - -#ifndef IDIRECTPLAY2_OR_GREATER -typedef struct IDirectPlay FAR *LPDIRECTPLAY; -#else -typedef struct IUnknown FAR *LPDIRECTPLAY; -#endif - -typedef struct IDirectPlay2 FAR *LPDIRECTPLAY2; -typedef struct IDirectPlay2 FAR *LPDIRECTPLAY2A; -typedef struct IDirectPlay2 IDirectPlay2A; - -typedef struct IDirectPlay3 FAR *LPDIRECTPLAY3; -typedef struct IDirectPlay3 FAR *LPDIRECTPLAY3A; -typedef struct IDirectPlay3 IDirectPlay3A; - -typedef struct IDirectPlay4 FAR *LPDIRECTPLAY4; -typedef struct IDirectPlay4 FAR *LPDIRECTPLAY4A; -typedef struct IDirectPlay4 IDirectPlay4A; - -/* - * DPID - * DirectPlay player and group ID - */ -typedef DWORD DPID, FAR *LPDPID; - -/* - * DPID that system messages come from - */ -#define DPID_SYSMSG 0 - -/* - * DPID representing all players in the session - */ -#define DPID_ALLPLAYERS 0 - -/* - * DPID representing the server player - */ -#define DPID_SERVERPLAYER 1 - - -/* - * DPID representing the maxiumum ID in the range of DPID's reserved for - * use by DirectPlay. - */ -#define DPID_RESERVEDRANGE 100 - -/* - * The player ID is unknown (used with e.g. DPSESSION_NOMESSAGEID) - */ -#define DPID_UNKNOWN 0xFFFFFFFF - -/* - * DPCAPS - * Used to obtain the capabilities of a DirectPlay object - */ -typedef struct -{ - DWORD dwSize; // Size of structure, in bytes - DWORD dwFlags; // DPCAPS_xxx flags - DWORD dwMaxBufferSize; // Maximum message size, in bytes, for this service provider - DWORD dwMaxQueueSize; // Obsolete. - DWORD dwMaxPlayers; // Maximum players/groups (local + remote) - DWORD dwHundredBaud; // Bandwidth in 100 bits per second units; - // i.e. 24 is 2400, 96 is 9600, etc. - DWORD dwLatency; // Estimated latency; 0 = unknown - DWORD dwMaxLocalPlayers; // Maximum # of locally created players allowed - DWORD dwHeaderLength; // Maximum header length, in bytes, on messages - // added by the service provider - DWORD dwTimeout; // Service provider's suggested timeout value - // This is how long DirectPlay will wait for - // responses to system messages -} DPCAPS, FAR *LPDPCAPS; - -/* - * This DirectPlay object is the session host. If the host exits the - * session, another application will become the host and receive a - * DPSYS_HOST system message. - */ -#define DPCAPS_ISHOST 0x00000002 - -/* - * The service provider bound to this DirectPlay object can optimize - * group messaging. - */ -#define DPCAPS_GROUPOPTIMIZED 0x00000008 - -/* - * The service provider bound to this DirectPlay object can optimize - * keep alives (see DPSESSION_KEEPALIVE) - */ -#define DPCAPS_KEEPALIVEOPTIMIZED 0x00000010 - -/* - * The service provider bound to this DirectPlay object can optimize - * guaranteed message delivery. - */ -#define DPCAPS_GUARANTEEDOPTIMIZED 0x00000020 - -/* - * This DirectPlay object supports guaranteed message delivery. - */ -#define DPCAPS_GUARANTEEDSUPPORTED 0x00000040 - -/* - * This DirectPlay object supports digital signing of messages. - */ -#define DPCAPS_SIGNINGSUPPORTED 0x00000080 - -/* - * This DirectPlay object supports encryption of messages. - */ -#define DPCAPS_ENCRYPTIONSUPPORTED 0x00000100 - -/* - * This DirectPlay player was created on this machine - */ -#define DPPLAYERCAPS_LOCAL 0x00000800 - -/* - * Current Open settings supports all forms of Cancel - */ -#define DPCAPS_ASYNCCANCELSUPPORTED 0x00001000 - -/* - * Current Open settings supports CancelAll, but not Cancel - */ -#define DPCAPS_ASYNCCANCELALLSUPPORTED 0x00002000 - -/* - * Current Open settings supports Send Timeouts for sends - */ -#define DPCAPS_SENDTIMEOUTSUPPORTED 0x00004000 - -/* - * Current Open settings supports send priority - */ -#define DPCAPS_SENDPRIORITYSUPPORTED 0x00008000 - -/* - * Current Open settings supports DPSEND_ASYNC flag - */ -#define DPCAPS_ASYNCSUPPORTED 0x00010000 - - -/* - * DPSESSIONDESC2 - * Used to describe the properties of a DirectPlay - * session instance - */ -typedef struct -{ - DWORD dwSize; // Size of structure - DWORD dwFlags; // DPSESSION_xxx flags - GUID guidInstance; // ID for the session instance - GUID guidApplication; // GUID of the DirectPlay application. - // GUID_NULL for all applications. - DWORD dwMaxPlayers; // Maximum # players allowed in session - DWORD dwCurrentPlayers; // Current # players in session (read only) - union - { // Name of the session - LPWSTR lpszSessionName; // Unicode - LPSTR lpszSessionNameA; // ANSI - }; - union - { // Password of the session (optional) - LPWSTR lpszPassword; // Unicode - LPSTR lpszPasswordA; // ANSI - }; - DWORD_PTR dwReserved1; // Reserved for future MS use. - DWORD_PTR dwReserved2; - DWORD_PTR dwUser1; // For use by the application - DWORD_PTR dwUser2; - DWORD_PTR dwUser3; - DWORD_PTR dwUser4; -} DPSESSIONDESC2, FAR *LPDPSESSIONDESC2; - -typedef DPSESSIONDESC2 * VOL LPDPSESSIONDESC2_V; - -/* - * LPCDPSESSIONDESC2 - * A constant pointer to DPSESSIONDESC2 - */ -typedef const DPSESSIONDESC2 FAR *LPCDPSESSIONDESC2; - -/* - * Applications cannot create new players in this session. - */ -#define DPSESSION_NEWPLAYERSDISABLED 0x00000001 - -/* - * If the DirectPlay object that created the session, the host, - * quits, then the host will attempt to migrate to another - * DirectPlay object so that new players can continue to be created - * and new applications can join the session. - */ -#define DPSESSION_MIGRATEHOST 0x00000004 - -/* - * This flag tells DirectPlay not to set the idPlayerTo and idPlayerFrom - * fields in player messages. This cuts two DWORD's off the message - * overhead. - */ -#define DPSESSION_NOMESSAGEID 0x00000008 - - -/* - * This flag tells DirectPlay to not allow any new applications to - * join the session. Applications already in the session can still - * create new players. - */ -#define DPSESSION_JOINDISABLED 0x00000020 - -/* - * This flag tells DirectPlay to detect when remote players - * exit abnormally (e.g. their computer or modem gets unplugged) - */ -#define DPSESSION_KEEPALIVE 0x00000040 - -/* - * This flag tells DirectPlay not to send a message to all players - * when a players remote data changes - */ -#define DPSESSION_NODATAMESSAGES 0x00000080 - -/* - * This flag indicates that the session belongs to a secure server - * and needs user authentication - */ -#define DPSESSION_SECURESERVER 0x00000100 - -/* - * This flag indicates that the session is private and requirs a password - * for EnumSessions as well as Open. - */ -#define DPSESSION_PRIVATE 0x00000200 - -/* - * This flag indicates that the session requires a password for joining. - */ -#define DPSESSION_PASSWORDREQUIRED 0x00000400 - -/* - * This flag tells DirectPlay to route all messages through the server - */ -#define DPSESSION_MULTICASTSERVER 0x00000800 - -/* - * This flag tells DirectPlay to only download information about the - * DPPLAYER_SERVERPLAYER. - */ -#define DPSESSION_CLIENTSERVER 0x00001000 - -/* - * This flag tells DirectPlay to use the protocol built into dplay - * for reliability and statistics all the time. When this bit is - * set, only other sessions with this bit set can join or be joined. - */ -#define DPSESSION_DIRECTPLAYPROTOCOL 0x00002000 - -/* - * This flag tells DirectPlay that preserving order of received - * packets is not important, when using reliable delivery. This - * will allow messages to be indicated out of order if preceding - * messages have not yet arrived. Otherwise DPLAY will wait for - * earlier messages before delivering later reliable messages. - */ -#define DPSESSION_NOPRESERVEORDER 0x00004000 - - -/* - * This flag tells DirectPlay to optimize communication for latency - */ -#define DPSESSION_OPTIMIZELATENCY 0x00008000 - -/* - * This flag allows lobby launched games that aren't voice enabled - * to get voice capabilities. - */ -#define DPSESSION_ALLOWVOICERETRO 0x00010000 - -/* - * This flag supresses transmission of session desc changes. - * DPSESSION_NODATAMESSAGES was supposed to do that, but SetSessionDesc - * was ignoring the flag and some apps depended on the broken behavior, this - * flag allows applications to get the right behaviour without breaking apps depending - * on old broken behavior. - */ -#define DPSESSION_NOSESSIONDESCMESSAGES 0x00020000 - -/* - * DPNAME - * Used to hold the name of a DirectPlay entity - * like a player or a group - */ -typedef struct -{ - DWORD dwSize; // Size of structure - DWORD dwFlags; // Not used. Must be zero. - union - { // The short or friendly name - LPWSTR lpszShortName; // Unicode - LPSTR lpszShortNameA; // ANSI - }; - union - { // The long or formal name - LPWSTR lpszLongName; // Unicode - LPSTR lpszLongNameA; // ANSI - }; - -} DPNAME, FAR *LPDPNAME; - -/* - * LPCDPNAME - * A constant pointer to DPNAME - */ -typedef const DPNAME FAR *LPCDPNAME; - -/* - * DPCREDENTIALS - * Used to hold the user name and password of a DirectPlay user - */ -typedef struct -{ - DWORD dwSize; // Size of structure - DWORD dwFlags; // Not used. Must be zero. - union - { // User name of the account - LPWSTR lpszUsername; // Unicode - LPSTR lpszUsernameA; // ANSI - }; - union - { // Password of the account - LPWSTR lpszPassword; // Unicode - LPSTR lpszPasswordA; // ANSI - }; - union - { // Domain name of the account - LPWSTR lpszDomain; // Unicode - LPSTR lpszDomainA; // ANSI - }; -} DPCREDENTIALS, FAR *LPDPCREDENTIALS; - -typedef const DPCREDENTIALS FAR *LPCDPCREDENTIALS; - -/* - * DPSECURITYDESC - * Used to describe the security properties of a DirectPlay - * session instance - */ -typedef struct -{ - DWORD dwSize; // Size of structure - DWORD dwFlags; // Not used. Must be zero. - union - { // SSPI provider name - LPWSTR lpszSSPIProvider; // Unicode - LPSTR lpszSSPIProviderA; // ANSI - }; - union - { // CAPI provider name - LPWSTR lpszCAPIProvider; // Unicode - LPSTR lpszCAPIProviderA; // ANSI - }; - DWORD dwCAPIProviderType; // Crypto Service Provider type - DWORD dwEncryptionAlgorithm; // Encryption Algorithm type -} DPSECURITYDESC, FAR *LPDPSECURITYDESC; - -typedef const DPSECURITYDESC FAR *LPCDPSECURITYDESC; - -/* - * DPACCOUNTDESC - * Used to describe a user membership account - */ -typedef struct -{ - DWORD dwSize; // Size of structure - DWORD dwFlags; // Not used. Must be zero. - union - { // Account identifier - LPWSTR lpszAccountID; // Unicode - LPSTR lpszAccountIDA; // ANSI - }; -} DPACCOUNTDESC, FAR *LPDPACCOUNTDESC; - -typedef const DPACCOUNTDESC FAR *LPCDPACCOUNTDESC; - -/* - * LPCGUID - * A constant pointer to a guid - */ -typedef const GUID FAR *LPCGUID; - -/* - * DPLCONNECTION - * Used to hold all in the informaion needed to connect - * an application to a session or create a session - */ -typedef struct -{ - DWORD dwSize; // Size of this structure - DWORD dwFlags; // Flags specific to this structure - LPDPSESSIONDESC2 lpSessionDesc; // Pointer to session desc to use on connect - LPDPNAME lpPlayerName; // Pointer to Player name structure - GUID guidSP; // GUID of the DPlay SP to use - LPVOID lpAddress; // Address for service provider - DWORD dwAddressSize; // Size of address data -} DPLCONNECTION, FAR *LPDPLCONNECTION; - -/* - * LPCDPLCONNECTION - * A constant pointer to DPLCONNECTION - */ -typedef const DPLCONNECTION FAR *LPCDPLCONNECTION; - -/* - * DPCHAT - * Used to hold the a DirectPlay chat message - */ -typedef struct -{ - DWORD dwSize; - DWORD dwFlags; - union - { // Message string - LPWSTR lpszMessage; // Unicode - LPSTR lpszMessageA; // ANSI - }; -} DPCHAT, FAR * LPDPCHAT; - -/* - * SGBUFFER - * Scatter Gather Buffer used for SendEx - */ -typedef struct -{ - UINT len; // length of buffer data - PUCHAR pData; // pointer to buffer data -} SGBUFFER, *PSGBUFFER, FAR *LPSGBUFFER; - - -/**************************************************************************** - * - * Prototypes for DirectPlay callback functions - * - ****************************************************************************/ - -/* - * Callback for IDirectPlay2::EnumSessions - */ -typedef BOOL (FAR PASCAL * LPDPENUMSESSIONSCALLBACK2)( - LPCDPSESSIONDESC2 lpThisSD, - LPDWORD lpdwTimeOut, - DWORD dwFlags, - LPVOID lpContext ); - -/* - * This flag is set on the EnumSessions callback dwFlags parameter when - * the time out has occurred. There will be no session data for this - * callback. If *lpdwTimeOut is set to a non-zero value and the - * EnumSessionsCallback function returns TRUE then EnumSessions will - * continue waiting until the next timeout occurs. Timeouts are in - * milliseconds. - */ -#define DPESC_TIMEDOUT 0x00000001 - - -/* - * Callback for IDirectPlay2::EnumPlayers - * IDirectPlay2::EnumGroups - * IDirectPlay2::EnumGroupPlayers - */ -typedef BOOL (FAR PASCAL *LPDPENUMPLAYERSCALLBACK2)( - DPID dpId, - DWORD dwPlayerType, - LPCDPNAME lpName, - DWORD dwFlags, - LPVOID lpContext ); - - -/* - * Unicode callback for DirectPlayEnumerate - * This callback prototype will be used if compiling - * for Unicode strings - */ -typedef BOOL (FAR PASCAL * LPDPENUMDPCALLBACK)( - LPGUID lpguidSP, - LPWSTR lpSPName, - DWORD dwMajorVersion, - DWORD dwMinorVersion, - LPVOID lpContext); - -/* - * ANSI callback for DirectPlayEnumerate - * This callback prototype will be used if compiling - * for ANSI strings - */ -typedef BOOL (FAR PASCAL * LPDPENUMDPCALLBACKA)( - LPGUID lpguidSP, - LPSTR lpSPName, - DWORD dwMajorVersion, - DWORD dwMinorVersion, - LPVOID lpContext); - -/* - * Callback for IDirectPlay3(A)::EnumConnections - */ -typedef BOOL (FAR PASCAL * LPDPENUMCONNECTIONSCALLBACK)( - LPCGUID lpguidSP, - LPVOID lpConnection, - DWORD dwConnectionSize, - LPCDPNAME lpName, - DWORD dwFlags, - LPVOID lpContext); - - -/* - * API's - */ - -#ifdef UNICODE -#define DirectPlayEnumerate DirectPlayEnumerateW -#else -#define DirectPlayEnumerate DirectPlayEnumerateA -#endif // UNICODE - -extern HRESULT WINAPI DirectPlayEnumerateA( LPDPENUMDPCALLBACKA, LPVOID ); -extern HRESULT WINAPI DirectPlayEnumerateW( LPDPENUMDPCALLBACK, LPVOID ); -extern HRESULT WINAPI DirectPlayCreate( LPGUID lpGUID, LPDIRECTPLAY *lplpDP, IUnknown *pUnk); - -/**************************************************************************** - * - * IDirectPlay2 (and IDirectPlay2A) Interface - * - ****************************************************************************/ - -#undef INTERFACE -#define INTERFACE IDirectPlay2 -DECLARE_INTERFACE_( IDirectPlay2, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectPlay2 methods ***/ - STDMETHOD(AddPlayerToGroup) (THIS_ DPID, DPID) PURE; - STDMETHOD(Close) (THIS) PURE; - STDMETHOD(CreateGroup) (THIS_ LPDPID,LPDPNAME,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(CreatePlayer) (THIS_ LPDPID,LPDPNAME,HANDLE,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID,DPID) PURE; - STDMETHOD(DestroyGroup) (THIS_ DPID) PURE; - STDMETHOD(DestroyPlayer) (THIS_ DPID) PURE; - STDMETHOD(EnumGroupPlayers) (THIS_ DPID,LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(EnumGroups) (THIS_ LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(EnumPlayers) (THIS_ LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(EnumSessions) (THIS_ LPDPSESSIONDESC2,DWORD,LPDPENUMSESSIONSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(GetCaps) (THIS_ LPDPCAPS,DWORD) PURE; - STDMETHOD(GetGroupData) (THIS_ DPID,LPVOID,LPDWORD,DWORD) PURE; - STDMETHOD(GetGroupName) (THIS_ DPID,LPVOID,LPDWORD) PURE; - STDMETHOD(GetMessageCount) (THIS_ DPID, LPDWORD) PURE; - STDMETHOD(GetPlayerAddress) (THIS_ DPID,LPVOID,LPDWORD) PURE; - STDMETHOD(GetPlayerCaps) (THIS_ DPID,LPDPCAPS,DWORD) PURE; - STDMETHOD(GetPlayerData) (THIS_ DPID,LPVOID,LPDWORD,DWORD) PURE; - STDMETHOD(GetPlayerName) (THIS_ DPID,LPVOID,LPDWORD) PURE; - STDMETHOD(GetSessionDesc) (THIS_ LPVOID,LPDWORD) PURE; - STDMETHOD(Initialize) (THIS_ LPGUID) PURE; - STDMETHOD(Open) (THIS_ LPDPSESSIONDESC2,DWORD) PURE; - STDMETHOD(Receive) (THIS_ LPDPID,LPDPID,DWORD,LPVOID,LPDWORD) PURE; - STDMETHOD(Send) (THIS_ DPID, DPID, DWORD, LPVOID, DWORD) PURE; - STDMETHOD(SetGroupData) (THIS_ DPID,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(SetGroupName) (THIS_ DPID,LPDPNAME,DWORD) PURE; - STDMETHOD(SetPlayerData) (THIS_ DPID,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(SetPlayerName) (THIS_ DPID,LPDPNAME,DWORD) PURE; - STDMETHOD(SetSessionDesc) (THIS_ LPDPSESSIONDESC2,DWORD) PURE; -}; - -/**************************************************************************** - * - * IDirectPlay2 interface macros - * - ****************************************************************************/ - -#if !defined(__cplusplus) || defined(CINTERFACE) - -#define IDirectPlay2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlay2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlay2_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlay2_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b) -#define IDirectPlay2_Close(p) (p)->lpVtbl->Close(p) -#define IDirectPlay2_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e) -#define IDirectPlay2_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f) -#define IDirectPlay2_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b) -#define IDirectPlay2_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a) -#define IDirectPlay2_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a) -#define IDirectPlay2_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e) -#define IDirectPlay2_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d) -#define IDirectPlay2_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d) -#define IDirectPlay2_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e) -#define IDirectPlay2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) -#define IDirectPlay2_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b) -#define IDirectPlay2_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d) -#define IDirectPlay2_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c) -#define IDirectPlay2_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c) -#define IDirectPlay2_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c) -#define IDirectPlay2_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d) -#define IDirectPlay2_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c) -#define IDirectPlay2_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b) -#define IDirectPlay2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) -#define IDirectPlay2_Open(p,a,b) (p)->lpVtbl->Open(p,a,b) -#define IDirectPlay2_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e) -#define IDirectPlay2_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e) -#define IDirectPlay2_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d) -#define IDirectPlay2_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c) -#define IDirectPlay2_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d) -#define IDirectPlay2_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c) -#define IDirectPlay2_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b) - -#else /* C++ */ - -#define IDirectPlay2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlay2_AddRef(p) (p)->AddRef() -#define IDirectPlay2_Release(p) (p)->Release() -#define IDirectPlay2_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b) -#define IDirectPlay2_Close(p) (p)->Close() -#define IDirectPlay2_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e) -#define IDirectPlay2_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f) -#define IDirectPlay2_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b) -#define IDirectPlay2_DestroyGroup(p,a) (p)->DestroyGroup(a) -#define IDirectPlay2_DestroyPlayer(p,a) (p)->DestroyPlayer(a) -#define IDirectPlay2_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e) -#define IDirectPlay2_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d) -#define IDirectPlay2_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d) -#define IDirectPlay2_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e) -#define IDirectPlay2_GetCaps(p,a,b) (p)->GetCaps(a,b) -#define IDirectPlay2_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b) -#define IDirectPlay2_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d) -#define IDirectPlay2_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c) -#define IDirectPlay2_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c) -#define IDirectPlay2_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c) -#define IDirectPlay2_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d) -#define IDirectPlay2_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c) -#define IDirectPlay2_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b) -#define IDirectPlay2_Initialize(p,a) (p)->Initialize(a) -#define IDirectPlay2_Open(p,a,b) (p)->Open(a,b) -#define IDirectPlay2_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e) -#define IDirectPlay2_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e) -#define IDirectPlay2_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d) -#define IDirectPlay2_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c) -#define IDirectPlay2_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d) -#define IDirectPlay2_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c) -#define IDirectPlay2_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b) - -#endif - -/**************************************************************************** - * - * IDirectPlay3 (and IDirectPlay3A) Interface - * - ****************************************************************************/ - -#undef INTERFACE -#define INTERFACE IDirectPlay3 -DECLARE_INTERFACE_( IDirectPlay3, IDirectPlay2 ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectPlay2 methods ***/ - STDMETHOD(AddPlayerToGroup) (THIS_ DPID, DPID) PURE; - STDMETHOD(Close) (THIS) PURE; - STDMETHOD(CreateGroup) (THIS_ LPDPID,LPDPNAME,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(CreatePlayer) (THIS_ LPDPID,LPDPNAME,HANDLE,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID,DPID) PURE; - STDMETHOD(DestroyGroup) (THIS_ DPID) PURE; - STDMETHOD(DestroyPlayer) (THIS_ DPID) PURE; - STDMETHOD(EnumGroupPlayers) (THIS_ DPID,LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(EnumGroups) (THIS_ LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(EnumPlayers) (THIS_ LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(EnumSessions) (THIS_ LPDPSESSIONDESC2,DWORD,LPDPENUMSESSIONSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(GetCaps) (THIS_ LPDPCAPS,DWORD) PURE; - STDMETHOD(GetGroupData) (THIS_ DPID,LPVOID,LPDWORD,DWORD) PURE; - STDMETHOD(GetGroupName) (THIS_ DPID,LPVOID,LPDWORD) PURE; - STDMETHOD(GetMessageCount) (THIS_ DPID, LPDWORD) PURE; - STDMETHOD(GetPlayerAddress) (THIS_ DPID,LPVOID,LPDWORD) PURE; - STDMETHOD(GetPlayerCaps) (THIS_ DPID,LPDPCAPS,DWORD) PURE; - STDMETHOD(GetPlayerData) (THIS_ DPID,LPVOID,LPDWORD,DWORD) PURE; - STDMETHOD(GetPlayerName) (THIS_ DPID,LPVOID,LPDWORD) PURE; - STDMETHOD(GetSessionDesc) (THIS_ LPVOID,LPDWORD) PURE; - STDMETHOD(Initialize) (THIS_ LPGUID) PURE; - STDMETHOD(Open) (THIS_ LPDPSESSIONDESC2,DWORD) PURE; - STDMETHOD(Receive) (THIS_ LPDPID,LPDPID,DWORD,LPVOID,LPDWORD) PURE; - STDMETHOD(Send) (THIS_ DPID, DPID, DWORD, LPVOID, DWORD) PURE; - STDMETHOD(SetGroupData) (THIS_ DPID,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(SetGroupName) (THIS_ DPID,LPDPNAME,DWORD) PURE; - STDMETHOD(SetPlayerData) (THIS_ DPID,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(SetPlayerName) (THIS_ DPID,LPDPNAME,DWORD) PURE; - STDMETHOD(SetSessionDesc) (THIS_ LPDPSESSIONDESC2,DWORD) PURE; - /*** IDirectPlay3 methods ***/ - STDMETHOD(AddGroupToGroup) (THIS_ DPID, DPID) PURE; - STDMETHOD(CreateGroupInGroup) (THIS_ DPID,LPDPID,LPDPNAME,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(DeleteGroupFromGroup) (THIS_ DPID,DPID) PURE; - STDMETHOD(EnumConnections) (THIS_ LPCGUID,LPDPENUMCONNECTIONSCALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(EnumGroupsInGroup) (THIS_ DPID,LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(GetGroupConnectionSettings)(THIS_ DWORD, DPID, LPVOID, LPDWORD) PURE; - STDMETHOD(InitializeConnection) (THIS_ LPVOID,DWORD) PURE; - STDMETHOD(SecureOpen) (THIS_ LPCDPSESSIONDESC2,DWORD,LPCDPSECURITYDESC,LPCDPCREDENTIALS) PURE; - STDMETHOD(SendChatMessage) (THIS_ DPID,DPID,DWORD,LPDPCHAT) PURE; - STDMETHOD(SetGroupConnectionSettings)(THIS_ DWORD,DPID,LPDPLCONNECTION) PURE; - STDMETHOD(StartSession) (THIS_ DWORD,DPID) PURE; - STDMETHOD(GetGroupFlags) (THIS_ DPID,LPDWORD) PURE; - STDMETHOD(GetGroupParent) (THIS_ DPID,LPDPID) PURE; - STDMETHOD(GetPlayerAccount) (THIS_ DPID, DWORD, LPVOID, LPDWORD) PURE; - STDMETHOD(GetPlayerFlags) (THIS_ DPID,LPDWORD) PURE; -}; - -/**************************************************************************** - * - * IDirectPlay3 interface macros - * - ****************************************************************************/ - -#if !defined(__cplusplus) || defined(CINTERFACE) - -#define IDirectPlay3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlay3_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlay3_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlay3_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b) -#define IDirectPlay3_Close(p) (p)->lpVtbl->Close(p) -#define IDirectPlay3_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e) -#define IDirectPlay3_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f) -#define IDirectPlay3_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b) -#define IDirectPlay3_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a) -#define IDirectPlay3_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a) -#define IDirectPlay3_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e) -#define IDirectPlay3_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d) -#define IDirectPlay3_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d) -#define IDirectPlay3_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e) -#define IDirectPlay3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) -#define IDirectPlay3_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b) -#define IDirectPlay3_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d) -#define IDirectPlay3_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c) -#define IDirectPlay3_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c) -#define IDirectPlay3_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c) -#define IDirectPlay3_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d) -#define IDirectPlay3_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c) -#define IDirectPlay3_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b) -#define IDirectPlay3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) -#define IDirectPlay3_Open(p,a,b) (p)->lpVtbl->Open(p,a,b) -#define IDirectPlay3_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e) -#define IDirectPlay3_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e) -#define IDirectPlay3_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d) -#define IDirectPlay3_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c) -#define IDirectPlay3_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d) -#define IDirectPlay3_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c) -#define IDirectPlay3_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b) -#define IDirectPlay3_AddGroupToGroup(p,a,b) (p)->lpVtbl->AddGroupToGroup(p,a,b) -#define IDirectPlay3_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->lpVtbl->CreateGroupInGroup(p,a,b,c,d,e,f) -#define IDirectPlay3_DeleteGroupFromGroup(p,a,b) (p)->lpVtbl->DeleteGroupFromGroup(p,a,b) -#define IDirectPlay3_EnumConnections(p,a,b,c,d) (p)->lpVtbl->EnumConnections(p,a,b,c,d) -#define IDirectPlay3_EnumGroupsInGroup(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupsInGroup(p,a,b,c,d,e) -#define IDirectPlay3_GetGroupConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetGroupConnectionSettings(p,a,b,c,d) -#define IDirectPlay3_InitializeConnection(p,a,b) (p)->lpVtbl->InitializeConnection(p,a,b) -#define IDirectPlay3_SecureOpen(p,a,b,c,d) (p)->lpVtbl->SecureOpen(p,a,b,c,d) -#define IDirectPlay3_SendChatMessage(p,a,b,c,d) (p)->lpVtbl->SendChatMessage(p,a,b,c,d) -#define IDirectPlay3_SetGroupConnectionSettings(p,a,b,c) (p)->lpVtbl->SetGroupConnectionSettings(p,a,b,c) -#define IDirectPlay3_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b) -#define IDirectPlay3_GetGroupFlags(p,a,b) (p)->lpVtbl->GetGroupFlags(p,a,b) -#define IDirectPlay3_GetGroupParent(p,a,b) (p)->lpVtbl->GetGroupParent(p,a,b) -#define IDirectPlay3_GetPlayerAccount(p,a,b,c,d) (p)->lpVtbl->GetPlayerAccount(p,a,b,c,d) -#define IDirectPlay3_GetPlayerFlags(p,a,b) (p)->lpVtbl->GetPlayerFlags(p,a,b) - -#else /* C++ */ - -#define IDirectPlay3_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlay3_AddRef(p) (p)->AddRef() -#define IDirectPlay3_Release(p) (p)->Release() -#define IDirectPlay3_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b) -#define IDirectPlay3_Close(p) (p)->Close() -#define IDirectPlay3_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e) -#define IDirectPlay3_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f) -#define IDirectPlay3_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b) -#define IDirectPlay3_DestroyGroup(p,a) (p)->DestroyGroup(a) -#define IDirectPlay3_DestroyPlayer(p,a) (p)->DestroyPlayer(a) -#define IDirectPlay3_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e) -#define IDirectPlay3_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d) -#define IDirectPlay3_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d) -#define IDirectPlay3_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e) -#define IDirectPlay3_GetCaps(p,a,b) (p)->GetCaps(a,b) -#define IDirectPlay3_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b) -#define IDirectPlay3_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d) -#define IDirectPlay3_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c) -#define IDirectPlay3_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c) -#define IDirectPlay3_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c) -#define IDirectPlay3_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d) -#define IDirectPlay3_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c) -#define IDirectPlay3_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b) -#define IDirectPlay3_Initialize(p,a) (p)->Initialize(a) -#define IDirectPlay3_Open(p,a,b) (p)->Open(a,b) -#define IDirectPlay3_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e) -#define IDirectPlay3_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e) -#define IDirectPlay3_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d) -#define IDirectPlay3_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c) -#define IDirectPlay3_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d) -#define IDirectPlay3_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c) -#define IDirectPlay3_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b) -#define IDirectPlay3_AddGroupToGroup(p,a,b) (p)->AddGroupToGroup(a,b) -#define IDirectPlay3_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->CreateGroupInGroup(a,b,c,d,e,f) -#define IDirectPlay3_DeleteGroupFromGroup(p,a,b) (p)->DeleteGroupFromGroup(a,b) -#define IDirectPlay3_EnumConnections(p,a,b,c,d) (p)->EnumConnections(a,b,c,d) -#define IDirectPlay3_EnumGroupsInGroup(p,a,b,c,d,e) (p)->EnumGroupsInGroup(a,b,c,d,e) -#define IDirectPlay3_GetGroupConnectionSettings(p,a,b,c,d) (p)->GetGroupConnectionSettings(a,b,c,d) -#define IDirectPlay3_InitializeConnection(p,a,b) (p)->InitializeConnection(a,b) -#define IDirectPlay3_SecureOpen(p,a,b,c,d) (p)->SecureOpen(a,b,c,d) -#define IDirectPlay3_SendChatMessage(p,a,b,c,d) (p)->SendChatMessage(a,b,c,d) -#define IDirectPlay3_SetGroupConnectionSettings(p,a,b,c) (p)->SetGroupConnectionSettings(a,b,c) -#define IDirectPlay3_StartSession(p,a,b) (p)->StartSession(a,b) -#define IDirectPlay3_GetGroupFlags(p,a,b) (p)->GetGroupFlags(a,b) -#define IDirectPlay3_GetGroupParent(p,a,b) (p)->GetGroupParent(a,b) -#define IDirectPlay3_GetPlayerAccount(p,a,b,c,d) (p)->GetPlayerAccount(a,b,c,d) -#define IDirectPlay3_GetPlayerFlags(p,a,b) (p)->GetPlayerFlags(a,b) - -#endif - -/**************************************************************************** - * - * IDirectPlay4 (and IDirectPlay4A) Interface - * - ****************************************************************************/ - -#undef INTERFACE -#define INTERFACE IDirectPlay4 -DECLARE_INTERFACE_( IDirectPlay4, IDirectPlay3 ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectPlay2 methods ***/ - STDMETHOD(AddPlayerToGroup) (THIS_ DPID, DPID) PURE; - STDMETHOD(Close) (THIS) PURE; - STDMETHOD(CreateGroup) (THIS_ LPDPID,LPDPNAME,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(CreatePlayer) (THIS_ LPDPID,LPDPNAME,HANDLE,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID,DPID) PURE; - STDMETHOD(DestroyGroup) (THIS_ DPID) PURE; - STDMETHOD(DestroyPlayer) (THIS_ DPID) PURE; - STDMETHOD(EnumGroupPlayers) (THIS_ DPID,LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(EnumGroups) (THIS_ LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(EnumPlayers) (THIS_ LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(EnumSessions) (THIS_ LPDPSESSIONDESC2,DWORD,LPDPENUMSESSIONSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(GetCaps) (THIS_ LPDPCAPS,DWORD) PURE; - STDMETHOD(GetGroupData) (THIS_ DPID,LPVOID,LPDWORD,DWORD) PURE; - STDMETHOD(GetGroupName) (THIS_ DPID,LPVOID,LPDWORD) PURE; - STDMETHOD(GetMessageCount) (THIS_ DPID, LPDWORD) PURE; - STDMETHOD(GetPlayerAddress) (THIS_ DPID,LPVOID,LPDWORD) PURE; - STDMETHOD(GetPlayerCaps) (THIS_ DPID,LPDPCAPS,DWORD) PURE; - STDMETHOD(GetPlayerData) (THIS_ DPID,LPVOID,LPDWORD,DWORD) PURE; - STDMETHOD(GetPlayerName) (THIS_ DPID,LPVOID,LPDWORD) PURE; - STDMETHOD(GetSessionDesc) (THIS_ LPVOID,LPDWORD) PURE; - STDMETHOD(Initialize) (THIS_ LPGUID) PURE; - STDMETHOD(Open) (THIS_ LPDPSESSIONDESC2,DWORD) PURE; - STDMETHOD(Receive) (THIS_ LPDPID,LPDPID,DWORD,LPVOID,LPDWORD) PURE; - STDMETHOD(Send) (THIS_ DPID, DPID, DWORD, LPVOID, DWORD) PURE; - STDMETHOD(SetGroupData) (THIS_ DPID,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(SetGroupName) (THIS_ DPID,LPDPNAME,DWORD) PURE; - STDMETHOD(SetPlayerData) (THIS_ DPID,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(SetPlayerName) (THIS_ DPID,LPDPNAME,DWORD) PURE; - STDMETHOD(SetSessionDesc) (THIS_ LPDPSESSIONDESC2,DWORD) PURE; - /*** IDirectPlay3 methods ***/ - STDMETHOD(AddGroupToGroup) (THIS_ DPID, DPID) PURE; - STDMETHOD(CreateGroupInGroup) (THIS_ DPID,LPDPID,LPDPNAME,LPVOID,DWORD,DWORD) PURE; - STDMETHOD(DeleteGroupFromGroup) (THIS_ DPID,DPID) PURE; - STDMETHOD(EnumConnections) (THIS_ LPCGUID,LPDPENUMCONNECTIONSCALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(EnumGroupsInGroup) (THIS_ DPID,LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE; - STDMETHOD(GetGroupConnectionSettings)(THIS_ DWORD, DPID, LPVOID, LPDWORD) PURE; - STDMETHOD(InitializeConnection) (THIS_ LPVOID,DWORD) PURE; - STDMETHOD(SecureOpen) (THIS_ LPCDPSESSIONDESC2,DWORD,LPCDPSECURITYDESC,LPCDPCREDENTIALS) PURE; - STDMETHOD(SendChatMessage) (THIS_ DPID,DPID,DWORD,LPDPCHAT) PURE; - STDMETHOD(SetGroupConnectionSettings)(THIS_ DWORD,DPID,LPDPLCONNECTION) PURE; - STDMETHOD(StartSession) (THIS_ DWORD,DPID) PURE; - STDMETHOD(GetGroupFlags) (THIS_ DPID,LPDWORD) PURE; - STDMETHOD(GetGroupParent) (THIS_ DPID,LPDPID) PURE; - STDMETHOD(GetPlayerAccount) (THIS_ DPID, DWORD, LPVOID, LPDWORD) PURE; - STDMETHOD(GetPlayerFlags) (THIS_ DPID,LPDWORD) PURE; - /*** IDirectPlay4 methods ***/ - STDMETHOD(GetGroupOwner) (THIS_ DPID, LPDPID) PURE; - STDMETHOD(SetGroupOwner) (THIS_ DPID, DPID) PURE; - STDMETHOD(SendEx) (THIS_ DPID, DPID, DWORD, LPVOID, DWORD, DWORD, DWORD, LPVOID, DWORD_PTR *) PURE; - STDMETHOD(GetMessageQueue) (THIS_ DPID, DPID, DWORD, LPDWORD, LPDWORD) PURE; - STDMETHOD(CancelMessage) (THIS_ DWORD, DWORD) PURE; - STDMETHOD(CancelPriority) (THIS_ DWORD, DWORD, DWORD) PURE; -}; - -/**************************************************************************** - * - * IDirectPlayX interface macros (for IDirectPlay4 and beyond) - * - ****************************************************************************/ - -#if !defined(__cplusplus) || defined(CINTERFACE) - -#define IDirectPlayX_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlayX_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlayX_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlayX_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b) -#define IDirectPlayX_CancelMessage(p,a,b) (p)->lpVtbl->CancelMessage(p,a,b) -#define IDirectPlayX_CancelPriority(p,a,b,c) (p)->lpVtbl->CancelPriority(p,a,b,c) -#define IDirectPlayX_Close(p) (p)->lpVtbl->Close(p) -#define IDirectPlayX_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e) -#define IDirectPlayX_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f) -#define IDirectPlayX_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b) -#define IDirectPlayX_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a) -#define IDirectPlayX_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a) -#define IDirectPlayX_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e) -#define IDirectPlayX_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d) -#define IDirectPlayX_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d) -#define IDirectPlayX_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e) -#define IDirectPlayX_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) -#define IDirectPlayX_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b) -#define IDirectPlayX_GetMessageQueue(p,a,b,c,d,e) (p)->lpVtbl->GetMessageQueue(p,a,b,c,d,e) -#define IDirectPlayX_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d) -#define IDirectPlayX_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c) -#define IDirectPlayX_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c) -#define IDirectPlayX_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c) -#define IDirectPlayX_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d) -#define IDirectPlayX_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c) -#define IDirectPlayX_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b) -#define IDirectPlayX_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) -#define IDirectPlayX_Open(p,a,b) (p)->lpVtbl->Open(p,a,b) -#define IDirectPlayX_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e) -#define IDirectPlayX_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e) -#define IDirectPlayX_SendEx(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->SendEx(p,a,b,c,d,e,f,g,h,i) -#define IDirectPlayX_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d) -#define IDirectPlayX_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c) -#define IDirectPlayX_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d) -#define IDirectPlayX_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c) -#define IDirectPlayX_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b) -#define IDirectPlayX_AddGroupToGroup(p,a,b) (p)->lpVtbl->AddGroupToGroup(p,a,b) -#define IDirectPlayX_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->lpVtbl->CreateGroupInGroup(p,a,b,c,d,e,f) -#define IDirectPlayX_DeleteGroupFromGroup(p,a,b) (p)->lpVtbl->DeleteGroupFromGroup(p,a,b) -#define IDirectPlayX_EnumConnections(p,a,b,c,d) (p)->lpVtbl->EnumConnections(p,a,b,c,d) -#define IDirectPlayX_EnumGroupsInGroup(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupsInGroup(p,a,b,c,d,e) -#define IDirectPlayX_GetGroupConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetGroupConnectionSettings(p,a,b,c,d) -#define IDirectPlayX_InitializeConnection(p,a,b) (p)->lpVtbl->InitializeConnection(p,a,b) -#define IDirectPlayX_SecureOpen(p,a,b,c,d) (p)->lpVtbl->SecureOpen(p,a,b,c,d) -#define IDirectPlayX_SendChatMessage(p,a,b,c,d) (p)->lpVtbl->SendChatMessage(p,a,b,c,d) -#define IDirectPlayX_SetGroupConnectionSettings(p,a,b,c) (p)->lpVtbl->SetGroupConnectionSettings(p,a,b,c) -#define IDirectPlayX_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b) -#define IDirectPlayX_GetGroupFlags(p,a,b) (p)->lpVtbl->GetGroupFlags(p,a,b) -#define IDirectPlayX_GetGroupParent(p,a,b) (p)->lpVtbl->GetGroupParent(p,a,b) -#define IDirectPlayX_GetPlayerAccount(p,a,b,c,d) (p)->lpVtbl->GetPlayerAccount(p,a,b,c,d) -#define IDirectPlayX_GetPlayerFlags(p,a,b) (p)->lpVtbl->GetPlayerFlags(p,a,b) -#define IDirectPlayX_GetGroupOwner(p,a,b) (p)->lpVtbl->GetGroupOwner(p,a,b) -#define IDirectPlayX_SetGroupOwner(p,a,b) (p)->lpVtbl->SetGroupOwner(p,a,b) - -#else /* C++ */ - -#define IDirectPlayX_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlayX_AddRef(p) (p)->AddRef() -#define IDirectPlayX_Release(p) (p)->Release() -#define IDirectPlayX_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b) -#define IDirectPlayX_CancelMessage(p,a,b) (p)->CancelMessage(a,b) -#define IDirectPlayX_CancelPriority(p,a,b,c) (p)->CancelPriority(a,b,c) -#define IDirectPlayX_Close(p) (p)->Close() -#define IDirectPlayX_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e) -#define IDirectPlayX_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f) -#define IDirectPlayX_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b) -#define IDirectPlayX_DestroyGroup(p,a) (p)->DestroyGroup(a) -#define IDirectPlayX_DestroyPlayer(p,a) (p)->DestroyPlayer(a) -#define IDirectPlayX_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e) -#define IDirectPlayX_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d) -#define IDirectPlayX_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d) -#define IDirectPlayX_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e) -#define IDirectPlayX_GetCaps(p,a,b) (p)->GetCaps(a,b) -#define IDirectPlayX_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b) -#define IDirectPlayX_GetMessageQueue(p,a,b,c,d,e) (p)->GetMessageQueue(a,b,c,d,e) -#define IDirectPlayX_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d) -#define IDirectPlayX_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c) -#define IDirectPlayX_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c) -#define IDirectPlayX_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c) -#define IDirectPlayX_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d) -#define IDirectPlayX_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c) -#define IDirectPlayX_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b) -#define IDirectPlayX_Initialize(p,a) (p)->Initialize(a) -#define IDirectPlayX_Open(p,a,b) (p)->Open(a,b) -#define IDirectPlayX_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e) -#define IDirectPlayX_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e) -#define IDirectPlayX_SendEx(p,a,b,c,d,e,f,g,h,i) (p)->SendEx(a,b,c,d,e,f,g,h,i) -#define IDirectPlayX_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d) -#define IDirectPlayX_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c) -#define IDirectPlayX_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d) -#define IDirectPlayX_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c) -#define IDirectPlayX_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b) -#define IDirectPlayX_AddGroupToGroup(p,a,b) (p)->AddGroupToGroup(a,b) -#define IDirectPlayX_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->CreateGroupInGroup(a,b,c,d,e,f) -#define IDirectPlayX_DeleteGroupFromGroup(p,a,b) (p)->DeleteGroupFromGroup(a,b) -#define IDirectPlayX_EnumConnections(p,a,b,c,d) (p)->EnumConnections(a,b,c,d) -#define IDirectPlayX_EnumGroupsInGroup(p,a,b,c,d,e) (p)->EnumGroupsInGroup(a,b,c,d,e) -#define IDirectPlayX_GetGroupConnectionSettings(p,a,b,c,d) (p)->GetGroupConnectionSettings(a,b,c,d) -#define IDirectPlayX_InitializeConnection(p,a,b) (p)->InitializeConnection(a,b) -#define IDirectPlayX_SecureOpen(p,a,b,c,d) (p)->SecureOpen(a,b,c,d) -#define IDirectPlayX_SendChatMessage(p,a,b,c,d) (p)->SendChatMessage(a,b,c,d) -#define IDirectPlayX_SetGroupConnectionSettings(p,a,b,c) (p)->SetGroupConnectionSettings(a,b,c) -#define IDirectPlayX_StartSession(p,a,b) (p)->StartSession(a,b) -#define IDirectPlayX_GetGroupFlags(p,a,b) (p)->GetGroupFlags(a,b) -#define IDirectPlayX_GetGroupParent(p,a,b) (p)->GetGroupParent(a,b) -#define IDirectPlayX_GetPlayerAccount(p,a,b,c,d) (p)->GetPlayerAccount(a,b,c,d) -#define IDirectPlayX_GetPlayerFlags(p,a,b) (p)->GetPlayerFlags(a,b) -#define IDirectPlayX_GetGroupOwner(p,a,b) (p)->GetGroupOwner(a,b) -#define IDirectPlayX_SetGroupOwner(p,a,b) (p)->SetGroupOwner(a,b) - -#endif - -/**************************************************************************** - * - * EnumConnections API flags - * - ****************************************************************************/ - -/* - * Enumerate Service Providers - */ -#define DPCONNECTION_DIRECTPLAY 0x00000001 - -/* - * Enumerate Lobby Providers - */ -#define DPCONNECTION_DIRECTPLAYLOBBY 0x00000002 - - -/**************************************************************************** - * - * EnumPlayers API flags - * - ****************************************************************************/ - -/* - * Enumerate all players in the current session - */ -#define DPENUMPLAYERS_ALL 0x00000000 -#define DPENUMGROUPS_ALL DPENUMPLAYERS_ALL - - -/* - * Enumerate only local (created by this application) players - * or groups - */ -#define DPENUMPLAYERS_LOCAL 0x00000008 -#define DPENUMGROUPS_LOCAL DPENUMPLAYERS_LOCAL - -/* - * Enumerate only remote (non-local) players - * or groups - */ -#define DPENUMPLAYERS_REMOTE 0x00000010 -#define DPENUMGROUPS_REMOTE DPENUMPLAYERS_REMOTE - -/* - * Enumerate groups along with the players - */ -#define DPENUMPLAYERS_GROUP 0x00000020 - -/* - * Enumerate players or groups in another session - * (must supply lpguidInstance) - */ -#define DPENUMPLAYERS_SESSION 0x00000080 -#define DPENUMGROUPS_SESSION DPENUMPLAYERS_SESSION - -/* - * Enumerate server players - */ -#define DPENUMPLAYERS_SERVERPLAYER 0x00000100 - -/* - * Enumerate spectator players - */ -#define DPENUMPLAYERS_SPECTATOR 0x00000200 - -/* - * Enumerate shortcut groups - */ -#define DPENUMGROUPS_SHORTCUT 0x00000400 - -/* - * Enumerate staging area groups - */ -#define DPENUMGROUPS_STAGINGAREA 0x00000800 - -/* - * Enumerate hidden groups - */ -#define DPENUMGROUPS_HIDDEN 0x00001000 - -/* - * Enumerate the group's owner - */ -#define DPENUMPLAYERS_OWNER 0x00002000 - - -/**************************************************************************** - * - * CreatePlayer API flags - * - ****************************************************************************/ - -/* - * This flag indicates that this player should be designated - * the server player. The app should specify this at CreatePlayer. - */ -#define DPPLAYER_SERVERPLAYER DPENUMPLAYERS_SERVERPLAYER - -/* - * This flag indicates that this player should be designated - * a spectator. The app should specify this at CreatePlayer. - */ -#define DPPLAYER_SPECTATOR DPENUMPLAYERS_SPECTATOR - -/* - * This flag indicates that this player was created locally. - * (returned from GetPlayerFlags) - */ -#define DPPLAYER_LOCAL DPENUMPLAYERS_LOCAL - -/* - * This flag indicates that this player is the group's owner - * (Only returned in EnumGroupPlayers) - */ -#define DPPLAYER_OWNER DPENUMPLAYERS_OWNER - -/**************************************************************************** - * - * CreateGroup API flags - * - ****************************************************************************/ - - -/* - * This flag indicates that the StartSession can be called on the group. - * The app should specify this at CreateGroup, or CreateGroupInGroup. - */ -#define DPGROUP_STAGINGAREA DPENUMGROUPS_STAGINGAREA - -/* - * This flag indicates that this group was created locally. - * (returned from GetGroupFlags) - */ -#define DPGROUP_LOCAL DPENUMGROUPS_LOCAL - -/* - * This flag indicates that this group was created hidden. - */ -#define DPGROUP_HIDDEN DPENUMGROUPS_HIDDEN - - -/**************************************************************************** - * - * EnumSessions API flags - * - ****************************************************************************/ - -/* - * Enumerate sessions which can be joined - */ -#define DPENUMSESSIONS_AVAILABLE 0x00000001 - -/* - * Enumerate all sessions even if they can't be joined. - */ -#define DPENUMSESSIONS_ALL 0x00000002 - - -/* - * Start an asynchronous enum sessions - */ - #define DPENUMSESSIONS_ASYNC 0x00000010 - -/* - * Stop an asynchronous enum sessions - */ - #define DPENUMSESSIONS_STOPASYNC 0x00000020 - -/* - * Enumerate sessions even if they require a password - */ - #define DPENUMSESSIONS_PASSWORDREQUIRED 0x00000040 - -/* - * Return status about progress of enumeration instead of - * showing any status dialogs. - */ - #define DPENUMSESSIONS_RETURNSTATUS 0x00000080 - -/**************************************************************************** - * - * GetCaps and GetPlayerCaps API flags - * - ****************************************************************************/ - -/* - * The latency returned should be for guaranteed message sending. - * Default is non-guaranteed messaging. - */ -#define DPGETCAPS_GUARANTEED 0x00000001 - - -/**************************************************************************** - * - * GetGroupData, GetPlayerData API flags - * Remote and local Group/Player data is maintained separately. - * Default is DPGET_REMOTE. - * - ****************************************************************************/ - -/* - * Get the remote data (set by any DirectPlay object in - * the session using DPSET_REMOTE) - */ -#define DPGET_REMOTE 0x00000000 - -/* - * Get the local data (set by this DirectPlay object - * using DPSET_LOCAL) - */ -#define DPGET_LOCAL 0x00000001 - - -/**************************************************************************** - * - * Open API flags - * - ****************************************************************************/ - -/* - * Join the session that is described by the DPSESSIONDESC2 structure - */ -#define DPOPEN_JOIN 0x00000001 - -/* - * Create a new session as described by the DPSESSIONDESC2 structure - */ -#define DPOPEN_CREATE 0x00000002 - -/* - * Return status about progress of open instead of showing - * any status dialogs. - */ - #define DPOPEN_RETURNSTATUS DPENUMSESSIONS_RETURNSTATUS - - -/**************************************************************************** - * - * DPLCONNECTION flags - * - ****************************************************************************/ - -/* - * This application should create a new session as - * described by the DPSESIONDESC structure - */ -#define DPLCONNECTION_CREATESESSION DPOPEN_CREATE - -/* - * This application should join the session described by - * the DPSESIONDESC structure with the lpAddress data - */ -#define DPLCONNECTION_JOINSESSION DPOPEN_JOIN - -/**************************************************************************** - * - * Receive API flags - * Default is DPRECEIVE_ALL - * - ****************************************************************************/ - -/* - * Get the first message in the queue - */ -#define DPRECEIVE_ALL 0x00000001 - -/* - * Get the first message in the queue directed to a specific player - */ -#define DPRECEIVE_TOPLAYER 0x00000002 - -/* - * Get the first message in the queue from a specific player - */ -#define DPRECEIVE_FROMPLAYER 0x00000004 - -/* - * Get the message but don't remove it from the queue - */ -#define DPRECEIVE_PEEK 0x00000008 - - -/**************************************************************************** - * - * Send API flags - * - ****************************************************************************/ - -/* - * Send the message using a guaranteed send method. - * Default is non-guaranteed. - */ -#define DPSEND_GUARANTEED 0x00000001 - - -/* - * This flag is obsolete. It is ignored by DirectPlay - */ -#define DPSEND_HIGHPRIORITY 0x00000002 - -/* - * This flag is obsolete. It is ignored by DirectPlay - */ -#define DPSEND_OPENSTREAM 0x00000008 - -/* - * This flag is obsolete. It is ignored by DirectPlay - */ -#define DPSEND_CLOSESTREAM 0x00000010 - -/* - * Send the message digitally signed to ensure authenticity. - */ -#define DPSEND_SIGNED 0x00000020 - -/* - * Send the message with encryption to ensure privacy. - */ -#define DPSEND_ENCRYPTED 0x00000040 - -/* - * The message is a lobby system message - */ -#define DPSEND_LOBBYSYSTEMMESSAGE 0x00000080 - - -/* - * Send message asynchronously, must check caps - * before using this flag. It is always provided - * if the protocol flag is set. - */ -#define DPSEND_ASYNC 0x00000200 - -/* - * When an message is completed, don't tell me. - * by default the application is notified with a system message. - */ -#define DPSEND_NOSENDCOMPLETEMSG 0x00000400 - - -/* - * Maximum priority for sends available to applications - */ -#define DPSEND_MAX_PRI 0x0000FFFF -#define DPSEND_MAX_PRIORITY DPSEND_MAX_PRI - - -/**************************************************************************** - * - * SetGroupData, SetGroupName, SetPlayerData, SetPlayerName, - * SetSessionDesc API flags. - * Default is DPSET_REMOTE. - * - ****************************************************************************/ - -/* - * Propagate the data to all players in the session - */ -#define DPSET_REMOTE 0x00000000 - -/* - * Do not propagate the data to other players - */ -#define DPSET_LOCAL 0x00000001 - -/* - * Used with DPSET_REMOTE, use guaranteed message send to - * propagate the data - */ -#define DPSET_GUARANTEED 0x00000002 - -/**************************************************************************** - * - * GetMessageQueue API flags. - * Default is DPMESSAGEQUEUE_SEND - * - ****************************************************************************/ - -/* - * Get Send Queue - requires Service Provider Support - */ -#define DPMESSAGEQUEUE_SEND 0x00000001 - -/* - * Get Receive Queue - */ -#define DPMESSAGEQUEUE_RECEIVE 0x00000002 - - -/**************************************************************************** - * - * Connect API flags - * - ****************************************************************************/ - - -/* - * Start an asynchronous connect which returns status codes - */ -#define DPCONNECT_RETURNSTATUS (DPENUMSESSIONS_RETURNSTATUS) - - -/**************************************************************************** - * - * DirectPlay system messages and message data structures - * - * All system message come 'From' player DPID_SYSMSG. To determine what type - * of message it is, cast the lpData from Receive to DPMSG_GENERIC and check - * the dwType member against one of the following DPSYS_xxx constants. Once - * a match is found, cast the lpData to the corresponding of the DPMSG_xxx - * structures to access the data of the message. - * - ****************************************************************************/ - -/* - * A new player or group has been created in the session - * Use DPMSG_CREATEPLAYERORGROUP. Check dwPlayerType to see if it - * is a player or a group. - */ -#define DPSYS_CREATEPLAYERORGROUP 0x0003 - -/* - * A player has been deleted from the session - * Use DPMSG_DESTROYPLAYERORGROUP - */ -#define DPSYS_DESTROYPLAYERORGROUP 0x0005 - -/* - * A player has been added to a group - * Use DPMSG_ADDPLAYERTOGROUP - */ -#define DPSYS_ADDPLAYERTOGROUP 0x0007 - -/* - * A player has been removed from a group - * Use DPMSG_DELETEPLAYERFROMGROUP - */ -#define DPSYS_DELETEPLAYERFROMGROUP 0x0021 - -/* - * This DirectPlay object lost its connection with all the - * other players in the session. - * Use DPMSG_SESSIONLOST. - */ -#define DPSYS_SESSIONLOST 0x0031 - -/* - * The current host has left the session. - * This DirectPlay object is now the host. - * Use DPMSG_HOST. - */ -#define DPSYS_HOST 0x0101 - -/* - * The remote data associated with a player or - * group has changed. Check dwPlayerType to see - * if it is a player or a group - * Use DPMSG_SETPLAYERORGROUPDATA - */ -#define DPSYS_SETPLAYERORGROUPDATA 0x0102 - -/* - * The name of a player or group has changed. - * Check dwPlayerType to see if it is a player - * or a group. - * Use DPMSG_SETPLAYERORGROUPNAME - */ -#define DPSYS_SETPLAYERORGROUPNAME 0x0103 - -/* - * The session description has changed. - * Use DPMSG_SETSESSIONDESC - */ -#define DPSYS_SETSESSIONDESC 0x0104 - -/* - * A group has been added to a group - * Use DPMSG_ADDGROUPTOGROUP - */ -#define DPSYS_ADDGROUPTOGROUP 0x0105 - -/* - * A group has been removed from a group - * Use DPMSG_DELETEGROUPFROMGROUP - */ -#define DPSYS_DELETEGROUPFROMGROUP 0x0106 - -/* - * A secure player-player message has arrived. - * Use DPMSG_SECUREMESSAGE - */ -#define DPSYS_SECUREMESSAGE 0x0107 - -/* - * Start a new session. - * Use DPMSG_STARTSESSION - */ -#define DPSYS_STARTSESSION 0x0108 - -/* - * A chat message has arrived - * Use DPMSG_CHAT - */ -#define DPSYS_CHAT 0x0109 - -/* - * The owner of a group has changed - * Use DPMSG_SETGROUPOWNER - */ -#define DPSYS_SETGROUPOWNER 0x010A - -/* - * An async send has finished, failed or been cancelled - * Use DPMSG_SENDCOMPLETE - */ -#define DPSYS_SENDCOMPLETE 0x010d - - -/* - * Used in the dwPlayerType field to indicate if it applies to a group - * or a player - */ -#define DPPLAYERTYPE_GROUP 0x00000000 -#define DPPLAYERTYPE_PLAYER 0x00000001 - - -/* - * DPMSG_GENERIC - * Generic message structure used to identify the message type. - */ -typedef struct -{ - DWORD dwType; // Message type -} DPMSG_GENERIC, FAR *LPDPMSG_GENERIC; - -/* - * DPMSG_CREATEPLAYERORGROUP - * System message generated when a new player or group - * created in the session with information about it. - */ -typedef struct -{ - DWORD dwType; // Message type - DWORD dwPlayerType; // Is it a player or group - DPID dpId; // ID of the player or group - DWORD dwCurrentPlayers; // current # players & groups in session - LPVOID lpData; // pointer to remote data - DWORD dwDataSize; // size of remote data - DPNAME dpnName; // structure with name info - // the following fields are only available when using - // the IDirectPlay3 interface or greater - DPID dpIdParent; // id of parent group - DWORD dwFlags; // player or group flags -} DPMSG_CREATEPLAYERORGROUP, FAR *LPDPMSG_CREATEPLAYERORGROUP; - -/* - * DPMSG_DESTROYPLAYERORGROUP - * System message generated when a player or group is being - * destroyed in the session with information about it. - */ -typedef struct -{ - DWORD dwType; // Message type - DWORD dwPlayerType; // Is it a player or group - DPID dpId; // player ID being deleted - LPVOID lpLocalData; // copy of players local data - DWORD dwLocalDataSize; // sizeof local data - LPVOID lpRemoteData; // copy of players remote data - DWORD dwRemoteDataSize; // sizeof remote data - // the following fields are only available when using - // the IDirectPlay3 interface or greater - DPNAME dpnName; // structure with name info - DPID dpIdParent; // id of parent group - DWORD dwFlags; // player or group flags -} DPMSG_DESTROYPLAYERORGROUP, FAR *LPDPMSG_DESTROYPLAYERORGROUP; - -/* - * DPMSG_ADDPLAYERTOGROUP - * System message generated when a player is being added - * to a group. - */ -typedef struct -{ - DWORD dwType; // Message type - DPID dpIdGroup; // group ID being added to - DPID dpIdPlayer; // player ID being added -} DPMSG_ADDPLAYERTOGROUP, FAR *LPDPMSG_ADDPLAYERTOGROUP; - -/* - * DPMSG_DELETEPLAYERFROMGROUP - * System message generated when a player is being - * removed from a group - */ -typedef DPMSG_ADDPLAYERTOGROUP DPMSG_DELETEPLAYERFROMGROUP; -typedef DPMSG_DELETEPLAYERFROMGROUP FAR *LPDPMSG_DELETEPLAYERFROMGROUP; - -/* - * DPMSG_ADDGROUPTOGROUP - * System message generated when a group is being added - * to a group. - */ -typedef struct -{ - DWORD dwType; // Message type - DPID dpIdParentGroup; // group ID being added to - DPID dpIdGroup; // group ID being added -} DPMSG_ADDGROUPTOGROUP, FAR *LPDPMSG_ADDGROUPTOGROUP; - -/* - * DPMSG_DELETEGROUPFROMGROUP - * System message generated when a GROUP is being - * removed from a group - */ -typedef DPMSG_ADDGROUPTOGROUP DPMSG_DELETEGROUPFROMGROUP; -typedef DPMSG_DELETEGROUPFROMGROUP FAR *LPDPMSG_DELETEGROUPFROMGROUP; - -/* - * DPMSG_SETPLAYERORGROUPDATA - * System message generated when remote data for a player or - * group has changed. - */ -typedef struct -{ - DWORD dwType; // Message type - DWORD dwPlayerType; // Is it a player or group - DPID dpId; // ID of player or group - LPVOID lpData; // pointer to remote data - DWORD dwDataSize; // size of remote data -} DPMSG_SETPLAYERORGROUPDATA, FAR *LPDPMSG_SETPLAYERORGROUPDATA; - -/* - * DPMSG_SETPLAYERORGROUPNAME - * System message generated when the name of a player or - * group has changed. - */ -typedef struct -{ - DWORD dwType; // Message type - DWORD dwPlayerType; // Is it a player or group - DPID dpId; // ID of player or group - DPNAME dpnName; // structure with new name info -} DPMSG_SETPLAYERORGROUPNAME, FAR *LPDPMSG_SETPLAYERORGROUPNAME; - -/* - * DPMSG_SETSESSIONDESC - * System message generated when session desc has changed - */ -typedef struct -{ - DWORD dwType; // Message type - DPSESSIONDESC2 dpDesc; // Session desc -} DPMSG_SETSESSIONDESC, FAR *LPDPMSG_SETSESSIONDESC; - -/* - * DPMSG_HOST - * System message generated when the host has migrated to this - * DirectPlay object. - * - */ -typedef DPMSG_GENERIC DPMSG_HOST; -typedef DPMSG_HOST FAR *LPDPMSG_HOST; - -/* - * DPMSG_SESSIONLOST - * System message generated when the connection to the session is lost. - * - */ -typedef DPMSG_GENERIC DPMSG_SESSIONLOST; -typedef DPMSG_SESSIONLOST FAR *LPDPMSG_SESSIONLOST; - -/* - * DPMSG_SECUREMESSAGE - * System message generated when a player requests a secure send - */ -typedef struct -{ - DWORD dwType; // Message Type - DWORD dwFlags; // Signed/Encrypted - DPID dpIdFrom; // ID of Sending Player - LPVOID lpData; // Player message - DWORD dwDataSize; // Size of player message -} DPMSG_SECUREMESSAGE, FAR *LPDPMSG_SECUREMESSAGE; - -/* - * DPMSG_STARTSESSION - * System message containing all information required to - * start a new session - */ -typedef struct -{ - DWORD dwType; // Message type - LPDPLCONNECTION lpConn; // DPLCONNECTION structure -} DPMSG_STARTSESSION, FAR *LPDPMSG_STARTSESSION; - -/* - * DPMSG_CHAT - * System message containing a chat message - */ -typedef struct -{ - DWORD dwType; // Message type - DWORD dwFlags; // Message flags - DPID idFromPlayer; // ID of the Sending Player - DPID idToPlayer; // ID of the To Player - DPID idToGroup; // ID of the To Group - LPDPCHAT lpChat; // Pointer to a structure containing the chat message -} DPMSG_CHAT, FAR *LPDPMSG_CHAT; - -/* - * DPMSG_SETGROUPOWNER - * System message generated when the owner of a group has changed - */ -typedef struct -{ - DWORD dwType; // Message type - DPID idGroup; // ID of the group - DPID idNewOwner; // ID of the player that is the new owner - DPID idOldOwner; // ID of the player that used to be the owner -} DPMSG_SETGROUPOWNER, FAR *LPDPMSG_SETGROUPOWNER; - -/* - * DPMSG_SENDCOMPLETE - * System message generated when finished with an Async Send message - * - * NOTE SENDPARMS has an overlay for DPMSG_SENDCOMPLETE, don't - * change this message w/o changing SENDPARMS. - */ -typedef struct -{ - DWORD dwType; - DPID idFrom; - DPID idTo; - DWORD dwFlags; - DWORD dwPriority; - DWORD dwTimeout; - LPVOID lpvContext; - DWORD dwMsgID; - HRESULT hr; - DWORD dwSendTime; -} DPMSG_SENDCOMPLETE, *LPDPMSG_SENDCOMPLETE; - -/**************************************************************************** - * - * DIRECTPLAY ERRORS - * - * Errors are represented by negative values and cannot be combined. - * - ****************************************************************************/ -#define DP_OK S_OK -#define DPERR_ALREADYINITIALIZED MAKE_DPHRESULT( 5 ) -#define DPERR_ACCESSDENIED MAKE_DPHRESULT( 10 ) -#define DPERR_ACTIVEPLAYERS MAKE_DPHRESULT( 20 ) -#define DPERR_BUFFERTOOSMALL MAKE_DPHRESULT( 30 ) -#define DPERR_CANTADDPLAYER MAKE_DPHRESULT( 40 ) -#define DPERR_CANTCREATEGROUP MAKE_DPHRESULT( 50 ) -#define DPERR_CANTCREATEPLAYER MAKE_DPHRESULT( 60 ) -#define DPERR_CANTCREATESESSION MAKE_DPHRESULT( 70 ) -#define DPERR_CAPSNOTAVAILABLEYET MAKE_DPHRESULT( 80 ) -#define DPERR_EXCEPTION MAKE_DPHRESULT( 90 ) -#define DPERR_GENERIC E_FAIL -#define DPERR_INVALIDFLAGS MAKE_DPHRESULT( 120 ) -#define DPERR_INVALIDOBJECT MAKE_DPHRESULT( 130 ) -#define DPERR_INVALIDPARAM E_INVALIDARG -#define DPERR_INVALIDPARAMS DPERR_INVALIDPARAM -#define DPERR_INVALIDPLAYER MAKE_DPHRESULT( 150 ) -#define DPERR_INVALIDGROUP MAKE_DPHRESULT( 155 ) -#define DPERR_NOCAPS MAKE_DPHRESULT( 160 ) -#define DPERR_NOCONNECTION MAKE_DPHRESULT( 170 ) -#define DPERR_NOMEMORY E_OUTOFMEMORY -#define DPERR_OUTOFMEMORY DPERR_NOMEMORY -#define DPERR_NOMESSAGES MAKE_DPHRESULT( 190 ) -#define DPERR_NONAMESERVERFOUND MAKE_DPHRESULT( 200 ) -#define DPERR_NOPLAYERS MAKE_DPHRESULT( 210 ) -#define DPERR_NOSESSIONS MAKE_DPHRESULT( 220 ) -#define DPERR_PENDING E_PENDING -#define DPERR_SENDTOOBIG MAKE_DPHRESULT( 230 ) -#define DPERR_TIMEOUT MAKE_DPHRESULT( 240 ) -#define DPERR_UNAVAILABLE MAKE_DPHRESULT( 250 ) -#define DPERR_UNSUPPORTED E_NOTIMPL -#define DPERR_BUSY MAKE_DPHRESULT( 270 ) -#define DPERR_USERCANCEL MAKE_DPHRESULT( 280 ) -#define DPERR_NOINTERFACE E_NOINTERFACE -#define DPERR_CANNOTCREATESERVER MAKE_DPHRESULT( 290 ) -#define DPERR_PLAYERLOST MAKE_DPHRESULT( 300 ) -#define DPERR_SESSIONLOST MAKE_DPHRESULT( 310 ) -#define DPERR_UNINITIALIZED MAKE_DPHRESULT( 320 ) -#define DPERR_NONEWPLAYERS MAKE_DPHRESULT( 330 ) -#define DPERR_INVALIDPASSWORD MAKE_DPHRESULT( 340 ) -#define DPERR_CONNECTING MAKE_DPHRESULT( 350 ) -#define DPERR_CONNECTIONLOST MAKE_DPHRESULT( 360 ) -#define DPERR_UNKNOWNMESSAGE MAKE_DPHRESULT( 370 ) -#define DPERR_CANCELFAILED MAKE_DPHRESULT( 380 ) -#define DPERR_INVALIDPRIORITY MAKE_DPHRESULT( 390 ) -#define DPERR_NOTHANDLED MAKE_DPHRESULT( 400 ) -#define DPERR_CANCELLED MAKE_DPHRESULT( 410 ) -#define DPERR_ABORTED MAKE_DPHRESULT( 420 ) - - -#define DPERR_BUFFERTOOLARGE MAKE_DPHRESULT( 1000 ) -#define DPERR_CANTCREATEPROCESS MAKE_DPHRESULT( 1010 ) -#define DPERR_APPNOTSTARTED MAKE_DPHRESULT( 1020 ) -#define DPERR_INVALIDINTERFACE MAKE_DPHRESULT( 1030 ) -#define DPERR_NOSERVICEPROVIDER MAKE_DPHRESULT( 1040 ) -#define DPERR_UNKNOWNAPPLICATION MAKE_DPHRESULT( 1050 ) -#define DPERR_NOTLOBBIED MAKE_DPHRESULT( 1070 ) -#define DPERR_SERVICEPROVIDERLOADED MAKE_DPHRESULT( 1080 ) -#define DPERR_ALREADYREGISTERED MAKE_DPHRESULT( 1090 ) -#define DPERR_NOTREGISTERED MAKE_DPHRESULT( 1100 ) - -// -// Security related errors -// -#define DPERR_AUTHENTICATIONFAILED MAKE_DPHRESULT( 2000 ) -#define DPERR_CANTLOADSSPI MAKE_DPHRESULT( 2010 ) -#define DPERR_ENCRYPTIONFAILED MAKE_DPHRESULT( 2020 ) -#define DPERR_SIGNFAILED MAKE_DPHRESULT( 2030 ) -#define DPERR_CANTLOADSECURITYPACKAGE MAKE_DPHRESULT( 2040 ) -#define DPERR_ENCRYPTIONNOTSUPPORTED MAKE_DPHRESULT( 2050 ) -#define DPERR_CANTLOADCAPI MAKE_DPHRESULT( 2060 ) -#define DPERR_NOTLOGGEDIN MAKE_DPHRESULT( 2070 ) -#define DPERR_LOGONDENIED MAKE_DPHRESULT( 2080 ) - - -/**************************************************************************** - * - * dplay 1.0 obsolete structures + interfaces - * Included for compatibility only. New apps should - * use IDirectPlay2 - * - ****************************************************************************/ - -// define this to ignore obsolete interfaces and constants -#ifndef IDIRECTPLAY2_OR_GREATER - -#define DPOPEN_OPENSESSION DPOPEN_JOIN -#define DPOPEN_CREATESESSION DPOPEN_CREATE - -#define DPENUMSESSIONS_PREVIOUS 0x00000004 - -#define DPENUMPLAYERS_PREVIOUS 0x00000004 - -#define DPSEND_GUARANTEE DPSEND_GUARANTEED -#define DPSEND_TRYONCE 0x00000004 - -#define DPCAPS_NAMESERVICE 0x00000001 -#define DPCAPS_NAMESERVER DPCAPS_ISHOST -#define DPCAPS_GUARANTEED 0x00000004 - -#define DPLONGNAMELEN 52 -#define DPSHORTNAMELEN 20 -#define DPSESSIONNAMELEN 32 -#define DPPASSWORDLEN 16 -#define DPUSERRESERVED 16 - -#define DPSYS_ADDPLAYER 0x0003 -#define DPSYS_DELETEPLAYER 0x0005 - -#define DPSYS_DELETEGROUP 0x0020 -#define DPSYS_DELETEPLAYERFROMGRP 0x0021 -#define DPSYS_CONNECT 0x484b - -typedef struct -{ - DWORD dwType; - DWORD dwPlayerType; - DPID dpId; - char szLongName[DPLONGNAMELEN]; - char szShortName[DPSHORTNAMELEN]; - DWORD dwCurrentPlayers; -} DPMSG_ADDPLAYER; - -typedef DPMSG_ADDPLAYER DPMSG_ADDGROUP; - -typedef struct -{ - DWORD dwType; - DPID dpIdGroup; - DPID dpIdPlayer; -} DPMSG_GROUPADD; - -typedef DPMSG_GROUPADD DPMSG_GROUPDELETE; -typedef struct -{ - DWORD dwType; - DPID dpId; -} DPMSG_DELETEPLAYER; - -typedef BOOL (PASCAL *LPDPENUMPLAYERSCALLBACK)( - DPID dpId, - LPSTR lpFriendlyName, - LPSTR lpFormalName, - DWORD dwFlags, - LPVOID lpContext ); - -typedef struct -{ - DWORD dwSize; - GUID guidSession; - DWORD_PTR dwSession; - DWORD dwMaxPlayers; - DWORD dwCurrentPlayers; - DWORD dwFlags; - char szSessionName[DPSESSIONNAMELEN]; - char szUserField[DPUSERRESERVED]; - DWORD_PTR dwReserved1; - char szPassword[DPPASSWORDLEN]; - DWORD_PTR dwReserved2; - DWORD_PTR dwUser1; - DWORD_PTR dwUser2; - DWORD_PTR dwUser3; - DWORD_PTR dwUser4; -} DPSESSIONDESC,*LPDPSESSIONDESC; - -typedef BOOL (PASCAL * LPDPENUMSESSIONSCALLBACK)( - LPDPSESSIONDESC lpDPSessionDesc, - LPVOID lpContext, - LPDWORD lpdwTimeOut, - DWORD dwFlags); - -/* - * IDirectPlay - */ -#undef INTERFACE -#define INTERFACE IDirectPlay -DECLARE_INTERFACE_( IDirectPlay, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectPlay methods ***/ - STDMETHOD(AddPlayerToGroup) (THIS_ DPID, DPID) PURE; - STDMETHOD(Close) (THIS) PURE; - STDMETHOD(CreatePlayer) (THIS_ LPDPID,LPSTR,LPSTR,LPHANDLE) PURE; - STDMETHOD(CreateGroup) (THIS_ LPDPID,LPSTR,LPSTR) PURE; - STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID,DPID) PURE; - STDMETHOD(DestroyPlayer) (THIS_ DPID) PURE; - STDMETHOD(DestroyGroup) (THIS_ DPID) PURE; - STDMETHOD(EnableNewPlayers) (THIS_ BOOL) PURE; - STDMETHOD(EnumGroupPlayers) (THIS_ DPID, LPDPENUMPLAYERSCALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(EnumGroups) (THIS_ DWORD_PTR, LPDPENUMPLAYERSCALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(EnumPlayers) (THIS_ DWORD_PTR, LPDPENUMPLAYERSCALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(EnumSessions) (THIS_ LPDPSESSIONDESC,DWORD,LPDPENUMSESSIONSCALLBACK,LPVOID,DWORD) PURE; - STDMETHOD(GetCaps) (THIS_ LPDPCAPS) PURE; - STDMETHOD(GetMessageCount) (THIS_ DPID, LPDWORD) PURE; - STDMETHOD(GetPlayerCaps) (THIS_ DPID, LPDPCAPS) PURE; - STDMETHOD(GetPlayerName) (THIS_ DPID,LPSTR,LPDWORD,LPSTR,LPDWORD) PURE; - STDMETHOD(Initialize) (THIS_ LPGUID) PURE; - STDMETHOD(Open) (THIS_ LPDPSESSIONDESC) PURE; - STDMETHOD(Receive) (THIS_ LPDPID,LPDPID,DWORD,LPVOID,LPDWORD) PURE; - STDMETHOD(SaveSession) (THIS_ LPSTR) PURE; - STDMETHOD(Send) (THIS_ DPID, DPID, DWORD, LPVOID, DWORD) PURE; - STDMETHOD(SetPlayerName) (THIS_ DPID,LPSTR,LPSTR) PURE; -}; - -/**************************************************************************** - * - * IDirectPlay interface macros - * - ****************************************************************************/ - -#if !defined(__cplusplus) || defined(CINTERFACE) - -#define IDirectPlay_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b) -#define IDirectPlay_Close(p) (p)->lpVtbl->Close(p) -#define IDirectPlay_CreateGroup(p,a,b,c) (p)->lpVtbl->CreateGroup(p,a,b,c) -#define IDirectPlay_CreatePlayer(p,a,b,c,d) (p)->lpVtbl->CreatePlayer(p,a,b,c,d) -#define IDirectPlay_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b) -#define IDirectPlay_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a) -#define IDirectPlay_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a) -#define IDirectPlay_EnableNewPlayers(p,a) (p)->lpVtbl->EnableNewPlayers(p,a) -#define IDirectPlay_EnumGroupPlayers(p,a,b,c,d) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d) -#define IDirectPlay_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d) -#define IDirectPlay_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d) -#define IDirectPlay_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e) -#define IDirectPlay_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) -#define IDirectPlay_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b) -#define IDirectPlay_GetPlayerCaps(p,a,b) (p)->lpVtbl->GetPlayerCaps(p,a,b) -#define IDirectPlay_GetPlayerName(p,a,b,c,d,e) (p)->lpVtbl->GetPlayerName(p,a,b,c,d,e) -#define IDirectPlay_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) -#define IDirectPlay_Open(p,a) (p)->lpVtbl->Open(p,a) -#define IDirectPlay_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e) -#define IDirectPlay_SaveSession(p,a) (p)->lpVtbl->SaveSession(p,a) -#define IDirectPlay_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e) -#define IDirectPlay_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c) - -#else /* C++ */ - -#define IDirectPlay_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b) -#define IDirectPlay_Close(p) (p)->Close() -#define IDirectPlay_CreateGroup(p,a,b,c) (p)->CreateGroup(a,b,c) -#define IDirectPlay_CreatePlayer(p,a,b,c,d) (p)->CreatePlayer(a,b,c,d) -#define IDirectPlay_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b) -#define IDirectPlay_DestroyGroup(p,a) (p)->DestroyGroup(a) -#define IDirectPlay_DestroyPlayer(p,a) (p)->DestroyPlayer(a) -#define IDirectPlay_EnableNewPlayers(p,a) (p)->EnableNewPlayers(a) -#define IDirectPlay_EnumGroupPlayers(p,a,b,c,d) (p)->EnumGroupPlayers(a,b,c,d) -#define IDirectPlay_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d) -#define IDirectPlay_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d) -#define IDirectPlay_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e) -#define IDirectPlay_GetCaps(p,a) (p)->GetCaps(a) -#define IDirectPlay_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b) -#define IDirectPlay_GetPlayerCaps(p,a,b) (p)->GetPlayerCaps(a,b) -#define IDirectPlay_GetPlayerName(p,a,b,c,d,e) (p)->GetPlayerName(a,b,c,d,e) -#define IDirectPlay_Initialize(p,a) (p)->Initialize(a) -#define IDirectPlay_Open(p,a) (p)->Open(a) -#define IDirectPlay_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e) -#define IDirectPlay_SaveSession(p,a) (p)->SaveSession(a) -#define IDirectPlay_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e) -#define IDirectPlay_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c) - -#endif - -DEFINE_GUID(IID_IDirectPlay, 0x5454e9a0, 0xdb65, 0x11ce, 0x92, 0x1c, 0x00, 0xaa, 0x00, 0x6c, 0x49, 0x72); - -#endif // IDIRECTPLAY2_OR_GREATER - -/**************************************************************************** - * - * IDirectPlay macros (included regardless of IDIRECTPLAY2_OR_GREATER flag) - * - ****************************************************************************/ - -#if !defined(__cplusplus) || defined(CINTERFACE) - -#define IDirectPlay_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlay_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlay_Release(p) (p)->lpVtbl->Release(p) - -#else - -#define IDirectPlay_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlay_AddRef(p) (p)->AddRef() -#define IDirectPlay_Release(p) (p)->Release() - -#endif // IDirectPlay interface macros - -#ifdef __cplusplus -}; -#endif - -/* restore warning settings */ -#if _MSC_VER >= 1200 -#pragma warning(pop) -#else -#pragma warning(default:4201) -#endif - -#endif - diff --git a/sdk/dx8sdk/Include/dplay8.h b/sdk/dx8sdk/Include/dplay8.h deleted file mode 100644 index c6799a9d..00000000 --- a/sdk/dx8sdk/Include/dplay8.h +++ /dev/null @@ -1,1456 +0,0 @@ -/*========================================================================== - * - * Copyright (C) 1998-2002 Microsoft Corporation. All Rights Reserved. - * - * File: DPlay8.h - * Content: DirectPlay8 include file - * - ***************************************************************************/ - -#ifndef __DIRECTPLAY8_H__ -#define __DIRECTPLAY8_H__ - -#include // for DECLARE_INTERFACE_ and HRESULT - -#include "dpaddr.h" - - -#ifdef __cplusplus -extern "C" { -#endif - - - -/**************************************************************************** - * - * DirectPlay8 CLSIDs - * - ****************************************************************************/ - -// {743F1DC6-5ABA-429f-8BDF-C54D03253DC2} -DEFINE_GUID(CLSID_DirectPlay8Client, -0x743f1dc6, 0x5aba, 0x429f, 0x8b, 0xdf, 0xc5, 0x4d, 0x3, 0x25, 0x3d, 0xc2); - -// {DA825E1B-6830-43d7-835D-0B5AD82956A2} -DEFINE_GUID(CLSID_DirectPlay8Server, -0xda825e1b, 0x6830, 0x43d7, 0x83, 0x5d, 0xb, 0x5a, 0xd8, 0x29, 0x56, 0xa2); - -// {286F484D-375E-4458-A272-B138E2F80A6A} -DEFINE_GUID(CLSID_DirectPlay8Peer, -0x286f484d, 0x375e, 0x4458, 0xa2, 0x72, 0xb1, 0x38, 0xe2, 0xf8, 0xa, 0x6a); - - -// CLSIDs added for DirectX 9 - -// {FC47060E-6153-4b34-B975-8E4121EB7F3C} -DEFINE_GUID(CLSID_DirectPlay8ThreadPool, -0xfc47060e, 0x6153, 0x4b34, 0xb9, 0x75, 0x8e, 0x41, 0x21, 0xeb, 0x7f, 0x3c); - -// {E4C1D9A2-CBF7-48bd-9A69-34A55E0D8941} -DEFINE_GUID(CLSID_DirectPlay8NATResolver, -0xe4c1d9a2, 0xcbf7, 0x48bd, 0x9a, 0x69, 0x34, 0xa5, 0x5e, 0xd, 0x89, 0x41); - -/**************************************************************************** - * - * DirectPlay8 Interface IIDs - * - ****************************************************************************/ - -typedef REFIID DP8REFIID; - - -// {5102DACD-241B-11d3-AEA7-006097B01411} -DEFINE_GUID(IID_IDirectPlay8Client, -0x5102dacd, 0x241b, 0x11d3, 0xae, 0xa7, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11); - -// {5102DACE-241B-11d3-AEA7-006097B01411} -DEFINE_GUID(IID_IDirectPlay8Server, -0x5102dace, 0x241b, 0x11d3, 0xae, 0xa7, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11); - -// {5102DACF-241B-11d3-AEA7-006097B01411} -DEFINE_GUID(IID_IDirectPlay8Peer, -0x5102dacf, 0x241b, 0x11d3, 0xae, 0xa7, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11); - - -// IIDs added for DirectX 9 - -// {0D22EE73-4A46-4a0d-89B2-045B4D666425} -DEFINE_GUID(IID_IDirectPlay8ThreadPool, -0xd22ee73, 0x4a46, 0x4a0d, 0x89, 0xb2, 0x4, 0x5b, 0x4d, 0x66, 0x64, 0x25); - -// {A9E213F2-9A60-486f-BF3B-53408B6D1CBB} -DEFINE_GUID(IID_IDirectPlay8NATResolver, -0xa9e213f2, 0x9a60, 0x486f, 0xbf, 0x3b, 0x53, 0x40, 0x8b, 0x6d, 0x1c, 0xbb); - -/**************************************************************************** - * - * DirectPlay8 Service Provider GUIDs - * - ****************************************************************************/ - - -// {53934290-628D-11D2-AE0F-006097B01411} -DEFINE_GUID(CLSID_DP8SP_IPX, -0x53934290, 0x628d, 0x11d2, 0xae, 0xf, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11); - - -// {6D4A3650-628D-11D2-AE0F-006097B01411} -DEFINE_GUID(CLSID_DP8SP_MODEM, -0x6d4a3650, 0x628d, 0x11d2, 0xae, 0xf, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11); - - -// {743B5D60-628D-11D2-AE0F-006097B01411} -DEFINE_GUID(CLSID_DP8SP_SERIAL, -0x743b5d60, 0x628d, 0x11d2, 0xae, 0xf, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11); - - -// {EBFE7BA0-628D-11D2-AE0F-006097B01411} -DEFINE_GUID(CLSID_DP8SP_TCPIP, -0xebfe7ba0, 0x628d, 0x11d2, 0xae, 0xf, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11); - - -// Service providers added for DirectX 9 - - -// {995513AF-3027-4b9a-956E-C772B3F78006} -DEFINE_GUID(CLSID_DP8SP_BLUETOOTH, -0x995513af, 0x3027, 0x4b9a, 0x95, 0x6e, 0xc7, 0x72, 0xb3, 0xf7, 0x80, 0x6); - - -/**************************************************************************** - * - * DirectPlay8 Interface Pointer definitions - * - ****************************************************************************/ - -typedef struct IDirectPlay8Client *PDIRECTPLAY8CLIENT; - -typedef struct IDirectPlay8Server *PDIRECTPLAY8SERVER; - -typedef struct IDirectPlay8Peer *PDIRECTPLAY8PEER; - - -// Interface pointers added for DirectX 9 - -typedef struct IDirectPlay8ThreadPool *PDIRECTPLAY8THREADPOOL; - -typedef struct IDirectPlay8NATResolver *PDIRECTPLAY8NATRESOLVER; - -/**************************************************************************** - * - * DirectPlay8 Forward Declarations For External Types - * - ****************************************************************************/ - -typedef struct IDirectPlay8LobbiedApplication *PDNLOBBIEDAPPLICATION; -typedef struct IDirectPlay8Address IDirectPlay8Address; - -/**************************************************************************** - * - * DirectPlay8 Callback Functions - * - ****************************************************************************/ - -// -// Callback Function Type Definition -// -typedef HRESULT (WINAPI *PFNDPNMESSAGEHANDLER)(PVOID,DWORD,PVOID); - -/**************************************************************************** - * - * DirectPlay8 Datatypes (Non-Structure / Non-Message) - * - ****************************************************************************/ - -// -// Player IDs. Used to uniquely identify a player in a session -// -typedef DWORD DPNID, *PDPNID; - -// -// Used as identifiers for operations -// -typedef DWORD DPNHANDLE, *PDPNHANDLE; - - - - -/**************************************************************************** - * - * DirectPlay8 Message Identifiers - * - ****************************************************************************/ - -#define DPN_MSGID_OFFSET 0xFFFF0000 -#define DPN_MSGID_ADD_PLAYER_TO_GROUP ( DPN_MSGID_OFFSET | 0x0001 ) -#define DPN_MSGID_APPLICATION_DESC ( DPN_MSGID_OFFSET | 0x0002 ) -#define DPN_MSGID_ASYNC_OP_COMPLETE ( DPN_MSGID_OFFSET | 0x0003 ) -#define DPN_MSGID_CLIENT_INFO ( DPN_MSGID_OFFSET | 0x0004 ) -#define DPN_MSGID_CONNECT_COMPLETE ( DPN_MSGID_OFFSET | 0x0005 ) -#define DPN_MSGID_CREATE_GROUP ( DPN_MSGID_OFFSET | 0x0006 ) -#define DPN_MSGID_CREATE_PLAYER ( DPN_MSGID_OFFSET | 0x0007 ) -#define DPN_MSGID_DESTROY_GROUP ( DPN_MSGID_OFFSET | 0x0008 ) -#define DPN_MSGID_DESTROY_PLAYER ( DPN_MSGID_OFFSET | 0x0009 ) -#define DPN_MSGID_ENUM_HOSTS_QUERY ( DPN_MSGID_OFFSET | 0x000a ) -#define DPN_MSGID_ENUM_HOSTS_RESPONSE ( DPN_MSGID_OFFSET | 0x000b ) -#define DPN_MSGID_GROUP_INFO ( DPN_MSGID_OFFSET | 0x000c ) -#define DPN_MSGID_HOST_MIGRATE ( DPN_MSGID_OFFSET | 0x000d ) -#define DPN_MSGID_INDICATE_CONNECT ( DPN_MSGID_OFFSET | 0x000e ) -#define DPN_MSGID_INDICATED_CONNECT_ABORTED ( DPN_MSGID_OFFSET | 0x000f ) -#define DPN_MSGID_PEER_INFO ( DPN_MSGID_OFFSET | 0x0010 ) -#define DPN_MSGID_RECEIVE ( DPN_MSGID_OFFSET | 0x0011 ) -#define DPN_MSGID_REMOVE_PLAYER_FROM_GROUP ( DPN_MSGID_OFFSET | 0x0012 ) -#define DPN_MSGID_RETURN_BUFFER ( DPN_MSGID_OFFSET | 0x0013 ) -#define DPN_MSGID_SEND_COMPLETE ( DPN_MSGID_OFFSET | 0x0014 ) -#define DPN_MSGID_SERVER_INFO ( DPN_MSGID_OFFSET | 0x0015 ) -#define DPN_MSGID_TERMINATE_SESSION ( DPN_MSGID_OFFSET | 0x0016 ) - -// Messages added for DirectX 9 -#define DPN_MSGID_CREATE_THREAD ( DPN_MSGID_OFFSET | 0x0017 ) -#define DPN_MSGID_DESTROY_THREAD ( DPN_MSGID_OFFSET | 0x0018 ) -#define DPN_MSGID_NAT_RESOLVER_QUERY ( DPN_MSGID_OFFSET | 0x0101 ) - -/**************************************************************************** - * - * DirectPlay8 Constants - * - ****************************************************************************/ - -#define DPNID_ALL_PLAYERS_GROUP 0 - -// -// DESTROY_GROUP reasons -// -#define DPNDESTROYGROUPREASON_NORMAL 0x0001 -#define DPNDESTROYGROUPREASON_AUTODESTRUCTED 0x0002 -#define DPNDESTROYGROUPREASON_SESSIONTERMINATED 0x0003 - -// -// DESTROY_PLAYER reasons -// -#define DPNDESTROYPLAYERREASON_NORMAL 0x0001 -#define DPNDESTROYPLAYERREASON_CONNECTIONLOST 0x0002 -#define DPNDESTROYPLAYERREASON_SESSIONTERMINATED 0x0003 -#define DPNDESTROYPLAYERREASON_HOSTDESTROYEDPLAYER 0x0004 - -#define DPN_MAX_APPDESC_RESERVEDDATA_SIZE 64 - - - -/**************************************************************************** - * - * DirectPlay8 Flags - * - ****************************************************************************/ - -// -// Asynchronous operation flags (for Async Ops) -// -#define DPNOP_SYNC 0x80000000 - -// -// Add player to group flags (for AddPlayerToGroup) -// -#define DPNADDPLAYERTOGROUP_SYNC DPNOP_SYNC - -// -// Cancel flags -// -#define DPNCANCEL_CONNECT 0x00000001 -#define DPNCANCEL_ENUM 0x00000002 -#define DPNCANCEL_SEND 0x00000004 -#define DPNCANCEL_ALL_OPERATIONS 0x00008000 -// Flags added for DirectX 9 -#define DPNCANCEL_PLAYER_SENDS 0x80000000 -#define DPNCANCEL_PLAYER_SENDS_PRIORITY_HIGH (DPNCANCEL_PLAYER_SENDS | 0x00010000) -#define DPNCANCEL_PLAYER_SENDS_PRIORITY_NORMAL (DPNCANCEL_PLAYER_SENDS | 0x00020000) -#define DPNCANCEL_PLAYER_SENDS_PRIORITY_LOW (DPNCANCEL_PLAYER_SENDS | 0x00040000) - -// -// Close flags (for Close, added for DirectX 9) -// -#define DPNCLOSE_IMMEDIATE 0x00000001 - -// -// Connect flags (for Connect) -// -#define DPNCONNECT_SYNC DPNOP_SYNC -#define DPNCONNECT_OKTOQUERYFORADDRESSING 0x0001 - -// -// Create group flags (for CreateGroup) -// -#define DPNCREATEGROUP_SYNC DPNOP_SYNC - -// -// Destroy group flags (for DestroyGroup) -// -#define DPNDESTROYGROUP_SYNC DPNOP_SYNC - -// -// Enumerate clients and groups flags (for EnumPlayersAndGroups) -// -#define DPNENUM_PLAYERS 0x0001 -#define DPNENUM_GROUPS 0x0010 - -// -// Enum hosts flags (for EnumHosts) -// -#define DPNENUMHOSTS_SYNC DPNOP_SYNC -#define DPNENUMHOSTS_OKTOQUERYFORADDRESSING 0x0001 -#define DPNENUMHOSTS_NOBROADCASTFALLBACK 0x0002 - -// -// Enum service provider flags (for EnumSP) -// -#define DPNENUMSERVICEPROVIDERS_ALL 0x0001 - -// -// GetLocalHostAddresses flags (added for DirectX 9) -// -#define DPNGETLOCALHOSTADDRESSES_COMBINED 0x0001 - -// -// Get send queue info flags (for GetSendQueueInfo) -// -#define DPNGETSENDQUEUEINFO_PRIORITY_NORMAL 0x0001 -#define DPNGETSENDQUEUEINFO_PRIORITY_HIGH 0x0002 -#define DPNGETSENDQUEUEINFO_PRIORITY_LOW 0x0004 - -// -// Group information flags (for Group Info) -// -#define DPNGROUP_AUTODESTRUCT 0x0001 - -// -// Host flags (for Host) -// -#define DPNHOST_OKTOQUERYFORADDRESSING 0x0001 - -// -// Set info -// -#define DPNINFO_NAME 0x0001 -#define DPNINFO_DATA 0x0002 - -// -// Initialize flags (for Initialize) -// -#define DPNINITIALIZE_DISABLEPARAMVAL 0x0001 -// Flags added for DirectX 9 -#define DPNINITIALIZE_HINT_LANSESSION 0x0002 -#define DPNINITIALIZE_DISABLELINKTUNING 0x0004 - - -// -// Register Lobby flags -// -#define DPNLOBBY_REGISTER 0x0001 -#define DPNLOBBY_UNREGISTER 0x0002 - -// -// Player information flags (for Player Info / Player Messages) -// -#define DPNPLAYER_LOCAL 0x0002 -#define DPNPLAYER_HOST 0x0004 - -// -// Receive indication flags (added for DirectX 9) -// -#define DPNRECEIVE_GUARANTEED 0x0001 -#define DPNRECEIVE_COALESCED 0x0002 - -// -// Remove player from group flags (for RemovePlayerFromGroup) -// -#define DPNREMOVEPLAYERFROMGROUP_SYNC DPNOP_SYNC - -// -// Send flags (for Send/SendTo) -// -#define DPNSEND_SYNC DPNOP_SYNC -#define DPNSEND_NOCOPY 0x0001 -#define DPNSEND_NOCOMPLETE 0x0002 -#define DPNSEND_COMPLETEONPROCESS 0x0004 -#define DPNSEND_GUARANTEED 0x0008 -#define DPNSEND_NONSEQUENTIAL 0x0010 -#define DPNSEND_NOLOOPBACK 0x0020 -#define DPNSEND_PRIORITY_LOW 0x0040 -#define DPNSEND_PRIORITY_HIGH 0x0080 -// Flag added for DirectX 9 -#define DPNSEND_COALESCE 0x0100 - -// -// Send complete indication flags (added for DirectX 9) -// -#define DPNSENDCOMPLETE_GUARANTEED 0x0001 -#define DPNSENDCOMPLETE_COALESCED 0x0002 - -// -// Session Flags (for DPN_APPLICATION_DESC) -// -#define DPNSESSION_CLIENT_SERVER 0x0001 -#define DPNSESSION_MIGRATE_HOST 0x0004 -#define DPNSESSION_NODPNSVR 0x0040 -#define DPNSESSION_REQUIREPASSWORD 0x0080 -// Flag added for DirectX 9 -#define DPNSESSION_NOENUMS 0x0100 -#define DPNSESSION_FAST_SIGNED 0x0200 -#define DPNSESSION_FULL_SIGNED 0x0400 - -// -// Set client info flags (for SetClientInfo) -// -#define DPNSETCLIENTINFO_SYNC DPNOP_SYNC - -// -// Set group info flags (for SetGroupInfo) -// -#define DPNSETGROUPINFO_SYNC DPNOP_SYNC - -// -// Set peer info flags (for SetPeerInfo) -// -#define DPNSETPEERINFO_SYNC DPNOP_SYNC - -// -// Set server info flags (for SetServerInfo) -// -#define DPNSETSERVERINFO_SYNC DPNOP_SYNC - -// -// SP capabilities flags -// -#define DPNSPCAPS_SUPPORTSDPNSVR 0x0001 -#define DPNSPCAPS_SUPPORTSDPNSRV DPNSPCAPS_SUPPORTSDPNSVR -#define DPNSPCAPS_SUPPORTSBROADCAST 0x0002 -#define DPNSPCAPS_SUPPORTSALLADAPTERS 0x0004 -// Flags added for DirectX 9 -#define DPNSPCAPS_SUPPORTSTHREADPOOL 0x0008 -#define DPNSPCAPS_NETWORKSIMULATOR 0x0010 - -// -// SP information flags (added for DirectX 9) -// -#define DPNSPINFO_NETWORKSIMULATORDEVICE 0x0001 - -/**************************************************************************** - * - * DirectPlay8 Structures (Non-Message) - * - ****************************************************************************/ - -// -// Application description -// -typedef struct _DPN_APPLICATION_DESC -{ - DWORD dwSize; // Size of this structure - DWORD dwFlags; // Flags (DPNSESSION_...) - GUID guidInstance; // Instance GUID - GUID guidApplication; // Application GUID - DWORD dwMaxPlayers; // Maximum # of players allowed (0=no limit) - DWORD dwCurrentPlayers; // Current # of players allowed - WCHAR *pwszSessionName; // Name of the session - WCHAR *pwszPassword; // Password for the session - PVOID pvReservedData; - DWORD dwReservedDataSize; - PVOID pvApplicationReservedData; - DWORD dwApplicationReservedDataSize; -} DPN_APPLICATION_DESC, *PDPN_APPLICATION_DESC; - -// -// Generic Buffer Description -// -typedef struct _BUFFERDESC -{ - DWORD dwBufferSize; - BYTE * pBufferData; -} BUFFERDESC, DPN_BUFFER_DESC, *PDPN_BUFFER_DESC; - -typedef BUFFERDESC FAR * PBUFFERDESC; - -// -// DirectPlay8 capabilities -// -typedef struct _DPN_CAPS -{ - DWORD dwSize; // Size of this structure - DWORD dwFlags; // Flags - DWORD dwConnectTimeout; // ms before a connect request times out - DWORD dwConnectRetries; // # of times to attempt the connection - DWORD dwTimeoutUntilKeepAlive; // ms of inactivity before a keep alive is sent -} DPN_CAPS, *PDPN_CAPS; - -// -// Extended capabilities structures (added for DirectX 9) -// -typedef struct _DPN_CAPS_EX -{ - DWORD dwSize; // Size of this structure - DWORD dwFlags; // Flags - DWORD dwConnectTimeout; // ms before a connect request times out - DWORD dwConnectRetries; // # of times to attempt the connection - DWORD dwTimeoutUntilKeepAlive; // ms of inactivity before a keep alive is sent - DWORD dwMaxRecvMsgSize; // maximum size in bytes of message that can be received - DWORD dwNumSendRetries; // maximum number of send retries before link is considered dead - DWORD dwMaxSendRetryInterval; // maximum period in msec between send retries - DWORD dwDropThresholdRate; // percentage of dropped packets before throttling - DWORD dwThrottleRate; // percentage amount to reduce send window when throttling - DWORD dwNumHardDisconnectSends; // number of hard disconnect frames to send when close immediate flag is specified - DWORD dwMaxHardDisconnectPeriod; // maximum period between hard disconnect sends -} DPN_CAPS_EX, *PDPN_CAPS_EX; - -// -// Connection Statistics information -// -typedef struct _DPN_CONNECTION_INFO -{ - DWORD dwSize; - DWORD dwRoundTripLatencyMS; - DWORD dwThroughputBPS; - DWORD dwPeakThroughputBPS; - - DWORD dwBytesSentGuaranteed; - DWORD dwPacketsSentGuaranteed; - DWORD dwBytesSentNonGuaranteed; - DWORD dwPacketsSentNonGuaranteed; - - DWORD dwBytesRetried; // Guaranteed only - DWORD dwPacketsRetried; // Guaranteed only - DWORD dwBytesDropped; // Non Guaranteed only - DWORD dwPacketsDropped; // Non Guaranteed only - - DWORD dwMessagesTransmittedHighPriority; - DWORD dwMessagesTimedOutHighPriority; - DWORD dwMessagesTransmittedNormalPriority; - DWORD dwMessagesTimedOutNormalPriority; - DWORD dwMessagesTransmittedLowPriority; - DWORD dwMessagesTimedOutLowPriority; - - DWORD dwBytesReceivedGuaranteed; - DWORD dwPacketsReceivedGuaranteed; - DWORD dwBytesReceivedNonGuaranteed; - DWORD dwPacketsReceivedNonGuaranteed; - DWORD dwMessagesReceived; - -} DPN_CONNECTION_INFO, *PDPN_CONNECTION_INFO; - - -// -// Group information structure -// -typedef struct _DPN_GROUP_INFO -{ - DWORD dwSize; // size of this structure - DWORD dwInfoFlags; // information contained - PWSTR pwszName; // Unicode Name - PVOID pvData; // data block - DWORD dwDataSize; // size in BYTES of data block - DWORD dwGroupFlags; // group flags (DPNGROUP_...) -} DPN_GROUP_INFO, *PDPN_GROUP_INFO; - -// -// Player information structure -// -typedef struct _DPN_PLAYER_INFO -{ - DWORD dwSize; // size of this structure - DWORD dwInfoFlags; // information contained - PWSTR pwszName; // Unicode Name - PVOID pvData; // data block - DWORD dwDataSize; // size in BYTES of data block - DWORD dwPlayerFlags; // player flags (DPNPLAYER_...) -} DPN_PLAYER_INFO, *PDPN_PLAYER_INFO; - -typedef struct _DPN_SECURITY_CREDENTIALS DPN_SECURITY_CREDENTIALS, *PDPN_SECURITY_CREDENTIALS; -typedef struct _DPN_SECURITY_DESC DPN_SECURITY_DESC, *PDPN_SECURITY_DESC; - -// -// Service provider & adapter enumeration structure -// -typedef struct _DPN_SERVICE_PROVIDER_INFO -{ - DWORD dwFlags; - GUID guid; // SP Guid - WCHAR *pwszName; // Friendly Name - PVOID pvReserved; - DWORD dwReserved; -} DPN_SERVICE_PROVIDER_INFO, *PDPN_SERVICE_PROVIDER_INFO; - -// -// Service provider caps structure -// -typedef struct _DPN_SP_CAPS -{ - DWORD dwSize; // Size of this structure - DWORD dwFlags; // Flags (DPNSPCAPS_...) - DWORD dwNumThreads; // # of worker threads to use - DWORD dwDefaultEnumCount; // default # of enum requests - DWORD dwDefaultEnumRetryInterval; // default ms between enum requests - DWORD dwDefaultEnumTimeout; // default enum timeout - DWORD dwMaxEnumPayloadSize; // maximum size in bytes for enum payload data - DWORD dwBuffersPerThread; // number of receive buffers per thread - DWORD dwSystemBufferSize; // amount of buffering to do in addition to posted receive buffers -} DPN_SP_CAPS, *PDPN_SP_CAPS; - - -/**************************************************************************** - * - * IDirectPlay8 message handler call back structures - * - ****************************************************************************/ - -// -// Add player to group structure for message handler -// (DPN_MSGID_ADD_PLAYER_TO_GROUP) -// -typedef struct _DPNMSG_ADD_PLAYER_TO_GROUP -{ - DWORD dwSize; // Size of this structure - DPNID dpnidGroup; // DPNID of group - PVOID pvGroupContext; // Group context value - DPNID dpnidPlayer; // DPNID of added player - PVOID pvPlayerContext; // Player context value -} DPNMSG_ADD_PLAYER_TO_GROUP, *PDPNMSG_ADD_PLAYER_TO_GROUP; - -// -// Async operation completion structure for message handler -// (DPN_MSGID_ASYNC_OP_COMPLETE) -// -typedef struct _DPNMSG_ASYNC_OP_COMPLETE -{ - DWORD dwSize; // Size of this structure - DPNHANDLE hAsyncOp; // DirectPlay8 async operation handle - PVOID pvUserContext; // User context supplied - HRESULT hResultCode; // HRESULT of operation -} DPNMSG_ASYNC_OP_COMPLETE, *PDPNMSG_ASYNC_OP_COMPLETE; - -// -// Client info structure for message handler -// (DPN_MSGID_CLIENT_INFO) -// -typedef struct _DPNMSG_CLIENT_INFO -{ - DWORD dwSize; // Size of this structure - DPNID dpnidClient; // DPNID of client - PVOID pvPlayerContext; // Player context value -} DPNMSG_CLIENT_INFO, *PDPNMSG_CLIENT_INFO; - -// -// Connect complete structure for message handler -// (DPN_MSGID_CONNECT_COMPLETE) -// -typedef struct _DPNMSG_CONNECT_COMPLETE -{ - DWORD dwSize; // Size of this structure - DPNHANDLE hAsyncOp; // DirectPlay8 Async operation handle - PVOID pvUserContext; // User context supplied at Connect - HRESULT hResultCode; // HRESULT of connection attempt - PVOID pvApplicationReplyData; // Connection reply data from Host/Server - DWORD dwApplicationReplyDataSize; // Size (in bytes) of pvApplicationReplyData - - // Fields added for DirectX 9 - DPNID dpnidLocal; // DPNID of local player -} DPNMSG_CONNECT_COMPLETE, *PDPNMSG_CONNECT_COMPLETE; - -// -// Create group structure for message handler -// (DPN_MSGID_CREATE_GROUP) -// -typedef struct _DPNMSG_CREATE_GROUP -{ - DWORD dwSize; // Size of this structure - DPNID dpnidGroup; // DPNID of new group - DPNID dpnidOwner; // Owner of newgroup - PVOID pvGroupContext; // Group context value - - // Fields added for DirectX 9 - PVOID pvOwnerContext; // Owner context value -} DPNMSG_CREATE_GROUP, *PDPNMSG_CREATE_GROUP; - -// -// Create player structure for message handler -// (DPN_MSGID_CREATE_PLAYER) -// -typedef struct _DPNMSG_CREATE_PLAYER -{ - DWORD dwSize; // Size of this structure - DPNID dpnidPlayer; // DPNID of new player - PVOID pvPlayerContext; // Player context value -} DPNMSG_CREATE_PLAYER, *PDPNMSG_CREATE_PLAYER; - -// -// Destroy group structure for message handler -// (DPN_MSGID_DESTROY_GROUP) -// -typedef struct _DPNMSG_DESTROY_GROUP -{ - DWORD dwSize; // Size of this structure - DPNID dpnidGroup; // DPNID of destroyed group - PVOID pvGroupContext; // Group context value - DWORD dwReason; // Information only -} DPNMSG_DESTROY_GROUP, *PDPNMSG_DESTROY_GROUP; - -// -// Destroy player structure for message handler -// (DPN_MSGID_DESTROY_PLAYER) -// -typedef struct _DPNMSG_DESTROY_PLAYER -{ - DWORD dwSize; // Size of this structure - DPNID dpnidPlayer; // DPNID of leaving player - PVOID pvPlayerContext; // Player context value - DWORD dwReason; // Information only -} DPNMSG_DESTROY_PLAYER, *PDPNMSG_DESTROY_PLAYER; - -// -// Enumeration request received structure for message handler -// (DPN_MSGID_ENUM_HOSTS_QUERY) -// -typedef struct _DPNMSG_ENUM_HOSTS_QUERY -{ - DWORD dwSize; // Size of this structure. - IDirectPlay8Address *pAddressSender; // Address of client who sent the request - IDirectPlay8Address *pAddressDevice; // Address of device request was received on - PVOID pvReceivedData; // Request data (set on client) - DWORD dwReceivedDataSize; // Request data size (set on client) - DWORD dwMaxResponseDataSize; // Max allowable size of enum response - PVOID pvResponseData; // Optional query repsonse (user set) - DWORD dwResponseDataSize; // Optional query response size (user set) - PVOID pvResponseContext; // Optional query response context (user set) -} DPNMSG_ENUM_HOSTS_QUERY, *PDPNMSG_ENUM_HOSTS_QUERY; - -// -// Enumeration response received structure for message handler -// (DPN_MSGID_ENUM_HOSTS_RESPONSE) -// -typedef struct _DPNMSG_ENUM_HOSTS_RESPONSE -{ - DWORD dwSize; // Size of this structure - IDirectPlay8Address *pAddressSender; // Address of host who responded - IDirectPlay8Address *pAddressDevice; // Device response was received on - const DPN_APPLICATION_DESC *pApplicationDescription; // Application description for the session - PVOID pvResponseData; // Optional response data (set on host) - DWORD dwResponseDataSize; // Optional response data size (set on host) - PVOID pvUserContext; // Context value supplied for enumeration - DWORD dwRoundTripLatencyMS; // Round trip latency in MS -} DPNMSG_ENUM_HOSTS_RESPONSE, *PDPNMSG_ENUM_HOSTS_RESPONSE; - -// -// Group info structure for message handler -// (DPN_MSGID_GROUP_INFO) -// -typedef struct _DPNMSG_GROUP_INFO -{ - DWORD dwSize; // Size of this structure - DPNID dpnidGroup; // DPNID of group - PVOID pvGroupContext; // Group context value -} DPNMSG_GROUP_INFO, *PDPNMSG_GROUP_INFO; - -// -// Migrate host structure for message handler -// (DPN_MSGID_HOST_MIGRATE) -// -typedef struct _DPNMSG_HOST_MIGRATE -{ - DWORD dwSize; // Size of this structure - DPNID dpnidNewHost; // DPNID of new Host player - PVOID pvPlayerContext; // Player context value -} DPNMSG_HOST_MIGRATE, *PDPNMSG_HOST_MIGRATE; - -// -// Indicate connect structure for message handler -// (DPN_MSGID_INDICATE_CONNECT) -// -typedef struct _DPNMSG_INDICATE_CONNECT -{ - DWORD dwSize; // Size of this structure - PVOID pvUserConnectData; // Connecting player data - DWORD dwUserConnectDataSize; // Size (in bytes) of pvUserConnectData - PVOID pvReplyData; // Connection reply data - DWORD dwReplyDataSize; // Size (in bytes) of pvReplyData - PVOID pvReplyContext; // Buffer context for pvReplyData - PVOID pvPlayerContext; // Player context preset - IDirectPlay8Address *pAddressPlayer; // Address of connecting player - IDirectPlay8Address *pAddressDevice; // Address of device receiving connect attempt -} DPNMSG_INDICATE_CONNECT, *PDPNMSG_INDICATE_CONNECT; - -// -// Indicated connect aborted structure for message handler -// (DPN_MSGID_INDICATED_CONNECT_ABORTED) -// -typedef struct _DPNMSG_INDICATED_CONNECT_ABORTED -{ - DWORD dwSize; // Size of this structure - PVOID pvPlayerContext; // Player context preset from DPNMSG_INDICATE_CONNECT -} DPNMSG_INDICATED_CONNECT_ABORTED, *PDPNMSG_INDICATED_CONNECT_ABORTED; - -// -// Peer info structure for message handler -// (DPN_MSGID_PEER_INFO) -// -typedef struct _DPNMSG_PEER_INFO -{ - DWORD dwSize; // Size of this structure - DPNID dpnidPeer; // DPNID of peer - PVOID pvPlayerContext; // Player context value -} DPNMSG_PEER_INFO, *PDPNMSG_PEER_INFO; - -// -// Receive structure for message handler -// (DPN_MSGID_RECEIVE) -// -typedef struct _DPNMSG_RECEIVE -{ - DWORD dwSize; // Size of this structure - DPNID dpnidSender; // DPNID of sending player - PVOID pvPlayerContext; // Player context value of sending player - PBYTE pReceiveData; // Received data - DWORD dwReceiveDataSize; // Size (in bytes) of pReceiveData - DPNHANDLE hBufferHandle; // Buffer handle for pReceiveData - - // Fields added for DirectX 9 - DWORD dwReceiveFlags; // Flags describing how message was received -} DPNMSG_RECEIVE, *PDPNMSG_RECEIVE; - -// -// Remove player from group structure for message handler -// (DPN_MSGID_REMOVE_PLAYER_FROM_GROUP) -// -typedef struct _DPNMSG_REMOVE_PLAYER_FROM_GROUP -{ - DWORD dwSize; // Size of this structure - DPNID dpnidGroup; // DPNID of group - PVOID pvGroupContext; // Group context value - DPNID dpnidPlayer; // DPNID of deleted player - PVOID pvPlayerContext; // Player context value -} DPNMSG_REMOVE_PLAYER_FROM_GROUP, *PDPNMSG_REMOVE_PLAYER_FROM_GROUP; - -// -// Returned buffer structure for message handler -// (DPN_MSGID_RETURN_BUFFER) -// -typedef struct _DPNMSG_RETURN_BUFFER -{ - DWORD dwSize; // Size of this structure - HRESULT hResultCode; // Return value of operation - PVOID pvBuffer; // Buffer being returned - PVOID pvUserContext; // Context associated with buffer -} DPNMSG_RETURN_BUFFER, *PDPNMSG_RETURN_BUFFER; - -// -// Send complete structure for message handler -// (DPN_MSGID_SEND_COMPLETE) -// -typedef struct _DPNMSG_SEND_COMPLETE -{ - DWORD dwSize; // Size of this structure - DPNHANDLE hAsyncOp; // DirectPlay8 Async operation handle - PVOID pvUserContext; // User context supplied at Send/SendTo - HRESULT hResultCode; // HRESULT of send - DWORD dwSendTime; // Send time in ms - - // Fields added for DirectX 9 - DWORD dwFirstFrameRTT; // RTT of the first frame in the message - DWORD dwFirstFrameRetryCount; // Retry count of the first frame - DWORD dwSendCompleteFlags; // Flags describing how message was sent - DPN_BUFFER_DESC *pBuffers; // Pointer to array of buffers sent, if DirectPlay did not make a copy - DWORD dwNumBuffers; // Number of buffers in previous array -} DPNMSG_SEND_COMPLETE, *PDPNMSG_SEND_COMPLETE; - -// -// Server info structure for message handler -// (DPN_MSGID_SERVER_INFO) -// -typedef struct _DPNMSG_SERVER_INFO -{ - DWORD dwSize; // Size of this structure - DPNID dpnidServer; // DPNID of server - PVOID pvPlayerContext; // Player context value -} DPNMSG_SERVER_INFO, *PDPNMSG_SERVER_INFO; - -// -// Terminated session structure for message handler -// (DPN_MSGID_TERMINATE_SESSION) -// -typedef struct _DPNMSG_TERMINATE_SESSION -{ - DWORD dwSize; // Size of this structure - HRESULT hResultCode; // Reason - PVOID pvTerminateData; // Data passed from Host/Server - DWORD dwTerminateDataSize;// Size (in bytes) of pvTerminateData -} DPNMSG_TERMINATE_SESSION, *PDPNMSG_TERMINATE_SESSION; - - -// -// Message structures added for DirectX 9 -// - -// -// Create thread info structure for message handler -// (DPN_MSGID_CREATE_THREAD) -// -typedef struct _DPNMSG_CREATE_THREAD -{ - DWORD dwSize; // Size of this structure - DWORD dwFlags; // Flags describing this thread - DWORD dwProcessorNum; // Index of processor to which thread is bound - PVOID pvUserContext; // Thread context value -} DPNMSG_CREATE_THREAD, *PDPNMSG_CREATE_THREAD; - -// -// Destroy thread info structure for message handler -// (DPN_MSGID_DESTROY_THREAD) -// -typedef struct _DPNMSG_DESTROY_THREAD -{ - DWORD dwSize; // Size of this structure - DWORD dwProcessorNum; // Index of processor to which thread was bound - PVOID pvUserContext; // Thread context value -} DPNMSG_DESTROY_THREAD, *PDPNMSG_DESTROY_THREAD; - - -// -// Query-to-resolve-NAT-address structure for message handler -// (DPN_MSGID_NAT_RESOLVER_QUERY) -// -typedef struct _DPNMSG_NAT_RESOLVER_QUERY -{ - DWORD dwSize; // Size of this structure. - IDirectPlay8Address *pAddressSender; // Address of client that sent the query - IDirectPlay8Address *pAddressDevice; // Address of device on which query was received - WCHAR *pwszUserString; // User specified string, or NULL if none -} DPNMSG_NAT_RESOLVER_QUERY, *PDPNMSG_NAT_RESOLVER_QUERY; - -/**************************************************************************** - * - * DirectPlay8 Functions - * - ****************************************************************************/ - - - -/* - * This function is no longer supported. It is recommended that CoCreateInstance be used to create - * DirectPlay8 objects. - * - * extern HRESULT WINAPI DirectPlay8Create( const CLSID * pcIID, void **ppvInterface, IUnknown *pUnknown ); - * - */ - - -/**************************************************************************** - * - * DirectPlay8 Application Interfaces - * - ****************************************************************************/ - -// -// COM definition for DirectPlay8 Client interface -// -#undef INTERFACE // External COM Implementation -#define INTERFACE IDirectPlay8Client -DECLARE_INTERFACE_(IDirectPlay8Client,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ DP8REFIID riid, LPVOID *ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectPlay8Client methods ***/ - STDMETHOD(Initialize) (THIS_ PVOID const pvUserContext, const PFNDPNMESSAGEHANDLER pfn, const DWORD dwFlags) PURE; - STDMETHOD(EnumServiceProviders) (THIS_ const GUID *const pguidServiceProvider, const GUID *const pguidApplication, DPN_SERVICE_PROVIDER_INFO *const pSPInfoBuffer, PDWORD const pcbEnumData, PDWORD const pcReturned, const DWORD dwFlags) PURE; - STDMETHOD(EnumHosts) (THIS_ PDPN_APPLICATION_DESC const pApplicationDesc,IDirectPlay8Address *const pAddrHost,IDirectPlay8Address *const pDeviceInfo,PVOID const pUserEnumData,const DWORD dwUserEnumDataSize,const DWORD dwEnumCount,const DWORD dwRetryInterval,const DWORD dwTimeOut,PVOID const pvUserContext,DPNHANDLE *const pAsyncHandle,const DWORD dwFlags) PURE; - STDMETHOD(CancelAsyncOperation) (THIS_ const DPNHANDLE hAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(Connect) (THIS_ const DPN_APPLICATION_DESC *const pdnAppDesc,IDirectPlay8Address *const pHostAddr,IDirectPlay8Address *const pDeviceInfo,const DPN_SECURITY_DESC *const pdnSecurity,const DPN_SECURITY_CREDENTIALS *const pdnCredentials,const void *const pvUserConnectData,const DWORD dwUserConnectDataSize,void *const pvAsyncContext,DPNHANDLE *const phAsyncHandle,const DWORD dwFlags) PURE; - STDMETHOD(Send) (THIS_ const DPN_BUFFER_DESC *const prgBufferDesc,const DWORD cBufferDesc,const DWORD dwTimeOut,void *const pvAsyncContext,DPNHANDLE *const phAsyncHandle,const DWORD dwFlags) PURE; - STDMETHOD(GetSendQueueInfo) (THIS_ DWORD *const pdwNumMsgs, DWORD *const pdwNumBytes, const DWORD dwFlags) PURE; - STDMETHOD(GetApplicationDesc) (THIS_ DPN_APPLICATION_DESC *const pAppDescBuffer, DWORD *const pcbDataSize, const DWORD dwFlags) PURE; - STDMETHOD(SetClientInfo) (THIS_ const DPN_PLAYER_INFO *const pdpnPlayerInfo,PVOID const pvAsyncContext,DPNHANDLE *const phAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(GetServerInfo) (THIS_ DPN_PLAYER_INFO *const pdpnPlayerInfo,DWORD *const pdwSize,const DWORD dwFlags) PURE; - STDMETHOD(GetServerAddress) (THIS_ IDirectPlay8Address **const pAddress,const DWORD dwFlags) PURE; - STDMETHOD(Close) (THIS_ const DWORD dwFlags) PURE; - STDMETHOD(ReturnBuffer) (THIS_ const DPNHANDLE hBufferHandle,const DWORD dwFlags) PURE; - STDMETHOD(GetCaps) (THIS_ DPN_CAPS *const pdpCaps,const DWORD dwFlags) PURE; - STDMETHOD(SetCaps) (THIS_ const DPN_CAPS *const pdpCaps, const DWORD dwFlags) PURE; - STDMETHOD(SetSPCaps) (THIS_ const GUID * const pguidSP, const DPN_SP_CAPS *const pdpspCaps, const DWORD dwFlags ) PURE; - STDMETHOD(GetSPCaps) (THIS_ const GUID * const pguidSP,DPN_SP_CAPS *const pdpspCaps,const DWORD dwFlags) PURE; - STDMETHOD(GetConnectionInfo) (THIS_ DPN_CONNECTION_INFO *const pdpConnectionInfo,const DWORD dwFlags) PURE; - STDMETHOD(RegisterLobby) (THIS_ const DPNHANDLE dpnHandle, struct IDirectPlay8LobbiedApplication *const pIDP8LobbiedApplication,const DWORD dwFlags) PURE; -}; - -// -// COM definition for DirectPlay8 Server interface -// -#undef INTERFACE // External COM Implementation -#define INTERFACE IDirectPlay8Server -DECLARE_INTERFACE_(IDirectPlay8Server,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ DP8REFIID riid, LPVOID *ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectPlay8Server methods ***/ - STDMETHOD(Initialize) (THIS_ PVOID const pvUserContext, const PFNDPNMESSAGEHANDLER pfn, const DWORD dwFlags) PURE; - STDMETHOD(EnumServiceProviders) (THIS_ const GUID *const pguidServiceProvider,const GUID *const pguidApplication,DPN_SERVICE_PROVIDER_INFO *const pSPInfoBuffer,PDWORD const pcbEnumData,PDWORD const pcReturned,const DWORD dwFlags) PURE; - STDMETHOD(CancelAsyncOperation) (THIS_ const DPNHANDLE hAsyncHandle,const DWORD dwFlags) PURE; - STDMETHOD(GetSendQueueInfo) (THIS_ const DPNID dpnid,DWORD *const pdwNumMsgs, DWORD *const pdwNumBytes, const DWORD dwFlags) PURE; - STDMETHOD(GetApplicationDesc) (THIS_ DPN_APPLICATION_DESC *const pAppDescBuffer, DWORD *const pcbDataSize, const DWORD dwFlags) PURE; - STDMETHOD(SetServerInfo) (THIS_ const DPN_PLAYER_INFO *const pdpnPlayerInfo,PVOID const pvAsyncContext, DPNHANDLE *const phAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(GetClientInfo) (THIS_ const DPNID dpnid,DPN_PLAYER_INFO *const pdpnPlayerInfo,DWORD *const pdwSize,const DWORD dwFlags) PURE; - STDMETHOD(GetClientAddress) (THIS_ const DPNID dpnid,IDirectPlay8Address **const pAddress,const DWORD dwFlags) PURE; - STDMETHOD(GetLocalHostAddresses) (THIS_ IDirectPlay8Address **const prgpAddress,DWORD *const pcAddress,const DWORD dwFlags) PURE; - STDMETHOD(SetApplicationDesc) (THIS_ const DPN_APPLICATION_DESC *const pad, const DWORD dwFlags) PURE; - STDMETHOD(Host) (THIS_ const DPN_APPLICATION_DESC *const pdnAppDesc,IDirectPlay8Address **const prgpDeviceInfo,const DWORD cDeviceInfo,const DPN_SECURITY_DESC *const pdnSecurity,const DPN_SECURITY_CREDENTIALS *const pdnCredentials,void *const pvPlayerContext,const DWORD dwFlags) PURE; - STDMETHOD(SendTo) (THIS_ const DPNID dpnid,const DPN_BUFFER_DESC *const prgBufferDesc,const DWORD cBufferDesc,const DWORD dwTimeOut,void *const pvAsyncContext,DPNHANDLE *const phAsyncHandle,const DWORD dwFlags) PURE; - STDMETHOD(CreateGroup) (THIS_ const DPN_GROUP_INFO *const pdpnGroupInfo,void *const pvGroupContext,void *const pvAsyncContext,DPNHANDLE *const phAsyncHandle,const DWORD dwFlags) PURE; - STDMETHOD(DestroyGroup) (THIS_ const DPNID idGroup, PVOID const pvAsyncContext, DPNHANDLE *const phAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(AddPlayerToGroup) (THIS_ const DPNID idGroup, const DPNID idClient, PVOID const pvAsyncContext, DPNHANDLE *const phAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(RemovePlayerFromGroup) (THIS_ const DPNID idGroup, const DPNID idClient, PVOID const pvAsyncContext, DPNHANDLE *const phAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(SetGroupInfo) (THIS_ const DPNID dpnid,DPN_GROUP_INFO *const pdpnGroupInfo,PVOID const pvAsyncContext,DPNHANDLE *const phAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(GetGroupInfo) (THIS_ const DPNID dpnid,DPN_GROUP_INFO *const pdpnGroupInfo,DWORD *const pdwSize,const DWORD dwFlags) PURE; - STDMETHOD(EnumPlayersAndGroups) (THIS_ DPNID *const prgdpnid, DWORD *const pcdpnid, const DWORD dwFlags) PURE; - STDMETHOD(EnumGroupMembers) (THIS_ const DPNID dpnid, DPNID *const prgdpnid, DWORD *const pcdpnid, const DWORD dwFlags) PURE; - STDMETHOD(Close) (THIS_ const DWORD dwFlags) PURE; - STDMETHOD(DestroyClient) (THIS_ const DPNID dpnidClient, const void *const pvDestroyData, const DWORD dwDestroyDataSize, const DWORD dwFlags) PURE; - STDMETHOD(ReturnBuffer) (THIS_ const DPNHANDLE hBufferHandle,const DWORD dwFlags) PURE; - STDMETHOD(GetPlayerContext) (THIS_ const DPNID dpnid,PVOID *const ppvPlayerContext,const DWORD dwFlags) PURE; - STDMETHOD(GetGroupContext) (THIS_ const DPNID dpnid,PVOID *const ppvGroupContext,const DWORD dwFlags) PURE; - STDMETHOD(GetCaps) (THIS_ DPN_CAPS *const pdpCaps,const DWORD dwFlags) PURE; - STDMETHOD(SetCaps) (THIS_ const DPN_CAPS *const pdpCaps, const DWORD dwFlags) PURE; - STDMETHOD(SetSPCaps) (THIS_ const GUID * const pguidSP, const DPN_SP_CAPS *const pdpspCaps, const DWORD dwFlags ) PURE; - STDMETHOD(GetSPCaps) (THIS_ const GUID * const pguidSP, DPN_SP_CAPS *const pdpspCaps,const DWORD dwFlags) PURE; - STDMETHOD(GetConnectionInfo) (THIS_ const DPNID dpnid, DPN_CONNECTION_INFO *const pdpConnectionInfo,const DWORD dwFlags) PURE; - STDMETHOD(RegisterLobby) (THIS_ const DPNHANDLE dpnHandle, struct IDirectPlay8LobbiedApplication *const pIDP8LobbiedApplication,const DWORD dwFlags) PURE; -}; - -// -// COM definition for DirectPlay8 Peer interface -// -#undef INTERFACE // External COM Implementation -#define INTERFACE IDirectPlay8Peer -DECLARE_INTERFACE_(IDirectPlay8Peer,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ DP8REFIID riid, LPVOID *ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectPlay8Peer methods ***/ - STDMETHOD(Initialize) (THIS_ PVOID const pvUserContext, const PFNDPNMESSAGEHANDLER pfn, const DWORD dwFlags) PURE; - STDMETHOD(EnumServiceProviders) (THIS_ const GUID *const pguidServiceProvider, const GUID *const pguidApplication, DPN_SERVICE_PROVIDER_INFO *const pSPInfoBuffer, DWORD *const pcbEnumData, DWORD *const pcReturned, const DWORD dwFlags) PURE; - STDMETHOD(CancelAsyncOperation) (THIS_ const DPNHANDLE hAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(Connect) (THIS_ const DPN_APPLICATION_DESC *const pdnAppDesc,IDirectPlay8Address *const pHostAddr,IDirectPlay8Address *const pDeviceInfo,const DPN_SECURITY_DESC *const pdnSecurity,const DPN_SECURITY_CREDENTIALS *const pdnCredentials,const void *const pvUserConnectData,const DWORD dwUserConnectDataSize,void *const pvPlayerContext,void *const pvAsyncContext,DPNHANDLE *const phAsyncHandle,const DWORD dwFlags) PURE; - STDMETHOD(SendTo) (THIS_ const DPNID dpnid,const DPN_BUFFER_DESC *const prgBufferDesc,const DWORD cBufferDesc,const DWORD dwTimeOut,void *const pvAsyncContext,DPNHANDLE *const phAsyncHandle,const DWORD dwFlags) PURE; - STDMETHOD(GetSendQueueInfo) (THIS_ const DPNID dpnid, DWORD *const pdwNumMsgs, DWORD *const pdwNumBytes, const DWORD dwFlags) PURE; - STDMETHOD(Host) (THIS_ const DPN_APPLICATION_DESC *const pdnAppDesc,IDirectPlay8Address **const prgpDeviceInfo,const DWORD cDeviceInfo,const DPN_SECURITY_DESC *const pdnSecurity,const DPN_SECURITY_CREDENTIALS *const pdnCredentials,void *const pvPlayerContext,const DWORD dwFlags) PURE; - STDMETHOD(GetApplicationDesc) (THIS_ DPN_APPLICATION_DESC *const pAppDescBuffer, DWORD *const pcbDataSize, const DWORD dwFlags) PURE; - STDMETHOD(SetApplicationDesc) (THIS_ const DPN_APPLICATION_DESC *const pad, const DWORD dwFlags) PURE; - STDMETHOD(CreateGroup) (THIS_ const DPN_GROUP_INFO *const pdpnGroupInfo,void *const pvGroupContext,void *const pvAsyncContext,DPNHANDLE *const phAsyncHandle,const DWORD dwFlags) PURE; - STDMETHOD(DestroyGroup) (THIS_ const DPNID idGroup, PVOID const pvAsyncContext, DPNHANDLE *const phAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(AddPlayerToGroup) (THIS_ const DPNID idGroup, const DPNID idClient, PVOID const pvAsyncContext, DPNHANDLE *const phAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(RemovePlayerFromGroup) (THIS_ const DPNID idGroup, const DPNID idClient, PVOID const pvAsyncContext, DPNHANDLE *const phAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(SetGroupInfo) (THIS_ const DPNID dpnid,DPN_GROUP_INFO *const pdpnGroupInfo,PVOID const pvAsyncContext,DPNHANDLE *const phAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(GetGroupInfo) (THIS_ const DPNID dpnid,DPN_GROUP_INFO *const pdpnGroupInfo,DWORD *const pdwSize,const DWORD dwFlags) PURE; - STDMETHOD(EnumPlayersAndGroups) (THIS_ DPNID *const prgdpnid, DWORD *const pcdpnid, const DWORD dwFlags) PURE; - STDMETHOD(EnumGroupMembers) (THIS_ const DPNID dpnid, DPNID *const prgdpnid, DWORD *const pcdpnid, const DWORD dwFlags) PURE; - STDMETHOD(SetPeerInfo) (THIS_ const DPN_PLAYER_INFO *const pdpnPlayerInfo,PVOID const pvAsyncContext,DPNHANDLE *const phAsyncHandle, const DWORD dwFlags) PURE; - STDMETHOD(GetPeerInfo) (THIS_ const DPNID dpnid,DPN_PLAYER_INFO *const pdpnPlayerInfo,DWORD *const pdwSize,const DWORD dwFlags) PURE; - STDMETHOD(GetPeerAddress) (THIS_ const DPNID dpnid,IDirectPlay8Address **const ppAddress,const DWORD dwFlags) PURE; - STDMETHOD(GetLocalHostAddresses) (THIS_ IDirectPlay8Address **const prgpAddress,DWORD *const pcAddress,const DWORD dwFlags) PURE; - STDMETHOD(Close) (THIS_ const DWORD dwFlags) PURE; - STDMETHOD(EnumHosts) (THIS_ PDPN_APPLICATION_DESC const pApplicationDesc,IDirectPlay8Address *const pAddrHost,IDirectPlay8Address *const pDeviceInfo,PVOID const pUserEnumData,const DWORD dwUserEnumDataSize,const DWORD dwEnumCount,const DWORD dwRetryInterval,const DWORD dwTimeOut,PVOID const pvUserContext,DPNHANDLE *const pAsyncHandle,const DWORD dwFlags) PURE; - STDMETHOD(DestroyPeer) (THIS_ const DPNID dpnidClient, const void *const pvDestroyData, const DWORD dwDestroyDataSize, const DWORD dwFlags) PURE; - STDMETHOD(ReturnBuffer) (THIS_ const DPNHANDLE hBufferHandle,const DWORD dwFlags) PURE; - STDMETHOD(GetPlayerContext) (THIS_ const DPNID dpnid,PVOID *const ppvPlayerContext,const DWORD dwFlags) PURE; - STDMETHOD(GetGroupContext) (THIS_ const DPNID dpnid,PVOID *const ppvGroupContext,const DWORD dwFlags) PURE; - STDMETHOD(GetCaps) (THIS_ DPN_CAPS *const pdpCaps,const DWORD dwFlags) PURE; - STDMETHOD(SetCaps) (THIS_ const DPN_CAPS *const pdpCaps, const DWORD dwFlags) PURE; - STDMETHOD(SetSPCaps) (THIS_ const GUID * const pguidSP, const DPN_SP_CAPS *const pdpspCaps, const DWORD dwFlags ) PURE; - STDMETHOD(GetSPCaps) (THIS_ const GUID * const pguidSP, DPN_SP_CAPS *const pdpspCaps,const DWORD dwFlags) PURE; - STDMETHOD(GetConnectionInfo) (THIS_ const DPNID dpnid, DPN_CONNECTION_INFO *const pdpConnectionInfo,const DWORD dwFlags) PURE; - STDMETHOD(RegisterLobby) (THIS_ const DPNHANDLE dpnHandle, struct IDirectPlay8LobbiedApplication *const pIDP8LobbiedApplication,const DWORD dwFlags) PURE; - STDMETHOD(TerminateSession) (THIS_ void *const pvTerminateData,const DWORD dwTerminateDataSize,const DWORD dwFlags) PURE; -}; - - - -// -// COM definition for DirectPlay8 Thread Pool interface -// -#undef INTERFACE // External COM Implementation -#define INTERFACE IDirectPlay8ThreadPool -DECLARE_INTERFACE_(IDirectPlay8ThreadPool,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ DP8REFIID riid, LPVOID *ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectPlay8ThreadPool methods ***/ - STDMETHOD(Initialize) (THIS_ PVOID const pvUserContext, const PFNDPNMESSAGEHANDLER pfn, const DWORD dwFlags) PURE; - STDMETHOD(Close) (THIS_ const DWORD dwFlags) PURE; - STDMETHOD(GetThreadCount) (THIS_ const DWORD dwProcessorNum, DWORD *const pdwNumThreads, const DWORD dwFlags) PURE; - STDMETHOD(SetThreadCount) (THIS_ const DWORD dwProcessorNum, const DWORD dwNumThreads, const DWORD dwFlags) PURE; - STDMETHOD(DoWork) (THIS_ const DWORD dwAllowedTimeSlice, const DWORD dwFlags) PURE; -}; - - -// -// COM definition for DirectPlay8 NAT Resolver interface -// -#undef INTERFACE // External COM Implementation -#define INTERFACE IDirectPlay8NATResolver -DECLARE_INTERFACE_(IDirectPlay8NATResolver,IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ DP8REFIID riid, LPVOID *ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectPlay8NATResolver methods ***/ - STDMETHOD(Initialize) (THIS_ PVOID const pvUserContext, const PFNDPNMESSAGEHANDLER pfn, const DWORD dwFlags) PURE; - STDMETHOD(Start) (THIS_ IDirectPlay8Address **const ppDevices, const DWORD dwNumDevices, const DWORD dwFlags) PURE; - STDMETHOD(Close) (THIS_ const DWORD dwFlags) PURE; - STDMETHOD(EnumDevices) (THIS_ DPN_SERVICE_PROVIDER_INFO *const pSPInfoBuffer, PDWORD const pdwBufferSize, PDWORD const pdwNumDevices, const DWORD dwFlags) PURE; - STDMETHOD(GetAddresses) (THIS_ IDirectPlay8Address **const ppAddresses, DWORD *const pdwNumAddresses, const DWORD dwFlags) PURE; -}; - - -/**************************************************************************** - * - * IDirectPlay8 application interface macros - * - ****************************************************************************/ - -#if !defined(__cplusplus) || defined(CINTERFACE) - -#define IDirectPlay8Client_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlay8Client_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlay8Client_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlay8Client_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IDirectPlay8Client_EnumServiceProviders(p,a,b,c,d,e,f) (p)->lpVtbl->EnumServiceProviders(p,a,b,c,d,e,f) -#define IDirectPlay8Client_EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k) (p)->lpVtbl->EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k) -#define IDirectPlay8Client_CancelAsyncOperation(p,a,b) (p)->lpVtbl->CancelAsyncOperation(p,a,b) -#define IDirectPlay8Client_Connect(p,a,b,c,d,e,f,g,h,i,j) (p)->lpVtbl->Connect(p,a,b,c,d,e,f,g,h,i,j) -#define IDirectPlay8Client_Send(p,a,b,c,d,e,f) (p)->lpVtbl->Send(p,a,b,c,d,e,f) -#define IDirectPlay8Client_GetSendQueueInfo(p,a,b,c) (p)->lpVtbl->GetSendQueueInfo(p,a,b,c) -#define IDirectPlay8Client_GetApplicationDesc(p,a,b,c) (p)->lpVtbl->GetApplicationDesc(p,a,b,c) -#define IDirectPlay8Client_SetClientInfo(p,a,b,c,d) (p)->lpVtbl->SetClientInfo(p,a,b,c,d) -#define IDirectPlay8Client_GetServerInfo(p,a,b,c) (p)->lpVtbl->GetServerInfo(p,a,b,c) -#define IDirectPlay8Client_GetServerAddress(p,a,b) (p)->lpVtbl->GetServerAddress(p,a,b) -#define IDirectPlay8Client_Close(p,a) (p)->lpVtbl->Close(p,a) -#define IDirectPlay8Client_ReturnBuffer(p,a,b) (p)->lpVtbl->ReturnBuffer(p,a,b) -#define IDirectPlay8Client_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) -#define IDirectPlay8Client_SetCaps(p,a,b) (p)->lpVtbl->SetCaps(p,a,b) -#define IDirectPlay8Client_SetSPCaps(p,a,b,c) (p)->lpVtbl->SetSPCaps(p,a,b,c) -#define IDirectPlay8Client_GetSPCaps(p,a,b,c) (p)->lpVtbl->GetSPCaps(p,a,b,c) -#define IDirectPlay8Client_GetConnectionInfo(p,a,b) (p)->lpVtbl->GetConnectionInfo(p,a,b) -#define IDirectPlay8Client_RegisterLobby(p,a,b,c) (p)->lpVtbl->RegisterLobby(p,a,b,c) - -#define IDirectPlay8Server_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlay8Server_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlay8Server_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlay8Server_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IDirectPlay8Server_EnumServiceProviders(p,a,b,c,d,e,f) (p)->lpVtbl->EnumServiceProviders(p,a,b,c,d,e,f) -#define IDirectPlay8Server_CancelAsyncOperation(p,a,b) (p)->lpVtbl->CancelAsyncOperation(p,a,b) -#define IDirectPlay8Server_GetSendQueueInfo(p,a,b,c,d) (p)->lpVtbl->GetSendQueueInfo(p,a,b,c,d) -#define IDirectPlay8Server_GetApplicationDesc(p,a,b,c) (p)->lpVtbl->GetApplicationDesc(p,a,b,c) -#define IDirectPlay8Server_SetServerInfo(p,a,b,c,d) (p)->lpVtbl->SetServerInfo(p,a,b,c,d) -#define IDirectPlay8Server_GetClientInfo(p,a,b,c,d) (p)->lpVtbl->GetClientInfo(p,a,b,c,d) -#define IDirectPlay8Server_GetClientAddress(p,a,b,c) (p)->lpVtbl->GetClientAddress(p,a,b,c) -#define IDirectPlay8Server_GetLocalHostAddresses(p,a,b,c) (p)->lpVtbl->GetLocalHostAddresses(p,a,b,c) -#define IDirectPlay8Server_SetApplicationDesc(p,a,b) (p)->lpVtbl->SetApplicationDesc(p,a,b) -#define IDirectPlay8Server_Host(p,a,b,c,d,e,f,g) (p)->lpVtbl->Host(p,a,b,c,d,e,f,g) -#define IDirectPlay8Server_SendTo(p,a,b,c,d,e,f,g) (p)->lpVtbl->SendTo(p,a,b,c,d,e,f,g) -#define IDirectPlay8Server_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e) -#define IDirectPlay8Server_DestroyGroup(p,a,b,c,d) (p)->lpVtbl->DestroyGroup(p,a,b,c,d) -#define IDirectPlay8Server_AddPlayerToGroup(p,a,b,c,d,e) (p)->lpVtbl->AddPlayerToGroup(p,a,b,c,d,e) -#define IDirectPlay8Server_RemovePlayerFromGroup(p,a,b,c,d,e) (p)->lpVtbl->RemovePlayerFromGroup(p,a,b,c,d,e) -#define IDirectPlay8Server_SetGroupInfo(p,a,b,c,d,e) (p)->lpVtbl->SetGroupInfo(p,a,b,c,d,e) -#define IDirectPlay8Server_GetGroupInfo(p,a,b,c,d) (p)->lpVtbl->GetGroupInfo(p,a,b,c,d) -#define IDirectPlay8Server_EnumPlayersAndGroups(p,a,b,c) (p)->lpVtbl->EnumPlayersAndGroups(p,a,b,c) -#define IDirectPlay8Server_EnumGroupMembers(p,a,b,c,d) (p)->lpVtbl->EnumGroupMembers(p,a,b,c,d) -#define IDirectPlay8Server_Close(p,a) (p)->lpVtbl->Close(p,a) -#define IDirectPlay8Server_DestroyClient(p,a,b,c,d) (p)->lpVtbl->DestroyClient(p,a,b,c,d) -#define IDirectPlay8Server_ReturnBuffer(p,a,b) (p)->lpVtbl->ReturnBuffer(p,a,b) -#define IDirectPlay8Server_GetPlayerContext(p,a,b,c) (p)->lpVtbl->GetPlayerContext(p,a,b,c) -#define IDirectPlay8Server_GetGroupContext(p,a,b,c) (p)->lpVtbl->GetGroupContext(p,a,b,c) -#define IDirectPlay8Server_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) -#define IDirectPlay8Server_SetCaps(p,a,b) (p)->lpVtbl->SetCaps(p,a,b) -#define IDirectPlay8Server_SetSPCaps(p,a,b,c) (p)->lpVtbl->SetSPCaps(p,a,b,c) -#define IDirectPlay8Server_GetSPCaps(p,a,b,c) (p)->lpVtbl->GetSPCaps(p,a,b,c) -#define IDirectPlay8Server_GetConnectionInfo(p,a,b,c) (p)->lpVtbl->GetConnectionInfo(p,a,b,c) -#define IDirectPlay8Server_RegisterLobby(p,a,b,c) (p)->lpVtbl->RegisterLobby(p,a,b,c) - -#define IDirectPlay8Peer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlay8Peer_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlay8Peer_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlay8Peer_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IDirectPlay8Peer_EnumServiceProviders(p,a,b,c,d,e,f) (p)->lpVtbl->EnumServiceProviders(p,a,b,c,d,e,f) -#define IDirectPlay8Peer_CancelAsyncOperation(p,a,b) (p)->lpVtbl->CancelAsyncOperation(p,a,b) -#define IDirectPlay8Peer_Connect(p,a,b,c,d,e,f,g,h,i,j,k) (p)->lpVtbl->Connect(p,a,b,c,d,e,f,g,h,i,j,k) -#define IDirectPlay8Peer_SendTo(p,a,b,c,d,e,f,g) (p)->lpVtbl->SendTo(p,a,b,c,d,e,f,g) -#define IDirectPlay8Peer_GetSendQueueInfo(p,a,b,c,d) (p)->lpVtbl->GetSendQueueInfo(p,a,b,c,d) -#define IDirectPlay8Peer_Host(p,a,b,c,d,e,f,g) (p)->lpVtbl->Host(p,a,b,c,d,e,f,g) -#define IDirectPlay8Peer_GetApplicationDesc(p,a,b,c) (p)->lpVtbl->GetApplicationDesc(p,a,b,c) -#define IDirectPlay8Peer_SetApplicationDesc(p,a,b) (p)->lpVtbl->SetApplicationDesc(p,a,b) -#define IDirectPlay8Peer_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e) -#define IDirectPlay8Peer_DestroyGroup(p,a,b,c,d) (p)->lpVtbl->DestroyGroup(p,a,b,c,d) -#define IDirectPlay8Peer_AddPlayerToGroup(p,a,b,c,d,e) (p)->lpVtbl->AddPlayerToGroup(p,a,b,c,d,e) -#define IDirectPlay8Peer_RemovePlayerFromGroup(p,a,b,c,d,e) (p)->lpVtbl->RemovePlayerFromGroup(p,a,b,c,d,e) -#define IDirectPlay8Peer_SetGroupInfo(p,a,b,c,d,e) (p)->lpVtbl->SetGroupInfo(p,a,b,c,d,e) -#define IDirectPlay8Peer_GetGroupInfo(p,a,b,c,d) (p)->lpVtbl->GetGroupInfo(p,a,b,c,d) -#define IDirectPlay8Peer_EnumPlayersAndGroups(p,a,b,c) (p)->lpVtbl->EnumPlayersAndGroups(p,a,b,c) -#define IDirectPlay8Peer_EnumGroupMembers(p,a,b,c,d) (p)->lpVtbl->EnumGroupMembers(p,a,b,c,d) -#define IDirectPlay8Peer_SetPeerInfo(p,a,b,c,d) (p)->lpVtbl->SetPeerInfo(p,a,b,c,d) -#define IDirectPlay8Peer_GetPeerInfo(p,a,b,c,d) (p)->lpVtbl->GetPeerInfo(p,a,b,c,d) -#define IDirectPlay8Peer_GetPeerAddress(p,a,b,c) (p)->lpVtbl->GetPeerAddress(p,a,b,c) -#define IDirectPlay8Peer_GetLocalHostAddresses(p,a,b,c) (p)->lpVtbl->GetLocalHostAddresses(p,a,b,c) -#define IDirectPlay8Peer_Close(p,a) (p)->lpVtbl->Close(p,a) -#define IDirectPlay8Peer_EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k) (p)->lpVtbl->EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k) -#define IDirectPlay8Peer_DestroyPeer(p,a,b,c,d) (p)->lpVtbl->DestroyPeer(p,a,b,c,d) -#define IDirectPlay8Peer_ReturnBuffer(p,a,b) (p)->lpVtbl->ReturnBuffer(p,a,b) -#define IDirectPlay8Peer_GetPlayerContext(p,a,b,c) (p)->lpVtbl->GetPlayerContext(p,a,b,c) -#define IDirectPlay8Peer_GetGroupContext(p,a,b,c) (p)->lpVtbl->GetGroupContext(p,a,b,c) -#define IDirectPlay8Peer_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) -#define IDirectPlay8Peer_SetCaps(p,a,b) (p)->lpVtbl->SetCaps(p,a,b) -#define IDirectPlay8Peer_SetSPCaps(p,a,b,c) (p)->lpVtbl->SetSPCaps(p,a,b,c) -#define IDirectPlay8Peer_GetSPCaps(p,a,b,c) (p)->lpVtbl->GetSPCaps(p,a,b,c) -#define IDirectPlay8Peer_GetConnectionInfo(p,a,b,c) (p)->lpVtbl->GetConnectionInfo(p,a,b,c) -#define IDirectPlay8Peer_RegisterLobby(p,a,b,c) (p)->lpVtbl->RegisterLobby(p,a,b,c) -#define IDirectPlay8Peer_TerminateSession(p,a,b,c) (p)->lpVtbl->TerminateSession(p,a,b,c) - -#define IDirectPlay8ThreadPool_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlay8ThreadPool_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlay8ThreadPool_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlay8ThreadPool_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IDirectPlay8ThreadPool_Close(p,a) (p)->lpVtbl->Close(p,a) -#define IDirectPlay8ThreadPool_GetThreadCount(p,a,b,c) (p)->lpVtbl->GetThreadCount(p,a,b,c) -#define IDirectPlay8ThreadPool_SetThreadCount(p,a,b,c) (p)->lpVtbl->SetThreadCount(p,a,b,c) -#define IDirectPlay8ThreadPool_DoWork(p,a,b) (p)->lpVtbl->DoWork(p,a,b) - -#define IDirectPlay8NATResolver_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlay8NATResolver_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlay8NATResolver_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlay8NATResolver_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IDirectPlay8NATResolver_Start(p,a,b,c) (p)->lpVtbl->Start(p,a,b,c) -#define IDirectPlay8NATResolver_Close(p,a) (p)->lpVtbl->Close(p,a) -#define IDirectPlay8NATResolver_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) -#define IDirectPlay8NATResolver_GetAddresses(p,a,b,c) (p)->lpVtbl->GetAddresses(p,a,b,c) - -#else /* C++ */ - -#define IDirectPlay8Client_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlay8Client_AddRef(p) (p)->AddRef() -#define IDirectPlay8Client_Release(p) (p)->Release() -#define IDirectPlay8Client_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#define IDirectPlay8Client_EnumServiceProviders(p,a,b,c,d,e,f) (p)->EnumServiceProviders(a,b,c,d,e,f) -#define IDirectPlay8Client_EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k) (p)->EnumHosts(a,b,c,d,e,f,g,h,i,j,k) -#define IDirectPlay8Client_CancelAsyncOperation(p,a,b) (p)->CancelAsyncOperation(a,b) -#define IDirectPlay8Client_Connect(p,a,b,c,d,e,f,g,h,i,j) (p)->Connect(a,b,c,d,e,f,g,h,i,j) -#define IDirectPlay8Client_Send(p,a,b,c,d,e,f) (p)->Send(a,b,c,d,e,f) -#define IDirectPlay8Client_GetSendQueueInfo(p,a,b,c) (p)->GetSendQueueInfo(a,b,c) -#define IDirectPlay8Client_GetApplicationDesc(p,a,b,c) (p)->GetApplicationDesc(a,b,c) -#define IDirectPlay8Client_SetClientInfo(p,a,b,c,d) (p)->SetClientInfo(a,b,c,d) -#define IDirectPlay8Client_GetServerInfo(p,a,b,c) (p)->GetServerInfo(a,b,c) -#define IDirectPlay8Client_GetServerAddress(p,a,b) (p)->GetServerAddress(a,b) -#define IDirectPlay8Client_Close(p,a) (p)->Close(a) -#define IDirectPlay8Client_ReturnBuffer(p,a,b) (p)->ReturnBuffer(a,b) -#define IDirectPlay8Client_GetCaps(p,a,b) (p)->GetCaps(a,b) -#define IDirectPlay8Client_SetCaps(p,a,b) (p)->SetCaps(a,b) -#define IDirectPlay8Client_SetSPCaps(p,a,b,c) (p)->SetSPCaps(a,b,c) -#define IDirectPlay8Client_GetSPCaps(p,a,b,c) (p)->GetSPCaps(a,b,c) -#define IDirectPlay8Client_GetConnectionInfo(p,a,b) (p)->GetConnectionInfo(a,b) -#define IDirectPlay8Client_RegisterLobby(p,a,b,c) (p)->RegisterLobby(a,b,c) - -#define IDirectPlay8Server_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlay8Server_AddRef(p) (p)->AddRef() -#define IDirectPlay8Server_Release(p) (p)->Release() -#define IDirectPlay8Server_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#define IDirectPlay8Server_EnumServiceProviders(p,a,b,c,d,e,f) (p)->EnumServiceProviders(a,b,c,d,e,f) -#define IDirectPlay8Server_CancelAsyncOperation(p,a,b) (p)->CancelAsyncOperation(a,b) -#define IDirectPlay8Server_GetSendQueueInfo(p,a,b,c,d) (p)->GetSendQueueInfo(a,b,c,d) -#define IDirectPlay8Server_GetApplicationDesc(p,a,b,c) (p)->GetApplicationDesc(a,b,c) -#define IDirectPlay8Server_SetServerInfo(p,a,b,c,d) (p)->SetServerInfo(a,b,c,d) -#define IDirectPlay8Server_GetClientInfo(p,a,b,c,d) (p)->GetClientInfo(a,b,c,d) -#define IDirectPlay8Server_GetClientAddress(p,a,b,c) (p)->GetClientAddress(a,b,c) -#define IDirectPlay8Server_GetLocalHostAddresses(p,a,b,c) (p)->GetLocalHostAddresses(a,b,c) -#define IDirectPlay8Server_SetApplicationDesc(p,a,b) (p)->SetApplicationDesc(a,b) -#define IDirectPlay8Server_Host(p,a,b,c,d,e,f,g) (p)->Host(a,b,c,d,e,f,g) -#define IDirectPlay8Server_SendTo(p,a,b,c,d,e,f,g) (p)->SendTo(a,b,c,d,e,f,g) -#define IDirectPlay8Server_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e) -#define IDirectPlay8Server_DestroyGroup(p,a,b,c,d) (p)->DestroyGroup(a,b,c,d) -#define IDirectPlay8Server_AddPlayerToGroup(p,a,b,c,d,e) (p)->AddPlayerToGroup(a,b,c,d,e) -#define IDirectPlay8Server_RemovePlayerFromGroup(p,a,b,c,d,e) (p)->RemovePlayerFromGroup(a,b,c,d,e) -#define IDirectPlay8Server_SetGroupInfo(p,a,b,c,d,e) (p)->SetGroupInfo(a,b,c,d,e) -#define IDirectPlay8Server_GetGroupInfo(p,a,b,c,d) (p)->GetGroupInfo(a,b,c,d) -#define IDirectPlay8Server_EnumPlayersAndGroups(p,a,b,c) (p)->EnumPlayersAndGroups(a,b,c) -#define IDirectPlay8Server_EnumGroupMembers(p,a,b,c,d) (p)->EnumGroupMembers(a,b,c,d) -#define IDirectPlay8Server_Close(p,a) (p)->Close(a) -#define IDirectPlay8Server_DestroyClient(p,a,b,c,d) (p)->DestroyClient(a,b,c,d) -#define IDirectPlay8Server_ReturnBuffer(p,a,b) (p)->ReturnBuffer(a,b) -#define IDirectPlay8Server_GetPlayerContext(p,a,b,c) (p)->GetPlayerContext(a,b,c) -#define IDirectPlay8Server_GetGroupContext(p,a,b,c) (p)->GetGroupContext(a,b,c) -#define IDirectPlay8Server_GetCaps(p,a,b) (p)->GetCaps(a,b) -#define IDirectPlay8Server_SetCaps(p,a,b) (p)->SetCaps(a,b) -#define IDirectPlay8Server_SetSPCaps(p,a,b,c) (p)->SetSPCaps(a,b,c) -#define IDirectPlay8Server_GetSPCaps(p,a,b,c) (p)->GetSPCaps(a,b,c) -#define IDirectPlay8Server_GetConnectionInfo(p,a,b,c) (p)->GetConnectionInfo(a,b,c) -#define IDirectPlay8Server_RegisterLobby(p,a,b,c) (p)->RegisterLobby(a,b,c) - -#define IDirectPlay8Peer_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlay8Peer_AddRef(p) (p)->AddRef() -#define IDirectPlay8Peer_Release(p) (p)->Release() -#define IDirectPlay8Peer_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#define IDirectPlay8Peer_EnumServiceProviders(p,a,b,c,d,e,f) (p)->EnumServiceProviders(a,b,c,d,e,f) -#define IDirectPlay8Peer_CancelAsyncOperation(p,a,b) (p)->CancelAsyncOperation(a,b) -#define IDirectPlay8Peer_Connect(p,a,b,c,d,e,f,g,h,i,j,k) (p)->Connect(a,b,c,d,e,f,g,h,i,j,k) -#define IDirectPlay8Peer_SendTo(p,a,b,c,d,e,f,g) (p)->SendTo(a,b,c,d,e,f,g) -#define IDirectPlay8Peer_GetSendQueueInfo(p,a,b,c,d) (p)->GetSendQueueInfo(a,b,c,d) -#define IDirectPlay8Peer_Host(p,a,b,c,d,e,f,g) (p)->Host(a,b,c,d,e,f,g) -#define IDirectPlay8Peer_GetApplicationDesc(p,a,b,c) (p)->GetApplicationDesc(a,b,c) -#define IDirectPlay8Peer_SetApplicationDesc(p,a,b) (p)->SetApplicationDesc(a,b) -#define IDirectPlay8Peer_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e) -#define IDirectPlay8Peer_DestroyGroup(p,a,b,c,d) (p)->DestroyGroup(a,b,c,d) -#define IDirectPlay8Peer_AddPlayerToGroup(p,a,b,c,d,e) (p)->AddPlayerToGroup(a,b,c,d,e) -#define IDirectPlay8Peer_RemovePlayerFromGroup(p,a,b,c,d,e) (p)->RemovePlayerFromGroup(a,b,c,d,e) -#define IDirectPlay8Peer_SetGroupInfo(p,a,b,c,d,e) (p)->SetGroupInfo(a,b,c,d,e) -#define IDirectPlay8Peer_GetGroupInfo(p,a,b,c,d) (p)->GetGroupInfo(a,b,c,d) -#define IDirectPlay8Peer_EnumPlayersAndGroups(p,a,b,c) (p)->EnumPlayersAndGroups(a,b,c) -#define IDirectPlay8Peer_EnumGroupMembers(p,a,b,c,d) (p)->EnumGroupMembers(a,b,c,d) -#define IDirectPlay8Peer_SetPeerInfo(p,a,b,c,d) (p)->SetPeerInfo(a,b,c,d) -#define IDirectPlay8Peer_GetPeerInfo(p,a,b,c,d) (p)->GetPeerInfo(a,b,c,d) -#define IDirectPlay8Peer_GetPeerAddress(p,a,b,c) (p)->GetPeerAddress(a,b,c) -#define IDirectPlay8Peer_GetLocalHostAddresses(p,a,b,c) (p)->GetLocalHostAddresses(a,b,c) -#define IDirectPlay8Peer_Close(p,a) (p)->Close(a) -#define IDirectPlay8Peer_EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k) (p)->EnumHosts(a,b,c,d,e,f,g,h,i,j,k) -#define IDirectPlay8Peer_DestroyPeer(p,a,b,c,d) (p)->DestroyPeer(a,b,c,d) -#define IDirectPlay8Peer_ReturnBuffer(p,a,b) (p)->ReturnBuffer(a,b) -#define IDirectPlay8Peer_GetPlayerContext(p,a,b,c) (p)->GetPlayerContext(a,b,c) -#define IDirectPlay8Peer_GetGroupContext(p,a,b,c) (p)->GetGroupContext(a,b,c) -#define IDirectPlay8Peer_GetCaps(p,a,b) (p)->GetCaps(a,b) -#define IDirectPlay8Peer_SetCaps(p,a,b) (p)->SetCaps(a,b) -#define IDirectPlay8Peer_SetSPCaps(p,a,b,c) (p)->SetSPCaps(a,b,c) -#define IDirectPlay8Peer_GetSPCaps(p,a,b,c) (p)->GetSPCaps(a,b,c) -#define IDirectPlay8Peer_GetConnectionInfo(p,a,b,c) (p)->GetConnectionInfo(a,b,c) -#define IDirectPlay8Peer_RegisterLobby(p,a,b,c) (p)->RegisterLobby(a,b,c) -#define IDirectPlay8Peer_TerminateSession(p,a,b,c) (p)->TerminateSession(a,b,c) - -#define IDirectPlay8ThreadPool_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlay8ThreadPool_AddRef(p) (p)->AddRef() -#define IDirectPlay8ThreadPool_Release(p) (p)->Release() -#define IDirectPlay8ThreadPool_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#define IDirectPlay8ThreadPool_Close(p,a) (p)->Close(a) -#define IDirectPlay8ThreadPool_GetThreadCount(p,a,b,c) (p)->GetThreadCount(a,b,c) -#define IDirectPlay8ThreadPool_SetThreadCount(p,a,b,c) (p)->SetThreadCount(a,b,c) -#define IDirectPlay8ThreadPool_DoWork(p,a,b) (p)->DoWork(a,b) - -#define IDirectPlay8NATResolver_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlay8NATResolver_AddRef(p) (p)->AddRef() -#define IDirectPlay8NATResolver_Release(p) (p)->Release() -#define IDirectPlay8NATResolver_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#define IDirectPlay8NATResolver_Start(p,a,b,c) (p)->Start(a,b,c) -#define IDirectPlay8NATResolver_Close(p,a) (p)->Close(a) -#define IDirectPlay8NATResolver_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) -#define IDirectPlay8NATResolver_GetAddresses(p,a,b,c) (p)->GetAddresses(a,b,c) - -#endif - - - -/**************************************************************************** - * - * DIRECTPLAY8 ERRORS - * - * Errors are represented by negative values and cannot be combined. - * - ****************************************************************************/ - -#define _DPN_FACILITY_CODE 0x015 -#define _DPNHRESULT_BASE 0x8000 -#define MAKE_DPNHRESULT( code ) MAKE_HRESULT( 1, _DPN_FACILITY_CODE, ( code + _DPNHRESULT_BASE ) ) - -#define DPN_OK S_OK - -#define DPNSUCCESS_EQUAL MAKE_HRESULT( 0, _DPN_FACILITY_CODE, ( 0x5 + _DPNHRESULT_BASE ) ) -#define DPNSUCCESS_NOPLAYERSINGROUP MAKE_HRESULT( 0, _DPN_FACILITY_CODE, ( 0x8 + _DPNHRESULT_BASE ) ) // added for DirectX 9 -#define DPNSUCCESS_NOTEQUAL MAKE_HRESULT( 0, _DPN_FACILITY_CODE, (0x0A + _DPNHRESULT_BASE ) ) -#define DPNSUCCESS_PENDING MAKE_HRESULT( 0, _DPN_FACILITY_CODE, (0x0e + _DPNHRESULT_BASE ) ) - -#define DPNERR_ABORTED MAKE_DPNHRESULT( 0x30 ) -#define DPNERR_ADDRESSING MAKE_DPNHRESULT( 0x40 ) -#define DPNERR_ALREADYCLOSING MAKE_DPNHRESULT( 0x50 ) -#define DPNERR_ALREADYCONNECTED MAKE_DPNHRESULT( 0x60 ) -#define DPNERR_ALREADYDISCONNECTING MAKE_DPNHRESULT( 0x70 ) -#define DPNERR_ALREADYINITIALIZED MAKE_DPNHRESULT( 0x80 ) -#define DPNERR_ALREADYREGISTERED MAKE_DPNHRESULT( 0x90 ) -#define DPNERR_BUFFERTOOSMALL MAKE_DPNHRESULT( 0x100 ) -#define DPNERR_CANNOTCANCEL MAKE_DPNHRESULT( 0x110 ) -#define DPNERR_CANTCREATEGROUP MAKE_DPNHRESULT( 0x120 ) -#define DPNERR_CANTCREATEPLAYER MAKE_DPNHRESULT( 0x130 ) -#define DPNERR_CANTLAUNCHAPPLICATION MAKE_DPNHRESULT( 0x140 ) -#define DPNERR_CONNECTING MAKE_DPNHRESULT( 0x150 ) -#define DPNERR_CONNECTIONLOST MAKE_DPNHRESULT( 0x160 ) -#define DPNERR_CONVERSION MAKE_DPNHRESULT( 0x170 ) -#define DPNERR_DATATOOLARGE MAKE_DPNHRESULT( 0x175 ) -#define DPNERR_DOESNOTEXIST MAKE_DPNHRESULT( 0x180 ) -#define DPNERR_DPNSVRNOTAVAILABLE MAKE_DPNHRESULT( 0x185 ) -#define DPNERR_DUPLICATECOMMAND MAKE_DPNHRESULT( 0x190 ) -#define DPNERR_ENDPOINTNOTRECEIVING MAKE_DPNHRESULT( 0x200 ) -#define DPNERR_ENUMQUERYTOOLARGE MAKE_DPNHRESULT( 0x210 ) -#define DPNERR_ENUMRESPONSETOOLARGE MAKE_DPNHRESULT( 0x220 ) -#define DPNERR_EXCEPTION MAKE_DPNHRESULT( 0x230 ) -#define DPNERR_GENERIC E_FAIL -#define DPNERR_GROUPNOTEMPTY MAKE_DPNHRESULT( 0x240 ) -#define DPNERR_HOSTING MAKE_DPNHRESULT( 0x250 ) -#define DPNERR_HOSTREJECTEDCONNECTION MAKE_DPNHRESULT( 0x260 ) -#define DPNERR_HOSTTERMINATEDSESSION MAKE_DPNHRESULT( 0x270 ) -#define DPNERR_INCOMPLETEADDRESS MAKE_DPNHRESULT( 0x280 ) -#define DPNERR_INVALIDADDRESSFORMAT MAKE_DPNHRESULT( 0x290 ) -#define DPNERR_INVALIDAPPLICATION MAKE_DPNHRESULT( 0x300 ) -#define DPNERR_INVALIDCOMMAND MAKE_DPNHRESULT( 0x310 ) -#define DPNERR_INVALIDDEVICEADDRESS MAKE_DPNHRESULT( 0x320 ) -#define DPNERR_INVALIDENDPOINT MAKE_DPNHRESULT( 0x330 ) -#define DPNERR_INVALIDFLAGS MAKE_DPNHRESULT( 0x340 ) -#define DPNERR_INVALIDGROUP MAKE_DPNHRESULT( 0x350 ) -#define DPNERR_INVALIDHANDLE MAKE_DPNHRESULT( 0x360 ) -#define DPNERR_INVALIDHOSTADDRESS MAKE_DPNHRESULT( 0x370 ) -#define DPNERR_INVALIDINSTANCE MAKE_DPNHRESULT( 0x380 ) -#define DPNERR_INVALIDINTERFACE MAKE_DPNHRESULT( 0x390 ) -#define DPNERR_INVALIDOBJECT MAKE_DPNHRESULT( 0x400 ) -#define DPNERR_INVALIDPARAM E_INVALIDARG -#define DPNERR_INVALIDPASSWORD MAKE_DPNHRESULT( 0x410 ) -#define DPNERR_INVALIDPLAYER MAKE_DPNHRESULT( 0x420 ) -#define DPNERR_INVALIDPOINTER E_POINTER -#define DPNERR_INVALIDPRIORITY MAKE_DPNHRESULT( 0x430 ) -#define DPNERR_INVALIDSTRING MAKE_DPNHRESULT( 0x440 ) -#define DPNERR_INVALIDURL MAKE_DPNHRESULT( 0x450 ) -#define DPNERR_INVALIDVERSION MAKE_DPNHRESULT( 0x460 ) -#define DPNERR_NOCAPS MAKE_DPNHRESULT( 0x470 ) -#define DPNERR_NOCONNECTION MAKE_DPNHRESULT( 0x480 ) -#define DPNERR_NOHOSTPLAYER MAKE_DPNHRESULT( 0x490 ) -#define DPNERR_NOINTERFACE E_NOINTERFACE -#define DPNERR_NOMOREADDRESSCOMPONENTS MAKE_DPNHRESULT( 0x500 ) -#define DPNERR_NORESPONSE MAKE_DPNHRESULT( 0x510 ) -#define DPNERR_NOTALLOWED MAKE_DPNHRESULT( 0x520 ) -#define DPNERR_NOTHOST MAKE_DPNHRESULT( 0x530 ) -#define DPNERR_NOTREADY MAKE_DPNHRESULT( 0x540 ) -#define DPNERR_NOTREGISTERED MAKE_DPNHRESULT( 0x550 ) -#define DPNERR_OUTOFMEMORY E_OUTOFMEMORY -#define DPNERR_PENDING DPNSUCCESS_PENDING -#define DPNERR_PLAYERALREADYINGROUP MAKE_DPNHRESULT( 0x560 ) -#define DPNERR_PLAYERLOST MAKE_DPNHRESULT( 0x570 ) -#define DPNERR_PLAYERNOTINGROUP MAKE_DPNHRESULT( 0x580 ) -#define DPNERR_PLAYERNOTREACHABLE MAKE_DPNHRESULT( 0x590 ) -#define DPNERR_SENDTOOLARGE MAKE_DPNHRESULT( 0x600 ) -#define DPNERR_SESSIONFULL MAKE_DPNHRESULT( 0x610 ) -#define DPNERR_TABLEFULL MAKE_DPNHRESULT( 0x620 ) -#define DPNERR_TIMEDOUT MAKE_DPNHRESULT( 0x630 ) -#define DPNERR_UNINITIALIZED MAKE_DPNHRESULT( 0x640 ) -#define DPNERR_UNSUPPORTED E_NOTIMPL -#define DPNERR_USERCANCEL MAKE_DPNHRESULT( 0x650 ) - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/sdk/dx8sdk/Include/dplobby.h b/sdk/dx8sdk/Include/dplobby.h deleted file mode 100644 index c91d3238..00000000 --- a/sdk/dx8sdk/Include/dplobby.h +++ /dev/null @@ -1,853 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) 1996-1997 Microsoft Corporation. All Rights Reserved. - * - * File: dplobby.h - * Content: DirectPlayLobby include file - ***************************************************************************/ -#ifndef __DPLOBBY_INCLUDED__ -#define __DPLOBBY_INCLUDED__ - -#include "dplay.h" - -/* avoid warnings at Level 4 */ -#pragma warning(disable:4201) - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -/* - * GUIDS used by DirectPlay objects - */ - -/* {AF465C71-9588-11cf-A020-00AA006157AC} */ -DEFINE_GUID(IID_IDirectPlayLobby, 0xaf465c71, 0x9588, 0x11cf, 0xa0, 0x20, 0x0, 0xaa, 0x0, 0x61, 0x57, 0xac); -/* {26C66A70-B367-11cf-A024-00AA006157AC} */ -DEFINE_GUID(IID_IDirectPlayLobbyA, 0x26c66a70, 0xb367, 0x11cf, 0xa0, 0x24, 0x0, 0xaa, 0x0, 0x61, 0x57, 0xac); -/* {0194C220-A303-11d0-9C4F-00A0C905425E} */ -DEFINE_GUID(IID_IDirectPlayLobby2, 0x194c220, 0xa303, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e); -/* {1BB4AF80-A303-11d0-9C4F-00A0C905425E} */ -DEFINE_GUID(IID_IDirectPlayLobby2A, 0x1bb4af80, 0xa303, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e); -/* {2DB72490-652C-11d1-A7A8-0000F803ABFC} */ -DEFINE_GUID(IID_IDirectPlayLobby3, 0x2db72490, 0x652c, 0x11d1, 0xa7, 0xa8, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc); -/* {2DB72491-652C-11d1-A7A8-0000F803ABFC} */ -DEFINE_GUID(IID_IDirectPlayLobby3A, 0x2db72491, 0x652c, 0x11d1, 0xa7, 0xa8, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc); -/* {2FE8F810-B2A5-11d0-A787-0000F803ABFC} */ -DEFINE_GUID(CLSID_DirectPlayLobby, 0x2fe8f810, 0xb2a5, 0x11d0, 0xa7, 0x87, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc); - - -/**************************************************************************** - * - * IDirectPlayLobby Structures - * - * Various structures used to invoke DirectPlayLobby. - * - ****************************************************************************/ - -typedef struct IDirectPlayLobby FAR *LPDIRECTPLAYLOBBY; -typedef struct IDirectPlayLobby FAR *LPDIRECTPLAYLOBBYA; -typedef struct IDirectPlayLobby IDirectPlayLobbyA; - -typedef struct IDirectPlayLobby2 FAR *LPDIRECTPLAYLOBBY2; -typedef struct IDirectPlayLobby2 FAR *LPDIRECTPLAYLOBBY2A; -typedef struct IDirectPlayLobby2 IDirectPlayLobby2A; - -typedef struct IDirectPlayLobby3 FAR *LPDIRECTPLAYLOBBY3; -typedef struct IDirectPlayLobby3 FAR *LPDIRECTPLAYLOBBY3A; -typedef struct IDirectPlayLobby3 IDirectPlayLobby3A; - - -/* - * DPLAPPINFO - * Used to hold information about a registered DirectPlay - * application - */ -typedef struct DPLAPPINFO -{ - DWORD dwSize; // Size of this structure - GUID guidApplication; // GUID of the Application - union - { - LPSTR lpszAppNameA; // Pointer to the Application Name - LPWSTR lpszAppName; - }; - -} DPLAPPINFO, FAR *LPDPLAPPINFO; - -/* - * LPCDPLAPPINFO - * A constant pointer to DPLAPPINFO - */ -typedef const DPLAPPINFO FAR *LPCDPLAPPINFO; - -/* - * DPCOMPOUNDADDRESSELEMENT - * - * An array of these is passed to CreateCompoundAddresses() - */ -typedef struct DPCOMPOUNDADDRESSELEMENT -{ - GUID guidDataType; - DWORD dwDataSize; - LPVOID lpData; -} DPCOMPOUNDADDRESSELEMENT, FAR *LPDPCOMPOUNDADDRESSELEMENT; - -/* - * LPCDPCOMPOUNDADDRESSELEMENT - * A constant pointer to DPCOMPOUNDADDRESSELEMENT - */ -typedef const DPCOMPOUNDADDRESSELEMENT FAR *LPCDPCOMPOUNDADDRESSELEMENT; - -/* - * LPDPAPPLICATIONDESC - * Used to register a DirectPlay application - */ -typedef struct DPAPPLICATIONDESC -{ - DWORD dwSize; - DWORD dwFlags; - union - { - LPSTR lpszApplicationNameA; - LPWSTR lpszApplicationName; - }; - GUID guidApplication; - union - { - LPSTR lpszFilenameA; - LPWSTR lpszFilename; - }; - union - { - LPSTR lpszCommandLineA; - LPWSTR lpszCommandLine; - }; - union - { - LPSTR lpszPathA; - LPWSTR lpszPath; - }; - union - { - LPSTR lpszCurrentDirectoryA; - LPWSTR lpszCurrentDirectory; - }; - LPSTR lpszDescriptionA; - LPWSTR lpszDescriptionW; -} DPAPPLICATIONDESC, *LPDPAPPLICATIONDESC; - -/* - * LPDPAPPLICATIONDESC2 - * Used to register a DirectPlay application - */ -typedef struct DPAPPLICATIONDESC2 -{ - DWORD dwSize; - DWORD dwFlags; - union - { - LPSTR lpszApplicationNameA; - LPWSTR lpszApplicationName; - }; - GUID guidApplication; - union - { - LPSTR lpszFilenameA; - LPWSTR lpszFilename; - }; - union - { - LPSTR lpszCommandLineA; - LPWSTR lpszCommandLine; - }; - union - { - LPSTR lpszPathA; - LPWSTR lpszPath; - }; - union - { - LPSTR lpszCurrentDirectoryA; - LPWSTR lpszCurrentDirectory; - }; - LPSTR lpszDescriptionA; - LPWSTR lpszDescriptionW; - union - { - LPSTR lpszAppLauncherNameA; - LPWSTR lpszAppLauncherName; - }; -} DPAPPLICATIONDESC2, *LPDPAPPLICATIONDESC2; - - -/**************************************************************************** - * - * Enumeration Method Callback Prototypes - * - ****************************************************************************/ - -/* - * Callback for EnumAddress() - */ -typedef BOOL (FAR PASCAL *LPDPENUMADDRESSCALLBACK)( - REFGUID guidDataType, - DWORD dwDataSize, - LPCVOID lpData, - LPVOID lpContext); - -/* - * Callback for EnumAddressTypes() - */ -typedef BOOL (FAR PASCAL *LPDPLENUMADDRESSTYPESCALLBACK)( - REFGUID guidDataType, - LPVOID lpContext, - DWORD dwFlags); - -/* - * Callback for EnumLocalApplications() - */ -typedef BOOL (FAR PASCAL * LPDPLENUMLOCALAPPLICATIONSCALLBACK)( - LPCDPLAPPINFO lpAppInfo, - LPVOID lpContext, - DWORD dwFlags); - - -/**************************************************************************** - * - * DirectPlayLobby API Prototypes - * - ****************************************************************************/ -#ifdef UNICODE -#define DirectPlayLobbyCreate DirectPlayLobbyCreateW -#else -#define DirectPlayLobbyCreate DirectPlayLobbyCreateA -#endif /* UNICODE */ - -extern HRESULT WINAPI DirectPlayLobbyCreateW(LPGUID, LPDIRECTPLAYLOBBY *, IUnknown *, LPVOID, DWORD ); -extern HRESULT WINAPI DirectPlayLobbyCreateA(LPGUID, LPDIRECTPLAYLOBBYA *, IUnknown *, LPVOID, DWORD ); - - -/**************************************************************************** - * - * IDirectPlayLobby (and IDirectPlayLobbyA) Interface - * - ****************************************************************************/ -#undef INTERFACE -#define INTERFACE IDirectPlayLobby -DECLARE_INTERFACE_( IDirectPlayLobby, IUnknown ) -{ - /* IUnknown Methods */ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectPlayLobby Methods */ - STDMETHOD(Connect) (THIS_ DWORD, LPDIRECTPLAY2 *, IUnknown FAR *) PURE; - STDMETHOD(CreateAddress) (THIS_ REFGUID, REFGUID, LPCVOID, DWORD, LPVOID, LPDWORD) PURE; - STDMETHOD(EnumAddress) (THIS_ LPDPENUMADDRESSCALLBACK, LPCVOID, DWORD, LPVOID) PURE; - STDMETHOD(EnumAddressTypes) (THIS_ LPDPLENUMADDRESSTYPESCALLBACK, REFGUID, LPVOID, DWORD) PURE; - STDMETHOD(EnumLocalApplications)(THIS_ LPDPLENUMLOCALAPPLICATIONSCALLBACK, LPVOID, DWORD) PURE; - STDMETHOD(GetConnectionSettings)(THIS_ DWORD, LPVOID, LPDWORD) PURE; - STDMETHOD(ReceiveLobbyMessage) (THIS_ DWORD, DWORD, LPDWORD, LPVOID, LPDWORD) PURE; - STDMETHOD(RunApplication) (THIS_ DWORD, LPDWORD, LPDPLCONNECTION, HANDLE) PURE; - STDMETHOD(SendLobbyMessage) (THIS_ DWORD, DWORD, LPVOID, DWORD) PURE; - STDMETHOD(SetConnectionSettings)(THIS_ DWORD, DWORD, LPDPLCONNECTION) PURE; - STDMETHOD(SetLobbyMessageEvent) (THIS_ DWORD, DWORD, HANDLE) PURE; - -}; - -/**************************************************************************** - * - * IDirectPlayLobby2 (and IDirectPlayLobby2A) Interface - * - ****************************************************************************/ -#undef INTERFACE -#define INTERFACE IDirectPlayLobby2 -DECLARE_INTERFACE_( IDirectPlayLobby2, IDirectPlayLobby ) -{ - /* IUnknown Methods */ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectPlayLobby Methods */ - STDMETHOD(Connect) (THIS_ DWORD, LPDIRECTPLAY2 *, IUnknown FAR *) PURE; - STDMETHOD(CreateAddress) (THIS_ REFGUID, REFGUID, LPCVOID, DWORD, LPVOID, LPDWORD) PURE; - STDMETHOD(EnumAddress) (THIS_ LPDPENUMADDRESSCALLBACK, LPCVOID, DWORD, LPVOID) PURE; - STDMETHOD(EnumAddressTypes) (THIS_ LPDPLENUMADDRESSTYPESCALLBACK, REFGUID, LPVOID, DWORD) PURE; - STDMETHOD(EnumLocalApplications)(THIS_ LPDPLENUMLOCALAPPLICATIONSCALLBACK, LPVOID, DWORD) PURE; - STDMETHOD(GetConnectionSettings)(THIS_ DWORD, LPVOID, LPDWORD) PURE; - STDMETHOD(ReceiveLobbyMessage) (THIS_ DWORD, DWORD, LPDWORD, LPVOID, LPDWORD) PURE; - STDMETHOD(RunApplication) (THIS_ DWORD, LPDWORD, LPDPLCONNECTION, HANDLE) PURE; - STDMETHOD(SendLobbyMessage) (THIS_ DWORD, DWORD, LPVOID, DWORD) PURE; - STDMETHOD(SetConnectionSettings)(THIS_ DWORD, DWORD, LPDPLCONNECTION) PURE; - STDMETHOD(SetLobbyMessageEvent) (THIS_ DWORD, DWORD, HANDLE) PURE; - - /* IDirectPlayLobby2 Methods */ - STDMETHOD(CreateCompoundAddress)(THIS_ LPCDPCOMPOUNDADDRESSELEMENT,DWORD,LPVOID,LPDWORD) PURE; -}; - -/**************************************************************************** - * - * IDirectPlayLobby3 (and IDirectPlayLobby3A) Interface - * - ****************************************************************************/ -#undef INTERFACE -#define INTERFACE IDirectPlayLobby3 -DECLARE_INTERFACE_( IDirectPlayLobby3, IDirectPlayLobby ) -{ - /* IUnknown Methods */ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /* IDirectPlayLobby Methods */ - STDMETHOD(Connect) (THIS_ DWORD, LPDIRECTPLAY2 *, IUnknown FAR *) PURE; - STDMETHOD(CreateAddress) (THIS_ REFGUID, REFGUID, LPCVOID, DWORD, LPVOID, LPDWORD) PURE; - STDMETHOD(EnumAddress) (THIS_ LPDPENUMADDRESSCALLBACK, LPCVOID, DWORD, LPVOID) PURE; - STDMETHOD(EnumAddressTypes) (THIS_ LPDPLENUMADDRESSTYPESCALLBACK, REFGUID, LPVOID, DWORD) PURE; - STDMETHOD(EnumLocalApplications)(THIS_ LPDPLENUMLOCALAPPLICATIONSCALLBACK, LPVOID, DWORD) PURE; - STDMETHOD(GetConnectionSettings)(THIS_ DWORD, LPVOID, LPDWORD) PURE; - STDMETHOD(ReceiveLobbyMessage) (THIS_ DWORD, DWORD, LPDWORD, LPVOID, LPDWORD) PURE; - STDMETHOD(RunApplication) (THIS_ DWORD, LPDWORD, LPDPLCONNECTION, HANDLE) PURE; - STDMETHOD(SendLobbyMessage) (THIS_ DWORD, DWORD, LPVOID, DWORD) PURE; - STDMETHOD(SetConnectionSettings)(THIS_ DWORD, DWORD, LPDPLCONNECTION) PURE; - STDMETHOD(SetLobbyMessageEvent) (THIS_ DWORD, DWORD, HANDLE) PURE; - - /* IDirectPlayLobby2 Methods */ - STDMETHOD(CreateCompoundAddress)(THIS_ LPCDPCOMPOUNDADDRESSELEMENT,DWORD,LPVOID,LPDWORD) PURE; - - /* IDirectPlayLobby3 Methods */ - STDMETHOD(ConnectEx) (THIS_ DWORD, REFIID, LPVOID *, IUnknown FAR *) PURE; - STDMETHOD(RegisterApplication) (THIS_ DWORD, LPVOID) PURE; - STDMETHOD(UnregisterApplication)(THIS_ DWORD, REFGUID) PURE; - STDMETHOD(WaitForConnectionSettings)(THIS_ DWORD) PURE; -}; - -/**************************************************************************** - * - * IDirectPlayLobby interface macros - * - ****************************************************************************/ - -#if !defined(__cplusplus) || defined(CINTERFACE) - -#define IDirectPlayLobby_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlayLobby_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlayLobby_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlayLobby_Connect(p,a,b,c) (p)->lpVtbl->Connect(p,a,b,c) -#define IDirectPlayLobby_ConnectEx(p,a,b,c,d) (p)->lpVtbl->ConnectEx(p,a,b,c,d) -#define IDirectPlayLobby_CreateAddress(p,a,b,c,d,e,f) (p)->lpVtbl->CreateAddress(p,a,b,c,d,e,f) -#define IDirectPlayLobby_CreateCompoundAddress(p,a,b,c,d) (p)->lpVtbl->CreateCompoundAddress(p,a,b,c,d) -#define IDirectPlayLobby_EnumAddress(p,a,b,c,d) (p)->lpVtbl->EnumAddress(p,a,b,c,d) -#define IDirectPlayLobby_EnumAddressTypes(p,a,b,c,d) (p)->lpVtbl->EnumAddressTypes(p,a,b,c,d) -#define IDirectPlayLobby_EnumLocalApplications(p,a,b,c) (p)->lpVtbl->EnumLocalApplications(p,a,b,c) -#define IDirectPlayLobby_GetConnectionSettings(p,a,b,c) (p)->lpVtbl->GetConnectionSettings(p,a,b,c) -#define IDirectPlayLobby_ReceiveLobbyMessage(p,a,b,c,d,e) (p)->lpVtbl->ReceiveLobbyMessage(p,a,b,c,d,e) -#define IDirectPlayLobby_RegisterApplication(p,a,b) (p)->lpVtbl->RegisterApplication(p,a,b) -#define IDirectPlayLobby_RunApplication(p,a,b,c,d) (p)->lpVtbl->RunApplication(p,a,b,c,d) -#define IDirectPlayLobby_SendLobbyMessage(p,a,b,c,d) (p)->lpVtbl->SendLobbyMessage(p,a,b,c,d) -#define IDirectPlayLobby_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c) -#define IDirectPlayLobby_SetLobbyMessageEvent(p,a,b,c) (p)->lpVtbl->SetLobbyMessageEvent(p,a,b,c) -#define IDirectPlayLobby_UnregisterApplication(p,a,b) (p)->lpVtbl->UnregisterApplication(p,a,b) -#define IDirectPlayLobby_WaitForConnectionSettings(p,a) (p)->lpVtbl->WaitForConnectionSettings(p,a) - -#else /* C++ */ - -#define IDirectPlayLobby_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlayLobby_AddRef(p) (p)->AddRef() -#define IDirectPlayLobby_Release(p) (p)->Release() -#define IDirectPlayLobby_Connect(p,a,b,c) (p)->Connect(a,b,c) -#define IDirectPlayLobby_ConnectEx(p,a,b,c,d) (p)->ConnectEx(a,b,c,d) -#define IDirectPlayLobby_CreateAddress(p,a,b,c,d,e,f) (p)->CreateAddress(a,b,c,d,e,f) -#define IDirectPlayLobby_CreateCompoundAddress(p,a,b,c,d) (p)->CreateCompoundAddress(a,b,c,d) -#define IDirectPlayLobby_EnumAddress(p,a,b,c,d) (p)->EnumAddress(a,b,c,d) -#define IDirectPlayLobby_EnumAddressTypes(p,a,b,c,d) (p)->EnumAddressTypes(a,b,c,d) -#define IDirectPlayLobby_EnumLocalApplications(p,a,b,c) (p)->EnumLocalApplications(a,b,c) -#define IDirectPlayLobby_GetConnectionSettings(p,a,b,c) (p)->GetConnectionSettings(a,b,c) -#define IDirectPlayLobby_ReceiveLobbyMessage(p,a,b,c,d,e) (p)->ReceiveLobbyMessage(a,b,c,d,e) -#define IDirectPlayLobby_RegisterApplication(p,a,b) (p)->RegisterApplication(a,b) -#define IDirectPlayLobby_RunApplication(p,a,b,c,d) (p)->RunApplication(a,b,c,d) -#define IDirectPlayLobby_SendLobbyMessage(p,a,b,c,d) (p)->SendLobbyMessage(a,b,c,d) -#define IDirectPlayLobby_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c) -#define IDirectPlayLobby_SetLobbyMessageEvent(p,a,b,c) (p)->SetLobbyMessageEvent(a,b,c) -#define IDirectPlayLobby_UnregisterApplication(p,a,b) (p)->UnregisterApplication(a,b) -#define IDirectPlayLobby_WaitForConnectionSettings(p,a) (p)->WaitForConnectionSettings(a) - -#endif - -/**************************************************************************** - * - * DirectPlayLobby Flags - * - ****************************************************************************/ - -/* - * This flag is used by IDirectPlayLobby->WaitForConnectionSettings to - * cancel a current wait that is in progress. - */ -#define DPLWAIT_CANCEL 0x00000001 - - -/* - * This is a message flag used by ReceiveLobbyMessage. It can be - * returned in the dwMessageFlags parameter to indicate a message from - * the system. - */ -#define DPLMSG_SYSTEM 0x00000001 - -/* - * This is a message flag used by ReceiveLobbyMessage and SendLobbyMessage. - * It is used to indicate that the message is a standard lobby message. - * DPLMSG_SETPROPERTY, DPLMSG_SETPROPERTYRESPONSE, DPLMSG_GETPROPERTY, - * DPLMSG_GETPROPERTYRESPONSE - */ -#define DPLMSG_STANDARD 0x00000002 - -/* - * Lobbyable Application registration flags - */ - -/* - * Applications registered with this flag will not show up when - * applications are enumerated in the lobby. This application - * will only be able to be launched by a lobby client that already - * knows about the application. - */ -#define DPLAPP_NOENUM 0x80000000 - -/* - * Applications registered with this flag want voice to automatically - * be enabled for their application. All players will be launched into - * an 'n'-way voice conference when the application is started. The - * user will be able to enable this flag for existing non-voice - * directplay applications. - */ -#define DPLAPP_AUTOVOICE 0x00000001 - -/* - * Applications that do their own voice conferencing should register with - * this flag to avoid allowing the user to enable other voice chat - * capabilites during the same session. This is to avoid users forcing - * the DPLAPP_AUTOVOICE flag for the application. - */ -#define DPLAPP_SELFVOICE 0x00000002 - -/**************************************************************************** - * - * DirectPlayLobby messages and message data structures - * - * All system messages have a dwMessageFlags value of DPLMSG_SYSTEM returned - * from a call to ReceiveLobbyMessage. - * - * All standard messages have a dwMessageFlags value of DPLMSG_STANDARD returned - * from a call to ReceiveLobbyMessage. - * - ****************************************************************************/ - -/* - * DPLMSG_GENERIC - * Generic message structure used to identify the message type. - */ -typedef struct _DPLMSG_GENERIC -{ - DWORD dwType; // Message type -} DPLMSG_GENERIC, FAR *LPDPLMSG_GENERIC; - -/* - * DPLMSG_SYSTEMMESSAGE - * Generic message format for all system messages -- - * DPLSYS_CONNECTIONSETTINGSREAD, DPLSYS_DPLYCONNECTSUCCEEDED, - * DPLSYS_DPLAYCONNECTFAILED, DPLSYS_APPTERMINATED, DPLSYS_NEWCONNECTIONSETTINGS - */ -typedef struct _DPLMSG_SYSTEMMESSAGE -{ - DWORD dwType; // Message type - GUID guidInstance; // Instance GUID of the dplay session the message corresponds to -} DPLMSG_SYSTEMMESSAGE, FAR *LPDPLMSG_SYSTEMMESSAGE; - -/* - * DPLMSG_SETPROPERTY - * Standard message sent by an application to a lobby to set a - * property - */ -typedef struct _DPLMSG_SETPROPERTY -{ - DWORD dwType; // Message type - DWORD dwRequestID; // Request ID (DPL_NOCONFIRMATION if no confirmation desired) - GUID guidPlayer; // Player GUID - GUID guidPropertyTag; // Property GUID - DWORD dwDataSize; // Size of data - DWORD dwPropertyData[1]; // Buffer containing data -} DPLMSG_SETPROPERTY, FAR *LPDPLMSG_SETPROPERTY; - -#define DPL_NOCONFIRMATION 0 - -/* - * DPLMSG_SETPROPERTYRESPONSE - * Standard message returned by a lobby to confirm a - * DPLMSG_SETPROPERTY message. - */ -typedef struct _DPLMSG_SETPROPERTYRESPONSE -{ - DWORD dwType; // Message type - DWORD dwRequestID; // Request ID - GUID guidPlayer; // Player GUID - GUID guidPropertyTag; // Property GUID - HRESULT hr; // Return Code -} DPLMSG_SETPROPERTYRESPONSE, FAR *LPDPLMSG_SETPROPERTYRESPONSE; - -/* - * DPLMSG_GETPROPERTY - * Standard message sent by an application to a lobby to request - * the current value of a property - */ -typedef struct _DPLMSG_GETPROPERTY -{ - DWORD dwType; // Message type - DWORD dwRequestID; // Request ID - GUID guidPlayer; // Player GUID - GUID guidPropertyTag; // Property GUID -} DPLMSG_GETPROPERTY, FAR *LPDPLMSG_GETPROPERTY; - -/* - * DPLMSG_GETPROPERTYRESPONSE - * Standard message returned by a lobby in response to a - * DPLMSG_GETPROPERTY message. - */ -typedef struct _DPLMSG_GETPROPERTYRESPONSE -{ - DWORD dwType; // Message type - DWORD dwRequestID; // Request ID - GUID guidPlayer; // Player GUID - GUID guidPropertyTag; // Property GUID - HRESULT hr; // Return Code - DWORD dwDataSize; // Size of data - DWORD dwPropertyData[1]; // Buffer containing data -} DPLMSG_GETPROPERTYRESPONSE, FAR *LPDPLMSG_GETPROPERTYRESPONSE; - -/* - * DPLMSG_NEWSESSIONHOST - * Standard message returned by a lobby in response to a - * the session host migrating to a new client - */ -typedef struct _DPLMSG_NEWSESSIONHOST -{ - DWORD dwType; // Message type - GUID guidInstance; // GUID Instance of the session -} DPLMSG_NEWSESSIONHOST, FAR *LPDPLMSG_NEWSESSIONHOST; - - -/****************************************** - * - * DirectPlay Lobby message dwType values - * - *****************************************/ - -/* - * The application has read the connection settings. - * It is now O.K. for the lobby client to release - * its IDirectPlayLobby interface. - */ -#define DPLSYS_CONNECTIONSETTINGSREAD 0x00000001 - -/* - * The application's call to DirectPlayConnect failed - */ -#define DPLSYS_DPLAYCONNECTFAILED 0x00000002 - -/* - * The application has created a DirectPlay session. - */ -#define DPLSYS_DPLAYCONNECTSUCCEEDED 0x00000003 - -/* - * The application has terminated. - */ -#define DPLSYS_APPTERMINATED 0x00000004 - -/* - * The message is a DPLMSG_SETPROPERTY message. - */ -#define DPLSYS_SETPROPERTY 0x00000005 - -/* - * The message is a DPLMSG_SETPROPERTYRESPONSE message. - */ -#define DPLSYS_SETPROPERTYRESPONSE 0x00000006 - -/* - * The message is a DPLMSG_GETPROPERTY message. - */ -#define DPLSYS_GETPROPERTY 0x00000007 - -/* - * The message is a DPLMSG_GETPROPERTYRESPONSE message. - */ -#define DPLSYS_GETPROPERTYRESPONSE 0x00000008 - -/* - * The message is a DPLMSG_NEWSESSIONHOST message. - */ -#define DPLSYS_NEWSESSIONHOST 0x00000009 - -/* - * New connection settings are available. - */ -#define DPLSYS_NEWCONNECTIONSETTINGS 0x0000000A - -/* - * The Lobby Client has released the DirectPlayLobby Interface - */ -#define DPLSYS_LOBBYCLIENTRELEASE 0x0000000B - -/**************************************************************************** - * - * DirectPlay defined property GUIDs and associated data structures - * - ****************************************************************************/ - -/* - * DPLPROPERTY_MessagesSupported - * - * Request whether the lobby supports standard. Lobby with respond with either - * TRUE or FALSE or may not respond at all. - * - * Property data is a single BOOL with TRUE or FALSE - */ -// {762CCDA1-D916-11d0-BA39-00C04FD7ED67} -DEFINE_GUID(DPLPROPERTY_MessagesSupported, -0x762ccda1, 0xd916, 0x11d0, 0xba, 0x39, 0x0, 0xc0, 0x4f, 0xd7, 0xed, 0x67); - -/* - * DPLPROPERTY_LobbyGuid - * - * Request the GUID that identifies the lobby software that the application - * is communicating with. - * - * Property data is a single GUID. - */ -// {F56920A0-D218-11d0-BA39-00C04FD7ED67} -DEFINE_GUID(DPLPROPERTY_LobbyGuid, -0xf56920a0, 0xd218, 0x11d0, 0xba, 0x39, 0x0, 0xc0, 0x4f, 0xd7, 0xed, 0x67); - -/* - * DPLPROPERTY_PlayerGuid - * - * Request the GUID that identifies the player on this machine for sending - * property data back to the lobby. - * - * Property data is the DPLDATA_PLAYERDATA structure - */ -// {B4319322-D20D-11d0-BA39-00C04FD7ED67} -DEFINE_GUID(DPLPROPERTY_PlayerGuid, -0xb4319322, 0xd20d, 0x11d0, 0xba, 0x39, 0x0, 0xc0, 0x4f, 0xd7, 0xed, 0x67); - -/* - * DPLDATA_PLAYERGUID - * - * Data structure to hold the GUID of the player and player creation flags - * from the lobby. - */ -typedef struct _DPLDATA_PLAYERGUID -{ - GUID guidPlayer; - DWORD dwPlayerFlags; -} DPLDATA_PLAYERGUID, FAR *LPDPLDATA_PLAYERGUID; - -/* - * DPLPROPERTY_PlayerScore - * - * Used to send an array of long integers to the lobby indicating the - * score of a player. - * - * Property data is the DPLDATA_PLAYERSCORE structure. - */ -// {48784000-D219-11d0-BA39-00C04FD7ED67} -DEFINE_GUID(DPLPROPERTY_PlayerScore, -0x48784000, 0xd219, 0x11d0, 0xba, 0x39, 0x0, 0xc0, 0x4f, 0xd7, 0xed, 0x67); - -/* - * DPLDATA_PLAYERSCORE - * - * Data structure to hold an array of long integers representing a player score. - * Application must allocate enough memory to hold all the scores. - */ -typedef struct _DPLDATA_PLAYERSCORE -{ - DWORD dwScoreCount; - LONG Score[1]; -} DPLDATA_PLAYERSCORE, FAR *LPDPLDATA_PLAYERSCORE; - -/**************************************************************************** - * - * DirectPlay Address ID's - * - ****************************************************************************/ - -/* DirectPlay Address - * - * A DirectPlay address consists of multiple chunks of data, each tagged - * with a GUID signifying the type of data in the chunk. The chunk also - * has a length so that unknown chunk types can be skipped. - * - * The EnumAddress() function is used to parse these address data chunks. - */ - -/* - * DPADDRESS - * - * Header for block of address data elements - */ -typedef struct _DPADDRESS -{ - GUID guidDataType; - DWORD dwDataSize; -} DPADDRESS; - -typedef DPADDRESS FAR *LPDPADDRESS; - -/* - * DPAID_TotalSize - * - * Chunk is a DWORD containing size of entire DPADDRESS structure - */ - -// {1318F560-912C-11d0-9DAA-00A0C90A43CB} -DEFINE_GUID(DPAID_TotalSize, -0x1318f560, 0x912c, 0x11d0, 0x9d, 0xaa, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb); - -/* - * DPAID_ServiceProvider - * - * Chunk is a GUID describing the service provider that created the chunk. - * All addresses must contain this chunk. - */ - -// {07D916C0-E0AF-11cf-9C4E-00A0C905425E} -DEFINE_GUID(DPAID_ServiceProvider, -0x7d916c0, 0xe0af, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e); - -/* - * DPAID_LobbyProvider - * - * Chunk is a GUID describing the lobby provider that created the chunk. - * All addresses must contain this chunk. - */ - -// {59B95640-9667-11d0-A77D-0000F803ABFC} -DEFINE_GUID(DPAID_LobbyProvider, -0x59b95640, 0x9667, 0x11d0, 0xa7, 0x7d, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc); - -/* - * DPAID_Phone and DPAID_PhoneW - * - * Chunk is a string containing a phone number (i.e. "1-800-555-1212") - * in ANSI or UNICODE format - */ - -// {78EC89A0-E0AF-11cf-9C4E-00A0C905425E} -DEFINE_GUID(DPAID_Phone, -0x78ec89a0, 0xe0af, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e); - -// {BA5A7A70-9DBF-11d0-9CC1-00A0C905425E} -DEFINE_GUID(DPAID_PhoneW, -0xba5a7a70, 0x9dbf, 0x11d0, 0x9c, 0xc1, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e); - -/* - * DPAID_Modem and DPAID_ModemW - * - * Chunk is a string containing a modem name registered with TAPI - * in ANSI or UNICODE format - */ - -// {F6DCC200-A2FE-11d0-9C4F-00A0C905425E} -DEFINE_GUID(DPAID_Modem, -0xf6dcc200, 0xa2fe, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e); - -// {01FD92E0-A2FF-11d0-9C4F-00A0C905425E} -DEFINE_GUID(DPAID_ModemW, -0x1fd92e0, 0xa2ff, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e); - -/* - * DPAID_Inet and DPAID_InetW - * - * Chunk is a string containing a TCP/IP host name or an IP address - * (i.e. "dplay.microsoft.com" or "137.55.100.173") in ANSI or UNICODE format - */ - -// {C4A54DA0-E0AF-11cf-9C4E-00A0C905425E} -DEFINE_GUID(DPAID_INet, -0xc4a54da0, 0xe0af, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e); - -// {E63232A0-9DBF-11d0-9CC1-00A0C905425E} -DEFINE_GUID(DPAID_INetW, -0xe63232a0, 0x9dbf, 0x11d0, 0x9c, 0xc1, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e); - -/* - * DPAID_InetPort - * - * Chunk is the port number used for creating the apps TCP and UDP sockets. - * WORD value (i.e. 47624). - */ - -// {E4524541-8EA5-11d1-8A96-006097B01411} -DEFINE_GUID(DPAID_INetPort, -0xe4524541, 0x8ea5, 0x11d1, 0x8a, 0x96, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11); - -#ifdef BIGMESSAGEDEFENSE -#endif - -/* - * DPCOMPORTADDRESS - * - * Used to specify com port settings. The constants that define baud rate, - * stop bits and parity are defined in WINBASE.H. The constants for flow - * control are given below. - */ - -#define DPCPA_NOFLOW 0 // no flow control -#define DPCPA_XONXOFFFLOW 1 // software flow control -#define DPCPA_RTSFLOW 2 // hardware flow control with RTS -#define DPCPA_DTRFLOW 3 // hardware flow control with DTR -#define DPCPA_RTSDTRFLOW 4 // hardware flow control with RTS and DTR - -typedef struct _DPCOMPORTADDRESS -{ - DWORD dwComPort; // COM port to use (1-4) - DWORD dwBaudRate; // baud rate (100-256k) - DWORD dwStopBits; // no. stop bits (1-2) - DWORD dwParity; // parity (none, odd, even, mark) - DWORD dwFlowControl; // flow control (none, xon/xoff, rts, dtr) -} DPCOMPORTADDRESS; - -typedef DPCOMPORTADDRESS FAR *LPDPCOMPORTADDRESS; - -/* - * DPAID_ComPort - * - * Chunk contains a DPCOMPORTADDRESS structure defining the serial port. - */ - -// {F2F0CE00-E0AF-11cf-9C4E-00A0C905425E} -DEFINE_GUID(DPAID_ComPort, -0xf2f0ce00, 0xe0af, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e); - -/**************************************************************************** - * - * dplobby 1.0 obsolete definitions - * Included for compatibility only. - * - ****************************************************************************/ -#define DPLAD_SYSTEM DPLMSG_SYSTEM - - -#ifdef __cplusplus -}; -#endif /* __cplusplus */ - -#pragma warning(default:4201) - -#endif /* __DPLOBBY_INCLUDED__ */ - diff --git a/sdk/dx8sdk/Include/dplobby8.h b/sdk/dx8sdk/Include/dplobby8.h deleted file mode 100644 index e63a5aac..00000000 --- a/sdk/dx8sdk/Include/dplobby8.h +++ /dev/null @@ -1,407 +0,0 @@ -/*========================================================================== - * - * Copyright (C) 2000 Microsoft Corporation. All Rights Reserved. - * - * File: DPLobby.h - * Content: DirectPlay8 Lobby Include File - * - ***************************************************************************/ - -#ifndef __DPLOBBY_H__ -#define __DPLOBBY_H__ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/**************************************************************************** - * - * DirectPlay8Lobby CLSIDs - * - ****************************************************************************/ - -// {667955AD-6B3B-43ca-B949-BC69B5BAFF7F} -DEFINE_GUID(CLSID_DirectPlay8LobbiedApplication, -0x667955ad, 0x6b3b, 0x43ca, 0xb9, 0x49, 0xbc, 0x69, 0xb5, 0xba, 0xff, 0x7f); - -// {3B2B6775-70B6-45af-8DEA-A209C69559F3} -DEFINE_GUID(CLSID_DirectPlay8LobbyClient, -0x3b2b6775, 0x70b6, 0x45af, 0x8d, 0xea, 0xa2, 0x9, 0xc6, 0x95, 0x59, 0xf3); - -/**************************************************************************** - * - * DirectPlay8Lobby Interface IIDs - * - ****************************************************************************/ - -// {819074A3-016C-11d3-AE14-006097B01411} -DEFINE_GUID(IID_IDirectPlay8LobbiedApplication, -0x819074a3, 0x16c, 0x11d3, 0xae, 0x14, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11); - -// {819074A2-016C-11d3-AE14-006097B01411} -DEFINE_GUID(IID_IDirectPlay8LobbyClient, -0x819074a2, 0x16c, 0x11d3, 0xae, 0x14, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11); - -/**************************************************************************** - * - * DirectPlay8Lobby Interface Pointer - * - ****************************************************************************/ - -typedef struct IDirectPlay8LobbiedApplication *PDIRECTPLAY8LOBBIEDAPPLICATION; -typedef struct IDirectPlay8LobbyClient *PDIRECTPLAY8LOBBYCLIENT; - -/**************************************************************************** - * - * DirectPlay8 Lobby Message IDs - * - ****************************************************************************/ - -#define DPL_MSGID_LOBBY 0x8000 -#define DPL_MSGID_RECEIVE (0x0001 | DPL_MSGID_LOBBY) -#define DPL_MSGID_CONNECT (0x0002 | DPL_MSGID_LOBBY) -#define DPL_MSGID_DISCONNECT (0x0003 | DPL_MSGID_LOBBY) -#define DPL_MSGID_SESSION_STATUS (0x0004 | DPL_MSGID_LOBBY) -#define DPL_MSGID_CONNECTION_SETTINGS (0x0005 | DPL_MSGID_LOBBY) - -/**************************************************************************** - * - * DirectPlay8Lobby Constants - * - ****************************************************************************/ - -// -// Specifies that operation should be performed on all open connections -// -#define DPLHANDLE_ALLCONNECTIONS 0xFFFFFFFF - -// -// The associated game session has suceeded in connecting / hosting -// -#define DPLSESSION_CONNECTED 0x0001 - -// The associated game session failed connecting / hosting -// -#define DPLSESSION_COULDNOTCONNECT 0x0002 - -// -// The associated game session has disconnected -// -#define DPLSESSION_DISCONNECTED 0x0003 - -// -// The associated game session has terminated -// -#define DPLSESSION_TERMINATED 0x0004 - -// -// The associated game session's host has migrated -// -#define DPLSESSION_HOSTMIGRATED 0x0005 - -// -// The associated game session's host has migrated to the local client -// -#define DPLSESSION_HOSTMIGRATEDHERE 0x0006 - - -/**************************************************************************** - * - * DirectPlay8 Lobby Flags - * - ****************************************************************************/ - -// -// Do not automatically make the lobby app unavailable when a connection is established -// -#define DPLAVAILABLE_ALLOWMULTIPLECONNECT 0x0001 - -// -// Launch a new instance of the application to connect to -// -#define DPLCONNECT_LAUNCHNEW 0x0001 - -// -// Launch a new instance of the application if one is not waiting -// -#define DPLCONNECT_LAUNCHNOTFOUND 0x0002 - -// -// When starting the associated game session, start it as a host -// -#define DPLCONNECTSETTINGS_HOST 0x0001 - -// -// Disable parameter validation -// -#define DPLINITIALIZE_DISABLEPARAMVAL 0x0001 - -/**************************************************************************** - * - * DirectPlay8Lobby Structures (Non-Message) - * - ****************************************************************************/ - -// -// Information on a registered game -// -typedef struct _DPL_APPLICATION_INFO { - GUID guidApplication; // GUID of the application - PWSTR pwszApplicationName; // Name of the application - DWORD dwNumRunning; // # of instances of this application running - DWORD dwNumWaiting; // # of instances of this application waiting - DWORD dwFlags; // Flags -} DPL_APPLICATION_INFO, *PDPL_APPLICATION_INFO; - -// -// Settings to be used for connecting / hosting a game session -// -typedef struct _DPL_CONNECTION_SETTINGS { - DWORD dwSize; // Size of this structure - DWORD dwFlags; // Connection settings flags (DPLCONNECTSETTINGS_...) - DPN_APPLICATION_DESC dpnAppDesc; // Application desc for the associated DirectPlay session - IDirectPlay8Address *pdp8HostAddress; // Address of host to connect to - IDirectPlay8Address **ppdp8DeviceAddresses; // Address of device to connect from / host on - DWORD cNumDeviceAddresses; // # of addresses specified in ppdp8DeviceAddresses - PWSTR pwszPlayerName; // Name to give the player -} DPL_CONNECTION_SETTINGS, *PDPL_CONNECTION_SETTINGS; - -// -// Information for performing a lobby connect -// (ConnectApplication) -// -typedef struct _DPL_CONNECT_INFO { - DWORD dwSize; // Size of this structure - DWORD dwFlags; // Flags (DPLCONNECT_...) - GUID guidApplication; // GUID of application to launch - PDPL_CONNECTION_SETTINGS pdplConnectionSettings; - // Settings application should use - PVOID pvLobbyConnectData; // User defined data block - DWORD dwLobbyConnectDataSize; - // Size of user defined data block -} DPL_CONNECT_INFO, *PDPL_CONNECT_INFO; - -// -// Information for registering an application -// (RegisterApplication) -// -typedef struct _DPL_PROGRAM_DESC { - DWORD dwSize; - DWORD dwFlags; - GUID guidApplication; // Application GUID - PWSTR pwszApplicationName; // Unicode application name - PWSTR pwszCommandLine; // Unicode command line arguments - PWSTR pwszCurrentDirectory; // Unicode current directory - PWSTR pwszDescription; // Unicode application description - PWSTR pwszExecutableFilename; // Unicode filename of application executable - PWSTR pwszExecutablePath; // Unicode path of application executable - PWSTR pwszLauncherFilename; // Unicode filename of launcher executable - PWSTR pwszLauncherPath; // Unicode path of launcher executable -} DPL_PROGRAM_DESC, *PDPL_PROGRAM_DESC; - -/**************************************************************************** - * - * DirectPlay8 Lobby Message Structures - * - ****************************************************************************/ - -// -// A connection was established -// (DPL_MSGID_CONNECT) -// -typedef struct _DPL_MESSAGE_CONNECT -{ - DWORD dwSize; // Size of this structure - DPNHANDLE hConnectId; // Handle of new connection - PDPL_CONNECTION_SETTINGS pdplConnectionSettings; // Connection settings for this connection - PVOID pvLobbyConnectData; // User defined lobby data block - DWORD dwLobbyConnectDataSize; // Size of user defined lobby data block - PVOID pvConnectionContext; // Context value for this connection (user set) -} DPL_MESSAGE_CONNECT, *PDPL_MESSAGE_CONNECT; - -// -// Connection settings have been updated -// (DPL_MSGID_CONNECTION_SETTINGS) -// -typedef struct _DPL_MESSAGE_CONNECTION_SETTINGS -{ - DWORD dwSize; // Size of this structure - DPNHANDLE hSender; // Handle of the connection for these settings - PDPL_CONNECTION_SETTINGS pdplConnectionSettings; // Connection settings - PVOID pvConnectionContext; // Context value for this connection -} DPL_MESSAGE_CONNECTION_SETTINGS, *PDPL_MESSAGE_CONNECTION_SETTINGS; - -// -// A connection has been disconnected -// (DPL_MSGID_DISCONNECT) -// -typedef struct _DPL_MESSAGE_DISCONNECT -{ - DWORD dwSize; // Size of this structure - DPNHANDLE hDisconnectId; // Handle of the connection that was terminated - HRESULT hrReason; // Reason the connection was broken - PVOID pvConnectionContext; // Context value for this connection -} DPL_MESSAGE_DISCONNECT, *PDPL_MESSAGE_DISCONNECT; - -// -// Data was received through a connection -// (DPL_MSGID_RECEIVE) -// -typedef struct _DPL_MESSAGE_RECEIVE -{ - DWORD dwSize; // Size of this structure - DPNHANDLE hSender; // Handle of the connection that is from - BYTE *pBuffer; // Contents of the message - DWORD dwBufferSize; // Size of the message context - PVOID pvConnectionContext; // Context value for this connection -} DPL_MESSAGE_RECEIVE, *PDPL_MESSAGE_RECEIVE; - -// -// Current status of the associated connection -// (DPL_MSGID_SESSION_STATUS) -// -typedef struct _DPL_MESSAGE_SESSION_STATUS -{ - DWORD dwSize; // Size of this structure - DPNHANDLE hSender; // Handle of the connection that this is from - DWORD dwStatus; // Status (DPLSESSION_...) - PVOID pvConnectionContext; // Context value for this connection -} DPL_MESSAGE_SESSION_STATUS, *PDPL_MESSAGE_SESSION_STATUS; - -/**************************************************************************** - * - * DirectPlay8Lobby Create - * - ****************************************************************************/ - -/* - * This function is no longer supported. It is recommended that CoCreateInstance be used to create - * DirectPlay8 lobby objects. - * - * extern HRESULT WINAPI DirectPlay8LobbyCreate( const GUID * pcIID, void **ppvInterface, IUnknown *pUnknown); - * - */ - -/**************************************************************************** - * - * DirectPlay8 Functions - * - ****************************************************************************/ - -// -// COM definition for DirectPlayLobbyClient -// -#undef INTERFACE // External COM Implementation -#define INTERFACE IDirectPlay8LobbyClient -DECLARE_INTERFACE_(IDirectPlay8LobbyClient,IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - // IDirectPlayLobbyClient methods - STDMETHOD(Initialize) (THIS_ const PVOID pvUserContext,const PFNDPNMESSAGEHANDLER pfn,const DWORD dwFlags) PURE; - STDMETHOD(EnumLocalPrograms) (THIS_ GUID *const pGuidApplication,BYTE *const pEnumData,DWORD *const pdwEnumData,DWORD *const pdwItems, const DWORD dwFlags) PURE; - STDMETHOD(ConnectApplication) (THIS_ DPL_CONNECT_INFO *const pdplConnectionInfo,const PVOID pvConnectionContext,DPNHANDLE *const hApplication,const DWORD dwTimeOut,const DWORD dwFlags) PURE; - STDMETHOD(Send) (THIS_ const DPNHANDLE hConnection,BYTE *const pBuffer,const DWORD pBufferSize,const DWORD dwFlags) PURE; - STDMETHOD(ReleaseApplication) (THIS_ const DPNHANDLE hConnection, const DWORD dwFlags ) PURE; - STDMETHOD(Close) (THIS_ const DWORD dwFlags ) PURE; - STDMETHOD(GetConnectionSettings) (THIS_ const DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS * const pdplSessionInfo, DWORD *pdwInfoSize, const DWORD dwFlags ) PURE; - STDMETHOD(SetConnectionSettings) (THIS_ const DPNHANDLE hConnection, const DPL_CONNECTION_SETTINGS * const pdplSessionInfo, const DWORD dwFlags ) PURE; -}; - - -// -// COM definition for DirectPlayLobbiedApplication -// -#undef INTERFACE // External COM Implementation -#define INTERFACE IDirectPlay8LobbiedApplication -DECLARE_INTERFACE_(IDirectPlay8LobbiedApplication,IUnknown) -{ - // IUnknown methods - STDMETHOD(QueryInterface) (THIS_ REFIID riid,LPVOID *ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - // IDirectPlayLobbiedApplication methods - STDMETHOD(Initialize) (THIS_ const PVOID pvUserContext,const PFNDPNMESSAGEHANDLER pfn,DPNHANDLE * const pdpnhConnection, const DWORD dwFlags) PURE; - STDMETHOD(RegisterProgram) (THIS_ PDPL_PROGRAM_DESC pdplProgramDesc,const DWORD dwFlags) PURE; - STDMETHOD(UnRegisterProgram) (THIS_ GUID *pguidApplication,const DWORD dwFlags) PURE; - STDMETHOD(Send) (THIS_ const DPNHANDLE hConnection,BYTE *const pBuffer,const DWORD pBufferSize,const DWORD dwFlags) PURE; - STDMETHOD(SetAppAvailable) (THIS_ const BOOL fAvailable, const DWORD dwFlags ) PURE; - STDMETHOD(UpdateStatus) (THIS_ const DPNHANDLE hConnection, const DWORD dwStatus, const DWORD dwFlags ) PURE; - STDMETHOD(Close) (THIS_ const DWORD dwFlags ) PURE; - STDMETHOD(GetConnectionSettings) (THIS_ const DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS * const pdplSessionInfo, DWORD *pdwInfoSize, const DWORD dwFlags ) PURE; - STDMETHOD(SetConnectionSettings) (THIS_ const DPNHANDLE hConnection, const DPL_CONNECTION_SETTINGS * const pdplSessionInfo, const DWORD dwFlags ) PURE; -}; - - -/**************************************************************************** - * - * DirectPlayLobby Interface Macros - * - ****************************************************************************/ - -#if !defined(__cplusplus) || defined(CINTERFACE) - -#define IDirectPlay8LobbyClient_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlay8LobbyClient_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlay8LobbyClient_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlay8LobbyClient_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IDirectPlay8LobbyClient_EnumLocalPrograms(p,a,b,c,d,e) (p)->lpVtbl->EnumLocalPrograms(p,a,b,c,d,e) -#define IDirectPlay8LobbyClient_ConnectApplication(p,a,b,c,d,e) (p)->lpVtbl->ConnectApplication(p,a,b,c,d,e) -#define IDirectPlay8LobbyClient_Send(p,a,b,c,d) (p)->lpVtbl->Send(p,a,b,c,d) -#define IDirectPlay8LobbyClient_ReleaseApplication(p,a,b) (p)->lpVtbl->ReleaseApplication(p,a,b) -#define IDirectPlay8LobbyClient_Close(p,a) (p)->lpVtbl->Close(p,a) -#define IDirectPlay8LobbyClient_GetConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetConnectionSettings(p,a,b,c,d) -#define IDirectPlay8LobbyClient_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c) - -#define IDirectPlay8LobbiedApplication_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlay8LobbiedApplication_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlay8LobbiedApplication_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlay8LobbiedApplication_Initialize(p,a,b,c,d) (p)->lpVtbl->Initialize(p,a,b,c,d) -#define IDirectPlay8LobbiedApplication_RegisterProgram(p,a,b) (p)->lpVtbl->RegisterProgram(p,a,b) -#define IDirectPlay8LobbiedApplication_UnRegisterProgram(p,a,b) (p)->lpVtbl->UnRegisterProgram(p,a,b) -#define IDirectPlay8LobbiedApplication_Send(p,a,b,c,d) (p)->lpVtbl->Send(p,a,b,c,d) -#define IDirectPlay8LobbiedApplication_SetAppAvailable(p,a,b) (p)->lpVtbl->SetAppAvailable(p,a,b) -#define IDirectPlay8LobbiedApplication_UpdateStatus(p,a,b,c) (p)->lpVtbl->UpdateStatus(p,a,b,c) -#define IDirectPlay8LobbiedApplication_Close(p,a) (p)->lpVtbl->Close(p,a) -#define IDirectPlay8LobbiedApplication_GetConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetConnectionSettings(p,a,b,c,d) -#define IDirectPlay8LobbiedApplication_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c) - -#else /* C++ */ - -#define IDirectPlay8LobbyClient_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlay8LobbyClient_AddRef(p) (p)->AddRef() -#define IDirectPlay8LobbyClient_Release(p) (p)->Release() -#define IDirectPlay8LobbyClient_Initialize(p,a,b,c) (p)->Initialize(a,b,c) -#define IDirectPlay8LobbyClient_EnumLocalPrograms(p,a,b,c,d,e) (p)->EnumLocalPrograms(a,b,c,d,e) -#define IDirectPlay8LobbyClient_ConnectApplication(p,a,b,c,d,e) (p)->ConnectApplication(a,b,c,d,e) -#define IDirectPlay8LobbyClient_Send(p,a,b,c,d) (p)->Send(a,b,c,d) -#define IDirectPlay8LobbyClient_ReleaseApplication(p,a,b) (p)->ReleaseApplication(a,b) -#define IDirectPlay8LobbyClient_Close(p,a) (p)->Close(a) -#define IDirectPlay8LobbyClient_GetConnectionSettings(p,a,b,c,d) (p)->GetConnectionSettings(a,b,c,d) -#define IDirectPlay8LobbyClient_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c) - -#define IDirectPlay8LobbiedApplication_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlay8LobbiedApplication_AddRef(p) (p)->AddRef() -#define IDirectPlay8LobbiedApplication_Release(p) (p)->Release() -#define IDirectPlay8LobbiedApplication_Initialize(p,a,b,c,d) (p)->Initialize(a,b,c,d) -#define IDirectPlay8LobbiedApplication_RegisterProgram(p,a,b) (p)->RegisterProgram(a,b) -#define IDirectPlay8LobbiedApplication_UnRegisterProgram(p,a,b) (p)->UnRegisterProgram(a,b) -#define IDirectPlay8LobbiedApplication_Send(p,a,b,c,d) (p)->Send(a,b,c,d) -#define IDirectPlay8LobbiedApplication_SetAppAvailable(p,a,b) (p)->SetAppAvailable(a,b) -#define IDirectPlay8LobbiedApplication_UpdateStatus(p,a,b,c) (p)->UpdateStatus(a,b,c) -#define IDirectPlay8LobbiedApplication_Close(p,a) (p)->Close(a) -#define IDirectPlay8LobbiedApplication_GetConnectionSettings(p,a,b,c,d) (p)->GetConnectionSettings(a,b,c,d) -#define IDirectPlay8LobbiedApplication_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c) - -#endif - -#ifdef __cplusplus -} -#endif - -#endif // __DPLOBBY_H__ - diff --git a/sdk/dx8sdk/Include/dpnathlp.h b/sdk/dx8sdk/Include/dpnathlp.h deleted file mode 100644 index 720e43ad..00000000 --- a/sdk/dx8sdk/Include/dpnathlp.h +++ /dev/null @@ -1,318 +0,0 @@ -/*************************************************************************** - * - * Copyright (C) 2001-2002 Microsoft Corporation. All Rights Reserved. - * - * File: dpnathlp.h - * - * Content: Header for using DirectPlayNATHelp interface. - * - * - * NOTE: This interface is deprecated and should no longer be used. - * - * - ***************************************************************************/ - - - -#ifndef __DPNATHLP_H__ -#define __DPNATHLP_H__ - - - -#include // for DECLARE_INTERFACE and HRESULT - - - -#ifndef DPNATHLP_EXPORTS -#define DPNATHLPAPI DECLSPEC_IMPORT -#else -#define DPNATHLPAPI -#endif - - - -#ifdef __cplusplus -extern "C" { -#endif - - - - - -/**************************************************************************** - * - * DirectPlay NAT Helper object class IDs - * - ****************************************************************************/ - -// {B9C2E9C4-68C1-4d42-A7A1-E76A26982AD6} -DEFINE_GUID(CLSID_DirectPlayNATHelpUPnP, -0xb9c2e9c4, 0x68c1, 0x4d42, 0xa7, 0xa1, 0xe7, 0x6a, 0x26, 0x98, 0x2a, 0xd6); - -// {963AB779-16A1-477c-A36D-CB5E711938F7} -DEFINE_GUID(CLSID_DirectPlayNATHelpPAST, -0x963ab779, 0x16a1, 0x477c, 0xa3, 0x6d, 0xcb, 0x5e, 0x71, 0x19, 0x38, 0xf7); - - -/**************************************************************************** - * - * DirectPlay NAT Helper interface ID - * - ****************************************************************************/ - -// {154940B6-2278-4a2f-9101-9BA9F431F603} -DEFINE_GUID(IID_IDirectPlayNATHelp, -0x154940b6, 0x2278, 0x4a2f, 0x91, 0x1, 0x9b, 0xa9, 0xf4, 0x31, 0xf6, 0x3); - -/**************************************************************************** - * - * DirectPlay NAT Helper interface pointer definitions - * - ****************************************************************************/ - -typedef struct IDirectPlayNATHelp *PDIRECTPLAYNATHELP; - - - - -/**************************************************************************** - * - * DirectPlay NAT Helper data types - * - ****************************************************************************/ - -// -// Handles used to identify specific port binding groups. If multiple ports -// are registered at the same time, the DPNHHANDLE refers to all ports. -// -typedef DWORD_PTR DPNHHANDLE, * PDPNHHANDLE; - - - - -/**************************************************************************** - * - * DirectPlay NAT Helper constants - * - ****************************************************************************/ - -#define DPNH_MAX_SIMULTANEOUS_PORTS 16 // up to 16 ports may be specified in a single RegisterPorts call - - - - -/**************************************************************************** - * - * DirectPlay NAT Helper API flags - * - ****************************************************************************/ - -// -// Flags that can be passed to Initialize -// -#define DPNHINITIALIZE_DISABLEGATEWAYSUPPORT 0x01 // disables Internet gateway traversal support (cannot be specified with DPNHINITIALIZE_DISABLELOCALFIREWALLSUPPORT) -#define DPNHINITIALIZE_DISABLELOCALFIREWALLSUPPORT 0x02 // disables local firewall traversal support (cannot be specified with DPNHINITIALIZE_DISABLEGATEWAYSUPPORT) - -// -// Flags that can be passed to GetCaps. -// -#define DPNHGETCAPS_UPDATESERVERSTATUS 0x01 // automatically extend expiring leases and detect changes in server status - -// -// Flags that can be passed to RegisterPorts. -// -#define DPNHREGISTERPORTS_TCP 0x01 // request TCP ports instead of UDP -#define DPNHREGISTERPORTS_FIXEDPORTS 0x02 // asks the server to use the same port numbers on the public interface -#define DPNHREGISTERPORTS_SHAREDPORTS 0x04 // requests that the server allow the UDP fixed ports to be shared with other clients (must be specified with DPNHREGISTERPORTS_FIXEDPORTS and cannot be specified with DPNHREGISTERPORTS_TCP) - -// -// Flags that can be passed to GetRegisteredAddresses. -// -#define DPNHGETREGISTEREDADDRESSES_LOCALFIREWALLREMAPONLY 0x01 // retrieve the public address for the local firewall only, even if mapped on remote Internet gateway - -// -// Flags that can be passed to QueryAddress. -// -#define DPNHQUERYADDRESS_TCP 0x01 // request a TCP port instead of UDP -#define DPNHQUERYADDRESS_CACHEFOUND 0x02 // cache the discovered address if found -#define DPNHQUERYADDRESS_CACHENOTFOUND 0x04 // cache the fact that no address was found, if that is the case -#define DPNHQUERYADDRESS_CHECKFORPRIVATEBUTUNMAPPED 0x08 // determine if the address is behind the same Internet gateway, but not mapped on that Internet gateway - -/**************************************************************************** - * - * DirectPlay NAT Helper structure flags - * - ****************************************************************************/ - -// -// DPNHCAPS flags -// -#define DPNHCAPSFLAG_LOCALFIREWALLPRESENT 0x01 // at least one network connection has a local firewall present -#define DPNHCAPSFLAG_GATEWAYPRESENT 0x02 // at least one network connection has an Internet gateway present -#define DPNHCAPSFLAG_GATEWAYISLOCAL 0x04 // a detected Internet gateway is local (i.e. the public address is another network interface on the same machine) -#define DPNHCAPSFLAG_PUBLICADDRESSAVAILABLE 0x08 // at least one server has a valid public address for registered mappings -#define DPNHCAPSFLAG_NOTALLSUPPORTACTIVENOTIFY 0x10 // at least one available server does not support an active-notification mechanisms and must be polled - - - -/**************************************************************************** - * - * DirectPlay NAT Helper structures - * - ****************************************************************************/ - -typedef struct _DPNHCAPS -{ - DWORD dwSize; // size of this structure, must be filled in prior to calling GetCaps - DWORD dwFlags; // flags indicating capabilities of Internet gateway server(s) - DWORD dwNumRegisteredPorts; // number of ports currently registered, including multiple ports registered at the same time (so this may not be equal to the number of DPNHHANDLEs given out) - DWORD dwMinLeaseTimeRemaining; // approximate time remaining, in milliseconds, for the lease that will expire soonest - DWORD dwRecommendedGetCapsInterval; // recommended time, in milliseconds, after which GetCaps should be called again (with DPNHGETCAPS_UPDATESERVERSTATUS flag) -} DPNHCAPS, * PDPNHCAPS; - - - -/**************************************************************************** - * - * Address type flags (returned by GetRegisteredAddresses) - * - ****************************************************************************/ - -#define DPNHADDRESSTYPE_TCP 0x01 // the mappings are for TCP ports instead of UDP -#define DPNHADDRESSTYPE_FIXEDPORTS 0x02 // the mappings are for ports which are the same on the Internet gateway -#define DPNHADDRESSTYPE_SHAREDPORTS 0x04 // the mappings are for shared UDP fixed ports -#define DPNHADDRESSTYPE_LOCALFIREWALL 0x08 // the addresses are opened on a local firewall -#define DPNHADDRESSTYPE_GATEWAY 0x10 // the addresses are registered with an Internet gateway -#define DPNHADDRESSTYPE_GATEWAYISLOCAL 0x20 // the Internet gateway is local (i.e. the public address is another network interface on the same machine) - - - - -/**************************************************************************** - * - * DirectPlay NAT Helper DLL exported functions - * - ****************************************************************************/ - -typedef HRESULT (WINAPI * PFN_DIRECTPLAYNATHELPCREATE)(const GUID * pIID, void ** ppvInterface); - - - - - -/**************************************************************************** - * - * DirectPlay NAT Helper application interfaces - * - ****************************************************************************/ - -#undef INTERFACE -#define INTERFACE IDirectPlayNATHelp -DECLARE_INTERFACE_(IDirectPlayNATHelp, IUnknown) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - /*** IDirectPlayNATHelp methods ***/ - STDMETHOD(Initialize) (THIS_ const DWORD dwFlags) PURE; - STDMETHOD(Close) (THIS_ const DWORD dwFlags) PURE; - STDMETHOD(GetCaps) (THIS_ DPNHCAPS * const dpnhcaps, const DWORD dwFlags) PURE; - STDMETHOD(RegisterPorts) (THIS_ const SOCKADDR * const aLocalAddresses, const DWORD dwAddressesSize, const DWORD dwNumAddresses, const DWORD dwLeaseTime, DPNHHANDLE * const phRegisteredPorts, const DWORD dwFlags) PURE; - STDMETHOD(GetRegisteredAddresses) (THIS_ const DPNHHANDLE hRegisteredPorts, SOCKADDR * const paPublicAddresses, DWORD * const pdwPublicAddressesSize, DWORD * const pdwAddressTypeFlags, DWORD * const pdwLeaseTimeRemaining, const DWORD dwFlags) PURE; - STDMETHOD(DeregisterPorts) (THIS_ const DPNHHANDLE hRegisteredPorts, const DWORD dwFlags) PURE; - STDMETHOD(QueryAddress) (THIS_ const SOCKADDR * const pSourceAddress, const SOCKADDR * const pQueryAddress, SOCKADDR * const pResponseAddress, const int iAddressesSize, const DWORD dwFlags) PURE; - STDMETHOD(SetAlertEvent) (THIS_ const HANDLE hEvent, const DWORD dwFlags) PURE; - STDMETHOD(SetAlertIOCompletionPort) (THIS_ const HANDLE hIOCompletionPort, const DWORD dwCompletionKey, const DWORD dwNumConcurrentThreads, const DWORD dwFlags) PURE; - STDMETHOD(ExtendRegisteredPortsLease) (THIS_ const DPNHHANDLE hRegisteredPorts, const DWORD dwLeaseTime, const DWORD dwFlags) PURE; -}; - - -/**************************************************************************** - * - * DirectPlay NAT Helper application interface macros - * - ****************************************************************************/ - -#if (! defined(__cplusplus) || defined(CINTERFACE)) - -#define IDirectPlayNATHelp_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlayNATHelp_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlayNATHelp_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlayNATHelp_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) -#define IDirectPlayNATHelp_Close(p,a) (p)->lpVtbl->Close(p,a) -#define IDirectPlayNATHelp_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) -#define IDirectPlayNATHelp_RegisterPorts(p,a,b,c,d,e,f) (p)->lpVtbl->RegisterPorts(p,a,b,c,d,e,f) -#define IDirectPlayNATHelp_GetRegisteredAddresses(p,a,b,c,d,e,f) (p)->lpVtbl->GetRegisteredAddresses(p,a,b,c,d,e,f) -#define IDirectPlayNATHelp_DeregisterPorts(p,a,b) (p)->lpVtbl->DeregisterPorts(p,a,b) -#define IDirectPlayNATHelp_QueryAddress(p,a,b,c,d,e) (p)->lpVtbl->QueryAddress(p,a,b,c,d,e) -#define IDirectPlayNATHelp_SetAlertEvent(p,a,b) (p)->lpVtbl->SetAlertEvent(p,a,b) -#define IDirectPlayNATHelp_SetAlertIOCompletionPort(p,a,b,c,d) (p)->lpVtbl->SetAlertIOCompletionPort(p,a,b,c,d) -#define IDirectPlayNATHelp_ExtendRegisteredPortsLease(p,a,b,c) (p)->lpVtbl->ExtendRegisteredPortsLease(p,a,b,c) - - -#else // C++ - -#define IDirectPlayNATHelp_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlayNATHelp_AddRef(p) (p)->AddRef() -#define IDirectPlayNATHelp_Release(p) (p)->Release() -#define IDirectPlayNATHelp_Initialize(p,a) (p)->Initialize(a) -#define IDirectPlayNATHelp_Close(p,a) (p)->Close(a) -#define IDirectPlayNATHelp_GetCaps(p,a,b) (p)->GetCaps(a,b) -#define IDirectPlayNATHelp_RegisterPorts(p,a,b,c,d,e,f) (p)->RegisterPorts(a,b,c,d,e,f) -#define IDirectPlayNATHelp_GetRegisteredAddresses(p,a,b,c,d,e,f) (p)->GetRegisteredAddresses(a,b,c,d,e,f) -#define IDirectPlayNATHelp_DeregisterPorts(p,a,b) (p)->DeregisterPorts(a,b) -#define IDirectPlayNATHelp_QueryAddress(p,a,b,c,d,e) (p)->QueryAddress(a,b,c,d,e) -#define IDirectPlayNATHelp_SetAlertEvent(p,a,b) (p)->SetAlertEvent(a,b) -#define IDirectPlayNATHelp_SetAlertIOCompletionPort(p,a,b,c,d) (p)->SetAlertIOCompletionPort(a,b,c,d) -#define IDirectPlayNATHelp_ExtendRegisteredPortsLease(p,a,b,c) (p)->ExtendRegisteredPortsLease(a,b,c) - - -#endif - - - -/**************************************************************************** - * - * DirectPlay NAT Helper return codes - * - * Errors are represented by negative values and cannot be combined. - * - ****************************************************************************/ - -#define _DPNH_FACILITY_CODE 0x015 -#define _DPNH_HRESULT_BASE 0xF000 - -#define MAKE_DPNHSUCCESS(code) MAKE_HRESULT(0, _DPNH_FACILITY_CODE, (code + _DPNH_HRESULT_BASE)) -#define MAKE_DPNHFAILURE(code) MAKE_HRESULT(1, _DPNH_FACILITY_CODE, (code + _DPNH_HRESULT_BASE)) - - - -#define DPNH_OK S_OK - -#define DPNHSUCCESS_ADDRESSESCHANGED MAKE_DPNHSUCCESS(0x10) - -#define DPNHERR_ALREADYINITIALIZED MAKE_DPNHFAILURE(0x10) -#define DPNHERR_BUFFERTOOSMALL MAKE_DPNHFAILURE(0x20) -#define DPNHERR_GENERIC E_FAIL -#define DPNHERR_INVALIDFLAGS MAKE_DPNHFAILURE(0x30) -#define DPNHERR_INVALIDOBJECT MAKE_DPNHFAILURE(0x40) -#define DPNHERR_INVALIDPARAM E_INVALIDARG -#define DPNHERR_INVALIDPOINTER E_POINTER -#define DPNHERR_NOMAPPING MAKE_DPNHFAILURE(0x50) -#define DPNHERR_NOMAPPINGBUTPRIVATE MAKE_DPNHFAILURE(0x60) -#define DPNHERR_NOTINITIALIZED MAKE_DPNHFAILURE(0x70) -#define DPNHERR_OUTOFMEMORY E_OUTOFMEMORY -#define DPNHERR_PORTALREADYREGISTERED MAKE_DPNHFAILURE(0x80) -#define DPNHERR_PORTUNAVAILABLE MAKE_DPNHFAILURE(0x90) -#define DPNHERR_REENTRANT MAKE_DPNHFAILURE(0x95) -#define DPNHERR_SERVERNOTAVAILABLE MAKE_DPNHFAILURE(0xA0) -#define DPNHERR_UPDATESERVERSTATUS MAKE_DPNHFAILURE(0xC0) - -#ifdef __cplusplus -} -#endif - -#endif // __DPNATHLP_H__ - diff --git a/sdk/dx8sdk/Include/dsconf.h b/sdk/dx8sdk/Include/dsconf.h deleted file mode 100644 index 018f65a0..00000000 --- a/sdk/dx8sdk/Include/dsconf.h +++ /dev/null @@ -1,195 +0,0 @@ -/*==========================================================================; - * - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * File: dsconf.h - * Content: DirectSound configuration interface include file - * - **************************************************************************/ - -#ifndef __DSCONF_INCLUDED__ -#define __DSCONF_INCLUDED__ - -#ifndef __DSOUND_INCLUDED__ -#error dsound.h not included -#endif // __DSOUND_INCLUDED__ - -#ifdef __cplusplus -extern "C" { -#endif // __cplusplus - - -// DirectSound Private 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 // __DSCONF_INCLUDED__ - diff --git a/sdk/dx8sdk/Include/dsetup.h b/sdk/dx8sdk/Include/dsetup.h deleted file mode 100644 index 0f4e3b0e..00000000 --- a/sdk/dx8sdk/Include/dsetup.h +++ /dev/null @@ -1,287 +0,0 @@ -/*========================================================================== - * - * Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved. - * - * File: dsetup.h - * Content: DirectXSetup, error codes and flags - ***************************************************************************/ - -#ifndef __DSETUP_H__ -#define __DSETUP_H__ - -#include // windows stuff - -#ifdef _WIN32 -#define COM_NO_WINDOWS_H -#include -#else -#endif - - -#ifdef __cplusplus -extern "C" { -#endif - -#define FOURCC_VERS mmioFOURCC('v','e','r','s') - -// DSETUP Error Codes, must remain compatible with previous setup. -#define DSETUPERR_SUCCESS_RESTART 1 -#define DSETUPERR_SUCCESS 0 -#define DSETUPERR_BADWINDOWSVERSION -1 -#define DSETUPERR_SOURCEFILENOTFOUND -2 -#define DSETUPERR_NOCOPY -5 -#define DSETUPERR_OUTOFDISKSPACE -6 -#define DSETUPERR_CANTFINDINF -7 -#define DSETUPERR_CANTFINDDIR -8 -#define DSETUPERR_INTERNAL -9 -#define DSETUPERR_UNKNOWNOS -11 -#define DSETUPERR_NEWERVERSION -14 -#define DSETUPERR_NOTADMIN -15 -#define DSETUPERR_UNSUPPORTEDPROCESSOR -16 -#define DSETUPERR_MISSINGCAB_MANAGEDDX -17 -#define DSETUPERR_NODOTNETFRAMEWORKINSTALLED -18 -#define DSETUPERR_CABDOWNLOADFAIL -19 - -// DSETUP flags. DirectX 5.0 apps should use these flags only. -#define DSETUP_DDRAWDRV 0x00000008 /* install DirectDraw Drivers */ -#define DSETUP_DSOUNDDRV 0x00000010 /* install DirectSound Drivers */ -#define DSETUP_DXCORE 0x00010000 /* install DirectX runtime */ -#define DSETUP_DIRECTX (DSETUP_DXCORE|DSETUP_DDRAWDRV|DSETUP_DSOUNDDRV) -#define DSETUP_MANAGEDDX 0x00004000 /* install managed DirectX */ -#define DSETUP_TESTINSTALL 0x00020000 /* just test install, don't do anything */ - -// These OBSOLETE flags are here for compatibility with pre-DX5 apps only. -// They are present to allow DX3 apps to be recompiled with DX5 and still work. -// DO NOT USE THEM for DX5. They will go away in future DX releases. -#define DSETUP_DDRAW 0x00000001 /* OBSOLETE. install DirectDraw */ -#define DSETUP_DSOUND 0x00000002 /* OBSOLETE. install DirectSound */ -#define DSETUP_DPLAY 0x00000004 /* OBSOLETE. install DirectPlay */ -#define DSETUP_DPLAYSP 0x00000020 /* OBSOLETE. install DirectPlay Providers */ -#define DSETUP_DVIDEO 0x00000040 /* OBSOLETE. install DirectVideo */ -#define DSETUP_D3D 0x00000200 /* OBSOLETE. install Direct3D */ -#define DSETUP_DINPUT 0x00000800 /* OBSOLETE. install DirectInput */ -#define DSETUP_DIRECTXSETUP 0x00001000 /* OBSOLETE. install DirectXSetup DLL's */ -#define DSETUP_NOUI 0x00002000 /* OBSOLETE. install DirectX with NO UI */ -#define DSETUP_PROMPTFORDRIVERS 0x10000000 /* OBSOLETE. prompt when replacing display/audio drivers */ -#define DSETUP_RESTOREDRIVERS 0x20000000 /* OBSOLETE. restore display/audio drivers */ - - - -//****************************************************************** -// DirectX Setup Callback mechanism -//****************************************************************** - -// DSETUP Message Info Codes, passed to callback as Reason parameter. -#define DSETUP_CB_MSG_NOMESSAGE 0 -#define DSETUP_CB_MSG_INTERNAL_ERROR 10 -#define DSETUP_CB_MSG_BEGIN_INSTALL 13 -#define DSETUP_CB_MSG_BEGIN_INSTALL_RUNTIME 14 -#define DSETUP_CB_MSG_PROGRESS 18 -#define DSETUP_CB_MSG_WARNING_DISABLED_COMPONENT 19 - - - - - -typedef struct _DSETUP_CB_PROGRESS -{ - DWORD dwPhase; - DWORD dwInPhaseMaximum; - DWORD dwInPhaseProgress; - DWORD dwOverallMaximum; - DWORD dwOverallProgress; -} DSETUP_CB_PROGRESS; - - -enum _DSETUP_CB_PROGRESS_PHASE -{ - DSETUP_INITIALIZING, - DSETUP_EXTRACTING, - DSETUP_COPYING, - DSETUP_FINALIZING -}; - - -#ifdef _WIN32 -// -// Data Structures -// -#ifndef UNICODE_ONLY - -typedef struct _DIRECTXREGISTERAPPA { - DWORD dwSize; - DWORD dwFlags; - LPSTR lpszApplicationName; - LPGUID lpGUID; - LPSTR lpszFilename; - LPSTR lpszCommandLine; - LPSTR lpszPath; - LPSTR lpszCurrentDirectory; -} DIRECTXREGISTERAPPA, *PDIRECTXREGISTERAPPA, *LPDIRECTXREGISTERAPPA; - -typedef struct _DIRECTXREGISTERAPP2A { - DWORD dwSize; - DWORD dwFlags; - LPSTR lpszApplicationName; - LPGUID lpGUID; - LPSTR lpszFilename; - LPSTR lpszCommandLine; - LPSTR lpszPath; - LPSTR lpszCurrentDirectory; - LPSTR lpszLauncherName; -} DIRECTXREGISTERAPP2A, *PDIRECTXREGISTERAPP2A, *LPDIRECTXREGISTERAPP2A; - -#endif //!UNICODE_ONLY -#ifndef ANSI_ONLY - -typedef struct _DIRECTXREGISTERAPPW { - DWORD dwSize; - DWORD dwFlags; - LPWSTR lpszApplicationName; - LPGUID lpGUID; - LPWSTR lpszFilename; - LPWSTR lpszCommandLine; - LPWSTR lpszPath; - LPWSTR lpszCurrentDirectory; -} DIRECTXREGISTERAPPW, *PDIRECTXREGISTERAPPW, *LPDIRECTXREGISTERAPPW; - -typedef struct _DIRECTXREGISTERAPP2W { - DWORD dwSize; - DWORD dwFlags; - LPWSTR lpszApplicationName; - LPGUID lpGUID; - LPWSTR lpszFilename; - LPWSTR lpszCommandLine; - LPWSTR lpszPath; - LPWSTR lpszCurrentDirectory; - LPWSTR lpszLauncherName; -} DIRECTXREGISTERAPP2W, *PDIRECTXREGISTERAPP2W, *LPDIRECTXREGISTERAPP2W; -#endif //!ANSI_ONLY -#ifdef UNICODE -typedef DIRECTXREGISTERAPPW DIRECTXREGISTERAPP; -typedef PDIRECTXREGISTERAPPW PDIRECTXREGISTERAPP; -typedef LPDIRECTXREGISTERAPPW LPDIRECTXREGISTERAPP; -typedef DIRECTXREGISTERAPP2W DIRECTXREGISTERAPP2; -typedef PDIRECTXREGISTERAPP2W PDIRECTXREGISTERAPP2; -typedef LPDIRECTXREGISTERAPP2W LPDIRECTXREGISTERAPP2; -#else -typedef DIRECTXREGISTERAPPA DIRECTXREGISTERAPP; -typedef PDIRECTXREGISTERAPPA PDIRECTXREGISTERAPP; -typedef LPDIRECTXREGISTERAPPA LPDIRECTXREGISTERAPP; -typedef DIRECTXREGISTERAPP2A DIRECTXREGISTERAPP2; -typedef PDIRECTXREGISTERAPP2A PDIRECTXREGISTERAPP2; -typedef LPDIRECTXREGISTERAPP2A LPDIRECTXREGISTERAPP2; -#endif // UNICODE - - -// -// API -// - -#ifndef UNICODE_ONLY -INT -WINAPI -DirectXSetupA( - HWND hWnd, - LPSTR lpszRootPath, - DWORD dwFlags - ); -#endif //!UNICODE_ONLY -#ifndef ANSI_ONLY -INT -WINAPI -DirectXSetupW( - HWND hWnd, - LPWSTR lpszRootPath, - DWORD dwFlags - ); -#endif //!ANSI_ONLY -#ifdef UNICODE -#define DirectXSetup DirectXSetupW -#else -#define DirectXSetup DirectXSetupA -#endif // !UNICODE - -#ifndef UNICODE_ONLY -INT -WINAPI -DirectXRegisterApplicationA( - HWND hWnd, - LPVOID lpDXRegApp - ); -#endif //!UNICODE_ONLY -#ifndef ANSI_ONLY -INT -WINAPI -DirectXRegisterApplicationW( - HWND hWnd, - LPVOID lpDXRegApp - ); -#endif //!ANSI_ONLY -#ifdef UNICODE -#define DirectXRegisterApplication DirectXRegisterApplicationW -#else -#define DirectXRegisterApplication DirectXRegisterApplicationA -#endif // !UNICODE - -INT -WINAPI -DirectXUnRegisterApplication( - HWND hWnd, - LPGUID lpGUID - ); - -// -// Function Pointers -// -#ifdef UNICODE -typedef INT (WINAPI * LPDIRECTXSETUP)(HWND, LPWSTR, DWORD); -typedef INT (WINAPI * LPDIRECTXREGISTERAPPLICATION)(HWND, LPVOID); -#else -typedef INT (WINAPI * LPDIRECTXSETUP)(HWND, LPSTR, DWORD); -typedef INT (WINAPI * LPDIRECTXREGISTERAPPLICATION)(HWND, LPVOID); -#endif // UNICODE - -typedef DWORD (FAR PASCAL * DSETUP_CALLBACK)(DWORD Reason, - DWORD MsgType, /* Same as flags to MessageBox */ - LPSTR szMessage, - LPSTR szName, - void *pInfo); - -INT WINAPI DirectXSetupSetCallback(DSETUP_CALLBACK Callback); -INT WINAPI DirectXSetupGetVersion(DWORD *lpdwVersion, DWORD *lpdwMinorVersion); -INT WINAPI DirectXSetupShowEULA(HWND hWndParent); -#ifndef UNICODE_ONLY -UINT -WINAPI -DirectXSetupGetEULAA( - LPSTR lpszEULA, - UINT cchEULA, - WORD LangID - ); -#endif //!UNICODE_ONLY -#ifndef ANSI_ONLY -UINT -WINAPI -DirectXSetupGetEULAW( - LPWSTR lpszEULA, - UINT cchEULA, - WORD LangID - ); -#endif //!ANSI_ONLY -#ifdef UNICODE -#define DirectXSetupGetEULA DirectXSetupGetEULAW -typedef UINT (WINAPI * LPDIRECTXSETUPGETEULA)(LPWSTR, UINT, WORD); -#else -#define DirectXSetupGetEULA DirectXSetupGetEULAA -typedef UINT (WINAPI * LPDIRECTXSETUPGETEULA)(LPSTR, UINT, WORD); -#endif // !UNICODE - -#endif // WIN32 - - -#ifdef __cplusplus -}; -#endif - -#endif diff --git a/sdk/dx8sdk/Include/dshowasf.h b/sdk/dx8sdk/Include/dshowasf.h deleted file mode 100644 index 14d19487..00000000 --- a/sdk/dx8sdk/Include/dshowasf.h +++ /dev/null @@ -1,329 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0338 */ -/* Compiler settings for dshowasf.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __dshowasf_h__ -#define __dshowasf_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IConfigAsfWriter_FWD_DEFINED__ -#define __IConfigAsfWriter_FWD_DEFINED__ -typedef interface IConfigAsfWriter IConfigAsfWriter; -#endif /* __IConfigAsfWriter_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "unknwn.h" -#include "objidl.h" -#include "strmif.h" -#include "wmsdkidl.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_dshowasf_0000 */ -/* [local] */ - -EXTERN_GUID( IID_IConfigAsfWriter,0x45086030,0xF7E4,0x486a,0xB5,0x04,0x82,0x6B,0xB5,0x79,0x2A,0x3B ); - - - - -extern RPC_IF_HANDLE __MIDL_itf_dshowasf_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dshowasf_0000_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] */ DWORD *pdwProfileId) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConfigureFilterUsingProfileGuid( - /* [in] */ REFGUID guidProfile) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentProfileGuid( - /* [out] */ GUID *pProfileGuid) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConfigureFilterUsingProfile( - /* [in] */ IWMProfile *pProfile) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentProfile( - /* [out] */ IWMProfile **ppProfile) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetIndexMode( - /* [in] */ BOOL bIndexFile) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetIndexMode( - /* [out] */ BOOL *pbIndexFile) = 0; - - }; - -#else /* C style interface */ - - typedef struct IConfigAsfWriterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IConfigAsfWriter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IConfigAsfWriter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IConfigAsfWriter * This); - - HRESULT ( STDMETHODCALLTYPE *ConfigureFilterUsingProfileId )( - IConfigAsfWriter * This, - /* [in] */ DWORD dwProfileId); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentProfileId )( - IConfigAsfWriter * This, - /* [out] */ DWORD *pdwProfileId); - - HRESULT ( STDMETHODCALLTYPE *ConfigureFilterUsingProfileGuid )( - IConfigAsfWriter * This, - /* [in] */ REFGUID guidProfile); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentProfileGuid )( - IConfigAsfWriter * This, - /* [out] */ GUID *pProfileGuid); - - HRESULT ( STDMETHODCALLTYPE *ConfigureFilterUsingProfile )( - IConfigAsfWriter * This, - /* [in] */ IWMProfile *pProfile); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentProfile )( - IConfigAsfWriter * This, - /* [out] */ IWMProfile **ppProfile); - - HRESULT ( STDMETHODCALLTYPE *SetIndexMode )( - IConfigAsfWriter * This, - /* [in] */ BOOL bIndexFile); - - HRESULT ( STDMETHODCALLTYPE *GetIndexMode )( - IConfigAsfWriter * This, - /* [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 */ - - - -HRESULT STDMETHODCALLTYPE IConfigAsfWriter_ConfigureFilterUsingProfileId_Proxy( - IConfigAsfWriter * This, - /* [in] */ DWORD dwProfileId); - - -void __RPC_STUB IConfigAsfWriter_ConfigureFilterUsingProfileId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigAsfWriter_GetCurrentProfileId_Proxy( - IConfigAsfWriter * This, - /* [out] */ DWORD *pdwProfileId); - - -void __RPC_STUB IConfigAsfWriter_GetCurrentProfileId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigAsfWriter_ConfigureFilterUsingProfileGuid_Proxy( - IConfigAsfWriter * This, - /* [in] */ REFGUID guidProfile); - - -void __RPC_STUB IConfigAsfWriter_ConfigureFilterUsingProfileGuid_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigAsfWriter_GetCurrentProfileGuid_Proxy( - IConfigAsfWriter * This, - /* [out] */ GUID *pProfileGuid); - - -void __RPC_STUB IConfigAsfWriter_GetCurrentProfileGuid_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigAsfWriter_ConfigureFilterUsingProfile_Proxy( - IConfigAsfWriter * This, - /* [in] */ IWMProfile *pProfile); - - -void __RPC_STUB IConfigAsfWriter_ConfigureFilterUsingProfile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigAsfWriter_GetCurrentProfile_Proxy( - IConfigAsfWriter * This, - /* [out] */ IWMProfile **ppProfile); - - -void __RPC_STUB IConfigAsfWriter_GetCurrentProfile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigAsfWriter_SetIndexMode_Proxy( - IConfigAsfWriter * This, - /* [in] */ BOOL bIndexFile); - - -void __RPC_STUB IConfigAsfWriter_SetIndexMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigAsfWriter_GetIndexMode_Proxy( - IConfigAsfWriter * This, - /* [out] */ BOOL *pbIndexFile); - - -void __RPC_STUB IConfigAsfWriter_GetIndexMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IConfigAsfWriter_INTERFACE_DEFINED__ */ - - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/dsound.h b/sdk/dx8sdk/Include/dsound.h deleted file mode 100644 index 8020a660..00000000 --- a/sdk/dx8sdk/Include/dsound.h +++ /dev/null @@ -1,2358 +0,0 @@ -/*==========================================================================; - * - * Copyright (c) Microsoft Corporation. All rights reserved. - * - * File: dsound.h - * Content: DirectSound include file - * - **************************************************************************/ - -#define COM_NO_WINDOWS_H -#include -#include - -#ifndef DIRECTSOUND_VERSION -#define DIRECTSOUND_VERSION 0x0900 /* Version 9.0 */ -#endif - -#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 HRESULT WINAPI DirectSoundCreate(LPCGUID pcGuidDevice, LPDIRECTSOUND *ppDS, LPUNKNOWN pUnkOuter); -extern HRESULT WINAPI DirectSoundEnumerateA(LPDSENUMCALLBACKA pDSEnumCallback, LPVOID pContext); -extern HRESULT WINAPI DirectSoundEnumerateW(LPDSENUMCALLBACKW pDSEnumCallback, LPVOID pContext); - -extern HRESULT WINAPI DirectSoundCaptureCreate(LPCGUID pcGuidDevice, LPDIRECTSOUNDCAPTURE *ppDSC, LPUNKNOWN pUnkOuter); -extern HRESULT WINAPI DirectSoundCaptureEnumerateA(LPDSENUMCALLBACKA pDSEnumCallback, LPVOID pContext); -extern HRESULT WINAPI DirectSoundCaptureEnumerateW(LPDSENUMCALLBACKW pDSEnumCallback, LPVOID pContext); - -#if DIRECTSOUND_VERSION >= 0x0800 -extern HRESULT WINAPI DirectSoundCreate8(LPCGUID pcGuidDevice, LPDIRECTSOUND8 *ppDS8, LPUNKNOWN pUnkOuter); -extern HRESULT WINAPI DirectSoundCaptureCreate8(LPCGUID pcGuidDevice, LPDIRECTSOUNDCAPTURE8 *ppDSC8, LPUNKNOWN pUnkOuter); -extern HRESULT WINAPI DirectSoundFullDuplexCreate(LPCGUID pcGuidCaptureDevice, LPCGUID pcGuidRenderDevice, - LPCDSCBUFFERDESC pcDSCBufferDesc, LPCDSBUFFERDESC pcDSBufferDesc, HWND hWnd, - DWORD dwLevel, LPDIRECTSOUNDFULLDUPLEX* ppDSFD, LPDIRECTSOUNDCAPTUREBUFFER8 *ppDSCBuffer8, - LPDIRECTSOUNDBUFFER8 *ppDSBuffer8, LPUNKNOWN pUnkOuter); -#define DirectSoundFullDuplexCreate8 DirectSoundFullDuplexCreate - -extern HRESULT WINAPI GetDeviceID(LPCGUID pGuidSrc, 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IReferenceClock methods - STDMETHOD(GetTime) (THIS_ REFERENCE_TIME *pTime) PURE; - STDMETHOD(AdviseTime) (THIS_ REFERENCE_TIME rtBaseTime, REFERENCE_TIME rtStreamTime, - HANDLE hEvent, LPDWORD pdwAdviseCookie) PURE; - STDMETHOD(AdvisePeriodic) (THIS_ REFERENCE_TIME rtStartTime, REFERENCE_TIME rtPeriodTime, - HANDLE hSemaphore, 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSound methods - STDMETHOD(CreateSoundBuffer) (THIS_ LPCDSBUFFERDESC pcDSBufferDesc, LPDIRECTSOUNDBUFFER *ppDSBuffer, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(GetCaps) (THIS_ LPDSCAPS pDSCaps) PURE; - STDMETHOD(DuplicateSoundBuffer) (THIS_ LPDIRECTSOUNDBUFFER pDSBufferOriginal, LPDIRECTSOUNDBUFFER *ppDSBufferDuplicate) PURE; - STDMETHOD(SetCooperativeLevel) (THIS_ HWND hwnd, DWORD dwLevel) PURE; - STDMETHOD(Compact) (THIS) PURE; - STDMETHOD(GetSpeakerConfig) (THIS_ LPDWORD pdwSpeakerConfig) PURE; - STDMETHOD(SetSpeakerConfig) (THIS_ DWORD dwSpeakerConfig) PURE; - STDMETHOD(Initialize) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSound methods - STDMETHOD(CreateSoundBuffer) (THIS_ LPCDSBUFFERDESC pcDSBufferDesc, LPDIRECTSOUNDBUFFER *ppDSBuffer, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(GetCaps) (THIS_ LPDSCAPS pDSCaps) PURE; - STDMETHOD(DuplicateSoundBuffer) (THIS_ LPDIRECTSOUNDBUFFER pDSBufferOriginal, LPDIRECTSOUNDBUFFER *ppDSBufferDuplicate) PURE; - STDMETHOD(SetCooperativeLevel) (THIS_ HWND hwnd, DWORD dwLevel) PURE; - STDMETHOD(Compact) (THIS) PURE; - STDMETHOD(GetSpeakerConfig) (THIS_ LPDWORD pdwSpeakerConfig) PURE; - STDMETHOD(SetSpeakerConfig) (THIS_ DWORD dwSpeakerConfig) PURE; - STDMETHOD(Initialize) (THIS_ LPCGUID pcGuidDevice) PURE; - - // IDirectSound8 methods - STDMETHOD(VerifyCertification) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundBuffer methods - STDMETHOD(GetCaps) (THIS_ LPDSBCAPS pDSBufferCaps) PURE; - STDMETHOD(GetCurrentPosition) (THIS_ LPDWORD pdwCurrentPlayCursor, LPDWORD pdwCurrentWriteCursor) PURE; - STDMETHOD(GetFormat) (THIS_ LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, LPDWORD pdwSizeWritten) PURE; - STDMETHOD(GetVolume) (THIS_ LPLONG plVolume) PURE; - STDMETHOD(GetPan) (THIS_ LPLONG plPan) PURE; - STDMETHOD(GetFrequency) (THIS_ LPDWORD pdwFrequency) PURE; - STDMETHOD(GetStatus) (THIS_ LPDWORD pdwStatus) PURE; - STDMETHOD(Initialize) (THIS_ LPDIRECTSOUND pDirectSound, LPCDSBUFFERDESC pcDSBufferDesc) PURE; - STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, - LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; - STDMETHOD(Play) (THIS_ DWORD dwReserved1, DWORD dwPriority, DWORD dwFlags) PURE; - STDMETHOD(SetCurrentPosition) (THIS_ DWORD dwNewPosition) PURE; - STDMETHOD(SetFormat) (THIS_ 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_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundBuffer methods - STDMETHOD(GetCaps) (THIS_ LPDSBCAPS pDSBufferCaps) PURE; - STDMETHOD(GetCurrentPosition) (THIS_ LPDWORD pdwCurrentPlayCursor, LPDWORD pdwCurrentWriteCursor) PURE; - STDMETHOD(GetFormat) (THIS_ LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, LPDWORD pdwSizeWritten) PURE; - STDMETHOD(GetVolume) (THIS_ LPLONG plVolume) PURE; - STDMETHOD(GetPan) (THIS_ LPLONG plPan) PURE; - STDMETHOD(GetFrequency) (THIS_ LPDWORD pdwFrequency) PURE; - STDMETHOD(GetStatus) (THIS_ LPDWORD pdwStatus) PURE; - STDMETHOD(Initialize) (THIS_ LPDIRECTSOUND pDirectSound, LPCDSBUFFERDESC pcDSBufferDesc) PURE; - STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, - LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; - STDMETHOD(Play) (THIS_ DWORD dwReserved1, DWORD dwPriority, DWORD dwFlags) PURE; - STDMETHOD(SetCurrentPosition) (THIS_ DWORD dwNewPosition) PURE; - STDMETHOD(SetFormat) (THIS_ 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_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; - STDMETHOD(Restore) (THIS) PURE; - - // IDirectSoundBuffer8 methods - STDMETHOD(SetFX) (THIS_ DWORD dwEffectsCount, LPDSEFFECTDESC pDSFXDesc, LPDWORD pdwResultCodes) PURE; - STDMETHOD(AcquireResources) (THIS_ DWORD dwFlags, DWORD dwEffectsCount, LPDWORD pdwResultCodes) PURE; - STDMETHOD(GetObjectInPath) (THIS_ REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSound3DListener methods - STDMETHOD(GetAllParameters) (THIS_ LPDS3DLISTENER pListener) PURE; - STDMETHOD(GetDistanceFactor) (THIS_ D3DVALUE* pflDistanceFactor) PURE; - STDMETHOD(GetDopplerFactor) (THIS_ D3DVALUE* pflDopplerFactor) PURE; - STDMETHOD(GetOrientation) (THIS_ D3DVECTOR* pvOrientFront, D3DVECTOR* pvOrientTop) PURE; - STDMETHOD(GetPosition) (THIS_ D3DVECTOR* pvPosition) PURE; - STDMETHOD(GetRolloffFactor) (THIS_ D3DVALUE* pflRolloffFactor) PURE; - STDMETHOD(GetVelocity) (THIS_ D3DVECTOR* pvVelocity) PURE; - STDMETHOD(SetAllParameters) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSound3DBuffer methods - STDMETHOD(GetAllParameters) (THIS_ LPDS3DBUFFER pDs3dBuffer) PURE; - STDMETHOD(GetConeAngles) (THIS_ LPDWORD pdwInsideConeAngle, LPDWORD pdwOutsideConeAngle) PURE; - STDMETHOD(GetConeOrientation) (THIS_ D3DVECTOR* pvOrientation) PURE; - STDMETHOD(GetConeOutsideVolume) (THIS_ LPLONG plConeOutsideVolume) PURE; - STDMETHOD(GetMaxDistance) (THIS_ D3DVALUE* pflMaxDistance) PURE; - STDMETHOD(GetMinDistance) (THIS_ D3DVALUE* pflMinDistance) PURE; - STDMETHOD(GetMode) (THIS_ LPDWORD pdwMode) PURE; - STDMETHOD(GetPosition) (THIS_ D3DVECTOR* pvPosition) PURE; - STDMETHOD(GetVelocity) (THIS_ D3DVECTOR* pvVelocity) PURE; - STDMETHOD(SetAllParameters) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundCapture methods - STDMETHOD(CreateCaptureBuffer) (THIS_ LPCDSCBUFFERDESC pcDSCBufferDesc, LPDIRECTSOUNDCAPTUREBUFFER *ppDSCBuffer, LPUNKNOWN pUnkOuter) PURE; - STDMETHOD(GetCaps) (THIS_ LPDSCCAPS pDSCCaps) PURE; - STDMETHOD(Initialize) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundCaptureBuffer methods - STDMETHOD(GetCaps) (THIS_ LPDSCBCAPS pDSCBCaps) PURE; - STDMETHOD(GetCurrentPosition) (THIS_ LPDWORD pdwCapturePosition, LPDWORD pdwReadPosition) PURE; - STDMETHOD(GetFormat) (THIS_ LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, LPDWORD pdwSizeWritten) PURE; - STDMETHOD(GetStatus) (THIS_ LPDWORD pdwStatus) PURE; - STDMETHOD(Initialize) (THIS_ LPDIRECTSOUNDCAPTURE pDirectSoundCapture, LPCDSCBUFFERDESC pcDSCBufferDesc) PURE; - STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, - LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; - STDMETHOD(Start) (THIS_ DWORD dwFlags) PURE; - STDMETHOD(Stop) (THIS) PURE; - STDMETHOD(Unlock) (THIS_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundCaptureBuffer methods - STDMETHOD(GetCaps) (THIS_ LPDSCBCAPS pDSCBCaps) PURE; - STDMETHOD(GetCurrentPosition) (THIS_ LPDWORD pdwCapturePosition, LPDWORD pdwReadPosition) PURE; - STDMETHOD(GetFormat) (THIS_ LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, LPDWORD pdwSizeWritten) PURE; - STDMETHOD(GetStatus) (THIS_ LPDWORD pdwStatus) PURE; - STDMETHOD(Initialize) (THIS_ LPDIRECTSOUNDCAPTURE pDirectSoundCapture, LPCDSCBUFFERDESC pcDSCBufferDesc) PURE; - STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, LPVOID *ppvAudioPtr1, LPDWORD pdwAudioBytes1, - LPVOID *ppvAudioPtr2, LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; - STDMETHOD(Start) (THIS_ DWORD dwFlags) PURE; - STDMETHOD(Stop) (THIS) PURE; - STDMETHOD(Unlock) (THIS_ LPVOID pvAudioPtr1, DWORD dwAudioBytes1, LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; - - // IDirectSoundCaptureBuffer8 methods - STDMETHOD(GetObjectInPath) (THIS_ REFGUID rguidObject, DWORD dwIndex, REFGUID rguidInterface, LPVOID *ppObject) PURE; - STDMETHOD(GetFXStatus) (DWORD dwFXCount, 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundNotify methods - STDMETHOD(SetNotificationPositions) (THIS_ DWORD 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IKsPropertySet methods - STDMETHOD(Get) (THIS_ REFGUID rguidPropSet, ULONG ulId, LPVOID pInstanceData, ULONG ulInstanceLength, - LPVOID pPropertyData, ULONG ulDataLength, PULONG pulBytesReturned) PURE; - STDMETHOD(Set) (THIS_ REFGUID rguidPropSet, ULONG ulId, LPVOID pInstanceData, ULONG ulInstanceLength, - LPVOID pPropertyData, ULONG ulDataLength) PURE; - STDMETHOD(QuerySupport) (THIS_ REFGUID rguidPropSet, ULONG ulId, 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXGargle methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXGargle pcDsFxGargle) PURE; - STDMETHOD(GetAllParameters) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXChorus methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXChorus pcDsFxChorus) PURE; - STDMETHOD(GetAllParameters) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXFlanger methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXFlanger pcDsFxFlanger) PURE; - STDMETHOD(GetAllParameters) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXEcho methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXEcho pcDsFxEcho) PURE; - STDMETHOD(GetAllParameters) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXDistortion methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXDistortion pcDsFxDistortion) PURE; - STDMETHOD(GetAllParameters) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXCompressor methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXCompressor pcDsFxCompressor) PURE; - STDMETHOD(GetAllParameters) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXParamEq methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXParamEq pcDsFxParamEq) PURE; - STDMETHOD(GetAllParameters) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXI3DL2Reverb methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXI3DL2Reverb pcDsFxI3DL2Reverb) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSFXI3DL2Reverb pDsFxI3DL2Reverb) PURE; - STDMETHOD(SetPreset) (THIS_ DWORD dwPreset) PURE; - STDMETHOD(GetPreset) (THIS_ LPDWORD pdwPreset) PURE; - STDMETHOD(SetQuality) (THIS_ LONG lQuality) PURE; - STDMETHOD(GetQuality) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFXWavesReverb methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSFXWavesReverb pcDsFxWavesReverb) PURE; - STDMETHOD(GetAllParameters) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundCaptureFXAec methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSCFXAec pDscFxAec) PURE; - STDMETHOD(GetAllParameters) (THIS_ LPDSCFXAec pDscFxAec) PURE; - STDMETHOD(GetStatus) (THIS_ PDWORD 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundCaptureFXNoiseSuppress methods - STDMETHOD(SetAllParameters) (THIS_ LPCDSCFXNoiseSuppress pcDscFxNoiseSuppress) PURE; - STDMETHOD(GetAllParameters) (THIS_ 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_ REFIID, LPVOID *) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - - // IDirectSoundFullDuplex methods - STDMETHOD(Initialize) (THIS_ LPCGUID pCaptureGuid, LPCGUID pRenderGuid, LPCDSCBUFFERDESC lpDscBufferDesc, LPCDSBUFFERDESC lpDsBufferDesc, HWND hWnd, DWORD dwLevel, LPLPDIRECTSOUNDCAPTUREBUFFER8 lplpDirectSoundCaptureBuffer8, 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 -#define DSSPEAKER_7POINT1 0x00000007 - -#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 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 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 - - diff --git a/sdk/dx8sdk/Include/dv.h b/sdk/dx8sdk/Include/dv.h deleted file mode 100644 index d0fe0485..00000000 --- a/sdk/dx8sdk/Include/dv.h +++ /dev/null @@ -1,62 +0,0 @@ -//------------------------------------------------------------------------------ -// File: DV.h -// -// Desc: DV typedefs and defines -// -// Copyright (c) 1997-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef _DV_H_ -#define _DV_H_ - -#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 pins - WORD wAvgSamplesPerPinPerFrm[2]; //sample 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 // _DV_H_ diff --git a/sdk/dx8sdk/Include/dvdevcod.h b/sdk/dx8sdk/Include/dvdevcod.h deleted file mode 100644 index 15b47931..00000000 --- a/sdk/dx8sdk/Include/dvdevcod.h +++ /dev/null @@ -1,363 +0,0 @@ -//------------------------------------------------------------------------------ -// 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__ - - -#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; - -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; - - -#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). -// -#endif // __DVDEVCOD__ diff --git a/sdk/dx8sdk/Include/dvdmedia.h b/sdk/dx8sdk/Include/dvdmedia.h deleted file mode 100644 index 132c5bab..00000000 --- a/sdk/dx8sdk/Include/dvdmedia.h +++ /dev/null @@ -1,427 +0,0 @@ -//------------------------------------------------------------------------------ -// 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__ - -#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 - -// -// 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_DVDCOPY_DISC_KEY = 0x80 -} AM_PROPERTY_DVDCOPYPROT; - -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 Reserved; -} 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 - -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_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 // __DVDMEDIA_H__ diff --git a/sdk/dx8sdk/Include/dvoice.h b/sdk/dx8sdk/Include/dvoice.h deleted file mode 100644 index 000ac511..00000000 --- a/sdk/dx8sdk/Include/dvoice.h +++ /dev/null @@ -1,857 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) 1999 Microsoft Corporation. All Rights Reserved. - * - * File: dpvoice.h - * Content: DirectPlayVoice include file - ***************************************************************************/ - -#ifndef __DVOICE__ -#define __DVOICE__ - -#include // for DECLARE_INTERFACE and HRESULT -#include -#include -#include -#include "dsound.h" - -#ifdef __cplusplus -extern "C" { -#endif - - -/**************************************************************************** - * - * DirectPlayVoice CLSIDs - * - ****************************************************************************/ - - -// {B9F3EB85-B781-4ac1-8D90-93A05EE37D7D} -DEFINE_GUID(CLSID_DirectPlayVoiceClient, -0xb9f3eb85, 0xb781, 0x4ac1, 0x8d, 0x90, 0x93, 0xa0, 0x5e, 0xe3, 0x7d, 0x7d); - -// {D3F5B8E6-9B78-4a4c-94EA-CA2397B663D3} -DEFINE_GUID(CLSID_DirectPlayVoiceServer, -0xd3f5b8e6, 0x9b78, 0x4a4c, 0x94, 0xea, 0xca, 0x23, 0x97, 0xb6, 0x63, 0xd3); - -// {0F0F094B-B01C-4091-A14D-DD0CD807711A} -DEFINE_GUID(CLSID_DirectPlayVoiceTest, -0xf0f094b, 0xb01c, 0x4091, 0xa1, 0x4d, 0xdd, 0xc, 0xd8, 0x7, 0x71, 0x1a); - -/**************************************************************************** - * - * DirectPlayVoice Interface IIDs - * - ****************************************************************************/ - - -// {1DFDC8EA-BCF7-41d6-B295-AB64B3B23306} -DEFINE_GUID(IID_IDirectPlayVoiceClient, -0x1dfdc8ea, 0xbcf7, 0x41d6, 0xb2, 0x95, 0xab, 0x64, 0xb3, 0xb2, 0x33, 0x6); - -// {FAA1C173-0468-43b6-8A2A-EA8A4F2076C9} -DEFINE_GUID(IID_IDirectPlayVoiceServer, -0xfaa1c173, 0x468, 0x43b6, 0x8a, 0x2a, 0xea, 0x8a, 0x4f, 0x20, 0x76, 0xc9); - -// {D26AF734-208B-41da-8224-E0CE79810BE1} -DEFINE_GUID(IID_IDirectPlayVoiceTest, -0xd26af734, 0x208b, 0x41da, 0x82, 0x24, 0xe0, 0xce, 0x79, 0x81, 0xb, 0xe1); - -/**************************************************************************** - * - * DirectPlayVoice Compression Type GUIDs - * - ****************************************************************************/ - -// MS-ADPCM 32.8 kbit/s -// -// {699B52C1-A885-46a8-A308-97172419ADC7} -DEFINE_GUID(DPVCTGUID_ADPCM, -0x699b52c1, 0xa885, 0x46a8, 0xa3, 0x8, 0x97, 0x17, 0x24, 0x19, 0xad, 0xc7); - -// Microsoft GSM 6.10 13 kbit/s -// -// {24768C60-5A0D-11d3-9BE4-525400D985E7} -DEFINE_GUID(DPVCTGUID_GSM, -0x24768c60, 0x5a0d, 0x11d3, 0x9b, 0xe4, 0x52, 0x54, 0x0, 0xd9, 0x85, 0xe7); - -// MS-PCM 64 kbit/s -// -// {8DE12FD4-7CB3-48ce-A7E8-9C47A22E8AC5} -DEFINE_GUID(DPVCTGUID_NONE, -0x8de12fd4, 0x7cb3, 0x48ce, 0xa7, 0xe8, 0x9c, 0x47, 0xa2, 0x2e, 0x8a, 0xc5); - -// Voxware SC03 3.2kbit/s -// -// {7D82A29B-2242-4f82-8F39-5D1153DF3E41} -DEFINE_GUID(DPVCTGUID_SC03, -0x7d82a29b, 0x2242, 0x4f82, 0x8f, 0x39, 0x5d, 0x11, 0x53, 0xdf, 0x3e, 0x41); - -// Voxware SC06 6.4kbit/s -// -// {53DEF900-7168-4633-B47F-D143916A13C7} -DEFINE_GUID(DPVCTGUID_SC06, -0x53def900, 0x7168, 0x4633, 0xb4, 0x7f, 0xd1, 0x43, 0x91, 0x6a, 0x13, 0xc7); - -// TrueSpeech(TM) 8.6 kbit/s -// -// {D7954361-5A0B-11d3-9BE4-525400D985E7} -DEFINE_GUID(DPVCTGUID_TRUESPEECH, -0xd7954361, 0x5a0b, 0x11d3, 0x9b, 0xe4, 0x52, 0x54, 0x0, 0xd9, 0x85, 0xe7); - -// Voxware VR12 1.4kbit/s -// -// {FE44A9FE-8ED4-48bf-9D66-1B1ADFF9FF6D} -DEFINE_GUID(DPVCTGUID_VR12, -0xfe44a9fe, 0x8ed4, 0x48bf, 0x9d, 0x66, 0x1b, 0x1a, 0xdf, 0xf9, 0xff, 0x6d); - -// Define the default compression type -#define DPVCTGUID_DEFAULT DPVCTGUID_SC03 - -/**************************************************************************** - * - * DirectPlayVoice Interface Pointer definitions - * - ****************************************************************************/ - -typedef struct IDirectPlayVoiceClient FAR *LPDIRECTPLAYVOICECLIENT, *PDIRECTPLAYVOICECLIENT; -typedef struct IDirectPlayVoiceServer FAR *LPDIRECTPLAYVOICESERVER, *PDIRECTPLAYVOICESERVER; -typedef struct IDirectPlayVoiceTest FAR *LPDIRECTPLAYVOICETEST, *PDIRECTPLAYVOICETEST; - -/**************************************************************************** - * - * DirectPlayVoice Callback Functions - * - ****************************************************************************/ -typedef HRESULT (FAR PASCAL *PDVMESSAGEHANDLER)( - PVOID pvUserContext, - DWORD dwMessageType, - LPVOID lpMessage -); - -typedef PDVMESSAGEHANDLER LPDVMESSAGEHANDLER; - -/**************************************************************************** - * - * DirectPlayVoice Datatypes (Non-Structure / Non-Message) - * - ****************************************************************************/ - -typedef DWORD DVID, *LPDVID, *PDVID; - -/**************************************************************************** - * - * DirectPlayVoice Message Types - * - ****************************************************************************/ - -#define DVMSGID_BASE 0x0000 - -#define DVMSGID_MINBASE (DVMSGID_CREATEVOICEPLAYER) -#define DVMSGID_CREATEVOICEPLAYER (DVMSGID_BASE+0x0001) -#define DVMSGID_DELETEVOICEPLAYER (DVMSGID_BASE+0x0002) -#define DVMSGID_SESSIONLOST (DVMSGID_BASE+0x0003) -#define DVMSGID_PLAYERVOICESTART (DVMSGID_BASE+0x0004) -#define DVMSGID_PLAYERVOICESTOP (DVMSGID_BASE+0x0005) -#define DVMSGID_RECORDSTART (DVMSGID_BASE+0x0006) -#define DVMSGID_RECORDSTOP (DVMSGID_BASE+0x0007) -#define DVMSGID_CONNECTRESULT (DVMSGID_BASE+0x0008) -#define DVMSGID_DISCONNECTRESULT (DVMSGID_BASE+0x0009) -#define DVMSGID_INPUTLEVEL (DVMSGID_BASE+0x000A) -#define DVMSGID_OUTPUTLEVEL (DVMSGID_BASE+0x000B) -#define DVMSGID_HOSTMIGRATED (DVMSGID_BASE+0x000C) -#define DVMSGID_SETTARGETS (DVMSGID_BASE+0x000D) -#define DVMSGID_PLAYEROUTPUTLEVEL (DVMSGID_BASE+0x000E) -#define DVMSGID_LOSTFOCUS (DVMSGID_BASE+0x0010) -#define DVMSGID_GAINFOCUS (DVMSGID_BASE+0x0011) -#define DVMSGID_LOCALHOSTSETUP (DVMSGID_BASE+0x0012) -#define DVMSGID_MAXBASE (DVMSGID_LOCALHOSTSETUP) - -/**************************************************************************** - * - * DirectPlayVoice Constants - * - ****************************************************************************/ - -// -// Buffer Aggresiveness Value Ranges -// -#define DVBUFFERAGGRESSIVENESS_MIN 0x00000001 -#define DVBUFFERAGGRESSIVENESS_MAX 0x00000064 -#define DVBUFFERAGGRESSIVENESS_DEFAULT 0x00000000 - -// -// Buffer Quality Value Ranges -// -#define DVBUFFERQUALITY_MIN 0x00000001 -#define DVBUFFERQUALITY_MAX 0x00000064 -#define DVBUFFERQUALITY_DEFAULT 0x00000000 - -#define DVID_SYS 0 - -// -// Used to identify the session host in client/server -// -#define DVID_SERVERPLAYER 1 - -// -// Used to target all players -// -#define DVID_ALLPLAYERS 0 - -// -// Used to identify the main buffer -// -#define DVID_REMAINING 0xFFFFFFFF - -// -// Input level range -// -#define DVINPUTLEVEL_MIN 0x00000000 -#define DVINPUTLEVEL_MAX 0x00000063 // 99 decimal - -#define DVNOTIFYPERIOD_MINPERIOD 20 - - -#define DVPLAYBACKVOLUME_DEFAULT DSBVOLUME_MAX - -#define DVRECORDVOLUME_LAST 0x00000001 - - -// -// Use the default value -// -#define DVTHRESHOLD_DEFAULT 0xFFFFFFFF - -// -// Threshold Ranges -// -#define DVTHRESHOLD_MIN 0x00000000 -#define DVTHRESHOLD_MAX 0x00000063 // 99 decimal - -// -// Threshold field is not used -// -#define DVTHRESHOLD_UNUSED 0xFFFFFFFE - -// -// Session Types -// -#define DVSESSIONTYPE_PEER 0x00000001 -#define DVSESSIONTYPE_MIXING 0x00000002 -#define DVSESSIONTYPE_FORWARDING 0x00000003 -#define DVSESSIONTYPE_ECHO 0x00000004 - -/**************************************************************************** - * - * DirectPlayVoice Flags - * - ****************************************************************************/ - - -// -// Enable automatic adjustment of the recording volume -// -#define DVCLIENTCONFIG_AUTORECORDVOLUME 0x00000008 - -// -// Enable automatic voice activation -// -#define DVCLIENTCONFIG_AUTOVOICEACTIVATED 0x00000020 - -// -// Enable echo suppression -// -#define DVCLIENTCONFIG_ECHOSUPPRESSION 0x08000000 - -// -// Voice Activation manual mode -// -#define DVCLIENTCONFIG_MANUALVOICEACTIVATED 0x00000004 - -// -// Only playback voices that have buffers created for them -// -#define DVCLIENTCONFIG_MUTEGLOBAL 0x00000010 - -// -// Mute the playback -// -#define DVCLIENTCONFIG_PLAYBACKMUTE 0x00000002 - -// -// Mute the recording -// -#define DVCLIENTCONFIG_RECORDMUTE 0x00000001 - -// -// Complete the operation before returning -// -#define DVFLAGS_SYNC 0x00000001 - -// -// Just check to see if wizard has been run, and if so what it's results were -// -#define DVFLAGS_QUERYONLY 0x00000002 - -// -// Shutdown the voice session without migrating the host -// -#define DVFLAGS_NOHOSTMIGRATE 0x00000008 - -// -// Allow the back button to be enabled in the wizard -// -#define DVFLAGS_ALLOWBACK 0x00000010 - -// -// Disable host migration in the voice session -// -#define DVSESSION_NOHOSTMIGRATION 0x00000001 - -// -// Server controlled targetting -// -#define DVSESSION_SERVERCONTROLTARGET 0x00000002 - -// -// Use DirectSound Normal Mode instead of priority -// -#define DVSOUNDCONFIG_NORMALMODE 0x00000001 - -// -// Automatically select the microphone -// -#define DVSOUNDCONFIG_AUTOSELECT 0x00000002 - -// -// Run in half duplex mode -// -#define DVSOUNDCONFIG_HALFDUPLEX 0x00000004 - -// -// No volume controls are available for the recording device -// -#define DVSOUNDCONFIG_NORECVOLAVAILABLE 0x00000010 - -// -// Disable capture sharing -// -#define DVSOUNDCONFIG_NOFOCUS 0x20000000 - -// -// Set system conversion quality to high -// -#define DVSOUNDCONFIG_SETCONVERSIONQUALITY 0x00000008 - -// -// Enable strict focus mode -// -#define DVSOUNDCONFIG_STRICTFOCUS 0x40000000 - -// -// Player is in half duplex mode -// -#define DVPLAYERCAPS_HALFDUPLEX 0x00000001 - -// -// Specifies that player is the local player -// -#define DVPLAYERCAPS_LOCAL 0x00000002 - -/**************************************************************************** - * - * DirectPlayVoice Structures (Non-Message) - * - ****************************************************************************/ - - -// -// DirectPlayVoice Caps -// (GetCaps / SetCaps) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DWORD dwFlags; // Caps flags -} DVCAPS, *LPDVCAPS, *PDVCAPS; - -// -// DirectPlayVoice Client Configuration -// (Connect / GetClientConfig) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DWORD dwFlags; // Flags for client config (DVCLIENTCONFIG_...) - LONG lRecordVolume; // Recording volume - LONG lPlaybackVolume; // Playback volume - DWORD dwThreshold; // Voice Activation Threshold - DWORD dwBufferQuality; // Buffer quality - DWORD dwBufferAggressiveness; // Buffer aggressiveness - DWORD dwNotifyPeriod; // Period of notification messages (ms) -} DVCLIENTCONFIG, *LPDVCLIENTCONFIG, *PDVCLIENTCONFIG; - -// -// DirectPlayVoice Compression Type Information -// (GetCompressionTypes) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - GUID guidType; // GUID that identifies this compression type - LPWSTR lpszName; // String name of this compression type - LPWSTR lpszDescription; // Description for this compression type - DWORD dwFlags; // Flags for this compression type - DWORD dwMaxBitsPerSecond; // Maximum # of bit/s this compression type uses -} DVCOMPRESSIONINFO, *LPDVCOMPRESSIONINFO, *PDVCOMPRESSIONINFO; - -// -// DirectPlayVoice Session Description -// (Host / GetSessionDesc) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DWORD dwFlags; // Session flags (DVSESSION_...) - DWORD dwSessionType; // Session type (DVSESSIONTYPE_...) - GUID guidCT; // Compression Type to use - DWORD dwBufferQuality; // Buffer quality - DWORD dwBufferAggressiveness; // Buffer aggresiveness -} DVSESSIONDESC, *LPDVSESSIONDESC, *PDVSESSIONDESC; - -// -// DirectPlayVoice Client Sound Device Configuration -// (Connect / GetSoundDeviceConfig) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DWORD dwFlags; // Flags for sound config (DVSOUNDCONFIG_...) - GUID guidPlaybackDevice; // GUID of the playback device to use - LPDIRECTSOUND lpdsPlaybackDevice; // DirectSound Object to use (optional) - GUID guidCaptureDevice; // GUID of the capture device to use - LPDIRECTSOUNDCAPTURE lpdsCaptureDevice; // DirectSoundCapture Object to use (optional) - HWND hwndAppWindow; // HWND of your application's top-level window - LPDIRECTSOUNDBUFFER lpdsMainBuffer; // DirectSoundBuffer to use for playback (optional) - DWORD dwMainBufferFlags; // Flags to pass to Play() on the main buffer - DWORD dwMainBufferPriority; // Priority to set when calling Play() on the main buffer -} DVSOUNDDEVICECONFIG, *LPDVSOUNDDEVICECONFIG, *PDVSOUNDDEVICECONFIG; - -/**************************************************************************** - * - * DirectPlayVoice message handler call back structures - * - ****************************************************************************/ - -// -// Result of the Connect() call. (If it wasn't called Async) -// (DVMSGID_CONNECTRESULT) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - HRESULT hrResult; // Result of the Connect() call -} DVMSG_CONNECTRESULT, *LPDVMSG_CONNECTRESULT, *PDVMSG_CONNECTRESULT; - -// -// A new player has entered the voice session -// (DVMSGID_CREATEVOICEPLAYER) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DVID dvidPlayer; // DVID of the player who joined - DWORD dwFlags; // Player flags (DVPLAYERCAPS_...) - PVOID pvPlayerContext; // Context value for this player (user set) -} DVMSG_CREATEVOICEPLAYER, *LPDVMSG_CREATEVOICEPLAYER, *PDVMSG_CREATEVOICEPLAYER; - -// -// A player has left the voice session -// (DVMSGID_DELETEVOICEPLAYER) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DVID dvidPlayer; // DVID of the player who left - PVOID pvPlayerContext; // Context value for the player -} DVMSG_DELETEVOICEPLAYER, *LPDVMSG_DELETEVOICEPLAYER, *PDVMSG_DELETEVOICEPLAYER; - -// -// Result of the Disconnect() call. (If it wasn't called Async) -// (DVMSGID_DISCONNECTRESULT) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - HRESULT hrResult; // Result of the Disconnect() call -} DVMSG_DISCONNECTRESULT, *LPDVMSG_DISCONNECTRESULT, *PDVMSG_DISCONNECTRESULT; - -// -// The voice session host has migrated. -// (DVMSGID_HOSTMIGRATED) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DVID dvidNewHostID; // DVID of the player who is now the host - LPDIRECTPLAYVOICESERVER pdvServerInterface; - // Pointer to the new host object (if local player is now host) -} DVMSG_HOSTMIGRATED, *LPDVMSG_HOSTMIGRATED, *PDVMSG_HOSTMIGRATED; - -// -// The current input level / recording volume on the local machine -// (DVMSGID_INPUTLEVEL) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DWORD dwPeakLevel; // Current peak level of the audio - LONG lRecordVolume; // Current recording volume - PVOID pvLocalPlayerContext; // Context value for the local player -} DVMSG_INPUTLEVEL, *LPDVMSG_INPUTLEVEL, *PDVMSG_INPUTLEVEL; - -// -// The local client is about to become the new host -// (DVMSGID_LOCALHOSTSETUP) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - PVOID pvContext; // Context value to be passed to Initialize() of new host object - PDVMESSAGEHANDLER pMessageHandler; // Message handler to be used by new host object -} DVMSG_LOCALHOSTSETUP, *LPDVMSG_LOCALHOSTSETUP, *PDVMSG_LOCALHOSTSETUP; - -// -// The current output level for the combined output of all incoming streams. -// (DVMSGID_OUTPUTLEVEL) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DWORD dwPeakLevel; // Current peak level of the output - LONG lOutputVolume; // Current playback volume - PVOID pvLocalPlayerContext; // Context value for the local player -} DVMSG_OUTPUTLEVEL, *LPDVMSG_OUTPUTLEVEL, *PDVMSG_OUTPUTLEVEL; - -// -// The current peak level of an individual player's incoming audio stream as it is -// being played back. -// (DVMSGID_PLAYEROUTPUTLEVEL) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DVID dvidSourcePlayerID; // DVID of the player - DWORD dwPeakLevel; // Peak level of the player's stream - PVOID pvPlayerContext; // Context value for the player -} DVMSG_PLAYEROUTPUTLEVEL, *LPDVMSG_PLAYEROUTPUTLEVEL, *PDVMSG_PLAYEROUTPUTLEVEL; - -// -// An audio stream from the specified player has started playing back on the local client. -// (DVMSGID_PLAYERVOICESTART). -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DVID dvidSourcePlayerID; // DVID of the Player - PVOID pvPlayerContext; // Context value for this player -} DVMSG_PLAYERVOICESTART, *LPDVMSG_PLAYERVOICESTART, *PDVMSG_PLAYERVOICESTART; - -// -// The audio stream from the specified player has stopped playing back on the local client. -// (DVMSGID_PLAYERVOICESTOP) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DVID dvidSourcePlayerID; // DVID of the player - PVOID pvPlayerContext; // Context value for this player -} DVMSG_PLAYERVOICESTOP, *LPDVMSG_PLAYERVOICESTOP, *PDVMSG_PLAYERVOICESTOP; - -// -// Transmission has started on the local machine -// (DVMSGID_RECORDSTART) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DWORD dwPeakLevel; // Peak level that caused transmission to start - PVOID pvLocalPlayerContext; // Context value for the local player -} DVMSG_RECORDSTART, *LPDVMSG_RECORDSTART, *PDVMSG_RECORDSTART; - -// -// Transmission has stopped on the local machine -// (DVMSGID_RECORDSTOP) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DWORD dwPeakLevel; // Peak level that caused transmission to stop - PVOID pvLocalPlayerContext; // Context value for the local player -} DVMSG_RECORDSTOP, *LPDVMSG_RECORDSTOP, *PDVMSG_RECORDSTOP; - -// -// The voice session has been lost -// (DVMSGID_SESSIONLOST) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - HRESULT hrResult; // Reason the session was disconnected -} DVMSG_SESSIONLOST, *LPDVMSG_SESSIONLOST, *PDVMSG_SESSIONLOST; - -// -// The target list has been updated for the local client -// (DVMSGID_SETTARGETS) -// -typedef struct -{ - DWORD dwSize; // Size of this structure - DWORD dwNumTargets; // # of targets - PDVID pdvidTargets; // An array of DVIDs specifying the current targets -} DVMSG_SETTARGETS, *LPDVMSG_SETTARGETS, *PDVMSG_SETTARGETS; - - -/**************************************************************************** - * - * DirectPlayVoice Functions - * - ****************************************************************************/ - -/* - * - * This function is no longer supported. It is recommended that CoCreateInstance be used to create - * DirectPlay voice objects. - * - * extern HRESULT WINAPI DirectPlayVoiceCreate( const GUID * pcIID, void **ppvInterface, IUnknown *pUnknown); - * - */ - -/**************************************************************************** - * - * DirectPlay8 Application Interfaces - * - ****************************************************************************/ - -#undef INTERFACE -#define INTERFACE IDirectPlayVoiceClient -DECLARE_INTERFACE_( IDirectPlayVoiceClient, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface)(THIS_ REFIID riid, PVOID *ppvObj) PURE; - STDMETHOD_(ULONG,AddRef)(THIS) PURE; - STDMETHOD_(ULONG,Release)(THIS) PURE; - /*** IDirectPlayVoiceClient methods ***/ - STDMETHOD_(HRESULT, Initialize) (THIS_ LPUNKNOWN, PDVMESSAGEHANDLER, PVOID, PDWORD, DWORD ) PURE; - STDMETHOD_(HRESULT, Connect) (THIS_ PDVSOUNDDEVICECONFIG, PDVCLIENTCONFIG, DWORD ) PURE; - STDMETHOD_(HRESULT, Disconnect) (THIS_ DWORD ) PURE; - STDMETHOD_(HRESULT, GetSessionDesc)(THIS_ PDVSESSIONDESC ) PURE; - STDMETHOD_(HRESULT, GetClientConfig)(THIS_ PDVCLIENTCONFIG ) PURE; - STDMETHOD_(HRESULT, SetClientConfig)(THIS_ PDVCLIENTCONFIG ) PURE; - STDMETHOD_(HRESULT, GetCaps) (THIS_ PDVCAPS ) PURE; - STDMETHOD_(HRESULT, GetCompressionTypes)( THIS_ PVOID, PDWORD, PDWORD, DWORD ) PURE; - STDMETHOD_(HRESULT, SetTransmitTargets)( THIS_ PDVID, DWORD, DWORD ) PURE; - STDMETHOD_(HRESULT, GetTransmitTargets)( THIS_ PDVID, PDWORD, DWORD ) PURE; - STDMETHOD_(HRESULT, Create3DSoundBuffer)( THIS_ DVID, LPDIRECTSOUNDBUFFER, DWORD, DWORD, LPDIRECTSOUND3DBUFFER * ) PURE; - STDMETHOD_(HRESULT, Delete3DSoundBuffer)( THIS_ DVID, LPDIRECTSOUND3DBUFFER * ) PURE; - STDMETHOD_(HRESULT, SetNotifyMask)( THIS_ PDWORD, DWORD ) PURE; - STDMETHOD_(HRESULT, GetSoundDeviceConfig)( THIS_ PDVSOUNDDEVICECONFIG, PDWORD ) PURE; -}; - - -#undef INTERFACE -#define INTERFACE IDirectPlayVoiceServer -DECLARE_INTERFACE_( IDirectPlayVoiceServer, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectPlayVoiceServer methods ***/ - STDMETHOD_(HRESULT, Initialize) (THIS_ LPUNKNOWN, PDVMESSAGEHANDLER, PVOID, LPDWORD, DWORD ) PURE; - STDMETHOD_(HRESULT, StartSession) (THIS_ PDVSESSIONDESC, DWORD ) PURE; - STDMETHOD_(HRESULT, StopSession) (THIS_ DWORD ) PURE; - STDMETHOD_(HRESULT, GetSessionDesc)(THIS_ PDVSESSIONDESC ) PURE; - STDMETHOD_(HRESULT, SetSessionDesc)(THIS_ PDVSESSIONDESC ) PURE; - STDMETHOD_(HRESULT, GetCaps) (THIS_ PDVCAPS ) PURE; - STDMETHOD_(HRESULT, GetCompressionTypes)( THIS_ PVOID, PDWORD, PDWORD, DWORD ) PURE; - STDMETHOD_(HRESULT, SetTransmitTargets)( THIS_ DVID, PDVID, DWORD, DWORD ) PURE; - STDMETHOD_(HRESULT, GetTransmitTargets)( THIS_ DVID, PDVID, PDWORD, DWORD ) PURE; - STDMETHOD_(HRESULT, SetNotifyMask)( THIS_ PDWORD, DWORD ) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirectPlayVoiceTest -DECLARE_INTERFACE_( IDirectPlayVoiceTest, IUnknown ) -{ - /*** IUnknown methods ***/ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, PVOID * ppvObj) PURE; - STDMETHOD_(ULONG,AddRef) (THIS) PURE; - STDMETHOD_(ULONG,Release) (THIS) PURE; - /*** IDirectPlayVoiceTest methods ***/ - STDMETHOD_(HRESULT, CheckAudioSetup) (THIS_ const GUID *, const GUID * , HWND, DWORD ) PURE; -}; - -#if !defined(__cplusplus) || defined(CINTERFACE) - -#define IDirectPlayVoiceClient_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlayVoiceClient_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlayVoiceClient_Release(p) (p)->lpVtbl->Release(p) - -#define IDirectPlayVoiceClient_Initialize(p,a,b,c,d,e) (p)->lpVtbl->Initialize(p,a,b,c,d,e) -#define IDirectPlayVoiceClient_Connect(p,a,b,c) (p)->lpVtbl->Connect(p,a,b,c) -#define IDirectPlayVoiceClient_Disconnect(p,a) (p)->lpVtbl->Disconnect(p,a) -#define IDirectPlayVoiceClient_GetSessionDesc(p,a) (p)->lpVtbl->GetSessionDesc(p,a) -#define IDirectPlayVoiceClient_GetClientConfig(p,a) (p)->lpVtbl->GetClientConfig(p,a) -#define IDirectPlayVoiceClient_SetClientConfig(p,a) (p)->lpVtbl->SetClientConfig(p,a) -#define IDirectPlayVoiceClient_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) -#define IDirectPlayVoiceClient_GetCompressionTypes(p,a,b,c,d) (p)->lpVtbl->GetCompressionTypes(p,a,b,c,d) -#define IDirectPlayVoiceClient_SetTransmitTargets(p,a,b,c) (p)->lpVtbl->SetTransmitTargets(p,a,b,c) -#define IDirectPlayVoiceClient_GetTransmitTargets(p,a,b,c) (p)->lpVtbl->GetTransmitTargets(p,a,b,c) -#define IDirectPlayVoiceClient_Create3DSoundBuffer(p,a,b,c,d,e) (p)->lpVtbl->Create3DSoundBuffer(p,a,b,c,d,e) -#define IDirectPlayVoiceClient_Delete3DSoundBuffer(p,a,b) (p)->lpVtbl->Delete3DSoundBuffer(p,a,b) -#define IDirectPlayVoiceClient_SetNotifyMask(p,a,b) (p)->lpVtbl->SetNotifyMask(p,a,b) -#define IDirectPlayVoiceClient_GetSoundDeviceConfig(p,a,b) (p)->lpVtbl->GetSoundDeviceConfig(p,a,b) - -#define IDirectPlayVoiceServer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlayVoiceServer_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlayVoiceServer_Release(p) (p)->lpVtbl->Release(p) - -#define IDirectPlayVoiceServer_Initialize(p,a,b,c,d,e) (p)->lpVtbl->Initialize(p,a,b,c,d,e) -#define IDirectPlayVoiceServer_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b) -#define IDirectPlayVoiceServer_StopSession(p,a) (p)->lpVtbl->StopSession(p,a) -#define IDirectPlayVoiceServer_GetSessionDesc(p,a) (p)->lpVtbl->GetSessionDesc(p,a) -#define IDirectPlayVoiceServer_SetSessionDesc(p,a) (p)->lpVtbl->SetSessionDesc(p,a) -#define IDirectPlayVoiceServer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) -#define IDirectPlayVoiceServer_GetCompressionTypes(p,a,b,c,d) (p)->lpVtbl->GetCompressionTypes(p,a,b,c,d) -#define IDirectPlayVoiceServer_SetTransmitTargets(p,a,b,c,d) (p)->lpVtbl->SetTransmitTargets(p,a,b,c,d) -#define IDirectPlayVoiceServer_GetTransmitTargets(p,a,b,c,d) (p)->lpVtbl->GetTransmitTargets(p,a,b,c,d) -#define IDirectPlayVoiceServer_SetNotifyMask(p,a,b) (p)->lpVtbl->SetNotifyMask(p,a,b) -#define IDirectPlayVoiceTest_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectPlayVoiceTest_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectPlayVoiceTest_Release(p) (p)->lpVtbl->Release(p) -#define IDirectPlayVoiceTest_CheckAudioSetup(p,a,b,c,d) (p)->lpVtbl->CheckAudioSetup(p,a,b,c,d) - - -#else /* C++ */ - -#define IDirectPlayVoiceClient_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlayVoiceClient_AddRef(p) (p)->AddRef() -#define IDirectPlayVoiceClient_Release(p) (p)->Release() - -#define IDirectPlayVoiceClient_Initialize(p,a,b,c,d,e) (p)->Initialize(a,b,c,d,e) -#define IDirectPlayVoiceClient_Connect(p,a,b,c) (p)->Connect(a,b,c) -#define IDirectPlayVoiceClient_Disconnect(p,a) (p)->Disconnect(a) -#define IDirectPlayVoiceClient_GetSessionDesc(p,a) (p)->GetSessionDesc(a) -#define IDirectPlayVoiceClient_GetClientConfig(p,a) (p)->GetClientConfig(a) -#define IDirectPlayVoiceClient_SetClientConfig(p,a) (p)->SetClientConfig(a) -#define IDirectPlayVoiceClient_GetCaps(p,a) (p)->GetCaps(a) -#define IDirectPlayVoiceClient_GetCompressionTypes(p,a,b,c,d) (p)->GetCompressionTypes(a,b,c,d) -#define IDirectPlayVoiceClient_SetTransmitTargets(p,a,b,c) (p)->SetTransmitTargets(a,b,c) -#define IDirectPlayVoiceClient_GetTransmitTargets(p,a,b,c) (p)->GetTransmitTargets(a,b,c) -#define IDirectPlayVoiceClient_Create3DSoundBuffer(p,a,b,c,d,e) (p)->Create3DSoundBuffer(a,b,c,d,e) -#define IDirectPlayVoiceClient_Delete3DSoundBuffer(p,a,b) (p)->Delete3DSoundBuffer(a,b) -#define IDirectPlayVoiceClient_SetNotifyMask(p,a,b) (p)->SetNotifyMask(a,b) -#define IDirectPlayVoiceClient_GetSoundDeviceConfig(p,a,b) (p)->GetSoundDeviceConfig(a,b) - -#define IDirectPlayVoiceServer_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlayVoiceServer_AddRef(p) (p)->AddRef() -#define IDirectPlayVoiceServer_Release(p) (p)->Release() - -#define IDirectPlayVoiceServer_Initialize(p,a,b,c,d,e) (p)->Initialize(a,b,c,d,e) -#define IDirectPlayVoiceServer_StartSession(p,a,b) (p)->StartSession(a,b) -#define IDirectPlayVoiceServer_StopSession(p,a) (p)->StopSession(a) -#define IDirectPlayVoiceServer_GetSessionDesc(p,a) (p)->GetSessionDesc(a) -#define IDirectPlayVoiceServer_SetSessionDesc(p,a) (p)->SetSessionDesc(a) -#define IDirectPlayVoiceServer_GetCaps(p,a) (p)->GetCaps(a) -#define IDirectPlayVoiceServer_GetCompressionTypes(p,a,b,c,d) (p)->GetCompressionTypes(a,b,c,d) -#define IDirectPlayVoiceServer_SetTransmitTargets(p,a,b,c,d) (p)->SetTransmitTargets(a,b,c,d) -#define IDirectPlayVoiceServer_GetTransmitTargets(p,a,b,c,d) (p)->GetTransmitTargets(a,b,c,d) -#define IDirectPlayVoiceServer_SetNotifyMask(p,a,b) (p)->SetNotifyMask(a,b) - -#define IDirectPlayVoiceTest_QueryInterface(p,a,b) (p)->QueryInterface(a,b) -#define IDirectPlayVoiceTest_AddRef(p) (p)->AddRef() -#define IDirectPlayVoiceTest_Release(p) (p)->Release() -#define IDirectPlayVoiceTest_CheckAudioSetup(p,a,b,c,d) (p)->CheckAudioSetup(a,b,c,d) - - -#endif - - -/**************************************************************************** - * - * DIRECTPLAYVOICE ERRORS - * - * Errors are represented by negative values and cannot be combined. - * - ****************************************************************************/ - -#define _FACDPV 0x15 -#define MAKE_DVHRESULT( code ) MAKE_HRESULT( 1, _FACDPV, code ) - -#define DV_OK S_OK -#define DV_FULLDUPLEX MAKE_HRESULT( 0, _FACDPV, 0x0005 ) -#define DV_HALFDUPLEX MAKE_HRESULT( 0, _FACDPV, 0x000A ) -#define DV_PENDING MAKE_HRESULT( 0, _FACDPV, 0x0010 ) - -#define DVERR_BUFFERTOOSMALL MAKE_DVHRESULT( 0x001E ) -#define DVERR_EXCEPTION MAKE_DVHRESULT( 0x004A ) -#define DVERR_GENERIC E_FAIL -#define DVERR_INVALIDFLAGS MAKE_DVHRESULT( 0x0078 ) -#define DVERR_INVALIDOBJECT MAKE_DVHRESULT( 0x0082 ) -#define DVERR_INVALIDPARAM E_INVALIDARG -#define DVERR_INVALIDPLAYER MAKE_DVHRESULT( 0x0087 ) -#define DVERR_INVALIDGROUP MAKE_DVHRESULT( 0x0091 ) -#define DVERR_INVALIDHANDLE MAKE_DVHRESULT( 0x0096 ) -#define DVERR_OUTOFMEMORY E_OUTOFMEMORY -#define DVERR_PENDING DV_PENDING -#define DVERR_NOTSUPPORTED E_NOTIMPL -#define DVERR_NOINTERFACE E_NOINTERFACE -#define DVERR_SESSIONLOST MAKE_DVHRESULT( 0x012C ) -#define DVERR_NOVOICESESSION MAKE_DVHRESULT( 0x012E ) -#define DVERR_CONNECTIONLOST MAKE_DVHRESULT( 0x0168 ) -#define DVERR_NOTINITIALIZED MAKE_DVHRESULT( 0x0169 ) -#define DVERR_CONNECTED MAKE_DVHRESULT( 0x016A ) -#define DVERR_NOTCONNECTED MAKE_DVHRESULT( 0x016B ) -#define DVERR_CONNECTABORTING MAKE_DVHRESULT( 0x016E ) -#define DVERR_NOTALLOWED MAKE_DVHRESULT( 0x016F ) -#define DVERR_INVALIDTARGET MAKE_DVHRESULT( 0x0170 ) -#define DVERR_TRANSPORTNOTHOST MAKE_DVHRESULT( 0x0171 ) -#define DVERR_COMPRESSIONNOTSUPPORTED MAKE_DVHRESULT( 0x0172 ) -#define DVERR_ALREADYPENDING MAKE_DVHRESULT( 0x0173 ) -#define DVERR_SOUNDINITFAILURE MAKE_DVHRESULT( 0x0174 ) -#define DVERR_TIMEOUT MAKE_DVHRESULT( 0x0175 ) -#define DVERR_CONNECTABORTED MAKE_DVHRESULT( 0x0176 ) -#define DVERR_NO3DSOUND MAKE_DVHRESULT( 0x0177 ) -#define DVERR_ALREADYBUFFERED MAKE_DVHRESULT( 0x0178 ) -#define DVERR_NOTBUFFERED MAKE_DVHRESULT( 0x0179 ) -#define DVERR_HOSTING MAKE_DVHRESULT( 0x017A ) -#define DVERR_NOTHOSTING MAKE_DVHRESULT( 0x017B ) -#define DVERR_INVALIDDEVICE MAKE_DVHRESULT( 0x017C ) -#define DVERR_RECORDSYSTEMERROR MAKE_DVHRESULT( 0x017D ) -#define DVERR_PLAYBACKSYSTEMERROR MAKE_DVHRESULT( 0x017E ) -#define DVERR_SENDERROR MAKE_DVHRESULT( 0x017F ) -#define DVERR_USERCANCEL MAKE_DVHRESULT( 0x0180 ) -#define DVERR_RUNSETUP MAKE_DVHRESULT( 0x0183 ) -#define DVERR_INCOMPATIBLEVERSION MAKE_DVHRESULT( 0x0184 ) -#define DVERR_INITIALIZED MAKE_DVHRESULT( 0x0187 ) -#define DVERR_INVALIDPOINTER E_POINTER -#define DVERR_NOTRANSPORT MAKE_DVHRESULT( 0x0188 ) -#define DVERR_NOCALLBACK MAKE_DVHRESULT( 0x0189 ) -#define DVERR_TRANSPORTNOTINIT MAKE_DVHRESULT( 0x018A ) -#define DVERR_TRANSPORTNOSESSION MAKE_DVHRESULT( 0x018B ) -#define DVERR_TRANSPORTNOPLAYER MAKE_DVHRESULT( 0x018C ) -#define DVERR_USERBACK MAKE_DVHRESULT( 0x018D ) -#define DVERR_NORECVOLAVAILABLE MAKE_DVHRESULT( 0x018E ) -#define DVERR_INVALIDBUFFER MAKE_DVHRESULT( 0x018F ) -#define DVERR_LOCKEDBUFFER MAKE_DVHRESULT( 0x0190 ) - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/dvp.h b/sdk/dx8sdk/Include/dvp.h deleted file mode 100644 index c40dc793..00000000 --- a/sdk/dx8sdk/Include/dvp.h +++ /dev/null @@ -1,966 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: dvp.h - * Content: DirectDrawVideoPort include file - * - ***************************************************************************/ - -#ifndef __DVP_INCLUDED__ -#define __DVP_INCLUDED__ - -/* - * 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, LPDWORD, 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, LPDDPIXELFORMAT, DWORD) PURE; - STDMETHOD(GetOutputFormats)(THIS_ LPDDPIXELFORMAT, LPDWORD, 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 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 - -/* - * 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 - diff --git a/sdk/dx8sdk/Include/dx7todx8.h b/sdk/dx8sdk/Include/dx7todx8.h deleted file mode 100644 index a513d693..00000000 --- a/sdk/dx8sdk/Include/dx7todx8.h +++ /dev/null @@ -1,98 +0,0 @@ -/*==========================================================================; - * - * Copyright (C) Microsoft Corporation. All Rights Reserved. - * - * File: dx7todx8.h - * Content: DX7 to DX8 Direct3D aliases to aid porting DX7 apps to DX8 - * - ***************************************************************************/ - -#ifndef _DX7TODX8_H_ - -/////////////////////////////////////////////////////////////////////////////// -// -// d3d8types.h -// -/////////////////////////////////////////////////////////////////////////////// - -#define D3DTRANSFORMSTATE_WORLD D3DTS_WORLD -#define D3DTRANSFORMSTATE_VIEW D3DTS_VIEW -#define D3DTRANSFORMSTATE_PROJECTION D3DTS_PROJECTION -#define D3DTRANSFORMSTATE_WORLD1 D3DTS_WORLD1 -#define D3DTRANSFORMSTATE_WORLD2 D3DTS_WORLD2 -#define D3DTRANSFORMSTATE_WORLD3 D3DTS_WORLD3 -#define D3DTRANSFORMSTATE_TEXTURE0 D3DTS_TEXTURE0 -#define D3DTRANSFORMSTATE_TEXTURE1 D3DTS_TEXTURE1 -#define D3DTRANSFORMSTATE_TEXTURE2 D3DTS_TEXTURE2 -#define D3DTRANSFORMSTATE_TEXTURE3 D3DTS_TEXTURE3 -#define D3DTRANSFORMSTATE_TEXTURE4 D3DTS_TEXTURE4 -#define D3DTRANSFORMSTATE_TEXTURE5 D3DTS_TEXTURE5 -#define D3DTRANSFORMSTATE_TEXTURE6 D3DTS_TEXTURE6 -#define D3DTRANSFORMSTATE_TEXTURE7 D3DTS_TEXTURE7 -#define D3DTRANSFORMSTATE_FORCE_DWORD D3DTS_FORCE_DWORD - -#define D3DRENDERSTATE_ZENABLE D3DRS_ZENABLE -#define D3DRENDERSTATE_FILLMODE D3DRS_FILLMODE -#define D3DRENDERSTATE_SHADEMODE D3DRS_SHADEMODE -#define D3DRENDERSTATE_LINEPATTERN D3DRS_LINEPATTERN -#define D3DRENDERSTATE_ZWRITEENABLE D3DRS_ZWRITEENABLE -#define D3DRENDERSTATE_ALPHATESTENABLE D3DRS_ALPHATESTENABLE -#define D3DRENDERSTATE_LASTPIXEL D3DRS_LASTPIXEL -#define D3DRENDERSTATE_SRCBLEND D3DRS_SRCBLEND -#define D3DRENDERSTATE_DESTBLEND D3DRS_DESTBLEND -#define D3DRENDERSTATE_CULLMODE D3DRS_CULLMODE -#define D3DRENDERSTATE_ZFUNC D3DRS_ZFUNC -#define D3DRENDERSTATE_ALPHAREF D3DRS_ALPHAREF -#define D3DRENDERSTATE_ALPHAFUNC D3DRS_ALPHAFUNC -#define D3DRENDERSTATE_DITHERENABLE D3DRS_DITHERENABLE -#define D3DRENDERSTATE_ALPHABLENDENABLE D3DRS_ALPHABLENDENABLE -#define D3DRENDERSTATE_FOGENABLE D3DRS_FOGENABLE -#define D3DRENDERSTATE_SPECULARENABLE D3DRS_SPECULARENABLE -#define D3DRENDERSTATE_ZVISIBLE D3DRS_ZVISIBLE -#define D3DRENDERSTATE_FOGCOLOR D3DRS_FOGCOLOR -#define D3DRENDERSTATE_FOGTABLEMODE D3DRS_FOGTABLEMODE -#define D3DRENDERSTATE_FOGSTART D3DRS_FOGSTART -#define D3DRENDERSTATE_FOGEND D3DRS_FOGEND -#define D3DRENDERSTATE_FOGDENSITY D3DRS_FOGDENSITY -#define D3DRENDERSTATE_EDGEANTIALIAS D3DRS_EDGEANTIALIAS -#define D3DRENDERSTATE_ZBIAS D3DRS_ZBIAS -#define D3DRENDERSTATE_RANGEFOGENABLE D3DRS_RANGEFOGENABLE -#define D3DRENDERSTATE_STENCILENABLE D3DRS_STENCILENABLE -#define D3DRENDERSTATE_STENCILFAIL D3DRS_STENCILFAIL -#define D3DRENDERSTATE_STENCILZFAIL D3DRS_STENCILZFAIL -#define D3DRENDERSTATE_STENCILPASS D3DRS_STENCILPASS -#define D3DRENDERSTATE_STENCILFUNC D3DRS_STENCILFUNC -#define D3DRENDERSTATE_STENCILREF D3DRS_STENCILREF -#define D3DRENDERSTATE_STENCILMASK D3DRS_STENCILMASK -#define D3DRENDERSTATE_STENCILWRITEMASK D3DRS_STENCILWRITEMASK -#define D3DRENDERSTATE_TEXTUREFACTOR D3DRS_TEXTUREFACTOR -#define D3DRENDERSTATE_WRAP0 D3DRS_WRAP0 -#define D3DRENDERSTATE_WRAP1 D3DRS_WRAP1 -#define D3DRENDERSTATE_WRAP2 D3DRS_WRAP2 -#define D3DRENDERSTATE_WRAP3 D3DRS_WRAP3 -#define D3DRENDERSTATE_WRAP4 D3DRS_WRAP4 -#define D3DRENDERSTATE_WRAP5 D3DRS_WRAP5 -#define D3DRENDERSTATE_WRAP6 D3DRS_WRAP6 -#define D3DRENDERSTATE_WRAP7 D3DRS_WRAP7 -#define D3DRENDERSTATE_CLIPPING D3DRS_CLIPPING -#define D3DRENDERSTATE_LIGHTING D3DRS_LIGHTING -#define D3DRENDERSTATE_EXTENTS D3DRS_EXTENTS -#define D3DRENDERSTATE_AMBIENT D3DRS_AMBIENT -#define D3DRENDERSTATE_FOGVERTEXMODE D3DRS_FOGVERTEXMODE -#define D3DRENDERSTATE_COLORVERTEX D3DRS_COLORVERTEX -#define D3DRENDERSTATE_LOCALVIEWER D3DRS_LOCALVIEWER -#define D3DRENDERSTATE_NORMALIZENORMALS D3DRS_NORMALIZENORMALS -#define D3DRENDERSTATE_DIFFUSEMATERIALSOURCE D3DRS_DIFFUSEMATERIALSOURCE -#define D3DRENDERSTATE_SPECULARMATERIALSOURCE D3DRS_SPECULARMATERIALSOURCE -#define D3DRENDERSTATE_AMBIENTMATERIALSOURCE D3DRS_AMBIENTMATERIALSOURCE -#define D3DRENDERSTATE_EMISSIVEMATERIALSOURCE D3DRS_EMISSIVEMATERIALSOURCE -#define D3DRENDERSTATE_VERTEXBLEND D3DRS_VERTEXBLEND -#define D3DRENDERSTATE_CLIPPLANEENABLE D3DRS_CLIPPLANEENABLE - -#define RGBA_MAKE D3DCOLOR_RGBA -#define RGB_MAKE D3DCOLOR_XRGB -#define D3DRGBA D3DCOLOR_COLORVALUE -#define D3DRGB(_r,_g,_b) D3DCOLOR_COLORVALUE(_r,_g,_b,1.f) - -#define _DX7TODX8_H_ -#endif //_DX7TODX8_H_ diff --git a/sdk/dx8sdk/Include/dxerr8.h b/sdk/dx8sdk/Include/dxerr8.h deleted file mode 100644 index 8b7813da..00000000 --- a/sdk/dx8sdk/Include/dxerr8.h +++ /dev/null @@ -1,100 +0,0 @@ -/*==========================================================================; - * - * - * File: dxerr8.h - * Content: DirectX Error Library Include File - * - ****************************************************************************/ - -#ifndef _DXERR8_H_ -#define _DXERR8_H_ - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -// -// DXGetErrorString8 -// -// Desc: Converts a DirectX HRESULT to a string -// -// Args: HRESULT hr Can be any error code from -// D3D8 D3DX8 DDRAW DPLAY8 DMUSIC DSOUND DINPUT DSHOW -// -// Return: Converted string -// -const char* WINAPI DXGetErrorString8A(HRESULT hr); -const WCHAR* WINAPI DXGetErrorString8W(HRESULT hr); - -#ifdef UNICODE -#define DXGetErrorString8 DXGetErrorString8W -#else -#define DXGetErrorString8 DXGetErrorString8A -#endif - - -// -// DXGetErrorDescription8 -// -// Desc: Returns a string description of a DirectX HRESULT -// -// Args: HRESULT hr Can be any error code from -// D3D8 D3DX8 DDRAW DPLAY8 DMUSIC DSOUND DINPUT DSHOW -// -// Return: String description -// -const char* WINAPI DXGetErrorDescription8A(HRESULT hr); -const WCHAR* WINAPI DXGetErrorDescription8W(HRESULT hr); - -#ifdef UNICODE - #define DXGetErrorDescription8 DXGetErrorDescription8W -#else - #define DXGetErrorDescription8 DXGetErrorDescription8A -#endif - - -// -// DXTrace -// -// Desc: Outputs a formatted error message to the debug stream -// -// Args: CHAR* strFile The current file, typically passed in using the -// __FILE__ macro. -// DWORD dwLine The current line number, typically passed in using the -// __LINE__ macro. -// HRESULT hr An HRESULT that will be traced to the debug stream. -// CHAR* strMsg A string that will be traced to the debug stream (may be NULL) -// BOOL bPopMsgBox If TRUE, then a message box will popup also containing the passed info. -// -// Return: The hr that was passed in. -// -HRESULT WINAPI DXTraceA( const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox ); -HRESULT WINAPI DXTraceW( const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox ); - -#ifdef UNICODE -#define DXTrace DXTraceW -#else -#define DXTrace DXTraceA -#endif - - -// -// Helper macros -// -#if defined(DEBUG) | defined(_DEBUG) -#define DXTRACE_MSG(str) DXTrace( __FILE__, (DWORD)__LINE__, 0, str, FALSE ) -#define DXTRACE_ERR(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, TRUE ) -#define DXTRACE_ERR_NOMSGBOX(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, FALSE ) -#else -#define DXTRACE_MSG(str) (0L) -#define DXTRACE_ERR(str,hr) (hr) -#define DXTRACE_ERR_NOMSGBOX(str,hr) (hr) -#endif - - -#ifdef __cplusplus -} -#endif //__cplusplus - -#endif // _DXERR8_H_ - diff --git a/sdk/dx8sdk/Include/dxerr9.h b/sdk/dx8sdk/Include/dxerr9.h deleted file mode 100644 index 3fc6fba3..00000000 --- a/sdk/dx8sdk/Include/dxerr9.h +++ /dev/null @@ -1,100 +0,0 @@ -/*==========================================================================; - * - * - * File: dxerr9.h - * Content: DirectX Error Library Include File - * - ****************************************************************************/ - -#ifndef _DXERR9_H_ -#define _DXERR9_H_ - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -// -// DXGetErrorString9 -// -// Desc: Converts a DirectX 9 or earlier HRESULT to a string -// -// Args: HRESULT hr Can be any error code from -// D3D9 D3DX9 D3D8 D3DX8 DDRAW DPLAY8 DMUSIC DSOUND DINPUT DSHOW -// -// Return: Converted string -// -const char* WINAPI DXGetErrorString9A(HRESULT hr); -const WCHAR* WINAPI DXGetErrorString9W(HRESULT hr); - -#ifdef UNICODE -#define DXGetErrorString9 DXGetErrorString9W -#else -#define DXGetErrorString9 DXGetErrorString9A -#endif - - -// -// DXGetErrorDescription9 -// -// Desc: Returns a string description of a DirectX 9 or earlier HRESULT -// -// Args: HRESULT hr Can be any error code from -// D3D9 D3DX9 D3D8 D3DX8 DDRAW DPLAY8 DMUSIC DSOUND DINPUT DSHOW -// -// Return: String description -// -const char* WINAPI DXGetErrorDescription9A(HRESULT hr); -const WCHAR* WINAPI DXGetErrorDescription9W(HRESULT hr); - -#ifdef UNICODE - #define DXGetErrorDescription9 DXGetErrorDescription9W -#else - #define DXGetErrorDescription9 DXGetErrorDescription9A -#endif - - -// -// DXTrace -// -// Desc: Outputs a formatted error message to the debug stream -// -// Args: CHAR* strFile The current file, typically passed in using the -// __FILE__ macro. -// DWORD dwLine The current line number, typically passed in using the -// __LINE__ macro. -// HRESULT hr An HRESULT that will be traced to the debug stream. -// CHAR* strMsg A string that will be traced to the debug stream (may be NULL) -// BOOL bPopMsgBox If TRUE, then a message box will popup also containing the passed info. -// -// Return: The hr that was passed in. -// -HRESULT WINAPI DXTraceA( const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox ); -HRESULT WINAPI DXTraceW( const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox ); - -#ifdef UNICODE -#define DXTrace DXTraceW -#else -#define DXTrace DXTraceA -#endif - - -// -// Helper macros -// -#if defined(DEBUG) | defined(_DEBUG) -#define DXTRACE_MSG(str) DXTrace( __FILE__, (DWORD)__LINE__, 0, str, FALSE ) -#define DXTRACE_ERR(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, FALSE ) -#define DXTRACE_ERR_MSGBOX(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, TRUE ) -#else -#define DXTRACE_MSG(str) (0L) -#define DXTRACE_ERR(str,hr) (hr) -#define DXTRACE_ERR_MSGBOX(str,hr) (hr) -#endif - - -#ifdef __cplusplus -} -#endif //__cplusplus - -#endif // _DXERR9_H_ - diff --git a/sdk/dx8sdk/Include/dxfile.h b/sdk/dx8sdk/Include/dxfile.h deleted file mode 100644 index 8b5995a5..00000000 --- a/sdk/dx8sdk/Include/dxfile.h +++ /dev/null @@ -1,240 +0,0 @@ -/*************************************************************************** - * - * Copyright (C) 1998-1999 Microsoft Corporation. All Rights Reserved. - * - * File: dxfile.h - * - * Content: DirectX File public header file - * - ***************************************************************************/ - -#ifndef __DXFILE_H__ -#define __DXFILE_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -typedef DWORD DXFILEFORMAT; - -#define DXFILEFORMAT_BINARY 0 -#define DXFILEFORMAT_TEXT 1 -#define DXFILEFORMAT_COMPRESSED 2 - -typedef DWORD DXFILELOADOPTIONS; - -#define DXFILELOAD_FROMFILE 0x00L -#define DXFILELOAD_FROMRESOURCE 0x01L -#define DXFILELOAD_FROMMEMORY 0x02L -#define DXFILELOAD_FROMSTREAM 0x04L -#define DXFILELOAD_FROMURL 0x08L - -typedef struct _DXFILELOADRESOURCE { - HMODULE hModule; - LPCTSTR lpName; - LPCTSTR lpType; -}DXFILELOADRESOURCE, *LPDXFILELOADRESOURCE; - -typedef struct _DXFILELOADMEMORY { - LPVOID lpMemory; - DWORD dSize; -}DXFILELOADMEMORY, *LPDXFILELOADMEMORY; - -/* - * DirectX File object types. - */ - -#ifndef WIN_TYPES -#define WIN_TYPES(itype, ptype) typedef interface itype *LP##ptype, **LPLP##ptype -#endif - -WIN_TYPES(IDirectXFile, DIRECTXFILE); -WIN_TYPES(IDirectXFileEnumObject, DIRECTXFILEENUMOBJECT); -WIN_TYPES(IDirectXFileSaveObject, DIRECTXFILESAVEOBJECT); -WIN_TYPES(IDirectXFileObject, DIRECTXFILEOBJECT); -WIN_TYPES(IDirectXFileData, DIRECTXFILEDATA); -WIN_TYPES(IDirectXFileDataReference, DIRECTXFILEDATAREFERENCE); -WIN_TYPES(IDirectXFileBinary, DIRECTXFILEBINARY); - -/* - * API for creating IDirectXFile interface. - */ - -STDAPI DirectXFileCreate(LPDIRECTXFILE *lplpDirectXFile); - -/* - * The methods for IUnknown - */ - -#define IUNKNOWN_METHODS(kind) \ - STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) kind; \ - STDMETHOD_(ULONG, AddRef) (THIS) kind; \ - STDMETHOD_(ULONG, Release) (THIS) kind - -/* - * The methods for IDirectXFileObject - */ - -#define IDIRECTXFILEOBJECT_METHODS(kind) \ - STDMETHOD(GetName) (THIS_ LPSTR, LPDWORD) kind; \ - STDMETHOD(GetId) (THIS_ LPGUID) kind - -/* - * DirectX File interfaces. - */ - -#undef INTERFACE -#define INTERFACE IDirectXFile - -DECLARE_INTERFACE_(IDirectXFile, IUnknown) -{ - IUNKNOWN_METHODS(PURE); - STDMETHOD(CreateEnumObject) (THIS_ LPVOID, DXFILELOADOPTIONS, - LPDIRECTXFILEENUMOBJECT *) PURE; - STDMETHOD(CreateSaveObject) (THIS_ LPCSTR, DXFILEFORMAT, - LPDIRECTXFILESAVEOBJECT *) PURE; - STDMETHOD(RegisterTemplates) (THIS_ LPVOID, DWORD) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirectXFileEnumObject - -DECLARE_INTERFACE_(IDirectXFileEnumObject, IUnknown) -{ - IUNKNOWN_METHODS(PURE); - STDMETHOD(GetNextDataObject) (THIS_ LPDIRECTXFILEDATA *) PURE; - STDMETHOD(GetDataObjectById) (THIS_ REFGUID, LPDIRECTXFILEDATA *) PURE; - STDMETHOD(GetDataObjectByName) (THIS_ LPCSTR, LPDIRECTXFILEDATA *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirectXFileSaveObject - -DECLARE_INTERFACE_(IDirectXFileSaveObject, IUnknown) -{ - IUNKNOWN_METHODS(PURE); - STDMETHOD(SaveTemplates) (THIS_ DWORD, const GUID **) PURE; - STDMETHOD(CreateDataObject) (THIS_ REFGUID, LPCSTR, const GUID *, - DWORD, LPVOID, LPDIRECTXFILEDATA *) PURE; - STDMETHOD(SaveData) (THIS_ LPDIRECTXFILEDATA) PURE; -}; - - -#undef INTERFACE -#define INTERFACE IDirectXFileObject - -DECLARE_INTERFACE_(IDirectXFileObject, IUnknown) -{ - IUNKNOWN_METHODS(PURE); - IDIRECTXFILEOBJECT_METHODS(PURE); -}; - -#undef INTERFACE -#define INTERFACE IDirectXFileData - -DECLARE_INTERFACE_(IDirectXFileData, IDirectXFileObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECTXFILEOBJECT_METHODS(PURE); - - STDMETHOD(GetData) (THIS_ LPCSTR, DWORD *, void **) PURE; - STDMETHOD(GetType) (THIS_ const GUID **) PURE; - STDMETHOD(GetNextObject) (THIS_ LPDIRECTXFILEOBJECT *) PURE; - STDMETHOD(AddDataObject) (THIS_ LPDIRECTXFILEDATA) PURE; - STDMETHOD(AddDataReference) (THIS_ LPCSTR, const GUID *) PURE; - STDMETHOD(AddBinaryObject) (THIS_ LPCSTR, const GUID *, LPCSTR, LPVOID, DWORD) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirectXFileDataReference - -DECLARE_INTERFACE_(IDirectXFileDataReference, IDirectXFileObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECTXFILEOBJECT_METHODS(PURE); - - STDMETHOD(Resolve) (THIS_ LPDIRECTXFILEDATA *) PURE; -}; - -#undef INTERFACE -#define INTERFACE IDirectXFileBinary - -DECLARE_INTERFACE_(IDirectXFileBinary, IDirectXFileObject) -{ - IUNKNOWN_METHODS(PURE); - IDIRECTXFILEOBJECT_METHODS(PURE); - - STDMETHOD(GetSize) (THIS_ DWORD *) PURE; - STDMETHOD(GetMimeType) (THIS_ LPCSTR *) PURE; - STDMETHOD(Read) (THIS_ LPVOID, DWORD, LPDWORD) PURE; -}; - -/* - * DirectXFile Object Class Id (for CoCreateInstance()) - */ - -DEFINE_GUID(CLSID_CDirectXFile, 0x4516ec43, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3); - -/* - * DirectX File Interface GUIDs. - */ - -DEFINE_GUID(IID_IDirectXFile, 0x3d82ab40, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); -DEFINE_GUID(IID_IDirectXFileEnumObject, 0x3d82ab41, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); -DEFINE_GUID(IID_IDirectXFileSaveObject, 0x3d82ab42, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); -DEFINE_GUID(IID_IDirectXFileObject, 0x3d82ab43, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); -DEFINE_GUID(IID_IDirectXFileData, 0x3d82ab44, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); -DEFINE_GUID(IID_IDirectXFileDataReference, 0x3d82ab45, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); -DEFINE_GUID(IID_IDirectXFileBinary, 0x3d82ab46, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* - * DirectX File Header template's GUID. - */ - -DEFINE_GUID(TID_DXFILEHeader, 0x3d82ab43, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - - -/* - * DirectX File errors. - */ - -#define _FACDD 0x876 -#define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code ) - -#define DXFILE_OK 0 - -#define DXFILEERR_BADOBJECT MAKE_DDHRESULT(850) -#define DXFILEERR_BADVALUE MAKE_DDHRESULT(851) -#define DXFILEERR_BADTYPE MAKE_DDHRESULT(852) -#define DXFILEERR_BADSTREAMHANDLE MAKE_DDHRESULT(853) -#define DXFILEERR_BADALLOC MAKE_DDHRESULT(854) -#define DXFILEERR_NOTFOUND MAKE_DDHRESULT(855) -#define DXFILEERR_NOTDONEYET MAKE_DDHRESULT(856) -#define DXFILEERR_FILENOTFOUND MAKE_DDHRESULT(857) -#define DXFILEERR_RESOURCENOTFOUND MAKE_DDHRESULT(858) -#define DXFILEERR_URLNOTFOUND MAKE_DDHRESULT(859) -#define DXFILEERR_BADRESOURCE MAKE_DDHRESULT(860) -#define DXFILEERR_BADFILETYPE MAKE_DDHRESULT(861) -#define DXFILEERR_BADFILEVERSION MAKE_DDHRESULT(862) -#define DXFILEERR_BADFILEFLOATSIZE MAKE_DDHRESULT(863) -#define DXFILEERR_BADFILECOMPRESSIONTYPE MAKE_DDHRESULT(864) -#define DXFILEERR_BADFILE MAKE_DDHRESULT(865) -#define DXFILEERR_PARSEERROR MAKE_DDHRESULT(866) -#define DXFILEERR_NOTEMPLATE MAKE_DDHRESULT(867) -#define DXFILEERR_BADARRAYSIZE MAKE_DDHRESULT(868) -#define DXFILEERR_BADDATAREFERENCE MAKE_DDHRESULT(869) -#define DXFILEERR_INTERNALERROR MAKE_DDHRESULT(870) -#define DXFILEERR_NOMOREOBJECTS MAKE_DDHRESULT(871) -#define DXFILEERR_BADINTRINSICS MAKE_DDHRESULT(872) -#define DXFILEERR_NOMORESTREAMHANDLES MAKE_DDHRESULT(873) -#define DXFILEERR_NOMOREDATA MAKE_DDHRESULT(874) -#define DXFILEERR_BADCACHEFILE MAKE_DDHRESULT(875) -#define DXFILEERR_NOINTERNET MAKE_DDHRESULT(876) - - -#ifdef __cplusplus -}; -#endif - -#endif /* _DXFILE_H_ */ - \ No newline at end of file diff --git a/sdk/dx8sdk/Include/dxtrans.h b/sdk/dx8sdk/Include/dxtrans.h deleted file mode 100644 index 8df2ff77..00000000 --- a/sdk/dx8sdk/Include/dxtrans.h +++ /dev/null @@ -1,5362 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for dxtrans.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* verify that the version is high enough to compile this file*/ -#ifndef __REQUIRED_RPCNDR_H_VERSION__ -#define __REQUIRED_RPCNDR_H_VERSION__ 440 -#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 __dxtrans_h__ -#define __dxtrans_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IDXBaseObject_FWD_DEFINED__ -#define __IDXBaseObject_FWD_DEFINED__ -typedef interface IDXBaseObject IDXBaseObject; -#endif /* __IDXBaseObject_FWD_DEFINED__ */ - - -#ifndef __IDXTransformFactory_FWD_DEFINED__ -#define __IDXTransformFactory_FWD_DEFINED__ -typedef interface IDXTransformFactory IDXTransformFactory; -#endif /* __IDXTransformFactory_FWD_DEFINED__ */ - - -#ifndef __IDXTransform_FWD_DEFINED__ -#define __IDXTransform_FWD_DEFINED__ -typedef interface IDXTransform IDXTransform; -#endif /* __IDXTransform_FWD_DEFINED__ */ - - -#ifndef __IDXSurfacePick_FWD_DEFINED__ -#define __IDXSurfacePick_FWD_DEFINED__ -typedef interface IDXSurfacePick IDXSurfacePick; -#endif /* __IDXSurfacePick_FWD_DEFINED__ */ - - -#ifndef __IDXTBindHost_FWD_DEFINED__ -#define __IDXTBindHost_FWD_DEFINED__ -typedef interface IDXTBindHost IDXTBindHost; -#endif /* __IDXTBindHost_FWD_DEFINED__ */ - - -#ifndef __IDXTaskManager_FWD_DEFINED__ -#define __IDXTaskManager_FWD_DEFINED__ -typedef interface IDXTaskManager IDXTaskManager; -#endif /* __IDXTaskManager_FWD_DEFINED__ */ - - -#ifndef __IDXSurfaceFactory_FWD_DEFINED__ -#define __IDXSurfaceFactory_FWD_DEFINED__ -typedef interface IDXSurfaceFactory IDXSurfaceFactory; -#endif /* __IDXSurfaceFactory_FWD_DEFINED__ */ - - -#ifndef __IDXSurfaceModifier_FWD_DEFINED__ -#define __IDXSurfaceModifier_FWD_DEFINED__ -typedef interface IDXSurfaceModifier IDXSurfaceModifier; -#endif /* __IDXSurfaceModifier_FWD_DEFINED__ */ - - -#ifndef __IDXSurface_FWD_DEFINED__ -#define __IDXSurface_FWD_DEFINED__ -typedef interface IDXSurface IDXSurface; -#endif /* __IDXSurface_FWD_DEFINED__ */ - - -#ifndef __IDXSurfaceInit_FWD_DEFINED__ -#define __IDXSurfaceInit_FWD_DEFINED__ -typedef interface IDXSurfaceInit IDXSurfaceInit; -#endif /* __IDXSurfaceInit_FWD_DEFINED__ */ - - -#ifndef __IDXARGBSurfaceInit_FWD_DEFINED__ -#define __IDXARGBSurfaceInit_FWD_DEFINED__ -typedef interface IDXARGBSurfaceInit IDXARGBSurfaceInit; -#endif /* __IDXARGBSurfaceInit_FWD_DEFINED__ */ - - -#ifndef __IDXARGBReadPtr_FWD_DEFINED__ -#define __IDXARGBReadPtr_FWD_DEFINED__ -typedef interface IDXARGBReadPtr IDXARGBReadPtr; -#endif /* __IDXARGBReadPtr_FWD_DEFINED__ */ - - -#ifndef __IDXARGBReadWritePtr_FWD_DEFINED__ -#define __IDXARGBReadWritePtr_FWD_DEFINED__ -typedef interface IDXARGBReadWritePtr IDXARGBReadWritePtr; -#endif /* __IDXARGBReadWritePtr_FWD_DEFINED__ */ - - -#ifndef __IDXDCLock_FWD_DEFINED__ -#define __IDXDCLock_FWD_DEFINED__ -typedef interface IDXDCLock IDXDCLock; -#endif /* __IDXDCLock_FWD_DEFINED__ */ - - -#ifndef __IDXTScaleOutput_FWD_DEFINED__ -#define __IDXTScaleOutput_FWD_DEFINED__ -typedef interface IDXTScaleOutput IDXTScaleOutput; -#endif /* __IDXTScaleOutput_FWD_DEFINED__ */ - - -#ifndef __IDXGradient_FWD_DEFINED__ -#define __IDXGradient_FWD_DEFINED__ -typedef interface IDXGradient IDXGradient; -#endif /* __IDXGradient_FWD_DEFINED__ */ - - -#ifndef __IDXTScale_FWD_DEFINED__ -#define __IDXTScale_FWD_DEFINED__ -typedef interface IDXTScale IDXTScale; -#endif /* __IDXTScale_FWD_DEFINED__ */ - - -#ifndef __IDXEffect_FWD_DEFINED__ -#define __IDXEffect_FWD_DEFINED__ -typedef interface IDXEffect IDXEffect; -#endif /* __IDXEffect_FWD_DEFINED__ */ - - -#ifndef __IDXLookupTable_FWD_DEFINED__ -#define __IDXLookupTable_FWD_DEFINED__ -typedef interface IDXLookupTable IDXLookupTable; -#endif /* __IDXLookupTable_FWD_DEFINED__ */ - - -#ifndef __IDXRawSurface_FWD_DEFINED__ -#define __IDXRawSurface_FWD_DEFINED__ -typedef interface IDXRawSurface IDXRawSurface; -#endif /* __IDXRawSurface_FWD_DEFINED__ */ - - -#ifndef __IHTMLDXTransform_FWD_DEFINED__ -#define __IHTMLDXTransform_FWD_DEFINED__ -typedef interface IHTMLDXTransform IHTMLDXTransform; -#endif /* __IHTMLDXTransform_FWD_DEFINED__ */ - - -#ifndef __ICSSFilterDispatch_FWD_DEFINED__ -#define __ICSSFilterDispatch_FWD_DEFINED__ -typedef interface ICSSFilterDispatch ICSSFilterDispatch; -#endif /* __ICSSFilterDispatch_FWD_DEFINED__ */ - - -#ifndef __DXTransformFactory_FWD_DEFINED__ -#define __DXTransformFactory_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DXTransformFactory DXTransformFactory; -#else -typedef struct DXTransformFactory DXTransformFactory; -#endif /* __cplusplus */ - -#endif /* __DXTransformFactory_FWD_DEFINED__ */ - - -#ifndef __DXTaskManager_FWD_DEFINED__ -#define __DXTaskManager_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DXTaskManager DXTaskManager; -#else -typedef struct DXTaskManager DXTaskManager; -#endif /* __cplusplus */ - -#endif /* __DXTaskManager_FWD_DEFINED__ */ - - -#ifndef __DXTScale_FWD_DEFINED__ -#define __DXTScale_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DXTScale DXTScale; -#else -typedef struct DXTScale DXTScale; -#endif /* __cplusplus */ - -#endif /* __DXTScale_FWD_DEFINED__ */ - - -#ifndef __DXSurface_FWD_DEFINED__ -#define __DXSurface_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DXSurface DXSurface; -#else -typedef struct DXSurface DXSurface; -#endif /* __cplusplus */ - -#endif /* __DXSurface_FWD_DEFINED__ */ - - -#ifndef __DXSurfaceModifier_FWD_DEFINED__ -#define __DXSurfaceModifier_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DXSurfaceModifier DXSurfaceModifier; -#else -typedef struct DXSurfaceModifier DXSurfaceModifier; -#endif /* __cplusplus */ - -#endif /* __DXSurfaceModifier_FWD_DEFINED__ */ - - -#ifndef __DXGradient_FWD_DEFINED__ -#define __DXGradient_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DXGradient DXGradient; -#else -typedef struct DXGradient DXGradient; -#endif /* __cplusplus */ - -#endif /* __DXGradient_FWD_DEFINED__ */ - - -#ifndef __DXTFilter_FWD_DEFINED__ -#define __DXTFilter_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DXTFilter DXTFilter; -#else -typedef struct DXTFilter DXTFilter; -#endif /* __cplusplus */ - -#endif /* __DXTFilter_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "oaidl.h" -#include "ocidl.h" -#include "comcat.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_dxtrans_0000 */ -/* [local] */ - -#include -#include -#include -#include -#include -#if 0 -// Bogus definition used to make MIDL compiler happy -typedef void DDSURFACEDESC; - -typedef void D3DRMBOX; - -typedef void D3DVECTOR; - -typedef void D3DRMMATRIX4D; - -typedef void *LPSECURITY_ATTRIBUTES; - -#endif -#ifdef _DXTRANSIMPL - #define _DXTRANS_IMPL_EXT _declspec(dllexport) -#else - #define _DXTRANS_IMPL_EXT _declspec(dllimport) -#endif - - - - - - - - - - - - - - - - -// -// All GUIDs for DXTransform are declared in DXTGUID.C in the SDK include directory -// -EXTERN_C const GUID DDPF_RGB1; -EXTERN_C const GUID DDPF_RGB2; -EXTERN_C const GUID DDPF_RGB4; -EXTERN_C const GUID DDPF_RGB8; -EXTERN_C const GUID DDPF_RGB332; -EXTERN_C const GUID DDPF_ARGB4444; -EXTERN_C const GUID DDPF_RGB565; -EXTERN_C const GUID DDPF_BGR565; -EXTERN_C const GUID DDPF_RGB555; -EXTERN_C const GUID DDPF_ARGB1555; -EXTERN_C const GUID DDPF_RGB24; -EXTERN_C const GUID DDPF_BGR24; -EXTERN_C const GUID DDPF_RGB32; -EXTERN_C const GUID DDPF_BGR32; -EXTERN_C const GUID DDPF_ABGR32; -EXTERN_C const GUID DDPF_ARGB32; -EXTERN_C const GUID DDPF_PMARGB32; -EXTERN_C const GUID DDPF_A1; -EXTERN_C const GUID DDPF_A2; -EXTERN_C const GUID DDPF_A4; -EXTERN_C const GUID DDPF_A8; -EXTERN_C const GUID DDPF_Z8; -EXTERN_C const GUID DDPF_Z16; -EXTERN_C const GUID DDPF_Z24; -EXTERN_C const GUID DDPF_Z32; -// -// Component categories -// -EXTERN_C const GUID CATID_DXImageTransform; -EXTERN_C const GUID CATID_DX3DTransform; -EXTERN_C const GUID CATID_DXAuthoringTransform; -EXTERN_C const GUID CATID_DXSurface; -// -// Service IDs -// -EXTERN_C const GUID SID_SDirectDraw; -EXTERN_C const GUID SID_SDirect3DRM; -#define SID_SDXTaskManager CLSID_DXTaskManager -#define SID_SDXSurfaceFactory IID_IDXSurfaceFactory -#define SID_SDXTransformFactory IID_IDXTransformFactory -// -// DXTransforms Core Type Library Version Info -// -#define DXTRANS_TLB_MAJOR_VER 1 -#define DXTRANS_TLB_MINOR_VER 1 - - -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0000_v0_0_s_ifspec; - -#ifndef __IDXBaseObject_INTERFACE_DEFINED__ -#define __IDXBaseObject_INTERFACE_DEFINED__ - -/* interface IDXBaseObject */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXBaseObject; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("17B59B2B-9CC8-11d1-9053-00C04FD9189D") - IDXBaseObject : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetGenerationId( - /* [out] */ ULONG *pID) = 0; - - virtual HRESULT STDMETHODCALLTYPE IncrementGenerationId( - /* [in] */ BOOL bRefresh) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetObjectSize( - /* [out] */ ULONG *pcbSize) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXBaseObjectVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXBaseObject * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXBaseObject * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXBaseObject * This); - - HRESULT ( STDMETHODCALLTYPE *GetGenerationId )( - IDXBaseObject * This, - /* [out] */ ULONG *pID); - - HRESULT ( STDMETHODCALLTYPE *IncrementGenerationId )( - IDXBaseObject * This, - /* [in] */ BOOL bRefresh); - - HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( - IDXBaseObject * This, - /* [out] */ ULONG *pcbSize); - - END_INTERFACE - } IDXBaseObjectVtbl; - - interface IDXBaseObject - { - CONST_VTBL struct IDXBaseObjectVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXBaseObject_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXBaseObject_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXBaseObject_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXBaseObject_GetGenerationId(This,pID) \ - (This)->lpVtbl -> GetGenerationId(This,pID) - -#define IDXBaseObject_IncrementGenerationId(This,bRefresh) \ - (This)->lpVtbl -> IncrementGenerationId(This,bRefresh) - -#define IDXBaseObject_GetObjectSize(This,pcbSize) \ - (This)->lpVtbl -> GetObjectSize(This,pcbSize) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXBaseObject_GetGenerationId_Proxy( - IDXBaseObject * This, - /* [out] */ ULONG *pID); - - -void __RPC_STUB IDXBaseObject_GetGenerationId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXBaseObject_IncrementGenerationId_Proxy( - IDXBaseObject * This, - /* [in] */ BOOL bRefresh); - - -void __RPC_STUB IDXBaseObject_IncrementGenerationId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXBaseObject_GetObjectSize_Proxy( - IDXBaseObject * This, - /* [out] */ ULONG *pcbSize); - - -void __RPC_STUB IDXBaseObject_GetObjectSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXBaseObject_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_dxtrans_0260 */ -/* [local] */ - -typedef -enum DXBNDID - { DXB_X = 0, - DXB_Y = 1, - DXB_Z = 2, - DXB_T = 3 - } DXBNDID; - -typedef -enum DXBNDTYPE - { DXBT_DISCRETE = 0, - DXBT_DISCRETE64 = DXBT_DISCRETE + 1, - DXBT_CONTINUOUS = DXBT_DISCRETE64 + 1, - DXBT_CONTINUOUS64 = DXBT_CONTINUOUS + 1 - } DXBNDTYPE; - -typedef struct DXDBND - { - long Min; - long Max; - } DXDBND; - -typedef DXDBND DXDBNDS[ 4 ]; - -typedef struct DXDBND64 - { - LONGLONG Min; - LONGLONG Max; - } DXDBND64; - -typedef DXDBND64 DXDBNDS64[ 4 ]; - -typedef struct DXCBND - { - float Min; - float Max; - } DXCBND; - -typedef DXCBND DXCBNDS[ 4 ]; - -typedef struct DXCBND64 - { - double Min; - double Max; - } DXCBND64; - -typedef DXCBND64 DXCBNDS64[ 4 ]; - -typedef struct DXBNDS - { - DXBNDTYPE eType; - /* [switch_is] */ /* [switch_type] */ union __MIDL___MIDL_itf_dxtrans_0260_0001 - { - /* [case()] */ DXDBND D[ 4 ]; - /* [case()] */ DXDBND64 LD[ 4 ]; - /* [case()] */ DXCBND C[ 4 ]; - /* [case()] */ DXCBND64 LC[ 4 ]; - } u; - } DXBNDS; - -typedef long DXDVEC[ 4 ]; - -typedef LONGLONG DXDVEC64[ 4 ]; - -typedef float DXCVEC[ 4 ]; - -typedef double DXCVEC64[ 4 ]; - -typedef struct DXVEC - { - DXBNDTYPE eType; - /* [switch_is] */ /* [switch_type] */ union __MIDL___MIDL_itf_dxtrans_0260_0002 - { - /* [case()] */ long D[ 4 ]; - /* [case()] */ LONGLONG LD[ 4 ]; - /* [case()] */ float C[ 4 ]; - /* [case()] */ double LC[ 4 ]; - } u; - } DXVEC; - - - -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0260_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0260_v0_0_s_ifspec; - -#ifndef __IDXTransformFactory_INTERFACE_DEFINED__ -#define __IDXTransformFactory_INTERFACE_DEFINED__ - -/* interface IDXTransformFactory */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXTransformFactory; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("6A950B2B-A971-11d1-81C8-0000F87557DB") - IDXTransformFactory : public IServiceProvider - { - public: - virtual HRESULT STDMETHODCALLTYPE SetService( - /* [in] */ REFGUID guidService, - /* [in] */ IUnknown *pUnkService, - /* [in] */ BOOL bWeakReference) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateTransform( - /* [size_is][in] */ IUnknown **punkInputs, - /* [in] */ ULONG ulNumInputs, - /* [size_is][in] */ IUnknown **punkOutputs, - /* [in] */ ULONG ulNumOutputs, - /* [in] */ IPropertyBag *pInitProps, - /* [in] */ IErrorLog *pErrLog, - /* [in] */ REFCLSID TransCLSID, - /* [in] */ REFIID TransIID, - /* [iid_is][out] */ void **ppTransform) = 0; - - virtual HRESULT STDMETHODCALLTYPE InitializeTransform( - /* [in] */ IDXTransform *pTransform, - /* [size_is][in] */ IUnknown **punkInputs, - /* [in] */ ULONG ulNumInputs, - /* [size_is][in] */ IUnknown **punkOutputs, - /* [in] */ ULONG ulNumOutputs, - /* [in] */ IPropertyBag *pInitProps, - /* [in] */ IErrorLog *pErrLog) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXTransformFactoryVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXTransformFactory * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXTransformFactory * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXTransformFactory * This); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *QueryService )( - IDXTransformFactory * This, - /* [in] */ REFGUID guidService, - /* [in] */ REFIID riid, - /* [out] */ void **ppvObject); - - HRESULT ( STDMETHODCALLTYPE *SetService )( - IDXTransformFactory * This, - /* [in] */ REFGUID guidService, - /* [in] */ IUnknown *pUnkService, - /* [in] */ BOOL bWeakReference); - - HRESULT ( STDMETHODCALLTYPE *CreateTransform )( - IDXTransformFactory * This, - /* [size_is][in] */ IUnknown **punkInputs, - /* [in] */ ULONG ulNumInputs, - /* [size_is][in] */ IUnknown **punkOutputs, - /* [in] */ ULONG ulNumOutputs, - /* [in] */ IPropertyBag *pInitProps, - /* [in] */ IErrorLog *pErrLog, - /* [in] */ REFCLSID TransCLSID, - /* [in] */ REFIID TransIID, - /* [iid_is][out] */ void **ppTransform); - - HRESULT ( STDMETHODCALLTYPE *InitializeTransform )( - IDXTransformFactory * This, - /* [in] */ IDXTransform *pTransform, - /* [size_is][in] */ IUnknown **punkInputs, - /* [in] */ ULONG ulNumInputs, - /* [size_is][in] */ IUnknown **punkOutputs, - /* [in] */ ULONG ulNumOutputs, - /* [in] */ IPropertyBag *pInitProps, - /* [in] */ IErrorLog *pErrLog); - - END_INTERFACE - } IDXTransformFactoryVtbl; - - interface IDXTransformFactory - { - CONST_VTBL struct IDXTransformFactoryVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXTransformFactory_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXTransformFactory_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXTransformFactory_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXTransformFactory_QueryService(This,guidService,riid,ppvObject) \ - (This)->lpVtbl -> QueryService(This,guidService,riid,ppvObject) - - -#define IDXTransformFactory_SetService(This,guidService,pUnkService,bWeakReference) \ - (This)->lpVtbl -> SetService(This,guidService,pUnkService,bWeakReference) - -#define IDXTransformFactory_CreateTransform(This,punkInputs,ulNumInputs,punkOutputs,ulNumOutputs,pInitProps,pErrLog,TransCLSID,TransIID,ppTransform) \ - (This)->lpVtbl -> CreateTransform(This,punkInputs,ulNumInputs,punkOutputs,ulNumOutputs,pInitProps,pErrLog,TransCLSID,TransIID,ppTransform) - -#define IDXTransformFactory_InitializeTransform(This,pTransform,punkInputs,ulNumInputs,punkOutputs,ulNumOutputs,pInitProps,pErrLog) \ - (This)->lpVtbl -> InitializeTransform(This,pTransform,punkInputs,ulNumInputs,punkOutputs,ulNumOutputs,pInitProps,pErrLog) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXTransformFactory_SetService_Proxy( - IDXTransformFactory * This, - /* [in] */ REFGUID guidService, - /* [in] */ IUnknown *pUnkService, - /* [in] */ BOOL bWeakReference); - - -void __RPC_STUB IDXTransformFactory_SetService_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTransformFactory_CreateTransform_Proxy( - IDXTransformFactory * This, - /* [size_is][in] */ IUnknown **punkInputs, - /* [in] */ ULONG ulNumInputs, - /* [size_is][in] */ IUnknown **punkOutputs, - /* [in] */ ULONG ulNumOutputs, - /* [in] */ IPropertyBag *pInitProps, - /* [in] */ IErrorLog *pErrLog, - /* [in] */ REFCLSID TransCLSID, - /* [in] */ REFIID TransIID, - /* [iid_is][out] */ void **ppTransform); - - -void __RPC_STUB IDXTransformFactory_CreateTransform_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTransformFactory_InitializeTransform_Proxy( - IDXTransformFactory * This, - /* [in] */ IDXTransform *pTransform, - /* [size_is][in] */ IUnknown **punkInputs, - /* [in] */ ULONG ulNumInputs, - /* [size_is][in] */ IUnknown **punkOutputs, - /* [in] */ ULONG ulNumOutputs, - /* [in] */ IPropertyBag *pInitProps, - /* [in] */ IErrorLog *pErrLog); - - -void __RPC_STUB IDXTransformFactory_InitializeTransform_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXTransformFactory_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_dxtrans_0261 */ -/* [local] */ - -typedef -enum DXTMISCFLAGS - { DXTMF_BLEND_WITH_OUTPUT = 1L << 0, - DXTMF_DITHER_OUTPUT = 1L << 1, - DXTMF_OPTION_MASK = 0xffff, - DXTMF_VALID_OPTIONS = DXTMF_BLEND_WITH_OUTPUT | DXTMF_DITHER_OUTPUT, - DXTMF_BLEND_SUPPORTED = 1L << 16, - DXTMF_DITHER_SUPPORTED = 1L << 17, - DXTMF_INPLACE_OPERATION = 1L << 24, - DXTMF_BOUNDS_SUPPORTED = 1L << 25, - DXTMF_PLACEMENT_SUPPORTED = 1L << 26, - DXTMF_QUALITY_SUPPORTED = 1L << 27, - DXTMF_OPAQUE_RESULT = 1L << 28 - } DXTMISCFLAGS; - -typedef -enum DXINOUTINFOFLAGS - { DXINOUTF_OPTIONAL = 1L << 0 - } DXINOUTINFOFLAGS; - - - -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0261_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0261_v0_0_s_ifspec; - -#ifndef __IDXTransform_INTERFACE_DEFINED__ -#define __IDXTransform_INTERFACE_DEFINED__ - -/* interface IDXTransform */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXTransform; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("30A5FB78-E11F-11d1-9064-00C04FD9189D") - IDXTransform : public IDXBaseObject - { - public: - virtual HRESULT STDMETHODCALLTYPE Setup( - /* [size_is][in] */ IUnknown *const *punkInputs, - /* [in] */ ULONG ulNumInputs, - /* [size_is][in] */ IUnknown *const *punkOutputs, - /* [in] */ ULONG ulNumOutputs, - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Execute( - /* [in] */ const GUID *pRequestID, - /* [in] */ const DXBNDS *pClipBnds, - /* [in] */ const DXVEC *pPlacement) = 0; - - virtual HRESULT STDMETHODCALLTYPE MapBoundsIn2Out( - /* [in] */ const DXBNDS *pInBounds, - /* [in] */ ULONG ulNumInBnds, - /* [in] */ ULONG ulOutIndex, - /* [out] */ DXBNDS *pOutBounds) = 0; - - virtual HRESULT STDMETHODCALLTYPE MapBoundsOut2In( - /* [in] */ ULONG ulOutIndex, - /* [in] */ const DXBNDS *pOutBounds, - /* [in] */ ULONG ulInIndex, - /* [out] */ DXBNDS *pInBounds) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMiscFlags( - /* [in] */ DWORD dwMiscFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMiscFlags( - /* [out] */ DWORD *pdwMiscFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInOutInfo( - /* [in] */ BOOL bIsOutput, - /* [in] */ ULONG ulIndex, - /* [out] */ DWORD *pdwFlags, - /* [size_is][out] */ GUID *pIDs, - /* [out][in] */ ULONG *pcIDs, - /* [out] */ IUnknown **ppUnkCurrentObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetQuality( - /* [in] */ float fQuality) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetQuality( - /* [out] */ float *fQuality) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXTransformVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXTransform * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXTransform * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXTransform * This); - - HRESULT ( STDMETHODCALLTYPE *GetGenerationId )( - IDXTransform * This, - /* [out] */ ULONG *pID); - - HRESULT ( STDMETHODCALLTYPE *IncrementGenerationId )( - IDXTransform * This, - /* [in] */ BOOL bRefresh); - - HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( - IDXTransform * This, - /* [out] */ ULONG *pcbSize); - - HRESULT ( STDMETHODCALLTYPE *Setup )( - IDXTransform * This, - /* [size_is][in] */ IUnknown *const *punkInputs, - /* [in] */ ULONG ulNumInputs, - /* [size_is][in] */ IUnknown *const *punkOutputs, - /* [in] */ ULONG ulNumOutputs, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *Execute )( - IDXTransform * This, - /* [in] */ const GUID *pRequestID, - /* [in] */ const DXBNDS *pClipBnds, - /* [in] */ const DXVEC *pPlacement); - - HRESULT ( STDMETHODCALLTYPE *MapBoundsIn2Out )( - IDXTransform * This, - /* [in] */ const DXBNDS *pInBounds, - /* [in] */ ULONG ulNumInBnds, - /* [in] */ ULONG ulOutIndex, - /* [out] */ DXBNDS *pOutBounds); - - HRESULT ( STDMETHODCALLTYPE *MapBoundsOut2In )( - IDXTransform * This, - /* [in] */ ULONG ulOutIndex, - /* [in] */ const DXBNDS *pOutBounds, - /* [in] */ ULONG ulInIndex, - /* [out] */ DXBNDS *pInBounds); - - HRESULT ( STDMETHODCALLTYPE *SetMiscFlags )( - IDXTransform * This, - /* [in] */ DWORD dwMiscFlags); - - HRESULT ( STDMETHODCALLTYPE *GetMiscFlags )( - IDXTransform * This, - /* [out] */ DWORD *pdwMiscFlags); - - HRESULT ( STDMETHODCALLTYPE *GetInOutInfo )( - IDXTransform * This, - /* [in] */ BOOL bIsOutput, - /* [in] */ ULONG ulIndex, - /* [out] */ DWORD *pdwFlags, - /* [size_is][out] */ GUID *pIDs, - /* [out][in] */ ULONG *pcIDs, - /* [out] */ IUnknown **ppUnkCurrentObject); - - HRESULT ( STDMETHODCALLTYPE *SetQuality )( - IDXTransform * This, - /* [in] */ float fQuality); - - HRESULT ( STDMETHODCALLTYPE *GetQuality )( - IDXTransform * This, - /* [out] */ float *fQuality); - - END_INTERFACE - } IDXTransformVtbl; - - interface IDXTransform - { - CONST_VTBL struct IDXTransformVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXTransform_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXTransform_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXTransform_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXTransform_GetGenerationId(This,pID) \ - (This)->lpVtbl -> GetGenerationId(This,pID) - -#define IDXTransform_IncrementGenerationId(This,bRefresh) \ - (This)->lpVtbl -> IncrementGenerationId(This,bRefresh) - -#define IDXTransform_GetObjectSize(This,pcbSize) \ - (This)->lpVtbl -> GetObjectSize(This,pcbSize) - - -#define IDXTransform_Setup(This,punkInputs,ulNumInputs,punkOutputs,ulNumOutputs,dwFlags) \ - (This)->lpVtbl -> Setup(This,punkInputs,ulNumInputs,punkOutputs,ulNumOutputs,dwFlags) - -#define IDXTransform_Execute(This,pRequestID,pClipBnds,pPlacement) \ - (This)->lpVtbl -> Execute(This,pRequestID,pClipBnds,pPlacement) - -#define IDXTransform_MapBoundsIn2Out(This,pInBounds,ulNumInBnds,ulOutIndex,pOutBounds) \ - (This)->lpVtbl -> MapBoundsIn2Out(This,pInBounds,ulNumInBnds,ulOutIndex,pOutBounds) - -#define IDXTransform_MapBoundsOut2In(This,ulOutIndex,pOutBounds,ulInIndex,pInBounds) \ - (This)->lpVtbl -> MapBoundsOut2In(This,ulOutIndex,pOutBounds,ulInIndex,pInBounds) - -#define IDXTransform_SetMiscFlags(This,dwMiscFlags) \ - (This)->lpVtbl -> SetMiscFlags(This,dwMiscFlags) - -#define IDXTransform_GetMiscFlags(This,pdwMiscFlags) \ - (This)->lpVtbl -> GetMiscFlags(This,pdwMiscFlags) - -#define IDXTransform_GetInOutInfo(This,bIsOutput,ulIndex,pdwFlags,pIDs,pcIDs,ppUnkCurrentObject) \ - (This)->lpVtbl -> GetInOutInfo(This,bIsOutput,ulIndex,pdwFlags,pIDs,pcIDs,ppUnkCurrentObject) - -#define IDXTransform_SetQuality(This,fQuality) \ - (This)->lpVtbl -> SetQuality(This,fQuality) - -#define IDXTransform_GetQuality(This,fQuality) \ - (This)->lpVtbl -> GetQuality(This,fQuality) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXTransform_Setup_Proxy( - IDXTransform * This, - /* [size_is][in] */ IUnknown *const *punkInputs, - /* [in] */ ULONG ulNumInputs, - /* [size_is][in] */ IUnknown *const *punkOutputs, - /* [in] */ ULONG ulNumOutputs, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IDXTransform_Setup_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTransform_Execute_Proxy( - IDXTransform * This, - /* [in] */ const GUID *pRequestID, - /* [in] */ const DXBNDS *pClipBnds, - /* [in] */ const DXVEC *pPlacement); - - -void __RPC_STUB IDXTransform_Execute_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTransform_MapBoundsIn2Out_Proxy( - IDXTransform * This, - /* [in] */ const DXBNDS *pInBounds, - /* [in] */ ULONG ulNumInBnds, - /* [in] */ ULONG ulOutIndex, - /* [out] */ DXBNDS *pOutBounds); - - -void __RPC_STUB IDXTransform_MapBoundsIn2Out_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTransform_MapBoundsOut2In_Proxy( - IDXTransform * This, - /* [in] */ ULONG ulOutIndex, - /* [in] */ const DXBNDS *pOutBounds, - /* [in] */ ULONG ulInIndex, - /* [out] */ DXBNDS *pInBounds); - - -void __RPC_STUB IDXTransform_MapBoundsOut2In_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTransform_SetMiscFlags_Proxy( - IDXTransform * This, - /* [in] */ DWORD dwMiscFlags); - - -void __RPC_STUB IDXTransform_SetMiscFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTransform_GetMiscFlags_Proxy( - IDXTransform * This, - /* [out] */ DWORD *pdwMiscFlags); - - -void __RPC_STUB IDXTransform_GetMiscFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTransform_GetInOutInfo_Proxy( - IDXTransform * This, - /* [in] */ BOOL bIsOutput, - /* [in] */ ULONG ulIndex, - /* [out] */ DWORD *pdwFlags, - /* [size_is][out] */ GUID *pIDs, - /* [out][in] */ ULONG *pcIDs, - /* [out] */ IUnknown **ppUnkCurrentObject); - - -void __RPC_STUB IDXTransform_GetInOutInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTransform_SetQuality_Proxy( - IDXTransform * This, - /* [in] */ float fQuality); - - -void __RPC_STUB IDXTransform_SetQuality_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTransform_GetQuality_Proxy( - IDXTransform * This, - /* [out] */ float *fQuality); - - -void __RPC_STUB IDXTransform_GetQuality_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXTransform_INTERFACE_DEFINED__ */ - - -#ifndef __IDXSurfacePick_INTERFACE_DEFINED__ -#define __IDXSurfacePick_INTERFACE_DEFINED__ - -/* interface IDXSurfacePick */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXSurfacePick; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("30A5FB79-E11F-11d1-9064-00C04FD9189D") - IDXSurfacePick : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE PointPick( - /* [in] */ const DXVEC *pPoint, - /* [out] */ ULONG *pulInputSurfaceIndex, - /* [out] */ DXVEC *pInputPoint) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXSurfacePickVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXSurfacePick * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXSurfacePick * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXSurfacePick * This); - - HRESULT ( STDMETHODCALLTYPE *PointPick )( - IDXSurfacePick * This, - /* [in] */ const DXVEC *pPoint, - /* [out] */ ULONG *pulInputSurfaceIndex, - /* [out] */ DXVEC *pInputPoint); - - END_INTERFACE - } IDXSurfacePickVtbl; - - interface IDXSurfacePick - { - CONST_VTBL struct IDXSurfacePickVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXSurfacePick_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXSurfacePick_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXSurfacePick_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXSurfacePick_PointPick(This,pPoint,pulInputSurfaceIndex,pInputPoint) \ - (This)->lpVtbl -> PointPick(This,pPoint,pulInputSurfaceIndex,pInputPoint) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXSurfacePick_PointPick_Proxy( - IDXSurfacePick * This, - /* [in] */ const DXVEC *pPoint, - /* [out] */ ULONG *pulInputSurfaceIndex, - /* [out] */ DXVEC *pInputPoint); - - -void __RPC_STUB IDXSurfacePick_PointPick_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXSurfacePick_INTERFACE_DEFINED__ */ - - -#ifndef __IDXTBindHost_INTERFACE_DEFINED__ -#define __IDXTBindHost_INTERFACE_DEFINED__ - -/* interface IDXTBindHost */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXTBindHost; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("D26BCE55-E9DC-11d1-9066-00C04FD9189D") - IDXTBindHost : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetBindHost( - /* [in] */ IBindHost *pBindHost) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXTBindHostVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXTBindHost * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXTBindHost * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXTBindHost * This); - - HRESULT ( STDMETHODCALLTYPE *SetBindHost )( - IDXTBindHost * This, - /* [in] */ IBindHost *pBindHost); - - END_INTERFACE - } IDXTBindHostVtbl; - - interface IDXTBindHost - { - CONST_VTBL struct IDXTBindHostVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXTBindHost_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXTBindHost_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXTBindHost_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXTBindHost_SetBindHost(This,pBindHost) \ - (This)->lpVtbl -> SetBindHost(This,pBindHost) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXTBindHost_SetBindHost_Proxy( - IDXTBindHost * This, - /* [in] */ IBindHost *pBindHost); - - -void __RPC_STUB IDXTBindHost_SetBindHost_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXTBindHost_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_dxtrans_0264 */ -/* [local] */ - -typedef void __stdcall __stdcall DXTASKPROC( - void *pTaskData, - BOOL *pbContinueProcessing); - -typedef DXTASKPROC *PFNDXTASKPROC; - -typedef void __stdcall __stdcall DXAPCPROC( - DWORD dwData); - -typedef DXAPCPROC *PFNDXAPCPROC; - -#ifdef __cplusplus -typedef struct DXTMTASKINFO -{ - PFNDXTASKPROC pfnTaskProc; // Pointer to function to execute - PVOID pTaskData; // Pointer to argument data - PFNDXAPCPROC pfnCompletionAPC; // Pointer to completion APC proc - DWORD dwCompletionData; // Pointer to APC proc data - const GUID* pRequestID; // Used to identify groups of tasks -} DXTMTASKINFO; -#else -typedef struct DXTMTASKINFO - { - PVOID pfnTaskProc; - PVOID pTaskData; - PVOID pfnCompletionAPC; - DWORD dwCompletionData; - const GUID *pRequestID; - } DXTMTASKINFO; - -#endif - - -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0264_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0264_v0_0_s_ifspec; - -#ifndef __IDXTaskManager_INTERFACE_DEFINED__ -#define __IDXTaskManager_INTERFACE_DEFINED__ - -/* interface IDXTaskManager */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXTaskManager; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("254DBBC1-F922-11d0-883A-3C8B00C10000") - IDXTaskManager : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE QueryNumProcessors( - /* [out] */ ULONG *pulNumProc) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetThreadPoolSize( - /* [in] */ ULONG ulNumThreads) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetThreadPoolSize( - /* [out] */ ULONG *pulNumThreads) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetConcurrencyLimit( - /* [in] */ ULONG ulNumThreads) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetConcurrencyLimit( - /* [out] */ ULONG *pulNumThreads) = 0; - - virtual HRESULT STDMETHODCALLTYPE ScheduleTasks( - /* [in] */ DXTMTASKINFO TaskInfo[ ], - /* [in] */ HANDLE Events[ ], - /* [out] */ DWORD TaskIDs[ ], - /* [in] */ ULONG ulNumTasks, - /* [in] */ ULONG ulWaitPeriod) = 0; - - virtual HRESULT STDMETHODCALLTYPE TerminateTasks( - /* [in] */ DWORD TaskIDs[ ], - /* [in] */ ULONG ulCount, - /* [in] */ ULONG ulTimeOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE TerminateRequest( - /* [in] */ REFIID RequestID, - /* [in] */ ULONG ulTimeOut) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXTaskManagerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXTaskManager * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXTaskManager * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXTaskManager * This); - - HRESULT ( STDMETHODCALLTYPE *QueryNumProcessors )( - IDXTaskManager * This, - /* [out] */ ULONG *pulNumProc); - - HRESULT ( STDMETHODCALLTYPE *SetThreadPoolSize )( - IDXTaskManager * This, - /* [in] */ ULONG ulNumThreads); - - HRESULT ( STDMETHODCALLTYPE *GetThreadPoolSize )( - IDXTaskManager * This, - /* [out] */ ULONG *pulNumThreads); - - HRESULT ( STDMETHODCALLTYPE *SetConcurrencyLimit )( - IDXTaskManager * This, - /* [in] */ ULONG ulNumThreads); - - HRESULT ( STDMETHODCALLTYPE *GetConcurrencyLimit )( - IDXTaskManager * This, - /* [out] */ ULONG *pulNumThreads); - - HRESULT ( STDMETHODCALLTYPE *ScheduleTasks )( - IDXTaskManager * This, - /* [in] */ DXTMTASKINFO TaskInfo[ ], - /* [in] */ HANDLE Events[ ], - /* [out] */ DWORD TaskIDs[ ], - /* [in] */ ULONG ulNumTasks, - /* [in] */ ULONG ulWaitPeriod); - - HRESULT ( STDMETHODCALLTYPE *TerminateTasks )( - IDXTaskManager * This, - /* [in] */ DWORD TaskIDs[ ], - /* [in] */ ULONG ulCount, - /* [in] */ ULONG ulTimeOut); - - HRESULT ( STDMETHODCALLTYPE *TerminateRequest )( - IDXTaskManager * This, - /* [in] */ REFIID RequestID, - /* [in] */ ULONG ulTimeOut); - - END_INTERFACE - } IDXTaskManagerVtbl; - - interface IDXTaskManager - { - CONST_VTBL struct IDXTaskManagerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXTaskManager_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXTaskManager_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXTaskManager_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXTaskManager_QueryNumProcessors(This,pulNumProc) \ - (This)->lpVtbl -> QueryNumProcessors(This,pulNumProc) - -#define IDXTaskManager_SetThreadPoolSize(This,ulNumThreads) \ - (This)->lpVtbl -> SetThreadPoolSize(This,ulNumThreads) - -#define IDXTaskManager_GetThreadPoolSize(This,pulNumThreads) \ - (This)->lpVtbl -> GetThreadPoolSize(This,pulNumThreads) - -#define IDXTaskManager_SetConcurrencyLimit(This,ulNumThreads) \ - (This)->lpVtbl -> SetConcurrencyLimit(This,ulNumThreads) - -#define IDXTaskManager_GetConcurrencyLimit(This,pulNumThreads) \ - (This)->lpVtbl -> GetConcurrencyLimit(This,pulNumThreads) - -#define IDXTaskManager_ScheduleTasks(This,TaskInfo,Events,TaskIDs,ulNumTasks,ulWaitPeriod) \ - (This)->lpVtbl -> ScheduleTasks(This,TaskInfo,Events,TaskIDs,ulNumTasks,ulWaitPeriod) - -#define IDXTaskManager_TerminateTasks(This,TaskIDs,ulCount,ulTimeOut) \ - (This)->lpVtbl -> TerminateTasks(This,TaskIDs,ulCount,ulTimeOut) - -#define IDXTaskManager_TerminateRequest(This,RequestID,ulTimeOut) \ - (This)->lpVtbl -> TerminateRequest(This,RequestID,ulTimeOut) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXTaskManager_QueryNumProcessors_Proxy( - IDXTaskManager * This, - /* [out] */ ULONG *pulNumProc); - - -void __RPC_STUB IDXTaskManager_QueryNumProcessors_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTaskManager_SetThreadPoolSize_Proxy( - IDXTaskManager * This, - /* [in] */ ULONG ulNumThreads); - - -void __RPC_STUB IDXTaskManager_SetThreadPoolSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTaskManager_GetThreadPoolSize_Proxy( - IDXTaskManager * This, - /* [out] */ ULONG *pulNumThreads); - - -void __RPC_STUB IDXTaskManager_GetThreadPoolSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTaskManager_SetConcurrencyLimit_Proxy( - IDXTaskManager * This, - /* [in] */ ULONG ulNumThreads); - - -void __RPC_STUB IDXTaskManager_SetConcurrencyLimit_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTaskManager_GetConcurrencyLimit_Proxy( - IDXTaskManager * This, - /* [out] */ ULONG *pulNumThreads); - - -void __RPC_STUB IDXTaskManager_GetConcurrencyLimit_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTaskManager_ScheduleTasks_Proxy( - IDXTaskManager * This, - /* [in] */ DXTMTASKINFO TaskInfo[ ], - /* [in] */ HANDLE Events[ ], - /* [out] */ DWORD TaskIDs[ ], - /* [in] */ ULONG ulNumTasks, - /* [in] */ ULONG ulWaitPeriod); - - -void __RPC_STUB IDXTaskManager_ScheduleTasks_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTaskManager_TerminateTasks_Proxy( - IDXTaskManager * This, - /* [in] */ DWORD TaskIDs[ ], - /* [in] */ ULONG ulCount, - /* [in] */ ULONG ulTimeOut); - - -void __RPC_STUB IDXTaskManager_TerminateTasks_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTaskManager_TerminateRequest_Proxy( - IDXTaskManager * This, - /* [in] */ REFIID RequestID, - /* [in] */ ULONG ulTimeOut); - - -void __RPC_STUB IDXTaskManager_TerminateRequest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXTaskManager_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_dxtrans_0265 */ -/* [local] */ - -#ifdef __cplusplus -///////////////////////////////////////////////////// - -class DXBASESAMPLE; -class DXSAMPLE; -class DXPMSAMPLE; - -///////////////////////////////////////////////////// - -class DXBASESAMPLE -{ -public: - BYTE Blue; - BYTE Green; - BYTE Red; - BYTE Alpha; - DXBASESAMPLE() {} - DXBASESAMPLE(const BYTE alpha, const BYTE red, const BYTE green, const BYTE blue) : - Alpha(alpha), - Red(red), - Green(green), - Blue(blue) {} - DXBASESAMPLE(const DWORD val) { *this = (*(DXBASESAMPLE *)&val); } - operator DWORD () const {return *((DWORD *)this); } - DWORD operator=(const DWORD val) { return *this = *((DXBASESAMPLE *)&val); } -}; // DXBASESAMPLE - -///////////////////////////////////////////////////// - -class DXSAMPLE : public DXBASESAMPLE -{ -public: - DXSAMPLE() {} - DXSAMPLE(const BYTE alpha, const BYTE red, const BYTE green, const BYTE blue) : - DXBASESAMPLE(alpha, red, green, blue) {} - DXSAMPLE(const DWORD val) { *this = (*(DXSAMPLE *)&val); } - operator DWORD () const {return *((DWORD *)this); } - DWORD operator=(const DWORD val) { return *this = *((DXSAMPLE *)&val); } - operator DXPMSAMPLE() const; -}; // DXSAMPLE - -///////////////////////////////////////////////////// - -class DXPMSAMPLE : public DXBASESAMPLE -{ -public: - DXPMSAMPLE() {} - DXPMSAMPLE(const BYTE alpha, const BYTE red, const BYTE green, const BYTE blue) : - DXBASESAMPLE(alpha, red, green, blue) {} - DXPMSAMPLE(const DWORD val) { *this = (*(DXPMSAMPLE *)&val); } - operator DWORD () const {return *((DWORD *)this); } - DWORD operator=(const DWORD val) { return *this = *((DXPMSAMPLE *)&val); } - operator DXSAMPLE() const; -}; // DXPMSAMPLE - -// -// The following cast operators are to prevent a direct assignment of a DXSAMPLE to a DXPMSAMPLE -// -inline DXSAMPLE::operator DXPMSAMPLE() const { return *((DXPMSAMPLE *)this); } -inline DXPMSAMPLE::operator DXSAMPLE() const { return *((DXSAMPLE *)this); } -#else // !__cplusplus -typedef struct DXBASESAMPLE - { - BYTE Blue; - BYTE Green; - BYTE Red; - BYTE Alpha; - } DXBASESAMPLE; - -typedef struct DXSAMPLE - { - BYTE Blue; - BYTE Green; - BYTE Red; - BYTE Alpha; - } DXSAMPLE; - -typedef struct DXPMSAMPLE - { - BYTE Blue; - BYTE Green; - BYTE Red; - BYTE Alpha; - } DXPMSAMPLE; - -#endif // !__cplusplus -typedef -enum DXRUNTYPE - { DXRUNTYPE_CLEAR = 0, - DXRUNTYPE_OPAQUE = 1, - DXRUNTYPE_TRANS = 2, - DXRUNTYPE_UNKNOWN = 3 - } DXRUNTYPE; - -#define DX_MAX_RUN_INFO_COUNT ( 128 ) - -// Ignore the definition used by MIDL for TLB generation -#if 0 -typedef struct DXRUNINFO - { - ULONG Bitfields; - } DXRUNINFO; - -#endif // 0 -typedef struct DXRUNINFO -{ - ULONG Type : 2; // Type - ULONG Count : 30; // Number of samples in run -} DXRUNINFO; -typedef -enum DXSFCREATE - { DXSF_FORMAT_IS_CLSID = 1L << 0, - DXSF_NO_LAZY_DDRAW_LOCK = 1L << 1 - } DXSFCREATE; - -typedef -enum DXBLTOPTIONS - { DXBOF_DO_OVER = 1L << 0, - DXBOF_DITHER = 1L << 1 - } DXBLTOPTIONS; - - - -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0265_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0265_v0_0_s_ifspec; - -#ifndef __IDXSurfaceFactory_INTERFACE_DEFINED__ -#define __IDXSurfaceFactory_INTERFACE_DEFINED__ - -/* interface IDXSurfaceFactory */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXSurfaceFactory; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("144946F5-C4D4-11d1-81D1-0000F87557DB") - IDXSurfaceFactory : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE CreateSurface( - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ const DXBNDS *pBounds, - /* [in] */ DWORD dwFlags, - /* [in] */ IUnknown *punkOuter, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppDXSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateFromDDSurface( - /* [in] */ IUnknown *pDDrawSurface, - /* [in] */ const GUID *pFormatID, - /* [in] */ DWORD dwFlags, - /* [in] */ IUnknown *punkOuter, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppDXSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE LoadImage( - /* [in] */ const LPWSTR pszFileName, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppDXSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE LoadImageFromStream( - /* [in] */ IStream *pStream, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppDXSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE CopySurfaceToNewFormat( - /* [in] */ IDXSurface *pSrc, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pDestFormatID, - /* [out] */ IDXSurface **ppNewSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateD3DRMTexture( - /* [in] */ IDXSurface *pSrc, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ IUnknown *pD3DRM3, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppTexture3) = 0; - - virtual HRESULT STDMETHODCALLTYPE BitBlt( - /* [in] */ IDXSurface *pDest, - /* [in] */ const DXVEC *pPlacement, - /* [in] */ IDXSurface *pSrc, - /* [in] */ const DXBNDS *pClipBounds, - /* [in] */ DWORD dwFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXSurfaceFactoryVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXSurfaceFactory * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXSurfaceFactory * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXSurfaceFactory * This); - - HRESULT ( STDMETHODCALLTYPE *CreateSurface )( - IDXSurfaceFactory * This, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ const DXBNDS *pBounds, - /* [in] */ DWORD dwFlags, - /* [in] */ IUnknown *punkOuter, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppDXSurface); - - HRESULT ( STDMETHODCALLTYPE *CreateFromDDSurface )( - IDXSurfaceFactory * This, - /* [in] */ IUnknown *pDDrawSurface, - /* [in] */ const GUID *pFormatID, - /* [in] */ DWORD dwFlags, - /* [in] */ IUnknown *punkOuter, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppDXSurface); - - HRESULT ( STDMETHODCALLTYPE *LoadImage )( - IDXSurfaceFactory * This, - /* [in] */ const LPWSTR pszFileName, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppDXSurface); - - HRESULT ( STDMETHODCALLTYPE *LoadImageFromStream )( - IDXSurfaceFactory * This, - /* [in] */ IStream *pStream, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppDXSurface); - - HRESULT ( STDMETHODCALLTYPE *CopySurfaceToNewFormat )( - IDXSurfaceFactory * This, - /* [in] */ IDXSurface *pSrc, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pDestFormatID, - /* [out] */ IDXSurface **ppNewSurface); - - HRESULT ( STDMETHODCALLTYPE *CreateD3DRMTexture )( - IDXSurfaceFactory * This, - /* [in] */ IDXSurface *pSrc, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ IUnknown *pD3DRM3, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppTexture3); - - HRESULT ( STDMETHODCALLTYPE *BitBlt )( - IDXSurfaceFactory * This, - /* [in] */ IDXSurface *pDest, - /* [in] */ const DXVEC *pPlacement, - /* [in] */ IDXSurface *pSrc, - /* [in] */ const DXBNDS *pClipBounds, - /* [in] */ DWORD dwFlags); - - END_INTERFACE - } IDXSurfaceFactoryVtbl; - - interface IDXSurfaceFactory - { - CONST_VTBL struct IDXSurfaceFactoryVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXSurfaceFactory_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXSurfaceFactory_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXSurfaceFactory_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXSurfaceFactory_CreateSurface(This,pDirectDraw,pDDSurfaceDesc,pFormatID,pBounds,dwFlags,punkOuter,riid,ppDXSurface) \ - (This)->lpVtbl -> CreateSurface(This,pDirectDraw,pDDSurfaceDesc,pFormatID,pBounds,dwFlags,punkOuter,riid,ppDXSurface) - -#define IDXSurfaceFactory_CreateFromDDSurface(This,pDDrawSurface,pFormatID,dwFlags,punkOuter,riid,ppDXSurface) \ - (This)->lpVtbl -> CreateFromDDSurface(This,pDDrawSurface,pFormatID,dwFlags,punkOuter,riid,ppDXSurface) - -#define IDXSurfaceFactory_LoadImage(This,pszFileName,pDirectDraw,pDDSurfaceDesc,pFormatID,riid,ppDXSurface) \ - (This)->lpVtbl -> LoadImage(This,pszFileName,pDirectDraw,pDDSurfaceDesc,pFormatID,riid,ppDXSurface) - -#define IDXSurfaceFactory_LoadImageFromStream(This,pStream,pDirectDraw,pDDSurfaceDesc,pFormatID,riid,ppDXSurface) \ - (This)->lpVtbl -> LoadImageFromStream(This,pStream,pDirectDraw,pDDSurfaceDesc,pFormatID,riid,ppDXSurface) - -#define IDXSurfaceFactory_CopySurfaceToNewFormat(This,pSrc,pDirectDraw,pDDSurfaceDesc,pDestFormatID,ppNewSurface) \ - (This)->lpVtbl -> CopySurfaceToNewFormat(This,pSrc,pDirectDraw,pDDSurfaceDesc,pDestFormatID,ppNewSurface) - -#define IDXSurfaceFactory_CreateD3DRMTexture(This,pSrc,pDirectDraw,pD3DRM3,riid,ppTexture3) \ - (This)->lpVtbl -> CreateD3DRMTexture(This,pSrc,pDirectDraw,pD3DRM3,riid,ppTexture3) - -#define IDXSurfaceFactory_BitBlt(This,pDest,pPlacement,pSrc,pClipBounds,dwFlags) \ - (This)->lpVtbl -> BitBlt(This,pDest,pPlacement,pSrc,pClipBounds,dwFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_CreateSurface_Proxy( - IDXSurfaceFactory * This, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ const DXBNDS *pBounds, - /* [in] */ DWORD dwFlags, - /* [in] */ IUnknown *punkOuter, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppDXSurface); - - -void __RPC_STUB IDXSurfaceFactory_CreateSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_CreateFromDDSurface_Proxy( - IDXSurfaceFactory * This, - /* [in] */ IUnknown *pDDrawSurface, - /* [in] */ const GUID *pFormatID, - /* [in] */ DWORD dwFlags, - /* [in] */ IUnknown *punkOuter, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppDXSurface); - - -void __RPC_STUB IDXSurfaceFactory_CreateFromDDSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_LoadImage_Proxy( - IDXSurfaceFactory * This, - /* [in] */ const LPWSTR pszFileName, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppDXSurface); - - -void __RPC_STUB IDXSurfaceFactory_LoadImage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_LoadImageFromStream_Proxy( - IDXSurfaceFactory * This, - /* [in] */ IStream *pStream, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppDXSurface); - - -void __RPC_STUB IDXSurfaceFactory_LoadImageFromStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_CopySurfaceToNewFormat_Proxy( - IDXSurfaceFactory * This, - /* [in] */ IDXSurface *pSrc, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pDestFormatID, - /* [out] */ IDXSurface **ppNewSurface); - - -void __RPC_STUB IDXSurfaceFactory_CopySurfaceToNewFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_CreateD3DRMTexture_Proxy( - IDXSurfaceFactory * This, - /* [in] */ IDXSurface *pSrc, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ IUnknown *pD3DRM3, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppTexture3); - - -void __RPC_STUB IDXSurfaceFactory_CreateD3DRMTexture_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceFactory_BitBlt_Proxy( - IDXSurfaceFactory * This, - /* [in] */ IDXSurface *pDest, - /* [in] */ const DXVEC *pPlacement, - /* [in] */ IDXSurface *pSrc, - /* [in] */ const DXBNDS *pClipBounds, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IDXSurfaceFactory_BitBlt_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXSurfaceFactory_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_dxtrans_0266 */ -/* [local] */ - -typedef -enum DXSURFMODCOMPOP - { DXSURFMOD_COMP_OVER = 0, - DXSURFMOD_COMP_ALPHA_MASK = 1, - DXSURFMOD_COMP_MAX_VALID = 1 - } DXSURFMODCOMPOP; - - - -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0266_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0266_v0_0_s_ifspec; - -#ifndef __IDXSurfaceModifier_INTERFACE_DEFINED__ -#define __IDXSurfaceModifier_INTERFACE_DEFINED__ - -/* interface IDXSurfaceModifier */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXSurfaceModifier; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9EA3B637-C37D-11d1-905E-00C04FD9189D") - IDXSurfaceModifier : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetFillColor( - /* [in] */ DXSAMPLE Color) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFillColor( - /* [out] */ DXSAMPLE *pColor) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBounds( - /* [in] */ const DXBNDS *pBounds) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBackground( - /* [in] */ IDXSurface *pSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBackground( - /* [out] */ IDXSurface **ppSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetCompositeOperation( - /* [in] */ DXSURFMODCOMPOP CompOp) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCompositeOperation( - /* [out] */ DXSURFMODCOMPOP *pCompOp) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetForeground( - /* [in] */ IDXSurface *pSurface, - /* [in] */ BOOL bTile, - /* [in] */ const POINT *pOrigin) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetForeground( - /* [out] */ IDXSurface **ppSurface, - /* [out] */ BOOL *pbTile, - /* [out] */ POINT *pOrigin) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOpacity( - /* [in] */ float Opacity) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetOpacity( - /* [out] */ float *pOpacity) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetLookup( - /* [in] */ IDXLookupTable *pLookupTable) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetLookup( - /* [out] */ IDXLookupTable **ppLookupTable) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXSurfaceModifierVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXSurfaceModifier * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXSurfaceModifier * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXSurfaceModifier * This); - - HRESULT ( STDMETHODCALLTYPE *SetFillColor )( - IDXSurfaceModifier * This, - /* [in] */ DXSAMPLE Color); - - HRESULT ( STDMETHODCALLTYPE *GetFillColor )( - IDXSurfaceModifier * This, - /* [out] */ DXSAMPLE *pColor); - - HRESULT ( STDMETHODCALLTYPE *SetBounds )( - IDXSurfaceModifier * This, - /* [in] */ const DXBNDS *pBounds); - - HRESULT ( STDMETHODCALLTYPE *SetBackground )( - IDXSurfaceModifier * This, - /* [in] */ IDXSurface *pSurface); - - HRESULT ( STDMETHODCALLTYPE *GetBackground )( - IDXSurfaceModifier * This, - /* [out] */ IDXSurface **ppSurface); - - HRESULT ( STDMETHODCALLTYPE *SetCompositeOperation )( - IDXSurfaceModifier * This, - /* [in] */ DXSURFMODCOMPOP CompOp); - - HRESULT ( STDMETHODCALLTYPE *GetCompositeOperation )( - IDXSurfaceModifier * This, - /* [out] */ DXSURFMODCOMPOP *pCompOp); - - HRESULT ( STDMETHODCALLTYPE *SetForeground )( - IDXSurfaceModifier * This, - /* [in] */ IDXSurface *pSurface, - /* [in] */ BOOL bTile, - /* [in] */ const POINT *pOrigin); - - HRESULT ( STDMETHODCALLTYPE *GetForeground )( - IDXSurfaceModifier * This, - /* [out] */ IDXSurface **ppSurface, - /* [out] */ BOOL *pbTile, - /* [out] */ POINT *pOrigin); - - HRESULT ( STDMETHODCALLTYPE *SetOpacity )( - IDXSurfaceModifier * This, - /* [in] */ float Opacity); - - HRESULT ( STDMETHODCALLTYPE *GetOpacity )( - IDXSurfaceModifier * This, - /* [out] */ float *pOpacity); - - HRESULT ( STDMETHODCALLTYPE *SetLookup )( - IDXSurfaceModifier * This, - /* [in] */ IDXLookupTable *pLookupTable); - - HRESULT ( STDMETHODCALLTYPE *GetLookup )( - IDXSurfaceModifier * This, - /* [out] */ IDXLookupTable **ppLookupTable); - - END_INTERFACE - } IDXSurfaceModifierVtbl; - - interface IDXSurfaceModifier - { - CONST_VTBL struct IDXSurfaceModifierVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXSurfaceModifier_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXSurfaceModifier_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXSurfaceModifier_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXSurfaceModifier_SetFillColor(This,Color) \ - (This)->lpVtbl -> SetFillColor(This,Color) - -#define IDXSurfaceModifier_GetFillColor(This,pColor) \ - (This)->lpVtbl -> GetFillColor(This,pColor) - -#define IDXSurfaceModifier_SetBounds(This,pBounds) \ - (This)->lpVtbl -> SetBounds(This,pBounds) - -#define IDXSurfaceModifier_SetBackground(This,pSurface) \ - (This)->lpVtbl -> SetBackground(This,pSurface) - -#define IDXSurfaceModifier_GetBackground(This,ppSurface) \ - (This)->lpVtbl -> GetBackground(This,ppSurface) - -#define IDXSurfaceModifier_SetCompositeOperation(This,CompOp) \ - (This)->lpVtbl -> SetCompositeOperation(This,CompOp) - -#define IDXSurfaceModifier_GetCompositeOperation(This,pCompOp) \ - (This)->lpVtbl -> GetCompositeOperation(This,pCompOp) - -#define IDXSurfaceModifier_SetForeground(This,pSurface,bTile,pOrigin) \ - (This)->lpVtbl -> SetForeground(This,pSurface,bTile,pOrigin) - -#define IDXSurfaceModifier_GetForeground(This,ppSurface,pbTile,pOrigin) \ - (This)->lpVtbl -> GetForeground(This,ppSurface,pbTile,pOrigin) - -#define IDXSurfaceModifier_SetOpacity(This,Opacity) \ - (This)->lpVtbl -> SetOpacity(This,Opacity) - -#define IDXSurfaceModifier_GetOpacity(This,pOpacity) \ - (This)->lpVtbl -> GetOpacity(This,pOpacity) - -#define IDXSurfaceModifier_SetLookup(This,pLookupTable) \ - (This)->lpVtbl -> SetLookup(This,pLookupTable) - -#define IDXSurfaceModifier_GetLookup(This,ppLookupTable) \ - (This)->lpVtbl -> GetLookup(This,ppLookupTable) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetFillColor_Proxy( - IDXSurfaceModifier * This, - /* [in] */ DXSAMPLE Color); - - -void __RPC_STUB IDXSurfaceModifier_SetFillColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_GetFillColor_Proxy( - IDXSurfaceModifier * This, - /* [out] */ DXSAMPLE *pColor); - - -void __RPC_STUB IDXSurfaceModifier_GetFillColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetBounds_Proxy( - IDXSurfaceModifier * This, - /* [in] */ const DXBNDS *pBounds); - - -void __RPC_STUB IDXSurfaceModifier_SetBounds_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetBackground_Proxy( - IDXSurfaceModifier * This, - /* [in] */ IDXSurface *pSurface); - - -void __RPC_STUB IDXSurfaceModifier_SetBackground_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_GetBackground_Proxy( - IDXSurfaceModifier * This, - /* [out] */ IDXSurface **ppSurface); - - -void __RPC_STUB IDXSurfaceModifier_GetBackground_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetCompositeOperation_Proxy( - IDXSurfaceModifier * This, - /* [in] */ DXSURFMODCOMPOP CompOp); - - -void __RPC_STUB IDXSurfaceModifier_SetCompositeOperation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_GetCompositeOperation_Proxy( - IDXSurfaceModifier * This, - /* [out] */ DXSURFMODCOMPOP *pCompOp); - - -void __RPC_STUB IDXSurfaceModifier_GetCompositeOperation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetForeground_Proxy( - IDXSurfaceModifier * This, - /* [in] */ IDXSurface *pSurface, - /* [in] */ BOOL bTile, - /* [in] */ const POINT *pOrigin); - - -void __RPC_STUB IDXSurfaceModifier_SetForeground_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_GetForeground_Proxy( - IDXSurfaceModifier * This, - /* [out] */ IDXSurface **ppSurface, - /* [out] */ BOOL *pbTile, - /* [out] */ POINT *pOrigin); - - -void __RPC_STUB IDXSurfaceModifier_GetForeground_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetOpacity_Proxy( - IDXSurfaceModifier * This, - /* [in] */ float Opacity); - - -void __RPC_STUB IDXSurfaceModifier_SetOpacity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_GetOpacity_Proxy( - IDXSurfaceModifier * This, - /* [out] */ float *pOpacity); - - -void __RPC_STUB IDXSurfaceModifier_GetOpacity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_SetLookup_Proxy( - IDXSurfaceModifier * This, - /* [in] */ IDXLookupTable *pLookupTable); - - -void __RPC_STUB IDXSurfaceModifier_SetLookup_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurfaceModifier_GetLookup_Proxy( - IDXSurfaceModifier * This, - /* [out] */ IDXLookupTable **ppLookupTable); - - -void __RPC_STUB IDXSurfaceModifier_GetLookup_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXSurfaceModifier_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_dxtrans_0267 */ -/* [local] */ - -typedef -enum DXSAMPLEFORMATENUM - { DXPF_FLAGSMASK = 0xffff0000, - DXPF_NONPREMULT = 0x10000, - DXPF_TRANSPARENCY = 0x20000, - DXPF_TRANSLUCENCY = 0x40000, - DXPF_2BITERROR = 0x200000, - DXPF_3BITERROR = 0x300000, - DXPF_4BITERROR = 0x400000, - DXPF_5BITERROR = 0x500000, - DXPF_ERRORMASK = 0x700000, - DXPF_NONSTANDARD = 0, - DXPF_PMARGB32 = 1 | DXPF_TRANSPARENCY | DXPF_TRANSLUCENCY, - DXPF_ARGB32 = 2 | DXPF_NONPREMULT | DXPF_TRANSPARENCY | DXPF_TRANSLUCENCY, - DXPF_ARGB4444 = 3 | DXPF_NONPREMULT | DXPF_TRANSPARENCY | DXPF_TRANSLUCENCY | DXPF_4BITERROR, - DXPF_A8 = 4 | DXPF_TRANSPARENCY | DXPF_TRANSLUCENCY, - DXPF_RGB32 = 5, - DXPF_RGB24 = 6, - DXPF_RGB565 = 7 | DXPF_3BITERROR, - DXPF_RGB555 = 8 | DXPF_3BITERROR, - DXPF_RGB8 = 9 | DXPF_5BITERROR, - DXPF_ARGB1555 = 10 | DXPF_TRANSPARENCY | DXPF_3BITERROR, - DXPF_RGB32_CK = DXPF_RGB32 | DXPF_TRANSPARENCY, - DXPF_RGB24_CK = DXPF_RGB24 | DXPF_TRANSPARENCY, - DXPF_RGB555_CK = DXPF_RGB555 | DXPF_TRANSPARENCY, - DXPF_RGB565_CK = DXPF_RGB565 | DXPF_TRANSPARENCY, - DXPF_RGB8_CK = DXPF_RGB8 | DXPF_TRANSPARENCY - } DXSAMPLEFORMATENUM; - -typedef -enum DXLOCKSURF - { DXLOCKF_READ = 0, - DXLOCKF_READWRITE = 1 << 0, - DXLOCKF_EXISTINGINFOONLY = 1 << 1, - DXLOCKF_WANTRUNINFO = 1 << 2, - DXLOCKF_NONPREMULT = 1 << 16, - DXLOCKF_VALIDFLAGS = DXLOCKF_READWRITE | DXLOCKF_EXISTINGINFOONLY | DXLOCKF_WANTRUNINFO | DXLOCKF_NONPREMULT - } DXLOCKSURF; - -typedef -enum DXSURFSTATUS - { DXSURF_TRANSIENT = 1 << 0, - DXSURF_READONLY = 1 << 1, - DXSURF_VALIDFLAGS = DXSURF_TRANSIENT | DXSURF_READONLY - } DXSURFSTATUS; - - - -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0267_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0267_v0_0_s_ifspec; - -#ifndef __IDXSurface_INTERFACE_DEFINED__ -#define __IDXSurface_INTERFACE_DEFINED__ - -/* interface IDXSurface */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXSurface; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B39FD73F-E139-11d1-9065-00C04FD9189D") - IDXSurface : public IDXBaseObject - { - public: - virtual HRESULT STDMETHODCALLTYPE GetPixelFormat( - /* [out] */ GUID *pFormatID, - /* [out] */ DXSAMPLEFORMATENUM *pSampleFormatEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBounds( - /* [out] */ DXBNDS *pBounds) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStatusFlags( - /* [out] */ DWORD *pdwStatusFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetStatusFlags( - /* [in] */ DWORD dwStatusFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE LockSurface( - /* [in] */ const DXBNDS *pBounds, - /* [in] */ ULONG ulTimeOut, - /* [in] */ DWORD dwFlags, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppPointer, - /* [out] */ ULONG *pulGenerationId) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDirectDrawSurface( - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetColorKey( - DXSAMPLE *pColorKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetColorKey( - DXSAMPLE ColorKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE LockSurfaceDC( - /* [in] */ const DXBNDS *pBounds, - /* [in] */ ULONG ulTimeOut, - /* [in] */ DWORD dwFlags, - /* [out] */ IDXDCLock **ppDCLock) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetAppData( - DWORD_PTR dwAppData) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAppData( - DWORD_PTR *pdwAppData) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXSurfaceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXSurface * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXSurface * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXSurface * This); - - HRESULT ( STDMETHODCALLTYPE *GetGenerationId )( - IDXSurface * This, - /* [out] */ ULONG *pID); - - HRESULT ( STDMETHODCALLTYPE *IncrementGenerationId )( - IDXSurface * This, - /* [in] */ BOOL bRefresh); - - HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( - IDXSurface * This, - /* [out] */ ULONG *pcbSize); - - HRESULT ( STDMETHODCALLTYPE *GetPixelFormat )( - IDXSurface * This, - /* [out] */ GUID *pFormatID, - /* [out] */ DXSAMPLEFORMATENUM *pSampleFormatEnum); - - HRESULT ( STDMETHODCALLTYPE *GetBounds )( - IDXSurface * This, - /* [out] */ DXBNDS *pBounds); - - HRESULT ( STDMETHODCALLTYPE *GetStatusFlags )( - IDXSurface * This, - /* [out] */ DWORD *pdwStatusFlags); - - HRESULT ( STDMETHODCALLTYPE *SetStatusFlags )( - IDXSurface * This, - /* [in] */ DWORD dwStatusFlags); - - HRESULT ( STDMETHODCALLTYPE *LockSurface )( - IDXSurface * This, - /* [in] */ const DXBNDS *pBounds, - /* [in] */ ULONG ulTimeOut, - /* [in] */ DWORD dwFlags, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppPointer, - /* [out] */ ULONG *pulGenerationId); - - HRESULT ( STDMETHODCALLTYPE *GetDirectDrawSurface )( - IDXSurface * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppSurface); - - HRESULT ( STDMETHODCALLTYPE *GetColorKey )( - IDXSurface * This, - DXSAMPLE *pColorKey); - - HRESULT ( STDMETHODCALLTYPE *SetColorKey )( - IDXSurface * This, - DXSAMPLE ColorKey); - - HRESULT ( STDMETHODCALLTYPE *LockSurfaceDC )( - IDXSurface * This, - /* [in] */ const DXBNDS *pBounds, - /* [in] */ ULONG ulTimeOut, - /* [in] */ DWORD dwFlags, - /* [out] */ IDXDCLock **ppDCLock); - - HRESULT ( STDMETHODCALLTYPE *SetAppData )( - IDXSurface * This, - DWORD_PTR dwAppData); - - HRESULT ( STDMETHODCALLTYPE *GetAppData )( - IDXSurface * This, - DWORD_PTR *pdwAppData); - - END_INTERFACE - } IDXSurfaceVtbl; - - interface IDXSurface - { - CONST_VTBL struct IDXSurfaceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXSurface_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXSurface_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXSurface_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXSurface_GetGenerationId(This,pID) \ - (This)->lpVtbl -> GetGenerationId(This,pID) - -#define IDXSurface_IncrementGenerationId(This,bRefresh) \ - (This)->lpVtbl -> IncrementGenerationId(This,bRefresh) - -#define IDXSurface_GetObjectSize(This,pcbSize) \ - (This)->lpVtbl -> GetObjectSize(This,pcbSize) - - -#define IDXSurface_GetPixelFormat(This,pFormatID,pSampleFormatEnum) \ - (This)->lpVtbl -> GetPixelFormat(This,pFormatID,pSampleFormatEnum) - -#define IDXSurface_GetBounds(This,pBounds) \ - (This)->lpVtbl -> GetBounds(This,pBounds) - -#define IDXSurface_GetStatusFlags(This,pdwStatusFlags) \ - (This)->lpVtbl -> GetStatusFlags(This,pdwStatusFlags) - -#define IDXSurface_SetStatusFlags(This,dwStatusFlags) \ - (This)->lpVtbl -> SetStatusFlags(This,dwStatusFlags) - -#define IDXSurface_LockSurface(This,pBounds,ulTimeOut,dwFlags,riid,ppPointer,pulGenerationId) \ - (This)->lpVtbl -> LockSurface(This,pBounds,ulTimeOut,dwFlags,riid,ppPointer,pulGenerationId) - -#define IDXSurface_GetDirectDrawSurface(This,riid,ppSurface) \ - (This)->lpVtbl -> GetDirectDrawSurface(This,riid,ppSurface) - -#define IDXSurface_GetColorKey(This,pColorKey) \ - (This)->lpVtbl -> GetColorKey(This,pColorKey) - -#define IDXSurface_SetColorKey(This,ColorKey) \ - (This)->lpVtbl -> SetColorKey(This,ColorKey) - -#define IDXSurface_LockSurfaceDC(This,pBounds,ulTimeOut,dwFlags,ppDCLock) \ - (This)->lpVtbl -> LockSurfaceDC(This,pBounds,ulTimeOut,dwFlags,ppDCLock) - -#define IDXSurface_SetAppData(This,dwAppData) \ - (This)->lpVtbl -> SetAppData(This,dwAppData) - -#define IDXSurface_GetAppData(This,pdwAppData) \ - (This)->lpVtbl -> GetAppData(This,pdwAppData) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXSurface_GetPixelFormat_Proxy( - IDXSurface * This, - /* [out] */ GUID *pFormatID, - /* [out] */ DXSAMPLEFORMATENUM *pSampleFormatEnum); - - -void __RPC_STUB IDXSurface_GetPixelFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurface_GetBounds_Proxy( - IDXSurface * This, - /* [out] */ DXBNDS *pBounds); - - -void __RPC_STUB IDXSurface_GetBounds_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurface_GetStatusFlags_Proxy( - IDXSurface * This, - /* [out] */ DWORD *pdwStatusFlags); - - -void __RPC_STUB IDXSurface_GetStatusFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurface_SetStatusFlags_Proxy( - IDXSurface * This, - /* [in] */ DWORD dwStatusFlags); - - -void __RPC_STUB IDXSurface_SetStatusFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurface_LockSurface_Proxy( - IDXSurface * This, - /* [in] */ const DXBNDS *pBounds, - /* [in] */ ULONG ulTimeOut, - /* [in] */ DWORD dwFlags, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppPointer, - /* [out] */ ULONG *pulGenerationId); - - -void __RPC_STUB IDXSurface_LockSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurface_GetDirectDrawSurface_Proxy( - IDXSurface * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppSurface); - - -void __RPC_STUB IDXSurface_GetDirectDrawSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurface_GetColorKey_Proxy( - IDXSurface * This, - DXSAMPLE *pColorKey); - - -void __RPC_STUB IDXSurface_GetColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurface_SetColorKey_Proxy( - IDXSurface * This, - DXSAMPLE ColorKey); - - -void __RPC_STUB IDXSurface_SetColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurface_LockSurfaceDC_Proxy( - IDXSurface * This, - /* [in] */ const DXBNDS *pBounds, - /* [in] */ ULONG ulTimeOut, - /* [in] */ DWORD dwFlags, - /* [out] */ IDXDCLock **ppDCLock); - - -void __RPC_STUB IDXSurface_LockSurfaceDC_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurface_SetAppData_Proxy( - IDXSurface * This, - DWORD_PTR dwAppData); - - -void __RPC_STUB IDXSurface_SetAppData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXSurface_GetAppData_Proxy( - IDXSurface * This, - DWORD_PTR *pdwAppData); - - -void __RPC_STUB IDXSurface_GetAppData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXSurface_INTERFACE_DEFINED__ */ - - -#ifndef __IDXSurfaceInit_INTERFACE_DEFINED__ -#define __IDXSurfaceInit_INTERFACE_DEFINED__ - -/* interface IDXSurfaceInit */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXSurfaceInit; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9EA3B639-C37D-11d1-905E-00C04FD9189D") - IDXSurfaceInit : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE InitSurface( - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ const DXBNDS *pBounds, - /* [in] */ DWORD dwFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXSurfaceInitVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXSurfaceInit * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXSurfaceInit * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXSurfaceInit * This); - - HRESULT ( STDMETHODCALLTYPE *InitSurface )( - IDXSurfaceInit * This, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ const DXBNDS *pBounds, - /* [in] */ DWORD dwFlags); - - END_INTERFACE - } IDXSurfaceInitVtbl; - - interface IDXSurfaceInit - { - CONST_VTBL struct IDXSurfaceInitVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXSurfaceInit_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXSurfaceInit_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXSurfaceInit_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXSurfaceInit_InitSurface(This,pDirectDraw,pDDSurfaceDesc,pFormatID,pBounds,dwFlags) \ - (This)->lpVtbl -> InitSurface(This,pDirectDraw,pDDSurfaceDesc,pFormatID,pBounds,dwFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXSurfaceInit_InitSurface_Proxy( - IDXSurfaceInit * This, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ const DXBNDS *pBounds, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IDXSurfaceInit_InitSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXSurfaceInit_INTERFACE_DEFINED__ */ - - -#ifndef __IDXARGBSurfaceInit_INTERFACE_DEFINED__ -#define __IDXARGBSurfaceInit_INTERFACE_DEFINED__ - -/* interface IDXARGBSurfaceInit */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXARGBSurfaceInit; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9EA3B63A-C37D-11d1-905E-00C04FD9189D") - IDXARGBSurfaceInit : public IDXSurfaceInit - { - public: - virtual HRESULT STDMETHODCALLTYPE InitFromDDSurface( - /* [in] */ IUnknown *pDDrawSurface, - /* [in] */ const GUID *pFormatID, - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE InitFromRawSurface( - /* [in] */ IDXRawSurface *pRawSurface) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXARGBSurfaceInitVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXARGBSurfaceInit * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXARGBSurfaceInit * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXARGBSurfaceInit * This); - - HRESULT ( STDMETHODCALLTYPE *InitSurface )( - IDXARGBSurfaceInit * This, - /* [in] */ IUnknown *pDirectDraw, - /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, - /* [in] */ const GUID *pFormatID, - /* [in] */ const DXBNDS *pBounds, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *InitFromDDSurface )( - IDXARGBSurfaceInit * This, - /* [in] */ IUnknown *pDDrawSurface, - /* [in] */ const GUID *pFormatID, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *InitFromRawSurface )( - IDXARGBSurfaceInit * This, - /* [in] */ IDXRawSurface *pRawSurface); - - END_INTERFACE - } IDXARGBSurfaceInitVtbl; - - interface IDXARGBSurfaceInit - { - CONST_VTBL struct IDXARGBSurfaceInitVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXARGBSurfaceInit_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXARGBSurfaceInit_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXARGBSurfaceInit_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXARGBSurfaceInit_InitSurface(This,pDirectDraw,pDDSurfaceDesc,pFormatID,pBounds,dwFlags) \ - (This)->lpVtbl -> InitSurface(This,pDirectDraw,pDDSurfaceDesc,pFormatID,pBounds,dwFlags) - - -#define IDXARGBSurfaceInit_InitFromDDSurface(This,pDDrawSurface,pFormatID,dwFlags) \ - (This)->lpVtbl -> InitFromDDSurface(This,pDDrawSurface,pFormatID,dwFlags) - -#define IDXARGBSurfaceInit_InitFromRawSurface(This,pRawSurface) \ - (This)->lpVtbl -> InitFromRawSurface(This,pRawSurface) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXARGBSurfaceInit_InitFromDDSurface_Proxy( - IDXARGBSurfaceInit * This, - /* [in] */ IUnknown *pDDrawSurface, - /* [in] */ const GUID *pFormatID, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IDXARGBSurfaceInit_InitFromDDSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXARGBSurfaceInit_InitFromRawSurface_Proxy( - IDXARGBSurfaceInit * This, - /* [in] */ IDXRawSurface *pRawSurface); - - -void __RPC_STUB IDXARGBSurfaceInit_InitFromRawSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXARGBSurfaceInit_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_dxtrans_0270 */ -/* [local] */ - -typedef struct tagDXNATIVETYPEINFO - { - BYTE *pCurrentData; - BYTE *pFirstByte; - long lPitch; - DWORD dwColorKey; - } DXNATIVETYPEINFO; - -typedef struct tagDXPACKEDRECTDESC - { - DXBASESAMPLE *pSamples; - BOOL bPremult; - RECT rect; - long lRowPadding; - } DXPACKEDRECTDESC; - -typedef struct tagDXOVERSAMPLEDESC - { - POINT p; - DXPMSAMPLE Color; - } DXOVERSAMPLEDESC; - - - -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0270_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0270_v0_0_s_ifspec; - -#ifndef __IDXARGBReadPtr_INTERFACE_DEFINED__ -#define __IDXARGBReadPtr_INTERFACE_DEFINED__ - -/* interface IDXARGBReadPtr */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXARGBReadPtr; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("EAAAC2D6-C290-11d1-905D-00C04FD9189D") - IDXARGBReadPtr : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetSurface( - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppSurface) = 0; - - virtual DXSAMPLEFORMATENUM STDMETHODCALLTYPE GetNativeType( - /* [out] */ DXNATIVETYPEINFO *pInfo) = 0; - - virtual void STDMETHODCALLTYPE Move( - /* [in] */ long cSamples) = 0; - - virtual void STDMETHODCALLTYPE MoveToRow( - /* [in] */ ULONG y) = 0; - - virtual void STDMETHODCALLTYPE MoveToXY( - /* [in] */ ULONG x, - /* [in] */ ULONG y) = 0; - - virtual ULONG STDMETHODCALLTYPE MoveAndGetRunInfo( - /* [in] */ ULONG Row, - /* [out] */ const DXRUNINFO **ppInfo) = 0; - - virtual DXSAMPLE *STDMETHODCALLTYPE Unpack( - /* [in] */ DXSAMPLE *pSamples, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bMove) = 0; - - virtual DXPMSAMPLE *STDMETHODCALLTYPE UnpackPremult( - /* [in] */ DXPMSAMPLE *pSamples, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bMove) = 0; - - virtual void STDMETHODCALLTYPE UnpackRect( - /* [in] */ const DXPACKEDRECTDESC *pRectDesc) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXARGBReadPtrVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXARGBReadPtr * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXARGBReadPtr * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXARGBReadPtr * This); - - HRESULT ( STDMETHODCALLTYPE *GetSurface )( - IDXARGBReadPtr * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppSurface); - - DXSAMPLEFORMATENUM ( STDMETHODCALLTYPE *GetNativeType )( - IDXARGBReadPtr * This, - /* [out] */ DXNATIVETYPEINFO *pInfo); - - void ( STDMETHODCALLTYPE *Move )( - IDXARGBReadPtr * This, - /* [in] */ long cSamples); - - void ( STDMETHODCALLTYPE *MoveToRow )( - IDXARGBReadPtr * This, - /* [in] */ ULONG y); - - void ( STDMETHODCALLTYPE *MoveToXY )( - IDXARGBReadPtr * This, - /* [in] */ ULONG x, - /* [in] */ ULONG y); - - ULONG ( STDMETHODCALLTYPE *MoveAndGetRunInfo )( - IDXARGBReadPtr * This, - /* [in] */ ULONG Row, - /* [out] */ const DXRUNINFO **ppInfo); - - DXSAMPLE *( STDMETHODCALLTYPE *Unpack )( - IDXARGBReadPtr * This, - /* [in] */ DXSAMPLE *pSamples, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bMove); - - DXPMSAMPLE *( STDMETHODCALLTYPE *UnpackPremult )( - IDXARGBReadPtr * This, - /* [in] */ DXPMSAMPLE *pSamples, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bMove); - - void ( STDMETHODCALLTYPE *UnpackRect )( - IDXARGBReadPtr * This, - /* [in] */ const DXPACKEDRECTDESC *pRectDesc); - - END_INTERFACE - } IDXARGBReadPtrVtbl; - - interface IDXARGBReadPtr - { - CONST_VTBL struct IDXARGBReadPtrVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXARGBReadPtr_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXARGBReadPtr_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXARGBReadPtr_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXARGBReadPtr_GetSurface(This,riid,ppSurface) \ - (This)->lpVtbl -> GetSurface(This,riid,ppSurface) - -#define IDXARGBReadPtr_GetNativeType(This,pInfo) \ - (This)->lpVtbl -> GetNativeType(This,pInfo) - -#define IDXARGBReadPtr_Move(This,cSamples) \ - (This)->lpVtbl -> Move(This,cSamples) - -#define IDXARGBReadPtr_MoveToRow(This,y) \ - (This)->lpVtbl -> MoveToRow(This,y) - -#define IDXARGBReadPtr_MoveToXY(This,x,y) \ - (This)->lpVtbl -> MoveToXY(This,x,y) - -#define IDXARGBReadPtr_MoveAndGetRunInfo(This,Row,ppInfo) \ - (This)->lpVtbl -> MoveAndGetRunInfo(This,Row,ppInfo) - -#define IDXARGBReadPtr_Unpack(This,pSamples,cSamples,bMove) \ - (This)->lpVtbl -> Unpack(This,pSamples,cSamples,bMove) - -#define IDXARGBReadPtr_UnpackPremult(This,pSamples,cSamples,bMove) \ - (This)->lpVtbl -> UnpackPremult(This,pSamples,cSamples,bMove) - -#define IDXARGBReadPtr_UnpackRect(This,pRectDesc) \ - (This)->lpVtbl -> UnpackRect(This,pRectDesc) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXARGBReadPtr_GetSurface_Proxy( - IDXARGBReadPtr * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppSurface); - - -void __RPC_STUB IDXARGBReadPtr_GetSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -DXSAMPLEFORMATENUM STDMETHODCALLTYPE IDXARGBReadPtr_GetNativeType_Proxy( - IDXARGBReadPtr * This, - /* [out] */ DXNATIVETYPEINFO *pInfo); - - -void __RPC_STUB IDXARGBReadPtr_GetNativeType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -void STDMETHODCALLTYPE IDXARGBReadPtr_Move_Proxy( - IDXARGBReadPtr * This, - /* [in] */ long cSamples); - - -void __RPC_STUB IDXARGBReadPtr_Move_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -void STDMETHODCALLTYPE IDXARGBReadPtr_MoveToRow_Proxy( - IDXARGBReadPtr * This, - /* [in] */ ULONG y); - - -void __RPC_STUB IDXARGBReadPtr_MoveToRow_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -void STDMETHODCALLTYPE IDXARGBReadPtr_MoveToXY_Proxy( - IDXARGBReadPtr * This, - /* [in] */ ULONG x, - /* [in] */ ULONG y); - - -void __RPC_STUB IDXARGBReadPtr_MoveToXY_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -ULONG STDMETHODCALLTYPE IDXARGBReadPtr_MoveAndGetRunInfo_Proxy( - IDXARGBReadPtr * This, - /* [in] */ ULONG Row, - /* [out] */ const DXRUNINFO **ppInfo); - - -void __RPC_STUB IDXARGBReadPtr_MoveAndGetRunInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -DXSAMPLE *STDMETHODCALLTYPE IDXARGBReadPtr_Unpack_Proxy( - IDXARGBReadPtr * This, - /* [in] */ DXSAMPLE *pSamples, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bMove); - - -void __RPC_STUB IDXARGBReadPtr_Unpack_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -DXPMSAMPLE *STDMETHODCALLTYPE IDXARGBReadPtr_UnpackPremult_Proxy( - IDXARGBReadPtr * This, - /* [in] */ DXPMSAMPLE *pSamples, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bMove); - - -void __RPC_STUB IDXARGBReadPtr_UnpackPremult_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -void STDMETHODCALLTYPE IDXARGBReadPtr_UnpackRect_Proxy( - IDXARGBReadPtr * This, - /* [in] */ const DXPACKEDRECTDESC *pRectDesc); - - -void __RPC_STUB IDXARGBReadPtr_UnpackRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXARGBReadPtr_INTERFACE_DEFINED__ */ - - -#ifndef __IDXARGBReadWritePtr_INTERFACE_DEFINED__ -#define __IDXARGBReadWritePtr_INTERFACE_DEFINED__ - -/* interface IDXARGBReadWritePtr */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXARGBReadWritePtr; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("EAAAC2D7-C290-11d1-905D-00C04FD9189D") - IDXARGBReadWritePtr : public IDXARGBReadPtr - { - public: - virtual void STDMETHODCALLTYPE PackAndMove( - /* [in] */ const DXSAMPLE *pSamples, - /* [in] */ ULONG cSamples) = 0; - - virtual void STDMETHODCALLTYPE PackPremultAndMove( - /* [in] */ const DXPMSAMPLE *pSamples, - /* [in] */ ULONG cSamples) = 0; - - virtual void STDMETHODCALLTYPE PackRect( - /* [in] */ const DXPACKEDRECTDESC *pRectDesc) = 0; - - virtual void STDMETHODCALLTYPE CopyAndMoveBoth( - /* [in] */ DXBASESAMPLE *pScratchBuffer, - /* [in] */ IDXARGBReadPtr *pSrc, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bIsOpaque) = 0; - - virtual void STDMETHODCALLTYPE CopyRect( - /* [in] */ DXBASESAMPLE *pScratchBuffer, - /* [in] */ const RECT *pDestRect, - /* [in] */ IDXARGBReadPtr *pSrc, - /* [in] */ const POINT *pSrcOrigin, - /* [in] */ BOOL bIsOpaque) = 0; - - virtual void STDMETHODCALLTYPE FillAndMove( - /* [in] */ DXBASESAMPLE *pScratchBuffer, - /* [in] */ DXPMSAMPLE SampVal, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bDoOver) = 0; - - virtual void STDMETHODCALLTYPE FillRect( - /* [in] */ const RECT *pRect, - /* [in] */ DXPMSAMPLE SampVal, - /* [in] */ BOOL bDoOver) = 0; - - virtual void STDMETHODCALLTYPE OverSample( - /* [in] */ const DXOVERSAMPLEDESC *pOverDesc) = 0; - - virtual void STDMETHODCALLTYPE OverArrayAndMove( - /* [in] */ DXBASESAMPLE *pScratchBuffer, - /* [in] */ const DXPMSAMPLE *pSrc, - /* [in] */ ULONG cSamples) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXARGBReadWritePtrVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXARGBReadWritePtr * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXARGBReadWritePtr * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXARGBReadWritePtr * This); - - HRESULT ( STDMETHODCALLTYPE *GetSurface )( - IDXARGBReadWritePtr * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppSurface); - - DXSAMPLEFORMATENUM ( STDMETHODCALLTYPE *GetNativeType )( - IDXARGBReadWritePtr * This, - /* [out] */ DXNATIVETYPEINFO *pInfo); - - void ( STDMETHODCALLTYPE *Move )( - IDXARGBReadWritePtr * This, - /* [in] */ long cSamples); - - void ( STDMETHODCALLTYPE *MoveToRow )( - IDXARGBReadWritePtr * This, - /* [in] */ ULONG y); - - void ( STDMETHODCALLTYPE *MoveToXY )( - IDXARGBReadWritePtr * This, - /* [in] */ ULONG x, - /* [in] */ ULONG y); - - ULONG ( STDMETHODCALLTYPE *MoveAndGetRunInfo )( - IDXARGBReadWritePtr * This, - /* [in] */ ULONG Row, - /* [out] */ const DXRUNINFO **ppInfo); - - DXSAMPLE *( STDMETHODCALLTYPE *Unpack )( - IDXARGBReadWritePtr * This, - /* [in] */ DXSAMPLE *pSamples, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bMove); - - DXPMSAMPLE *( STDMETHODCALLTYPE *UnpackPremult )( - IDXARGBReadWritePtr * This, - /* [in] */ DXPMSAMPLE *pSamples, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bMove); - - void ( STDMETHODCALLTYPE *UnpackRect )( - IDXARGBReadWritePtr * This, - /* [in] */ const DXPACKEDRECTDESC *pRectDesc); - - void ( STDMETHODCALLTYPE *PackAndMove )( - IDXARGBReadWritePtr * This, - /* [in] */ const DXSAMPLE *pSamples, - /* [in] */ ULONG cSamples); - - void ( STDMETHODCALLTYPE *PackPremultAndMove )( - IDXARGBReadWritePtr * This, - /* [in] */ const DXPMSAMPLE *pSamples, - /* [in] */ ULONG cSamples); - - void ( STDMETHODCALLTYPE *PackRect )( - IDXARGBReadWritePtr * This, - /* [in] */ const DXPACKEDRECTDESC *pRectDesc); - - void ( STDMETHODCALLTYPE *CopyAndMoveBoth )( - IDXARGBReadWritePtr * This, - /* [in] */ DXBASESAMPLE *pScratchBuffer, - /* [in] */ IDXARGBReadPtr *pSrc, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bIsOpaque); - - void ( STDMETHODCALLTYPE *CopyRect )( - IDXARGBReadWritePtr * This, - /* [in] */ DXBASESAMPLE *pScratchBuffer, - /* [in] */ const RECT *pDestRect, - /* [in] */ IDXARGBReadPtr *pSrc, - /* [in] */ const POINT *pSrcOrigin, - /* [in] */ BOOL bIsOpaque); - - void ( STDMETHODCALLTYPE *FillAndMove )( - IDXARGBReadWritePtr * This, - /* [in] */ DXBASESAMPLE *pScratchBuffer, - /* [in] */ DXPMSAMPLE SampVal, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bDoOver); - - void ( STDMETHODCALLTYPE *FillRect )( - IDXARGBReadWritePtr * This, - /* [in] */ const RECT *pRect, - /* [in] */ DXPMSAMPLE SampVal, - /* [in] */ BOOL bDoOver); - - void ( STDMETHODCALLTYPE *OverSample )( - IDXARGBReadWritePtr * This, - /* [in] */ const DXOVERSAMPLEDESC *pOverDesc); - - void ( STDMETHODCALLTYPE *OverArrayAndMove )( - IDXARGBReadWritePtr * This, - /* [in] */ DXBASESAMPLE *pScratchBuffer, - /* [in] */ const DXPMSAMPLE *pSrc, - /* [in] */ ULONG cSamples); - - END_INTERFACE - } IDXARGBReadWritePtrVtbl; - - interface IDXARGBReadWritePtr - { - CONST_VTBL struct IDXARGBReadWritePtrVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXARGBReadWritePtr_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXARGBReadWritePtr_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXARGBReadWritePtr_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXARGBReadWritePtr_GetSurface(This,riid,ppSurface) \ - (This)->lpVtbl -> GetSurface(This,riid,ppSurface) - -#define IDXARGBReadWritePtr_GetNativeType(This,pInfo) \ - (This)->lpVtbl -> GetNativeType(This,pInfo) - -#define IDXARGBReadWritePtr_Move(This,cSamples) \ - (This)->lpVtbl -> Move(This,cSamples) - -#define IDXARGBReadWritePtr_MoveToRow(This,y) \ - (This)->lpVtbl -> MoveToRow(This,y) - -#define IDXARGBReadWritePtr_MoveToXY(This,x,y) \ - (This)->lpVtbl -> MoveToXY(This,x,y) - -#define IDXARGBReadWritePtr_MoveAndGetRunInfo(This,Row,ppInfo) \ - (This)->lpVtbl -> MoveAndGetRunInfo(This,Row,ppInfo) - -#define IDXARGBReadWritePtr_Unpack(This,pSamples,cSamples,bMove) \ - (This)->lpVtbl -> Unpack(This,pSamples,cSamples,bMove) - -#define IDXARGBReadWritePtr_UnpackPremult(This,pSamples,cSamples,bMove) \ - (This)->lpVtbl -> UnpackPremult(This,pSamples,cSamples,bMove) - -#define IDXARGBReadWritePtr_UnpackRect(This,pRectDesc) \ - (This)->lpVtbl -> UnpackRect(This,pRectDesc) - - -#define IDXARGBReadWritePtr_PackAndMove(This,pSamples,cSamples) \ - (This)->lpVtbl -> PackAndMove(This,pSamples,cSamples) - -#define IDXARGBReadWritePtr_PackPremultAndMove(This,pSamples,cSamples) \ - (This)->lpVtbl -> PackPremultAndMove(This,pSamples,cSamples) - -#define IDXARGBReadWritePtr_PackRect(This,pRectDesc) \ - (This)->lpVtbl -> PackRect(This,pRectDesc) - -#define IDXARGBReadWritePtr_CopyAndMoveBoth(This,pScratchBuffer,pSrc,cSamples,bIsOpaque) \ - (This)->lpVtbl -> CopyAndMoveBoth(This,pScratchBuffer,pSrc,cSamples,bIsOpaque) - -#define IDXARGBReadWritePtr_CopyRect(This,pScratchBuffer,pDestRect,pSrc,pSrcOrigin,bIsOpaque) \ - (This)->lpVtbl -> CopyRect(This,pScratchBuffer,pDestRect,pSrc,pSrcOrigin,bIsOpaque) - -#define IDXARGBReadWritePtr_FillAndMove(This,pScratchBuffer,SampVal,cSamples,bDoOver) \ - (This)->lpVtbl -> FillAndMove(This,pScratchBuffer,SampVal,cSamples,bDoOver) - -#define IDXARGBReadWritePtr_FillRect(This,pRect,SampVal,bDoOver) \ - (This)->lpVtbl -> FillRect(This,pRect,SampVal,bDoOver) - -#define IDXARGBReadWritePtr_OverSample(This,pOverDesc) \ - (This)->lpVtbl -> OverSample(This,pOverDesc) - -#define IDXARGBReadWritePtr_OverArrayAndMove(This,pScratchBuffer,pSrc,cSamples) \ - (This)->lpVtbl -> OverArrayAndMove(This,pScratchBuffer,pSrc,cSamples) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -void STDMETHODCALLTYPE IDXARGBReadWritePtr_PackAndMove_Proxy( - IDXARGBReadWritePtr * This, - /* [in] */ const DXSAMPLE *pSamples, - /* [in] */ ULONG cSamples); - - -void __RPC_STUB IDXARGBReadWritePtr_PackAndMove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -void STDMETHODCALLTYPE IDXARGBReadWritePtr_PackPremultAndMove_Proxy( - IDXARGBReadWritePtr * This, - /* [in] */ const DXPMSAMPLE *pSamples, - /* [in] */ ULONG cSamples); - - -void __RPC_STUB IDXARGBReadWritePtr_PackPremultAndMove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -void STDMETHODCALLTYPE IDXARGBReadWritePtr_PackRect_Proxy( - IDXARGBReadWritePtr * This, - /* [in] */ const DXPACKEDRECTDESC *pRectDesc); - - -void __RPC_STUB IDXARGBReadWritePtr_PackRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -void STDMETHODCALLTYPE IDXARGBReadWritePtr_CopyAndMoveBoth_Proxy( - IDXARGBReadWritePtr * This, - /* [in] */ DXBASESAMPLE *pScratchBuffer, - /* [in] */ IDXARGBReadPtr *pSrc, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bIsOpaque); - - -void __RPC_STUB IDXARGBReadWritePtr_CopyAndMoveBoth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -void STDMETHODCALLTYPE IDXARGBReadWritePtr_CopyRect_Proxy( - IDXARGBReadWritePtr * This, - /* [in] */ DXBASESAMPLE *pScratchBuffer, - /* [in] */ const RECT *pDestRect, - /* [in] */ IDXARGBReadPtr *pSrc, - /* [in] */ const POINT *pSrcOrigin, - /* [in] */ BOOL bIsOpaque); - - -void __RPC_STUB IDXARGBReadWritePtr_CopyRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -void STDMETHODCALLTYPE IDXARGBReadWritePtr_FillAndMove_Proxy( - IDXARGBReadWritePtr * This, - /* [in] */ DXBASESAMPLE *pScratchBuffer, - /* [in] */ DXPMSAMPLE SampVal, - /* [in] */ ULONG cSamples, - /* [in] */ BOOL bDoOver); - - -void __RPC_STUB IDXARGBReadWritePtr_FillAndMove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -void STDMETHODCALLTYPE IDXARGBReadWritePtr_FillRect_Proxy( - IDXARGBReadWritePtr * This, - /* [in] */ const RECT *pRect, - /* [in] */ DXPMSAMPLE SampVal, - /* [in] */ BOOL bDoOver); - - -void __RPC_STUB IDXARGBReadWritePtr_FillRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -void STDMETHODCALLTYPE IDXARGBReadWritePtr_OverSample_Proxy( - IDXARGBReadWritePtr * This, - /* [in] */ const DXOVERSAMPLEDESC *pOverDesc); - - -void __RPC_STUB IDXARGBReadWritePtr_OverSample_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -void STDMETHODCALLTYPE IDXARGBReadWritePtr_OverArrayAndMove_Proxy( - IDXARGBReadWritePtr * This, - /* [in] */ DXBASESAMPLE *pScratchBuffer, - /* [in] */ const DXPMSAMPLE *pSrc, - /* [in] */ ULONG cSamples); - - -void __RPC_STUB IDXARGBReadWritePtr_OverArrayAndMove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXARGBReadWritePtr_INTERFACE_DEFINED__ */ - - -#ifndef __IDXDCLock_INTERFACE_DEFINED__ -#define __IDXDCLock_INTERFACE_DEFINED__ - -/* interface IDXDCLock */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXDCLock; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("0F619456-CF39-11d1-905E-00C04FD9189D") - IDXDCLock : public IUnknown - { - public: - virtual HDC STDMETHODCALLTYPE GetDC( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXDCLockVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXDCLock * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXDCLock * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXDCLock * This); - - HDC ( STDMETHODCALLTYPE *GetDC )( - IDXDCLock * This); - - END_INTERFACE - } IDXDCLockVtbl; - - interface IDXDCLock - { - CONST_VTBL struct IDXDCLockVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXDCLock_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXDCLock_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXDCLock_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXDCLock_GetDC(This) \ - (This)->lpVtbl -> GetDC(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HDC STDMETHODCALLTYPE IDXDCLock_GetDC_Proxy( - IDXDCLock * This); - - -void __RPC_STUB IDXDCLock_GetDC_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXDCLock_INTERFACE_DEFINED__ */ - - -#ifndef __IDXTScaleOutput_INTERFACE_DEFINED__ -#define __IDXTScaleOutput_INTERFACE_DEFINED__ - -/* interface IDXTScaleOutput */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXTScaleOutput; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B2024B50-EE77-11d1-9066-00C04FD9189D") - IDXTScaleOutput : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetOutputSize( - /* [in] */ const SIZE OutSize, - /* [in] */ BOOL bMaintainAspect) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXTScaleOutputVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXTScaleOutput * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXTScaleOutput * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXTScaleOutput * This); - - HRESULT ( STDMETHODCALLTYPE *SetOutputSize )( - IDXTScaleOutput * This, - /* [in] */ const SIZE OutSize, - /* [in] */ BOOL bMaintainAspect); - - END_INTERFACE - } IDXTScaleOutputVtbl; - - interface IDXTScaleOutput - { - CONST_VTBL struct IDXTScaleOutputVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXTScaleOutput_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXTScaleOutput_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXTScaleOutput_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXTScaleOutput_SetOutputSize(This,OutSize,bMaintainAspect) \ - (This)->lpVtbl -> SetOutputSize(This,OutSize,bMaintainAspect) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXTScaleOutput_SetOutputSize_Proxy( - IDXTScaleOutput * This, - /* [in] */ const SIZE OutSize, - /* [in] */ BOOL bMaintainAspect); - - -void __RPC_STUB IDXTScaleOutput_SetOutputSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXTScaleOutput_INTERFACE_DEFINED__ */ - - -#ifndef __IDXGradient_INTERFACE_DEFINED__ -#define __IDXGradient_INTERFACE_DEFINED__ - -/* interface IDXGradient */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXGradient; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B2024B51-EE77-11d1-9066-00C04FD9189D") - IDXGradient : public IDXTScaleOutput - { - public: - virtual HRESULT STDMETHODCALLTYPE SetGradient( - DXSAMPLE StartColor, - DXSAMPLE EndColor, - BOOL bHorizontal) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetOutputSize( - /* [out] */ SIZE *pOutSize) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXGradientVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXGradient * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXGradient * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXGradient * This); - - HRESULT ( STDMETHODCALLTYPE *SetOutputSize )( - IDXGradient * This, - /* [in] */ const SIZE OutSize, - /* [in] */ BOOL bMaintainAspect); - - HRESULT ( STDMETHODCALLTYPE *SetGradient )( - IDXGradient * This, - DXSAMPLE StartColor, - DXSAMPLE EndColor, - BOOL bHorizontal); - - HRESULT ( STDMETHODCALLTYPE *GetOutputSize )( - IDXGradient * This, - /* [out] */ SIZE *pOutSize); - - END_INTERFACE - } IDXGradientVtbl; - - interface IDXGradient - { - CONST_VTBL struct IDXGradientVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXGradient_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXGradient_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXGradient_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXGradient_SetOutputSize(This,OutSize,bMaintainAspect) \ - (This)->lpVtbl -> SetOutputSize(This,OutSize,bMaintainAspect) - - -#define IDXGradient_SetGradient(This,StartColor,EndColor,bHorizontal) \ - (This)->lpVtbl -> SetGradient(This,StartColor,EndColor,bHorizontal) - -#define IDXGradient_GetOutputSize(This,pOutSize) \ - (This)->lpVtbl -> GetOutputSize(This,pOutSize) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXGradient_SetGradient_Proxy( - IDXGradient * This, - DXSAMPLE StartColor, - DXSAMPLE EndColor, - BOOL bHorizontal); - - -void __RPC_STUB IDXGradient_SetGradient_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXGradient_GetOutputSize_Proxy( - IDXGradient * This, - /* [out] */ SIZE *pOutSize); - - -void __RPC_STUB IDXGradient_GetOutputSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXGradient_INTERFACE_DEFINED__ */ - - -#ifndef __IDXTScale_INTERFACE_DEFINED__ -#define __IDXTScale_INTERFACE_DEFINED__ - -/* interface IDXTScale */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXTScale; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B39FD742-E139-11d1-9065-00C04FD9189D") - IDXTScale : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetScales( - /* [in] */ float Scales[ 2 ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetScales( - /* [out] */ float Scales[ 2 ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE ScaleFitToSize( - /* [out][in] */ DXBNDS *pClipBounds, - /* [in] */ SIZE FitToSize, - /* [in] */ BOOL bMaintainAspect) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXTScaleVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXTScale * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXTScale * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXTScale * This); - - HRESULT ( STDMETHODCALLTYPE *SetScales )( - IDXTScale * This, - /* [in] */ float Scales[ 2 ]); - - HRESULT ( STDMETHODCALLTYPE *GetScales )( - IDXTScale * This, - /* [out] */ float Scales[ 2 ]); - - HRESULT ( STDMETHODCALLTYPE *ScaleFitToSize )( - IDXTScale * This, - /* [out][in] */ DXBNDS *pClipBounds, - /* [in] */ SIZE FitToSize, - /* [in] */ BOOL bMaintainAspect); - - END_INTERFACE - } IDXTScaleVtbl; - - interface IDXTScale - { - CONST_VTBL struct IDXTScaleVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXTScale_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXTScale_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXTScale_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXTScale_SetScales(This,Scales) \ - (This)->lpVtbl -> SetScales(This,Scales) - -#define IDXTScale_GetScales(This,Scales) \ - (This)->lpVtbl -> GetScales(This,Scales) - -#define IDXTScale_ScaleFitToSize(This,pClipBounds,FitToSize,bMaintainAspect) \ - (This)->lpVtbl -> ScaleFitToSize(This,pClipBounds,FitToSize,bMaintainAspect) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXTScale_SetScales_Proxy( - IDXTScale * This, - /* [in] */ float Scales[ 2 ]); - - -void __RPC_STUB IDXTScale_SetScales_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTScale_GetScales_Proxy( - IDXTScale * This, - /* [out] */ float Scales[ 2 ]); - - -void __RPC_STUB IDXTScale_GetScales_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXTScale_ScaleFitToSize_Proxy( - IDXTScale * This, - /* [out][in] */ DXBNDS *pClipBounds, - /* [in] */ SIZE FitToSize, - /* [in] */ BOOL bMaintainAspect); - - -void __RPC_STUB IDXTScale_ScaleFitToSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXTScale_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_dxtrans_0276 */ -/* [local] */ - -typedef -enum DISPIDDXEFFECT - { DISPID_DXECAPABILITIES = 10000, - DISPID_DXEPROGRESS = DISPID_DXECAPABILITIES + 1, - DISPID_DXESTEP = DISPID_DXEPROGRESS + 1, - DISPID_DXEDURATION = DISPID_DXESTEP + 1, - DISPID_DXE_NEXT_ID = DISPID_DXEDURATION + 1 - } DISPIDDXBOUNDEDEFFECT; - -typedef -enum DXEFFECTTYPE - { DXTET_PERIODIC = 1 << 0, - DXTET_MORPH = 1 << 1 - } DXEFFECTTYPE; - - - -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0276_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0276_v0_0_s_ifspec; - -#ifndef __IDXEffect_INTERFACE_DEFINED__ -#define __IDXEffect_INTERFACE_DEFINED__ - -/* interface IDXEffect */ -/* [dual][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXEffect; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("E31FB81B-1335-11d1-8189-0000F87557DB") - IDXEffect : public IDispatch - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Capabilities( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Progress( - /* [retval][out] */ float *pVal) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Progress( - /* [in] */ float newVal) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_StepResolution( - /* [retval][out] */ float *pVal) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Duration( - /* [retval][out] */ float *pVal) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Duration( - /* [in] */ float newVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXEffectVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXEffect * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXEffect * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXEffect * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDXEffect * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDXEffect * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDXEffect * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDXEffect * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Capabilities )( - IDXEffect * This, - /* [retval][out] */ long *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Progress )( - IDXEffect * This, - /* [retval][out] */ float *pVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Progress )( - IDXEffect * This, - /* [in] */ float newVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StepResolution )( - IDXEffect * This, - /* [retval][out] */ float *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Duration )( - IDXEffect * This, - /* [retval][out] */ float *pVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Duration )( - IDXEffect * This, - /* [in] */ float newVal); - - END_INTERFACE - } IDXEffectVtbl; - - interface IDXEffect - { - CONST_VTBL struct IDXEffectVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXEffect_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXEffect_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXEffect_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXEffect_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDXEffect_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDXEffect_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDXEffect_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDXEffect_get_Capabilities(This,pVal) \ - (This)->lpVtbl -> get_Capabilities(This,pVal) - -#define IDXEffect_get_Progress(This,pVal) \ - (This)->lpVtbl -> get_Progress(This,pVal) - -#define IDXEffect_put_Progress(This,newVal) \ - (This)->lpVtbl -> put_Progress(This,newVal) - -#define IDXEffect_get_StepResolution(This,pVal) \ - (This)->lpVtbl -> get_StepResolution(This,pVal) - -#define IDXEffect_get_Duration(This,pVal) \ - (This)->lpVtbl -> get_Duration(This,pVal) - -#define IDXEffect_put_Duration(This,newVal) \ - (This)->lpVtbl -> put_Duration(This,newVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IDXEffect_get_Capabilities_Proxy( - IDXEffect * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDXEffect_get_Capabilities_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IDXEffect_get_Progress_Proxy( - IDXEffect * This, - /* [retval][out] */ float *pVal); - - -void __RPC_STUB IDXEffect_get_Progress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IDXEffect_put_Progress_Proxy( - IDXEffect * This, - /* [in] */ float newVal); - - -void __RPC_STUB IDXEffect_put_Progress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IDXEffect_get_StepResolution_Proxy( - IDXEffect * This, - /* [retval][out] */ float *pVal); - - -void __RPC_STUB IDXEffect_get_StepResolution_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE IDXEffect_get_Duration_Proxy( - IDXEffect * This, - /* [retval][out] */ float *pVal); - - -void __RPC_STUB IDXEffect_get_Duration_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE IDXEffect_put_Duration_Proxy( - IDXEffect * This, - /* [in] */ float newVal); - - -void __RPC_STUB IDXEffect_put_Duration_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXEffect_INTERFACE_DEFINED__ */ - - -#ifndef __IDXLookupTable_INTERFACE_DEFINED__ -#define __IDXLookupTable_INTERFACE_DEFINED__ - -/* interface IDXLookupTable */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXLookupTable; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("01BAFC7F-9E63-11d1-9053-00C04FD9189D") - IDXLookupTable : public IDXBaseObject - { - public: - virtual HRESULT STDMETHODCALLTYPE GetTables( - /* [out] */ BYTE RedLUT[ 256 ], - /* [out] */ BYTE GreenLUT[ 256 ], - /* [out] */ BYTE BlueLUT[ 256 ], - /* [out] */ BYTE AlphaLUT[ 256 ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsChannelIdentity( - /* [out] */ DXBASESAMPLE *pSampleBools) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetIndexValues( - /* [in] */ ULONG Index, - /* [out] */ DXBASESAMPLE *pSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE ApplyTables( - /* [out][in] */ DXSAMPLE *pSamples, - /* [in] */ ULONG cSamples) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXLookupTableVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXLookupTable * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXLookupTable * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXLookupTable * This); - - HRESULT ( STDMETHODCALLTYPE *GetGenerationId )( - IDXLookupTable * This, - /* [out] */ ULONG *pID); - - HRESULT ( STDMETHODCALLTYPE *IncrementGenerationId )( - IDXLookupTable * This, - /* [in] */ BOOL bRefresh); - - HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( - IDXLookupTable * This, - /* [out] */ ULONG *pcbSize); - - HRESULT ( STDMETHODCALLTYPE *GetTables )( - IDXLookupTable * This, - /* [out] */ BYTE RedLUT[ 256 ], - /* [out] */ BYTE GreenLUT[ 256 ], - /* [out] */ BYTE BlueLUT[ 256 ], - /* [out] */ BYTE AlphaLUT[ 256 ]); - - HRESULT ( STDMETHODCALLTYPE *IsChannelIdentity )( - IDXLookupTable * This, - /* [out] */ DXBASESAMPLE *pSampleBools); - - HRESULT ( STDMETHODCALLTYPE *GetIndexValues )( - IDXLookupTable * This, - /* [in] */ ULONG Index, - /* [out] */ DXBASESAMPLE *pSample); - - HRESULT ( STDMETHODCALLTYPE *ApplyTables )( - IDXLookupTable * This, - /* [out][in] */ DXSAMPLE *pSamples, - /* [in] */ ULONG cSamples); - - END_INTERFACE - } IDXLookupTableVtbl; - - interface IDXLookupTable - { - CONST_VTBL struct IDXLookupTableVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXLookupTable_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXLookupTable_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXLookupTable_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXLookupTable_GetGenerationId(This,pID) \ - (This)->lpVtbl -> GetGenerationId(This,pID) - -#define IDXLookupTable_IncrementGenerationId(This,bRefresh) \ - (This)->lpVtbl -> IncrementGenerationId(This,bRefresh) - -#define IDXLookupTable_GetObjectSize(This,pcbSize) \ - (This)->lpVtbl -> GetObjectSize(This,pcbSize) - - -#define IDXLookupTable_GetTables(This,RedLUT,GreenLUT,BlueLUT,AlphaLUT) \ - (This)->lpVtbl -> GetTables(This,RedLUT,GreenLUT,BlueLUT,AlphaLUT) - -#define IDXLookupTable_IsChannelIdentity(This,pSampleBools) \ - (This)->lpVtbl -> IsChannelIdentity(This,pSampleBools) - -#define IDXLookupTable_GetIndexValues(This,Index,pSample) \ - (This)->lpVtbl -> GetIndexValues(This,Index,pSample) - -#define IDXLookupTable_ApplyTables(This,pSamples,cSamples) \ - (This)->lpVtbl -> ApplyTables(This,pSamples,cSamples) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXLookupTable_GetTables_Proxy( - IDXLookupTable * This, - /* [out] */ BYTE RedLUT[ 256 ], - /* [out] */ BYTE GreenLUT[ 256 ], - /* [out] */ BYTE BlueLUT[ 256 ], - /* [out] */ BYTE AlphaLUT[ 256 ]); - - -void __RPC_STUB IDXLookupTable_GetTables_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXLookupTable_IsChannelIdentity_Proxy( - IDXLookupTable * This, - /* [out] */ DXBASESAMPLE *pSampleBools); - - -void __RPC_STUB IDXLookupTable_IsChannelIdentity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXLookupTable_GetIndexValues_Proxy( - IDXLookupTable * This, - /* [in] */ ULONG Index, - /* [out] */ DXBASESAMPLE *pSample); - - -void __RPC_STUB IDXLookupTable_GetIndexValues_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDXLookupTable_ApplyTables_Proxy( - IDXLookupTable * This, - /* [out][in] */ DXSAMPLE *pSamples, - /* [in] */ ULONG cSamples); - - -void __RPC_STUB IDXLookupTable_ApplyTables_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXLookupTable_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_dxtrans_0278 */ -/* [local] */ - -typedef struct DXRAWSURFACEINFO - { - BYTE *pFirstByte; - long lPitch; - ULONG Width; - ULONG Height; - const GUID *pPixelFormat; - HDC hdc; - DWORD dwColorKey; - DXBASESAMPLE *pPalette; - } DXRAWSURFACEINFO; - - - -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0278_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0278_v0_0_s_ifspec; - -#ifndef __IDXRawSurface_INTERFACE_DEFINED__ -#define __IDXRawSurface_INTERFACE_DEFINED__ - -/* interface IDXRawSurface */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IDXRawSurface; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("09756C8A-D96A-11d1-9062-00C04FD9189D") - IDXRawSurface : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetSurfaceInfo( - DXRAWSURFACEINFO *pSurfaceInfo) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDXRawSurfaceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDXRawSurface * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDXRawSurface * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDXRawSurface * This); - - HRESULT ( STDMETHODCALLTYPE *GetSurfaceInfo )( - IDXRawSurface * This, - DXRAWSURFACEINFO *pSurfaceInfo); - - END_INTERFACE - } IDXRawSurfaceVtbl; - - interface IDXRawSurface - { - CONST_VTBL struct IDXRawSurfaceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDXRawSurface_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDXRawSurface_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDXRawSurface_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDXRawSurface_GetSurfaceInfo(This,pSurfaceInfo) \ - (This)->lpVtbl -> GetSurfaceInfo(This,pSurfaceInfo) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDXRawSurface_GetSurfaceInfo_Proxy( - IDXRawSurface * This, - DXRAWSURFACEINFO *pSurfaceInfo); - - -void __RPC_STUB IDXRawSurface_GetSurfaceInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDXRawSurface_INTERFACE_DEFINED__ */ - - -#ifndef __IHTMLDXTransform_INTERFACE_DEFINED__ -#define __IHTMLDXTransform_INTERFACE_DEFINED__ - -/* interface IHTMLDXTransform */ -/* [local][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IHTMLDXTransform; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("30E2AB7D-4FDD-4159-B7EA-DC722BF4ADE5") - IHTMLDXTransform : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetHostUrl( - BSTR bstrHostUrl) = 0; - - }; - -#else /* C style interface */ - - typedef struct IHTMLDXTransformVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IHTMLDXTransform * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IHTMLDXTransform * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IHTMLDXTransform * This); - - HRESULT ( STDMETHODCALLTYPE *SetHostUrl )( - IHTMLDXTransform * This, - BSTR bstrHostUrl); - - END_INTERFACE - } IHTMLDXTransformVtbl; - - interface IHTMLDXTransform - { - CONST_VTBL struct IHTMLDXTransformVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IHTMLDXTransform_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IHTMLDXTransform_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IHTMLDXTransform_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IHTMLDXTransform_SetHostUrl(This,bstrHostUrl) \ - (This)->lpVtbl -> SetHostUrl(This,bstrHostUrl) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IHTMLDXTransform_SetHostUrl_Proxy( - IHTMLDXTransform * This, - BSTR bstrHostUrl); - - -void __RPC_STUB IHTMLDXTransform_SetHostUrl_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IHTMLDXTransform_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_dxtrans_0280 */ -/* [local] */ - -typedef -enum DXTFILTER_STATUS - { DXTFILTER_STATUS_Stopped = 0, - DXTFILTER_STATUS_Applied = DXTFILTER_STATUS_Stopped + 1, - DXTFILTER_STATUS_Playing = DXTFILTER_STATUS_Applied + 1, - DXTFILTER_STATUS_MAX = DXTFILTER_STATUS_Playing + 1 - } DXTFILTER_STATUS; - -typedef -enum DXTFILTER_DISPID - { DISPID_DXTFilter_Percent = 1, - DISPID_DXTFilter_Duration = DISPID_DXTFilter_Percent + 1, - DISPID_DXTFilter_Enabled = DISPID_DXTFilter_Duration + 1, - DISPID_DXTFilter_Status = DISPID_DXTFilter_Enabled + 1, - DISPID_DXTFilter_Apply = DISPID_DXTFilter_Status + 1, - DISPID_DXTFilter_Play = DISPID_DXTFilter_Apply + 1, - DISPID_DXTFilter_Stop = DISPID_DXTFilter_Play + 1, - DISPID_DXTFilter_MAX = DISPID_DXTFilter_Stop + 1 - } DXTFILTER_DISPID; - - - -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0280_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_dxtrans_0280_v0_0_s_ifspec; - -#ifndef __ICSSFilterDispatch_INTERFACE_DEFINED__ -#define __ICSSFilterDispatch_INTERFACE_DEFINED__ - -/* interface ICSSFilterDispatch */ -/* [dual][unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_ICSSFilterDispatch; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9519152B-9484-4A6C-B6A7-4F25E92D6C6B") - ICSSFilterDispatch : public IDispatch - { - public: - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Percent( - /* [retval][out] */ float *pVal) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Percent( - /* [in] */ float newVal) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Duration( - /* [retval][out] */ float *pVal) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Duration( - /* [in] */ float newVal) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Enabled( - /* [retval][out] */ VARIANT_BOOL *pfVal) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Enabled( - /* [in] */ VARIANT_BOOL fVal) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( - /* [retval][out] */ DXTFILTER_STATUS *peVal) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Apply( void) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Play( - /* [optional][in] */ VARIANT varDuration) = 0; - - virtual /* [id] */ HRESULT STDMETHODCALLTYPE Stop( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICSSFilterDispatchVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICSSFilterDispatch * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICSSFilterDispatch * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICSSFilterDispatch * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ICSSFilterDispatch * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ICSSFilterDispatch * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ICSSFilterDispatch * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ICSSFilterDispatch * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Percent )( - ICSSFilterDispatch * This, - /* [retval][out] */ float *pVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Percent )( - ICSSFilterDispatch * This, - /* [in] */ float newVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Duration )( - ICSSFilterDispatch * This, - /* [retval][out] */ float *pVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Duration )( - ICSSFilterDispatch * This, - /* [in] */ float newVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )( - ICSSFilterDispatch * This, - /* [retval][out] */ VARIANT_BOOL *pfVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enabled )( - ICSSFilterDispatch * This, - /* [in] */ VARIANT_BOOL fVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - ICSSFilterDispatch * This, - /* [retval][out] */ DXTFILTER_STATUS *peVal); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Apply )( - ICSSFilterDispatch * This); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Play )( - ICSSFilterDispatch * This, - /* [optional][in] */ VARIANT varDuration); - - /* [id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( - ICSSFilterDispatch * This); - - END_INTERFACE - } ICSSFilterDispatchVtbl; - - interface ICSSFilterDispatch - { - CONST_VTBL struct ICSSFilterDispatchVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICSSFilterDispatch_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICSSFilterDispatch_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICSSFilterDispatch_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICSSFilterDispatch_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ICSSFilterDispatch_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ICSSFilterDispatch_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ICSSFilterDispatch_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ICSSFilterDispatch_get_Percent(This,pVal) \ - (This)->lpVtbl -> get_Percent(This,pVal) - -#define ICSSFilterDispatch_put_Percent(This,newVal) \ - (This)->lpVtbl -> put_Percent(This,newVal) - -#define ICSSFilterDispatch_get_Duration(This,pVal) \ - (This)->lpVtbl -> get_Duration(This,pVal) - -#define ICSSFilterDispatch_put_Duration(This,newVal) \ - (This)->lpVtbl -> put_Duration(This,newVal) - -#define ICSSFilterDispatch_get_Enabled(This,pfVal) \ - (This)->lpVtbl -> get_Enabled(This,pfVal) - -#define ICSSFilterDispatch_put_Enabled(This,fVal) \ - (This)->lpVtbl -> put_Enabled(This,fVal) - -#define ICSSFilterDispatch_get_Status(This,peVal) \ - (This)->lpVtbl -> get_Status(This,peVal) - -#define ICSSFilterDispatch_Apply(This) \ - (This)->lpVtbl -> Apply(This) - -#define ICSSFilterDispatch_Play(This,varDuration) \ - (This)->lpVtbl -> Play(This,varDuration) - -#define ICSSFilterDispatch_Stop(This) \ - (This)->lpVtbl -> Stop(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICSSFilterDispatch_get_Percent_Proxy( - ICSSFilterDispatch * This, - /* [retval][out] */ float *pVal); - - -void __RPC_STUB ICSSFilterDispatch_get_Percent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICSSFilterDispatch_put_Percent_Proxy( - ICSSFilterDispatch * This, - /* [in] */ float newVal); - - -void __RPC_STUB ICSSFilterDispatch_put_Percent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICSSFilterDispatch_get_Duration_Proxy( - ICSSFilterDispatch * This, - /* [retval][out] */ float *pVal); - - -void __RPC_STUB ICSSFilterDispatch_get_Duration_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICSSFilterDispatch_put_Duration_Proxy( - ICSSFilterDispatch * This, - /* [in] */ float newVal); - - -void __RPC_STUB ICSSFilterDispatch_put_Duration_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICSSFilterDispatch_get_Enabled_Proxy( - ICSSFilterDispatch * This, - /* [retval][out] */ VARIANT_BOOL *pfVal); - - -void __RPC_STUB ICSSFilterDispatch_get_Enabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ICSSFilterDispatch_put_Enabled_Proxy( - ICSSFilterDispatch * This, - /* [in] */ VARIANT_BOOL fVal); - - -void __RPC_STUB ICSSFilterDispatch_put_Enabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ICSSFilterDispatch_get_Status_Proxy( - ICSSFilterDispatch * This, - /* [retval][out] */ DXTFILTER_STATUS *peVal); - - -void __RPC_STUB ICSSFilterDispatch_get_Status_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE ICSSFilterDispatch_Apply_Proxy( - ICSSFilterDispatch * This); - - -void __RPC_STUB ICSSFilterDispatch_Apply_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE ICSSFilterDispatch_Play_Proxy( - ICSSFilterDispatch * This, - /* [optional][in] */ VARIANT varDuration); - - -void __RPC_STUB ICSSFilterDispatch_Play_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id] */ HRESULT STDMETHODCALLTYPE ICSSFilterDispatch_Stop_Proxy( - ICSSFilterDispatch * This); - - -void __RPC_STUB ICSSFilterDispatch_Stop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICSSFilterDispatch_INTERFACE_DEFINED__ */ - - - -#ifndef __DXTRANSLib_LIBRARY_DEFINED__ -#define __DXTRANSLib_LIBRARY_DEFINED__ - -/* library DXTRANSLib */ -/* [helpstring][version][uuid] */ - - -EXTERN_C const IID LIBID_DXTRANSLib; - -EXTERN_C const CLSID CLSID_DXTransformFactory; - -#ifdef __cplusplus - -class DECLSPEC_UUID("D1FE6762-FC48-11D0-883A-3C8B00C10000") -DXTransformFactory; -#endif - -EXTERN_C const CLSID CLSID_DXTaskManager; - -#ifdef __cplusplus - -class DECLSPEC_UUID("4CB26C03-FF93-11d0-817E-0000F87557DB") -DXTaskManager; -#endif - -EXTERN_C const CLSID CLSID_DXTScale; - -#ifdef __cplusplus - -class DECLSPEC_UUID("555278E2-05DB-11D1-883A-3C8B00C10000") -DXTScale; -#endif - -EXTERN_C const CLSID CLSID_DXSurface; - -#ifdef __cplusplus - -class DECLSPEC_UUID("0E890F83-5F79-11D1-9043-00C04FD9189D") -DXSurface; -#endif - -EXTERN_C const CLSID CLSID_DXSurfaceModifier; - -#ifdef __cplusplus - -class DECLSPEC_UUID("3E669F1D-9C23-11d1-9053-00C04FD9189D") -DXSurfaceModifier; -#endif - -EXTERN_C const CLSID CLSID_DXGradient; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C6365470-F667-11d1-9067-00C04FD9189D") -DXGradient; -#endif - -EXTERN_C const CLSID CLSID_DXTFilter; - -#ifdef __cplusplus - -class DECLSPEC_UUID("385A91BC-1E8A-4e4a-A7A6-F4FC1E6CA1BD") -DXTFilter; -#endif -#endif /* __DXTRANSLib_LIBRARY_DEFINED__ */ - -/* Additional Prototypes for ALL interfaces */ - -unsigned long __RPC_USER VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); -void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * ); - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/dxva.h b/sdk/dx8sdk/Include/dxva.h deleted file mode 100644 index 05d46680..00000000 --- a/sdk/dx8sdk/Include/dxva.h +++ /dev/null @@ -1,1359 +0,0 @@ -//------------------------------------------------------------------------------ -// File: DXVA.h -// -// Desc: DirectX Video Acceleration header file. -// -// Copyright (c) 1999 - 2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef __DIRECTX_VA__ -#define __DIRECTX_VA__ - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef __DIRECTX_VA_COPP_ONLY -#define __DIRECTX_VA_DECODER__ -#define __DIRECTX_VA_PROCAMPCONTROL__ -#define __DIRECTX_VA_DEINTERLACE__ -#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_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_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_Ai, 0x1b81be92, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); -DEFINE_GUID(DXVA_ModeWMV9_Bi, 0x1b81be93, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); - - -DEFINE_GUID(DXVA_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); - -#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_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_Ai 0x92 -#define DXVA_RESTRICTED_MODE_WMV9_Bi 0x93 - - -#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 - -#define DXVA_NUM_TYPES_COMP_BUFFERS 16 - -/* 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 - -/* 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; - - -#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) - -/* - * 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. -// -// ------------------------------------------------------------------------- -#ifndef __DIRECTX_VA_SAMPLEFORMAT__ -#define __DIRECTX_VA_SAMPLEFORMAT__ - -#ifndef DXVABit -#define DXVABit(__x) (1 << __x) -#endif - -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)) - -// ------------------------------------------------------------------------- -// -// DXVA Extended color data - occupies the HIWORD of the SampleFormat DWORD -// use the DXVA_ExtractExtColorData macro to extract the individual color -// data fields. -// -// The packed form is: -// VideoTransferFunction (bits 15..12) -// VideoPrimaries (bits 11..8) -// VideoLighting (bits 7..5) -// VideoTransferMatrix (Y'Cb'Cr') OR VideoNominalRange (RGB images) (bits 4..2) -// VideoChromaSubsampling (bits 1..0) -// -// ------------------------------------------------------------------------- - -#define DXVA_ExtractExtColorData(_sf, _Mask, _Shift) \ - (((_sf) >> (_Shift)) & (_Mask)) - -#define DXVA_ExtColorData_ShiftBase 16 - -typedef enum _DXVA_VideoTransferFunction -{ - DXVA_VideoTransFuncMask = DXVABit(15)|DXVABit(14)|DXVABit(13)|DXVABit(12), - DXVA_VideoTransFuncShift = (DXVA_ExtColorData_ShiftBase + 12), - - DXVA_VideoTransFunc_Unknown = 0, - DXVA_VideoTransFunc_10 = 1, - DXVA_VideoTransFunc_18 = 2, - DXVA_VideoTransFunc_20 = 3, - DXVA_VideoTransFunc_22 = 4, - DXVA_VideoTransFunc_22_8bit = 5, - DXVA_VideoTransFunc_22_8bit_240M = 6, - DXVA_VideoTransFunc_24_8bit_sRGB = 7, - DXVA_VideoTransFunc_28 = 8 -} DXVA_VideoTransferFunction; - - -typedef enum _DXVA_VideoPrimaries -{ - DXVA_VideoPrimariesMask = DXVABit(11)|DXVABit(10)|DXVABit(9)|DXVABit(8), - DXVA_VideoPrimariesShift = (DXVA_ExtColorData_ShiftBase + 8), - - DXVA_VideoPrimaries_Unknown = 0, - DXVA_VideoPrimaries_BT601 = 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_VideoLightingMask = DXVABit(7)|DXVABit(6)|DXVABit(5), - DXVA_VideoLightingShift = (DXVA_ExtColorData_ShiftBase + 5), - - DXVA_VideoLighting_Unknown = 0, - DXVA_VideoLighting_bright = 1, - DXVA_VideoLighting_office = 2, - DXVA_VideoLighting_dim = 3, - DXVA_VideoLighting_dark = 4 -} DXVA_VideoLighting; - - -// ------------------------------------------------------------------------- -// Note: -// -// DXVA_NominalRange and DXVA_VideoTransferMatrix are unioned together. -// -// ------------------------------------------------------------------------- -// - -typedef enum _DXVA_VideoTransferMatrix -{ - DXVA_VideoTransferMatrixMask = DXVABit(4)|DXVABit(3)|DXVABit(2), - DXVA_VideoTransferMatrixShift = (DXVA_ExtColorData_ShiftBase + 2), - - DXVA_VideoTransferMatrix_Unknown = 0, - DXVA_VideoTransferMatrix_BT709 = 1, - DXVA_VideoTransferMatrix_BT601 = 2, - DXVA_VideoTransferMatrix_SMPTE240M = 3 -} DXVA_VideoTransferMatrix; - - -typedef enum _DXVA_NominalRange -{ - DXVA_NominalRangeMask = DXVABit(4)|DXVABit(3)|DXVABit(2), - DXVA_NominalRangeShift = (DXVA_ExtColorData_ShiftBase + 2), - - DXVA_NominalRange_Normal = 0, - DXVA_NominalRange_Wide = 1 -} DXVA_NominalRange; - - -typedef enum _DXVA_VideoChromaSubsampling -{ - DXVA_VideoChromaSubsamplingMask = DXVABit(1)|DXVABit(0), - DXVA_VideoChromaSubsamplingShift = (DXVA_ExtColorData_ShiftBase + 0), - - DXVA_VideoChromaSubsampling_Unknown = 0, - DXVA_VideoChromaSubsampling_non_cosited = 1, - DXVA_VideoChromaSubsampling_cosited = 2 -} DXVA_VideoChromaSubsampling; - -#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 { - REFERENCE_TIME rtStart; - REFERENCE_TIME rtEnd; - DWORD SampleFormat; - 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 - -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 TypeSpecificMask; - ULONG TypeSpecificInfo; -} 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_CopyFreely = 0, - COPP_CGMSA_LevelMin = COPP_CGMSA_CopyFreely, - COPP_CGMSA_CopyOneGeneration = 2, - COPP_CGMSA_CopyNever = 3, - COPP_CGMSA_RedistributionControlRequired = 0x04, - COPP_CGMSA_LevelMax = (COPP_CGMSA_RedistributionControlRequired + COPP_CGMSA_CopyNever), - COPP_CGMSA_ForceDWORD = 0x7fffffff -} COPP_CGMSA_Protection_Level; - -#define COPP_WSS_FLAG 0x01 // used with DXVA_COPPSetProtectionLevelCmdData::TypeSpecificInfo - -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 -}; - -// ------------------------------------------------------------------------- -// 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 TypeSpecificMask; - ULONG TypeSpecificInfo; -} 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_HDCPReceiver = 0x00, - COPP_HDCPRepeater = 0x01 -} 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; - - -#endif /* __DIRECTX_VA_CERTOUTPUTPROTECT__ */ - -#ifdef __cplusplus -} -#endif - -#endif /* __DIRECTX_VA__ */ diff --git a/sdk/dx8sdk/Include/edevctrl.h b/sdk/dx8sdk/Include/edevctrl.h deleted file mode 100644 index 07510447..00000000 --- a/sdk/dx8sdk/Include/edevctrl.h +++ /dev/null @@ -1,346 +0,0 @@ -/*++ - -Copyright (C) Microsoft Corporation, 1998 - 1999 - -Module Name: - - EDevCtrl.h - -Abstract: - - This header contain structures and peroperty sets for - interfacing to an external device, like a DV. - The code is modeled after DirectShow's Vcrctrl Sample - (VCR Control Filter). It contain IAMExtDevice, - IAMExtTransport, and IAMTimecodeReader interfaces, and - a new interface IAMAdvancedAVControl() is added - for additional advanced device controls. - - Note: (From DShow DDK) - The VCR control sample filter, Vcrctrl, is a simple - implementation of the external device control interfaces - that DirectShow provides. Vcrctrl provides basic transport - control and SMPTE timecode-reading capabilities for certain - Betacam and SVHS videocassette recorders with RS-422 or RS-232 - serial interfaces (see source code for specific machine types - supported). - - Note: some methods in IAM* interfaces may not be - used and will return not implemented. - -Created: - - September 23, 1998 - - Yee J. Wu - - -Revision: - - 0.6 - ---*/ - -#ifndef __EDevCtrl__ -#define __EDevCtrl__ - -#ifndef TIMECODE_DEFINED -#define TIMECODE_DEFINED -typedef union _timecode { - struct { - WORD wFrameRate; - WORD wFrameFract; - DWORD dwFrames; - }; - DWORDLONG qw; - } TIMECODE; - - - -typedef TIMECODE *PTIMECODE; - -typedef struct tagTIMECODE_SAMPLE - { - LONGLONG qwTick; - TIMECODE timecode; - DWORD dwUser; - DWORD dwFlags; - } TIMECODE_SAMPLE; - -typedef TIMECODE_SAMPLE *PTIMECODE_SAMPLE; - -#endif /* TIMECODE_DEFINED */ - -// Device Capabilities -typedef struct tagDEVCAPS{ - long CanRecord; - long CanRecordStrobe; - long HasAudio; - long HasVideo; - long UsesFiles; - long CanSave; - long DeviceType; - long TCRead; - long TCWrite; - long CTLRead; - long IndexRead; - long Preroll; - long Postroll; - long SyncAcc; - long NormRate; - long CanPreview; - long CanMonitorSrc; - long CanTest; - long VideoIn; - long AudioIn; - long Calibrate; - long SeekType; - long SimulatedHardware; // private -} DEVCAPS, *PDEVCAPS; - -// transport status -typedef struct tagTRANSPORTSTATUS{ - long Mode; - long LastError; - long RecordInhibit; - long ServoLock; - long MediaPresent; - long MediaLength; - long MediaSize; - long MediaTrackCount; - long MediaTrackLength; - long MediaTrackSide; - long MediaType; - long LinkMode; - long NotifyOn; -} TRANSPORTSTATUS, *PTRANSPORTSTATUS; - -// transport basic parameters -typedef struct tagTRANSPORTBASICPARMS{ - long TimeFormat; - long TimeReference; - long Superimpose; - long EndStopAction; - long RecordFormat; - long StepFrames; - long SetpField; - long Preroll; - long RecPreroll; - long Postroll; - long EditDelay; - long PlayTCDelay; - long RecTCDelay; - long EditField; - long FrameServo; - long ColorFrameServo; - long ServoRef; - long WarnGenlock; - long SetTracking; - TCHAR VolumeName[40]; - long Ballistic[20]; - long Speed; - long CounterFormat; - long TunerChannel; - long TunerNumber; - long TimerEvent; - long TimerStartDay; - long TimerStartTime; - long TimerStopDay; - long TimerStopTime; -} TRANSPORTBASICPARMS, *PTRANSPORTBASICPARMS; - -// transport video parameters -typedef struct tagTRANSPORTVIDEOPARMS{ - long OutputMode; - long Input; -} TRANSPORTVIDEOPARMS, *PTRANSPORTVIDEOPARMS; - -// transport audio parameters -typedef struct tagTRANSPORTAUDIOPARMS{ - long EnableOutput; - long EnableRecord; - long EnableSelsync; - long Input; - long MonitorSource; -} TRANSPORTAUDIOPARMS, *PTRANSPORTAUDIOPARMS; - - -// low level machine status structure filled in after -// REQUEST_STATUS command from above. This structure would -// grow in a full implementation -typedef struct tagVCRSTATUS{ - BOOL bCassetteOut; // OATRUE means no cassette - BOOL bLocal; // OATRUE means front panel switch in local -} VCRSTATUS; - -typedef VCRSTATUS far *PVCRSTATUS; - - - -//--------------------------------------------------------- -// STATIC_PROPSETID_VIDCAP_EXT_DEVICE -//--------------------------------------------------------- -// This guid and interface is defined in strmif.h -#define STATIC_PROPSETID_EXT_DEVICE\ - 0xB5730A90L, 0x1A2C, 0x11cf, 0x8c, 0x23, 0x00, 0xAA, 0x00, 0x6B, 0x68, 0x14 -DEFINE_GUIDSTRUCT("B5730A90-1A2C-11cf-8C23-00AA006B6814", PROPSETID_EXT_DEVICE); -#define PROPSETID_EXT_DEVICE DEFINE_GUIDNAMED(PROPSETID_EXT_DEVICE) - - -// KS properties and structure for this interface -typedef enum { - KSPROPERTY_EXTDEVICE_ID, // ID (such as Symbolic Lin) that can uniquely idenfy this device - KSPROPERTY_EXTDEVICE_VERSION, // Device model number and version (such AV/C VCR Subunit Spec. 2.01) - KSPROPERTY_EXTDEVICE_POWER_STATE, // Return current device power state. - KSPROPERTY_EXTDEVICE_PORT, // Can use this to return DEV_PORT_1394 - KSPROPERTY_EXTDEVICE_CAPABILITIES, // Device specific capabilities - -} KSPROPERTY_EXTDEVICE; - - -typedef struct { - KSPROPERTY Property; - - union { - // Client is responsible for allocating this. - DEVCAPS Capabilities; // May need to expand on the existing structure - ULONG DevPort; // - ULONG PowerState; // On, off standby - WCHAR pawchString[MAX_PATH]; // ID and version - DWORD NodeUniqueID[2]; // Unique NodeID - } u; - -} KSPROPERTY_EXTDEVICE_S, *PKSPROPERTY_EXTDEVICE_S; - - -//--------------------------------------------------------- -// STATIC_PROPSETID_VIDCAP_EXT_TRANSPORT -//--------------------------------------------------------- -// This guid and interface is defined in strmif.h -#define STATIC_PROPSETID_EXT_TRANSPORT\ - 0xA03CD5F0L, 0x3045, 0x11cf, 0x8c, 0x44, 0x00, 0xAA, 0x00, 0x6B, 0x68, 0x14 -DEFINE_GUIDSTRUCT("A03CD5F0-3045-11cf-8C44-00AA006B6814", PROPSETID_EXT_TRANSPORT); -#define PROPSETID_EXT_TRANSPORT DEFINE_GUIDNAMED(PROPSETID_EXT_TRANSPORT) - - - -// KS properties and structure for this interface -typedef enum { - KSPROPERTY_EXTXPORT_CAPABILITIES, // Transport specific capability - KSPROPERTY_EXTXPORT_INPUT_SIGNAL_MODE, // MPEG, D-VHS, Analog VHS etc. - KSPROPERTY_EXTXPORT_OUTPUT_SIGNAL_MODE, // MPEG, D-VHS, Analog VHS etc. - KSPROPERTY_EXTXPORT_LOAD_MEDIUM, // Eject, open tray, close tray - KSPROPERTY_EXTXPORT_MEDIUM_INFO, // cassettte_type and tape_grade_and_write_protect - KSPROPERTY_EXTXPORT_STATE, // Get/Set transport mode and state - KSPROPERTY_EXTXPORT_STATE_NOTIFY, // NOTIFY: Mode + State (Table 4-8) - KSPROPERTY_EXTXPORT_TIMECODE_SEARCH, // Request VCR subunit to search for a specific timecode on the medium - KSPROPERTY_EXTXPORT_ATN_SEARCH, // Request VCR subunit to search for a specific ATN on the medium - KSPROPERTY_EXTXPORT_RTC_SEARCH, // Request VCR subunit to search for a specific RelativeTimeCounter on the medium - - // - // Implemented for testing purpose - // Will remove this later... - // - KSPROPERTY_RAW_AVC_CMD, // Send/Rcv raw AVC commnad with a FCP packet. - -} KSPROPERTY_EXTXPORT; - -typedef struct { - BOOL MediaPresent; // TRUE/FALSE - ULONG MediaType; // DVCR standard, small, medium; VHS; VHS-C; unknown - BOOL RecordInhibit; // TRUE/FALSE -} MEDIUM_INFO, *PMEDIUM_INFO; - - -typedef struct { - ULONG Mode; // LOAD MEDIUM, RECORD, PLAY or WIND - ULONG State; // Vary depend on mode (Table 4-8) -} TRANSPORT_STATE, *PTRANSPORT_STATE; - -typedef struct { - KSPROPERTY Property; - - union { - ULONG Capabilities; // May need to expand on the existing structure - ULONG SignalMode; // MPEG, D-VHS, Analog VHS etc. - ULONG LoadMedium; // Eject, open tray, close tray - MEDIUM_INFO MediumInfo; - TRANSPORT_STATE XPrtState; - - struct { - BYTE frame; - BYTE second; - BYTE minute; - BYTE hour; - } Timecode; - DWORD dwTimecode; // hour:minute:second:frame - DWORD dwAbsTrackNumber; // absolute track number - - - // - // Implemented for testing purpose - // Will remove this later or will keep this for - // packet specific command. - // - struct { - ULONG PayloadSize; - BYTE Payload[512]; // This is only for testing sending AVC command from User mode. - } RawAVC; - - } u; - -} KSPROPERTY_EXTXPORT_S, *PKSPROPERTY_EXTXPORT_S; - - - -//--------------------------------------------------------- -// PROPSETID_TIMECODE -//--------------------------------------------------------- -// This guid and interface is defined in strmif.h -#define STATIC_PROPSETID_TIMECODE_READER\ - 0x9B496CE1L, 0x811B, 0x11cf, 0x8C, 0x77, 0x00, 0xAA, 0x00, 0x6B, 0x68, 0x14 -DEFINE_GUIDSTRUCT("9B496CE1-811B-11cf-8C77-00AA006B6814", PROPSETID_TIMECODE_READER); -#define PROPSETID_TIMECODE_READER DEFINE_GUIDNAMED(PROPSETID_TIMECODE_READER) - - -// KS properties and structure for this interface -typedef enum { - KSPROPERTY_TIMECODE_READER, // Timecode for the current medium position - KSPROPERTY_ATN_READER, // Absolute track number the current medium position - KSPROPERTY_RTC_READER, // Relative time counter for the current medium position - -} KSPROPERTY_TIMECODE; - - -typedef struct { - KSPROPERTY Property; - - TIMECODE_SAMPLE TimecodeSamp; - -} KSPROPERTY_TIMECODE_S, *PKSPROPERTY_TIMECODE_S; - - - -//--------------------------------------------------------- -// External Device Command event notification -//--------------------------------------------------------- - -#define STATIC_KSEVENTSETID_EXTDEV_Command\ - 0x109c7988L, 0xb3cb, 0x11d2, 0xb4, 0x8e, 0x00, 0x60, 0x97, 0xb3, 0x39, 0x1b -DEFINE_GUIDSTRUCT("109c7988-b3cb-11d2-b48e-006097b3391b", KSEVENTSETID_EXTDEV_Command); -#define KSEVENTSETID_EXTDEV_Command DEFINE_GUIDNAMED(KSEVENTSETID_EXTDEV_Command) - -typedef enum { - KSEVENT_EXTDEV_COMMAND_NOTIFY_INTERIM_READY, - KSEVENT_EXTDEV_COMMAND_CONTROL_INTERIM_READY, - KSEVENT_EXTDEV_COMMAND_BUSRESET, - KSEVENT_EXTDEV_TIMECODE_UPDATE, - KSEVENT_EXTDEV_OPERATION_MODE_UPDATE, // Notify mode of operation change (VCR,OFF,Camera) - KSEVENT_EXTDEV_TRANSPORT_STATE_UPDATE, // XPrt state change - KSEVENT_EXTDEV_NOTIFY_REMOVAL, // Notify device removal - KSEVENT_EXTDEV_NOTIFY_MEDIUM_CHANGE, // Notify medium (tape) is removed or added - -} KSEVENT_DEVCMD; - - -#endif // __EDevCTrl__ diff --git a/sdk/dx8sdk/Include/edevdefs.h b/sdk/dx8sdk/Include/edevdefs.h deleted file mode 100644 index 16af462d..00000000 --- a/sdk/dx8sdk/Include/edevdefs.h +++ /dev/null @@ -1,531 +0,0 @@ -//------------------------------------------------------------------------------ -// 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-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef __EDEVDEFS__ -#define __EDEVDEFS__ - - -#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 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 // never "put", only "get" -#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 // __EDEVDEFS__ - -// eof edevdefs.h diff --git a/sdk/dx8sdk/Include/errors.h b/sdk/dx8sdk/Include/errors.h deleted file mode 100644 index cee756fb..00000000 --- a/sdk/dx8sdk/Include/errors.h +++ /dev/null @@ -1,47 +0,0 @@ -//------------------------------------------------------------------------------ -// File: Errors.h -// -// Desc: ActiveMovie error defines. -// -// Copyright (c) 1992-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef __ERRORS__ -#define __ERRORS__ - -#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 , char *pbuffer , DWORD MaxLen); -AMOVIEAPI DWORD WINAPI AMGetErrorTextW( HRESULT hr , WCHAR *pbuffer , DWORD MaxLen); - - -#ifdef UNICODE -#define AMGetErrorText AMGetErrorTextW -typedef AMGETERRORTEXTPROCW AMGETERRORTEXTPROC; -#else -#define AMGetErrorText AMGetErrorTextA -typedef AMGETERRORTEXTPROCA AMGETERRORTEXTPROC; -#endif - -#ifdef __cplusplus -} -#endif // __cplusplus -#endif // __ERRORS__ diff --git a/sdk/dx8sdk/Include/evcode.h b/sdk/dx8sdk/Include/evcode.h deleted file mode 100644 index 32cc1958..00000000 --- a/sdk/dx8sdk/Include/evcode.h +++ /dev/null @@ -1,428 +0,0 @@ -//------------------------------------------------------------------------------ -// 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 - -#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_STEP_COMPLETE 0x24 -// (BOOL bCacelled, 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 diff --git a/sdk/dx8sdk/Include/il21dec.h b/sdk/dx8sdk/Include/il21dec.h deleted file mode 100644 index a2c7fc67..00000000 --- a/sdk/dx8sdk/Include/il21dec.h +++ /dev/null @@ -1,112 +0,0 @@ -//------------------------------------------------------------------------------ -// 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__ - - -// -// 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) -{ - public: - // - // 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 // __IL21DEC__ diff --git a/sdk/dx8sdk/Include/ks.h b/sdk/dx8sdk/Include/ks.h deleted file mode 100644 index 4f766b9f..00000000 --- a/sdk/dx8sdk/Include/ks.h +++ /dev/null @@ -1,5698 +0,0 @@ -/*++ - -Copyright (c) Microsoft Corporation. All rights reserved. - -Module Name: - - ks.h - -Abstract: - - Windows Driver Model/Connection and Streaming Architecture (WDM-CSA) - core definitions. - ---*/ - -#if !defined(_KS_) -#define _KS_ - -#if defined(__TCS__) -#define _KS_NO_ANONYMOUS_STRUCTURES_ 1 -#endif - -#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 SIZEOF_ARRAY - #define SIZEOF_ARRAY(ar) (sizeof(ar)/sizeof((ar)[0])) -#endif // !defined(SIZEOF_ARRAY) - -#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) - -//=========================================================================== - -#define STATIC_GUID_NULL \ - 0x00000000L, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 - -DEFINE_GUIDSTRUCT("00000000-0000-0000-0000-000000000000", GUID_NULL); -#define GUID_NULL DEFINE_GUIDNAMED(GUID_NULL) - -//=========================================================================== - -#define IOCTL_KS_PROPERTY CTL_CODE(FILE_DEVICE_KS, 0x000, METHOD_NEITHER, FILE_ANY_ACCESS) -#define IOCTL_KS_ENABLE_EVENT CTL_CODE(FILE_DEVICE_KS, 0x001, METHOD_NEITHER, FILE_ANY_ACCESS) -#define IOCTL_KS_DISABLE_EVENT CTL_CODE(FILE_DEVICE_KS, 0x002, METHOD_NEITHER, FILE_ANY_ACCESS) -#define IOCTL_KS_METHOD CTL_CODE(FILE_DEVICE_KS, 0x003, METHOD_NEITHER, FILE_ANY_ACCESS) -#define IOCTL_KS_WRITE_STREAM CTL_CODE(FILE_DEVICE_KS, 0x004, METHOD_NEITHER, FILE_WRITE_ACCESS) -#define IOCTL_KS_READ_STREAM CTL_CODE(FILE_DEVICE_KS, 0x005, METHOD_NEITHER, FILE_READ_ACCESS) -#define IOCTL_KS_RESET_STATE CTL_CODE(FILE_DEVICE_KS, 0x006, METHOD_NEITHER, FILE_ANY_ACCESS) - -//=========================================================================== - -typedef enum { - KSRESET_BEGIN, - KSRESET_END -} KSRESET; - -typedef enum { - KSSTATE_STOP, - KSSTATE_ACQUIRE, - KSSTATE_PAUSE, - KSSTATE_RUN -} KSSTATE, *PKSSTATE; - -#define KSPRIORITY_LOW 0x00000001 -#define KSPRIORITY_NORMAL 0x40000000 -#define KSPRIORITY_HIGH 0x80000000 -#define KSPRIORITY_EXCLUSIVE 0xFFFFFFFF - -typedef struct { - ULONG PriorityClass; - ULONG PrioritySubClass; -} KSPRIORITY, *PKSPRIORITY; - -typedef struct { - union { -#if defined( _KS_NO_ANONYMOUS_STRUCTURES_ ) - struct _IDENTIFIER { -#else - struct { -#endif - GUID Set; - ULONG Id; - ULONG Flags; - }; - LONGLONG Alignment; - }; -} KSIDENTIFIER, *PKSIDENTIFIER; - -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 KSMETHOD_TYPE_TOPOLOGY 0x10000000 - -#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 - -typedef struct { - KSPROPERTY Property; - ULONG NodeId; - ULONG Reserved; -} KSP_NODE, *PKSP_NODE; - -typedef struct { - KSMETHOD Method; - ULONG NodeId; - ULONG Reserved; -} KSM_NODE, *PKSM_NODE; - -typedef struct { - KSEVENT Event; - ULONG NodeId; - ULONG Reserved; -} KSE_NODE, *PKSE_NODE; - -#define STATIC_KSPROPTYPESETID_General \ - 0x97E99BA0L, 0xBDEA, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("97E99BA0-BDEA-11CF-A5D6-28DB04C10000", KSPROPTYPESETID_General); -#define KSPROPTYPESETID_General DEFINE_GUIDNAMED(KSPROPTYPESETID_General) - -#if defined(_NTDDK_) && !defined(__wtypes_h__) -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_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_VECTOR = 0x1000, - VT_ARRAY = 0x2000, - VT_BYREF = 0x4000, - VT_RESERVED = 0x8000, - VT_ILLEGAL = 0xffff, - VT_ILLEGALMASKED = 0xfff, - VT_TYPEMASK = 0xfff -}; -#endif // _NTDDK_ && !__wtypes_h__ - -typedef struct { - ULONG Size; - ULONG Count; -} KSMULTIPLE_ITEM, *PKSMULTIPLE_ITEM; - -typedef struct { - ULONG AccessFlags; - ULONG DescriptionSize; - KSIDENTIFIER PropTypeSet; - ULONG MembersListCount; - ULONG Reserved; -} KSPROPERTY_DESCRIPTION, *PKSPROPERTY_DESCRIPTION; - -#define KSPROPERTY_MEMBER_RANGES 0x00000001 -#define KSPROPERTY_MEMBER_STEPPEDRANGES 0x00000002 -#define KSPROPERTY_MEMBER_VALUES 0x00000003 - -#define KSPROPERTY_MEMBER_FLAG_DEFAULT 0x00000001 -#define KSPROPERTY_MEMBER_FLAG_BASICSUPPORT_MULTICHANNEL 0x00000002 -#define KSPROPERTY_MEMBER_FLAG_BASICSUPPORT_UNIFORM 0x00000004 - -typedef struct { - ULONG MembersFlags; - ULONG MembersSize; - ULONG MembersCount; - ULONG Flags; -} KSPROPERTY_MEMBERSHEADER, *PKSPROPERTY_MEMBERSHEADER; - -typedef union { -#if defined( _KS_NO_ANONYMOUS_STRUCTURES_ ) - struct _SIGNED { -#else - struct { -#endif - LONG SignedMinimum; - LONG SignedMaximum; - }; -#if defined( _KS_NO_ANONYMOUS_STRUCTURES_ ) - struct _UNSIGNED { -#else - struct { -#endif - ULONG UnsignedMinimum; - ULONG UnsignedMaximum; - }; -} KSPROPERTY_BOUNDS_LONG, *PKSPROPERTY_BOUNDS_LONG; - -typedef union { -#if defined( _KS_NO_ANONYMOUS_STRUCTURES_ ) - struct _SIGNED64 { -#else - struct { -#endif - LONGLONG SignedMinimum; - LONGLONG SignedMaximum; - }; -#if defined( _KS_NO_ANONYMOUS_STRUCTURES_ ) - struct _UNSIGNED64 { -#else - struct { -#endif -#if defined(_NTDDK_) - ULONGLONG UnsignedMinimum; - ULONGLONG UnsignedMaximum; -#else // !_NTDDK_ - DWORDLONG UnsignedMinimum; - DWORDLONG UnsignedMaximum; -#endif // !_NTDDK_ - }; -} KSPROPERTY_BOUNDS_LONGLONG, *PKSPROPERTY_BOUNDS_LONGLONG; - -typedef struct { - ULONG SteppingDelta; - ULONG Reserved; - KSPROPERTY_BOUNDS_LONG Bounds; -} KSPROPERTY_STEPPING_LONG, *PKSPROPERTY_STEPPING_LONG; - -typedef struct { -#if defined(_NTDDK_) - ULONGLONG SteppingDelta; -#else // !_NTDDK_ - DWORDLONG SteppingDelta; -#endif // !_NTDDK_ - KSPROPERTY_BOUNDS_LONGLONG Bounds; -} KSPROPERTY_STEPPING_LONGLONG, *PKSPROPERTY_STEPPING_LONGLONG; - -//=========================================================================== - -#if defined(_NTDDK_) -// -// Structure forward declarations. -// -typedef struct _KSDEVICE_DESCRIPTOR -KSDEVICE_DESCRIPTOR, *PKSDEVICE_DESCRIPTOR; -typedef struct _KSDEVICE_DISPATCH -KSDEVICE_DISPATCH, *PKSDEVICE_DISPATCH; -typedef struct _KSDEVICE -KSDEVICE, *PKSDEVICE; -typedef struct _KSFILTERFACTORY -KSFILTERFACTORY, *PKSFILTERFACTORY; -typedef struct _KSFILTER_DESCRIPTOR -KSFILTER_DESCRIPTOR, *PKSFILTER_DESCRIPTOR; -typedef struct _KSFILTER_DISPATCH -KSFILTER_DISPATCH, *PKSFILTER_DISPATCH; -typedef struct _KSFILTER -KSFILTER, *PKSFILTER; -typedef struct _KSPIN_DESCRIPTOR_EX -KSPIN_DESCRIPTOR_EX, *PKSPIN_DESCRIPTOR_EX; -typedef struct _KSPIN_DISPATCH -KSPIN_DISPATCH, *PKSPIN_DISPATCH; -typedef struct _KSCLOCK_DISPATCH -KSCLOCK_DISPATCH, *PKSCLOCK_DISPATCH; -typedef struct _KSALLOCATOR_DISPATCH -KSALLOCATOR_DISPATCH, *PKSALLOCATOR_DISPATCH; -typedef struct _KSPIN -KSPIN, *PKSPIN; -typedef struct _KSNODE_DESCRIPTOR -KSNODE_DESCRIPTOR, *PKSNODE_DESCRIPTOR; -typedef struct _KSSTREAM_POINTER_OFFSET -KSSTREAM_POINTER_OFFSET, *PKSSTREAM_POINTER_OFFSET; -typedef struct _KSSTREAM_POINTER -KSSTREAM_POINTER, *PKSSTREAM_POINTER; -typedef struct _KSMAPPING -KSMAPPING, *PKSMAPPING; -typedef struct _KSPROCESSPIN -KSPROCESSPIN, *PKSPROCESSPIN; -typedef struct _KSPROCESSPIN_INDEXENTRY -KSPROCESSPIN_INDEXENTRY, *PKSPROCESSPIN_INDEXENTRY; -#endif // _NTDDK_ - -typedef PVOID PKSWORKER; - -typedef struct { - ULONG NotificationType; - union { - struct { - HANDLE Event; - ULONG_PTR Reserved[2]; - } EventHandle; - struct { - HANDLE Semaphore; - ULONG Reserved; - LONG Adjustment; - } SemaphoreHandle; -#if defined(_NTDDK_) - struct { - PVOID Event; - KPRIORITY Increment; - ULONG_PTR Reserved; - } EventObject; - struct { - PVOID Semaphore; - KPRIORITY Increment; - LONG Adjustment; - } SemaphoreObject; - struct { - PKDPC Dpc; - ULONG ReferenceCount; - ULONG_PTR Reserved; - } Dpc; - struct { - PWORK_QUEUE_ITEM WorkQueueItem; - WORK_QUEUE_TYPE WorkQueueType; - ULONG_PTR Reserved; - } WorkItem; - struct { - PWORK_QUEUE_ITEM WorkQueueItem; - PKSWORKER KsWorkerObject; - ULONG_PTR Reserved; - } KsWorkItem; -// @@BEGIN_DDKSPLIT - struct { - PKSFILTER Filter; - ULONG_PTR Reserved[2]; - } KsFilterProcessing; - struct { - PKSPIN Pin; - ULONG_PTR Reserved[2]; - } KsPinProcessing; -// @@END_DDKSPLIT -#endif // defined(_NTDDK_) - struct { - PVOID Unused; - LONG_PTR Alignment[2]; - } Alignment; - }; -} KSEVENTDATA, *PKSEVENTDATA; - -#define KSEVENTF_EVENT_HANDLE 0x00000001 -#define KSEVENTF_SEMAPHORE_HANDLE 0x00000002 -#if defined(_NTDDK_) -#define KSEVENTF_EVENT_OBJECT 0x00000004 -#define KSEVENTF_SEMAPHORE_OBJECT 0x00000008 -#define KSEVENTF_DPC 0x00000010 -#define KSEVENTF_WORKITEM 0x00000020 -#define KSEVENTF_KSWORKITEM 0x00000080 -// @@BEGIN_DDKSPLIT -#define KSEVENTF_KSFILTERPROCESSING 0x00000100 -#define KSEVENTF_KSPINPROCESSING 0x00000200 -// @@END_DDKSPLIT -#endif // defined(_NTDDK_) - -#define KSEVENT_TYPE_ENABLE 0x00000001 -#define KSEVENT_TYPE_ONESHOT 0x00000002 -#define KSEVENT_TYPE_ENABLEBUFFERED 0x00000004 -#define KSEVENT_TYPE_SETSUPPORT 0x00000100 -#define KSEVENT_TYPE_BASICSUPPORT 0x00000200 -#define KSEVENT_TYPE_QUERYBUFFER 0x00000400 - -#define KSEVENT_TYPE_TOPOLOGY 0x10000000 - -typedef struct { - KSEVENT Event; - PKSEVENTDATA EventData; - PVOID Reserved; -} KSQUERYBUFFER, *PKSQUERYBUFFER; - -typedef struct { - ULONG Size; - ULONG Flags; - union { - HANDLE ObjectHandle; - PVOID ObjectPointer; - }; - PVOID Reserved; - KSEVENT Event; - KSEVENTDATA EventData; -} KSRELATIVEEVENT; - -#define KSRELATIVEEVENT_FLAG_HANDLE 0x00000001 -#define KSRELATIVEEVENT_FLAG_POINTER 0x00000002 - -//=========================================================================== - -typedef struct { - KSEVENTDATA EventData; - LONGLONG MarkTime; -} KSEVENT_TIME_MARK, *PKSEVENT_TIME_MARK; - -typedef struct { - KSEVENTDATA EventData; - LONGLONG TimeBase; - LONGLONG Interval; -} KSEVENT_TIME_INTERVAL, *PKSEVENT_TIME_INTERVAL; - -typedef struct { - LONGLONG TimeBase; - LONGLONG Interval; -} KSINTERVAL, *PKSINTERVAL; - -//=========================================================================== - -#define STATIC_KSPROPSETID_General\ - 0x1464EDA5L, 0x6A8F, 0x11D1, 0x9A, 0xA7, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("1464EDA5-6A8F-11D1-9AA7-00A0C9223196", KSPROPSETID_General); -#define KSPROPSETID_General DEFINE_GUIDNAMED(KSPROPSETID_General) - -typedef enum { - KSPROPERTY_GENERAL_COMPONENTID -} KSPROPERTY_GENERAL; - -typedef struct { - GUID Manufacturer; - GUID Product; - GUID Component; - GUID Name; - ULONG Version; - ULONG Revision; -} KSCOMPONENTID, *PKSCOMPONENTID; - -#define DEFINE_KSPROPERTY_ITEM_GENERAL_COMPONENTID(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_GENERAL_COMPONENTID,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KSCOMPONENTID),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define STATIC_KSMETHODSETID_StreamIo\ - 0x65D003CAL, 0x1523, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("65D003CA-1523-11D2-B27A-00A0C9223196", KSMETHODSETID_StreamIo); -#define KSMETHODSETID_StreamIo DEFINE_GUIDNAMED(KSMETHODSETID_StreamIo) - -typedef enum { - KSMETHOD_STREAMIO_READ, - KSMETHOD_STREAMIO_WRITE -} KSMETHOD_STREAMIO; - -#define DEFINE_KSMETHOD_ITEM_STREAMIO_READ(Handler)\ - DEFINE_KSMETHOD_ITEM(\ - KSMETHOD_STREAMIO_READ,\ - KSMETHOD_TYPE_WRITE,\ - (Handler),\ - sizeof(KSMETHOD),\ - 0,\ - NULL) - -#define DEFINE_KSMETHOD_ITEM_STREAMIO_WRITE(Handler)\ - DEFINE_KSMETHOD_ITEM(\ - KSMETHOD_STREAMIO_WRITE,\ - KSMETHOD_TYPE_READ,\ - (Handler),\ - sizeof(KSMETHOD),\ - 0,\ - NULL) - -#define STATIC_KSPROPSETID_MediaSeeking\ - 0xEE904F0CL, 0xD09B, 0x11D0, 0xAB, 0xE9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("EE904F0C-D09B-11D0-ABE9-00A0C9223196", KSPROPSETID_MediaSeeking); -#define KSPROPSETID_MediaSeeking DEFINE_GUIDNAMED(KSPROPSETID_MediaSeeking) - -typedef enum { - KSPROPERTY_MEDIASEEKING_CAPABILITIES, - KSPROPERTY_MEDIASEEKING_FORMATS, - KSPROPERTY_MEDIASEEKING_TIMEFORMAT, - KSPROPERTY_MEDIASEEKING_POSITION, - KSPROPERTY_MEDIASEEKING_STOPPOSITION, - KSPROPERTY_MEDIASEEKING_POSITIONS, - KSPROPERTY_MEDIASEEKING_DURATION, - KSPROPERTY_MEDIASEEKING_AVAILABLE, - KSPROPERTY_MEDIASEEKING_PREROLL, - KSPROPERTY_MEDIASEEKING_CONVERTTIMEFORMAT -} KSPROPERTY_MEDIASEEKING; - -typedef enum { - KS_SEEKING_NoPositioning, - KS_SEEKING_AbsolutePositioning, - KS_SEEKING_RelativePositioning, - KS_SEEKING_IncrementalPositioning, - KS_SEEKING_PositioningBitsMask = 0x3, - KS_SEEKING_SeekToKeyFrame, - KS_SEEKING_ReturnTime = 0x8 -} KS_SEEKING_FLAGS; - -typedef enum { - KS_SEEKING_CanSeekAbsolute = 0x1, - KS_SEEKING_CanSeekForwards = 0x2, - KS_SEEKING_CanSeekBackwards = 0x4, - KS_SEEKING_CanGetCurrentPos = 0x8, - KS_SEEKING_CanGetStopPos = 0x10, - KS_SEEKING_CanGetDuration = 0x20, - KS_SEEKING_CanPlayBackwards = 0x40 -} KS_SEEKING_CAPABILITIES; - -typedef struct { - LONGLONG Current; - LONGLONG Stop; - KS_SEEKING_FLAGS CurrentFlags; - KS_SEEKING_FLAGS StopFlags; -} KSPROPERTY_POSITIONS, *PKSPROPERTY_POSITIONS; - -typedef struct { - LONGLONG Earliest; - LONGLONG Latest; -} KSPROPERTY_MEDIAAVAILABLE, *PKSPROPERTY_MEDIAAVAILABLE; - -typedef struct { - KSPROPERTY Property; - GUID SourceFormat; - GUID TargetFormat; - LONGLONG Time; -} KSP_TIMEFORMAT, *PKSP_TIMEFORMAT; - -#define DEFINE_KSPROPERTY_ITEM_MEDIASEEKING_CAPABILITIES(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_MEDIASEEKING_CAPABILITIES,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KS_SEEKING_CAPABILITIES),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_MEDIASEEKING_FORMATS(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_MEDIASEEKING_FORMATS,\ - (Handler),\ - sizeof(KSPROPERTY),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_MEDIASEEKING_TIMEFORMAT(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_MEDIASEEKING_TIMEFORMAT,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(GUID),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_MEDIASEEKING_POSITION(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_MEDIASEEKING_POSITION,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(LONGLONG),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_MEDIASEEKING_STOPPOSITION(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_MEDIASEEKING_STOPPOSITION,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(LONGLONG),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_MEDIASEEKING_POSITIONS(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_MEDIASEEKING_POSITIONS,\ - NULL,\ - sizeof(KSPROPERTY),\ - sizeof(KSPROPERTY_POSITIONS),\ - (Handler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_MEDIASEEKING_DURATION(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_MEDIASEEKING_DURATION,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(LONGLONG),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_MEDIASEEKING_AVAILABLE(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_MEDIASEEKING_AVAILABLE,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KSPROPERTY_MEDIAAVAILABLE),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_MEDIASEEKING_PREROLL(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_MEDIASEEKING_PREROLL,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(LONGLONG),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_MEDIASEEKING_CONVERTTIMEFORMAT(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_MEDIASEEKING_CONVERTTIMEFORMAT,\ - (Handler),\ - sizeof(KSP_TIMEFORMAT),\ - sizeof(LONGLONG),\ - NULL, NULL, 0, NULL, NULL, 0) - -//=========================================================================== - -#define STATIC_KSPROPSETID_Topology\ - 0x720D4AC0L, 0x7533, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("720D4AC0-7533-11D0-A5D6-28DB04C10000", KSPROPSETID_Topology); -#define KSPROPSETID_Topology DEFINE_GUIDNAMED(KSPROPSETID_Topology) - -typedef enum { - KSPROPERTY_TOPOLOGY_CATEGORIES, - KSPROPERTY_TOPOLOGY_NODES, - KSPROPERTY_TOPOLOGY_CONNECTIONS, - KSPROPERTY_TOPOLOGY_NAME -} KSPROPERTY_TOPOLOGY; - -#define DEFINE_KSPROPERTY_ITEM_TOPOLOGY_CATEGORIES(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_TOPOLOGY_CATEGORIES,\ - (Handler),\ - sizeof(KSPROPERTY),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_TOPOLOGY_NODES(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_TOPOLOGY_NODES,\ - (Handler),\ - sizeof(KSPROPERTY),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_TOPOLOGY_CONNECTIONS(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_TOPOLOGY_CONNECTIONS,\ - (Handler),\ - sizeof(KSPROPERTY),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_TOPOLOGY_NAME(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_TOPOLOGY_NAME,\ - (Handler),\ - sizeof(KSP_NODE),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_TOPOLOGYSET(TopologySet, Handler)\ -DEFINE_KSPROPERTY_TABLE(TopologySet) {\ - DEFINE_KSPROPERTY_ITEM_TOPOLOGY_CATEGORIES(Handler),\ - DEFINE_KSPROPERTY_ITEM_TOPOLOGY_NODES(Handler),\ - DEFINE_KSPROPERTY_ITEM_TOPOLOGY_CONNECTIONS(Handler),\ - DEFINE_KSPROPERTY_ITEM_TOPOLOGY_NAME(Handler)\ -} - -//============================================================================= - -// -// properties used by graph manager to talk to particular filters -// -#if defined(_NTDDK_) - -#define STATIC_KSPROPSETID_GM \ - 0xAF627536L, 0xE719, 0x11D2, 0x8A, 0x1D, 0x00, 0x60, 0x97, 0xD2, 0xDF, 0x5D -DEFINE_GUIDSTRUCT("AF627536-E719-11D2-8A1D-006097D2DF5D", KSPROPSETID_GM); -#define KSPROPSETID_GM DEFINE_GUIDNAMED(KSPROPSETID_GM) - -typedef VOID (*PFNKSGRAPHMANAGER_NOTIFY)(IN PFILE_OBJECT GraphManager, - IN ULONG EventId, - IN PVOID Filter, - IN PVOID Pin, - IN PVOID Frame, - IN ULONG Duration); - -typedef struct KSGRAPHMANAGER_FUNCTIONTABLE { - PFNKSGRAPHMANAGER_NOTIFY NotifyEvent; -} KSGRAPHMANAGER_FUNCTIONTABLE, PKSGRAPHMANAGER_FUNCTIONTABLE; - -typedef struct _KSPROPERTY_GRAPHMANAGER_INTERFACE { - PFILE_OBJECT GraphManager; - KSGRAPHMANAGER_FUNCTIONTABLE FunctionTable; -} KSPROPERTY_GRAPHMANAGER_INTERFACE, *PKSPROPERTY_GRAPHMANAGER_INTERFACE; - - -// -// Commands -// -typedef enum { - KSPROPERTY_GM_GRAPHMANAGER, - KSPROPERTY_GM_TIMESTAMP_CLOCK, - KSPROPERTY_GM_RATEMATCH, - KSPROPERTY_GM_RENDER_CLOCK, -} KSPROPERTY_GM; - -#endif - -//=========================================================================== - - -#define STATIC_KSCATEGORY_BRIDGE \ - 0x085AFF00L, 0x62CE, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("085AFF00-62CE-11CF-A5D6-28DB04C10000", KSCATEGORY_BRIDGE); -#define KSCATEGORY_BRIDGE DEFINE_GUIDNAMED(KSCATEGORY_BRIDGE) - -#define STATIC_KSCATEGORY_CAPTURE \ - 0x65E8773DL, 0x8F56, 0x11D0, 0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("65E8773D-8F56-11D0-A3B9-00A0C9223196", KSCATEGORY_CAPTURE); -#define KSCATEGORY_CAPTURE DEFINE_GUIDNAMED(KSCATEGORY_CAPTURE) - -#define STATIC_KSCATEGORY_RENDER \ - 0x65E8773EL, 0x8F56, 0x11D0, 0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("65E8773E-8F56-11D0-A3B9-00A0C9223196", KSCATEGORY_RENDER); -#define KSCATEGORY_RENDER DEFINE_GUIDNAMED(KSCATEGORY_RENDER) - -#define STATIC_KSCATEGORY_MIXER \ - 0xAD809C00L, 0x7B88, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("AD809C00-7B88-11D0-A5D6-28DB04C10000", KSCATEGORY_MIXER); -#define KSCATEGORY_MIXER DEFINE_GUIDNAMED(KSCATEGORY_MIXER) - -#define STATIC_KSCATEGORY_SPLITTER \ - 0x0A4252A0L, 0x7E70, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("0A4252A0-7E70-11D0-A5D6-28DB04C10000", KSCATEGORY_SPLITTER); -#define KSCATEGORY_SPLITTER DEFINE_GUIDNAMED(KSCATEGORY_SPLITTER) - -#define STATIC_KSCATEGORY_DATACOMPRESSOR \ - 0x1E84C900L, 0x7E70, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("1E84C900-7E70-11D0-A5D6-28DB04C10000", KSCATEGORY_DATACOMPRESSOR); -#define KSCATEGORY_DATACOMPRESSOR DEFINE_GUIDNAMED(KSCATEGORY_DATACOMPRESSOR) - -#define STATIC_KSCATEGORY_DATADECOMPRESSOR \ - 0x2721AE20L, 0x7E70, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("2721AE20-7E70-11D0-A5D6-28DB04C10000", KSCATEGORY_DATADECOMPRESSOR); -#define KSCATEGORY_DATADECOMPRESSOR DEFINE_GUIDNAMED(KSCATEGORY_DATADECOMPRESSOR) - -#define STATIC_KSCATEGORY_DATATRANSFORM \ - 0x2EB07EA0L, 0x7E70, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("2EB07EA0-7E70-11D0-A5D6-28DB04C10000", KSCATEGORY_DATATRANSFORM); -#define KSCATEGORY_DATATRANSFORM DEFINE_GUIDNAMED(KSCATEGORY_DATATRANSFORM) - -#define STATIC_KSCATEGORY_COMMUNICATIONSTRANSFORM \ - 0xCF1DDA2CL, 0x9743, 0x11D0, 0xA3, 0xEE, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("CF1DDA2C-9743-11D0-A3EE-00A0C9223196", KSCATEGORY_COMMUNICATIONSTRANSFORM); -#define KSCATEGORY_COMMUNICATIONSTRANSFORM DEFINE_GUIDNAMED(KSCATEGORY_COMMUNICATIONSTRANSFORM) - -#define STATIC_KSCATEGORY_INTERFACETRANSFORM \ - 0xCF1DDA2DL, 0x9743, 0x11D0, 0xA3, 0xEE, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("CF1DDA2D-9743-11D0-A3EE-00A0C9223196", KSCATEGORY_INTERFACETRANSFORM); -#define KSCATEGORY_INTERFACETRANSFORM DEFINE_GUIDNAMED(KSCATEGORY_INTERFACETRANSFORM) - -#define STATIC_KSCATEGORY_MEDIUMTRANSFORM \ - 0xCF1DDA2EL, 0x9743, 0x11D0, 0xA3, 0xEE, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("CF1DDA2E-9743-11D0-A3EE-00A0C9223196", KSCATEGORY_MEDIUMTRANSFORM); -#define KSCATEGORY_MEDIUMTRANSFORM DEFINE_GUIDNAMED(KSCATEGORY_MEDIUMTRANSFORM) - -#define STATIC_KSCATEGORY_FILESYSTEM \ - 0x760FED5EL, 0x9357, 0x11D0, 0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("760FED5E-9357-11D0-A3CC-00A0C9223196", KSCATEGORY_FILESYSTEM); -#define KSCATEGORY_FILESYSTEM DEFINE_GUIDNAMED(KSCATEGORY_FILESYSTEM) - -// KSNAME_Clock -#define STATIC_KSCATEGORY_CLOCK \ - 0x53172480L, 0x4791, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("53172480-4791-11D0-A5D6-28DB04C10000", KSCATEGORY_CLOCK); -#define KSCATEGORY_CLOCK DEFINE_GUIDNAMED(KSCATEGORY_CLOCK) - -#define STATIC_KSCATEGORY_PROXY \ - 0x97EBAACAL, 0x95BD, 0x11D0, 0xA3, 0xEA, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("97EBAACA-95BD-11D0-A3EA-00A0C9223196", KSCATEGORY_PROXY); -#define KSCATEGORY_PROXY DEFINE_GUIDNAMED(KSCATEGORY_PROXY) - -#define STATIC_KSCATEGORY_QUALITY \ - 0x97EBAACBL, 0x95BD, 0x11D0, 0xA3, 0xEA, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("97EBAACB-95BD-11D0-A3EA-00A0C9223196", KSCATEGORY_QUALITY); -#define KSCATEGORY_QUALITY DEFINE_GUIDNAMED(KSCATEGORY_QUALITY) - -typedef struct { - ULONG FromNode; - ULONG FromNodePin; - ULONG ToNode; - ULONG ToNodePin; -} KSTOPOLOGY_CONNECTION, *PKSTOPOLOGY_CONNECTION; - -typedef struct { - ULONG CategoriesCount; - const GUID* Categories; - ULONG TopologyNodesCount; - const GUID* TopologyNodes; - ULONG TopologyConnectionsCount; - const KSTOPOLOGY_CONNECTION* TopologyConnections; - const GUID* TopologyNodesNames; - ULONG Reserved; -} KSTOPOLOGY, *PKSTOPOLOGY; - -#define KSFILTER_NODE ((ULONG)-1) -#define KSALL_NODES ((ULONG)-1) - -typedef struct { - ULONG CreateFlags; - ULONG Node; -} KSNODE_CREATE, *PKSNODE_CREATE; - -//=========================================================================== - -// TIME_FORMAT_NONE -#define STATIC_KSTIME_FORMAT_NONE STATIC_GUID_NULL -#define KSTIME_FORMAT_NONE GUID_NULL - -// TIME_FORMAT_FRAME -#define STATIC_KSTIME_FORMAT_FRAME\ - 0x7b785570L, 0x8c82, 0x11cf, 0xbc, 0x0c, 0x00, 0xaa, 0x00, 0xac, 0x74, 0xf6 -DEFINE_GUIDSTRUCT("7b785570-8c82-11cf-bc0c-00aa00ac74f6", KSTIME_FORMAT_FRAME); -#define KSTIME_FORMAT_FRAME DEFINE_GUIDNAMED(KSTIME_FORMAT_FRAME) - -// TIME_FORMAT_BYTE -#define STATIC_KSTIME_FORMAT_BYTE\ - 0x7b785571L, 0x8c82, 0x11cf, 0xbc, 0x0c, 0x00, 0xaa, 0x00, 0xac, 0x74, 0xf6 -DEFINE_GUIDSTRUCT("7b785571-8c82-11cf-bc0c-00aa00ac74f6", KSTIME_FORMAT_BYTE); -#define KSTIME_FORMAT_BYTE DEFINE_GUIDNAMED(KSTIME_FORMAT_BYTE) - -// TIME_FORMAT_SAMPLE -#define STATIC_KSTIME_FORMAT_SAMPLE\ - 0x7b785572L, 0x8c82, 0x11cf, 0xbc, 0x0c, 0x00, 0xaa, 0x00, 0xac, 0x74, 0xf6 -DEFINE_GUIDSTRUCT("7b785572-8c82-11cf-bc0c-00aa00ac74f6", KSTIME_FORMAT_SAMPLE); -#define KSTIME_FORMAT_SAMPLE DEFINE_GUIDNAMED(KSTIME_FORMAT_SAMPLE) - -// TIME_FORMAT_FIELD -#define STATIC_KSTIME_FORMAT_FIELD\ - 0x7b785573L, 0x8c82, 0x11cf, 0xbc, 0x0c, 0x00, 0xaa, 0x00, 0xac, 0x74, 0xf6 -DEFINE_GUIDSTRUCT("7b785573-8c82-11cf-bc0c-00aa00ac74f6", KSTIME_FORMAT_FIELD); -#define KSTIME_FORMAT_FIELD DEFINE_GUIDNAMED(KSTIME_FORMAT_FIELD) - -// TIME_FORMAT_MEDIA_TIME -#define STATIC_KSTIME_FORMAT_MEDIA_TIME\ - 0x7b785574L, 0x8c82, 0x11cf, 0xbc, 0x0c, 0x00, 0xaa, 0x00, 0xac, 0x74, 0xf6 -DEFINE_GUIDSTRUCT("7b785574-8c82-11cf-bc0c-00aa00ac74f6", KSTIME_FORMAT_MEDIA_TIME); -#define KSTIME_FORMAT_MEDIA_TIME DEFINE_GUIDNAMED(KSTIME_FORMAT_MEDIA_TIME) - -//=========================================================================== - -typedef KSIDENTIFIER KSPIN_INTERFACE, *PKSPIN_INTERFACE; - -#define STATIC_KSINTERFACESETID_Standard \ - 0x1A8766A0L, 0x62CE, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("1A8766A0-62CE-11CF-A5D6-28DB04C10000", KSINTERFACESETID_Standard); -#define KSINTERFACESETID_Standard DEFINE_GUIDNAMED(KSINTERFACESETID_Standard) - -typedef enum { - KSINTERFACE_STANDARD_STREAMING, - KSINTERFACE_STANDARD_LOOPED_STREAMING, - KSINTERFACE_STANDARD_CONTROL -} KSINTERFACE_STANDARD; - -#define STATIC_KSINTERFACESETID_FileIo \ - 0x8C6F932CL, 0xE771, 0x11D0, 0xB8, 0xFF, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("8C6F932C-E771-11D0-B8FF-00A0C9223196", KSINTERFACESETID_FileIo); -#define KSINTERFACESETID_FileIo DEFINE_GUIDNAMED(KSINTERFACESETID_FileIo) - -typedef enum { - KSINTERFACE_FILEIO_STREAMING -} KSINTERFACE_FILEIO; - -//=========================================================================== - -#define KSMEDIUM_TYPE_ANYINSTANCE 0 - -#define STATIC_KSMEDIUMSETID_Standard \ - 0x4747B320L, 0x62CE, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("4747B320-62CE-11CF-A5D6-28DB04C10000", KSMEDIUMSETID_Standard); -#define KSMEDIUMSETID_Standard DEFINE_GUIDNAMED(KSMEDIUMSETID_Standard) - -//For compatibility only -#define KSMEDIUM_STANDARD_DEVIO KSMEDIUM_TYPE_ANYINSTANCE - -//=========================================================================== - -#define STATIC_KSPROPSETID_Pin\ - 0x8C134960L, 0x51AD, 0x11CF, 0x87, 0x8A, 0x94, 0xF8, 0x01, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("8C134960-51AD-11CF-878A-94F801C10000", KSPROPSETID_Pin); -#define KSPROPSETID_Pin DEFINE_GUIDNAMED(KSPROPSETID_Pin) - -typedef enum { - KSPROPERTY_PIN_CINSTANCES, - KSPROPERTY_PIN_CTYPES, - KSPROPERTY_PIN_DATAFLOW, - KSPROPERTY_PIN_DATARANGES, - KSPROPERTY_PIN_DATAINTERSECTION, - KSPROPERTY_PIN_INTERFACES, - KSPROPERTY_PIN_MEDIUMS, - KSPROPERTY_PIN_COMMUNICATION, - KSPROPERTY_PIN_GLOBALCINSTANCES, - KSPROPERTY_PIN_NECESSARYINSTANCES, - KSPROPERTY_PIN_PHYSICALCONNECTION, - KSPROPERTY_PIN_CATEGORY, - KSPROPERTY_PIN_NAME, - KSPROPERTY_PIN_CONSTRAINEDDATARANGES, - KSPROPERTY_PIN_PROPOSEDATAFORMAT -} KSPROPERTY_PIN; - -typedef struct { - KSPROPERTY Property; - ULONG PinId; - ULONG Reserved; -} KSP_PIN, *PKSP_PIN; - -#define KSINSTANCE_INDETERMINATE ((ULONG)-1) - -typedef struct { - ULONG PossibleCount; - ULONG CurrentCount; -} KSPIN_CINSTANCES, *PKSPIN_CINSTANCES; - -typedef enum { - KSPIN_DATAFLOW_IN = 1, - KSPIN_DATAFLOW_OUT -} KSPIN_DATAFLOW, *PKSPIN_DATAFLOW; - -#define KSDATAFORMAT_BIT_TEMPORAL_COMPRESSION 0 -#define KSDATAFORMAT_TEMPORAL_COMPRESSION (1 << KSDATAFORMAT_BIT_TEMPORAL_COMPRESSION) -#define KSDATAFORMAT_BIT_ATTRIBUTES 1 -#define KSDATAFORMAT_ATTRIBUTES (1 << KSDATAFORMAT_BIT_ATTRIBUTES) - -#define KSDATARANGE_BIT_ATTRIBUTES 1 -#define KSDATARANGE_ATTRIBUTES (1 << KSDATARANGE_BIT_ATTRIBUTES) -#define KSDATARANGE_BIT_REQUIRED_ATTRIBUTES 2 -#define KSDATARANGE_REQUIRED_ATTRIBUTES (1 << KSDATARANGE_BIT_REQUIRED_ATTRIBUTES) - -#if !defined( _MSC_VER ) -typedef struct { - ULONG FormatSize; - ULONG Flags; - ULONG SampleSize; - ULONG Reserved; - GUID MajorFormat; - GUID SubFormat; - GUID Specifier; -} KSDATAFORMAT, *PKSDATAFORMAT, KSDATARANGE, *PKSDATARANGE; -#else -typedef union { - struct { - ULONG FormatSize; - ULONG Flags; - ULONG SampleSize; - ULONG Reserved; - GUID MajorFormat; - GUID SubFormat; - GUID Specifier; - }; - LONGLONG Alignment; -} KSDATAFORMAT, *PKSDATAFORMAT, KSDATARANGE, *PKSDATARANGE; -#endif - -#define KSATTRIBUTE_REQUIRED 0x00000001 - -typedef struct { - ULONG Size; - ULONG Flags; - GUID Attribute; -} KSATTRIBUTE, *PKSATTRIBUTE; - -#if defined(_NTDDK_) -typedef struct { - ULONG Count; - PKSATTRIBUTE* Attributes; -} KSATTRIBUTE_LIST, *PKSATTRIBUTE_LIST; -#endif // _NTDDK_ - -typedef enum { - KSPIN_COMMUNICATION_NONE, - KSPIN_COMMUNICATION_SINK, - KSPIN_COMMUNICATION_SOURCE, - KSPIN_COMMUNICATION_BOTH, - KSPIN_COMMUNICATION_BRIDGE -} KSPIN_COMMUNICATION, *PKSPIN_COMMUNICATION; - -typedef KSIDENTIFIER KSPIN_MEDIUM, *PKSPIN_MEDIUM; - -typedef struct { - KSPIN_INTERFACE Interface; - KSPIN_MEDIUM Medium; - ULONG PinId; - HANDLE PinToHandle; - KSPRIORITY Priority; -} KSPIN_CONNECT, *PKSPIN_CONNECT; - -typedef struct { - ULONG Size; - ULONG Pin; - WCHAR SymbolicLinkName[1]; -} KSPIN_PHYSICALCONNECTION, *PKSPIN_PHYSICALCONNECTION; - -#if defined(_NTDDK_) -typedef -NTSTATUS -(*PFNKSINTERSECTHANDLER)( - IN PIRP Irp, - IN PKSP_PIN Pin, - IN PKSDATARANGE DataRange, - OUT PVOID Data OPTIONAL - ); -typedef -NTSTATUS -(*PFNKSINTERSECTHANDLEREX)( - IN PVOID Context, - IN PIRP Irp, - IN PKSP_PIN Pin, - IN PKSDATARANGE DataRange, - IN PKSDATARANGE MatchingDataRange, - IN ULONG DataBufferSize, - OUT PVOID Data OPTIONAL, - OUT PULONG DataSize - ); -#endif // _NTDDK_ - -#define DEFINE_KSPIN_INTERFACE_TABLE(tablename)\ - const KSPIN_INTERFACE tablename[] = - -#define DEFINE_KSPIN_INTERFACE_ITEM(guid, interface)\ - {\ - STATICGUIDOF(guid),\ - (interface),\ - 0\ - } - -#define DEFINE_KSPIN_MEDIUM_TABLE( tablename )\ - const KSPIN_MEDIUM tablename[] = - -#define DEFINE_KSPIN_MEDIUM_ITEM(guid, medium)\ - DEFINE_KSPIN_INTERFACE_ITEM(guid, medium) - -#define DEFINE_KSPROPERTY_ITEM_PIN_CINSTANCES(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_CINSTANCES,\ - (Handler),\ - sizeof(KSP_PIN),\ - sizeof(KSPIN_CINSTANCES),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_CTYPES(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_CTYPES,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(ULONG),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_DATAFLOW(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_DATAFLOW,\ - (Handler),\ - sizeof(KSP_PIN),\ - sizeof(KSPIN_DATAFLOW),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_DATARANGES(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_DATARANGES,\ - (Handler),\ - sizeof(KSP_PIN),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_DATAINTERSECTION(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_DATAINTERSECTION,\ - (Handler),\ - sizeof(KSP_PIN) + sizeof(KSMULTIPLE_ITEM),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_INTERFACES(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_INTERFACES,\ - (Handler),\ - sizeof(KSP_PIN),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_MEDIUMS(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_MEDIUMS,\ - (Handler),\ - sizeof(KSP_PIN),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_COMMUNICATION(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_COMMUNICATION,\ - (Handler),\ - sizeof(KSP_PIN),\ - sizeof(KSPIN_COMMUNICATION),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_GLOBALCINSTANCES(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_GLOBALCINSTANCES,\ - (Handler),\ - sizeof(KSP_PIN),\ - sizeof(KSPIN_CINSTANCES),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_NECESSARYINSTANCES(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_NECESSARYINSTANCES,\ - (Handler),\ - sizeof(KSP_PIN),\ - sizeof(ULONG),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_PHYSICALCONNECTION(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_PHYSICALCONNECTION,\ - (Handler),\ - sizeof(KSP_PIN),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_CATEGORY(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_CATEGORY,\ - (Handler),\ - sizeof(KSP_PIN),\ - sizeof(GUID),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_NAME(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_NAME,\ - (Handler),\ - sizeof(KSP_PIN),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_CONSTRAINEDDATARANGES(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_CONSTRAINEDDATARANGES,\ - (Handler),\ - sizeof(KSP_PIN),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_PIN_PROPOSEDATAFORMAT(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_PIN_PROPOSEDATAFORMAT,\ - NULL,\ - sizeof(KSP_PIN),\ - sizeof(KSDATAFORMAT),\ - (Handler), NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_PINSET(PinSet,\ - PropGeneral, PropInstances, PropIntersection)\ -DEFINE_KSPROPERTY_TABLE(PinSet) {\ - DEFINE_KSPROPERTY_ITEM_PIN_CINSTANCES(PropInstances),\ - DEFINE_KSPROPERTY_ITEM_PIN_CTYPES(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_DATAFLOW(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_DATARANGES(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_DATAINTERSECTION(PropIntersection),\ - DEFINE_KSPROPERTY_ITEM_PIN_INTERFACES(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_MEDIUMS(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_COMMUNICATION(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_CATEGORY(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_NAME(PropGeneral)\ -} - -#define DEFINE_KSPROPERTY_PINSETCONSTRAINED(PinSet,\ - PropGeneral, PropInstances, PropIntersection)\ -DEFINE_KSPROPERTY_TABLE(PinSet) {\ - DEFINE_KSPROPERTY_ITEM_PIN_CINSTANCES(PropInstances),\ - DEFINE_KSPROPERTY_ITEM_PIN_CTYPES(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_DATAFLOW(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_DATARANGES(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_DATAINTERSECTION(PropIntersection),\ - DEFINE_KSPROPERTY_ITEM_PIN_INTERFACES(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_MEDIUMS(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_COMMUNICATION(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_CATEGORY(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_NAME(PropGeneral),\ - DEFINE_KSPROPERTY_ITEM_PIN_CONSTRAINEDDATARANGES(PropGeneral)\ -} - -#define STATIC_KSNAME_Filter\ - 0x9b365890L, 0x165f, 0x11d0, 0xa1, 0x95, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4 -DEFINE_GUIDSTRUCT("9b365890-165f-11d0-a195-0020afd156e4", KSNAME_Filter); -#define KSNAME_Filter DEFINE_GUIDNAMED(KSNAME_Filter) - -#define KSSTRING_Filter L"{9B365890-165F-11D0-A195-0020AFD156E4}" - -#define STATIC_KSNAME_Pin\ - 0x146F1A80L, 0x4791, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("146F1A80-4791-11D0-A5D6-28DB04C10000", KSNAME_Pin); -#define KSNAME_Pin DEFINE_GUIDNAMED(KSNAME_Pin) - -#define KSSTRING_Pin L"{146F1A80-4791-11D0-A5D6-28DB04C10000}" - -#define STATIC_KSNAME_Clock\ - 0x53172480L, 0x4791, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("53172480-4791-11D0-A5D6-28DB04C10000", KSNAME_Clock); -#define KSNAME_Clock DEFINE_GUIDNAMED(KSNAME_Clock) - -#define KSSTRING_Clock L"{53172480-4791-11D0-A5D6-28DB04C10000}" - -#define STATIC_KSNAME_Allocator\ - 0x642F5D00L, 0x4791, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("642F5D00-4791-11D0-A5D6-28DB04C10000", KSNAME_Allocator); -#define KSNAME_Allocator DEFINE_GUIDNAMED(KSNAME_Allocator) - -#define KSSTRING_Allocator L"{642F5D00-4791-11D0-A5D6-28DB04C10000}" - -#define KSSTRING_AllocatorEx L"{091BB63B-603F-11D1-B067-00A0C9062802}" - -#define STATIC_KSNAME_TopologyNode\ - 0x0621061AL, 0xEE75, 0x11D0, 0xB9, 0x15, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("0621061A-EE75-11D0-B915-00A0C9223196", KSNAME_TopologyNode); -#define KSNAME_TopologyNode DEFINE_GUIDNAMED(KSNAME_TopologyNode) - -#define KSSTRING_TopologyNode L"{0621061A-EE75-11D0-B915-00A0C9223196}" - -#if defined(_NTDDK_) - -typedef struct { - ULONG InterfacesCount; - const KSPIN_INTERFACE* Interfaces; - ULONG MediumsCount; - const KSPIN_MEDIUM* Mediums; - ULONG DataRangesCount; - const PKSDATARANGE* DataRanges; - KSPIN_DATAFLOW DataFlow; - KSPIN_COMMUNICATION Communication; - const GUID* Category; - const GUID* Name; - union { - LONGLONG Reserved; - struct { - ULONG ConstrainedDataRangesCount; - PKSDATARANGE* ConstrainedDataRanges; - }; - }; -} KSPIN_DESCRIPTOR, *PKSPIN_DESCRIPTOR; -typedef const KSPIN_DESCRIPTOR *PCKSPIN_DESCRIPTOR; - -#define DEFINE_KSPIN_DESCRIPTOR_TABLE(tablename)\ - const KSPIN_DESCRIPTOR tablename[] = - -#define DEFINE_KSPIN_DESCRIPTOR_ITEM(\ - InterfacesCount, Interfaces,\ - MediumsCount, Mediums,\ - DataRangesCount, DataRanges,\ - DataFlow, Communication)\ -{\ - InterfacesCount, Interfaces, MediumsCount, Mediums,\ - DataRangesCount, DataRanges, DataFlow, Communication,\ - NULL, NULL, 0\ -} -#define DEFINE_KSPIN_DESCRIPTOR_ITEMEX(\ - InterfacesCount, Interfaces,\ - MediumsCount, Mediums,\ - DataRangesCount, DataRanges,\ - DataFlow, Communication,\ - Category, Name)\ -{\ - InterfacesCount, Interfaces, MediumsCount, Mediums,\ - DataRangesCount, DataRanges, DataFlow, Communication,\ - Category, Name, 0\ -} - -#endif // defined(_NTDDK_) - -//=========================================================================== - -// MEDIATYPE_NULL -#define STATIC_KSDATAFORMAT_TYPE_WILDCARD STATIC_GUID_NULL -#define KSDATAFORMAT_TYPE_WILDCARD GUID_NULL - -// MEDIASUBTYPE_NULL -#define STATIC_KSDATAFORMAT_SUBTYPE_WILDCARD STATIC_GUID_NULL -#define KSDATAFORMAT_SUBTYPE_WILDCARD GUID_NULL - -// MEDIATYPE_Stream -#define STATIC_KSDATAFORMAT_TYPE_STREAM\ - 0xE436EB83L, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 -DEFINE_GUIDSTRUCT("E436EB83-524F-11CE-9F53-0020AF0BA770", KSDATAFORMAT_TYPE_STREAM); -#define KSDATAFORMAT_TYPE_STREAM DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_STREAM) - -// MEDIASUBTYPE_None -#define STATIC_KSDATAFORMAT_SUBTYPE_NONE\ - 0xE436EB8EL, 0x524F, 0x11CE, 0x9F, 0x53, 0x00, 0x20, 0xAF, 0x0B, 0xA7, 0x70 -DEFINE_GUIDSTRUCT("E436EB8E-524F-11CE-9F53-0020AF0BA770", KSDATAFORMAT_SUBTYPE_NONE); -#define KSDATAFORMAT_SUBTYPE_NONE DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_NONE) - -#define STATIC_KSDATAFORMAT_SPECIFIER_WILDCARD STATIC_GUID_NULL -#define KSDATAFORMAT_SPECIFIER_WILDCARD GUID_NULL - -#define STATIC_KSDATAFORMAT_SPECIFIER_FILENAME\ - 0xAA797B40L, 0xE974, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("AA797B40-E974-11CF-A5D6-28DB04C10000", KSDATAFORMAT_SPECIFIER_FILENAME); -#define KSDATAFORMAT_SPECIFIER_FILENAME DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_FILENAME) - -#define STATIC_KSDATAFORMAT_SPECIFIER_FILEHANDLE\ - 0x65E8773CL, 0x8F56, 0x11D0, 0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("65E8773C-8F56-11D0-A3B9-00A0C9223196", KSDATAFORMAT_SPECIFIER_FILEHANDLE); -#define KSDATAFORMAT_SPECIFIER_FILEHANDLE DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_FILEHANDLE) - -// FORMAT_None -#define STATIC_KSDATAFORMAT_SPECIFIER_NONE\ - 0x0F6417D6L, 0xC318, 0x11D0, 0xA4, 0x3F, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("0F6417D6-C318-11D0-A43F-00A0C9223196", KSDATAFORMAT_SPECIFIER_NONE); -#define KSDATAFORMAT_SPECIFIER_NONE DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_NONE) - -//=========================================================================== - -#define STATIC_KSPROPSETID_Quality \ - 0xD16AD380L, 0xAC1A, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("D16AD380-AC1A-11CF-A5D6-28DB04C10000", KSPROPSETID_Quality); -#define KSPROPSETID_Quality DEFINE_GUIDNAMED(KSPROPSETID_Quality) - -typedef enum { - KSPROPERTY_QUALITY_REPORT, - KSPROPERTY_QUALITY_ERROR -} KSPROPERTY_QUALITY; - -#define DEFINE_KSPROPERTY_ITEM_QUALITY_REPORT(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_QUALITY_REPORT,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(KSQUALITY),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_QUALITY_ERROR(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_QUALITY_ERROR,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(KSERROR),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -//=========================================================================== - -#define STATIC_KSPROPSETID_Connection \ - 0x1D58C920L, 0xAC9B, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("1D58C920-AC9B-11CF-A5D6-28DB04C10000", KSPROPSETID_Connection); -#define KSPROPSETID_Connection DEFINE_GUIDNAMED(KSPROPSETID_Connection) - -typedef enum { - KSPROPERTY_CONNECTION_STATE, - KSPROPERTY_CONNECTION_PRIORITY, - KSPROPERTY_CONNECTION_DATAFORMAT, - KSPROPERTY_CONNECTION_ALLOCATORFRAMING, - KSPROPERTY_CONNECTION_PROPOSEDATAFORMAT, - KSPROPERTY_CONNECTION_ACQUIREORDERING, - KSPROPERTY_CONNECTION_ALLOCATORFRAMING_EX, - KSPROPERTY_CONNECTION_STARTAT -} KSPROPERTY_CONNECTION; - -#define DEFINE_KSPROPERTY_ITEM_CONNECTION_STATE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CONNECTION_STATE,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(KSSTATE),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CONNECTION_PRIORITY(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CONNECTION_PRIORITY,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(KSPRIORITY),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CONNECTION_DATAFORMAT(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CONNECTION_DATAFORMAT,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - 0,\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CONNECTION_ALLOCATORFRAMING(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CONNECTION_ALLOCATORFRAMING,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KSALLOCATOR_FRAMING),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CONNECTION_ALLOCATORFRAMING_EX(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CONNECTION_ALLOCATORFRAMING_EX,\ - (Handler),\ - sizeof(KSPROPERTY),\ - 0,\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CONNECTION_PROPOSEDATAFORMAT(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CONNECTION_PROPOSEDATAFORMAT,\ - NULL,\ - sizeof(KSPROPERTY),\ - sizeof(KSDATAFORMAT),\ - (Handler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CONNECTION_ACQUIREORDERING(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CONNECTION_ACQUIREORDERING,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(int),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CONNECTION_STARTAT(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CONNECTION_STARTAT,\ - NULL,\ - sizeof(KSPROPERTY),\ - sizeof(KSRELATIVEEVENT),\ - (Handler),\ - NULL, 0, NULL, NULL, 0) - -//=========================================================================== -// -// pins flags -// -#define KSALLOCATOR_REQUIREMENTF_INPLACE_MODIFIER 0x00000001 -#define KSALLOCATOR_REQUIREMENTF_SYSTEM_MEMORY 0x00000002 -#define KSALLOCATOR_REQUIREMENTF_FRAME_INTEGRITY 0x00000004 -#define KSALLOCATOR_REQUIREMENTF_MUST_ALLOCATE 0x00000008 -#define KSALLOCATOR_REQUIREMENTF_PREFERENCES_ONLY 0x80000000 - -#define KSALLOCATOR_OPTIONF_COMPATIBLE 0x00000001 -#define KSALLOCATOR_OPTIONF_SYSTEM_MEMORY 0x00000002 -#define KSALLOCATOR_OPTIONF_VALID 0x00000003 -// -// pins extended framing flags -// -#define KSALLOCATOR_FLAG_PARTIAL_READ_SUPPORT 0x00000010 -#define KSALLOCATOR_FLAG_DEVICE_SPECIFIC 0x00000020 -#define KSALLOCATOR_FLAG_CAN_ALLOCATE 0x00000040 -#define KSALLOCATOR_FLAG_INSIST_ON_FRAMESIZE_RATIO 0x00000080 -// -// allocator pipes flags -// -// there is at least one data modification in a pipe -#define KSALLOCATOR_FLAG_NO_FRAME_INTEGRITY 0x00000100 -#define KSALLOCATOR_FLAG_MULTIPLE_OUTPUT 0x00000200 -#define KSALLOCATOR_FLAG_CYCLE 0x00000400 -#define KSALLOCATOR_FLAG_ALLOCATOR_EXISTS 0x00000800 -// there is no framing dependency between neighbouring pipes. -#define KSALLOCATOR_FLAG_INDEPENDENT_RANGES 0x00001000 -#define KSALLOCATOR_FLAG_ATTENTION_STEPPING 0x00002000 - - -// -// old Framing structure -// -typedef struct { - union { - ULONG OptionsFlags; // allocator options (create) - ULONG RequirementsFlags; // allocation requirements (query) - }; -#if defined(_NTDDK_) - POOL_TYPE PoolType; -#else // !_NTDDK_ - ULONG PoolType; -#endif // !_NTDDK_ - ULONG Frames; // total number of allowable outstanding frames - ULONG FrameSize; // total size of frame - ULONG FileAlignment; - ULONG Reserved; -} KSALLOCATOR_FRAMING, *PKSALLOCATOR_FRAMING; - -#if defined(_NTDDK_) -typedef -PVOID -(*PFNKSDEFAULTALLOCATE)( - IN PVOID Context - ); - -typedef -VOID -(*PFNKSDEFAULTFREE)( - IN PVOID Context, - IN PVOID Buffer - ); - -typedef -NTSTATUS -(*PFNKSINITIALIZEALLOCATOR)( - IN PVOID InitialContext, - IN PKSALLOCATOR_FRAMING AllocatorFraming, - OUT PVOID* Context - ); - -typedef -VOID -(*PFNKSDELETEALLOCATOR)( - IN PVOID Context - ); -#endif // !_NTDDK_ - -// -// new Framing structure, eventually will replace KSALLOCATOR_FRAMING. -// -typedef struct { - ULONG MinFrameSize; - ULONG MaxFrameSize; - ULONG Stepping; -} KS_FRAMING_RANGE, *PKS_FRAMING_RANGE; - - -typedef struct { - KS_FRAMING_RANGE Range; - ULONG InPlaceWeight; - ULONG NotInPlaceWeight; -} KS_FRAMING_RANGE_WEIGHTED, *PKS_FRAMING_RANGE_WEIGHTED; - - -typedef struct { - ULONG RatioNumerator; // compression/expansion ratio - ULONG RatioDenominator; - ULONG RatioConstantMargin; -} KS_COMPRESSION, *PKS_COMPRESSION; - - -// -// Memory Types and Buses are repeated in each entry. -// Easiest to use but takes a little more memory than the varsize layout Pin\Memories\Buses\Ranges. -// -typedef struct { - GUID MemoryType; - GUID BusType; - ULONG MemoryFlags; - ULONG BusFlags; - ULONG Flags; - ULONG Frames; // total number of allowable outstanding frames - ULONG FileAlignment; - ULONG MemoryTypeWeight; // this memory type Weight pin-wide - KS_FRAMING_RANGE PhysicalRange; - KS_FRAMING_RANGE_WEIGHTED FramingRange; -} KS_FRAMING_ITEM, *PKS_FRAMING_ITEM; - - -typedef struct { - ULONG CountItems; // count of FramingItem-s below. - ULONG PinFlags; - KS_COMPRESSION OutputCompression; - ULONG PinWeight; // this pin framing's Weight graph-wide - KS_FRAMING_ITEM FramingItem[1]; -} KSALLOCATOR_FRAMING_EX, *PKSALLOCATOR_FRAMING_EX; - - - -// -// define memory type GUIDs -// -#define KSMEMORY_TYPE_WILDCARD GUID_NULL -#define STATIC_KSMEMORY_TYPE_WILDCARD STATIC_GUID_NULL - -#define KSMEMORY_TYPE_DONT_CARE GUID_NULL -#define STATIC_KSMEMORY_TYPE_DONT_CARE STATIC_GUID_NULL - -#define KS_TYPE_DONT_CARE GUID_NULL -#define STATIC_KS_TYPE_DONT_CARE STATIC_GUID_NULL - -#define STATIC_KSMEMORY_TYPE_SYSTEM \ - 0x091bb638L, 0x603f, 0x11d1, 0xb0, 0x67, 0x00, 0xa0, 0xc9, 0x06, 0x28, 0x02 -DEFINE_GUIDSTRUCT("091bb638-603f-11d1-b067-00a0c9062802", KSMEMORY_TYPE_SYSTEM); -#define KSMEMORY_TYPE_SYSTEM DEFINE_GUIDNAMED(KSMEMORY_TYPE_SYSTEM) - -#define STATIC_KSMEMORY_TYPE_USER \ - 0x8cb0fc28L, 0x7893, 0x11d1, 0xb0, 0x69, 0x00, 0xa0, 0xc9, 0x06, 0x28, 0x02 -DEFINE_GUIDSTRUCT("8cb0fc28-7893-11d1-b069-00a0c9062802", KSMEMORY_TYPE_USER); -#define KSMEMORY_TYPE_USER DEFINE_GUIDNAMED(KSMEMORY_TYPE_USER) - -#define STATIC_KSMEMORY_TYPE_KERNEL_PAGED \ - 0xd833f8f8L, 0x7894, 0x11d1, 0xb0, 0x69, 0x00, 0xa0, 0xc9, 0x06, 0x28, 0x02 -DEFINE_GUIDSTRUCT("d833f8f8-7894-11d1-b069-00a0c9062802", KSMEMORY_TYPE_KERNEL_PAGED); -#define KSMEMORY_TYPE_KERNEL_PAGED DEFINE_GUIDNAMED(KSMEMORY_TYPE_KERNEL_PAGED) - -#define STATIC_KSMEMORY_TYPE_KERNEL_NONPAGED \ - 0x4a6d5fc4L, 0x7895, 0x11d1, 0xb0, 0x69, 0x00, 0xa0, 0xc9, 0x06, 0x28, 0x02 -DEFINE_GUIDSTRUCT("4a6d5fc4-7895-11d1-b069-00a0c9062802", KSMEMORY_TYPE_KERNEL_NONPAGED); -#define KSMEMORY_TYPE_KERNEL_NONPAGED DEFINE_GUIDNAMED(KSMEMORY_TYPE_KERNEL_NONPAGED) - -// old KS clients did not specify the device memory type -#define STATIC_KSMEMORY_TYPE_DEVICE_UNKNOWN \ - 0x091bb639L, 0x603f, 0x11d1, 0xb0, 0x67, 0x00, 0xa0, 0xc9, 0x06, 0x28, 0x02 -DEFINE_GUIDSTRUCT("091bb639-603f-11d1-b067-00a0c9062802", KSMEMORY_TYPE_DEVICE_UNKNOWN); -#define KSMEMORY_TYPE_DEVICE_UNKNOWN DEFINE_GUIDNAMED(KSMEMORY_TYPE_DEVICE_UNKNOWN) - -// -// Helper framing macros. -// -#define DECLARE_SIMPLE_FRAMING_EX(FramingExName, MemoryType, Flags, Frames, Alignment, MinFrameSize, MaxFrameSize) \ - const KSALLOCATOR_FRAMING_EX FramingExName = \ - {\ - 1, \ - 0, \ - {\ - 1, \ - 1, \ - 0 \ - }, \ - 0, \ - {\ - {\ - MemoryType, \ - STATIC_KS_TYPE_DONT_CARE, \ - 0, \ - 0, \ - Flags, \ - Frames, \ - Alignment, \ - 0, \ - {\ - 0, \ - (ULONG)-1, \ - 1 \ - }, \ - {\ - {\ - MinFrameSize, \ - MaxFrameSize, \ - 1 \ - }, \ - 0, \ - 0 \ - }\ - }\ - }\ - } - -#define SetDefaultKsCompression(KsCompressionPointer) \ -{\ - KsCompressionPointer->RatioNumerator = 1;\ - KsCompressionPointer->RatioDenominator = 1;\ - KsCompressionPointer->RatioConstantMargin = 0;\ -} - -#define SetDontCareKsFramingRange(KsFramingRangePointer) \ -{\ - KsFramingRangePointer->MinFrameSize = 0;\ - KsFramingRangePointer->MaxFrameSize = (ULONG) -1;\ - KsFramingRangePointer->Stepping = 1;\ -} - -#define SetKsFramingRange(KsFramingRangePointer, P_MinFrameSize, P_MaxFrameSize) \ -{\ - KsFramingRangePointer->MinFrameSize = P_MinFrameSize;\ - KsFramingRangePointer->MaxFrameSize = P_MaxFrameSize;\ - KsFramingRangePointer->Stepping = 1;\ -} - -#define SetKsFramingRangeWeighted(KsFramingRangeWeightedPointer, P_MinFrameSize, P_MaxFrameSize) \ -{\ - KS_FRAMING_RANGE *KsFramingRange = &KsFramingRangeWeightedPointer->Range;\ - SetKsFramingRange(KsFramingRange, P_MinFrameSize, P_MaxFrameSize);\ - KsFramingRangeWeightedPointer->InPlaceWeight = 0;\ - KsFramingRangeWeightedPointer->NotInPlaceWeight = 0;\ -} - -#define INITIALIZE_SIMPLE_FRAMING_EX(FramingExPointer, P_MemoryType, P_Flags, P_Frames, P_Alignment, P_MinFrameSize, P_MaxFrameSize) \ -{\ - KS_COMPRESSION *KsCompression = &FramingExPointer->OutputCompression;\ - KS_FRAMING_RANGE *KsFramingRange = &FramingExPointer->FramingItem[0].PhysicalRange;\ - KS_FRAMING_RANGE_WEIGHTED *KsFramingRangeWeighted = &FramingExPointer->FramingItem[0].FramingRange;\ - FramingExPointer->CountItems = 1;\ - FramingExPointer->PinFlags = 0;\ - SetDefaultKsCompression(KsCompression);\ - FramingExPointer->PinWeight = 0;\ - FramingExPointer->FramingItem[0].MemoryType = P_MemoryType;\ - FramingExPointer->FramingItem[0].BusType = KS_TYPE_DONT_CARE;\ - FramingExPointer->FramingItem[0].MemoryFlags = 0;\ - FramingExPointer->FramingItem[0].BusFlags = 0;\ - FramingExPointer->FramingItem[0].Flags = P_Flags;\ - FramingExPointer->FramingItem[0].Frames = P_Frames;\ - FramingExPointer->FramingItem[0].FileAlignment = P_Alignment;\ - FramingExPointer->FramingItem[0].MemoryTypeWeight = 0;\ - SetDontCareKsFramingRange(KsFramingRange);\ - SetKsFramingRangeWeighted(KsFramingRangeWeighted, P_MinFrameSize, P_MaxFrameSize);\ -} - - - -// KSEVENTSETID_StreamAllocator: {75D95571-073C-11d0-A161-0020AFD156E4} - -#define STATIC_KSEVENTSETID_StreamAllocator\ - 0x75d95571L, 0x073c, 0x11d0, 0xa1, 0x61, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4 -DEFINE_GUIDSTRUCT("75d95571-073c-11d0-a161-0020afd156e4", KSEVENTSETID_StreamAllocator); -#define KSEVENTSETID_StreamAllocator DEFINE_GUIDNAMED(KSEVENTSETID_StreamAllocator) - -typedef enum { - KSEVENT_STREAMALLOCATOR_INTERNAL_FREEFRAME, - KSEVENT_STREAMALLOCATOR_FREEFRAME -} KSEVENT_STREAMALLOCATOR; - -#define STATIC_KSMETHODSETID_StreamAllocator\ - 0xcf6e4341L, 0xec87, 0x11cf, 0xa1, 0x30, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4 -DEFINE_GUIDSTRUCT("cf6e4341-ec87-11cf-a130-0020afd156e4", KSMETHODSETID_StreamAllocator); -#define KSMETHODSETID_StreamAllocator DEFINE_GUIDNAMED(KSMETHODSETID_StreamAllocator) - -typedef enum { - KSMETHOD_STREAMALLOCATOR_ALLOC, - KSMETHOD_STREAMALLOCATOR_FREE -} KSMETHOD_STREAMALLOCATOR; - -#define DEFINE_KSMETHOD_ITEM_STREAMALLOCATOR_ALLOC(Handler)\ - DEFINE_KSMETHOD_ITEM(\ - KSMETHOD_STREAMALLOCATOR_ALLOC,\ - KSMETHOD_TYPE_WRITE,\ - (Handler),\ - sizeof(KSMETHOD),\ - sizeof(PVOID),\ - NULL) - -#define DEFINE_KSMETHOD_ITEM_STREAMALLOCATOR_FREE(Handler)\ - DEFINE_KSMETHOD_ITEM(\ - KSMETHOD_STREAMALLOCATOR_FREE,\ - KSMETHOD_TYPE_READ,\ - (Handler),\ - sizeof(KSMETHOD),\ - sizeof(PVOID),\ - NULL) - -#define DEFINE_KSMETHOD_ALLOCATORSET(AllocatorSet, MethodAlloc, MethodFree)\ -DEFINE_KSMETHOD_TABLE(AllocatorSet) {\ - DEFINE_KSMETHOD_ITEM_STREAMALLOCATOR_ALLOC(MethodAlloc),\ - DEFINE_KSMETHOD_ITEM_STREAMALLOCATOR_FREE(MethodFree)\ -} - -#define STATIC_KSPROPSETID_StreamAllocator\ - 0xcf6e4342L, 0xec87, 0x11cf, 0xa1, 0x30, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4 -DEFINE_GUIDSTRUCT("cf6e4342-ec87-11cf-a130-0020afd156e4", KSPROPSETID_StreamAllocator); -#define KSPROPSETID_StreamAllocator DEFINE_GUIDNAMED(KSPROPSETID_StreamAllocator) - -#if defined(_NTDDK_) -typedef enum { - KSPROPERTY_STREAMALLOCATOR_FUNCTIONTABLE, - KSPROPERTY_STREAMALLOCATOR_STATUS -} KSPROPERTY_STREAMALLOCATOR; - -#define DEFINE_KSPROPERTY_ITEM_STREAMALLOCATOR_FUNCTIONTABLE(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAMALLOCATOR_FUNCTIONTABLE,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KSSTREAMALLOCATOR_FUNCTIONTABLE),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_STREAMALLOCATOR_STATUS(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAMALLOCATOR_STATUS,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KSSTREAMALLOCATOR_STATUS),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ALLOCATORSET(AllocatorSet, PropFunctionTable, PropStatus)\ -DEFINE_KSPROPERTY_TABLE(AllocatorSet) {\ - DEFINE_KSPROPERTY_ITEM_STREAMALLOCATOR_STATUS(PropStatus),\ - DEFINE_KSPROPERTY_ITEM_STREAMALLOCATOR_FUNCTIONTABLE(PropFunctionTable)\ -} - -typedef -NTSTATUS -(*PFNALLOCATOR_ALLOCATEFRAME)( - IN PFILE_OBJECT FileObject, - PVOID *Frame - ); - -typedef -VOID -(*PFNALLOCATOR_FREEFRAME)( - IN PFILE_OBJECT FileObject, - IN PVOID Frame - ); - -typedef struct { - PFNALLOCATOR_ALLOCATEFRAME AllocateFrame; - PFNALLOCATOR_FREEFRAME FreeFrame; -} KSSTREAMALLOCATOR_FUNCTIONTABLE, *PKSSTREAMALLOCATOR_FUNCTIONTABLE; -#endif // defined(_NTDDK_) - -typedef struct { - KSALLOCATOR_FRAMING Framing; - ULONG AllocatedFrames; - ULONG Reserved; -} KSSTREAMALLOCATOR_STATUS, *PKSSTREAMALLOCATOR_STATUS; - -typedef struct { - KSALLOCATOR_FRAMING_EX Framing; - ULONG AllocatedFrames; - ULONG Reserved; -} KSSTREAMALLOCATOR_STATUS_EX, *PKSSTREAMALLOCATOR_STATUS_EX; - - -#define KSSTREAM_HEADER_OPTIONSF_SPLICEPOINT 0x00000001 -#define KSSTREAM_HEADER_OPTIONSF_PREROLL 0x00000002 -#define KSSTREAM_HEADER_OPTIONSF_DATADISCONTINUITY 0x00000004 -#define KSSTREAM_HEADER_OPTIONSF_TYPECHANGED 0x00000008 -#define KSSTREAM_HEADER_OPTIONSF_TIMEVALID 0x00000010 -#define KSSTREAM_HEADER_OPTIONSF_TIMEDISCONTINUITY 0x00000040 -#define KSSTREAM_HEADER_OPTIONSF_FLUSHONPAUSE 0x00000080 -#define KSSTREAM_HEADER_OPTIONSF_DURATIONVALID 0x00000100 -#define KSSTREAM_HEADER_OPTIONSF_ENDOFSTREAM 0x00000200 -#define KSSTREAM_HEADER_OPTIONSF_LOOPEDDATA 0x80000000 - -typedef struct { - LONGLONG Time; - ULONG Numerator; - ULONG Denominator; -} KSTIME, *PKSTIME; - -typedef struct { - ULONG Size; - ULONG TypeSpecificFlags; - KSTIME PresentationTime; - LONGLONG Duration; - ULONG FrameExtent; - ULONG DataUsed; - PVOID Data; - ULONG OptionsFlags; -#if _WIN64 - ULONG Reserved; -#endif -} KSSTREAM_HEADER, *PKSSTREAM_HEADER; - -#define STATIC_KSPROPSETID_StreamInterface\ - 0x1fdd8ee1L, 0x9cd3, 0x11d0, 0x82, 0xaa, 0x00, 0x00, 0xf8, 0x22, 0xfe, 0x8a -DEFINE_GUIDSTRUCT("1fdd8ee1-9cd3-11d0-82aa-0000f822fe8a", KSPROPSETID_StreamInterface); -#define KSPROPSETID_StreamInterface DEFINE_GUIDNAMED(KSPROPSETID_StreamInterface) - -typedef enum { - KSPROPERTY_STREAMINTERFACE_HEADERSIZE -} KSPROPERTY_STREAMINTERFACE; - -#define DEFINE_KSPROPERTY_ITEM_STREAMINTERFACE_HEADERSIZE( GetHandler )\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAMINTERFACE_HEADERSIZE,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(ULONG),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_STREAMINTERFACESET(StreamInterfaceSet,\ - HeaderSizeHandler)\ -DEFINE_KSPROPERTY_TABLE(StreamInterfaceSet) {\ - DEFINE_KSPROPERTY_ITEM_STREAMINTERFACE_HEADERSIZE( HeaderSizeHandler )\ -} - -#define STATIC_KSPROPSETID_Stream\ - 0x65aaba60L, 0x98ae, 0x11cf, 0xa1, 0x0d, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4 -DEFINE_GUIDSTRUCT("65aaba60-98ae-11cf-a10d-0020afd156e4", KSPROPSETID_Stream); -#define KSPROPSETID_Stream DEFINE_GUIDNAMED(KSPROPSETID_Stream) - -typedef enum { - KSPROPERTY_STREAM_ALLOCATOR, - KSPROPERTY_STREAM_QUALITY, - KSPROPERTY_STREAM_DEGRADATION, - KSPROPERTY_STREAM_MASTERCLOCK, - KSPROPERTY_STREAM_TIMEFORMAT, - KSPROPERTY_STREAM_PRESENTATIONTIME, - KSPROPERTY_STREAM_PRESENTATIONEXTENT, - KSPROPERTY_STREAM_FRAMETIME, - KSPROPERTY_STREAM_RATECAPABILITY, - KSPROPERTY_STREAM_RATE, - KSPROPERTY_STREAM_PIPE_ID -} KSPROPERTY_STREAM; - -#define DEFINE_KSPROPERTY_ITEM_STREAM_ALLOCATOR(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAM_ALLOCATOR,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(HANDLE),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_STREAM_QUALITY(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAM_QUALITY,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KSQUALITY_MANAGER),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_STREAM_DEGRADATION(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAM_DEGRADATION,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - 0,\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_STREAM_MASTERCLOCK(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAM_MASTERCLOCK,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(HANDLE),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_STREAM_TIMEFORMAT(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAM_TIMEFORMAT,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(GUID),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_STREAM_PRESENTATIONTIME(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAM_PRESENTATIONTIME,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(KSTIME),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_STREAM_PRESENTATIONEXTENT(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAM_PRESENTATIONEXTENT,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(LONGLONG),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_STREAM_FRAMETIME(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAM_FRAMETIME,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KSFRAMETIME),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_STREAM_RATECAPABILITY(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAM_RATECAPABILITY,\ - (Handler),\ - sizeof(KSRATE_CAPABILITY),\ - sizeof(KSRATE),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_STREAM_RATE(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAM_RATE,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(KSRATE),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_STREAM_PIPE_ID(GetHandler, SetHandler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_STREAM_PIPE_ID,\ - (GetHandler),\ - sizeof(KSPROPERTY),\ - sizeof(HANDLE),\ - (SetHandler),\ - NULL, 0, NULL, NULL, 0) - -typedef struct { - HANDLE QualityManager; - PVOID Context; -} KSQUALITY_MANAGER, *PKSQUALITY_MANAGER; - -typedef struct { - LONGLONG Duration; - ULONG FrameFlags; - ULONG Reserved; -} KSFRAMETIME, *PKSFRAMETIME; - -#define KSFRAMETIME_VARIABLESIZE 0x00000001 - -typedef struct { - LONGLONG PresentationStart; - LONGLONG Duration; - KSPIN_INTERFACE Interface; - LONG Rate; - ULONG Flags; -} KSRATE, *PKSRATE; - -#define KSRATE_NOPRESENTATIONSTART 0x00000001 -#define KSRATE_NOPRESENTATIONDURATION 0x00000002 - -typedef struct { - KSPROPERTY Property; - KSRATE Rate; -} KSRATE_CAPABILITY, *PKSRATE_CAPABILITY; - -#define STATIC_KSPROPSETID_Clock \ - 0xDF12A4C0L, 0xAC17, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("DF12A4C0-AC17-11CF-A5D6-28DB04C10000", KSPROPSETID_Clock); -#define KSPROPSETID_Clock DEFINE_GUIDNAMED(KSPROPSETID_Clock) - -// -// Performs a x*y/z operation on 64 bit quantities by splitting the operation. The equation -// is simplified with respect to adding in the remainder for the upper 32 bits. -// -// (xh * 10000000 / Frequency) * 2^32 + ((((xh * 10000000) % Frequency) * 2^32 + (xl * 10000000)) / Frequency) -// -#define NANOSECONDS 10000000 -#define KSCONVERT_PERFORMANCE_TIME(Frequency, PerformanceTime) \ - ((((ULONGLONG)(ULONG)(PerformanceTime).HighPart * NANOSECONDS / (Frequency)) << 32) + \ - ((((((ULONGLONG)(ULONG)(PerformanceTime).HighPart * NANOSECONDS) % (Frequency)) << 32) + \ - ((ULONGLONG)(PerformanceTime).LowPart * NANOSECONDS)) / (Frequency))) - -typedef struct { - ULONG CreateFlags; -} KSCLOCK_CREATE, *PKSCLOCK_CREATE; - -typedef struct { - LONGLONG Time; - LONGLONG SystemTime; -} KSCORRELATED_TIME, *PKSCORRELATED_TIME; - -typedef struct { - LONGLONG Granularity; - LONGLONG Error; -} KSRESOLUTION, *PKSRESOLUTION; - -typedef enum { - KSPROPERTY_CLOCK_TIME, - KSPROPERTY_CLOCK_PHYSICALTIME, - KSPROPERTY_CLOCK_CORRELATEDTIME, - KSPROPERTY_CLOCK_CORRELATEDPHYSICALTIME, - KSPROPERTY_CLOCK_RESOLUTION, - KSPROPERTY_CLOCK_STATE, -#if defined(_NTDDK_) - KSPROPERTY_CLOCK_FUNCTIONTABLE -#endif // defined(_NTDDK_) -} KSPROPERTY_CLOCK; - -#if defined(_NTDDK_) - -typedef -LONGLONG -(FASTCALL *PFNKSCLOCK_GETTIME)( - IN PFILE_OBJECT FileObject - ); -typedef -LONGLONG -(FASTCALL *PFNKSCLOCK_CORRELATEDTIME)( - IN PFILE_OBJECT FileObject, - OUT PLONGLONG SystemTime); - -typedef struct { - PFNKSCLOCK_GETTIME GetTime; - PFNKSCLOCK_GETTIME GetPhysicalTime; - PFNKSCLOCK_CORRELATEDTIME GetCorrelatedTime; - PFNKSCLOCK_CORRELATEDTIME GetCorrelatedPhysicalTime; -} KSCLOCK_FUNCTIONTABLE, *PKSCLOCK_FUNCTIONTABLE; - -typedef -BOOLEAN -(*PFNKSSETTIMER)( - IN PVOID Context, - IN PKTIMER Timer, - IN LARGE_INTEGER DueTime, - IN PKDPC Dpc - ); - -typedef -BOOLEAN -(*PFNKSCANCELTIMER)( - IN PVOID Context, - IN PKTIMER Timer - ); - -typedef -LONGLONG -(FASTCALL *PFNKSCORRELATEDTIME)( - IN PVOID Context, - OUT PLONGLONG SystemTime); - -typedef PVOID PKSDEFAULTCLOCK; - -#define DEFINE_KSPROPERTY_ITEM_CLOCK_TIME(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CLOCK_TIME,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(LONGLONG),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CLOCK_PHYSICALTIME(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CLOCK_PHYSICALTIME,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(LONGLONG),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CLOCK_CORRELATEDTIME(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CLOCK_CORRELATEDTIME,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KSCORRELATED_TIME),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CLOCK_CORRELATEDPHYSICALTIME(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CLOCK_CORRELATEDPHYSICALTIME,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KSCORRELATED_TIME),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CLOCK_RESOLUTION(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CLOCK_RESOLUTION,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KSRESOLUTION),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CLOCK_STATE(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CLOCK_STATE,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KSSTATE),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_CLOCK_FUNCTIONTABLE(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_CLOCK_FUNCTIONTABLE,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(KSCLOCK_FUNCTIONTABLE),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_CLOCKSET(ClockSet,\ - PropTime, PropPhysicalTime,\ - PropCorrelatedTime, PropCorrelatedPhysicalTime,\ - PropResolution, PropState, PropFunctionTable)\ -DEFINE_KSPROPERTY_TABLE(ClockSet) {\ - DEFINE_KSPROPERTY_ITEM_CLOCK_TIME(PropTime),\ - DEFINE_KSPROPERTY_ITEM_CLOCK_PHYSICALTIME(PropPhysicalTime),\ - DEFINE_KSPROPERTY_ITEM_CLOCK_CORRELATEDTIME(PropCorrelatedTime),\ - DEFINE_KSPROPERTY_ITEM_CLOCK_CORRELATEDPHYSICALTIME(PropCorrelatedPhysicalTime),\ - DEFINE_KSPROPERTY_ITEM_CLOCK_RESOLUTION(PropResolution),\ - DEFINE_KSPROPERTY_ITEM_CLOCK_STATE(PropState),\ - DEFINE_KSPROPERTY_ITEM_CLOCK_FUNCTIONTABLE(PropFunctionTable),\ -} - -#endif // defined(_NTDDK_) - -#define STATIC_KSEVENTSETID_Clock \ - 0x364D8E20L, 0x62C7, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("364D8E20-62C7-11CF-A5D6-28DB04C10000", KSEVENTSETID_Clock); -#define KSEVENTSETID_Clock DEFINE_GUIDNAMED(KSEVENTSETID_Clock) - -typedef enum { - KSEVENT_CLOCK_INTERVAL_MARK, - KSEVENT_CLOCK_POSITION_MARK -} KSEVENT_CLOCK_POSITION; - -#define STATIC_KSEVENTSETID_Connection\ - 0x7f4bcbe0L, 0x9ea5, 0x11cf, 0xa5, 0xd6, 0x28, 0xdb, 0x04, 0xc1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("7f4bcbe0-9ea5-11cf-a5d6-28db04c10000", KSEVENTSETID_Connection); -#define KSEVENTSETID_Connection DEFINE_GUIDNAMED(KSEVENTSETID_Connection) - -typedef enum { - KSEVENT_CONNECTION_POSITIONUPDATE, - KSEVENT_CONNECTION_DATADISCONTINUITY, - KSEVENT_CONNECTION_TIMEDISCONTINUITY, - KSEVENT_CONNECTION_PRIORITY, - KSEVENT_CONNECTION_ENDOFSTREAM -} KSEVENT_CONNECTION; - -typedef struct { - PVOID Context; - ULONG Proportion; - LONGLONG DeltaTime; -} KSQUALITY, *PKSQUALITY; - -typedef struct { - PVOID Context; - ULONG Status; -} KSERROR, *PKSERROR; - -typedef KSIDENTIFIER KSDEGRADE, *PKSDEGRADE; - -#define STATIC_KSDEGRADESETID_Standard\ - 0x9F564180L, 0x704C, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("9F564180-704C-11D0-A5D6-28DB04C10000", KSDEGRADESETID_Standard); -#define KSDEGRADESETID_Standard DEFINE_GUIDNAMED(KSDEGRADESETID_Standard) - -typedef enum { - KSDEGRADE_STANDARD_SAMPLE, - KSDEGRADE_STANDARD_QUALITY, - KSDEGRADE_STANDARD_COMPUTATION, - KSDEGRADE_STANDARD_SKIP -} KSDEGRADE_STANDARD; - -#if defined(_NTDDK_) - -#define KSPROBE_STREAMREAD 0x00000000 -#define KSPROBE_STREAMWRITE 0x00000001 -#define KSPROBE_ALLOCATEMDL 0x00000010 -#define KSPROBE_PROBEANDLOCK 0x00000020 -#define KSPROBE_SYSTEMADDRESS 0x00000040 -#define KSPROBE_MODIFY 0x00000200 -#define KSPROBE_STREAMWRITEMODIFY (KSPROBE_MODIFY | KSPROBE_STREAMWRITE) -#define KSPROBE_ALLOWFORMATCHANGE 0x00000080 - -#define KSSTREAM_READ KSPROBE_STREAMREAD -#define KSSTREAM_WRITE KSPROBE_STREAMWRITE -#define KSSTREAM_PAGED_DATA 0x00000000 -#define KSSTREAM_NONPAGED_DATA 0x00000100 -#define KSSTREAM_SYNCHRONOUS 0x00001000 -#define KSSTREAM_FAILUREEXCEPTION 0x00002000 - -typedef -NTSTATUS -(*PFNKSCONTEXT_DISPATCH)( - IN PVOID Context, - IN PIRP Irp - ); - -typedef -NTSTATUS -(*PFNKSHANDLER)( - IN PIRP Irp, - IN PKSIDENTIFIER Request, - IN OUT PVOID Data - ); - -typedef -BOOLEAN -(*PFNKSFASTHANDLER)( - IN PFILE_OBJECT FileObject, - IN PKSIDENTIFIER Request, - IN ULONG RequestLength, - IN OUT PVOID Data, - IN ULONG DataLength, - OUT PIO_STATUS_BLOCK IoStatus - ); - -typedef -NTSTATUS -(*PFNKSALLOCATOR)( - IN PIRP Irp, - IN ULONG BufferSize, - IN BOOLEAN InputOperation - ); - -typedef struct { - KSPROPERTY_MEMBERSHEADER MembersHeader; - const VOID* Members; -} KSPROPERTY_MEMBERSLIST, *PKSPROPERTY_MEMBERSLIST; - -typedef struct { - KSIDENTIFIER PropTypeSet; - ULONG MembersListCount; - const KSPROPERTY_MEMBERSLIST* MembersList; -} KSPROPERTY_VALUES, *PKSPROPERTY_VALUES; - -#define DEFINE_KSPROPERTY_TABLE(tablename)\ - const KSPROPERTY_ITEM tablename[] = - -#define DEFINE_KSPROPERTY_ITEM(PropertyId, GetHandler,\ - MinProperty,\ - MinData,\ - SetHandler,\ - Values, RelationsCount, Relations, SupportHandler,\ - SerializedSize)\ -{\ - PropertyId, (PFNKSHANDLER)GetHandler, MinProperty, MinData,\ - (PFNKSHANDLER)SetHandler,\ - (PKSPROPERTY_VALUES)Values, RelationsCount, (PKSPROPERTY)Relations,\ - (PFNKSHANDLER)SupportHandler, (ULONG)SerializedSize\ -} - -typedef struct { - ULONG PropertyId; - union { - PFNKSHANDLER GetPropertyHandler; - BOOLEAN GetSupported; - }; - ULONG MinProperty; - ULONG MinData; - union { - PFNKSHANDLER SetPropertyHandler; - BOOLEAN SetSupported; - }; - const KSPROPERTY_VALUES*Values; - ULONG RelationsCount; - const KSPROPERTY* Relations; - PFNKSHANDLER SupportHandler; - ULONG SerializedSize; -} KSPROPERTY_ITEM, *PKSPROPERTY_ITEM; - -#define DEFINE_KSFASTPROPERTY_ITEM(PropertyId, GetHandler, SetHandler)\ -{\ - PropertyId, (PFNKSFASTHANDLER)GetHandler, (PFNKSFASTHANDLER)SetHandler, 0\ -} - -typedef struct { - ULONG PropertyId; - union { - PFNKSFASTHANDLER GetPropertyHandler; - BOOLEAN GetSupported; - }; - union { - PFNKSFASTHANDLER SetPropertyHandler; - BOOLEAN SetSupported; - }; - ULONG Reserved; -} KSFASTPROPERTY_ITEM, *PKSFASTPROPERTY_ITEM; - -#define DEFINE_KSPROPERTY_SET(Set,\ - PropertiesCount,\ - PropertyItem,\ - FastIoCount,\ - FastIoTable)\ -{\ - Set,\ - PropertiesCount,\ - PropertyItem,\ - FastIoCount,\ - FastIoTable\ -} - -#define DEFINE_KSPROPERTY_SET_TABLE(tablename)\ - const KSPROPERTY_SET tablename[] = - -typedef struct { - const GUID* Set; - ULONG PropertiesCount; - const KSPROPERTY_ITEM* PropertyItem; - ULONG FastIoCount; - const KSFASTPROPERTY_ITEM* FastIoTable; -} KSPROPERTY_SET, *PKSPROPERTY_SET; - -#define DEFINE_KSMETHOD_TABLE(tablename)\ - const KSMETHOD_ITEM tablename[] = - -#define DEFINE_KSMETHOD_ITEM(MethodId, Flags,\ - MethodHandler,\ - MinMethod, MinData, SupportHandler)\ -{\ - MethodId, (PFNKSHANDLER)MethodHandler, MinMethod, MinData,\ - SupportHandler, Flags\ -} - -typedef struct { - ULONG MethodId; - union { - PFNKSHANDLER MethodHandler; - BOOLEAN MethodSupported; - }; - ULONG MinMethod; - ULONG MinData; - PFNKSHANDLER SupportHandler; - ULONG Flags; -} KSMETHOD_ITEM, *PKSMETHOD_ITEM; - -#define DEFINE_KSFASTMETHOD_ITEM(MethodId, MethodHandler)\ -{\ - MethodId, (PFNKSFASTHANDLER)MethodHandler\ -} - -typedef struct { - ULONG MethodId; - union { - PFNKSFASTHANDLER MethodHandler; - BOOLEAN MethodSupported; - }; -} KSFASTMETHOD_ITEM, *PKSFASTMETHOD_ITEM; - -#define DEFINE_KSMETHOD_SET(Set,\ - MethodsCount,\ - MethodItem,\ - FastIoCount,\ - FastIoTable)\ -{\ - Set,\ - MethodsCount,\ - MethodItem,\ - FastIoCount,\ - FastIoTable\ -} - -#define DEFINE_KSMETHOD_SET_TABLE(tablename)\ - const KSMETHOD_SET tablename[] = - -typedef struct { - const GUID* Set; - ULONG MethodsCount; - const KSMETHOD_ITEM* MethodItem; - ULONG FastIoCount; - const KSFASTMETHOD_ITEM*FastIoTable; -} KSMETHOD_SET, *PKSMETHOD_SET; - -typedef struct _KSEVENT_ENTRY -KSEVENT_ENTRY, *PKSEVENT_ENTRY; - -typedef -NTSTATUS -(*PFNKSADDEVENT)( - IN PIRP Irp, - IN PKSEVENTDATA EventData, - IN struct _KSEVENT_ENTRY* EventEntry - ); - -typedef -VOID -(*PFNKSREMOVEEVENT)( - IN PFILE_OBJECT FileObject, - IN struct _KSEVENT_ENTRY* EventEntry - ); - -#define DEFINE_KSEVENT_TABLE(tablename)\ - const KSEVENT_ITEM tablename[] = - -#define DEFINE_KSEVENT_ITEM(EventId, DataInput, ExtraEntryData,\ - AddHandler, RemoveHandler, SupportHandler)\ -{\ - EventId,\ - DataInput,\ - ExtraEntryData,\ - AddHandler,\ - RemoveHandler,\ - SupportHandler\ -} - -typedef struct { - ULONG EventId; - ULONG DataInput; - ULONG ExtraEntryData; - PFNKSADDEVENT AddHandler; - PFNKSREMOVEEVENT RemoveHandler; - PFNKSHANDLER SupportHandler; -} KSEVENT_ITEM, *PKSEVENT_ITEM; - -#define DEFINE_KSEVENT_SET(Set,\ - EventsCount,\ - EventItem)\ -{\ - Set, EventsCount, EventItem\ -} - -#define DEFINE_KSEVENT_SET_TABLE(tablename)\ - const KSEVENT_SET tablename[] = - -typedef struct { - const GUID* Set; - ULONG EventsCount; - const KSEVENT_ITEM* EventItem; -} KSEVENT_SET, *PKSEVENT_SET; - -typedef struct { - KDPC Dpc; - ULONG ReferenceCount; - KSPIN_LOCK AccessLock; -} KSDPC_ITEM, *PKSDPC_ITEM; - -typedef struct { - KSDPC_ITEM DpcItem; - LIST_ENTRY BufferList; -} KSBUFFER_ITEM, *PKSBUFFER_ITEM; - -#define KSEVENT_ENTRY_DELETED 1 -#define KSEVENT_ENTRY_ONESHOT 2 -#define KSEVENT_ENTRY_BUFFERED 4 - -struct _KSEVENT_ENTRY { - LIST_ENTRY ListEntry; - PVOID Object; - union { - PKSDPC_ITEM DpcItem; - PKSBUFFER_ITEM BufferItem; - }; - PKSEVENTDATA EventData; - ULONG NotificationType; - const KSEVENT_SET* EventSet; - const KSEVENT_ITEM* EventItem; - PFILE_OBJECT FileObject; - ULONG SemaphoreAdjustment; - ULONG Reserved; - ULONG Flags; -}; - -typedef enum { - KSEVENTS_NONE, - KSEVENTS_SPINLOCK, - KSEVENTS_MUTEX, - KSEVENTS_FMUTEX, - KSEVENTS_FMUTEXUNSAFE, - KSEVENTS_INTERRUPT, - KSEVENTS_ERESOURCE -} KSEVENTS_LOCKTYPE; - -#define KSDISPATCH_FASTIO 0x80000000 - -typedef struct { - PDRIVER_DISPATCH Create; - PVOID Context; - UNICODE_STRING ObjectClass; - PSECURITY_DESCRIPTOR SecurityDescriptor; - ULONG Flags; -} KSOBJECT_CREATE_ITEM, *PKSOBJECT_CREATE_ITEM; - -typedef -VOID -(*PFNKSITEMFREECALLBACK)( - IN PKSOBJECT_CREATE_ITEM CreateItem - ); - -#define KSCREATE_ITEM_SECURITYCHANGED 0x00000001 -#define KSCREATE_ITEM_WILDCARD 0x00000002 -#define KSCREATE_ITEM_NOPARAMETERS 0x00000004 -#define KSCREATE_ITEM_FREEONSTOP 0x00000008 - -#define DEFINE_KSCREATE_DISPATCH_TABLE( tablename )\ - KSOBJECT_CREATE_ITEM tablename[] = - -#define DEFINE_KSCREATE_ITEM(DispatchCreate, TypeName, Context)\ -{\ - (DispatchCreate),\ - (PVOID)(Context),\ - {\ - sizeof(TypeName) - sizeof(UNICODE_NULL),\ - sizeof(TypeName),\ - (PWCHAR)(TypeName)\ - },\ - NULL, 0\ -} - -#define DEFINE_KSCREATE_ITEMEX(DispatchCreate, TypeName, Context, Flags)\ -{\ - (DispatchCreate),\ - (PVOID)(Context),\ - {\ - sizeof(TypeName) - sizeof(UNICODE_NULL),\ - sizeof(TypeName),\ - (PWCHAR)(TypeName)\ - },\ - NULL, (Flags)\ -} - -#define DEFINE_KSCREATE_ITEMNULL( DispatchCreate, Context )\ -{\ - DispatchCreate,\ - Context,\ - {\ - 0,\ - 0,\ - NULL,\ - },\ - NULL, 0\ -} - -typedef struct { - ULONG CreateItemsCount; - PKSOBJECT_CREATE_ITEM CreateItemsList; -} KSOBJECT_CREATE, *PKSOBJECT_CREATE; - -typedef struct { - PDRIVER_DISPATCH DeviceIoControl; - PDRIVER_DISPATCH Read; - PDRIVER_DISPATCH Write; - PDRIVER_DISPATCH Flush; - PDRIVER_DISPATCH Close; - PDRIVER_DISPATCH QuerySecurity; - PDRIVER_DISPATCH SetSecurity; - PFAST_IO_DEVICE_CONTROL FastDeviceIoControl; - PFAST_IO_READ FastRead; - PFAST_IO_WRITE FastWrite; -} KSDISPATCH_TABLE, *PKSDISPATCH_TABLE; - -#define DEFINE_KSDISPATCH_TABLE( tablename, DeviceIoControl, Read, Write,\ - Flush, Close, QuerySecurity, SetSecurity,\ - FastDeviceIoControl, FastRead, FastWrite )\ - const KSDISPATCH_TABLE tablename = \ - {\ - DeviceIoControl, \ - Read, \ - Write, \ - Flush, \ - Close, \ - QuerySecurity, \ - SetSecurity, \ - FastDeviceIoControl, \ - FastRead, \ - FastWrite, \ - } - -#define KSCREATE_ITEM_IRP_STORAGE(Irp) (*(PKSOBJECT_CREATE_ITEM*)&(Irp)->Tail.Overlay.DriverContext[0]) -#define KSEVENT_SET_IRP_STORAGE(Irp) (*(const KSEVENT_SET**)&(Irp)->Tail.Overlay.DriverContext[0]) -#define KSEVENT_ITEM_IRP_STORAGE(Irp) (*(const KSEVENT_ITEM**)&(Irp)->Tail.Overlay.DriverContext[3]) -#define KSEVENT_ENTRY_IRP_STORAGE(Irp) (*(PKSEVENT_ENTRY*)&(Irp)->Tail.Overlay.DriverContext[0]) -#define KSMETHOD_SET_IRP_STORAGE(Irp) (*(const KSMETHOD_SET**)&(Irp)->Tail.Overlay.DriverContext[0]) -#define KSMETHOD_ITEM_IRP_STORAGE(Irp) (*(const KSMETHOD_ITEM**)&(Irp)->Tail.Overlay.DriverContext[3]) -#define KSMETHOD_TYPE_IRP_STORAGE(Irp) (*(ULONG_PTR*)(&(Irp)->Tail.Overlay.DriverContext[2])) -#define KSQUEUE_SPINLOCK_IRP_STORAGE(Irp) (*(PKSPIN_LOCK*)&(Irp)->Tail.Overlay.DriverContext[1]) -#define KSPROPERTY_SET_IRP_STORAGE(Irp) (*(const KSPROPERTY_SET**)&(Irp)->Tail.Overlay.DriverContext[0]) -#define KSPROPERTY_ITEM_IRP_STORAGE(Irp) (*(const KSPROPERTY_ITEM**)&(Irp)->Tail.Overlay.DriverContext[3]) -#define KSPROPERTY_ATTRIBUTES_IRP_STORAGE(Irp) (*(PKSATTRIBUTE_LIST*)&(Irp)->Tail.Overlay.DriverContext[2]) - -typedef PVOID KSDEVICE_HEADER, KSOBJECT_HEADER; - -typedef enum { - KsInvokeOnSuccess = 1, - KsInvokeOnError = 2, - KsInvokeOnCancel = 4 -} KSCOMPLETION_INVOCATION; - -typedef enum { - KsListEntryTail, - KsListEntryHead -} KSLIST_ENTRY_LOCATION; - -typedef enum { - KsAcquireOnly, - KsAcquireAndRemove, - KsAcquireOnlySingleItem, - KsAcquireAndRemoveOnlySingleItem -} KSIRP_REMOVAL_OPERATION; - -typedef enum { - KsStackCopyToNewLocation, - KsStackReuseCurrentLocation, - KsStackUseNewLocation -} KSSTACK_USE; - -typedef enum { - KSTARGET_STATE_DISABLED, - KSTARGET_STATE_ENABLED -} KSTARGET_STATE; - -typedef -NTSTATUS -(*PFNKSIRPLISTCALLBACK)( - IN PIRP Irp, - IN PVOID Context - ); - -typedef -VOID -(*PFNREFERENCEDEVICEOBJECT)( - IN PVOID Context - ); - -typedef -VOID -(*PFNDEREFERENCEDEVICEOBJECT)( - IN PVOID Context - ); - -typedef -NTSTATUS -(*PFNQUERYREFERENCESTRING)( - IN PVOID Context, - IN OUT PWCHAR *String - ); - -#define BUS_INTERFACE_REFERENCE_VERSION 0x100 - -typedef struct { - // - // Standard interface header - // - - INTERFACE Interface; - - // - // Standard bus interfaces - // - - PFNREFERENCEDEVICEOBJECT ReferenceDeviceObject; - PFNDEREFERENCEDEVICEOBJECT DereferenceDeviceObject; - PFNQUERYREFERENCESTRING QueryReferenceString; - -} BUS_INTERFACE_REFERENCE, *PBUS_INTERFACE_REFERENCE; - -#define STATIC_REFERENCE_BUS_INTERFACE STATIC_KSMEDIUMSETID_Standard -#define REFERENCE_BUS_INTERFACE KSMEDIUMSETID_Standard - -typedef -NTSTATUS -(*PFNQUERYMEDIUMSLIST)( - IN PVOID Context, - OUT ULONG* MediumsCount, - OUT PKSPIN_MEDIUM* MediumList - ); - -typedef struct { - // - // Standard interface header - // - - INTERFACE Interface; - - // - // Interface definition - // - - PFNQUERYMEDIUMSLIST QueryMediumsList; - -} BUS_INTERFACE_MEDIUMS, *PBUS_INTERFACE_MEDIUMS; - -#define STATIC_GUID_BUS_INTERFACE_MEDIUMS \ - 0x4EC35C3EL, 0x201B, 0x11D2, 0x87, 0x45, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("4EC35C3E-201B-11D2-8745-00A0C9223196", GUID_BUS_INTERFACE_MEDIUMS); -#define GUID_BUS_INTERFACE_MEDIUMS DEFINE_GUIDNAMED(GUID_BUS_INTERFACE_MEDIUMS) - -#endif // defined(_NTDDK_) - -#if !defined( PACK_PRAGMAS_NOT_SUPPORTED ) -#include -#endif - -typedef struct { - GUID PropertySet; - ULONG Count; -} KSPROPERTY_SERIALHDR, *PKSPROPERTY_SERIALHDR; - -#if !defined( PACK_PRAGMAS_NOT_SUPPORTED ) -#include -#endif - -typedef struct { - KSIDENTIFIER PropTypeSet; - ULONG Id; - ULONG PropertyLength; -} KSPROPERTY_SERIAL, *PKSPROPERTY_SERIAL; - -#if defined(_NTDDK_) - -#define IOCTL_KS_HANDSHAKE CTL_CODE(FILE_DEVICE_KS, 0x007, METHOD_NEITHER, FILE_ANY_ACCESS) - -typedef struct { - GUID ProtocolId; - PVOID Argument1; - PVOID Argument2; -} KSHANDSHAKE, *PKSHANDSHAKE; - -typedef struct _KSGATE -KSGATE, *PKSGATE; - -struct _KSGATE { - LONG Count; - PKSGATE NextGate; -}; - -#ifndef _NTOS_ - -void __inline -KsGateTurnInputOn( - IN PKSGATE Gate OPTIONAL - ) -{ - while (Gate && (InterlockedIncrement(&Gate->Count) == 1)) { - Gate = Gate->NextGate; - } -} - -void __inline -KsGateTurnInputOff( - IN PKSGATE Gate OPTIONAL - ) -{ - while (Gate && (InterlockedDecrement(&Gate->Count) == 0)) { - Gate = Gate->NextGate; - } -} - -BOOLEAN __inline -KsGateGetStateUnsafe( - IN PKSGATE Gate - ) -{ - ASSERT(Gate); - return((BOOLEAN)(Gate->Count > 0)); -} - -BOOLEAN __inline -KsGateCaptureThreshold( - IN PKSGATE Gate - ) -{ - BOOLEAN captured; - - ASSERT(Gate); - - captured = (BOOLEAN)(InterlockedCompareExchange(&Gate->Count,0,1) == 1); - - // - // If we made a transition, it must be propagated. - // - if (captured) { - KsGateTurnInputOff(Gate->NextGate); - } - - // - // We return whatever the state was prior to the compare/exchange. If - // the state was on, the state is now off. - // - return captured; -} - -void __inline -KsGateInitialize( - IN PKSGATE Gate, - IN LONG InitialCount, - IN PKSGATE NextGate OPTIONAL, - IN BOOLEAN StateToPropagate // IN BOOLEAN NextGateIsAnOrGate - ) -{ - ASSERT(Gate); - Gate->Count = InitialCount; - Gate->NextGate = NextGate; - - if (NextGate) { - if (InitialCount > 0) { - if (StateToPropagate) { - KsGateTurnInputOn(NextGate); - } - } else { - if (! StateToPropagate) { - KsGateTurnInputOff(NextGate); - } - } - } -} - -void __inline -KsGateInitializeAnd( - IN PKSGATE AndGate, - IN PKSGATE NextOrGate OPTIONAL - ) -{ - KsGateInitialize(AndGate,1,NextOrGate,TRUE); -} - -void __inline -KsGateInitializeOr( - IN PKSGATE OrGate, - IN PKSGATE NextAndGate OPTIONAL - ) -{ - KsGateInitialize(OrGate,0,NextAndGate,FALSE); -} - -void __inline KsGateAddOnInputToAnd(IN PKSGATE AndGate) { UNREFERENCED_PARAMETER (AndGate); } -void __inline KsGateAddOffInputToAnd(IN PKSGATE AndGate) { KsGateTurnInputOff(AndGate); } -void __inline KsGateRemoveOnInputFromAnd(IN PKSGATE AndGate) { UNREFERENCED_PARAMETER (AndGate); } -void __inline KsGateRemoveOffInputFromAnd(IN PKSGATE AndGate) { KsGateTurnInputOn(AndGate); } - -void __inline KsGateAddOnInputToOr(IN PKSGATE OrGate) { KsGateTurnInputOn(OrGate); } -void __inline KsGateAddOffInputToOr(IN PKSGATE OrGate) { UNREFERENCED_PARAMETER (OrGate); } -void __inline KsGateRemoveOnInputFromOr(IN PKSGATE OrGate) { KsGateTurnInputOff(OrGate); } -void __inline KsGateRemoveOffInputFromOr(IN PKSGATE OrGate) { UNREFERENCED_PARAMETER (OrGate); } - -void __inline -KsGateTerminateAnd( - IN PKSGATE AndGate - ) -{ - ASSERT(AndGate); - if (KsGateGetStateUnsafe(AndGate)) { - KsGateRemoveOnInputFromOr(AndGate->NextGate); - } else { - KsGateRemoveOffInputFromOr(AndGate->NextGate); - } -} - -void __inline -KsGateTerminateOr( - IN PKSGATE OrGate - ) -{ - ASSERT(OrGate); - if (KsGateGetStateUnsafe(OrGate)) { - KsGateRemoveOnInputFromAnd(OrGate->NextGate); - } else { - KsGateRemoveOffInputFromAnd(OrGate->NextGate); - } -} - -#endif // !_NTOS_ - -typedef PVOID KSOBJECT_BAG; - -typedef -BOOLEAN -(*PFNKSGENERATEEVENTCALLBACK)( - IN PVOID Context, - IN PKSEVENT_ENTRY EventEntry - ); - -typedef -NTSTATUS -(*PFNKSDEVICECREATE)( - IN PKSDEVICE Device - ); -typedef -NTSTATUS -(*PFNKSDEVICEPNPSTART)( - IN PKSDEVICE Device, - IN PIRP Irp, - IN PCM_RESOURCE_LIST TranslatedResourceList OPTIONAL, - IN PCM_RESOURCE_LIST UntranslatedResourceList OPTIONAL - ); -typedef -NTSTATUS -(*PFNKSDEVICE)( - IN PKSDEVICE Device - ); -typedef -NTSTATUS -(*PFNKSDEVICEIRP)( - IN PKSDEVICE Device, - IN PIRP Irp - ); -typedef -void -(*PFNKSDEVICEIRPVOID)( - IN PKSDEVICE Device, - IN PIRP Irp - ); -typedef -NTSTATUS -(*PFNKSDEVICEQUERYCAPABILITIES)( - IN PKSDEVICE Device, - IN PIRP Irp, - IN OUT PDEVICE_CAPABILITIES Capabilities - ); -typedef -NTSTATUS -(*PFNKSDEVICEQUERYPOWER)( - IN PKSDEVICE Device, - IN PIRP Irp, - IN DEVICE_POWER_STATE DeviceTo, - IN DEVICE_POWER_STATE DeviceFrom, - IN SYSTEM_POWER_STATE SystemTo, - IN SYSTEM_POWER_STATE SystemFrom, - IN POWER_ACTION Action - ); -typedef -void -(*PFNKSDEVICESETPOWER)( - IN PKSDEVICE Device, - IN PIRP Irp, - IN DEVICE_POWER_STATE To, - IN DEVICE_POWER_STATE From - ); -typedef -NTSTATUS -(*PFNKSFILTERFACTORYVOID)( - IN PKSFILTERFACTORY FilterFactory - ); -typedef -void -(*PFNKSFILTERFACTORYPOWER)( - IN PKSFILTERFACTORY FilterFactory, - IN DEVICE_POWER_STATE State - ); -typedef -NTSTATUS -(*PFNKSFILTERIRP)( - IN PKSFILTER Filter, - IN PIRP Irp - ); -typedef -NTSTATUS -(*PFNKSFILTERPROCESS)( - IN PKSFILTER Filter, - IN PKSPROCESSPIN_INDEXENTRY Index - ); -typedef -NTSTATUS -(*PFNKSFILTERVOID)( - IN PKSFILTER Filter - ); -typedef -void -(*PFNKSFILTERPOWER)( - IN PKSFILTER Filter, - IN DEVICE_POWER_STATE State - ); -typedef -NTSTATUS -(*PFNKSPINIRP)( - IN PKSPIN Pin, - IN PIRP Irp - ); -typedef -NTSTATUS -(*PFNKSPINSETDEVICESTATE)( - IN PKSPIN Pin, - IN KSSTATE ToState, - IN KSSTATE FromState - ); -typedef -NTSTATUS -(*PFNKSPINSETDATAFORMAT)( - IN PKSPIN Pin, - IN PKSDATAFORMAT OldFormat OPTIONAL, - IN PKSMULTIPLE_ITEM OldAttributeList OPTIONAL, - IN const KSDATARANGE* DataRange, - IN const KSATTRIBUTE_LIST* AttributeRange OPTIONAL - ); -typedef -NTSTATUS -(*PFNKSPINHANDSHAKE)( - IN PKSPIN Pin, - IN PKSHANDSHAKE In, - IN PKSHANDSHAKE Out - ); -typedef -NTSTATUS -(*PFNKSPIN)( - IN PKSPIN Pin - ); -typedef -void -(*PFNKSPINVOID)( - IN PKSPIN Pin - ); -typedef -void -(*PFNKSPINPOWER)( - IN PKSPIN Pin, - IN DEVICE_POWER_STATE State - ); -typedef -BOOLEAN -(*PFNKSPINSETTIMER)( - IN PKSPIN Pin, - IN PKTIMER Timer, - IN LARGE_INTEGER DueTime, - IN PKDPC Dpc - ); -typedef -BOOLEAN -(*PFNKSPINCANCELTIMER)( - IN PKSPIN Pin, - IN PKTIMER Timer - ); -typedef -LONGLONG -(FASTCALL *PFNKSPINCORRELATEDTIME)( - IN PKSPIN Pin, - OUT PLONGLONG SystemTime - ); -typedef -void -(*PFNKSPINRESOLUTION)( - IN PKSPIN Pin, - OUT PKSRESOLUTION Resolution - ); -typedef -NTSTATUS -(*PFNKSPININITIALIZEALLOCATOR)( - IN PKSPIN Pin, - IN PKSALLOCATOR_FRAMING AllocatorFraming, - OUT PVOID* Context - ); -typedef -void -(*PFNKSSTREAMPOINTER)( - IN PKSSTREAM_POINTER StreamPointer - ); - -typedef struct KSAUTOMATION_TABLE_ -KSAUTOMATION_TABLE, *PKSAUTOMATION_TABLE; -struct KSAUTOMATION_TABLE_ { - ULONG PropertySetsCount; - ULONG PropertyItemSize; - const KSPROPERTY_SET* PropertySets; - ULONG MethodSetsCount; - ULONG MethodItemSize; - const KSMETHOD_SET* MethodSets; - ULONG EventSetsCount; - ULONG EventItemSize; - const KSEVENT_SET* EventSets; -#if !defined(_WIN64) - PVOID Alignment; -#endif // !defined(_WIN64) -}; - -#define DEFINE_KSAUTOMATION_TABLE(table)\ - const KSAUTOMATION_TABLE table = - -#define DEFINE_KSAUTOMATION_PROPERTIES(table)\ - SIZEOF_ARRAY(table),\ - sizeof(KSPROPERTY_ITEM),\ - table - -#define DEFINE_KSAUTOMATION_METHODS(table)\ - SIZEOF_ARRAY(table),\ - sizeof(KSMETHOD_ITEM),\ - table - -#define DEFINE_KSAUTOMATION_EVENTS(table)\ - SIZEOF_ARRAY(table),\ - sizeof(KSEVENT_ITEM),\ - table - -#define DEFINE_KSAUTOMATION_PROPERTIES_NULL\ - 0,\ - sizeof(KSPROPERTY_ITEM),\ - NULL - -#define DEFINE_KSAUTOMATION_METHODS_NULL\ - 0,\ - sizeof(KSMETHOD_ITEM),\ - NULL - -#define DEFINE_KSAUTOMATION_EVENTS_NULL\ - 0,\ - sizeof(KSEVENT_ITEM),\ - NULL - -#define MIN_DEV_VER_FOR_QI (0x100) - -struct _KSDEVICE_DISPATCH { - PFNKSDEVICECREATE Add; - PFNKSDEVICEPNPSTART Start; - PFNKSDEVICE PostStart; - PFNKSDEVICEIRP QueryStop; - PFNKSDEVICEIRPVOID CancelStop; - PFNKSDEVICEIRPVOID Stop; - PFNKSDEVICEIRP QueryRemove; - PFNKSDEVICEIRPVOID CancelRemove; - PFNKSDEVICEIRPVOID Remove; - PFNKSDEVICEQUERYCAPABILITIES QueryCapabilities; - PFNKSDEVICEIRPVOID SurpriseRemoval; - PFNKSDEVICEQUERYPOWER QueryPower; - PFNKSDEVICESETPOWER SetPower; - PFNKSDEVICEIRP QueryInterface; // added in version 0x100 -}; - -struct _KSFILTER_DISPATCH { - PFNKSFILTERIRP Create; - PFNKSFILTERIRP Close; - PFNKSFILTERPROCESS Process; - PFNKSFILTERVOID Reset; -}; - -struct _KSPIN_DISPATCH { - PFNKSPINIRP Create; - PFNKSPINIRP Close; - PFNKSPIN Process; - PFNKSPINVOID Reset; - PFNKSPINSETDATAFORMAT SetDataFormat; - PFNKSPINSETDEVICESTATE SetDeviceState; - PFNKSPIN Connect; - PFNKSPINVOID Disconnect; - const KSCLOCK_DISPATCH* Clock; - const KSALLOCATOR_DISPATCH* Allocator; -}; - -struct _KSCLOCK_DISPATCH { - PFNKSPINSETTIMER SetTimer; - PFNKSPINCANCELTIMER CancelTimer; - PFNKSPINCORRELATEDTIME CorrelatedTime; - PFNKSPINRESOLUTION Resolution; -}; - -struct _KSALLOCATOR_DISPATCH { - PFNKSPININITIALIZEALLOCATOR InitializeAllocator; - PFNKSDELETEALLOCATOR DeleteAllocator; - PFNKSDEFAULTALLOCATE Allocate; - PFNKSDEFAULTFREE Free; -}; - -#define KSDEVICE_DESCRIPTOR_VERSION (0x100) - -struct _KSDEVICE_DESCRIPTOR { - const KSDEVICE_DISPATCH* Dispatch; - ULONG FilterDescriptorsCount; - const KSFILTER_DESCRIPTOR*const* FilterDescriptors; - ULONG Version; // this is 0 for pre-version 100 driver - //#if !defined(_WIN64) - //PVOID Alignment; - //#endif //!defined(_WIN64) -}; - -struct _KSFILTER_DESCRIPTOR { - const KSFILTER_DISPATCH* Dispatch; - const KSAUTOMATION_TABLE* AutomationTable; - ULONG Version; -#define KSFILTER_DESCRIPTOR_VERSION ((ULONG)-1) - ULONG Flags; -#define KSFILTER_FLAG_DISPATCH_LEVEL_PROCESSING 0x00000001 -#define KSFILTER_FLAG_CRITICAL_PROCESSING 0x00000002 -#define KSFILTER_FLAG_HYPERCRITICAL_PROCESSING 0x00000004 -#define KSFILTER_FLAG_RECEIVE_ZERO_LENGTH_SAMPLES 0x00000008 -#define KSFILTER_FLAG_DENY_USERMODE_ACCESS 0x80000000 - const GUID* ReferenceGuid; - ULONG PinDescriptorsCount; - ULONG PinDescriptorSize; - const KSPIN_DESCRIPTOR_EX* PinDescriptors; - ULONG CategoriesCount; - const GUID* Categories; - ULONG NodeDescriptorsCount; - ULONG NodeDescriptorSize; - const KSNODE_DESCRIPTOR* NodeDescriptors; - ULONG ConnectionsCount; - const KSTOPOLOGY_CONNECTION* Connections; - const KSCOMPONENTID* ComponentId; -}; - -#define DEFINE_KSFILTER_DESCRIPTOR(descriptor)\ - const KSFILTER_DESCRIPTOR descriptor = - -#define DEFINE_KSFILTER_PIN_DESCRIPTORS(table)\ - SIZEOF_ARRAY(table),\ - sizeof(table[0]),\ - table - -#define DEFINE_KSFILTER_CATEGORIES(table)\ - SIZEOF_ARRAY(table),\ - table - -#define DEFINE_KSFILTER_CATEGORY(category)\ - 1,\ - &(category) - -#define DEFINE_KSFILTER_CATEGORIES_NULL\ - 0,\ - NULL - -#define DEFINE_KSFILTER_NODE_DESCRIPTORS(table)\ - SIZEOF_ARRAY(table),\ - sizeof(table[0]),\ - table - -#define DEFINE_KSFILTER_NODE_DESCRIPTORS_NULL\ - 0,\ - sizeof(KSNODE_DESCRIPTOR),\ - NULL - -#define DEFINE_KSFILTER_CONNECTIONS(table)\ - SIZEOF_ARRAY(table),\ - table - -#define DEFINE_KSFILTER_DEFAULT_CONNECTIONS\ - 0,\ - NULL - -#define DEFINE_KSFILTER_DESCRIPTOR_TABLE(table)\ - const KSFILTER_DESCRIPTOR*const table[] = - -struct _KSPIN_DESCRIPTOR_EX { - const KSPIN_DISPATCH* Dispatch; - const KSAUTOMATION_TABLE* AutomationTable; - KSPIN_DESCRIPTOR PinDescriptor; - ULONG Flags; -#define KSPIN_FLAG_DISPATCH_LEVEL_PROCESSING KSFILTER_FLAG_DISPATCH_LEVEL_PROCESSING -#define KSPIN_FLAG_CRITICAL_PROCESSING KSFILTER_FLAG_CRITICAL_PROCESSING -#define KSPIN_FLAG_HYPERCRITICAL_PROCESSING KSFILTER_FLAG_HYPERCRITICAL_PROCESSING -#define KSPIN_FLAG_ASYNCHRONOUS_PROCESSING 0x00000008 -#define KSPIN_FLAG_DO_NOT_INITIATE_PROCESSING 0x00000010 -#define KSPIN_FLAG_INITIATE_PROCESSING_ON_EVERY_ARRIVAL 0x00000020 -#define KSPIN_FLAG_FRAMES_NOT_REQUIRED_FOR_PROCESSING 0x00000040 -#define KSPIN_FLAG_ENFORCE_FIFO 0x00000080 - -#define KSPIN_FLAG_GENERATE_MAPPINGS 0x00000100 -#define KSPIN_FLAG_DISTINCT_TRAILING_EDGE 0x00000200 - -#define KSPIN_FLAG_PROCESS_IN_RUN_STATE_ONLY 0x00010000 -#define KSPIN_FLAG_SPLITTER 0x00020000 -#define KSPIN_FLAG_USE_STANDARD_TRANSPORT 0x00040000 -#define KSPIN_FLAG_DO_NOT_USE_STANDARD_TRANSPORT 0x00080000 -#define KSPIN_FLAG_FIXED_FORMAT 0x00100000 -#define KSPIN_FLAG_GENERATE_EOS_EVENTS 0x00200000 -#define KSPIN_FLAG_RENDERER (KSPIN_FLAG_PROCESS_IN_RUN_STATE_ONLY|KSPIN_FLAG_GENERATE_EOS_EVENTS) -#define KSPIN_FLAG_IMPLEMENT_CLOCK 0x00400000 -#define KSPIN_FLAG_SOME_FRAMES_REQUIRED_FOR_PROCESSING 0x00800000 -#define KSPIN_FLAG_PROCESS_IF_ANY_IN_RUN_STATE 0x01000000 -#define KSPIN_FLAG_DENY_USERMODE_ACCESS 0x80000000 - ULONG InstancesPossible; - ULONG InstancesNecessary; - const KSALLOCATOR_FRAMING_EX* AllocatorFraming; - PFNKSINTERSECTHANDLEREX IntersectHandler; -}; - -#define DEFINE_KSPIN_DEFAULT_INTERFACES\ - 0,\ - NULL - -#define DEFINE_KSPIN_DEFAULT_MEDIUMS\ - 0,\ - NULL - -struct _KSNODE_DESCRIPTOR { - const KSAUTOMATION_TABLE* AutomationTable; - const GUID* Type; - const GUID* Name; -#if !defined(_WIN64) - PVOID Alignment; -#endif // !defined(_WIN64) -}; - -#if !defined(_WIN64) -#define DEFINE_NODE_DESCRIPTOR(automation,type,name) \ - { (automation), (type), (name), NULL } -#else // !defined(_WIN64) -#define DEFINE_NODE_DESCRIPTOR(automation,type,name) \ - { (automation), (type), (name) } -#endif // !defined(_WIN64) - -struct _KSDEVICE { - const KSDEVICE_DESCRIPTOR* Descriptor; - KSOBJECT_BAG Bag; - PVOID Context; - PDEVICE_OBJECT FunctionalDeviceObject; - PDEVICE_OBJECT PhysicalDeviceObject; - PDEVICE_OBJECT NextDeviceObject; - BOOLEAN Started; - SYSTEM_POWER_STATE SystemPowerState; - DEVICE_POWER_STATE DevicePowerState; -}; - -struct _KSFILTERFACTORY { - const KSFILTER_DESCRIPTOR* FilterDescriptor; - KSOBJECT_BAG Bag; - PVOID Context; -}; - -struct _KSFILTER { - const KSFILTER_DESCRIPTOR* Descriptor; - KSOBJECT_BAG Bag; - PVOID Context; -}; - -struct _KSPIN { - const KSPIN_DESCRIPTOR_EX* Descriptor; - KSOBJECT_BAG Bag; - PVOID Context; - ULONG Id; - KSPIN_COMMUNICATION Communication; - BOOLEAN ConnectionIsExternal; - KSPIN_INTERFACE ConnectionInterface; - KSPIN_MEDIUM ConnectionMedium; - KSPRIORITY ConnectionPriority; - PKSDATAFORMAT ConnectionFormat; - PKSMULTIPLE_ITEM AttributeList; - ULONG StreamHeaderSize; - KSPIN_DATAFLOW DataFlow; - KSSTATE DeviceState; - KSRESET ResetState; - KSSTATE ClientState; -}; - -struct _KSMAPPING { - PHYSICAL_ADDRESS PhysicalAddress; - ULONG ByteCount; - ULONG Alignment; -}; - -struct _KSSTREAM_POINTER_OFFSET -{ -#if defined(_NTDDK_) - union { - PUCHAR Data; - PKSMAPPING Mappings; - }; -#else // !defined(_NTDDK_) - PUCHAR Data; -#endif // !defined(_NTDDK_) -#if !defined(_WIN64) - PVOID Alignment; -#endif // !defined(_WIN64) - ULONG Count; - ULONG Remaining; -}; - -struct _KSSTREAM_POINTER -{ - PVOID Context; - PKSPIN Pin; - PKSSTREAM_HEADER StreamHeader; - PKSSTREAM_POINTER_OFFSET Offset; - KSSTREAM_POINTER_OFFSET OffsetIn; - KSSTREAM_POINTER_OFFSET OffsetOut; -}; - -struct _KSPROCESSPIN { - PKSPIN Pin; - PKSSTREAM_POINTER StreamPointer; - PKSPROCESSPIN InPlaceCounterpart; - PKSPROCESSPIN DelegateBranch; - PKSPROCESSPIN CopySource; - PVOID Data; - ULONG BytesAvailable; - ULONG BytesUsed; - ULONG Flags; - BOOLEAN Terminate; -}; - -struct _KSPROCESSPIN_INDEXENTRY { - PKSPROCESSPIN *Pins; - ULONG Count; -}; - -typedef enum { - KsObjectTypeDevice, - KsObjectTypeFilterFactory, - KsObjectTypeFilter, - KsObjectTypePin -} KSOBJECTTYPE; - -typedef -void -(*PFNKSFREE)( - IN PVOID Data - ); - -typedef -void -(*PFNKSPINFRAMERETURN)( - IN PKSPIN Pin, - IN PVOID Data OPTIONAL, - IN ULONG Size OPTIONAL, - IN PMDL Mdl OPTIONAL, - IN PVOID Context OPTIONAL, - IN NTSTATUS Status - ); - -typedef -void -(*PFNKSPINIRPCOMPLETION)( - IN PKSPIN Pin, - IN PIRP Irp - ); - -#if defined(_UNKNOWN_H_) || defined(__IUnknown_INTERFACE_DEFINED__) -#if !defined(_IKsControl_) -#define _IKsControl_ - -typedef interface IKsControl* PIKSCONTROL; - -#if !defined(DEFINE_ABSTRACT_UNKNOWN) - -#define DEFINE_ABSTRACT_UNKNOWN() \ - STDMETHOD_(NTSTATUS, QueryInterface)(THIS_ \ - REFIID InterfaceId, \ - PVOID* Interface \ - ) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; - -#endif //!defined(DEFINE_ABSTRACT_UNKNOWN) - -#undef INTERFACE -#define INTERFACE IKsControl -DECLARE_INTERFACE_(IKsControl,IUnknown) -{ - DEFINE_ABSTRACT_UNKNOWN() // For C - - STDMETHOD_(NTSTATUS, KsProperty)(THIS_ - IN PKSPROPERTY Property, - IN ULONG PropertyLength, - IN OUT PVOID PropertyData, - IN ULONG DataLength, - OUT ULONG* BytesReturned - ) PURE; - STDMETHOD_(NTSTATUS, KsMethod)(THIS_ - IN PKSMETHOD Method, - IN ULONG MethodLength, - IN OUT PVOID MethodData, - IN ULONG DataLength, - OUT ULONG* BytesReturned - ) PURE; - STDMETHOD_(NTSTATUS, KsEvent)(THIS_ - IN PKSEVENT Event OPTIONAL, - IN ULONG EventLength, - IN OUT PVOID EventData, - IN ULONG DataLength, - OUT ULONG* BytesReturned - ) PURE; -}; - -typedef interface IKsReferenceClock* PIKSREFERENCECLOCK; - -#undef INTERFACE -#define INTERFACE IKsReferenceClock -DECLARE_INTERFACE_(IKsReferenceClock,IUnknown) -{ - DEFINE_ABSTRACT_UNKNOWN() // For C - - STDMETHOD_(LONGLONG,GetTime)(THIS - ) PURE; - STDMETHOD_(LONGLONG,GetPhysicalTime)(THIS - ) PURE; - STDMETHOD_(LONGLONG,GetCorrelatedTime)(THIS_ - OUT PLONGLONG SystemTime - ) PURE; - STDMETHOD_(LONGLONG,GetCorrelatedPhysicalTime)(THIS_ - OUT PLONGLONG SystemTime - ) PURE; - STDMETHOD_(NTSTATUS, GetResolution)(THIS_ - OUT PKSRESOLUTION Resolution - ) PURE; - STDMETHOD_(NTSTATUS, GetState)(THIS_ - OUT PKSSTATE State - ) PURE; -}; -#undef INTERFACE - -#define STATIC_IID_IKsControl \ -0x28F54685L, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUID(IID_IKsControl, -0x28F54685L, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96); -#if defined(__cplusplus) && _MSC_VER >= 1100 -struct __declspec(uuid("28F54685-06FD-11D2-B27A-00A0C9223196")) IKsControl; -#endif - -#define STATIC_IID_IKsFastClock \ -0xc9902485, 0xc180, 0x11d2, 0x84, 0x73, 0xd4, 0x23, 0x94, 0x45, 0x9e, 0x5e -DEFINE_GUID(IID_IKsFastClock, -0xc9902485, 0xc180, 0x11d2, 0x84, 0x73, 0xd4, 0x23, 0x94, 0x45, 0x9e, 0x5e); -#if defined(__cplusplus) && _MSC_VER >= 1100 -struct __declspec(uuid("C9902485-C180-11d2-8473-D42394459E5E")) IKsFastClock; -#endif - -#endif // !defined(_IKsControl_) -#endif // defined(_UNKNOWN_H_) || defined(__IUnknown_INTERFACE_DEFINED__) - -#endif // defined(_NTDDK_) - -//=========================================================================== - -#if defined(__cplusplus) -extern "C" { -#endif // defined(__cplusplus) - -// -// exported prototypes -// - -#ifdef _KSDDK_ -#define KSDDKAPI -#else // !_KSDDK_ -#define KSDDKAPI DECLSPEC_IMPORT -#endif // _KSDDK_ - -#if defined(_NTDDK_) - -KSDDKAPI -NTSTATUS -NTAPI -KsEnableEvent( - IN PIRP Irp, - IN ULONG EventSetsCount, - IN const KSEVENT_SET* EventSet, - IN OUT PLIST_ENTRY EventsList OPTIONAL, - IN KSEVENTS_LOCKTYPE EventsFlags OPTIONAL, - IN PVOID EventsLock OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsEnableEventWithAllocator( - IN PIRP Irp, - IN ULONG EventSetsCount, - IN const KSEVENT_SET* EventSet, - IN OUT PLIST_ENTRY EventsList OPTIONAL, - IN KSEVENTS_LOCKTYPE EventsFlags OPTIONAL, - IN PVOID EventsLock OPTIONAL, - IN PFNKSALLOCATOR Allocator OPTIONAL, - IN ULONG EventItemSize OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsDisableEvent( - IN PIRP Irp, - IN OUT PLIST_ENTRY EventsList, - IN KSEVENTS_LOCKTYPE EventsFlags, - IN PVOID EventsLock - ); - -KSDDKAPI -VOID -NTAPI -KsDiscardEvent( - IN PKSEVENT_ENTRY EventEntry - ); - -KSDDKAPI -VOID -NTAPI -KsFreeEventList( - IN PFILE_OBJECT FileObject, - IN OUT PLIST_ENTRY EventsList, - IN KSEVENTS_LOCKTYPE EventsFlags, - IN PVOID EventsLock - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsGenerateEvent( - IN PKSEVENT_ENTRY EventEntry - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsGenerateDataEvent( - IN PKSEVENT_ENTRY EventEntry, - IN ULONG DataSize, - IN PVOID Data - ); - -KSDDKAPI -VOID -NTAPI -KsGenerateEventList( - IN GUID* Set OPTIONAL, - IN ULONG EventId, - IN PLIST_ENTRY EventsList, - IN KSEVENTS_LOCKTYPE EventsFlags, - IN PVOID EventsLock - ); - -// property.c: - -KSDDKAPI -NTSTATUS -NTAPI -KsPropertyHandler( - IN PIRP Irp, - IN ULONG PropertySetsCount, - IN const KSPROPERTY_SET* PropertySet - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsPropertyHandlerWithAllocator( - IN PIRP Irp, - IN ULONG PropertySetsCount, - IN const KSPROPERTY_SET* PropertySet, - IN PFNKSALLOCATOR Allocator OPTIONAL, - IN ULONG PropertyItemSize OPTIONAL - ); - -KSDDKAPI -BOOLEAN -NTAPI -KsFastPropertyHandler( - IN PFILE_OBJECT FileObject, - IN PKSPROPERTY Property, - IN ULONG PropertyLength, - IN OUT PVOID Data, - IN ULONG DataLength, - OUT PIO_STATUS_BLOCK IoStatus, - IN ULONG PropertySetsCount, - IN const KSPROPERTY_SET* PropertySet - ); - -// method.c: - -KSDDKAPI -NTSTATUS -NTAPI -KsMethodHandler( - IN PIRP Irp, - IN ULONG MethodSetsCount, - IN const KSMETHOD_SET* MethodSet - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsMethodHandlerWithAllocator( - IN PIRP Irp, - IN ULONG MethodSetsCount, - IN const KSMETHOD_SET* MethodSet, - IN PFNKSALLOCATOR Allocator OPTIONAL, - IN ULONG MethodItemSize OPTIONAL - ); - -KSDDKAPI -BOOLEAN -NTAPI -KsFastMethodHandler( - IN PFILE_OBJECT FileObject, - IN PKSMETHOD Method, - IN ULONG MethodLength, - IN OUT PVOID Data, - IN ULONG DataLength, - OUT PIO_STATUS_BLOCK IoStatus, - IN ULONG MethodSetsCount, - IN const KSMETHOD_SET* MethodSet - ); - -// alloc.c: - -KSDDKAPI -NTSTATUS -NTAPI -KsCreateDefaultAllocator( - IN PIRP Irp - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsCreateDefaultAllocatorEx( - IN PIRP Irp, - IN PVOID InitializeContext OPTIONAL, - IN PFNKSDEFAULTALLOCATE DefaultAllocate OPTIONAL, - IN PFNKSDEFAULTFREE DefaultFree OPTIONAL, - IN PFNKSINITIALIZEALLOCATOR InitializeAllocator OPTIONAL, - IN PFNKSDELETEALLOCATOR DeleteAllocator OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsCreateAllocator( - IN HANDLE ConnectionHandle, - IN PKSALLOCATOR_FRAMING AllocatorFraming, - OUT PHANDLE AllocatorHandle - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsValidateAllocatorCreateRequest( - IN PIRP Irp, - OUT PKSALLOCATOR_FRAMING* AllocatorFraming - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsValidateAllocatorFramingEx( - IN PKSALLOCATOR_FRAMING_EX Framing, - IN ULONG BufferSize, - IN const KSALLOCATOR_FRAMING_EX *PinFraming - ); - -// clock.c: - -KSDDKAPI -NTSTATUS -NTAPI -KsAllocateDefaultClock( - OUT PKSDEFAULTCLOCK* DefaultClock - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsAllocateDefaultClockEx( - OUT PKSDEFAULTCLOCK* DefaultClock, - IN PVOID Context OPTIONAL, - IN PFNKSSETTIMER SetTimer OPTIONAL, - IN PFNKSCANCELTIMER CancelTimer OPTIONAL, - IN PFNKSCORRELATEDTIME CorrelatedTime OPTIONAL, - IN const KSRESOLUTION* Resolution OPTIONAL, - IN ULONG Flags - ); - -KSDDKAPI -VOID -NTAPI -KsFreeDefaultClock( - IN PKSDEFAULTCLOCK DefaultClock - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsCreateDefaultClock( - IN PIRP Irp, - IN PKSDEFAULTCLOCK DefaultClock - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsCreateClock( - IN HANDLE ConnectionHandle, - IN PKSCLOCK_CREATE ClockCreate, - OUT PHANDLE ClockHandle - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsValidateClockCreateRequest( - IN PIRP Irp, - OUT PKSCLOCK_CREATE* ClockCreate - ); - -KSDDKAPI -KSSTATE -NTAPI -KsGetDefaultClockState( - IN PKSDEFAULTCLOCK DefaultClock - ); - -KSDDKAPI -VOID -NTAPI -KsSetDefaultClockState( - IN PKSDEFAULTCLOCK DefaultClock, - IN KSSTATE State - ); - -KSDDKAPI -LONGLONG -NTAPI -KsGetDefaultClockTime( - IN PKSDEFAULTCLOCK DefaultClock - ); - -KSDDKAPI -VOID -NTAPI -KsSetDefaultClockTime( - IN PKSDEFAULTCLOCK DefaultClock, - IN LONGLONG Time - ); - -// connect.c: - -KSDDKAPI -NTSTATUS -NTAPI -KsCreatePin( - IN HANDLE FilterHandle, - IN PKSPIN_CONNECT Connect, - IN ACCESS_MASK DesiredAccess, - OUT PHANDLE ConnectionHandle - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsValidateConnectRequest( - IN PIRP Irp, - IN ULONG DescriptorsCount, - IN const KSPIN_DESCRIPTOR* Descriptor, - OUT PKSPIN_CONNECT* Connect - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsPinPropertyHandler( - IN PIRP Irp, - IN PKSPROPERTY Property, - IN OUT PVOID Data, - IN ULONG DescriptorsCount, - IN const KSPIN_DESCRIPTOR* Descriptor - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsPinDataIntersection( - IN PIRP Irp, - IN PKSP_PIN Pin, - OUT PVOID Data OPTIONAL, - IN ULONG DescriptorsCount, - IN const KSPIN_DESCRIPTOR* Descriptor, - IN PFNKSINTERSECTHANDLER IntersectHandler - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsPinDataIntersectionEx( - IN PIRP Irp, - IN PKSP_PIN Pin, - OUT PVOID Data, - IN ULONG DescriptorsCount, - IN const KSPIN_DESCRIPTOR* Descriptor, - IN ULONG DescriptorSize, - IN PFNKSINTERSECTHANDLEREX IntersectHandler OPTIONAL, - IN PVOID HandlerContext OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsHandleSizedListQuery( - IN PIRP Irp, - IN ULONG DataItemsCount, - IN ULONG DataItemSize, - IN const VOID* DataItems - ); - -// image.c: - -#if (!defined( MAKEINTRESOURCE )) -#define MAKEINTRESOURCE( res ) ((ULONG_PTR) (USHORT) res) -#endif - -#if (!defined( RT_STRING )) -#define RT_STRING MAKEINTRESOURCE( 6 ) -#define RT_RCDATA MAKEINTRESOURCE( 10 ) -#endif - -KSDDKAPI -NTSTATUS -NTAPI -KsLoadResource( - IN PVOID ImageBase, - IN POOL_TYPE PoolType, - IN ULONG_PTR ResourceName, - IN ULONG ResourceType, - OUT PVOID *Resource, - OUT PULONG ResourceSize - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsGetImageNameAndResourceId( - IN HANDLE RegKey, - OUT PUNICODE_STRING ImageName, - OUT PULONG_PTR ResourceId, - OUT PULONG ValueType -); - -KSDDKAPI -NTSTATUS -NTAPI -KsMapModuleName( - IN PDEVICE_OBJECT PhysicalDeviceObject, - IN PUNICODE_STRING ModuleName, - OUT PUNICODE_STRING ImageName, - OUT PULONG_PTR ResourceId, - OUT PULONG ValueType - ); - -// irp.c: - -KSDDKAPI -NTSTATUS -NTAPI -KsReferenceBusObject( - IN KSDEVICE_HEADER Header - ); - -KSDDKAPI -VOID -NTAPI -KsDereferenceBusObject( - IN KSDEVICE_HEADER Header - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsDispatchQuerySecurity( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsDispatchSetSecurity( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsDispatchSpecificProperty( - IN PIRP Irp, - IN PFNKSHANDLER Handler - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsDispatchSpecificMethod( - IN PIRP Irp, - IN PFNKSHANDLER Handler - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsReadFile( - IN PFILE_OBJECT FileObject, - IN PKEVENT Event OPTIONAL, - IN PVOID PortContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - OUT PVOID Buffer, - IN ULONG Length, - IN ULONG Key OPTIONAL, - IN KPROCESSOR_MODE RequestorMode - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsWriteFile( - IN PFILE_OBJECT FileObject, - IN PKEVENT Event OPTIONAL, - IN PVOID PortContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN PVOID Buffer, - IN ULONG Length, - IN ULONG Key OPTIONAL, - IN KPROCESSOR_MODE RequestorMode - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsQueryInformationFile( - IN PFILE_OBJECT FileObject, - OUT PVOID FileInformation, - IN ULONG Length, - IN FILE_INFORMATION_CLASS FileInformationClass - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsSetInformationFile( - IN PFILE_OBJECT FileObject, - IN PVOID FileInformation, - IN ULONG Length, - IN FILE_INFORMATION_CLASS FileInformationClass - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsStreamIo( - IN PFILE_OBJECT FileObject, - IN PKEVENT Event OPTIONAL, - IN PVOID PortContext OPTIONAL, - IN PIO_COMPLETION_ROUTINE CompletionRoutine OPTIONAL, - IN PVOID CompletionContext OPTIONAL, - IN KSCOMPLETION_INVOCATION CompletionInvocationFlags OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN OUT PVOID StreamHeaders, - IN ULONG Length, - IN ULONG Flags, - IN KPROCESSOR_MODE RequestorMode - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsProbeStreamIrp( - IN OUT PIRP Irp, - IN ULONG ProbeFlags, - IN ULONG HeaderSize OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsAllocateExtraData( - IN OUT PIRP Irp, - IN ULONG ExtraSize, - OUT PVOID* ExtraBuffer - ); - -KSDDKAPI -VOID -NTAPI -KsNullDriverUnload( - IN PDRIVER_OBJECT DriverObject - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsSetMajorFunctionHandler( - IN PDRIVER_OBJECT DriverObject, - IN ULONG MajorFunction - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsDispatchInvalidDeviceRequest( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsDefaultDeviceIoCompletion( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsDispatchIrp( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp - ); - -KSDDKAPI -BOOLEAN -NTAPI -KsDispatchFastIoDeviceControlFailure( - IN PFILE_OBJECT FileObject, - IN BOOLEAN Wait, - IN PVOID InputBuffer OPTIONAL, - IN ULONG InputBufferLength, - OUT PVOID OutputBuffer OPTIONAL, - IN ULONG OutputBufferLength, - IN ULONG IoControlCode, - OUT PIO_STATUS_BLOCK IoStatus, - IN PDEVICE_OBJECT DeviceObject - ); - -KSDDKAPI -BOOLEAN -NTAPI -KsDispatchFastReadFailure( - IN PFILE_OBJECT FileObject, - IN PLARGE_INTEGER FileOffset, - IN ULONG Length, - IN BOOLEAN Wait, - IN ULONG LockKey, - OUT PVOID Buffer, - OUT PIO_STATUS_BLOCK IoStatus, - IN PDEVICE_OBJECT DeviceObject - ); - -#define KsDispatchFastWriteFailure KsDispatchFastReadFailure - -KSDDKAPI -VOID -NTAPI -KsCancelRoutine( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp - ); - -KSDDKAPI -VOID -NTAPI -KsCancelIo( - IN OUT PLIST_ENTRY QueueHead, - IN PKSPIN_LOCK SpinLock - ); - -KSDDKAPI -VOID -NTAPI -KsReleaseIrpOnCancelableQueue( - IN PIRP Irp, - IN PDRIVER_CANCEL DriverCancel OPTIONAL - ); - -KSDDKAPI -PIRP -NTAPI -KsRemoveIrpFromCancelableQueue( - IN OUT PLIST_ENTRY QueueHead, - IN PKSPIN_LOCK SpinLock, - IN KSLIST_ENTRY_LOCATION ListLocation, - IN KSIRP_REMOVAL_OPERATION RemovalOperation - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsMoveIrpsOnCancelableQueue( - IN OUT PLIST_ENTRY SourceList, - IN PKSPIN_LOCK SourceLock, - IN OUT PLIST_ENTRY DestinationList, - IN PKSPIN_LOCK DestinationLock OPTIONAL, - IN KSLIST_ENTRY_LOCATION ListLocation, - IN PFNKSIRPLISTCALLBACK ListCallback, - IN PVOID Context - ); - -KSDDKAPI -VOID -NTAPI -KsRemoveSpecificIrpFromCancelableQueue( - IN PIRP Irp - ); - -KSDDKAPI -VOID -NTAPI -KsAddIrpToCancelableQueue( - IN OUT PLIST_ENTRY QueueHead, - IN PKSPIN_LOCK SpinLock, - IN PIRP Irp, - IN KSLIST_ENTRY_LOCATION ListLocation, - IN PDRIVER_CANCEL DriverCancel OPTIONAL - ); - -// api.c: - -KSDDKAPI -NTSTATUS -NTAPI -KsAcquireResetValue( - IN PIRP Irp, - OUT KSRESET* ResetValue - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsTopologyPropertyHandler( - IN PIRP Irp, - IN PKSPROPERTY Property, - IN OUT PVOID Data, - IN const KSTOPOLOGY* Topology - ); - -KSDDKAPI -VOID -NTAPI -KsAcquireDeviceSecurityLock( - IN KSDEVICE_HEADER Header, - IN BOOLEAN Exclusive - ); - -KSDDKAPI -VOID -NTAPI -KsReleaseDeviceSecurityLock( - IN KSDEVICE_HEADER Header - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsDefaultDispatchPnp( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsDefaultDispatchPower( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsDefaultForwardIrp( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp - ); - -KSDDKAPI -VOID -NTAPI -KsSetDevicePnpAndBaseObject( - IN KSDEVICE_HEADER Header, - IN PDEVICE_OBJECT PnpDeviceObject, - IN PDEVICE_OBJECT BaseObject - ); - -KSDDKAPI -PDEVICE_OBJECT -NTAPI -KsQueryDevicePnpObject( - IN KSDEVICE_HEADER Header - ); - -KSDDKAPI -ACCESS_MASK -NTAPI -KsQueryObjectAccessMask( - IN KSOBJECT_HEADER Header - ); - -KSDDKAPI -VOID -NTAPI -KsRecalculateStackDepth( - IN KSDEVICE_HEADER Header, - IN BOOLEAN ReuseStackLocation - ); - -KSDDKAPI -VOID -NTAPI -KsSetTargetState( - IN KSOBJECT_HEADER Header, - IN KSTARGET_STATE TargetState - ); - -KSDDKAPI -VOID -NTAPI -KsSetTargetDeviceObject( - IN KSOBJECT_HEADER Header, - IN PDEVICE_OBJECT TargetDevice OPTIONAL - ); - -KSDDKAPI -VOID -NTAPI -KsSetPowerDispatch( - IN KSOBJECT_HEADER Header, - IN PFNKSCONTEXT_DISPATCH PowerDispatch OPTIONAL, - IN PVOID PowerContext OPTIONAL - ); - -KSDDKAPI -PKSOBJECT_CREATE_ITEM -NTAPI -KsQueryObjectCreateItem( - IN KSOBJECT_HEADER Header - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsAllocateDeviceHeader( - OUT KSDEVICE_HEADER* Header, - IN ULONG ItemsCount, - IN PKSOBJECT_CREATE_ITEM ItemsList OPTIONAL - ); - -KSDDKAPI -VOID -NTAPI -KsFreeDeviceHeader( - IN KSDEVICE_HEADER Header - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsAllocateObjectHeader( - OUT KSOBJECT_HEADER* Header, - IN ULONG ItemsCount, - IN PKSOBJECT_CREATE_ITEM ItemsList OPTIONAL, - IN PIRP Irp, - IN const KSDISPATCH_TABLE* Table - ); - -KSDDKAPI -VOID -NTAPI -KsFreeObjectHeader( - IN KSOBJECT_HEADER Header - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsAddObjectCreateItemToDeviceHeader( - IN KSDEVICE_HEADER Header, - IN PDRIVER_DISPATCH Create, - IN PVOID Context, - IN PWCHAR ObjectClass, - IN PSECURITY_DESCRIPTOR SecurityDescriptor OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsAddObjectCreateItemToObjectHeader( - IN KSOBJECT_HEADER Header, - IN PDRIVER_DISPATCH Create, - IN PVOID Context, - IN PWCHAR ObjectClass, - IN PSECURITY_DESCRIPTOR SecurityDescriptor OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsAllocateObjectCreateItem( - IN KSDEVICE_HEADER Header, - IN PKSOBJECT_CREATE_ITEM CreateItem, - IN BOOLEAN AllocateEntry, - IN PFNKSITEMFREECALLBACK ItemFreeCallback OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsFreeObjectCreateItem( - IN KSDEVICE_HEADER Header, - IN PUNICODE_STRING CreateItem - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsFreeObjectCreateItemsByContext( - IN KSDEVICE_HEADER Header, - IN PVOID Context - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsCreateDefaultSecurity( - IN PSECURITY_DESCRIPTOR ParentSecurity OPTIONAL, - OUT PSECURITY_DESCRIPTOR* DefaultSecurity - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsForwardIrp( - IN PIRP Irp, - IN PFILE_OBJECT FileObject, - IN BOOLEAN ReuseStackLocation - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsForwardAndCatchIrp( - IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp, - IN PFILE_OBJECT FileObject, - IN KSSTACK_USE StackUse - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsSynchronousIoControlDevice( - IN PFILE_OBJECT FileObject, - IN KPROCESSOR_MODE RequestorMode, - IN ULONG IoControl, - IN PVOID InBuffer, - IN ULONG InSize, - OUT PVOID OutBuffer, - IN ULONG OutSize, - OUT PULONG BytesReturned - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsUnserializeObjectPropertiesFromRegistry( - IN PFILE_OBJECT FileObject, - IN HANDLE ParentKey OPTIONAL, - IN PUNICODE_STRING RegistryPath OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsCacheMedium( - IN PUNICODE_STRING SymbolicLink, - IN PKSPIN_MEDIUM Medium, - IN ULONG PinDirection - ); - -// thread.c: - -KSDDKAPI -NTSTATUS -NTAPI -KsRegisterWorker( - IN WORK_QUEUE_TYPE WorkQueueType, - OUT PKSWORKER* Worker - ); -KSDDKAPI -NTSTATUS -NTAPI -KsRegisterCountedWorker( - IN WORK_QUEUE_TYPE WorkQueueType, - IN PWORK_QUEUE_ITEM CountedWorkItem, - OUT PKSWORKER* Worker - ); -KSDDKAPI -VOID -NTAPI -KsUnregisterWorker( - IN PKSWORKER Worker - ); -KSDDKAPI -NTSTATUS -NTAPI -KsQueueWorkItem( - IN PKSWORKER Worker, - IN PWORK_QUEUE_ITEM WorkItem - ); -KSDDKAPI -ULONG -NTAPI -KsIncrementCountedWorker( - IN PKSWORKER Worker - ); -KSDDKAPI -ULONG -NTAPI -KsDecrementCountedWorker( - IN PKSWORKER Worker - ); - -// topology.c: - -KSDDKAPI -NTSTATUS -NTAPI -KsCreateTopologyNode( - IN HANDLE ParentHandle, - IN PKSNODE_CREATE NodeCreate, - IN ACCESS_MASK DesiredAccess, - OUT PHANDLE NodeHandle - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsValidateTopologyNodeCreateRequest( - IN PIRP Irp, - IN PKSTOPOLOGY Topology, - OUT PKSNODE_CREATE* NodeCreate - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsMergeAutomationTables( - OUT PKSAUTOMATION_TABLE* AutomationTableAB, - IN PKSAUTOMATION_TABLE AutomationTableA OPTIONAL, - IN PKSAUTOMATION_TABLE AutomationTableB OPTIONAL, - IN KSOBJECT_BAG Bag OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsInitializeDriver( - IN PDRIVER_OBJECT DriverObject, - IN PUNICODE_STRING RegistryPathName, - IN const KSDEVICE_DESCRIPTOR* Descriptor OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsAddDevice( - IN PDRIVER_OBJECT DriverObject, - IN PDEVICE_OBJECT PhysicalDeviceObject - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsCreateDevice( - IN PDRIVER_OBJECT DriverObject, - IN PDEVICE_OBJECT PhysicalDeviceObject, - IN const KSDEVICE_DESCRIPTOR* Descriptor OPTIONAL, - IN ULONG ExtensionSize OPTIONAL, - OUT PKSDEVICE* Device OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsInitializeDevice( - IN PDEVICE_OBJECT FunctionalDeviceObject, - IN PDEVICE_OBJECT PhysicalDeviceObject, - IN PDEVICE_OBJECT NextDeviceObject, - IN const KSDEVICE_DESCRIPTOR* Descriptor OPTIONAL - ); - -KSDDKAPI -void -NTAPI -KsTerminateDevice( - IN PDEVICE_OBJECT DeviceObject - ); - -KSDDKAPI -PKSDEVICE -NTAPI -KsGetDeviceForDeviceObject( - IN PDEVICE_OBJECT FunctionalDeviceObject - ); - -KSDDKAPI -void -NTAPI -KsAcquireDevice( - IN PKSDEVICE Device - ); - -KSDDKAPI -void -NTAPI -KsReleaseDevice( - IN PKSDEVICE Device - ); - -KSDDKAPI -void -NTAPI -KsDeviceRegisterAdapterObject( - IN PKSDEVICE Device, - IN PADAPTER_OBJECT AdapterObject, - IN ULONG MaxMappingsByteCount, - IN ULONG MappingTableStride - ); - -KSDDKAPI -ULONG -NTAPI -KsDeviceGetBusData( - IN PKSDEVICE Device, - IN ULONG DataType, - IN PVOID Buffer, - IN ULONG Offset, - IN ULONG Length - ); - -KSDDKAPI -ULONG -NTAPI -KsDeviceSetBusData( - IN PKSDEVICE Device, - IN ULONG DataType, - IN PVOID Buffer, - IN ULONG Offset, - IN ULONG Length - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsCreateFilterFactory( - IN PDEVICE_OBJECT DeviceObject, - IN const KSFILTER_DESCRIPTOR* Descriptor, - IN PWCHAR RefString OPTIONAL, - IN PSECURITY_DESCRIPTOR SecurityDescriptor OPTIONAL, - IN ULONG CreateItemFlags, - IN PFNKSFILTERFACTORYPOWER SleepCallback OPTIONAL, - IN PFNKSFILTERFACTORYPOWER WakeCallback OPTIONAL, - OUT PKSFILTERFACTORY* FilterFactory OPTIONAL - ); - -#define KsDeleteFilterFactory(FilterFactory) \ - KsFreeObjectCreateItemsByContext(\ - *(KSDEVICE_HEADER *)(\ - KsFilterFactoryGetParentDevice(FilterFactory)->FunctionalDeviceObject->\ - DeviceExtension),\ - FilterFactory) - -KSDDKAPI -NTSTATUS -NTAPI -KsFilterFactoryUpdateCacheData( - IN PKSFILTERFACTORY FilterFactory, - IN const KSFILTER_DESCRIPTOR *FilterDescriptor OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsFilterFactoryAddCreateItem( - IN PKSFILTERFACTORY FilterFactory, - IN PWCHAR RefString, - IN PSECURITY_DESCRIPTOR SecurityDescriptor OPTIONAL, - IN ULONG CreateItemFlags - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsFilterFactorySetDeviceClassesState( - IN PKSFILTERFACTORY FilterFactory, - IN BOOLEAN NewState - ); - -KSDDKAPI -PUNICODE_STRING -NTAPI -KsFilterFactoryGetSymbolicLink( - IN PKSFILTERFACTORY FilterFactory - ); - -KSDDKAPI -void -NTAPI -KsAddEvent( - IN PVOID Object, - IN PKSEVENT_ENTRY EventEntry - ); - -void _inline -KsFilterAddEvent( - IN PKSFILTER Filter, - IN PKSEVENT_ENTRY EventEntry - ) -{ - KsAddEvent(Filter,EventEntry); -} - -void _inline -KsPinAddEvent( - IN PKSPIN Pin, - IN PKSEVENT_ENTRY EventEntry - ) -{ - KsAddEvent(Pin,EventEntry); -} - -KSDDKAPI -NTSTATUS -NTAPI -KsDefaultAddEventHandler( - IN PIRP Irp, - IN PKSEVENTDATA EventData, - IN OUT PKSEVENT_ENTRY EventEntry - ); - -KSDDKAPI -void -NTAPI -KsGenerateEvents( - IN PVOID Object, - IN const GUID* EventSet OPTIONAL, - IN ULONG EventId, - IN ULONG DataSize, - IN PVOID Data OPTIONAL, - IN PFNKSGENERATEEVENTCALLBACK CallBack OPTIONAL, - IN PVOID CallBackContext OPTIONAL - ); - -void _inline -KsFilterGenerateEvents( - IN PKSFILTER Filter, - IN const GUID* EventSet OPTIONAL, - IN ULONG EventId, - IN ULONG DataSize, - IN PVOID Data OPTIONAL, - IN PFNKSGENERATEEVENTCALLBACK CallBack OPTIONAL, - IN PVOID CallBackContext OPTIONAL - ) -{ - KsGenerateEvents( - Filter, - EventSet, - EventId, - DataSize, - Data, - CallBack, - CallBackContext); -} - -void _inline -KsPinGenerateEvents( - IN PKSPIN Pin, - IN const GUID* EventSet OPTIONAL, - IN ULONG EventId, - IN ULONG DataSize, - IN PVOID Data OPTIONAL, - IN PFNKSGENERATEEVENTCALLBACK CallBack OPTIONAL, - IN PVOID CallBackContext OPTIONAL - ) -{ - KsGenerateEvents( - Pin, - EventSet, - EventId, - DataSize, - Data, - CallBack, - CallBackContext); -} - -typedef enum { - KSSTREAM_POINTER_STATE_UNLOCKED = 0, - KSSTREAM_POINTER_STATE_LOCKED -} KSSTREAM_POINTER_STATE; - -KSDDKAPI -NTSTATUS -NTAPI -KsPinGetAvailableByteCount( - IN PKSPIN Pin, - OUT PLONG InputDataBytes OPTIONAL, - OUT PLONG OutputBufferBytes OPTIONAL - ); - -KSDDKAPI -PKSSTREAM_POINTER -NTAPI -KsPinGetLeadingEdgeStreamPointer( - IN PKSPIN Pin, - IN KSSTREAM_POINTER_STATE State - ); - -KSDDKAPI -PKSSTREAM_POINTER -NTAPI -KsPinGetTrailingEdgeStreamPointer( - IN PKSPIN Pin, - IN KSSTREAM_POINTER_STATE State - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsStreamPointerSetStatusCode( - IN PKSSTREAM_POINTER StreamPointer, - IN NTSTATUS Status - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsStreamPointerLock( - IN PKSSTREAM_POINTER StreamPointer - ); - -KSDDKAPI -void -NTAPI -KsStreamPointerUnlock( - IN PKSSTREAM_POINTER StreamPointer, - IN BOOLEAN Eject - ); - -KSDDKAPI -void -NTAPI -KsStreamPointerAdvanceOffsetsAndUnlock( - IN PKSSTREAM_POINTER StreamPointer, - IN ULONG InUsed, - IN ULONG OutUsed, - IN BOOLEAN Eject - ); - -KSDDKAPI -void -NTAPI -KsStreamPointerDelete( - IN PKSSTREAM_POINTER StreamPointer - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsStreamPointerClone( - IN PKSSTREAM_POINTER StreamPointer, - IN PFNKSSTREAMPOINTER CancelCallback OPTIONAL, - IN ULONG ContextSize, - OUT PKSSTREAM_POINTER* CloneStreamPointer - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsStreamPointerAdvanceOffsets( - IN PKSSTREAM_POINTER StreamPointer, - IN ULONG InUsed, - IN ULONG OutUsed, - IN BOOLEAN Eject - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsStreamPointerAdvance( - IN PKSSTREAM_POINTER StreamPointer - ); - -KSDDKAPI -PMDL -NTAPI -KsStreamPointerGetMdl( - IN PKSSTREAM_POINTER StreamPointer - ); - -KSDDKAPI -PIRP -NTAPI -KsStreamPointerGetIrp( - IN PKSSTREAM_POINTER StreamPointer, - OUT PBOOLEAN FirstFrameInIrp OPTIONAL, - OUT PBOOLEAN LastFrameInIrp OPTIONAL - ); - -KSDDKAPI -void -NTAPI -KsStreamPointerScheduleTimeout( - IN PKSSTREAM_POINTER StreamPointer, - IN PFNKSSTREAMPOINTER Callback, - IN ULONGLONG Interval - ); - -KSDDKAPI -void -NTAPI -KsStreamPointerCancelTimeout( - IN PKSSTREAM_POINTER StreamPointer - ); - -KSDDKAPI -PKSSTREAM_POINTER -NTAPI -KsPinGetFirstCloneStreamPointer( - IN PKSPIN Pin - ); - -KSDDKAPI -PKSSTREAM_POINTER -NTAPI -KsStreamPointerGetNextClone( - IN PKSSTREAM_POINTER StreamPointer - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsPinHandshake( - IN PKSPIN Pin, - IN PKSHANDSHAKE In, - OUT PKSHANDSHAKE Out - ); - -KSDDKAPI -void -NTAPI -KsCompletePendingRequest( - IN PIRP Irp - ); - -KSDDKAPI -KSOBJECTTYPE -NTAPI -KsGetObjectTypeFromIrp( - IN PIRP Irp - ); - -KSDDKAPI -PVOID -NTAPI -KsGetObjectFromFileObject( - IN PFILE_OBJECT FileObject - ); - -KSDDKAPI -KSOBJECTTYPE -NTAPI -KsGetObjectTypeFromFileObject( - IN PFILE_OBJECT FileObject - ); - -PKSFILTER __inline -KsGetFilterFromFileObject( - IN PFILE_OBJECT FileObject - ) -{ - return (PKSFILTER) KsGetObjectFromFileObject(FileObject); -} - -PKSPIN __inline -KsGetPinFromFileObject( - IN PFILE_OBJECT FileObject - ) -{ - return (PKSPIN) KsGetObjectFromFileObject(FileObject); -} - -KSDDKAPI -PKSGATE -NTAPI -KsFilterGetAndGate( - IN PKSFILTER Filter - ); - -KSDDKAPI -void -NTAPI -KsFilterAcquireProcessingMutex( - IN PKSFILTER Filter - ); - -KSDDKAPI -void -NTAPI -KsFilterReleaseProcessingMutex( - IN PKSFILTER Filter - ); - -KSDDKAPI -void -NTAPI -KsFilterAttemptProcessing( - IN PKSFILTER Filter, - IN BOOLEAN Asynchronous - ); - -KSDDKAPI -PKSGATE -NTAPI -KsPinGetAndGate( - IN PKSPIN Pin - ); - -KSDDKAPI -void -NTAPI -KsPinAttachAndGate( - IN PKSPIN Pin, - IN PKSGATE AndGate OPTIONAL - ); - -KSDDKAPI -void -NTAPI -KsPinAttachOrGate( - IN PKSPIN Pin, - IN PKSGATE OrGate OPTIONAL - ); - -KSDDKAPI -void -NTAPI -KsPinAcquireProcessingMutex( - IN PKSPIN Pin - ); - -KSDDKAPI -void -NTAPI -KsPinReleaseProcessingMutex( - IN PKSPIN Pin - ); - -KSDDKAPI -BOOLEAN -NTAPI -KsProcessPinUpdate( - IN PKSPROCESSPIN ProcessPin - ); - -KSDDKAPI -void -NTAPI -KsPinGetCopyRelationships( - IN PKSPIN Pin, - OUT PKSPIN* CopySource, - OUT PKSPIN* DelegateBranch - ); - -KSDDKAPI -void -NTAPI -KsPinAttemptProcessing( - IN PKSPIN Pin, - IN BOOLEAN Asynchronous - ); - -KSDDKAPI -PVOID -NTAPI -KsGetParent( - IN PVOID Object - ); - -PKSDEVICE __inline -KsFilterFactoryGetParentDevice( - IN PKSFILTERFACTORY FilterFactory - ) -{ - return (PKSDEVICE) KsGetParent((PVOID) FilterFactory); -} - -PKSFILTERFACTORY __inline -KsFilterGetParentFilterFactory( - IN PKSFILTER Filter - ) -{ - return (PKSFILTERFACTORY) KsGetParent((PVOID) Filter); -} - -KSDDKAPI -PKSFILTER -NTAPI -KsPinGetParentFilter( - IN PKSPIN Pin - ); - -KSDDKAPI -PVOID -NTAPI -KsGetFirstChild( - IN PVOID Object - ); - -PKSFILTERFACTORY __inline -KsDeviceGetFirstChildFilterFactory( - IN PKSDEVICE Device - ) -{ - return (PKSFILTERFACTORY) KsGetFirstChild((PVOID) Device); -} - -PKSFILTER __inline -KsFilterFactoryGetFirstChildFilter( - IN PKSFILTERFACTORY FilterFactory - ) -{ - return (PKSFILTER) KsGetFirstChild((PVOID) FilterFactory); -} - -KSDDKAPI -ULONG -NTAPI -KsFilterGetChildPinCount( - IN PKSFILTER Filter, - IN ULONG PinId - ); - -KSDDKAPI -PKSPIN -NTAPI -KsFilterGetFirstChildPin( - IN PKSFILTER Filter, - IN ULONG PinId - ); - -KSDDKAPI -PVOID -NTAPI -KsGetNextSibling( - IN PVOID Object - ); - -KSDDKAPI -PKSPIN -NTAPI -KsPinGetNextSiblingPin( - IN PKSPIN Pin - ); - -PKSFILTERFACTORY __inline -KsFilterFactoryGetNextSiblingFilterFactory( - IN PKSFILTERFACTORY FilterFactory - ) -{ - return (PKSFILTERFACTORY) KsGetNextSibling((PVOID) FilterFactory); -} - -PKSFILTER __inline -KsFilterGetNextSiblingFilter( - IN PKSFILTER Filter - ) -{ - return (PKSFILTER) KsGetNextSibling((PVOID) Filter); -} - - -KSDDKAPI -PKSDEVICE -NTAPI -KsGetDevice( - IN PVOID Object - ); - -PKSDEVICE __inline -KsFilterFactoryGetDevice( - IN PKSFILTERFACTORY FilterFactory - ) -{ - return KsGetDevice((PVOID) FilterFactory); -} - -PKSDEVICE __inline -KsFilterGetDevice( - IN PKSFILTER Filter - ) -{ - return KsGetDevice((PVOID) Filter); -} - -PKSDEVICE __inline -KsPinGetDevice( - IN PKSPIN Pin - ) -{ - return KsGetDevice((PVOID) Pin); -} - -KSDDKAPI -PKSFILTER -NTAPI -KsGetFilterFromIrp( - IN PIRP Irp - ); - -KSDDKAPI -PKSPIN -NTAPI -KsGetPinFromIrp( - IN PIRP Irp - ); - -KSDDKAPI -ULONG -NTAPI -KsGetNodeIdFromIrp( - IN PIRP Irp - ); - -KSDDKAPI -void -NTAPI -KsAcquireControl( - IN PVOID Object - ); - -KSDDKAPI -void -NTAPI -KsReleaseControl( - IN PVOID Object - ); - -void __inline -KsFilterAcquireControl( - IN PKSFILTER Filter - ) -{ - KsAcquireControl((PVOID) Filter); -} - -void __inline -KsFilterReleaseControl( - IN PKSFILTER Filter - ) -{ - KsReleaseControl((PVOID) Filter); -} - -void __inline -KsPinAcquireControl( - IN PKSPIN Pin - ) -{ - KsAcquireControl((PVOID) Pin); -} - -void __inline -KsPinReleaseControl( - IN PKSPIN Pin - ) -{ - KsReleaseControl((PVOID) Pin); -} - -KSDDKAPI -NTSTATUS -NTAPI -KsAddItemToObjectBag( - IN KSOBJECT_BAG ObjectBag, - IN PVOID Item, - IN PFNKSFREE Free OPTIONAL - ); - -KSDDKAPI -ULONG -NTAPI -KsRemoveItemFromObjectBag( - IN KSOBJECT_BAG ObjectBag, - IN PVOID Item, - IN BOOLEAN Free - ); - -#define KsDiscard(Object,Pointer)\ - KsRemoveItemFromObjectBag(\ - (Object)->Bag,\ - (PVOID)(Pointer),\ - TRUE) - -KSDDKAPI -NTSTATUS -NTAPI -KsAllocateObjectBag( - IN PKSDEVICE Device, - OUT KSOBJECT_BAG* ObjectBag - ); - -KSDDKAPI -void -NTAPI -KsFreeObjectBag( - IN KSOBJECT_BAG ObjectBag - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsCopyObjectBagItems( - IN KSOBJECT_BAG ObjectBagDestination, - IN KSOBJECT_BAG ObjectBagSource - ); - -KSDDKAPI -NTSTATUS -NTAPI -_KsEdit( - IN KSOBJECT_BAG ObjectBag, - IN OUT PVOID* PointerToPointerToItem, - IN ULONG NewSize, - IN ULONG OldSize, - IN ULONG Tag - ); - -#define KsEdit(Object,PointerToPointer,Tag)\ - _KsEdit(\ - (Object)->Bag,\ - (PVOID*)(PointerToPointer),\ - sizeof(**(PointerToPointer)),\ - sizeof(**(PointerToPointer)),\ - (Tag)) -#define KsEditSized(Object,PointerToPointer,NewSize,OldSize,Tag)\ - _KsEdit((Object)->Bag,(PVOID*)(PointerToPointer),(NewSize),(OldSize),(Tag)) - -KSDDKAPI -NTSTATUS -NTAPI -KsRegisterFilterWithNoKSPins( - IN PDEVICE_OBJECT DeviceObject, - IN const GUID * InterfaceClassGUID, - IN ULONG PinCount, - IN BOOL * PinDirection, - IN KSPIN_MEDIUM * MediumList, - IN OPTIONAL GUID * CategoryList -); - -KSDDKAPI -NTSTATUS -NTAPI -KsFilterCreatePinFactory ( - IN PKSFILTER Filter, - IN const KSPIN_DESCRIPTOR_EX *const PinDescriptor, - OUT PULONG PinID - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsFilterCreateNode ( - IN PKSFILTER Filter, - IN const KSNODE_DESCRIPTOR *const NodeDescriptor, - OUT PULONG NodeID - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsFilterAddTopologyConnections ( - IN PKSFILTER Filter, - IN ULONG NewConnectionsCount, - IN const KSTOPOLOGY_CONNECTION *const NewTopologyConnections - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsPinGetConnectedPinInterface( - IN PKSPIN Pin, - IN const GUID* InterfaceId, - OUT PVOID* Interface - ); - -KSDDKAPI -PFILE_OBJECT -NTAPI -KsPinGetConnectedPinFileObject( - IN PKSPIN Pin - ); - -KSDDKAPI -PDEVICE_OBJECT -NTAPI -KsPinGetConnectedPinDeviceObject( - IN PKSPIN Pin - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsPinGetConnectedFilterInterface( - IN PKSPIN Pin, - IN const GUID* InterfaceId, - OUT PVOID* Interface - ); - -#if defined(_UNKNOWN_H_) || defined(__IUnknown_INTERFACE_DEFINED__) - -KSDDKAPI -NTSTATUS -NTAPI -KsPinGetReferenceClockInterface( - IN PKSPIN Pin, - OUT PIKSREFERENCECLOCK* Interface - ); - -#endif //defined(_UNKNOWN_H_) || defined(__IUnknown_INTERFACE_DEFINED__) - -KSDDKAPI -VOID -NTAPI -KsPinSetPinClockTime( - IN PKSPIN Pin, - IN LONGLONG Time - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsPinSubmitFrame( - IN PKSPIN Pin, - IN PVOID Data OPTIONAL, - IN ULONG Size OPTIONAL, - IN PKSSTREAM_HEADER StreamHeader OPTIONAL, - IN PVOID Context OPTIONAL - ); - -KSDDKAPI -NTSTATUS -NTAPI -KsPinSubmitFrameMdl( - IN PKSPIN Pin, - IN PMDL Mdl OPTIONAL, - IN PKSSTREAM_HEADER StreamHeader OPTIONAL, - IN PVOID Context OPTIONAL - ); - -KSDDKAPI -void -NTAPI -KsPinRegisterFrameReturnCallback( - IN PKSPIN Pin, - IN PFNKSPINFRAMERETURN FrameReturn - ); - -KSDDKAPI -void -NTAPI -KsPinRegisterIrpCompletionCallback( - IN PKSPIN Pin, - IN PFNKSPINIRPCOMPLETION IrpCompletion - ); - -KSDDKAPI -void -NTAPI -KsPinRegisterHandshakeCallback( - IN PKSPIN Pin, - IN PFNKSPINHANDSHAKE Handshake - ); - -KSDDKAPI -void -NTAPI -KsFilterRegisterPowerCallbacks( - IN PKSFILTER Filter, - IN PFNKSFILTERPOWER Sleep OPTIONAL, - IN PFNKSFILTERPOWER Wake OPTIONAL - ); - -KSDDKAPI -void -NTAPI -KsPinRegisterPowerCallbacks( - IN PKSPIN Pin, - IN PFNKSPINPOWER Sleep OPTIONAL, - IN PFNKSPINPOWER Wake OPTIONAL - ); - -#if defined(_UNKNOWN_H_) || defined(__IUnknown_INTERFACE_DEFINED__) - -KSDDKAPI -PUNKNOWN -NTAPI -KsRegisterAggregatedClientUnknown( - IN PVOID Object, - IN PUNKNOWN ClientUnknown - ); - -KSDDKAPI -PUNKNOWN -NTAPI -KsGetOuterUnknown( - IN PVOID Object - ); - -PUNKNOWN __inline -KsDeviceRegisterAggregatedClientUnknown( - IN PKSDEVICE Device, - IN PUNKNOWN ClientUnknown - ) -{ - return KsRegisterAggregatedClientUnknown((PVOID) Device,ClientUnknown); -} - -PUNKNOWN __inline -KsDeviceGetOuterUnknown( - IN PKSDEVICE Device - ) -{ - return KsGetOuterUnknown((PVOID) Device); -} - -PUNKNOWN __inline -KsFilterFactoryRegisterAggregatedClientUnknown( - IN PKSFILTERFACTORY FilterFactory, - IN PUNKNOWN ClientUnknown - ) -{ - return KsRegisterAggregatedClientUnknown((PVOID) FilterFactory,ClientUnknown); -} - -PUNKNOWN __inline -KsFilterFactoryGetOuterUnknown( - IN PKSFILTERFACTORY FilterFactory - ) -{ - return KsGetOuterUnknown((PVOID) FilterFactory); -} - -PUNKNOWN __inline -KsFilterRegisterAggregatedClientUnknown( - IN PKSFILTER Filter, - IN PUNKNOWN ClientUnknown - ) -{ - return KsRegisterAggregatedClientUnknown((PVOID) Filter,ClientUnknown); -} - -PUNKNOWN __inline -KsFilterGetOuterUnknown( - IN PKSFILTER Filter - ) -{ - return KsGetOuterUnknown((PVOID) Filter); -} - -PUNKNOWN __inline -KsPinRegisterAggregatedClientUnknown( - IN PKSPIN Pin, - IN PUNKNOWN ClientUnknown - ) -{ - return KsRegisterAggregatedClientUnknown((PVOID) Pin,ClientUnknown); -} - -PUNKNOWN __inline -KsPinGetOuterUnknown( - IN PKSPIN Pin - ) -{ - return KsGetOuterUnknown((PVOID) Pin); -} - -#endif // defined(_UNKNOWN_H_) || defined(__IUnknown_INTERFACE_DEFINED__) - -#else // !defined(_NTDDK_) - -#if !defined( KS_NO_CREATE_FUNCTIONS ) - -KSDDKAPI -DWORD -WINAPI -KsCreateAllocator( - IN HANDLE ConnectionHandle, - IN PKSALLOCATOR_FRAMING AllocatorFraming, - OUT PHANDLE AllocatorHandle - ); - -KSDDKAPI -DWORD -NTAPI -KsCreateClock( - IN HANDLE ConnectionHandle, - IN PKSCLOCK_CREATE ClockCreate, - OUT PHANDLE ClockHandle - ); - -KSDDKAPI -DWORD -WINAPI -KsCreatePin( - IN HANDLE FilterHandle, - IN PKSPIN_CONNECT Connect, - IN ACCESS_MASK DesiredAccess, - OUT PHANDLE ConnectionHandle - ); - -KSDDKAPI -DWORD -WINAPI -KsCreateTopologyNode( - IN HANDLE ParentHandle, - IN PKSNODE_CREATE NodeCreate, - IN ACCESS_MASK DesiredAccess, - OUT PHANDLE NodeHandle - ); - -#endif - -#endif // !defined(_NTDDK_) - -#if defined(__cplusplus) -} -#endif // defined(__cplusplus) - - -#define DENY_USERMODE_ACCESS( pIrp, CompleteRequest ) \ -if ( pIrp->RequestorMode != KernelMode ) { \ - pIrp->IoStatus.Information = 0; \ - pIrp->IoStatus.Status = STATUS_INVALID_DEVICE_REQUEST; \ - if ( CompleteRequest ) IoCompleteRequest ( pIrp, IO_NO_INCREMENT ); \ - return STATUS_INVALID_DEVICE_REQUEST; \ -} - - -#endif // !_KS_ diff --git a/sdk/dx8sdk/Include/ksguid.h b/sdk/dx8sdk/Include/ksguid.h deleted file mode 100644 index 42cd2c70..00000000 --- a/sdk/dx8sdk/Include/ksguid.h +++ /dev/null @@ -1,29 +0,0 @@ -/*++ - -Copyright (c) Microsoft Corporation. All rights reserved. - -Module Name: - - ksguid.h - -Abstract: - - Define guids for non-C++. - ---*/ - -#define INITGUID -#include - -#if defined( DEFINE_GUIDEX ) - #undef DEFINE_GUIDEX -#endif -#define DEFINE_GUIDEX(name) EXTERN_C const CDECL GUID __declspec(selectany) name = { STATICGUIDOF(name) } - -#ifndef STATICGUIDOF - #define STATICGUIDOF(guid) STATIC_##guid -#endif // !defined(STATICGUIDOF) - -#if !defined( DEFINE_WAVEFORMATEX_GUID ) -#define DEFINE_WAVEFORMATEX_GUID(x) (USHORT)(x), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 -#endif diff --git a/sdk/dx8sdk/Include/ksmedia.h b/sdk/dx8sdk/Include/ksmedia.h deleted file mode 100644 index 136c5ccd..00000000 --- a/sdk/dx8sdk/Include/ksmedia.h +++ /dev/null @@ -1,5159 +0,0 @@ -/*++ - -Copyright (c) Microsoft Corporation. All rights reserved. - -Module Name: - - ksmedia.h - -Abstract: - - WDM-CSA Multimedia Definitions. - ---*/ - -#if !defined(_KS_) -#error KS.H must be included before KSMEDIA.H -#endif // !defined(_KS_) - -#if !defined(_KSMEDIA_) -#define _KSMEDIA_ - -typedef struct { - KSPROPERTY Property; - KSMULTIPLE_ITEM MultipleItem; -} KSMULTIPLE_DATA_PROP, *PKSMULTIPLE_DATA_PROP; - -#define STATIC_KSMEDIUMSETID_MidiBus \ - 0x05908040L, 0x3246, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("05908040-3246-11D0-A5D6-28DB04C10000", KSMEDIUMSETID_MidiBus); -#define KSMEDIUMSETID_MidiBus DEFINE_GUIDNAMED(KSMEDIUMSETID_MidiBus) - -#define STATIC_KSMEDIUMSETID_VPBus \ - 0xA18C15ECL, 0xCE43, 0x11D0, 0xAB, 0xE7, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("A18C15EC-CE43-11D0-ABE7-00A0C9223196", KSMEDIUMSETID_VPBus); -#define KSMEDIUMSETID_VPBus DEFINE_GUIDNAMED(KSMEDIUMSETID_VPBus) - -#define STATIC_KSINTERFACESETID_Media \ - 0x3A13EB40L, 0x30A7, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("3A13EB40-30A7-11D0-A5D6-28DB04C10000", KSINTERFACESETID_Media); -#define KSINTERFACESETID_Media DEFINE_GUIDNAMED(KSINTERFACESETID_Media) - -typedef enum { - KSINTERFACE_MEDIA_MUSIC, - KSINTERFACE_MEDIA_WAVE_BUFFERED, - KSINTERFACE_MEDIA_WAVE_QUEUED -} KSINTERFACE_MEDIA; - - -#if !defined(INIT_USBAUDIO_MID) -// {4e1cecd2-1679-463b-a72f-a5bf64c86eba} -#define INIT_USBAUDIO_MID(guid, id)\ -{\ - (guid)->Data1 = 0x4e1cecd2 + (USHORT)(id);\ - (guid)->Data2 = 0x1679;\ - (guid)->Data3 = 0x463b;\ - (guid)->Data4[0] = 0xa7;\ - (guid)->Data4[1] = 0x2f;\ - (guid)->Data4[2] = 0xa5;\ - (guid)->Data4[3] = 0xbf;\ - (guid)->Data4[4] = 0x64;\ - (guid)->Data4[5] = 0xc8;\ - (guid)->Data4[6] = 0x6e;\ - (guid)->Data4[7] = 0xba;\ -} -#define EXTRACT_USBAUDIO_MID(guid)\ - (USHORT)((guid)->Data1 - 0x4e1cecd2) -#define DEFINE_USBAUDIO_MID_GUID(id)\ - 0x4e1cecd2+(USHORT)(id), 0x1679, 0x463b, 0xa7, 0x2f, 0xa5, 0xbf, 0x64, 0xc8, 0x6e, 0xba - -#define IS_COMPATIBLE_USBAUDIO_MID(guid)\ - (((guid)->Data1 >= 0x4e1cecd2) &&\ - ((guid)->Data1 < 0x4e1cecd2 + 0xffff) &&\ - ((guid)->Data2 == 0x1679) &&\ - ((guid)->Data3 == 0x463b) &&\ - ((guid)->Data4[0] == 0xa7) &&\ - ((guid)->Data4[1] == 0x2f) &&\ - ((guid)->Data4[2] == 0xa5) &&\ - ((guid)->Data4[3] == 0xbf) &&\ - ((guid)->Data4[4] == 0x64) &&\ - ((guid)->Data4[5] == 0xc8) &&\ - ((guid)->Data4[6] == 0x6e) &&\ - ((guid)->Data4[7] == 0xba)) -#endif // !defined(INIT_USBAUDIO_MID) - -#if !defined(INIT_USBAUDIO_PID) -// {abcc5a5e-c263-463b-a72f-a5bf64c86eba} -#define INIT_USBAUDIO_PID(guid, id)\ -{\ - (guid)->Data1 = 0xabcc5a5e + (USHORT)(id);\ - (guid)->Data2 = 0xc263;\ - (guid)->Data3 = 0x463b;\ - (guid)->Data4[0] = 0xa7;\ - (guid)->Data4[1] = 0x2f;\ - (guid)->Data4[2] = 0xa5;\ - (guid)->Data4[3] = 0xbf;\ - (guid)->Data4[4] = 0x64;\ - (guid)->Data4[5] = 0xc8;\ - (guid)->Data4[6] = 0x6e;\ - (guid)->Data4[7] = 0xba;\ -} -#define EXTRACT_USBAUDIO_PID(guid)\ - (USHORT)((guid)->Data1 - 0xabcc5a5e) -#define DEFINE_USBAUDIO_PID_GUID(id)\ - 0xabcc5a5e+(USHORT)(id), 0xc263, 0x463b, 0xa7, 0x2f, 0xa5, 0xbf, 0x64, 0xc8, 0x6e, 0xba - -#define IS_COMPATIBLE_USBAUDIO_PID(guid)\ - (((guid)->Data1 >= 0xabcc5a5e) &&\ - ((guid)->Data1 < 0xabcc5a5e + 0xffff) &&\ - ((guid)->Data2 == 0xc263) &&\ - ((guid)->Data3 == 0x463b) &&\ - ((guid)->Data4[0] == 0xa7) &&\ - ((guid)->Data4[1] == 0x2f) &&\ - ((guid)->Data4[2] == 0xa5) &&\ - ((guid)->Data4[3] == 0xbf) &&\ - ((guid)->Data4[4] == 0x64) &&\ - ((guid)->Data4[5] == 0xc8) &&\ - ((guid)->Data4[6] == 0x6e) &&\ - ((guid)->Data4[7] == 0xba)) -#endif // !defined(INIT_USBAUDIO_PID) - -#if !defined(INIT_USBAUDIO_PRODUCT_NAME) -// {FC575048-2E08-463B-A72F-A5BF64C86EBA} -#define INIT_USBAUDIO_PRODUCT_NAME(guid, vid, pid, strIndex)\ -{\ - (guid)->Data1 = 0XFC575048 + (USHORT)(vid);\ - (guid)->Data2 = 0x2E08 + (USHORT)(pid);\ - (guid)->Data3 = 0x463B + (USHORT)(strIndex);\ - (guid)->Data4[0] = 0xA7;\ - (guid)->Data4[1] = 0x2F;\ - (guid)->Data4[2] = 0xA5;\ - (guid)->Data4[3] = 0xBF;\ - (guid)->Data4[4] = 0x64;\ - (guid)->Data4[5] = 0xC8;\ - (guid)->Data4[6] = 0x6E;\ - (guid)->Data4[7] = 0xBA;\ -} -#define DEFINE_USBAUDIO_PRODUCT_NAME(vid, pid, strIndex)\ - 0xFC575048+(USHORT)(vid), 0x2E08+(USHORT)(pid), 0x463B+(USHORT)(strIndex), 0xA7, 0x2F, 0xA5, 0xBF, 0x64, 0xC8, 0x6E, 0xBA -#endif // !defined(INIT_USBAUDIO_PRODUCT_NAME) - - -// USB Component ID -#define STATIC_KSCOMPONENTID_USBAUDIO \ - 0x8F1275F0, 0x26E9, 0x4264, 0xBA, 0x4D, 0x39, 0xFF, 0xF0, 0x1D, 0x94, 0xAA -DEFINE_GUIDSTRUCT("8F1275F0-26E9-4264-BA4D-39FFF01D94AA", KSCOMPONENTID_USBAUDIO); -#define KSCOMPONENTID_USBAUDIO DEFINE_GUIDNAMED(KSCOMPONENTID_USBAUDIO) - -// USB Terminals -#define INIT_USB_TERMINAL(guid, id)\ -{\ - (guid)->Data1 = 0xDFF219E0 + (USHORT)(id);\ - (guid)->Data2 = 0xF70F;\ - (guid)->Data3 = 0x11D0;\ - (guid)->Data4[0] = 0xb9;\ - (guid)->Data4[1] = 0x17;\ - (guid)->Data4[2] = 0x00;\ - (guid)->Data4[3] = 0xa0;\ - (guid)->Data4[4] = 0xc9;\ - (guid)->Data4[5] = 0x22;\ - (guid)->Data4[6] = 0x31;\ - (guid)->Data4[7] = 0x96;\ -} -#define EXTRACT_USB_TERMINAL(guid)\ - (USHORT)((guid)->Data1 - 0xDFF219E0) -#define DEFINE_USB_TERMINAL_GUID(id)\ - 0xDFF219E0+(USHORT)(id), 0xF70F, 0x11D0, 0xB9, 0x17, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 - -#define STATIC_KSNODETYPE_MICROPHONE\ - DEFINE_USB_TERMINAL_GUID(0x0201) -DEFINE_GUIDSTRUCT("DFF21BE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_MICROPHONE); -#define KSNODETYPE_MICROPHONE DEFINE_GUIDNAMED(KSNODETYPE_MICROPHONE) - -#define STATIC_KSNODETYPE_DESKTOP_MICROPHONE\ - DEFINE_USB_TERMINAL_GUID(0x0202) -DEFINE_GUIDSTRUCT("DFF21BE2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DESKTOP_MICROPHONE); -#define KSNODETYPE_DESKTOP_MICROPHONE DEFINE_GUIDNAMED(KSNODETYPE_DESKTOP_MICROPHONE) - -#define STATIC_KSNODETYPE_PERSONAL_MICROPHONE\ - DEFINE_USB_TERMINAL_GUID(0x0203) -DEFINE_GUIDSTRUCT("DFF21BE3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_PERSONAL_MICROPHONE); -#define KSNODETYPE_PERSONAL_MICROPHONE DEFINE_GUIDNAMED(KSNODETYPE_PERSONAL_MICROPHONE) - -#define STATIC_KSNODETYPE_OMNI_DIRECTIONAL_MICROPHONE\ - DEFINE_USB_TERMINAL_GUID(0x0204) -DEFINE_GUIDSTRUCT("DFF21BE4-F70F-11D0-B917-00A0C9223196", KSNODETYPE_OMNI_DIRECTIONAL_MICROPHONE); -#define KSNODETYPE_OMNI_DIRECTIONAL_MICROPHONE DEFINE_GUIDNAMED(KSNODETYPE_OMNI_DIRECTIONAL_MICROPHONE) - -#define STATIC_KSNODETYPE_MICROPHONE_ARRAY\ - DEFINE_USB_TERMINAL_GUID(0x0205) -DEFINE_GUIDSTRUCT("DFF21BE5-F70F-11D0-B917-00A0C9223196", KSNODETYPE_MICROPHONE_ARRAY); -#define KSNODETYPE_MICROPHONE_ARRAY DEFINE_GUIDNAMED(KSNODETYPE_MICROPHONE_ARRAY) - -#define STATIC_KSNODETYPE_PROCESSING_MICROPHONE_ARRAY\ - DEFINE_USB_TERMINAL_GUID(0x0206) -DEFINE_GUIDSTRUCT("DFF21BE6-F70F-11D0-B917-00A0C9223196", KSNODETYPE_PROCESSING_MICROPHONE_ARRAY); -#define KSNODETYPE_PROCESSING_MICROPHONE_ARRAY DEFINE_GUIDNAMED(KSNODETYPE_PROCESSING_MICROPHONE_ARRAY) - -#define STATIC_KSCATEGORY_MICROPHONE_ARRAY_PROCESSOR \ - 0x830a44f2, 0xa32d, 0x476b, 0xbe, 0x97, 0x42, 0x84, 0x56, 0x73, 0xb3, 0x5a -DEFINE_GUIDSTRUCT("830a44f2-a32d-476b-be97-42845673b35a", KSCATEGORY_MICROPHONE_ARRAY_PROCESSOR); -#define KSCATEGORY_MICROPHONE_ARRAY_PROCESSOR DEFINE_GUIDNAMED(KSCATEGORY_MICROPHONE_ARRAY_PROCESSOR) - -#define STATIC_KSNODETYPE_SPEAKER\ - DEFINE_USB_TERMINAL_GUID(0x0301) -DEFINE_GUIDSTRUCT("DFF21CE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_SPEAKER); -#define KSNODETYPE_SPEAKER DEFINE_GUIDNAMED(KSNODETYPE_SPEAKER) - -#define STATIC_KSNODETYPE_HEADPHONES\ - DEFINE_USB_TERMINAL_GUID(0x0302) -DEFINE_GUIDSTRUCT("DFF21CE2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_HEADPHONES); -#define KSNODETYPE_HEADPHONES DEFINE_GUIDNAMED(KSNODETYPE_HEADPHONES) - -#define STATIC_KSNODETYPE_HEAD_MOUNTED_DISPLAY_AUDIO\ - DEFINE_USB_TERMINAL_GUID(0x0303) -DEFINE_GUIDSTRUCT("DFF21CE3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_HEAD_MOUNTED_DISPLAY_AUDIO); -#define KSNODETYPE_HEAD_MOUNTED_DISPLAY_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_HEAD_MOUNTED_DISPLAY_AUDIO) - -#define STATIC_KSNODETYPE_DESKTOP_SPEAKER\ - DEFINE_USB_TERMINAL_GUID(0x0304) -DEFINE_GUIDSTRUCT("DFF21CE4-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DESKTOP_SPEAKER); -#define KSNODETYPE_DESKTOP_SPEAKER DEFINE_GUIDNAMED(KSNODETYPE_DESKTOP_SPEAKER) - -#define STATIC_KSNODETYPE_ROOM_SPEAKER\ - DEFINE_USB_TERMINAL_GUID(0x0305) -DEFINE_GUIDSTRUCT("DFF21CE5-F70F-11D0-B917-00A0C9223196", KSNODETYPE_ROOM_SPEAKER); -#define KSNODETYPE_ROOM_SPEAKER DEFINE_GUIDNAMED(KSNODETYPE_ROOM_SPEAKER) - -#define STATIC_KSNODETYPE_COMMUNICATION_SPEAKER\ - DEFINE_USB_TERMINAL_GUID(0x0306) -DEFINE_GUIDSTRUCT("DFF21CE6-F70F-11D0-B917-00A0C9223196", KSNODETYPE_COMMUNICATION_SPEAKER); -#define KSNODETYPE_COMMUNICATION_SPEAKER DEFINE_GUIDNAMED(KSNODETYPE_COMMUNICATION_SPEAKER) - -#define STATIC_KSNODETYPE_LOW_FREQUENCY_EFFECTS_SPEAKER\ - DEFINE_USB_TERMINAL_GUID(0x0307) -DEFINE_GUIDSTRUCT("DFF21CE7-F70F-11D0-B917-00A0C9223196", KSNODETYPE_LOW_FREQUENCY_EFFECTS_SPEAKER); -#define KSNODETYPE_LOW_FREQUENCY_EFFECTS_SPEAKER DEFINE_GUIDNAMED(KSNODETYPE_LOW_FREQUENCY_EFFECTS_SPEAKER) - -#define STATIC_KSNODETYPE_HANDSET\ - DEFINE_USB_TERMINAL_GUID(0x0401) -DEFINE_GUIDSTRUCT("DFF21DE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_HANDSET); -#define KSNODETYPE_HANDSET DEFINE_GUIDNAMED(KSNODETYPE_HANDSET) - -#define STATIC_KSNODETYPE_HEADSET\ - DEFINE_USB_TERMINAL_GUID(0x0402) -DEFINE_GUIDSTRUCT("DFF21DE2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_HEADSET); -#define KSNODETYPE_HEADSET DEFINE_GUIDNAMED(KSNODETYPE_HEADSET) - -#define STATIC_KSNODETYPE_SPEAKERPHONE_NO_ECHO_REDUCTION\ - DEFINE_USB_TERMINAL_GUID(0x0403) -DEFINE_GUIDSTRUCT("DFF21DE3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_SPEAKERPHONE_NO_ECHO_REDUCTION); -#define KSNODETYPE_SPEAKERPHONE_NO_ECHO_REDUCTION DEFINE_GUIDNAMED(KSNODETYPE_SPEAKERPHONE_NO_ECHO_REDUCTION) - -#define STATIC_KSNODETYPE_ECHO_SUPPRESSING_SPEAKERPHONE\ - DEFINE_USB_TERMINAL_GUID(0x0404) -DEFINE_GUIDSTRUCT("DFF21DE4-F70F-11D0-B917-00A0C9223196", KSNODETYPE_ECHO_SUPPRESSING_SPEAKERPHONE); -#define KSNODETYPE_ECHO_SUPPRESSING_SPEAKERPHONE DEFINE_GUIDNAMED(KSNODETYPE_ECHO_SUPPRESSING_SPEAKERPHONE) - -#define STATIC_KSNODETYPE_ECHO_CANCELING_SPEAKERPHONE\ - DEFINE_USB_TERMINAL_GUID(0x0405) -DEFINE_GUIDSTRUCT("DFF21DE5-F70F-11D0-B917-00A0C9223196", KSNODETYPE_ECHO_CANCELING_SPEAKERPHONE); -#define KSNODETYPE_ECHO_CANCELING_SPEAKERPHONE DEFINE_GUIDNAMED(KSNODETYPE_ECHO_CANCELING_SPEAKERPHONE) - -#define STATIC_KSNODETYPE_PHONE_LINE\ - DEFINE_USB_TERMINAL_GUID(0x0501) -DEFINE_GUIDSTRUCT("DFF21EE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_PHONE_LINE); -#define KSNODETYPE_PHONE_LINE DEFINE_GUIDNAMED(KSNODETYPE_PHONE_LINE) - -#define STATIC_KSNODETYPE_TELEPHONE\ - DEFINE_USB_TERMINAL_GUID(0x0502) -DEFINE_GUIDSTRUCT("DFF21EE2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_TELEPHONE); -#define KSNODETYPE_TELEPHONE DEFINE_GUIDNAMED(KSNODETYPE_TELEPHONE) - -#define STATIC_KSNODETYPE_DOWN_LINE_PHONE\ - DEFINE_USB_TERMINAL_GUID(0x0503) -DEFINE_GUIDSTRUCT("DFF21EE3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DOWN_LINE_PHONE); -#define KSNODETYPE_DOWN_LINE_PHONE DEFINE_GUIDNAMED(KSNODETYPE_DOWN_LINE_PHONE) - -#define STATIC_KSNODETYPE_ANALOG_CONNECTOR\ - DEFINE_USB_TERMINAL_GUID(0x601) -DEFINE_GUIDSTRUCT("DFF21FE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_ANALOG_CONNECTOR); -#define KSNODETYPE_ANALOG_CONNECTOR DEFINE_GUIDNAMED(KSNODETYPE_ANALOG_CONNECTOR) - -#define STATIC_KSNODETYPE_DIGITAL_AUDIO_INTERFACE\ - DEFINE_USB_TERMINAL_GUID(0x0602) -DEFINE_GUIDSTRUCT("DFF21FE2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DIGITAL_AUDIO_INTERFACE); -#define KSNODETYPE_DIGITAL_AUDIO_INTERFACE DEFINE_GUIDNAMED(KSNODETYPE_DIGITAL_AUDIO_INTERFACE) - -#define STATIC_KSNODETYPE_LINE_CONNECTOR\ - DEFINE_USB_TERMINAL_GUID(0x0603) -DEFINE_GUIDSTRUCT("DFF21FE3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_LINE_CONNECTOR); -#define KSNODETYPE_LINE_CONNECTOR DEFINE_GUIDNAMED(KSNODETYPE_LINE_CONNECTOR) - -#define STATIC_KSNODETYPE_LEGACY_AUDIO_CONNECTOR\ - DEFINE_USB_TERMINAL_GUID(0x0604) -DEFINE_GUIDSTRUCT("DFF21FE4-F70F-11D0-B917-00A0C9223196", KSNODETYPE_LEGACY_AUDIO_CONNECTOR); -#define KSNODETYPE_LEGACY_AUDIO_CONNECTOR DEFINE_GUIDNAMED(KSNODETYPE_LEGACY_AUDIO_CONNECTOR) - -#define STATIC_KSNODETYPE_SPDIF_INTERFACE\ - DEFINE_USB_TERMINAL_GUID(0x0605) -DEFINE_GUIDSTRUCT("DFF21FE5-F70F-11D0-B917-00A0C9223196", KSNODETYPE_SPDIF_INTERFACE); -#define KSNODETYPE_SPDIF_INTERFACE DEFINE_GUIDNAMED(KSNODETYPE_SPDIF_INTERFACE) - -#define STATIC_KSNODETYPE_1394_DA_STREAM\ - DEFINE_USB_TERMINAL_GUID(0x0606) -DEFINE_GUIDSTRUCT("DFF21FE6-F70F-11D0-B917-00A0C9223196", KSNODETYPE_1394_DA_STREAM); -#define KSNODETYPE_1394_DA_STREAM DEFINE_GUIDNAMED(KSNODETYPE_1394_DA_STREAM) - -#define STATIC_KSNODETYPE_1394_DV_STREAM_SOUNDTRACK\ - DEFINE_USB_TERMINAL_GUID(0x0607) -DEFINE_GUIDSTRUCT("DFF21FE7-F70F-11D0-B917-00A0C9223196", KSNODETYPE_1394_DV_STREAM_SOUNDTRACK); -#define KSNODETYPE_1394_DV_STREAM_SOUNDTRACK DEFINE_GUIDNAMED(KSNODETYPE_1394_DV_STREAM_SOUNDTRACK) - -#define STATIC_KSNODETYPE_LEVEL_CALIBRATION_NOISE_SOURCE\ - DEFINE_USB_TERMINAL_GUID(0x0701) -DEFINE_GUIDSTRUCT("DFF220E1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_LEVEL_CALIBRATION_NOISE_SOURCE); -#define KSNODETYPE_LEVEL_CALIBRATION_NOISE_SOURCE DEFINE_GUIDNAMED(KSNODETYPE_LEVEL_CALIBRATION_NOISE_SOURCE) - -#define STATIC_KSNODETYPE_EQUALIZATION_NOISE\ - DEFINE_USB_TERMINAL_GUID(0x0702) -DEFINE_GUIDSTRUCT("DFF220E2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_EQUALIZATION_NOISE); -#define KSNODETYPE_EQUALIZATION_NOISE DEFINE_GUIDNAMED(KSNODETYPE_EQUALIZATION_NOISE) - -#define STATIC_KSNODETYPE_CD_PLAYER\ - DEFINE_USB_TERMINAL_GUID(0x0703) -DEFINE_GUIDSTRUCT("DFF220E3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_CD_PLAYER); -#define KSNODETYPE_CD_PLAYER DEFINE_GUIDNAMED(KSNODETYPE_CD_PLAYER) - -#define STATIC_KSNODETYPE_DAT_IO_DIGITAL_AUDIO_TAPE\ - DEFINE_USB_TERMINAL_GUID(0x0704) -DEFINE_GUIDSTRUCT("DFF220E4-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DAT_IO_DIGITAL_AUDIO_TAPE); -#define KSNODETYPE_DAT_IO_DIGITAL_AUDIO_TAPE DEFINE_GUIDNAMED(KSNODETYPE_DAT_IO_DIGITAL_AUDIO_TAPE) - -#define STATIC_KSNODETYPE_DCC_IO_DIGITAL_COMPACT_CASSETTE\ - DEFINE_USB_TERMINAL_GUID(0x0705) -DEFINE_GUIDSTRUCT("DFF220E5-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DCC_IO_DIGITAL_COMPACT_CASSETTE); -#define KSNODETYPE_DCC_IO_DIGITAL_COMPACT_CASSETTE DEFINE_GUIDNAMED(KSNODETYPE_DCC_IO_DIGITAL_COMPACT_CASSETTE) - -#define STATIC_KSNODETYPE_MINIDISK\ - DEFINE_USB_TERMINAL_GUID(0x0706) -DEFINE_GUIDSTRUCT("DFF220E6-F70F-11D0-B917-00A0C9223196", KSNODETYPE_MINIDISK); -#define KSNODETYPE_MINIDISK DEFINE_GUIDNAMED(KSNODETYPE_MINIDISK) - -#define STATIC_KSNODETYPE_ANALOG_TAPE\ - DEFINE_USB_TERMINAL_GUID(0x0707) -DEFINE_GUIDSTRUCT("DFF220E7-F70F-11D0-B917-00A0C9223196", KSNODETYPE_ANALOG_TAPE); -#define KSNODETYPE_ANALOG_TAPE DEFINE_GUIDNAMED(KSNODETYPE_ANALOG_TAPE) - -#define STATIC_KSNODETYPE_PHONOGRAPH\ - DEFINE_USB_TERMINAL_GUID(0x0708) -DEFINE_GUIDSTRUCT("DFF220E8-F70F-11D0-B917-00A0C9223196", KSNODETYPE_PHONOGRAPH); -#define KSNODETYPE_PHONOGRAPH DEFINE_GUIDNAMED(KSNODETYPE_PHONOGRAPH) - -#define STATIC_KSNODETYPE_VCR_AUDIO\ - DEFINE_USB_TERMINAL_GUID(0x0708) -DEFINE_GUIDSTRUCT("DFF220E9-F70F-11D0-B917-00A0C9223196", KSNODETYPE_VCR_AUDIO); -#define KSNODETYPE_VCR_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_VCR_AUDIO) - -#define STATIC_KSNODETYPE_VIDEO_DISC_AUDIO\ - DEFINE_USB_TERMINAL_GUID(0x070A) -DEFINE_GUIDSTRUCT("DFF220EA-F70F-11D0-B917-00A0C9223196", KSNODETYPE_VIDEO_DISC_AUDIO); -#define KSNODETYPE_VIDEO_DISC_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_VIDEO_DISC_AUDIO) - -#define STATIC_KSNODETYPE_DVD_AUDIO\ - DEFINE_USB_TERMINAL_GUID(0x070B) -DEFINE_GUIDSTRUCT("DFF220EB-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DVD_AUDIO); -#define KSNODETYPE_DVD_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_DVD_AUDIO) - -#define STATIC_KSNODETYPE_TV_TUNER_AUDIO\ - DEFINE_USB_TERMINAL_GUID(0x070C) -DEFINE_GUIDSTRUCT("DFF220EC-F70F-11D0-B917-00A0C9223196", KSNODETYPE_TV_TUNER_AUDIO); -#define KSNODETYPE_TV_TUNER_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_TV_TUNER_AUDIO) - -#define STATIC_KSNODETYPE_SATELLITE_RECEIVER_AUDIO\ - DEFINE_USB_TERMINAL_GUID(0x070D) -DEFINE_GUIDSTRUCT("DFF220ED-F70F-11D0-B917-00A0C9223196", KSNODETYPE_SATELLITE_RECEIVER_AUDIO); -#define KSNODETYPE_SATELLITE_RECEIVER_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_SATELLITE_RECEIVER_AUDIO) - -#define STATIC_KSNODETYPE_CABLE_TUNER_AUDIO\ - DEFINE_USB_TERMINAL_GUID(0x070E) -DEFINE_GUIDSTRUCT("DFF220EE-F70F-11D0-B917-00A0C9223196", KSNODETYPE_CABLE_TUNER_AUDIO); -#define KSNODETYPE_CABLE_TUNER_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_CABLE_TUNER_AUDIO) - -#define STATIC_KSNODETYPE_DSS_AUDIO\ - DEFINE_USB_TERMINAL_GUID(0x070F) -DEFINE_GUIDSTRUCT("DFF220EF-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DSS_AUDIO); -#define KSNODETYPE_DSS_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_DSS_AUDIO) - -#define STATIC_KSNODETYPE_RADIO_RECEIVER\ - DEFINE_USB_TERMINAL_GUID(0x0710) -DEFINE_GUIDSTRUCT("DFF220F0-F70F-11D0-B917-00A0C9223196", KSNODETYPE_RADIO_RECEIVER); -#define KSNODETYPE_RADIO_RECEIVER DEFINE_GUIDNAMED(KSNODETYPE_RADIO_RECEIVER) - -#define STATIC_KSNODETYPE_RADIO_TRANSMITTER\ - DEFINE_USB_TERMINAL_GUID(0x0711) -DEFINE_GUIDSTRUCT("DFF220F1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_RADIO_TRANSMITTER); -#define KSNODETYPE_RADIO_TRANSMITTER DEFINE_GUIDNAMED(KSNODETYPE_RADIO_TRANSMITTER) - -#define STATIC_KSNODETYPE_MULTITRACK_RECORDER\ - DEFINE_USB_TERMINAL_GUID(0x0712) -DEFINE_GUIDSTRUCT("DFF220F2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_MULTITRACK_RECORDER); -#define KSNODETYPE_MULTITRACK_RECORDER DEFINE_GUIDNAMED(KSNODETYPE_MULTITRACK_RECORDER) - -#define STATIC_KSNODETYPE_SYNTHESIZER\ - DEFINE_USB_TERMINAL_GUID(0x0713) -DEFINE_GUIDSTRUCT("DFF220F3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_SYNTHESIZER); -#define KSNODETYPE_SYNTHESIZER DEFINE_GUIDNAMED(KSNODETYPE_SYNTHESIZER) - -// Microsoft's WDMAUD virtual swsynth pin name guid - -#define STATIC_KSNODETYPE_SWSYNTH\ - 0x423274A0L, 0x8B81, 0x11D1, 0xA0, 0x50, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88 -DEFINE_GUIDSTRUCT("423274A0-8B81-11D1-A050-0000F8004788", KSNODETYPE_SWSYNTH); -#define KSNODETYPE_SWSYNTH DEFINE_GUIDNAMED(KSNODETYPE_SWSYNTH) - -// Microsoft's SWMIDI midi pin and node name guid - -#define STATIC_KSNODETYPE_SWMIDI\ - 0xCB9BEFA0L, 0xA251, 0x11D1, 0xA0, 0x50, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88 -DEFINE_GUIDSTRUCT("CB9BEFA0-A251-11D1-A050-0000F8004788", KSNODETYPE_SWMIDI); -#define KSNODETYPE_SWMIDI DEFINE_GUIDNAMED(KSNODETYPE_SWMIDI) - -#define STATIC_KSNODETYPE_DRM_DESCRAMBLE\ - 0xFFBB6E3FL, 0xCCFE, 0x4D84, 0x90, 0xD9, 0x42, 0x14, 0x18, 0xB0, 0x3A, 0x8E -DEFINE_GUIDSTRUCT("FFBB6E3F-CCFE-4D84-90D9-421418B03A8E", KSNODETYPE_DRM_DESCRAMBLE); -#define KSNODETYPE_DRM_DESCRAMBLE DEFINE_GUIDNAMED(KSNODETYPE_DRM_DESCRAMBLE) - -// General categories -#define STATIC_KSCATEGORY_AUDIO \ - 0x6994AD04L, 0x93EF, 0x11D0, 0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("6994AD04-93EF-11D0-A3CC-00A0C9223196", KSCATEGORY_AUDIO); -#define KSCATEGORY_AUDIO DEFINE_GUIDNAMED(KSCATEGORY_AUDIO) - -#define STATIC_KSCATEGORY_VIDEO \ - 0x6994AD05L, 0x93EF, 0x11D0, 0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("6994AD05-93EF-11D0-A3CC-00A0C9223196", KSCATEGORY_VIDEO); -#define KSCATEGORY_VIDEO DEFINE_GUIDNAMED(KSCATEGORY_VIDEO) - -#define STATIC_KSCATEGORY_TEXT \ - 0x6994AD06L, 0x93EF, 0x11D0, 0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("6994AD06-93EF-11D0-A3CC-00A0C9223196", KSCATEGORY_TEXT); -#define KSCATEGORY_TEXT DEFINE_GUIDNAMED(KSCATEGORY_TEXT) - -#define STATIC_KSCATEGORY_NETWORK \ - 0x67C9CC3CL, 0x69C4, 0x11D2, 0x87, 0x59, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("67C9CC3C-69C4-11D2-8759-00A0C9223196", KSCATEGORY_NETWORK); -#define KSCATEGORY_NETWORK DEFINE_GUIDNAMED(KSCATEGORY_NETWORK) - -#define STATIC_KSCATEGORY_TOPOLOGY \ - 0xDDA54A40L, 0x1E4C, 0x11D1, 0xA0, 0x50, 0x40, 0x57, 0x05, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("DDA54A40-1E4C-11D1-A050-405705C10000", KSCATEGORY_TOPOLOGY); -#define KSCATEGORY_TOPOLOGY DEFINE_GUIDNAMED(KSCATEGORY_TOPOLOGY) - -#define STATIC_KSCATEGORY_VIRTUAL \ - 0x3503EAC4L, 0x1F26, 0x11D1, 0x8A, 0xB0, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("3503EAC4-1F26-11D1-8AB0-00A0C9223196", KSCATEGORY_VIRTUAL); -#define KSCATEGORY_VIRTUAL DEFINE_GUIDNAMED(KSCATEGORY_VIRTUAL) - -#define STATIC_KSCATEGORY_ACOUSTIC_ECHO_CANCEL \ - 0xBF963D80L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("BF963D80-C559-11D0-8A2B-00A0C9255AC1", KSCATEGORY_ACOUSTIC_ECHO_CANCEL); -#define KSCATEGORY_ACOUSTIC_ECHO_CANCEL DEFINE_GUIDNAMED(KSCATEGORY_ACOUSTIC_ECHO_CANCEL) - -#define STATIC_KSCATEGORY_SYSAUDIO \ - 0xA7C7A5B1L, 0x5AF3, 0x11D1, 0x9C, 0xED, 0x00, 0xA0, 0x24, 0xBF, 0x04, 0x07 -DEFINE_GUIDSTRUCT("A7C7A5B1-5AF3-11D1-9CED-00A024BF0407", KSCATEGORY_SYSAUDIO); -#define KSCATEGORY_SYSAUDIO DEFINE_GUIDNAMED(KSCATEGORY_SYSAUDIO) - -#define STATIC_KSCATEGORY_WDMAUD \ - 0x3E227E76L, 0x690D, 0x11D2, 0x81, 0x61, 0x00, 0x00, 0xF8, 0x77, 0x5B, 0xF1 -DEFINE_GUIDSTRUCT("3E227E76-690D-11D2-8161-0000F8775BF1", KSCATEGORY_WDMAUD); -#define KSCATEGORY_WDMAUD DEFINE_GUIDNAMED(KSCATEGORY_WDMAUD) - -#define STATIC_KSCATEGORY_AUDIO_GFX \ - 0x9BAF9572L, 0x340C, 0x11D3, 0xAB, 0xDC, 0x00, 0xA0, 0xC9, 0x0A, 0xB1, 0x6F -DEFINE_GUIDSTRUCT("9BAF9572-340C-11D3-ABDC-00A0C90AB16F", KSCATEGORY_AUDIO_GFX); -#define KSCATEGORY_AUDIO_GFX DEFINE_GUIDNAMED(KSCATEGORY_AUDIO_GFX) - -#define STATIC_KSCATEGORY_AUDIO_SPLITTER \ - 0x9EA331FAL, 0xB91B, 0x45F8, 0x92, 0x85, 0xBD, 0x2B, 0xC7, 0x7A, 0xFC, 0xDE -DEFINE_GUIDSTRUCT("9EA331FA-B91B-45F8-9285-BD2BC77AFCDE", KSCATEGORY_AUDIO_SPLITTER); -#define KSCATEGORY_AUDIO_SPLITTER DEFINE_GUIDNAMED(KSCATEGORY_AUDIO_SPLITTER) - -#define STATIC_KSCATEGORY_SYNTHESIZER STATIC_KSNODETYPE_SYNTHESIZER -#define KSCATEGORY_SYNTHESIZER KSNODETYPE_SYNTHESIZER - -#define STATIC_KSCATEGORY_DRM_DESCRAMBLE STATIC_KSNODETYPE_DRM_DESCRAMBLE -#define KSCATEGORY_DRM_DESCRAMBLE KSNODETYPE_DRM_DESCRAMBLE - -#define STATIC_KSCATEGORY_AUDIO_DEVICE \ - 0xFBF6F530L, 0x07B9, 0x11D2, 0xA7, 0x1E, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88 -DEFINE_GUIDSTRUCT("FBF6F530-07B9-11D2-A71E-0000F8004788", KSCATEGORY_AUDIO_DEVICE); -#define KSCATEGORY_AUDIO_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_AUDIO_DEVICE) - -#define STATIC_KSCATEGORY_PREFERRED_WAVEOUT_DEVICE \ - 0xD6C5066EL, 0x72C1, 0x11D2, 0x97, 0x55, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88 -DEFINE_GUIDSTRUCT("D6C5066E-72C1-11D2-9755-0000F8004788", KSCATEGORY_PREFERRED_WAVEOUT_DEVICE); -#define KSCATEGORY_PREFERRED_WAVEOUT_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_PREFERRED_WAVEOUT_DEVICE) - -#define STATIC_KSCATEGORY_PREFERRED_WAVEIN_DEVICE \ - 0xD6C50671L, 0x72C1, 0x11D2, 0x97, 0x55, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88 -DEFINE_GUIDSTRUCT("D6C50671-72C1-11D2-9755-0000F8004788", KSCATEGORY_PREFERRED_WAVEIN_DEVICE); -#define KSCATEGORY_PREFERRED_WAVEIN_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_PREFERRED_WAVEIN_DEVICE) - -#define STATIC_KSCATEGORY_PREFERRED_MIDIOUT_DEVICE \ - 0xD6C50674L, 0x72C1, 0x11D2, 0x97, 0x55, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88 -DEFINE_GUIDSTRUCT("D6C50674-72C1-11D2-9755-0000F8004788", KSCATEGORY_PREFERRED_MIDIOUT_DEVICE); -#define KSCATEGORY_PREFERRED_MIDIOUT_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_PREFERRED_MIDIOUT_DEVICE) - -// Special pin category for wdmaud - -#define STATIC_KSCATEGORY_WDMAUD_USE_PIN_NAME \ - 0x47A4FA20L, 0xA251, 0x11D1, 0xA0, 0x50, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88 -DEFINE_GUIDSTRUCT("47A4FA20-A251-11D1-A050-0000F8004788", KSCATEGORY_WDMAUD_USE_PIN_NAME); -#define KSCATEGORY_WDMAUD_USE_PIN_NAME DEFINE_GUIDNAMED(KSCATEGORY_WDMAUD_USE_PIN_NAME) - -// Escalante Platform Interface - -#define STATIC_KSCATEGORY_ESCALANTE_PLATFORM_DRIVER \ - 0x74f3aea8L, 0x9768, 0x11d1, 0x8e, 0x07, 0x00, 0xa0, 0xc9, 0x5e, 0xc2, 0x2e -DEFINE_GUIDSTRUCT("74f3aea8-9768-11d1-8e07-00a0c95ec22e", KSCATEGORY_ESCALANTE_PLATFORM_DRIVER); -#define KSCATEGORY_ESCALANTE_PLATFORM_DRIVER DEFINE_GUIDNAMED(KSCATEGORY_ESCALANTE_PLATFORM_DRIVER) - -// -- major types --- - -// 'vids' == MEDIATYPE_Video, -#define STATIC_KSDATAFORMAT_TYPE_VIDEO\ - 0x73646976L, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 -DEFINE_GUIDSTRUCT("73646976-0000-0010-8000-00aa00389b71", KSDATAFORMAT_TYPE_VIDEO); -#define KSDATAFORMAT_TYPE_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_VIDEO) - -// 'auds' == MEDIATYPE_Audio -#define STATIC_KSDATAFORMAT_TYPE_AUDIO\ - 0x73647561L, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 -DEFINE_GUIDSTRUCT("73647561-0000-0010-8000-00aa00389b71", KSDATAFORMAT_TYPE_AUDIO); -#define KSDATAFORMAT_TYPE_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_AUDIO) - -// 'txts' == MEDIATYPE_Text -#define STATIC_KSDATAFORMAT_TYPE_TEXT\ - 0x73747874L, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 -DEFINE_GUIDSTRUCT("73747874-0000-0010-8000-00aa00389b71", KSDATAFORMAT_TYPE_TEXT); -#define KSDATAFORMAT_TYPE_TEXT DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_TEXT) - -#if !defined( DEFINE_WAVEFORMATEX_GUID ) -#define DEFINE_WAVEFORMATEX_GUID(x) (USHORT)(x), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 -#endif - -#define STATIC_KSDATAFORMAT_SUBTYPE_WAVEFORMATEX\ - 0x00000000L, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 -DEFINE_GUIDSTRUCT("00000000-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_WAVEFORMATEX); -#define KSDATAFORMAT_SUBTYPE_WAVEFORMATEX DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_WAVEFORMATEX) - -#define INIT_WAVEFORMATEX_GUID(Guid, x)\ -{\ - *(Guid) = KSDATAFORMAT_SUBTYPE_WAVEFORMATEX;\ - (Guid)->Data1 = (USHORT)(x);\ -} - -#define EXTRACT_WAVEFORMATEX_ID(Guid)\ - (USHORT)((Guid)->Data1) - -#define IS_VALID_WAVEFORMATEX_GUID(Guid)\ - (!memcmp(((PUSHORT)&KSDATAFORMAT_SUBTYPE_WAVEFORMATEX) + 1, ((PUSHORT)(Guid)) + 1, sizeof(GUID) - sizeof(USHORT))) - -#if !defined(INIT_MMREG_MID) -//{d5a47fa7-6d98-11d1-a21a-00a0c9223196} -#define INIT_MMREG_MID(guid, id)\ -{\ - (guid)->Data1 = 0xd5a47fa7 + (USHORT)(id);\ - (guid)->Data2 = 0x6d98;\ - (guid)->Data3 = 0x11d1;\ - (guid)->Data4[0] = 0xa2;\ - (guid)->Data4[1] = 0x1a;\ - (guid)->Data4[2] = 0x00;\ - (guid)->Data4[3] = 0xa0;\ - (guid)->Data4[4] = 0xc9;\ - (guid)->Data4[5] = 0x22;\ - (guid)->Data4[6] = 0x31;\ - (guid)->Data4[7] = 0x96;\ -} -#define EXTRACT_MMREG_MID(guid)\ - (USHORT)((guid)->Data1 - 0xd5a47fa7) -#define DEFINE_MMREG_MID_GUID(id)\ - 0xd5a47fa7+(USHORT)(id), 0x6d98, 0x11d1, 0xa2, 0x1a, 0x00, 0xa0, 0xc9, 0x22, 0x31, 0x96 - -#define IS_COMPATIBLE_MMREG_MID(guid)\ - (((guid)->Data1 >= 0xd5a47fa7) &&\ - ((guid)->Data1 < 0xd5a47fa7 + 0xffff) &&\ - ((guid)->Data2 == 0x6d98) &&\ - ((guid)->Data3 == 0x11d1) &&\ - ((guid)->Data4[0] == 0xa2) &&\ - ((guid)->Data4[1] == 0x1a) &&\ - ((guid)->Data4[2] == 0x00) &&\ - ((guid)->Data4[3] == 0xa0) &&\ - ((guid)->Data4[4] == 0xc9) &&\ - ((guid)->Data4[5] == 0x22) &&\ - ((guid)->Data4[6] == 0x31) &&\ - ((guid)->Data4[7] == 0x96)) -#endif // !defined(INIT_MMREG_MID) - -#if !defined(INIT_MMREG_PID) -//{e36dc2ac-6d9a-11d1-a21a-00a0c9223196} -#define INIT_MMREG_PID(guid, id)\ -{\ - (guid)->Data1 = 0xe36dc2ac + (USHORT)(id);\ - (guid)->Data2 = 0x6d9a;\ - (guid)->Data3 = 0x11d1;\ - (guid)->Data4[0] = 0xa2;\ - (guid)->Data4[1] = 0x1a;\ - (guid)->Data4[2] = 0x00;\ - (guid)->Data4[3] = 0xa0;\ - (guid)->Data4[4] = 0xc9;\ - (guid)->Data4[5] = 0x22;\ - (guid)->Data4[6] = 0x31;\ - (guid)->Data4[7] = 0x96;\ -} -#define EXTRACT_MMREG_PID(guid)\ - (USHORT)((guid)->Data1 - 0xe36dc2ac) -#define DEFINE_MMREG_PID_GUID(id)\ - 0xe36dc2ac+(USHORT)(id), 0x6d9a, 0x11d1, 0xa2, 0x1a, 0x00, 0xa0, 0xc9, 0x22, 0x31, 0x96 - -#define IS_COMPATIBLE_MMREG_PID(guid)\ - (((guid)->Data1 >= 0xe36dc2ac) &&\ - ((guid)->Data1 < 0xe36dc2ac + 0xffff) &&\ - ((guid)->Data2 == 0x6d9a) &&\ - ((guid)->Data3 == 0x11d1) &&\ - ((guid)->Data4[0] == 0xa2) &&\ - ((guid)->Data4[1] == 0x1a) &&\ - ((guid)->Data4[2] == 0x00) &&\ - ((guid)->Data4[3] == 0xa0) &&\ - ((guid)->Data4[4] == 0xc9) &&\ - ((guid)->Data4[5] == 0x22) &&\ - ((guid)->Data4[6] == 0x31) &&\ - ((guid)->Data4[7] == 0x96)) -#endif // !defined(INIT_MMREG_PID) - -#define STATIC_KSDATAFORMAT_SUBTYPE_ANALOG\ - 0x6dba3190L, 0x67bd, 0x11cf, 0xa0, 0xf7, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4 -DEFINE_GUIDSTRUCT("6dba3190-67bd-11cf-a0f7-0020afd156e4", KSDATAFORMAT_SUBTYPE_ANALOG); -#define KSDATAFORMAT_SUBTYPE_ANALOG DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_ANALOG) - -#define STATIC_KSDATAFORMAT_SUBTYPE_PCM\ - DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_PCM) -DEFINE_GUIDSTRUCT("00000001-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_PCM); -#define KSDATAFORMAT_SUBTYPE_PCM DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_PCM) - -#if defined(_INC_MMREG) -#define STATIC_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT\ - DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_IEEE_FLOAT) -DEFINE_GUIDSTRUCT("00000003-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_IEEE_FLOAT); -#define KSDATAFORMAT_SUBTYPE_IEEE_FLOAT DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_IEEE_FLOAT) - -#define STATIC_KSDATAFORMAT_SUBTYPE_DRM\ - DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_DRM) -DEFINE_GUIDSTRUCT("00000009-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_DRM); -#define KSDATAFORMAT_SUBTYPE_DRM DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_DRM) - -#define STATIC_KSDATAFORMAT_SUBTYPE_ALAW\ - DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_ALAW) -DEFINE_GUIDSTRUCT("00000006-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_ALAW); -#define KSDATAFORMAT_SUBTYPE_ALAW DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_ALAW) - -#define STATIC_KSDATAFORMAT_SUBTYPE_MULAW\ - DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_MULAW) -DEFINE_GUIDSTRUCT("00000007-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_MULAW); -#define KSDATAFORMAT_SUBTYPE_MULAW DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MULAW) - -#define STATIC_KSDATAFORMAT_SUBTYPE_ADPCM\ - DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_ADPCM) -DEFINE_GUIDSTRUCT("00000002-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_ADPCM); -#define KSDATAFORMAT_SUBTYPE_ADPCM DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_ADPCM) - -#define STATIC_KSDATAFORMAT_SUBTYPE_MPEG\ - DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_MPEG) -DEFINE_GUIDSTRUCT("00000050-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_MPEG); -#define KSDATAFORMAT_SUBTYPE_MPEG DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MPEG) -#endif // defined(_INC_MMREG) - -#define STATIC_KSDATAFORMAT_SPECIFIER_VC_ID\ - 0xAD98D184L, 0xAAC3, 0x11D0, 0xA4, 0x1C, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("AD98D184-AAC3-11D0-A41C-00A0C9223196", KSDATAFORMAT_SPECIFIER_VC_ID); -#define KSDATAFORMAT_SPECIFIER_VC_ID DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_VC_ID) - -#define STATIC_KSDATAFORMAT_SPECIFIER_WAVEFORMATEX\ - 0x05589f81L, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a -DEFINE_GUIDSTRUCT("05589f81-c356-11ce-bf01-00aa0055595a", KSDATAFORMAT_SPECIFIER_WAVEFORMATEX); -#define KSDATAFORMAT_SPECIFIER_WAVEFORMATEX DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_WAVEFORMATEX) - -#define STATIC_KSDATAFORMAT_SPECIFIER_DSOUND\ - 0x518590a2L, 0xa184, 0x11d0, 0x85, 0x22, 0x00, 0xc0, 0x4f, 0xd9, 0xba, 0xf3 -DEFINE_GUIDSTRUCT("518590a2-a184-11d0-8522-00c04fd9baf3", KSDATAFORMAT_SPECIFIER_DSOUND); -#define KSDATAFORMAT_SPECIFIER_DSOUND DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DSOUND) - -#if defined(_INC_MMSYSTEM) || defined(_INC_MMREG) -#if !defined( PACK_PRAGMAS_NOT_SUPPORTED ) -#include -#endif -typedef struct { - KSDATAFORMAT DataFormat; - WAVEFORMATEX WaveFormatEx; -} KSDATAFORMAT_WAVEFORMATEX, *PKSDATAFORMAT_WAVEFORMATEX; - -#ifndef _WAVEFORMATEXTENSIBLE_ -#define _WAVEFORMATEXTENSIBLE_ -typedef struct { - WAVEFORMATEX Format; - union { - WORD wValidBitsPerSample; /* bits of precision */ - WORD wSamplesPerBlock; /* valid if wBitsPerSample==0 */ - WORD wReserved; /* If neither applies, set to zero. */ - } Samples; - DWORD dwChannelMask; /* which channels are */ - /* present in stream */ - GUID SubFormat; -} WAVEFORMATEXTENSIBLE, *PWAVEFORMATEXTENSIBLE; -#endif // !_WAVEFORMATEXTENSIBLE_ - -#if !defined(WAVE_FORMAT_EXTENSIBLE) -#define WAVE_FORMAT_EXTENSIBLE 0xFFFE -#endif // !defined(WAVE_FORMAT_EXTENSIBLE) - -// DirectSound buffer description -typedef struct { - ULONG Flags; - ULONG Control; - WAVEFORMATEX WaveFormatEx; -} KSDSOUND_BUFFERDESC, *PKSDSOUND_BUFFERDESC; - -// DirectSound format -typedef struct { - KSDATAFORMAT DataFormat; - KSDSOUND_BUFFERDESC BufferDesc; -} KSDATAFORMAT_DSOUND, *PKSDATAFORMAT_DSOUND; - -#if !defined( PACK_PRAGMAS_NOT_SUPPORTED ) -#include -#endif -#endif // defined(_INC_MMSYSTEM) || defined(_INC_MMREG) - - - -// DirectSound buffer flags -#define KSDSOUND_BUFFER_PRIMARY 0x00000001 -#define KSDSOUND_BUFFER_STATIC 0x00000002 -#define KSDSOUND_BUFFER_LOCHARDWARE 0x00000004 -#define KSDSOUND_BUFFER_LOCSOFTWARE 0x00000008 - -// DirectSound buffer control flags -#define KSDSOUND_BUFFER_CTRL_3D 0x00000001 -#define KSDSOUND_BUFFER_CTRL_FREQUENCY 0x00000002 -#define KSDSOUND_BUFFER_CTRL_PAN 0x00000004 -#define KSDSOUND_BUFFER_CTRL_VOLUME 0x00000008 -#define KSDSOUND_BUFFER_CTRL_POSITIONNOTIFY 0x00000010 - -typedef struct { -#if defined(_NTDDK_) - ULONGLONG PlayOffset; - ULONGLONG WriteOffset; -#else // !_NTDDK_ - DWORDLONG PlayOffset; - DWORDLONG WriteOffset; -#endif // !_NTDDK_ -} KSAUDIO_POSITION, *PKSAUDIO_POSITION; - -//=========================================================================== -// DirectSound3D HAL - - -typedef struct _DS3DVECTOR { - union { - FLOAT x; - FLOAT dvX; - }; - union { - FLOAT y; - FLOAT dvY; - }; - union { - FLOAT z; - FLOAT dvZ; - }; -} DS3DVECTOR, *PDS3DVECTOR; - - -//=========================================================================== -//=========================================================================== - -// KSPROPSETID_DirectSound3DListener : {437B3414-D060-11d0-8583-00C04FD9BAF3} - -#define STATIC_KSPROPSETID_DirectSound3DListener\ - 0x437b3414L, 0xd060, 0x11d0, 0x85, 0x83, 0x00, 0xc0, 0x4f, 0xd9, 0xba, 0xf3 -DEFINE_GUIDSTRUCT("437b3414-d060-11d0-8583-00c04fd9baf3",KSPROPSETID_DirectSound3DListener); -#define KSPROPSETID_DirectSound3DListener DEFINE_GUIDNAMED(KSPROPSETID_DirectSound3DListener) - -typedef enum { - KSPROPERTY_DIRECTSOUND3DLISTENER_ALL, - KSPROPERTY_DIRECTSOUND3DLISTENER_POSITION, - KSPROPERTY_DIRECTSOUND3DLISTENER_VELOCITY, - KSPROPERTY_DIRECTSOUND3DLISTENER_ORIENTATION, - KSPROPERTY_DIRECTSOUND3DLISTENER_DISTANCEFACTOR, - KSPROPERTY_DIRECTSOUND3DLISTENER_ROLLOFFFACTOR, - KSPROPERTY_DIRECTSOUND3DLISTENER_DOPPLERFACTOR, - KSPROPERTY_DIRECTSOUND3DLISTENER_BATCH, - KSPROPERTY_DIRECTSOUND3DLISTENER_ALLOCATION -} KSPROPERTY_DIRECTSOUND3DLISTENER; - -typedef struct { - DS3DVECTOR Position; - DS3DVECTOR Velocity; - DS3DVECTOR OrientFront; - DS3DVECTOR OrientTop; - FLOAT DistanceFactor; - FLOAT RolloffFactor; - FLOAT DopplerFactor; -} KSDS3D_LISTENER_ALL, *PKSDS3D_LISTENER_ALL; - -typedef struct { - DS3DVECTOR Front; - DS3DVECTOR Top; -} KSDS3D_LISTENER_ORIENTATION, *PKSDS3D_LISTENER_ORIENTATION; - - -//=========================================================================== -//=========================================================================== -// KSPROPSETID_DirectSound3DBuffer : {437B3411-D060-11d0-8583-00C04FD9BAF3} - -#define STATIC_KSPROPSETID_DirectSound3DBuffer\ - 0x437b3411L, 0xd060, 0x11d0, 0x85, 0x83, 0x00, 0xc0, 0x4f, 0xd9, 0xba, 0xf3 -DEFINE_GUIDSTRUCT("437b3411-d060-11d0-8583-00c04fd9baf3", KSPROPSETID_DirectSound3DBuffer); -#define KSPROPSETID_DirectSound3DBuffer DEFINE_GUIDNAMED(KSPROPSETID_DirectSound3DBuffer) - - -typedef enum { - KSPROPERTY_DIRECTSOUND3DBUFFER_ALL, - KSPROPERTY_DIRECTSOUND3DBUFFER_POSITION, - KSPROPERTY_DIRECTSOUND3DBUFFER_VELOCITY, - KSPROPERTY_DIRECTSOUND3DBUFFER_CONEANGLES, - KSPROPERTY_DIRECTSOUND3DBUFFER_CONEORIENTATION, - KSPROPERTY_DIRECTSOUND3DBUFFER_CONEOUTSIDEVOLUME, - KSPROPERTY_DIRECTSOUND3DBUFFER_MINDISTANCE, - KSPROPERTY_DIRECTSOUND3DBUFFER_MAXDISTANCE, - KSPROPERTY_DIRECTSOUND3DBUFFER_MODE -} KSPROPERTY_DIRECTSOUND3DBUFFER; - - -typedef struct { - DS3DVECTOR Position; - DS3DVECTOR Velocity; - ULONG InsideConeAngle; - ULONG OutsideConeAngle; - DS3DVECTOR ConeOrientation; - LONG ConeOutsideVolume; - FLOAT MinDistance; - FLOAT MaxDistance; - ULONG Mode; -} KSDS3D_BUFFER_ALL, *PKSDS3D_BUFFER_ALL; - -typedef struct { - ULONG InsideConeAngle; - ULONG OutsideConeAngle; -} KSDS3D_BUFFER_CONE_ANGLES, *PKSDS3D_BUFFER_CONE_ANGLES; - -#define KSAUDIO_STEREO_SPEAKER_GEOMETRY_HEADPHONE (-1) -#define KSAUDIO_STEREO_SPEAKER_GEOMETRY_MIN 5 -#define KSAUDIO_STEREO_SPEAKER_GEOMETRY_NARROW 10 -#define KSAUDIO_STEREO_SPEAKER_GEOMETRY_WIDE 20 -#define KSAUDIO_STEREO_SPEAKER_GEOMETRY_MAX 180 - -#define KSDSOUND_3D_MODE_NORMAL 0x00000000 -#define KSDSOUND_3D_MODE_HEADRELATIVE 0x00000001 -#define KSDSOUND_3D_MODE_DISABLE 0x00000002 - -typedef struct { - KSDATARANGE DataRange; - ULONG MaximumChannels; - ULONG MinimumBitsPerSample; - ULONG MaximumBitsPerSample; - ULONG MinimumSampleFrequency; - ULONG MaximumSampleFrequency; -} KSDATARANGE_AUDIO, *PKSDATARANGE_AUDIO; - -//--------------------------------------------------------------------------- - -#define STATIC_KSDATAFORMAT_SUBTYPE_RIFF\ - 0x4995DAEEL, 0x9EE6, 0x11D0, 0xA4, 0x0E, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("4995DAEE-9EE6-11D0-A40E-00A0C9223196", KSDATAFORMAT_SUBTYPE_RIFF); -#define KSDATAFORMAT_SUBTYPE_RIFF DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_RIFF) - -#define STATIC_KSDATAFORMAT_SUBTYPE_RIFFWAVE\ - 0xe436eb8bL, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70 -DEFINE_GUIDSTRUCT("e436eb8b-524f-11ce-9f53-0020af0ba770", KSDATAFORMAT_SUBTYPE_RIFFWAVE); -#define KSDATAFORMAT_SUBTYPE_RIFFWAVE DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_RIFFWAVE) - -//=========================================================================== -//=========================================================================== - -#define STATIC_KSPROPSETID_Bibliographic \ - 0x07BA150EL, 0xE2B1, 0x11D0, 0xAC, 0x17, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("07BA150E-E2B1-11D0-AC17-00A0C9223196", KSPROPSETID_Bibliographic); -#define KSPROPSETID_Bibliographic DEFINE_GUIDNAMED(KSPROPSETID_Bibliographic) - -//Repeatable tags contain all entries within the property, each preceeded by length -typedef enum { - KSPROPERTY_BIBLIOGRAPHIC_LEADER = 'RDL ', - KSPROPERTY_BIBLIOGRAPHIC_LCCN = '010 ', - KSPROPERTY_BIBLIOGRAPHIC_ISBN = '020 ', - KSPROPERTY_BIBLIOGRAPHIC_ISSN = '220 ', - KSPROPERTY_BIBLIOGRAPHIC_CATALOGINGSOURCE = '040 ', - KSPROPERTY_BIBLIOGRAPHIC_MAINPERSONALNAME = '001 ', - KSPROPERTY_BIBLIOGRAPHIC_MAINCORPORATEBODY = '011 ', - KSPROPERTY_BIBLIOGRAPHIC_MAINMEETINGNAME = '111 ', - KSPROPERTY_BIBLIOGRAPHIC_MAINUNIFORMTITLE = '031 ', - KSPROPERTY_BIBLIOGRAPHIC_UNIFORMTITLE = '042 ', - KSPROPERTY_BIBLIOGRAPHIC_TITLESTATEMENT = '542 ', - KSPROPERTY_BIBLIOGRAPHIC_VARYINGFORMTITLE = '642 ', - KSPROPERTY_BIBLIOGRAPHIC_PUBLICATION = '062 ', - KSPROPERTY_BIBLIOGRAPHIC_PHYSICALDESCRIPTION = '003 ', - KSPROPERTY_BIBLIOGRAPHIC_ADDEDENTRYTITLE = '044 ', - KSPROPERTY_BIBLIOGRAPHIC_SERIESSTATEMENT = '094 ', - KSPROPERTY_BIBLIOGRAPHIC_GENERALNOTE = '005 ', - KSPROPERTY_BIBLIOGRAPHIC_BIBLIOGRAPHYNOTE = '405 ', - KSPROPERTY_BIBLIOGRAPHIC_CONTENTSNOTE = '505 ', - KSPROPERTY_BIBLIOGRAPHIC_CREATIONCREDIT = '805 ', - KSPROPERTY_BIBLIOGRAPHIC_CITATION = '015 ', - KSPROPERTY_BIBLIOGRAPHIC_PARTICIPANT = '115 ', - KSPROPERTY_BIBLIOGRAPHIC_SUMMARY = '025 ', - KSPROPERTY_BIBLIOGRAPHIC_TARGETAUDIENCE = '125 ', - KSPROPERTY_BIBLIOGRAPHIC_ADDEDFORMAVAILABLE = '035 ', - KSPROPERTY_BIBLIOGRAPHIC_SYSTEMDETAILS = '835 ', - KSPROPERTY_BIBLIOGRAPHIC_AWARDS = '685 ', - KSPROPERTY_BIBLIOGRAPHIC_ADDEDENTRYPERSONALNAME = '006 ', - KSPROPERTY_BIBLIOGRAPHIC_ADDEDENTRYTOPICALTERM = '056 ', - KSPROPERTY_BIBLIOGRAPHIC_ADDEDENTRYGEOGRAPHIC = '156 ', - KSPROPERTY_BIBLIOGRAPHIC_INDEXTERMGENRE = '556 ', - KSPROPERTY_BIBLIOGRAPHIC_INDEXTERMCURRICULUM = '856 ', - KSPROPERTY_BIBLIOGRAPHIC_ADDEDENTRYUNIFORMTITLE = '037 ', - KSPROPERTY_BIBLIOGRAPHIC_ADDEDENTRYRELATED = '047 ', - KSPROPERTY_BIBLIOGRAPHIC_SERIESSTATEMENTPERSONALNAME = '008 ', - KSPROPERTY_BIBLIOGRAPHIC_SERIESSTATEMENTUNIFORMTITLE = '038 ' -} KSPROPERTY_BIBLIOGRAPHIC; - -#define STATIC_KSPROPSETID_TopologyNode\ - 0x45FFAAA1L, 0x6E1B, 0x11D0, 0xBC, 0xF2, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 -DEFINE_GUIDSTRUCT("45FFAAA1-6E1B-11D0-BCF2-444553540000", KSPROPSETID_TopologyNode); -#define KSPROPSETID_TopologyNode DEFINE_GUIDNAMED(KSPROPSETID_TopologyNode) - -typedef enum { - KSPROPERTY_TOPOLOGYNODE_ENABLE = 1, - KSPROPERTY_TOPOLOGYNODE_RESET -} KSPROPERTY_TOPOLOGYNODE; - -//=========================================================================== - -#if defined(_NTDDK_) -typedef NTSTATUS (CALLBACK *PRTAUDIOGETPOSITION)(IN PFILE_OBJECT PinFileObject, - OUT PUCHAR *ppPlayPosition, - OUT PLONG plOffset); -#endif // defined(_NTDDK_) - -#define STATIC_KSPROPSETID_RtAudio\ - 0xa855a48c, 0x2f78, 0x4729, 0x90, 0x51, 0x19, 0x68, 0x74, 0x6b, 0x9e, 0xef -DEFINE_GUIDSTRUCT("A855A48C-2F78-4729-9051-1968746B9EEF", KSPROPSETID_RtAudio); -#define KSPROPSETID_RtAudio DEFINE_GUIDNAMED(KSPROPSETID_RtAudio) - -typedef enum { - KSPROPERTY_RTAUDIO_GETPOSITIONFUNCTION -} KSPROPERTY_RTAUDIO; - -//=========================================================================== -#define STATIC_KSPROPSETID_DrmAudioStream\ - 0x2f2c8ddd, 0x4198, 0x4fac, 0xba, 0x29, 0x61, 0xbb, 0x5, 0xb7, 0xde, 0x6 -DEFINE_GUIDSTRUCT("2F2C8DDD-4198-4fac-BA29-61BB05B7DE06", KSPROPSETID_DrmAudioStream); -#define KSPROPSETID_DrmAudioStream DEFINE_GUIDNAMED(KSPROPSETID_DrmAudioStream) - -typedef enum { - KSPROPERTY_DRMAUDIOSTREAM_CONTENTID -} KSPROPERTY_DRMAUDIOSTREAM; - -//=========================================================================== -#define STATIC_KSPROPSETID_Audio\ - 0x45FFAAA0L, 0x6E1B, 0x11D0, 0xBC, 0xF2, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 -DEFINE_GUIDSTRUCT("45FFAAA0-6E1B-11D0-BCF2-444553540000", KSPROPSETID_Audio); -#define KSPROPSETID_Audio DEFINE_GUIDNAMED(KSPROPSETID_Audio) - -typedef enum { - KSPROPERTY_AUDIO_LATENCY = 1, - KSPROPERTY_AUDIO_COPY_PROTECTION, - KSPROPERTY_AUDIO_CHANNEL_CONFIG, - KSPROPERTY_AUDIO_VOLUMELEVEL, - KSPROPERTY_AUDIO_POSITION, - KSPROPERTY_AUDIO_DYNAMIC_RANGE, - KSPROPERTY_AUDIO_QUALITY, - KSPROPERTY_AUDIO_SAMPLING_RATE, - KSPROPERTY_AUDIO_DYNAMIC_SAMPLING_RATE, - KSPROPERTY_AUDIO_MIX_LEVEL_TABLE, - KSPROPERTY_AUDIO_MIX_LEVEL_CAPS, - KSPROPERTY_AUDIO_MUX_SOURCE, - KSPROPERTY_AUDIO_MUTE, - KSPROPERTY_AUDIO_BASS, - KSPROPERTY_AUDIO_MID, - KSPROPERTY_AUDIO_TREBLE, - KSPROPERTY_AUDIO_BASS_BOOST, - KSPROPERTY_AUDIO_EQ_LEVEL, - KSPROPERTY_AUDIO_NUM_EQ_BANDS, - KSPROPERTY_AUDIO_EQ_BANDS, - KSPROPERTY_AUDIO_AGC, - KSPROPERTY_AUDIO_DELAY, - KSPROPERTY_AUDIO_LOUDNESS, - KSPROPERTY_AUDIO_WIDE_MODE, - KSPROPERTY_AUDIO_WIDENESS, - KSPROPERTY_AUDIO_REVERB_LEVEL, - KSPROPERTY_AUDIO_CHORUS_LEVEL, - KSPROPERTY_AUDIO_DEV_SPECIFIC, - KSPROPERTY_AUDIO_DEMUX_DEST, - KSPROPERTY_AUDIO_STEREO_ENHANCE, - KSPROPERTY_AUDIO_MANUFACTURE_GUID, - KSPROPERTY_AUDIO_PRODUCT_GUID, - KSPROPERTY_AUDIO_CPU_RESOURCES, - KSPROPERTY_AUDIO_STEREO_SPEAKER_GEOMETRY, - KSPROPERTY_AUDIO_SURROUND_ENCODE, - KSPROPERTY_AUDIO_3D_INTERFACE, - KSPROPERTY_AUDIO_PEAKMETER, - KSPROPERTY_AUDIO_ALGORITHM_INSTANCE, - KSPROPERTY_AUDIO_FILTER_STATE, - KSPROPERTY_AUDIO_PREFERRED_STATUS -} KSPROPERTY_AUDIO; - -// Audio quality constants -#define KSAUDIO_QUALITY_WORST 0x0 -#define KSAUDIO_QUALITY_PC 0x1 -#define KSAUDIO_QUALITY_BASIC 0x2 -#define KSAUDIO_QUALITY_ADVANCED 0x3 - -// Audio CPU resource constants -#define KSAUDIO_CPU_RESOURCES_NOT_HOST_CPU 0x00000000 -#define KSAUDIO_CPU_RESOURCES_HOST_CPU 0x7FFFFFFF - -typedef struct { - BOOL fCopyrighted; - BOOL fOriginal; -} KSAUDIO_COPY_PROTECTION, *PKSAUDIO_COPY_PROTECTION; - -typedef struct { - LONG ActiveSpeakerPositions; -} KSAUDIO_CHANNEL_CONFIG, *PKSAUDIO_CHANNEL_CONFIG; - -// Speaker Positions: -#define SPEAKER_FRONT_LEFT 0x1 -#define SPEAKER_FRONT_RIGHT 0x2 -#define SPEAKER_FRONT_CENTER 0x4 -#define SPEAKER_LOW_FREQUENCY 0x8 -#define SPEAKER_BACK_LEFT 0x10 -#define SPEAKER_BACK_RIGHT 0x20 -#define SPEAKER_FRONT_LEFT_OF_CENTER 0x40 -#define SPEAKER_FRONT_RIGHT_OF_CENTER 0x80 -#define SPEAKER_BACK_CENTER 0x100 -#define SPEAKER_SIDE_LEFT 0x200 -#define SPEAKER_SIDE_RIGHT 0x400 -#define SPEAKER_TOP_CENTER 0x800 -#define SPEAKER_TOP_FRONT_LEFT 0x1000 -#define SPEAKER_TOP_FRONT_CENTER 0x2000 -#define SPEAKER_TOP_FRONT_RIGHT 0x4000 -#define SPEAKER_TOP_BACK_LEFT 0x8000 -#define SPEAKER_TOP_BACK_CENTER 0x10000 -#define SPEAKER_TOP_BACK_RIGHT 0x20000 - -// Bit mask locations reserved for future use -#define SPEAKER_RESERVED 0x7FFC0000 - -// Used to specify that any possible permutation of speaker configurations -#define SPEAKER_ALL 0x80000000 - -// DirectSound Speaker Config -#define KSAUDIO_SPEAKER_DIRECTOUT 0 -#define KSAUDIO_SPEAKER_MONO (SPEAKER_FRONT_CENTER) -#define KSAUDIO_SPEAKER_STEREO (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT) -#define KSAUDIO_SPEAKER_QUAD (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \ - SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT) -#define KSAUDIO_SPEAKER_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \ - SPEAKER_FRONT_CENTER | SPEAKER_BACK_CENTER) -#define KSAUDIO_SPEAKER_5POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \ - SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | \ - SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT) -#define KSAUDIO_SPEAKER_7POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \ - SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | \ - SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | \ - SPEAKER_FRONT_LEFT_OF_CENTER | SPEAKER_FRONT_RIGHT_OF_CENTER) -#define KSAUDIO_SPEAKER_5POINT1_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \ - SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | \ - SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT) -#define KSAUDIO_SPEAKER_7POINT1_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \ - SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | \ - SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | \ - SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT) -// The following are obsolete 5.1 and 7.1 settings (they lack side speakers). Note this means -// that the default 5.1 and 7.1 settings (KSAUDIO_SPEAKER_5POINT1 and KSAUDIO_SPEAKER_7POINT1 are -// similarly obsolete but are unchanged for compatibility reasons). -#define KSAUDIO_SPEAKER_5POINT1_BACK KSAUDIO_SPEAKER_5POINT1 -#define KSAUDIO_SPEAKER_7POINT1_WIDE KSAUDIO_SPEAKER_7POINT1 - -// DVD Speaker Positions -#define KSAUDIO_SPEAKER_GROUND_FRONT_LEFT SPEAKER_FRONT_LEFT -#define KSAUDIO_SPEAKER_GROUND_FRONT_CENTER SPEAKER_FRONT_CENTER -#define KSAUDIO_SPEAKER_GROUND_FRONT_RIGHT SPEAKER_FRONT_RIGHT -#define KSAUDIO_SPEAKER_GROUND_REAR_LEFT SPEAKER_BACK_LEFT -#define KSAUDIO_SPEAKER_GROUND_REAR_RIGHT SPEAKER_BACK_RIGHT -#define KSAUDIO_SPEAKER_TOP_MIDDLE SPEAKER_TOP_CENTER -#define KSAUDIO_SPEAKER_SUPER_WOOFER SPEAKER_LOW_FREQUENCY - -typedef struct { - ULONG QuietCompression; - ULONG LoudCompression; -} KSAUDIO_DYNAMIC_RANGE, *PKSAUDIO_DYNAMIC_RANGE; - -typedef struct { - BOOL Mute; - LONG Level; -} KSAUDIO_MIXLEVEL, *PKSAUDIO_MIXLEVEL; - -typedef struct { - BOOL Mute; - LONG Minimum; - LONG Maximum; - LONG Reset; -} KSAUDIO_MIX_CAPS, *PKSAUDIO_MIX_CAPS; - -typedef struct { - ULONG InputChannels; - ULONG OutputChannels; - KSAUDIO_MIX_CAPS Capabilities[1]; -} KSAUDIO_MIXCAP_TABLE, *PKSAUDIO_MIXCAP_TABLE; - -typedef enum { - SE_TECH_NONE, - SE_TECH_ANALOG_DEVICES_PHAT, - SE_TECH_CREATIVE, - SE_TECH_NATIONAL_SEMI, - SE_TECH_YAMAHA_YMERSION, - SE_TECH_BBE, - SE_TECH_CRYSTAL_SEMI, - SE_TECH_QSOUND_QXPANDER, - SE_TECH_SPATIALIZER, - SE_TECH_SRS, - SE_TECH_PLATFORM_TECH, - SE_TECH_AKM, - SE_TECH_AUREAL, - SE_TECH_AZTECH, - SE_TECH_BINAURA, - SE_TECH_ESS_TECH, - SE_TECH_HARMAN_VMAX, - SE_TECH_NVIDEA, - SE_TECH_PHILIPS_INCREDIBLE, - SE_TECH_TEXAS_INST, - SE_TECH_VLSI_TECH -} SE_TECHNIQUE; - -typedef struct { - SE_TECHNIQUE Technique; - ULONG Center; - ULONG Depth; - ULONG Reserved; -} KSAUDIO_STEREO_ENHANCE, *PKSAUDIO_STEREO_ENHANCE; - -typedef enum { // preferred device index - KSPROPERTY_SYSAUDIO_NORMAL_DEFAULT = 0, - KSPROPERTY_SYSAUDIO_PLAYBACK_DEFAULT, - KSPROPERTY_SYSAUDIO_RECORD_DEFAULT, - KSPROPERTY_SYSAUDIO_MIDI_DEFAULT, - KSPROPERTY_SYSAUDIO_MIXER_DEFAULT -} KSPROPERTY_SYSAUDIO_DEFAULT_TYPE; - -typedef struct { - BOOL Enable; - KSPROPERTY_SYSAUDIO_DEFAULT_TYPE DeviceType; - ULONG Flags; - ULONG Reserved; -} KSAUDIO_PREFERRED_STATUS, *PKSAUDIO_PREFERRED_STATUS; -//=========================================================================== -// Topology Node Type GUIDs - -#define STATIC_KSNODETYPE_DAC\ - 0x507AE360L, 0xC554, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("507AE360-C554-11D0-8A2B-00A0C9255AC1", KSNODETYPE_DAC); -#define KSNODETYPE_DAC DEFINE_GUIDNAMED(KSNODETYPE_DAC) - -#define STATIC_KSNODETYPE_ADC\ - 0x4D837FE0L, 0xC555, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("4D837FE0-C555-11D0-8A2B-00A0C9255AC1", KSNODETYPE_ADC); -#define KSNODETYPE_ADC DEFINE_GUIDNAMED(KSNODETYPE_ADC) - -#define STATIC_KSNODETYPE_SRC\ - 0x9DB7B9E0L, 0xC555, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("9DB7B9E0-C555-11D0-8A2B-00A0C9255AC1", KSNODETYPE_SRC); -#define KSNODETYPE_SRC DEFINE_GUIDNAMED(KSNODETYPE_SRC) - -#define STATIC_KSNODETYPE_SUPERMIX\ - 0xE573ADC0L, 0xC555, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("E573ADC0-C555-11D0-8A2B-00A0C9255AC1", KSNODETYPE_SUPERMIX); -#define KSNODETYPE_SUPERMIX DEFINE_GUIDNAMED(KSNODETYPE_SUPERMIX) - -#define STATIC_KSNODETYPE_MUX\ - 0x2CEAF780L, 0xC556, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("2CEAF780-C556-11D0-8A2B-00A0C9255AC1", KSNODETYPE_MUX); -#define KSNODETYPE_MUX DEFINE_GUIDNAMED(KSNODETYPE_MUX) - -#define STATIC_KSNODETYPE_DEMUX\ - 0xC0EB67D4L, 0xE807, 0x11D0, 0x95, 0x8A, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("C0EB67D4-E807-11D0-958A-00C04FB925D3", KSNODETYPE_DEMUX); -#define KSNODETYPE_DEMUX DEFINE_GUIDNAMED(KSNODETYPE_DEMUX) - -#define STATIC_KSNODETYPE_SUM\ - 0xDA441A60L, 0xC556, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("DA441A60-C556-11D0-8A2B-00A0C9255AC1", KSNODETYPE_SUM); -#define KSNODETYPE_SUM DEFINE_GUIDNAMED(KSNODETYPE_SUM) - -#define STATIC_KSNODETYPE_MUTE\ - 0x02B223C0L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("02B223C0-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_MUTE); -#define KSNODETYPE_MUTE DEFINE_GUIDNAMED(KSNODETYPE_MUTE) - -#define STATIC_KSNODETYPE_VOLUME\ - 0x3A5ACC00L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("3A5ACC00-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_VOLUME); -#define KSNODETYPE_VOLUME DEFINE_GUIDNAMED(KSNODETYPE_VOLUME) - -#define STATIC_KSNODETYPE_TONE\ - 0x7607E580L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("7607E580-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_TONE); -#define KSNODETYPE_TONE DEFINE_GUIDNAMED(KSNODETYPE_TONE) - -#define STATIC_KSNODETYPE_EQUALIZER\ - 0x9D41B4A0L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("9D41B4A0-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_EQUALIZER); -#define KSNODETYPE_EQUALIZER DEFINE_GUIDNAMED(KSNODETYPE_EQUALIZER) - -#define STATIC_KSNODETYPE_AGC\ - 0xE88C9BA0L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("E88C9BA0-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_AGC); -#define KSNODETYPE_AGC DEFINE_GUIDNAMED(KSNODETYPE_AGC) - -#define STATIC_KSNODETYPE_NOISE_SUPPRESS\ - 0xe07f903f, 0x62fd, 0x4e60, 0x8c, 0xdd, 0xde, 0xa7, 0x23, 0x66, 0x65, 0xb5 -DEFINE_GUIDSTRUCT("E07F903F-62FD-4e60-8CDD-DEA7236665B5", KSNODETYPE_NOISE_SUPPRESS); -#define KSNODETYPE_NOISE_SUPPRESS DEFINE_GUIDNAMED(KSNODETYPE_NOISE_SUPPRESS) - -#define STATIC_KSNODETYPE_DELAY\ - 0x144981E0L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("144981E0-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_DELAY); -#define KSNODETYPE_DELAY DEFINE_GUIDNAMED(KSNODETYPE_DELAY) - -#define STATIC_KSNODETYPE_LOUDNESS\ - 0x41887440L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("41887440-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_LOUDNESS); -#define KSNODETYPE_LOUDNESS DEFINE_GUIDNAMED(KSNODETYPE_LOUDNESS) - -#define STATIC_KSNODETYPE_PROLOGIC_DECODER\ - 0x831C2C80L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("831C2C80-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_PROLOGIC_DECODER); -#define KSNODETYPE_PROLOGIC_DECODER DEFINE_GUIDNAMED(KSNODETYPE_PROLOGIC_DECODER) - -#define STATIC_KSNODETYPE_STEREO_WIDE\ - 0xA9E69800L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("A9E69800-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_STEREO_WIDE); -#define KSNODETYPE_STEREO_WIDE DEFINE_GUIDNAMED(KSNODETYPE_STEREO_WIDE) - -#define STATIC_KSNODETYPE_STEREO_ENHANCE\ - 0xAF6878ACL, 0xE83F, 0x11D0, 0x95, 0x8A, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("AF6878AC-E83F-11D0-958A-00C04FB925D3", KSNODETYPE_STEREO_ENHANCE); -#define KSNODETYPE_STEREO_ENHANCE DEFINE_GUIDNAMED(KSNODETYPE_STEREO_ENHANCE) - -#define STATIC_KSNODETYPE_REVERB\ - 0xEF0328E0L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("EF0328E0-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_REVERB); -#define KSNODETYPE_REVERB DEFINE_GUIDNAMED(KSNODETYPE_REVERB) - -#define STATIC_KSNODETYPE_CHORUS\ - 0x20173F20L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("20173F20-C559-11D0-8A2B-00A0C9255AC1", KSNODETYPE_CHORUS); -#define KSNODETYPE_CHORUS DEFINE_GUIDNAMED(KSNODETYPE_CHORUS) - -#define STATIC_KSNODETYPE_3D_EFFECTS\ - 0x55515860L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("55515860-C559-11D0-8A2B-00A0C9255AC1", KSNODETYPE_3D_EFFECTS); -#define KSNODETYPE_3D_EFFECTS DEFINE_GUIDNAMED(KSNODETYPE_3D_EFFECTS) - -#define STATIC_KSNODETYPE_ACOUSTIC_ECHO_CANCEL STATIC_KSCATEGORY_ACOUSTIC_ECHO_CANCEL -#define KSNODETYPE_ACOUSTIC_ECHO_CANCEL KSCATEGORY_ACOUSTIC_ECHO_CANCEL - -#define STATIC_KSALGORITHMINSTANCE_SYSTEM_ACOUSTIC_ECHO_CANCEL\ - 0x1c22c56dL, 0x9879, 0x4f5b, 0xa3, 0x89, 0x27, 0x99, 0x6d, 0xdc, 0x28, 0x10 -DEFINE_GUIDSTRUCT("1C22C56D-9879-4f5b-A389-27996DDC2810", KSALGORITHMINSTANCE_SYSTEM_ACOUSTIC_ECHO_CANCEL); -#define KSALGORITHMINSTANCE_SYSTEM_ACOUSTIC_ECHO_CANCEL DEFINE_GUIDNAMED(KSALGORITHMINSTANCE_SYSTEM_ACOUSTIC_ECHO_CANCEL) - -#define STATIC_KSALGORITHMINSTANCE_SYSTEM_NOISE_SUPPRESS\ - 0x5ab0882eL, 0x7274, 0x4516, 0x87, 0x7d, 0x4e, 0xee, 0x99, 0xba, 0x4f, 0xd0 -DEFINE_GUIDSTRUCT("5AB0882E-7274-4516-877D-4EEE99BA4FD0", KSALGORITHMINSTANCE_SYSTEM_NOISE_SUPPRESS); -#define KSALGORITHMINSTANCE_SYSTEM_NOISE_SUPPRESS DEFINE_GUIDNAMED(KSALGORITHMINSTANCE_SYSTEM_NOISE_SUPPRESS) - -#define STATIC_KSALGORITHMINSTANCE_SYSTEM_AGC\ - 0x950e55b9L, 0x877c, 0x4c67, 0xbe, 0x8, 0xe4, 0x7b, 0x56, 0x11, 0x13, 0xa -DEFINE_GUIDSTRUCT("950E55B9-877C-4c67-BE08-E47B5611130A", KSALGORITHMINSTANCE_SYSTEM_AGC); -#define KSALGORITHMINSTANCE_SYSTEM_AGC DEFINE_GUIDNAMED(KSALGORITHMINSTANCE_SYSTEM_AGC) - -#define STATIC_KSALGORITHMINSTANCE_SYSTEM_MICROPHONE_ARRAY_PROCESSOR\ - 0xB6F5A0A0L, 0x9E61, 0x4F8C, 0x91, 0xE3, 0x76, 0xCF, 0xF, 0x3C, 0x47, 0x1F -DEFINE_GUIDSTRUCT("B6F5A0A0-9E61-4f8c-91E3-76CF0F3C471F", KSALGORITHMINSTANCE_SYSTEM_MICROPHONE_ARRAY_PROCESSOR); -#define KSALGORITHMINSTANCE_SYSTEM_MICROPHONE_ARRAY_PROCESSOR DEFINE_GUIDNAMED(KSALGORITHMINSTANCE_SYSTEM_MICROPHONE_ARRAY_PROCESSOR) - - -#define STATIC_KSNODETYPE_MICROPHONE_ARRAY_PROCESSOR STATIC_KSCATEGORY_MICROPHONE_ARRAY_PROCESSOR -#define KSNODETYPE_MICROPHONE_ARRAY_PROCESSOR KSCATEGORY_MICROPHONE_ARRAY_PROCESSOR - -#define STATIC_KSNODETYPE_DEV_SPECIFIC\ - 0x941C7AC0L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1 -DEFINE_GUIDSTRUCT("941C7AC0-C559-11D0-8A2B-00A0C9255AC1", KSNODETYPE_DEV_SPECIFIC); -#define KSNODETYPE_DEV_SPECIFIC DEFINE_GUIDNAMED(KSNODETYPE_DEV_SPECIFIC) - -#define STATIC_KSNODETYPE_PROLOGIC_ENCODER\ - 0x8074C5B2L, 0x3C66, 0x11D2, 0xB4, 0x5A, 0x30, 0x78, 0x30, 0x2C, 0x20, 0x30 -DEFINE_GUIDSTRUCT("8074C5B2-3C66-11D2-B45A-3078302C2030", KSNODETYPE_PROLOGIC_ENCODER); -#define KSNODETYPE_PROLOGIC_ENCODER DEFINE_GUIDNAMED(KSNODETYPE_PROLOGIC_ENCODER) -#define KSNODETYPE_SURROUND_ENCODER KSNODETYPE_PROLOGIC_ENCODER - -#define STATIC_KSNODETYPE_PEAKMETER\ - 0xa085651eL, 0x5f0d, 0x4b36, 0xa8, 0x69, 0xd1, 0x95, 0xd6, 0xab, 0x4b, 0x9e -DEFINE_GUIDSTRUCT("A085651E-5F0D-4b36-A869-D195D6AB4B9E", KSNODETYPE_PEAKMETER); -#define KSNODETYPE_PEAKMETER DEFINE_GUIDNAMED(KSNODETYPE_PEAKMETER) - -//=========================================================================== -// Topology Node Name GUIDs for common audio nodes -#define STATIC_KSAUDFNAME_BASS\ - 0x185FEDE0L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDE0-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_BASS); -#define KSAUDFNAME_BASS DEFINE_GUIDNAMED(KSAUDFNAME_BASS) - -#define STATIC_KSAUDFNAME_TREBLE\ - 0x185FEDE1L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDE1-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_TREBLE); -#define KSAUDFNAME_TREBLE DEFINE_GUIDNAMED(KSAUDFNAME_TREBLE) - -#define STATIC_KSAUDFNAME_3D_STEREO\ - 0x185FEDE2L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDE2-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_3D_STEREO); -#define KSAUDFNAME_3D_STEREO DEFINE_GUIDNAMED(KSAUDFNAME_3D_STEREO) - -#define STATIC_KSAUDFNAME_MASTER_VOLUME\ - 0x185FEDE3L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDE3-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MASTER_VOLUME); -#define KSAUDFNAME_MASTER_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MASTER_VOLUME) - -#define STATIC_KSAUDFNAME_MASTER_MUTE\ - 0x185FEDE4L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDE4-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MASTER_MUTE); -#define KSAUDFNAME_MASTER_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_MASTER_MUTE) - -#define STATIC_KSAUDFNAME_WAVE_VOLUME\ - 0x185FEDE5L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDE5-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_WAVE_VOLUME); -#define KSAUDFNAME_WAVE_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_WAVE_VOLUME) - -#define STATIC_KSAUDFNAME_WAVE_MUTE\ - 0x185FEDE6L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDE6-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_WAVE_MUTE); -#define KSAUDFNAME_WAVE_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_WAVE_MUTE) - -#define STATIC_KSAUDFNAME_MIDI_VOLUME\ - 0x185FEDE7L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDE7-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIDI_VOLUME); -#define KSAUDFNAME_MIDI_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MIDI_VOLUME) - -#define STATIC_KSAUDFNAME_MIDI_MUTE\ - 0x185FEDE8L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDE8-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIDI_MUTE); -#define KSAUDFNAME_MIDI_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_MIDI_MUTE) - -#define STATIC_KSAUDFNAME_CD_VOLUME\ - 0x185FEDE9L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDE9-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_CD_VOLUME); -#define KSAUDFNAME_CD_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_CD_VOLUME) - -#define STATIC_KSAUDFNAME_CD_MUTE\ - 0x185FEDEAL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDEA-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_CD_MUTE); -#define KSAUDFNAME_CD_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_CD_MUTE) - -#define STATIC_KSAUDFNAME_LINE_VOLUME\ - 0x185FEDEBL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDEB-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_LINE_VOLUME); -#define KSAUDFNAME_LINE_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_LINE_VOLUME) - -#define STATIC_KSAUDFNAME_LINE_MUTE\ - 0x185FEDECL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDEC-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_LINE_MUTE); -#define KSAUDFNAME_LINE_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_LINE_MUTE) - -#define STATIC_KSAUDFNAME_MIC_VOLUME\ - 0x185FEDEDL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDED-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIC_VOLUME); -#define KSAUDFNAME_MIC_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MIC_VOLUME) - -#define STATIC_KSAUDFNAME_MIC_MUTE\ - 0x185FEDEEL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDEE-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIC_MUTE); -#define KSAUDFNAME_MIC_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_MIC_MUTE) - -#define STATIC_KSAUDFNAME_RECORDING_SOURCE\ - 0x185FEDEFL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDEF-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_RECORDING_SOURCE); -#define KSAUDFNAME_RECORDING_SOURCE DEFINE_GUIDNAMED(KSAUDFNAME_RECORDING_SOURCE) - -#define STATIC_KSAUDFNAME_PC_SPEAKER_VOLUME\ - 0x185FEDF0L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDF0-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_PC_SPEAKER_VOLUME); -#define KSAUDFNAME_PC_SPEAKER_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_PC_SPEAKER_VOLUME) - -#define STATIC_KSAUDFNAME_PC_SPEAKER_MUTE\ - 0x185FEDF1L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDF1-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_PC_SPEAKER_MUTE); -#define KSAUDFNAME_PC_SPEAKER_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_PC_SPEAKER_MUTE) - -#define STATIC_KSAUDFNAME_MIDI_IN_VOLUME\ - 0x185FEDF2L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDF2-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIDI_IN_VOLUME); -#define KSAUDFNAME_MIDI_IN_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MIDI_IN_VOLUME) - -#define STATIC_KSAUDFNAME_CD_IN_VOLUME\ - 0x185FEDF3L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDF3-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_CD_IN_VOLUME); -#define KSAUDFNAME_CD_IN_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_CD_IN_VOLUME) - -#define STATIC_KSAUDFNAME_LINE_IN_VOLUME\ - 0x185FEDF4L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDF4-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_LINE_IN_VOLUME); -#define KSAUDFNAME_LINE_IN_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_LINE_IN_VOLUME) - -#define STATIC_KSAUDFNAME_MIC_IN_VOLUME\ - 0x185FEDF5L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDF5-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIC_IN_VOLUME); -#define KSAUDFNAME_MIC_IN_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MIC_IN_VOLUME) - -#define STATIC_KSAUDFNAME_WAVE_IN_VOLUME\ - 0x185FEDF6L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDF6-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_WAVE_IN_VOLUME); -#define KSAUDFNAME_WAVE_IN_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_WAVE_IN_VOLUME) - -#define STATIC_KSAUDFNAME_VOLUME_CONTROL\ - 0x185FEDF7L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDF7-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_VOLUME_CONTROL); -#define KSAUDFNAME_VOLUME_CONTROL DEFINE_GUIDNAMED(KSAUDFNAME_VOLUME_CONTROL) - -#define STATIC_KSAUDFNAME_MIDI\ - 0x185FEDF8L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDF8-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIDI); -#define KSAUDFNAME_MIDI DEFINE_GUIDNAMED(KSAUDFNAME_MIDI) - -#define STATIC_KSAUDFNAME_LINE_IN\ - 0x185FEDF9L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDF9-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_LINE_IN); -#define KSAUDFNAME_LINE_IN DEFINE_GUIDNAMED(KSAUDFNAME_LINE_IN) - -#define STATIC_KSAUDFNAME_RECORDING_CONTROL\ - 0x185FEDFAL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDFA-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_RECORDING_CONTROL); -#define KSAUDFNAME_RECORDING_CONTROL DEFINE_GUIDNAMED(KSAUDFNAME_RECORDING_CONTROL) - -#define STATIC_KSAUDFNAME_CD_AUDIO\ - 0x185FEDFBL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDFB-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_CD_AUDIO); -#define KSAUDFNAME_CD_AUDIO DEFINE_GUIDNAMED(KSAUDFNAME_CD_AUDIO) - -#define STATIC_KSAUDFNAME_AUX_VOLUME\ - 0x185FEDFCL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDFC-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_AUX_VOLUME); -#define KSAUDFNAME_AUX_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_AUX_VOLUME) - -#define STATIC_KSAUDFNAME_AUX_MUTE\ - 0x185FEDFDL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDFD-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_AUX_MUTE); -#define KSAUDFNAME_AUX_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_AUX_MUTE) - -#define STATIC_KSAUDFNAME_AUX\ - 0x185FEDFEL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDFE-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_AUX); -#define KSAUDFNAME_AUX DEFINE_GUIDNAMED(KSAUDFNAME_AUX) - -#define STATIC_KSAUDFNAME_PC_SPEAKER\ - 0x185FEDFFL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEDFF-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_PC_SPEAKER); -#define KSAUDFNAME_PC_SPEAKER DEFINE_GUIDNAMED(KSAUDFNAME_PC_SPEAKER) - -#define STATIC_KSAUDFNAME_WAVE_OUT_MIX\ - 0x185FEE00L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("185FEE00-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_WAVE_OUT_MIX); -#define KSAUDFNAME_WAVE_OUT_MIX DEFINE_GUIDNAMED(KSAUDFNAME_WAVE_OUT_MIX) - -#define STATIC_KSAUDFNAME_MONO_OUT\ - 0xf9b41dc3L, 0x96e2, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("F9B41DC3-96E2-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MONO_OUT); -#define KSAUDFNAME_MONO_OUT DEFINE_GUIDNAMED(KSAUDFNAME_MONO_OUT) - -#define STATIC_KSAUDFNAME_STEREO_MIX\ - 0xdff077L, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("00DFF077-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_STEREO_MIX); -#define KSAUDFNAME_STEREO_MIX DEFINE_GUIDNAMED(KSAUDFNAME_STEREO_MIX) - -#define STATIC_KSAUDFNAME_MONO_MIX\ - 0xdff078L, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("00DFF078-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MONO_MIX); -#define KSAUDFNAME_MONO_MIX DEFINE_GUIDNAMED(KSAUDFNAME_MONO_MIX) - -#define STATIC_KSAUDFNAME_MONO_OUT_VOLUME\ - 0x1ad247ebL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("1AD247EB-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MONO_OUT_VOLUME); -#define KSAUDFNAME_MONO_OUT_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MONO_OUT_VOLUME) - -#define STATIC_KSAUDFNAME_MONO_OUT_MUTE\ - 0x1ad247ecL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("1AD247EC-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MONO_OUT_MUTE); -#define KSAUDFNAME_MONO_OUT_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_MONO_OUT_MUTE) - -#define STATIC_KSAUDFNAME_STEREO_MIX_VOLUME\ - 0x1ad247edL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("1AD247ED-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_STEREO_MIX_VOLUME); -#define KSAUDFNAME_STEREO_MIX_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_STEREO_MIX_VOLUME) - -#define STATIC_KSAUDFNAME_STEREO_MIX_MUTE\ - 0x22b0eafdL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("22B0EAFD-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_STEREO_MIX_MUTE); -#define KSAUDFNAME_STEREO_MIX_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_STEREO_MIX_MUTE) - -#define STATIC_KSAUDFNAME_MONO_MIX_VOLUME\ - 0x22b0eafeL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("22B0EAFE-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MONO_MIX_VOLUME); -#define KSAUDFNAME_MONO_MIX_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MONO_MIX_VOLUME) - -#define STATIC_KSAUDFNAME_MONO_MIX_MUTE\ - 0x2bc31d69L, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("2BC31D69-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MONO_MIX_MUTE); -#define KSAUDFNAME_MONO_MIX_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_MONO_MIX_MUTE) - -#define STATIC_KSAUDFNAME_MICROPHONE_BOOST\ - 0x2bc31d6aL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("2BC31D6A-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MICROPHONE_BOOST); -#define KSAUDFNAME_MICROPHONE_BOOST DEFINE_GUIDNAMED(KSAUDFNAME_MICROPHONE_BOOST) - -#define STATIC_KSAUDFNAME_ALTERNATE_MICROPHONE\ - 0x2bc31d6bL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("2BC31D6B-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_ALTERNATE_MICROPHONE); -#define KSAUDFNAME_ALTERNATE_MICROPHONE DEFINE_GUIDNAMED(KSAUDFNAME_ALTERNATE_MICROPHONE) - -#define STATIC_KSAUDFNAME_3D_DEPTH\ - 0x63ff5747L, 0x991f, 0x11d2, 0xac, 0x4d, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("63FF5747-991F-11d2-AC4D-00C04F8EFB68", KSAUDFNAME_3D_DEPTH); -#define KSAUDFNAME_3D_DEPTH DEFINE_GUIDNAMED(KSAUDFNAME_3D_DEPTH) - -#define STATIC_KSAUDFNAME_3D_CENTER\ - 0x9f0670b4L, 0x991f, 0x11d2, 0xac, 0x4d, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("9F0670B4-991F-11d2-AC4D-00C04F8EFB68", KSAUDFNAME_3D_CENTER); -#define KSAUDFNAME_3D_CENTER DEFINE_GUIDNAMED(KSAUDFNAME_3D_CENTER) - -#define STATIC_KSAUDFNAME_VIDEO_VOLUME\ - 0x9b46e708L, 0x992a, 0x11d2, 0xac, 0x4d, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("9B46E708-992A-11d2-AC4D-00C04F8EFB68", KSAUDFNAME_VIDEO_VOLUME); -#define KSAUDFNAME_VIDEO_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_VIDEO_VOLUME) - -#define STATIC_KSAUDFNAME_VIDEO_MUTE\ - 0x9b46e709L, 0x992a, 0x11d2, 0xac, 0x4d, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("9B46E709-992A-11d2-AC4D-00C04F8EFB68", KSAUDFNAME_VIDEO_MUTE); -#define KSAUDFNAME_VIDEO_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_VIDEO_MUTE) - -#define STATIC_KSAUDFNAME_VIDEO\ - 0x915daec4L, 0xa434, 0x11d2, 0xac, 0x52, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68 -DEFINE_GUIDSTRUCT("915DAEC4-A434-11d2-AC52-00C04F8EFB68", KSAUDFNAME_VIDEO); -#define KSAUDFNAME_VIDEO DEFINE_GUIDNAMED(KSAUDFNAME_VIDEO) - -#define STATIC_KSAUDFNAME_PEAKMETER\ - 0x57e24340L, 0xfc5b, 0x4612, 0xa5, 0x62, 0x72, 0xb1, 0x1a, 0x29, 0xdf, 0xae -DEFINE_GUIDSTRUCT("57E24340-FC5B-4612-A562-72B11A29DFAE", KSAUDFNAME_PEAKMETER); -#define KSAUDFNAME_PEAKMETER DEFINE_GUIDNAMED(KSAUDFNAME_PEAKMETER) - -// Internal topology node pin definitions - -#define KSNODEPIN_STANDARD_IN 1 -#define KSNODEPIN_STANDARD_OUT 0 - -#define KSNODEPIN_SUM_MUX_IN 1 // can be >= 1 -#define KSNODEPIN_SUM_MUX_OUT 0 - -#define KSNODEPIN_DEMUX_IN 0 -#define KSNODEPIN_DEMUX_OUT 1 // can be >= 1 - -#define KSNODEPIN_AEC_RENDER_IN 1 -#define KSNODEPIN_AEC_RENDER_OUT 0 -#define KSNODEPIN_AEC_CAPTURE_IN 2 -#define KSNODEPIN_AEC_CAPTURE_OUT 3 - -//=========================================================================== -//=========================================================================== - -#define STATIC_KSMETHODSETID_Wavetable\ - 0xDCEF31EBL, 0xD907, 0x11D0, 0x95, 0x83, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("DCEF31EB-D907-11D0-9583-00C04FB925D3", KSMETHODSETID_Wavetable); -#define KSMETHODSETID_Wavetable DEFINE_GUIDNAMED(KSMETHODSETID_Wavetable) - -typedef enum { - KSMETHOD_WAVETABLE_WAVE_ALLOC, - KSMETHOD_WAVETABLE_WAVE_FREE, - KSMETHOD_WAVETABLE_WAVE_FIND, - KSMETHOD_WAVETABLE_WAVE_WRITE -} KSMETHOD_WAVETABLE; - -typedef struct { - KSIDENTIFIER Identifier; // wave identifier - ULONG Size; // wave size - BOOL Looped; // wave looped flag - ULONG LoopPoint; // wave loop point - BOOL InROM; // wave InROM flag - KSDATAFORMAT Format; // wave format -} KSWAVETABLE_WAVE_DESC, *PKSWAVETABLE_WAVE_DESC; - - -//=========================================================================== -//=========================================================================== - -/* - Property sets and items -*/ - -//=========================================================================== -//=========================================================================== - -#define STATIC_KSPROPSETID_Acoustic_Echo_Cancel\ - 0xd7a4af8bL, 0x3dc1, 0x4902, 0x91, 0xea, 0x8a, 0x15, 0xc9, 0x0e, 0x05, 0xb2 -DEFINE_GUIDSTRUCT("D7A4AF8B-3DC1-4902-91EA-8A15C90E05B2", KSPROPSETID_Acoustic_Echo_Cancel); -#define KSPROPSETID_Acoustic_Echo_Cancel DEFINE_GUIDNAMED(KSPROPSETID_Acoustic_Echo_Cancel) - -typedef enum { - KSPROPERTY_AEC_NOISE_FILL_ENABLE = 0, - KSPROPERTY_AEC_STATUS, - KSPROPERTY_AEC_MODE -} KSPROPERTY_AEC; - -#define AEC_STATUS_FD_HISTORY_UNINITIALIZED 0x0 -#define AEC_STATUS_FD_HISTORY_CONTINUOUSLY_CONVERGED 0x1 -#define AEC_STATUS_FD_HISTORY_PREVIOUSLY_DIVERGED 0x2 -#define AEC_STATUS_FD_CURRENTLY_CONVERGED 0x8 - -#define AEC_MODE_PASS_THROUGH 0x0 -#define AEC_MODE_HALF_DUPLEX 0x1 -#define AEC_MODE_FULL_DUPLEX 0x2 - -//=========================================================================== -//=========================================================================== - -#define STATIC_KSPROPSETID_Wave_Queued\ - 0x16a15b10L, 0x16f0, 0x11d0, 0xa1, 0x95, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4 -DEFINE_GUIDSTRUCT("16a15b10-16f0-11d0-a195-0020afd156e4", KSPROPSETID_Wave_Queued); -#define KSPROPSETID_Wave_Queued DEFINE_GUIDNAMED(KSPROPSETID_Wave_Queued) - -#define KSPROPERTY_WAVE_QUEUED_POSITION 0x00000001 - -#define STATIC_KSMETHODSETID_Wave_Queued\ - 0x7432c160L, 0x8827, 0x11cf, 0xa1, 0x02, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4 -DEFINE_GUIDSTRUCT("7432c160-8827-11cf-a102-0020afd156e4", KSMETHODSETID_Wave_Queued); -#define KSMETHODSETID_Wave_Queued DEFINE_GUIDNAMED(KSMETHODSETID_Wave_Queued) - -#define KSMETHOD_WAVE_QUEUED_BREAKLOOP 0x00000001 - -#define STATIC_KSPROPSETID_Wave\ - 0x924e54b0L, 0x630f, 0x11cf, 0xad, 0xa7, 0x08, 0x00, 0x3e, 0x30, 0x49, 0x4a -DEFINE_GUIDSTRUCT("924e54b0-630f-11cf-ada7-08003e30494a", KSPROPSETID_Wave); -#define KSPROPSETID_Wave DEFINE_GUIDNAMED(KSPROPSETID_Wave) - -typedef enum { - KSPROPERTY_WAVE_COMPATIBLE_CAPABILITIES, - KSPROPERTY_WAVE_INPUT_CAPABILITIES, - KSPROPERTY_WAVE_OUTPUT_CAPABILITIES, - KSPROPERTY_WAVE_BUFFER, - KSPROPERTY_WAVE_FREQUENCY, - KSPROPERTY_WAVE_VOLUME, - KSPROPERTY_WAVE_PAN -} KSPROPERTY_WAVE; - -typedef struct { - ULONG ulDeviceType; -} KSWAVE_COMPATCAPS, *PKSWAVE_COMPATCAPS; - -#define KSWAVE_COMPATCAPS_INPUT 0x00000000 -#define KSWAVE_COMPATCAPS_OUTPUT 0x00000001 - -typedef struct { - ULONG MaximumChannelsPerConnection; - ULONG MinimumBitsPerSample; - ULONG MaximumBitsPerSample; - ULONG MinimumSampleFrequency; - ULONG MaximumSampleFrequency; - ULONG TotalConnections; - ULONG ActiveConnections; -} KSWAVE_INPUT_CAPABILITIES, *PKSWAVE_INPUT_CAPABILITIES; - -typedef struct { - ULONG MaximumChannelsPerConnection; - ULONG MinimumBitsPerSample; - ULONG MaximumBitsPerSample; - ULONG MinimumSampleFrequency; - ULONG MaximumSampleFrequency; - ULONG TotalConnections; - ULONG StaticConnections; - ULONG StreamingConnections; - ULONG ActiveConnections; - ULONG ActiveStaticConnections; - ULONG ActiveStreamingConnections; - ULONG Total3DConnections; - ULONG Static3DConnections; - ULONG Streaming3DConnections; - ULONG Active3DConnections; - ULONG ActiveStatic3DConnections; - ULONG ActiveStreaming3DConnections; - ULONG TotalSampleMemory; - ULONG FreeSampleMemory; - ULONG LargestFreeContiguousSampleMemory; -} KSWAVE_OUTPUT_CAPABILITIES, *PKSWAVE_OUTPUT_CAPABILITIES; - -typedef struct { - LONG LeftAttenuation; - LONG RightAttenuation; -} KSWAVE_VOLUME, *PKSWAVE_VOLUME; - -#define KSWAVE_BUFFER_ATTRIBUTEF_LOOPING 0x00000001 -#define KSWAVE_BUFFER_ATTRIBUTEF_STATIC 0x00000002 - -typedef struct { - ULONG Attributes; - ULONG BufferSize; - PVOID BufferAddress; -} KSWAVE_BUFFER, *PKSWAVE_BUFFER; - -//=========================================================================== -//=========================================================================== - -#define STATIC_KSMUSIC_TECHNOLOGY_PORT\ - 0x86C92E60L, 0x62E8, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("86C92E60-62E8-11CF-A5D6-28DB04C10000", KSMUSIC_TECHNOLOGY_PORT); -#define KSMUSIC_TECHNOLOGY_PORT DEFINE_GUIDNAMED(KSMUSIC_TECHNOLOGY_PORT) - -#define STATIC_KSMUSIC_TECHNOLOGY_SQSYNTH\ - 0x0ECF4380L, 0x62E9, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("0ECF4380-62E9-11CF-A5D6-28DB04C10000", KSMUSIC_TECHNOLOGY_SQSYNTH); -#define KSMUSIC_TECHNOLOGY_SQSYNTH DEFINE_GUIDNAMED(KSMUSIC_TECHNOLOGY_SQSYNTH) - -#define STATIC_KSMUSIC_TECHNOLOGY_FMSYNTH\ - 0x252C5C80L, 0x62E9, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("252C5C80-62E9-11CF-A5D6-28DB04C10000", KSMUSIC_TECHNOLOGY_FMSYNTH); -#define KSMUSIC_TECHNOLOGY_FMSYNTH DEFINE_GUIDNAMED(KSMUSIC_TECHNOLOGY_FMSYNTH) - -#define STATIC_KSMUSIC_TECHNOLOGY_WAVETABLE\ - 0x394EC7C0L, 0x62E9, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("394EC7C0-62E9-11CF-A5D6-28DB04C10000", KSMUSIC_TECHNOLOGY_WAVETABLE); -#define KSMUSIC_TECHNOLOGY_WAVETABLE DEFINE_GUIDNAMED(KSMUSIC_TECHNOLOGY_WAVETABLE) - -#define STATIC_KSMUSIC_TECHNOLOGY_SWSYNTH\ - 0x37407736L, 0x3620, 0x11D1, 0x85, 0xD3, 0x00, 0x00, 0xF8, 0x75, 0x43, 0x80 -DEFINE_GUIDSTRUCT("37407736-3620-11D1-85D3-0000F8754380", KSMUSIC_TECHNOLOGY_SWSYNTH); -#define KSMUSIC_TECHNOLOGY_SWSYNTH DEFINE_GUIDNAMED(KSMUSIC_TECHNOLOGY_SWSYNTH) - -#define STATIC_KSPROPSETID_WaveTable\ - 0x8539E660L, 0x62E9, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("8539E660-62E9-11CF-A5D6-28DB04C10000", KSPROPSETID_WaveTable); -#define KSPROPSETID_WaveTable DEFINE_GUIDNAMED(KSPROPSETID_WaveTable) - -typedef enum { - KSPROPERTY_WAVETABLE_LOAD_SAMPLE, - KSPROPERTY_WAVETABLE_UNLOAD_SAMPLE, - KSPROPERTY_WAVETABLE_MEMORY, - KSPROPERTY_WAVETABLE_VERSION -} KSPROPERTY_WAVETABLE; - -typedef struct { - KSDATARANGE DataRange; - GUID Technology; - ULONG Channels; - ULONG Notes; - ULONG ChannelMask; -} KSDATARANGE_MUSIC, *PKSDATARANGE_MUSIC; - -//=========================================================================== - -#define STATIC_KSEVENTSETID_Cyclic\ - 0x142C1AC0L, 0x072A, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("142C1AC0-072A-11D0-A5D6-28DB04C10000", KSEVENTSETID_Cyclic); -#define KSEVENTSETID_Cyclic DEFINE_GUIDNAMED(KSEVENTSETID_Cyclic) - -typedef enum { - KSEVENT_CYCLIC_TIME_INTERVAL, -} KSEVENT_CYCLIC_TIME; - -#define STATIC_KSPROPSETID_Cyclic\ - 0x3FFEAEA0L, 0x2BEE, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("3FFEAEA0-2BEE-11CF-A5D6-28DB04C10000", KSPROPSETID_Cyclic); -#define KSPROPSETID_Cyclic DEFINE_GUIDNAMED(KSPROPSETID_Cyclic) - -typedef enum { - KSPROPERTY_CYCLIC_POSITION, -} KSPROPERTY_CYCLIC; - -//=========================================================================== -#define STATIC_KSEVENTSETID_AudioControlChange\ - 0xE85E9698L, 0xFA2F, 0x11D1, 0x95, 0xBD, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3 -DEFINE_GUIDSTRUCT("E85E9698-FA2F-11D1-95BD-00C04FB925D3", KSEVENTSETID_AudioControlChange); -#define KSEVENTSETID_AudioControlChange DEFINE_GUIDNAMED(KSEVENTSETID_AudioControlChange) - -typedef enum { - KSEVENT_CONTROL_CHANGE, -} KSEVENT_AUDIO_CONTROL_CHANGE; - -//=========================================================================== - -#define STATIC_KSEVENTSETID_LoopedStreaming\ - 0x4682B940L, 0xC6EF, 0x11D0, 0x96, 0xD8, 0x00, 0xAA, 0x00, 0x51, 0xE5, 0x1D -DEFINE_GUIDSTRUCT("4682B940-C6EF-11D0-96D8-00AA0051E51D", KSEVENTSETID_LoopedStreaming); -#define KSEVENTSETID_LoopedStreaming DEFINE_GUIDNAMED(KSEVENTSETID_LoopedStreaming) - -typedef enum { - KSEVENT_LOOPEDSTREAMING_POSITION, -} KSEVENT_LOOPEDSTREAMING; - -typedef struct { - KSEVENTDATA KsEventData; -#if defined(_NTDDK_) - ULONGLONG Position; -#else // !_NTDDK_ - DWORDLONG Position; -#endif // !_NTDDK_ -} LOOPEDSTREAMING_POSITION_EVENT_DATA, *PLOOPEDSTREAMING_POSITION_EVENT_DATA ; - -// @@BEGIN_DDKSPLIT -//=========================================================================== -#define STATIC_KSEVENTSETID_Sysaudio \ - 0x04800320L, 0x4491, 0x11D1, 0xA0, 0x50, 0x40, 0x57, 0x05, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("04800320-4491-11D1-A050-405705C10000", KSEVENTSETID_Sysaudio); -#define KSEVENTSETID_Sysaudio DEFINE_GUIDNAMED(KSEVENTSETID_Sysaudio) - -typedef enum { - KSEVENT_SYSAUDIO_ADDREMOVE_DEVICE, - KSEVENT_SYSAUDIO_CHANGE_DEVICE -} KSEVENT_SYSAUDIO; -// @@END_DDKSPLIT - -//=========================================================================== -#define STATIC_KSPROPSETID_Sysaudio\ - 0xCBE3FAA0L, 0xCC75, 0x11D0, 0xB4, 0x65, 0x00, 0x00, 0x1A, 0x18, 0x18, 0xE6 -DEFINE_GUIDSTRUCT("CBE3FAA0-CC75-11D0-B465-00001A1818E6", KSPROPSETID_Sysaudio); -#define KSPROPSETID_Sysaudio DEFINE_GUIDNAMED(KSPROPSETID_Sysaudio) - -typedef enum { - KSPROPERTY_SYSAUDIO_DEVICE_COUNT = 1, - KSPROPERTY_SYSAUDIO_DEVICE_FRIENDLY_NAME = 2, - KSPROPERTY_SYSAUDIO_DEVICE_INSTANCE = 3, - KSPROPERTY_SYSAUDIO_DEVICE_INTERFACE_NAME = 4, - KSPROPERTY_SYSAUDIO_SELECT_GRAPH = 5, - KSPROPERTY_SYSAUDIO_CREATE_VIRTUAL_SOURCE = 6, - KSPROPERTY_SYSAUDIO_DEVICE_DEFAULT = 7, -// @@BEGIN_DDKSPLIT - KSPROPERTY_SYSAUDIO_ALWAYS_CREATE_VIRTUAL_SOURCE = 8, - KSPROPERTY_SYSAUDIO_ADDREMOVE_LOCK = 9, - KSPROPERTY_SYSAUDIO_ADDREMOVE_UNLOCK = 10, - KSPROPERTY_SYSAUDIO_RENDER_PIN_INSTANCES = 11, - KSPROPERTY_SYSAUDIO_RENDER_CONNECTION_INDEX = 12, - KSPROPERTY_SYSAUDIO_CREATE_VIRTUAL_SOURCE_ONLY = 13, -// @@END_DDKSPLIT - KSPROPERTY_SYSAUDIO_INSTANCE_INFO = 14, -// @@BEGIN_DDKSPLIT - KSPROPERTY_SYSAUDIO_PREFERRED_DEVICE = 15, -// @@END_DDKSPLIT - KSPROPERTY_SYSAUDIO_COMPONENT_ID = 16, -// @@BEGIN_DDKSPLIT - KSPROPERTY_SYSAUDIO_ADDREMOVE_GFX = 17 -// @@END_DDKSPLIT -} KSPROPERTY_SYSAUDIO; - -typedef struct { - KSPROPERTY Property; - GUID PinCategory; - GUID PinName; -} SYSAUDIO_CREATE_VIRTUAL_SOURCE, *PSYSAUDIO_CREATE_VIRTUAL_SOURCE; - -// @@BEGIN_DDKSPLIT -typedef struct { - BOOL Enable; - HANDLE hGfx; - ULONG ulOrder; // Order of the GFX - ULONG ulType; // Type of the GFX - ULONG ulFlags; - ULONG ulDeviceNameOffset; // DeviceInterface on which this GFX needs to be attached - ULONG ulFriendlyNameOffset; // Friendly name of the GFX -} SYSAUDIO_GFX, *PSYSAUDIO_GFX; - -#define GFX_DEVICETYPE_RENDER 1 -#define GFX_DEVICETYPE_CAPTURE 2 -// @@END_DDKSPLIT - -typedef struct { - KSPROPERTY Property; - ULONG PinId; - ULONG NodeId; - ULONG Flags; - ULONG Reserved; -} SYSAUDIO_SELECT_GRAPH, *PSYSAUDIO_SELECT_GRAPH; - -typedef struct { - KSPROPERTY Property; - ULONG Flags; - ULONG DeviceNumber; -} SYSAUDIO_INSTANCE_INFO, *PSYSAUDIO_INSTANCE_INFO; - -#define SYSAUDIO_FLAGS_DONT_COMBINE_PINS 0x00000001 - -// @@BEGIN_DDKSPLIT -typedef struct { - KSPROPERTY Property; - ULONG Flags; - ULONG Index; // KSPROPERTY_SYSAUDIO_DEFAULT_TYPE -} SYSAUDIO_PREFERRED_DEVICE, *PSYSAUDIO_PREFERRED_DEVICE; - -#define SYSAUDIO_FLAGS_CLEAR_PREFERRED 0x00000002 -// @@END_DDKSPLIT - -#define STATIC_KSPROPSETID_Sysaudio_Pin \ - 0xA3A53220L, 0xC6E4, 0x11D0, 0xB4, 0x65, 0x00, 0x00, 0x1A, 0x18, 0x18, 0xE6 -DEFINE_GUIDSTRUCT("A3A53220-C6E4-11D0-B465-00001A1818E6", KSPROPSETID_Sysaudio_Pin); -#define KSPROPSETID_Sysaudio_Pin DEFINE_GUIDNAMED(KSPROPSETID_Sysaudio_Pin) - -typedef enum { -// @@BEGIN_DDKSPLIT - KSPROPERTY_SYSAUDIO_TOPOLOGY_CONNECTION_INDEX = 0, -// @@END_DDKSPLIT - KSPROPERTY_SYSAUDIO_ATTACH_VIRTUAL_SOURCE = 1, -// @@BEGIN_DDKSPLIT - KSPROPERTY_SYSAUDIO_PIN_VOLUME_NODE = 2 -// @@END_DDKSPLIT -} KSPROPERTY_SYSAUDIO_PIN; - -typedef struct { - KSPROPERTY Property; - ULONG MixerPinId; - ULONG Reserved; -} SYSAUDIO_ATTACH_VIRTUAL_SOURCE, *PSYSAUDIO_ATTACH_VIRTUAL_SOURCE; - -//=========================================================================== -typedef struct { - KSPROPERTY Property; - ULONG NodeId; - ULONG Reserved; -} KSNODEPROPERTY, *PKSNODEPROPERTY; - -typedef struct { - KSNODEPROPERTY NodeProperty; - LONG Channel; // value to get or set - ULONG Reserved; -} KSNODEPROPERTY_AUDIO_CHANNEL, *PKSNODEPROPERTY_AUDIO_CHANNEL; - -typedef struct { - KSNODEPROPERTY NodeProperty; - ULONG DevSpecificId; - ULONG DeviceInfo; - ULONG Length; -} KSNODEPROPERTY_AUDIO_DEV_SPECIFIC, *PKSNODEPROPERTY_AUDIO_DEV_SPECIFIC; - -typedef struct { - KSNODEPROPERTY NodeProperty; - PVOID ListenerId; -#ifndef _WIN64 - ULONG Reserved; -#endif // _WIN64 -} KSNODEPROPERTY_AUDIO_3D_LISTENER, *PKSNODEPROPERTY_AUDIO_3D_LISTENER; - -typedef struct { - KSNODEPROPERTY NodeProperty; - PVOID AppContext; - ULONG Length; -#ifndef _WIN64 - ULONG Reserved; -#endif // _WIN64 -} KSNODEPROPERTY_AUDIO_PROPERTY, *PKSNODEPROPERTY_AUDIO_PROPERTY; - -//=========================================================================== -// {79A9312E-59AE-43b0-A350-8B05284CAB24} -#define STATIC_KSPROPSETID_AudioGfx\ - 0x79a9312eL, 0x59ae, 0x43b0, 0xa3, 0x50, 0x8b, 0x5, 0x28, 0x4c, 0xab, 0x24 -DEFINE_GUIDSTRUCT("79A9312E-59AE-43b0-A350-8B05284CAB24", KSPROPSETID_AudioGfx); -#define KSPROPSETID_AudioGfx DEFINE_GUIDNAMED(KSPROPSETID_AudioGfx) - -typedef enum { - KSPROPERTY_AUDIOGFX_RENDERTARGETDEVICEID, - KSPROPERTY_AUDIOGFX_CAPTURETARGETDEVICEID -} KSPROPERTY_AUDIOGFX; - -//=========================================================================== - -#define STATIC_KSPROPSETID_Linear\ - 0x5A2FFE80L, 0x16B9, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("5A2FFE80-16B9-11D0-A5D6-28DB04C10000", KSPROPSETID_Linear); -#define KSPROPSETID_Linear DEFINE_GUIDNAMED(KSPROPSETID_Linear) - -typedef enum { - KSPROPERTY_LINEAR_POSITION, -} KSPROPERTY_LINEAR; - -//=========================================================================== - -// -// Midi definitions -// - -/* - Formats -*/ - -#define STATIC_KSDATAFORMAT_TYPE_MUSIC\ - 0xE725D360L, 0x62CC, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("E725D360-62CC-11CF-A5D6-28DB04C10000", KSDATAFORMAT_TYPE_MUSIC); -#define KSDATAFORMAT_TYPE_MUSIC DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MUSIC) - -// 'mids' == MEDIATYPE_Midi -#define STATIC_KSDATAFORMAT_TYPE_MIDI\ - 0x7364696DL, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 -DEFINE_GUIDSTRUCT("7364696D-0000-0010-8000-00aa00389b71", KSDATAFORMAT_TYPE_MIDI); -#define KSDATAFORMAT_TYPE_MIDI DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MIDI) - -#define STATIC_KSDATAFORMAT_SUBTYPE_MIDI\ - 0x1D262760L, 0xE957, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("1D262760-E957-11CF-A5D6-28DB04C10000", KSDATAFORMAT_SUBTYPE_MIDI); -#define KSDATAFORMAT_SUBTYPE_MIDI DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MIDI) - -#define STATIC_KSDATAFORMAT_SUBTYPE_MIDI_BUS\ - 0x2CA15FA0L, 0x6CFE, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 -DEFINE_GUIDSTRUCT("2CA15FA0-6CFE-11CF-A5D6-28DB04C10000", KSDATAFORMAT_SUBTYPE_MIDI_BUS); -#define KSDATAFORMAT_SUBTYPE_MIDI_BUS DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MIDI_BUS) - -#define STATIC_KSDATAFORMAT_SUBTYPE_RIFFMIDI\ - 0x4995DAF0L, 0x9EE6, 0x11D0, 0xA4, 0x0E, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("4995DAF0-9EE6-11D0-A40E-00A0C9223196", KSDATAFORMAT_SUBTYPE_RIFFMIDI); -#define KSDATAFORMAT_SUBTYPE_RIFFMIDI DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_RIFFMIDI) - -/* - KSDATAFORMAT_SUBTYPE_DIRECTMUSIC - see DMusicKS.h -*/ - -// WARNING! This structure MUST be dword aligned -// regardless of the number of data bytes. - -typedef struct { - ULONG TimeDeltaMs; // Delta Milliseconds from the previous midiformat - // in the packet. The first midiformat in the packet - // is a delta from the PTS in the KSSTREAM_HEADER. - ULONG ByteCount; // Number of bytes of data that follow this struct. -} KSMUSICFORMAT, *PKSMUSICFORMAT; - -// -// This entire set of MPEG Standard/Dialect Guids are obsolete. Do not use them. -// -//==================================================================================================== -//==================================================================================================== -// The following official MPEG Formats, Subtypes and Specifiers are listed as required or optional -// These official MPEG GUIDs are the preferred method of supporting MPEG/AC-3 media types in new code. -// Older MPEG GUIDs should also be supported for compatibilty, but these new modes are still required. -//==================================================================================================== -//==================================================================================================== - -/* -This is a summary of what media types/specifiers will be required for all DVD+DSS+DVB+DTV MPEG decoders. -These media types are what the decoder driver must accept, hardware support for all of these media types -may or may not actually be provided by the decoder natively. These media types are intended to define -the "officially" supported MPEG/AC-3 media types that all WHQL certified decoders must implement. This -specifically includes driver and/or hardware support for all the required standards and dialects. - -All MPEG video decoders must support all of the MPEG video modes shown as [required] below. -All MPEG audio decoders must support all of the MPEG audio modes shown as [required] below. -All AC-3 audio decoders must support all of the AC-3 audio modes shown as [required] below. -The line items shown as [optional] need not be implemented, but are possible formats that might be implemented. - -Note that the input/output pin formats are defined by 2 or 3 GUIDs: TYPE, SUBTYPE, and maybe SPECIFIER. -The specifiers are included if the data format is a "dialect" that needs to be differentiated during decoding. -The decoder MUST be prepared to deal with ALL requests for _required_ "Standard" formats OR _required_ "Dialects". - -STATIC_KSDATAFORMAT_TYPE_STANDARD_ELEMENTARY_STREAM [required] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO [required] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO [optional] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO [required] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO [optional] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO [required] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO [required] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO [required] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO [optional] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO [required] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO [optional] -STATIC_KSDATAFORMAT_TYPE_STANDARD_PES_PACKET [required] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO [optional] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO [optional] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO [optional] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO [optional] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO [required] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO [required] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO [required] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO [required] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO [required] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO [optional] -STATIC_KSDATAFORMAT_TYPE_STANDARD_PACK_HEADER [required] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO [required] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO [required] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO [required] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO [optional] - STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO [required] - STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO [optional] - -Note that the SPECIFIER GUIDs normally identify particular versions of MPEG such as DSS and DVD. -This approach was taken to minimize the number of DSS/DVB/DVD/DTV etc. media SUBTYPES. -These specifiers are currently required to disambiguate MPEG syntax _parsing_ by the decoder -using alternate parsing routines or downloadable firmware or hardware decode settings. - -In the future these specifiers will be extended to cover new KS MPEG flavors such as DVB and DTV. -Thus, the optional specifiers will be subject to clarification and/or definition as they are needed. - -Important note: Per the ITU MPEG specs, MPEG 2 media may contain pure MPEG 1 syntax and -any "MPEG 2" PES packets may actually contain MPEG 1 payloads and MPEG 1 syntax. Some MPEG -broadcasts can revert from MPEG2 to MPEG1 format data at their discretion, without warning. - -CAUTION: Decoders MUST attempt to process MPEG data AS SOON AS POSSIBLE after reception. -In particular, elementary MPEG or MPEG PES packet streams should not be aggregated into DVD -"pack headers" internally before submission to the codec hardware if AT ALL POSSIBLE. The -reason is that mpeg data may need to be processed immediately but there may be no additional -MPEG data forthcoming to fill up the PES packet OR DVD "pack" in a timely fashion. This is -particularly true of MPEG dialects that utilize "repeat field signally" to reuse the last -decoded MPEG video field. - -*/ - -///////////////////////////////////////////////////////////////////////// -// The major data type GUIDs that define the data packet encapsulation // -///////////////////////////////////////////////////////////////////////// - -// STATIC_KSDATAFORMAT_TYPE_STANDARD_ELEMENTARY_STREAM -#define STATIC_KSDATAFORMAT_TYPE_STANDARD_ELEMENTARY_STREAM \ - 0x36523b11L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B11-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_TYPE_STANDARD_ELEMENTARY_STREAM ); -#define KSDATAFORMAT_TYPE_STANDARD_ELEMENTARY_STREAM DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_STANDARD_ELEMENTARY_STREAM) - -// STATIC_KSDATAFORMAT_TYPE_STANDARD_PES_PACKET -#define STATIC_KSDATAFORMAT_TYPE_STANDARD_PES_PACKET \ - 0x36523b12L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B12-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_TYPE_STANDARD_PES_PACKET ); -#define KSDATAFORMAT_TYPE_STANDARD_PES_PACKET DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_STANDARD_PES_PACKET) - -// STATIC_KSDATAFORMAT_TYPE_STANDARD_PACK_HEADER -#define STATIC_KSDATAFORMAT_TYPE_STANDARD_PACK_HEADER \ - 0x36523b13L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B13-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_TYPE_STANDARD_PACK_HEADER ); -#define KSDATAFORMAT_TYPE_STANDARD_PACK_HEADER DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_STANDARD_PACK_HEADER) - -/////////////////////////////////////////////////////////////////////////////// -// The minor data subtype GUIDs that define the exact class of the data type.// -/////////////////////////////////////////////////////////////////////////////// - -// STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO -#define STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO \ - 0x36523b21L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B21-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO ); -#define KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO) - -// STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO -#define STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO \ - 0x36523b22L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B22-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO ); -#define KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO) - -// STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO -#define STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO \ - 0x36523b23L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B23-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO ); -#define KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO) - -// STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO -#define STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO \ - 0x36523b24L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B24-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO ); -#define KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO) - -// STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO -#define STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO \ - 0x36523b25L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B25-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO ); -#define KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO) - -/////////////////////////////////////////////////////////////////////////////// -// The low-level specifier GUIDs that define the flavor of the data subtype. // -// Some SUBTYPES, notably MPEG2_VIDEO, MPEG2_AUDIO have different dialects. // -// These specifiers are intended to be accompanied by a specifier structure. // -/////////////////////////////////////////////////////////////////////////////// - -// STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO -#define STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO \ - 0x36523b31L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B31-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO ); -#define KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO) - -// STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO -#define STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO \ - 0x36523b32L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B32-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO ); -#define KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO) - -// STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO Associated with KS_MPEGVIDEOINFO2 defined later -#define STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO \ - 0x36523b33L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B33-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO ); -#define KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO) - -// STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO Associated with KS_MPEGAUDIOINFO defined later -#define STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO \ - 0x36523b34L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B34-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO ); -#define KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO) - -// STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO -#define STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO \ - 0x36523b35L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a -DEFINE_GUIDSTRUCT("36523B35-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO ); -#define KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO) - -//==================================================================================================== -//==================================================================================================== -// *** COMPATIBILITY WARNING *** -// The *following* older DSS, MPEG, DVD & AC-3 GUID definitions are retained for backward compability. -// These MPEG GUIDs should also be supported for compatibilty, but the above newer modes are still required. -//==================================================================================================== -//==================================================================================================== - -// -// DSS definitions -// - -#define STATIC_KSDATAFORMAT_SUBTYPE_DSS_VIDEO\ - 0xa0af4f81L, 0xe163, 0x11d0, 0xba, 0xd9, 0x00, 0x60, 0x97, 0x44, 0x11, 0x1a -DEFINE_GUIDSTRUCT("a0af4f81-e163-11d0-bad9-00609744111a", KSDATAFORMAT_SUBTYPE_DSS_VIDEO); -#define KSDATAFORMAT_SUBTYPE_DSS_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_DSS_VIDEO) - -#define STATIC_KSDATAFORMAT_SUBTYPE_DSS_AUDIO\ - 0xa0af4f82L, 0xe163, 0x11d0, 0xba, 0xd9, 0x00, 0x60, 0x97, 0x44, 0x11, 0x1a -DEFINE_GUIDSTRUCT("a0af4f82-e163-11d0-bad9-00609744111a", KSDATAFORMAT_SUBTYPE_DSS_AUDIO); -#define KSDATAFORMAT_SUBTYPE_DSS_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_DSS_AUDIO) - -// -// End of obsolete MPEG definitions. -// - -// -// mpeg 1 definitions -// -#define STATIC_KSDATAFORMAT_SUBTYPE_MPEG1Packet\ - 0xe436eb80, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70 -DEFINE_GUIDSTRUCT("e436eb80-524f-11ce-9F53-0020af0ba770", KSDATAFORMAT_SUBTYPE_MPEG1Packet); -#define KSDATAFORMAT_SUBTYPE_MPEG1Packet DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MPEG1Packet) - -#define STATIC_KSDATAFORMAT_SUBTYPE_MPEG1Payload\ - 0xe436eb81, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70 -DEFINE_GUIDSTRUCT("e436eb81-524f-11ce-9F53-0020af0ba770", KSDATAFORMAT_SUBTYPE_MPEG1Payload); -#define KSDATAFORMAT_SUBTYPE_MPEG1Payload DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MPEG1Payload) - -// MEDIASUBTYPE_MPEG1Video -#define STATIC_KSDATAFORMAT_SUBTYPE_MPEG1Video\ - 0xe436eb86, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70 -DEFINE_GUIDSTRUCT("e436eb86-524f-11ce-9f53-0020af0ba770", KSDATAFORMAT_SUBTYPE_MPEG1Video); -#define KSDATAFORMAT_SUBTYPE_MPEG1Video DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MPEG1Video) - -//FORMAT_MPEGVideo -#define STATIC_KSDATAFORMAT_SPECIFIER_MPEG1_VIDEO\ - 0x05589f82L, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a -DEFINE_GUIDSTRUCT("05589f82-c356-11ce-bf01-00aa0055595a", KSDATAFORMAT_SPECIFIER_MPEG1_VIDEO); -#define KSDATAFORMAT_SPECIFIER_MPEG1_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_MPEG1_VIDEO) - -// -// mpeg 2 definitions -// -#define STATIC_KSDATAFORMAT_TYPE_MPEG2_PES\ - 0xe06d8020L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d8020-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_TYPE_MPEG2_PES); -#define KSDATAFORMAT_TYPE_MPEG2_PES DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MPEG2_PES) - -#define STATIC_KSDATAFORMAT_TYPE_MPEG2_PROGRAM\ - 0xe06d8022L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d8022-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_TYPE_MPEG2_PROGRAM); -#define KSDATAFORMAT_TYPE_MPEG2_PROGRAM DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MPEG2_PROGRAM) - -#define STATIC_KSDATAFORMAT_TYPE_MPEG2_TRANSPORT\ - 0xe06d8023L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d8023-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_TYPE_MPEG2_TRANSPORT); -#define KSDATAFORMAT_TYPE_MPEG2_TRANSPORT DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MPEG2_TRANSPORT) - -#define STATIC_KSDATAFORMAT_SUBTYPE_MPEG2_VIDEO\ - 0xe06d8026L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d8026-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_MPEG2_VIDEO); -#define KSDATAFORMAT_SUBTYPE_MPEG2_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MPEG2_VIDEO) - -// use MPEGVIDEOINFO2 (defined below) with KSDATAFORMAT_SPECIFIER_MPEG2_VIDEO -#define STATIC_KSDATAFORMAT_SPECIFIER_MPEG2_VIDEO\ - 0xe06d80e3L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d80e3-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SPECIFIER_MPEG2_VIDEO); -#define KSDATAFORMAT_SPECIFIER_MPEG2_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_MPEG2_VIDEO) - - -// -// Mpeg2 video properties -// - - -#define STATIC_KSPROPSETID_Mpeg2Vid\ - 0xC8E11B60L, 0x0CC9, 0x11D0, 0xBD, 0x69, 0x00, 0x35, 0x05, 0xC1, 0x03, 0xA9 -DEFINE_GUIDSTRUCT("C8E11B60-0CC9-11D0-BD69-003505C103A9", KSPROPSETID_Mpeg2Vid); -#define KSPROPSETID_Mpeg2Vid DEFINE_GUIDNAMED( KSPROPSETID_Mpeg2Vid ) - - -typedef enum { - KSPROPERTY_MPEG2VID_MODES, // available output modes of decoder - KSPROPERTY_MPEG2VID_CUR_MODE, // current mode of the decoder - KSPROPERTY_MPEG2VID_4_3_RECT, // output coordinates for 4:3 source - KSPROPERTY_MPEG2VID_16_9_RECT, // output coordinates for 16:9 source - KSPROPERTY_MPEG2VID_16_9_PANSCAN, // pan and scan vectors -} KSPROPERTY_MPEG2VID; - -// -// bit field definitions for MPEG2 VIDEO mode -// - -#define KSMPEGVIDMODE_PANSCAN 0x0001 -#define KSMPEGVIDMODE_LTRBOX 0x0002 -#define KSMPEGVIDMODE_SCALE 0x0004 - -// -// rectangle definitions for the 4/3 and 16/9 cropping properties of -// the MPEG2Video decoder -// - -typedef struct _KSMPEGVID_RECT { - ULONG StartX; - ULONG StartY; - ULONG EndX; - ULONG EndY; -} KSMPEGVID_RECT, *PKSMPEGVID_RECT; - -// -// Params for pan / scan -// - - -// -// MPEG2 Audio definition -// - -#define STATIC_KSDATAFORMAT_SUBTYPE_MPEG2_AUDIO\ - 0xe06d802bL, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d802b-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_MPEG2_AUDIO); -#define KSDATAFORMAT_SUBTYPE_MPEG2_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MPEG2_AUDIO) - -#define STATIC_KSDATAFORMAT_SPECIFIER_MPEG2_AUDIO\ - 0xe06d80e5L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d80e5-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SPECIFIER_MPEG2_AUDIO); -#define KSDATAFORMAT_SPECIFIER_MPEG2_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_MPEG2_AUDIO) - -// -// DVD LPCM Audio definition -// - -#define STATIC_KSDATAFORMAT_SUBTYPE_LPCM_AUDIO\ - 0xe06d8032L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d8032-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_LPCM_AUDIO); -#define KSDATAFORMAT_SUBTYPE_LPCM_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_LPCM_AUDIO) - -#define STATIC_KSDATAFORMAT_SPECIFIER_LPCM_AUDIO\ - 0xe06d80e6L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d80e6-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SPECIFIER_LPCM_AUDIO); -#define KSDATAFORMAT_SPECIFIER_LPCM_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_LPCM_AUDIO) - -// -// AC-3 definition -// - -#define STATIC_KSDATAFORMAT_SUBTYPE_AC3_AUDIO\ - 0xe06d802cL, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d802c-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_AC3_AUDIO); -#define KSDATAFORMAT_SUBTYPE_AC3_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_AC3_AUDIO) - -#define STATIC_KSDATAFORMAT_SPECIFIER_AC3_AUDIO\ - 0xe06d80e4L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d80e4-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SPECIFIER_AC3_AUDIO); -#define KSDATAFORMAT_SPECIFIER_AC3_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_AC3_AUDIO) - -#define STATIC_KSPROPSETID_AC3\ - 0xBFABE720L, 0x6E1F, 0x11D0, 0xBC, 0xF2, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 -DEFINE_GUIDSTRUCT("BFABE720-6E1F-11D0-BCF2-444553540000", KSPROPSETID_AC3); -#define KSPROPSETID_AC3 DEFINE_GUIDNAMED(KSPROPSETID_AC3) - -typedef enum { - KSPROPERTY_AC3_ERROR_CONCEALMENT = 1, - KSPROPERTY_AC3_ALTERNATE_AUDIO, - KSPROPERTY_AC3_DOWNMIX, - KSPROPERTY_AC3_BIT_STREAM_MODE, - KSPROPERTY_AC3_DIALOGUE_LEVEL, - KSPROPERTY_AC3_LANGUAGE_CODE, - KSPROPERTY_AC3_ROOM_TYPE -} KSPROPERTY_AC3; - -typedef struct { - BOOL fRepeatPreviousBlock; - BOOL fErrorInCurrentBlock; -} KSAC3_ERROR_CONCEALMENT, *PKSAC3_ERROR_CONCEALMENT; - -typedef struct { - BOOL fStereo; - ULONG DualMode; -} KSAC3_ALTERNATE_AUDIO, *PKSAC3_ALTERNATE_AUDIO; - -#define KSAC3_ALTERNATE_AUDIO_1 1 -#define KSAC3_ALTERNATE_AUDIO_2 2 -#define KSAC3_ALTERNATE_AUDIO_BOTH 3 - -typedef struct { - BOOL fDownMix; - BOOL fDolbySurround; -} KSAC3_DOWNMIX, *PKSAC3_DOWNMIX; - -typedef struct { - LONG BitStreamMode; -} KSAC3_BIT_STREAM_MODE, *PKSAC3_BIT_STREAM_MODE; - -#define KSAC3_SERVICE_MAIN_AUDIO 0 -#define KSAC3_SERVICE_NO_DIALOG 1 -#define KSAC3_SERVICE_VISUALLY_IMPAIRED 2 -#define KSAC3_SERVICE_HEARING_IMPAIRED 3 -#define KSAC3_SERVICE_DIALOG_ONLY 4 -#define KSAC3_SERVICE_COMMENTARY 5 -#define KSAC3_SERVICE_EMERGENCY_FLASH 6 -#define KSAC3_SERVICE_VOICE_OVER 7 - -typedef struct { - ULONG DialogueLevel; -} KSAC3_DIALOGUE_LEVEL, *PKSAC3_DIALOGUE_LEVEL; - -typedef struct { - BOOL fLargeRoom; -} KSAC3_ROOM_TYPE, *PKSAC3_ROOM_TYPE; - - -// -// DTS and SDDS definitions (media subtype GUIDs) -// -#define STATIC_KSDATAFORMAT_SUBTYPE_DTS_AUDIO\ - 0xe06d8033L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d8033-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_DTS_AUDIO); -#define KSDATAFORMAT_SUBTYPE_DTS_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_DTS_AUDIO) - -#define STATIC_KSDATAFORMAT_SUBTYPE_SDDS_AUDIO\ - 0xe06d8034L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d8034-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_SDDS_AUDIO); -#define KSDATAFORMAT_SUBTYPE_SDDS_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_SDDS_AUDIO) - - -// -// audio decoder output properties -// - -#define STATIC_KSPROPSETID_AudioDecoderOut\ - 0x6ca6e020L, 0x43bd, 0x11d0, 0xbd, 0x6a, 0x00, 0x35, 0x05, 0xc1, 0x03, 0xa9 -DEFINE_GUIDSTRUCT("6ca6e020-43bd-11d0-bd6a-003505c103a9", KSPROPSETID_AudioDecoderOut); -#define KSPROPSETID_AudioDecoderOut DEFINE_GUIDNAMED(KSPROPSETID_AudioDecoderOut) - -typedef enum { - KSPROPERTY_AUDDECOUT_MODES, // available output modes of decoder - KSPROPERTY_AUDDECOUT_CUR_MODE, // current mode of the decoder -} KSPROPERTY_AUDDECOUT; - -#define KSAUDDECOUTMODE_STEREO_ANALOG 0x0001 -#define KSAUDDECOUTMODE_PCM_51 0x0002 -#define KSAUDDECOUTMODE_SPDIFF 0x0004 - - - -// -// subpicture definition -// - -#define STATIC_KSDATAFORMAT_SUBTYPE_SUBPICTURE\ - 0xe06d802dL, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea -DEFINE_GUIDSTRUCT("e06d802d-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_SUBPICTURE); -#define KSDATAFORMAT_SUBTYPE_SUBPICTURE DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_SUBPICTURE) - - -#define STATIC_KSPROPSETID_DvdSubPic\ - 0xac390460L, 0x43af, 0x11d0, 0xbd, 0x6a, 0x00, 0x35, 0x05, 0xc1, 0x03, 0xa9 -DEFINE_GUIDSTRUCT("ac390460-43af-11d0-bd6a-003505c103a9", KSPROPSETID_DvdSubPic); -#define KSPROPSETID_DvdSubPic DEFINE_GUIDNAMED(KSPROPSETID_DvdSubPic) - -typedef enum { - KSPROPERTY_DVDSUBPIC_PALETTE, - KSPROPERTY_DVDSUBPIC_HLI, - KSPROPERTY_DVDSUBPIC_COMPOSIT_ON, // TRUE for subpicture is displayed -} KSPROPERTY_DVDSUBPIC; - -typedef struct _KS_DVD_YCrCb { - UCHAR Reserved; - UCHAR Y; - UCHAR Cr; - UCHAR Cb; -} KS_DVD_YCrCb, *PKS_DVD_YCrCb; - -/* The KS_DVD_YUV structure is now superseded by KS_DVD_YCrCb above and is - here for backward compatibility only */ - -typedef struct _KS_DVD_YUV { - UCHAR Reserved; - UCHAR Y; - UCHAR V; - UCHAR U; -} KS_DVD_YUV, *PKS_DVD_YUV; - -typedef struct _KSPROPERTY_SPPAL { - KS_DVD_YUV sppal[16]; -} KSPROPERTY_SPPAL, *PKSPROPERTY_SPPAL; - -typedef struct _KS_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; - -} KS_COLCON, *PKS_COLCON; - -typedef struct _KSPROPERTY_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; - KS_COLCON ColCon; // color contrast description (4 bytes as given in HLI) -} KSPROPERTY_SPHLI, *PKSPROPERTY_SPHLI; - -typedef BOOL KSPROPERTY_COMPOSIT_ON, *PKSPROPERTY_COMPOSIT_ON; - -#define STATIC_KSPROPSETID_CopyProt \ - 0x0E8A0A40L, 0x6AEF, 0x11D0, 0x9E, 0xD0, 0x00, 0xA0, 0x24, 0xCA, 0x19, 0xB3 -DEFINE_GUIDSTRUCT("0E8A0A40-6AEF-11D0-9ED0-00A024CA19B3", KSPROPSETID_CopyProt); -#define KSPROPSETID_CopyProt DEFINE_GUIDNAMED(KSPROPSETID_CopyProt) - -typedef enum { - - KSPROPERTY_DVDCOPY_CHLG_KEY = 0x01, - KSPROPERTY_DVDCOPY_DVD_KEY1, - KSPROPERTY_DVDCOPY_DEC_KEY2, - KSPROPERTY_DVDCOPY_TITLE_KEY, - KSPROPERTY_COPY_MACROVISION, - KSPROPERTY_DVDCOPY_REGION, - KSPROPERTY_DVDCOPY_SET_COPY_STATE, - KSPROPERTY_DVDCOPY_DISC_KEY = 0x80 - -} KSPROPERTY_COPYPROT; - -typedef struct _KS_DVDCOPY_CHLGKEY { - BYTE ChlgKey[10]; - BYTE Reserved[2]; -} KS_DVDCOPY_CHLGKEY, *PKS_DVDCOPY_CHLGKEY; - -typedef struct _KS_DVDCOPY_BUSKEY { - BYTE BusKey[5]; - BYTE Reserved[1]; -} KS_DVDCOPY_BUSKEY, *PKS_DVDCOPY_BUSKEY; - - -typedef struct _KS_DVDCOPY_DISCKEY { - BYTE DiscKey[2048]; -} KS_DVDCOPY_DISCKEY, *PKS_DVDCOPY_DISCKEY; - -typedef struct _KS_DVDCOPY_REGION { - UCHAR Reserved; - UCHAR RegionData; - UCHAR Reserved2[2]; -} KS_DVDCOPY_REGION, *PKS_DVDCOPY_REGION; - -typedef struct _KS_DVDCOPY_TITLEKEY { - ULONG KeyFlags; - ULONG ReservedNT[2]; - UCHAR TitleKey[6]; - UCHAR Reserved[2]; -} KS_DVDCOPY_TITLEKEY, *PKS_DVDCOPY_TITLEKEY; - -typedef struct _KS_COPY_MACROVISION { - ULONG MACROVISIONLevel; -} KS_COPY_MACROVISION, *PKS_COPY_MACROVISION; - -typedef struct _KS_DVDCOPY_SET_COPY_STATE { - ULONG DVDCopyState; -} KS_DVDCOPY_SET_COPY_STATE, *PKS_DVDCOPY_SET_COPY_STATE; - -typedef enum { - KS_DVDCOPYSTATE_INITIALIZE, // indicates we are starting a full - // copy protection sequence. - KS_DVDCOPYSTATE_INITIALIZE_TITLE, // indicates we are starting a title - // key copy protection sequence - KS_DVDCOPYSTATE_AUTHENTICATION_NOT_REQUIRED, - KS_DVDCOPYSTATE_AUTHENTICATION_REQUIRED, - KS_DVDCOPYSTATE_DONE, -} KS_DVDCOPYSTATE; - -typedef enum { - KS_MACROVISION_DISABLED, - KS_MACROVISION_LEVEL1, - KS_MACROVISION_LEVEL2, - KS_MACROVISION_LEVEL3 -} KS_COPY_MACROVISION_LEVEL, *PKS_COPY_MACROVISION_LEVEL; - -// -// CGMS Copy Protection Flags -// - -#define KS_DVD_CGMS_RESERVED_MASK 0x00000078 - -#define KS_DVD_CGMS_COPY_PROTECT_MASK 0x00000018 -#define KS_DVD_CGMS_COPY_PERMITTED 0x00000000 -#define KS_DVD_CGMS_COPY_ONCE 0x00000010 -#define KS_DVD_CGMS_NO_COPY 0x00000018 - -#define KS_DVD_COPYRIGHT_MASK 0x00000040 -#define KS_DVD_NOT_COPYRIGHTED 0x00000000 -#define KS_DVD_COPYRIGHTED 0x00000040 - -#define KS_DVD_SECTOR_PROTECT_MASK 0x00000020 -#define KS_DVD_SECTOR_NOT_PROTECTED 0x00000000 -#define KS_DVD_SECTOR_PROTECTED 0x00000020 - - -//=========================================================================== -// The following MUST match the structures in WinGDI.h and AMVideo.h -//=========================================================================== - -#define STATIC_KSCATEGORY_TVTUNER \ - 0xa799a800L, 0xa46d, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0x24, 0x01, 0xdc, 0xd4 -DEFINE_GUIDSTRUCT("a799a800-a46d-11d0-a18c-00a02401dcd4", KSCATEGORY_TVTUNER); -#define KSCATEGORY_TVTUNER DEFINE_GUIDNAMED(KSCATEGORY_TVTUNER) - -#define STATIC_KSCATEGORY_CROSSBAR \ - 0xa799a801L, 0xa46d, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0x24, 0x01, 0xdc, 0xd4 -DEFINE_GUIDSTRUCT("a799a801-a46d-11d0-a18c-00a02401dcd4", KSCATEGORY_CROSSBAR); -#define KSCATEGORY_CROSSBAR DEFINE_GUIDNAMED(KSCATEGORY_CROSSBAR) - -#define STATIC_KSCATEGORY_TVAUDIO \ - 0xa799a802L, 0xa46d, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0x24, 0x01, 0xdc, 0xd4 -DEFINE_GUIDSTRUCT("a799a802-a46d-11d0-a18c-00a02401dcd4", KSCATEGORY_TVAUDIO); -#define KSCATEGORY_TVAUDIO DEFINE_GUIDNAMED(KSCATEGORY_TVAUDIO) - -#define STATIC_KSCATEGORY_VPMUX \ - 0xa799a803L, 0xa46d, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0x24, 0x01, 0xdc, 0xd4 -DEFINE_GUIDSTRUCT("a799a803-a46d-11d0-a18c-00a02401dcd4", KSCATEGORY_VPMUX); -#define KSCATEGORY_VPMUX DEFINE_GUIDNAMED(KSCATEGORY_VPMUX) - -#define STATIC_KSCATEGORY_VBICODEC \ - 0x07dad660L, 0x22f1, 0x11d1, 0xa9, 0xf4, 0x00, 0xc0, 0x4f, 0xbb, 0xde, 0x8f -DEFINE_GUIDSTRUCT("07dad660-22f1-11d1-a9f4-00c04fbbde8f", KSCATEGORY_VBICODEC); -#define KSCATEGORY_VBICODEC DEFINE_GUIDNAMED(KSCATEGORY_VBICODEC) - -// SUBTYPE_VPVideo -#define STATIC_KSDATAFORMAT_SUBTYPE_VPVideo\ - 0x5a9b6a40L, 0x1a22, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a -DEFINE_GUIDSTRUCT("5a9b6a40-1a22-11d1-bad9-00609744111a", KSDATAFORMAT_SUBTYPE_VPVideo); -#define KSDATAFORMAT_SUBTYPE_VPVideo DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_VPVideo) - -// SUBTYPE_VPVBI -#define STATIC_KSDATAFORMAT_SUBTYPE_VPVBI\ - 0x5a9b6a41L, 0x1a22, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a -DEFINE_GUIDSTRUCT("5a9b6a41-1a22-11d1-bad9-00609744111a", KSDATAFORMAT_SUBTYPE_VPVBI); -#define KSDATAFORMAT_SUBTYPE_VPVBI DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_VPVBI) - - -// FORMAT_VideoInfo -#define STATIC_KSDATAFORMAT_SPECIFIER_VIDEOINFO\ - 0x05589f80L, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a -DEFINE_GUIDSTRUCT("05589f80-c356-11ce-bf01-00aa0055595a", KSDATAFORMAT_SPECIFIER_VIDEOINFO); -#define KSDATAFORMAT_SPECIFIER_VIDEOINFO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_VIDEOINFO) - -// FORMAT_VideoInfo2 -#define STATIC_KSDATAFORMAT_SPECIFIER_VIDEOINFO2\ - 0xf72a76A0L, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("f72a76A0-eb0a-11d0-ace4-0000c0cc16ba", KSDATAFORMAT_SPECIFIER_VIDEOINFO2); -#define KSDATAFORMAT_SPECIFIER_VIDEOINFO2 DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_VIDEOINFO2) - -// MEDIATYPE_AnalogVideo -#define STATIC_KSDATAFORMAT_TYPE_ANALOGVIDEO\ - 0x0482dde1L, 0x7817, 0x11cf, 0x8a, 0x03, 0x00, 0xaa, 0x00, 0x6e, 0xcb, 0x65 -DEFINE_GUIDSTRUCT("0482dde1-7817-11cf-8a03-00aa006ecb65", KSDATAFORMAT_TYPE_ANALOGVIDEO); -#define KSDATAFORMAT_TYPE_ANALOGVIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_ANALOGVIDEO) - -// FORMAT_AnalogVideo -#define STATIC_KSDATAFORMAT_SPECIFIER_ANALOGVIDEO\ - 0x0482dde0L, 0x7817, 0x11cf, 0x8a, 0x03, 0x00, 0xaa, 0x00, 0x6e, 0xcb, 0x65 -DEFINE_GUIDSTRUCT("0482dde0-7817-11cf-8a03-00aa006ecb65", KSDATAFORMAT_SPECIFIER_ANALOGVIDEO); -#define KSDATAFORMAT_SPECIFIER_ANALOGVIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_ANALOGVIDEO) - -// MEDIATYPE_AnalogAudio -#define STATIC_KSDATAFORMAT_TYPE_ANALOGAUDIO \ - 0x0482dee1L, 0x7817, 0x11cf, 0x8a, 0x03, 0x00, 0xaa, 0x00, 0x6e, 0xcb, 0x65 -DEFINE_GUIDSTRUCT("0482DEE1-7817-11cf-8a03-00aa006ecb65", KSDATAFORMAT_TYPE_ANALOGAUDIO); -#define KSDATAFORMAT_TYPE_ANALOGAUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_ANALOGAUDIO) - -// FORMAT_VBI -#define STATIC_KSDATAFORMAT_SPECIFIER_VBI\ - 0xf72a76e0L, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("f72a76e0-eb0a-11d0-ace4-0000c0cc16ba", KSDATAFORMAT_SPECIFIER_VBI); -#define KSDATAFORMAT_SPECIFIER_VBI DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_VBI) - -// MEDIATYPE_VBI -#define STATIC_KSDATAFORMAT_TYPE_VBI\ - 0xf72a76e1L, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("f72a76e1-eb0a-11d0-ace4-0000c0cc16ba", KSDATAFORMAT_TYPE_VBI); -#define KSDATAFORMAT_TYPE_VBI DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_VBI) - -// SUBTYPE_RAW8 -#define STATIC_KSDATAFORMAT_SUBTYPE_RAW8\ - 0xca20d9a0, 0x3e3e, 0x11d1, 0x9b, 0xf9, 0x0, 0xc0, 0x4f, 0xbb, 0xde, 0xbf -DEFINE_GUIDSTRUCT("ca20d9a0-3e3e-11d1-9bf9-00c04fbbdebf", KSDATAFORMAT_SUBTYPE_RAW8); -#define KSDATAFORMAT_SUBTYPE_RAW8 DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_RAW8) - -// MEDIASUBTYPE_CC -#define STATIC_KSDATAFORMAT_SUBTYPE_CC\ - 0x33214cc1, 0x11f, 0x11d2, 0xb4, 0xb1, 0x0, 0xa0, 0xd1, 0x2, 0xcf, 0xbe -DEFINE_GUIDSTRUCT("33214CC1-011F-11D2-B4B1-00A0D102CFBE", KSDATAFORMAT_SUBTYPE_CC); -#define KSDATAFORMAT_SUBTYPE_CC DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_CC) - -// MEDIASUBTYPE_NABTS -#define STATIC_KSDATAFORMAT_SUBTYPE_NABTS\ - 0xf72a76e2L, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("f72a76e2-eb0a-11d0-ace4-0000c0cc16ba", KSDATAFORMAT_SUBTYPE_NABTS); -#define KSDATAFORMAT_SUBTYPE_NABTS DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_NABTS) - -// MEDIASUBTYPE_TELETEXT -#define STATIC_KSDATAFORMAT_SUBTYPE_TELETEXT\ - 0xf72a76e3L, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("f72a76e3-eb0a-11d0-ace4-0000c0cc16ba", KSDATAFORMAT_SUBTYPE_TELETEXT); -#define KSDATAFORMAT_SUBTYPE_TELETEXT DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_TELETEXT) - - - -/* constants for the biCompression field */ -#define KS_BI_RGB 0L -#define KS_BI_RLE8 1L -#define KS_BI_RLE4 2L -#define KS_BI_BITFIELDS 3L - -typedef struct tagKS_RGBQUAD { // rgbq - BYTE rgbBlue; - BYTE rgbGreen; - BYTE rgbRed; - BYTE rgbReserved; -} KS_RGBQUAD, *PKS_RGBQUAD; - -/* constants for palettes */ -#define KS_iPALETTE_COLORS 256 // Maximum colours in palette -#define KS_iEGA_COLORS 16 // Number colours in EGA palette -#define KS_iMASK_COLORS 3 // Maximum three components -#define KS_iTRUECOLOR 16 // Minimum true colour device -#define KS_iRED 0 // Index position for RED mask -#define KS_iGREEN 1 // Index position for GREEN mask -#define KS_iBLUE 2 // Index position for BLUE mask -#define KS_iPALETTE 8 // Maximum colour depth using a palette -#define KS_iMAXBITS 8 // Maximum bits per colour component -#define KS_SIZE_EGA_PALETTE (KS_iEGA_COLORS * sizeof(KS_RGBQUAD)) -#define KS_SIZE_PALETTE (KS_iPALETTE_COLORS * sizeof(KS_RGBQUAD)) - -typedef struct tagKS_BITMAPINFOHEADER{ - DWORD biSize; - LONG biWidth; - LONG biHeight; - WORD biPlanes; - WORD biBitCount; - DWORD biCompression; - DWORD biSizeImage; - LONG biXPelsPerMeter; - LONG biYPelsPerMeter; - DWORD biClrUsed; - DWORD biClrImportant; -} KS_BITMAPINFOHEADER, *PKS_BITMAPINFOHEADER; - -// Used for true colour images that also have a palette - -typedef struct tag_KS_TRUECOLORINFO { - DWORD dwBitMasks[KS_iMASK_COLORS]; - KS_RGBQUAD bmiColors[KS_iPALETTE_COLORS]; -} KS_TRUECOLORINFO, *PKS_TRUECOLORINFO; - - -#define KS_WIDTHBYTES(bits) ((DWORD)(((bits)+31) & (~31)) / 8) -#define KS_DIBWIDTHBYTES(bi) (DWORD)KS_WIDTHBYTES((DWORD)(bi).biWidth * (DWORD)(bi).biBitCount) -#define KS__DIBSIZE(bi) (KS_DIBWIDTHBYTES(bi) * (DWORD)(bi).biHeight) -#define KS_DIBSIZE(bi) ((bi).biHeight < 0 ? (-1)*(KS__DIBSIZE(bi)) : KS__DIBSIZE(bi)) - -typedef LONGLONG REFERENCE_TIME; - -// 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 tagKS_VIDEOINFOHEADER { - - 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) - - KS_BITMAPINFOHEADER bmiHeader; - -} KS_VIDEOINFOHEADER, *PKS_VIDEOINFOHEADER; - -// !!! WARNING !!! -// DO NOT use the following structure unless you are sure that the BITMAPINFOHEADER -// has a normal biSize == sizeof(BITMAPINFOHEADER) ! -// !!! WARNING !!! - -typedef struct tagKS_VIDEOINFO { - - 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) - - KS_BITMAPINFOHEADER bmiHeader; - - union { - KS_RGBQUAD bmiColors[KS_iPALETTE_COLORS]; // Colour palette - DWORD dwBitMasks[KS_iMASK_COLORS]; // True colour masks - KS_TRUECOLORINFO TrueColorInfo; // Both of the above - }; - -} KS_VIDEOINFO, *PKS_VIDEOINFO; - - -#define KS_SIZE_MASKS (KS_iMASK_COLORS * sizeof(DWORD)) -#define KS_SIZE_PREHEADER (FIELD_OFFSET(KS_VIDEOINFOHEADER,bmiHeader)) - -// For normal size -// #define KS_SIZE_VIDEOHEADER (sizeof(KS_BITMAPINFOHEADER) + KS_SIZE_PREHEADER) -// !!! for abnormal biSizes -#define KS_SIZE_VIDEOHEADER(pbmi) ((pbmi)->bmiHeader.biSize + KS_SIZE_PREHEADER) - -// VBI -// Used for NABTS, CC, Intercast, WST -typedef struct tagKS_VBIINFOHEADER { - ULONG StartLine; // inclusive - ULONG EndLine; // inclusive - ULONG SamplingFrequency; // Hz. - ULONG MinLineStartTime; // microSec * 100 from HSync LE - ULONG MaxLineStartTime; // microSec * 100 from HSync LE - ULONG ActualLineStartTime; // microSec * 100 from HSync LE - ULONG ActualLineEndTime; // microSec * 100 from HSync LE - ULONG VideoStandard; // KS_AnalogVideoStandard* - ULONG SamplesPerLine; - ULONG StrideInBytes; // May be > SamplesPerLine - ULONG BufferSize; // Bytes -} KS_VBIINFOHEADER, *PKS_VBIINFOHEADER; - -// VBI Sampling Rates -#define KS_VBIDATARATE_NABTS (5727272L) -#define KS_VBIDATARATE_CC ( 503493L) // ~= 1/1.986125e-6 -#define KS_VBISAMPLINGRATE_4X_NABTS ((long)(4*KS_VBIDATARATE_NABTS)) -#define KS_VBISAMPLINGRATE_47X_NABTS ((long)(27000000)) -#define KS_VBISAMPLINGRATE_5X_NABTS ((long)(5*KS_VBIDATARATE_NABTS)) - -#define KS_47NABTS_SCALER (KS_VBISAMPLINGRATE_47X_NABTS/(double)KS_VBIDATARATE_NABTS) - -// 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 tagKS_AnalogVideoInfo { - 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) -} KS_ANALOGVIDEOINFO, *PKS_ANALOGVIDEOINFO; - -//=========================================================================== -// Data packet passed on Analog video stream channel change -//=========================================================================== - -#define KS_TVTUNER_CHANGE_BEGIN_TUNE 0x0001L // Starting a tuning operation -#define KS_TVTUNER_CHANGE_END_TUNE 0x0002L // Ending a tuning operation - -typedef struct tagKS_TVTUNER_CHANGE_INFO { - DWORD dwFlags; // KS_TVTUNER_CHANGE_* - DWORD dwCountryCode; - DWORD dwAnalogVideoStandard; // KS_AnalogVideoStandard - DWORD dwChannel; -} KS_TVTUNER_CHANGE_INFO, *PKS_TVTUNER_CHANGE_INFO; - -//=========================================================================== -// Video format blocks -//=========================================================================== - -typedef enum { - KS_MPEG2Level_Low, - KS_MPEG2Level_Main, - KS_MPEG2Level_High1440, - KS_MPEG2Level_High -} KS_MPEG2Level; - -typedef enum { - KS_MPEG2Profile_Simple, - KS_MPEG2Profile_Main, - KS_MPEG2Profile_SNRScalable, - KS_MPEG2Profile_SpatiallyScalable, - KS_MPEG2Profile_High -} KS_MPEG2Profile; - -#define KS_INTERLACE_IsInterlaced 0x00000001 // if 0, other interlace bits are irrelevent -#define KS_INTERLACE_1FieldPerSample 0x00000002 // else 2 fields per media sample -#define KS_INTERLACE_Field1First 0x00000004 // else Field 2 is first; top field in PAL is field 1, top field in NTSC is field 2? -#define KS_INTERLACE_UNUSED 0x00000008 // -#define KS_INTERLACE_FieldPatternMask 0x00000030 // use this mask with AMINTERLACE_FieldPat* -#define KS_INTERLACE_FieldPatField1Only 0x00000000 // Data never contains a Field2 -#define KS_INTERLACE_FieldPatField2Only 0x00000010 // Data never contains a Field1 -#define KS_INTERLACE_FieldPatBothRegular 0x00000020 // There will be a Field2 for every Field1 (required for Weave?) -#define KS_INTERLACE_FieldPatBothIrregular 0x00000030 // Random pattern of Field1s and Field2s -#define KS_INTERLACE_DisplayModeMask 0x000000c0 -#define KS_INTERLACE_DisplayModeBobOnly 0x00000000 -#define KS_INTERLACE_DisplayModeWeaveOnly 0x00000040 -#define KS_INTERLACE_DisplayModeBobOrWeave 0x00000080 - - - -#define KS_MPEG2_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 KS_MPEG2_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 KS_MPEG2_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 KS_MPEG2_SourceIsLetterboxed 0x00000008 //if set, indicates that black bars have been encoded in the top - // and bottom of the video. -#define KS_MPEG2_FilmCameraMode 0x00000010 //if set, indicates "film mode" used for 625/50 content. If cleared, - // indicates that "camera mode" was used. -#define KS_MPEG2_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 KS_MPEG2_DSS_UserData 0x00000040 //if set, the MPEG-2 decoder must process DSS style user data -#define KS_MPEG2_DVB_UserData 0x00000080 //if set, the MPEG-2 decoder must process DVB style user data -#define KS_MPEG2_27MhzTimebase 0x00000100 //if set, the PTS,DTS timestamps advance at 27MHz rather than 90KHz - -typedef struct tagKS_VIDEOINFOHEADER2 { - 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 - DWORD dwReserved1; // must be 0; reject connection otherwise - DWORD dwReserved2; // must be 0; reject connection otherwise - KS_BITMAPINFOHEADER bmiHeader; -} KS_VIDEOINFOHEADER2, *PKS_VIDEOINFOHEADER2; - -typedef struct tagKS_MPEG1VIDEOINFO { - KS_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 -} KS_MPEG1VIDEOINFO, *PKS_MPEG1VIDEOINFO; - -#define KS_MAX_SIZE_MPEG1_SEQUENCE_INFO 140 -#define KS_SIZE_MPEG1VIDEOINFO(pv) (FIELD_OFFSET(KS_MPEG1VIDEOINFO, bSequenceHeader[0]) + (pv)->cbSequenceHeader) -#define KS_MPEG1_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->bSequenceHeader) - -typedef struct tagKS_MPEGVIDEOINFO2 { - KS_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 bSequenceHeader[1]; // DWORD instead of Byte for alignment purposes - // For MPEG-2, if a sequence_header is included, the sequence_extension - // should also be included -} KS_MPEGVIDEOINFO2, *PKS_MPEGVIDEOINFO2; - - -#define KS_SIZE_MPEGVIDEOINFO2(pv) (FIELD_OFFSET(KS_MPEGVIDEOINFO2, bSequenceHeader[0]) + (pv)->cbSequenceHeader) -#define KS_MPEG1_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->bSequenceHeader) - -//=========================================================================== -// Audio format blocks -//=========================================================================== - -//if set, the PTS,DTS timestamps advance at 27MHz rather than 90KHz -#define KS_MPEGAUDIOINFO_27MhzTimebase 0x00000001 - -typedef struct tagKS_MPEAUDIOINFO { - DWORD dwFlags; // use KS_MPEGAUDIOINFO_* defines. Reject connection if undefined bits are not 0 - DWORD dwReserved1; // must be 0; reject connection otherwise - DWORD dwReserved2; // must be 0; reject connection otherwise - DWORD dwReserved3; // must be 0; reject connection otherwise -} KS_MPEGAUDIOINFO, *PKS_MPEGAUDIOINFO; - -//=========================================================================== -// Video DATAFORMATs -//=========================================================================== - -typedef struct tagKS_DATAFORMAT_VIDEOINFOHEADER { - KSDATAFORMAT DataFormat; - KS_VIDEOINFOHEADER VideoInfoHeader; -} KS_DATAFORMAT_VIDEOINFOHEADER, *PKS_DATAFORMAT_VIDEOINFOHEADER; - -typedef struct tagKS_DATAFORMAT_VIDEOINFOHEADER2 { - KSDATAFORMAT DataFormat; - KS_VIDEOINFOHEADER2 VideoInfoHeader2; -} KS_DATAFORMAT_VIDEOINFOHEADER2, *PKS_DATAFORMAT_VIDEOINFOHEADER2; - -typedef struct tagKS_DATAFORMAT_VIDEOINFO_PALETTE { - KSDATAFORMAT DataFormat; - KS_VIDEOINFO VideoInfo; -} KS_DATAFORMAT_VIDEOINFO_PALETTE, *PKS_DATAFORMAT_VIDEOINFO_PALETTE; - -typedef struct tagKS_DATAFORMAT_VBIINFOHEADER { - KSDATAFORMAT DataFormat; - KS_VBIINFOHEADER VBIInfoHeader; -} KS_DATAFORMAT_VBIINFOHEADER, *PKS_DATAFORMAT_VBIINFOHEADER; - -typedef struct _KS_VIDEO_STREAM_CONFIG_CAPS { - GUID guid; // will be MEDIATYPE_Video - ULONG VideoStandard; // logical OR of all AnalogVideoStandards - // supported - SIZE InputSize; // the inherent size of the incoming signal - // (every pixel unique) - SIZE MinCroppingSize; // smallest rcSrc cropping rect allowed - SIZE MaxCroppingSize; // largest rcSrc cropping rect allowed - int CropGranularityX; // granularity of cropping size - int CropGranularityY; - int CropAlignX; // alignment of cropping rect - int CropAlignY; - SIZE MinOutputSize; // smallest bitmap stream can produce - SIZE MaxOutputSize; // largest bitmap stream can produce - int OutputGranularityX; // granularity of output bitmap size - int OutputGranularityY; - int StretchTapsX; // 0, no stretch, 1 pix dup, 2 interp, ... - int StretchTapsY; // Describes quality of hardware scaler - int ShrinkTapsX; // - int ShrinkTapsY; // - LONGLONG MinFrameInterval; // 100 nS units - LONGLONG MaxFrameInterval; - LONG MinBitsPerSecond; - LONG MaxBitsPerSecond; -} KS_VIDEO_STREAM_CONFIG_CAPS, *PKS_VIDEO_STREAM_CONFIG_CAPS; - -//=========================================================================== -// Video DATARANGEs -//=========================================================================== - -typedef struct tagKS_DATARANGE_VIDEO { - KSDATARANGE DataRange; - BOOL bFixedSizeSamples; // all samples same size? - BOOL bTemporalCompression; // all I frames? - DWORD StreamDescriptionFlags; // KS_VIDEO_DESC_* - DWORD MemoryAllocationFlags; // KS_VIDEO_ALLOC_* - KS_VIDEO_STREAM_CONFIG_CAPS ConfigCaps; - KS_VIDEOINFOHEADER VideoInfoHeader; // default format -} KS_DATARANGE_VIDEO, *PKS_DATARANGE_VIDEO; - -typedef struct tagKS_DATARANGE_VIDEO2 { - KSDATARANGE DataRange; - BOOL bFixedSizeSamples; // all samples same size? - BOOL bTemporalCompression; // all I frames? - DWORD StreamDescriptionFlags; // KS_VIDEO_DESC_* - DWORD MemoryAllocationFlags; // KS_VIDEO_ALLOC_* - KS_VIDEO_STREAM_CONFIG_CAPS ConfigCaps; - KS_VIDEOINFOHEADER2 VideoInfoHeader; // default format -} KS_DATARANGE_VIDEO2, *PKS_DATARANGE_VIDEO2; - -typedef struct tagKS_DATARANGE_MPEG1_VIDEO { - KSDATARANGE DataRange; - BOOL bFixedSizeSamples; // all samples same size? - BOOL bTemporalCompression; // all I frames? - DWORD StreamDescriptionFlags; // KS_VIDEO_DESC_* - DWORD MemoryAllocationFlags; // KS_VIDEO_ALLOC_* - KS_VIDEO_STREAM_CONFIG_CAPS ConfigCaps; - KS_MPEG1VIDEOINFO VideoInfoHeader; // default format -} KS_DATARANGE_MPEG1_VIDEO, *PKS_DATARANGE_MPEG1_VIDEO; - -typedef struct tagKS_DATARANGE_MPEG2_VIDEO { - KSDATARANGE DataRange; - BOOL bFixedSizeSamples; // all samples same size? - BOOL bTemporalCompression; // all I frames? - DWORD StreamDescriptionFlags; // KS_VIDEO_DESC_* - DWORD MemoryAllocationFlags; // KS_VIDEO_ALLOC_* - KS_VIDEO_STREAM_CONFIG_CAPS ConfigCaps; - KS_MPEGVIDEOINFO2 VideoInfoHeader; // default format -} KS_DATARANGE_MPEG2_VIDEO, *PKS_DATARANGE_MPEG2_VIDEO; - -typedef struct tagKS_DATARANGE_VIDEO_PALETTE { - KSDATARANGE DataRange; - BOOL bFixedSizeSamples; // all samples same size? - BOOL bTemporalCompression; // all I frames? - DWORD StreamDescriptionFlags; // KS_VIDEO_DESC_* - DWORD MemoryAllocationFlags; // KS_VIDEO_ALLOC_* - KS_VIDEO_STREAM_CONFIG_CAPS ConfigCaps; - KS_VIDEOINFO VideoInfo; // default format -} KS_DATARANGE_VIDEO_PALETTE, *PKS_DATARANGE_VIDEO_PALETTE; - -typedef struct tagKS_DATARANGE_VIDEO_VBI { - KSDATARANGE DataRange; - BOOL bFixedSizeSamples; // all samples same size? - BOOL bTemporalCompression; // all I frames? - DWORD StreamDescriptionFlags; // KS_VIDEO_DESC_* - DWORD MemoryAllocationFlags; // KS_VIDEO_ALLOC_* - KS_VIDEO_STREAM_CONFIG_CAPS ConfigCaps; - KS_VBIINFOHEADER VBIInfoHeader; // default format -} KS_DATARANGE_VIDEO_VBI, *PKS_DATARANGE_VIDEO_VBI; - -typedef struct tagKS_DATARANGE_ANALOGVIDEO { - KSDATARANGE DataRange; - KS_ANALOGVIDEOINFO AnalogVideoInfo; -} KS_DATARANGE_ANALOGVIDEO, *PKS_DATARANGE_ANALOGVIDEO; - -//=========================================================================== -// StreamDescriptionFlags -// -// These define the "purpose" of each video stream -//=========================================================================== - -#define KS_VIDEOSTREAM_PREVIEW 0x0001 // Preview stream -#define KS_VIDEOSTREAM_CAPTURE 0x0002 // Capture stream -#define KS_VIDEOSTREAM_VBI 0x0010 // Field1 VBI -#define KS_VIDEOSTREAM_NABTS 0x0020 // Field1 NABTS -#define KS_VIDEOSTREAM_CC 0x0100 // Closed Captioning -#define KS_VIDEOSTREAM_EDS 0x0200 // Extended Data Services -#define KS_VIDEOSTREAM_TELETEXT 0x0400 // Field1 Teletext only -#define KS_VIDEOSTREAM_STILL 0x1000 // Still image input -#define KS_VIDEOSTREAM_IS_VPE 0x8000 // Is a VPE based stream? - -// MemoryAllocationFlags -#define KS_VIDEO_ALLOC_VPE_SYSTEM 0x0001 // VPE surface in system memory -#define KS_VIDEO_ALLOC_VPE_DISPLAY 0x0002 // VPE surface in display memory -#define KS_VIDEO_ALLOC_VPE_AGP 0x0004 // VPE surface in AGP memory - -////////////////////////////////////////////////////////////// -// Capture driver VBI property sets -////////////////////////////////////////////////////////////// - -// {F162C607-7B35-496f-AD7F-2DCA3B46B718} -#define STATIC_KSPROPSETID_VBICAP_PROPERTIES\ - 0xf162c607, 0x7b35, 0x496f, 0xad, 0x7f, 0x2d, 0xca, 0x3b, 0x46, 0xb7, 0x18 -DEFINE_GUIDSTRUCT("F162C607-7B35-496f-AD7F-2DCA3B46B718", KSPROPSETID_VBICAP_PROPERTIES); -#define KSPROPSETID_VBICAP_PROPERTIES DEFINE_GUIDNAMED(KSPROPSETID_VBICAP_PROPERTIES) - -typedef enum { - KSPROPERTY_VBICAP_PROPERTIES_PROTECTION = 0x01, -} KSPROPERTY_VBICAP; - -typedef struct _VBICAP_PROPERTIES_PROTECTION_S { - KSPROPERTY Property; - ULONG StreamIndex; // Index of stream - ULONG Status; -} VBICAP_PROPERTIES_PROTECTION_S, *PVBICAP_PROPERTIES_PROTECTION_S; -#define KS_VBICAP_PROTECTION_MV_PRESENT 0x0001L -#define KS_VBICAP_PROTECTION_MV_HARDWARE 0x0002L -#define KS_VBICAP_PROTECTION_MV_DETECTED 0x0004L - - -/***************************************************************************/ -/* VBI Related GUIDs, structs and properties for codecs(generic, cc, nabts)*/ -/***************************************************************************/ - -/////////////////////////////////////////////////////////////////////////////////////// -// IP/NABTS Protocol Reserved Group IDs - Overall Range 0x800-0x8FF [Decimal 2048-2079] -// Intervening values(0-F) are used if there are multiple providers at a particular tier -/////////////////////////////////////////////////////////////////////////////////////// - -// Used by individual content creators in show footage/data -#define KS_NABTS_GROUPID_ORIGINAL_CONTENT_BASE 0x800 -#define KS_NABTS_GROUPID_ORIGINAL_CONTENT_ADVERTISER_BASE 0x810 - -// Used by production company in finished show data -#define KS_NABTS_GROUPID_PRODUCTION_COMPANY_CONTENT_BASE 0x820 -#define KS_NABTS_GROUPID_PRODUCTION_COMPANY_ADVERTISER_BASE 0x830 - -// Used by broadcast syndicates in syndicated show data -#define KS_NABTS_GROUPID_SYNDICATED_SHOW_CONTENT_BASE 0x840 -#define KS_NABTS_GROUPID_SYNDICATED_SHOW_ADVERTISER_BASE 0x850 - -// Used by tv networks in network television data -#define KS_NABTS_GROUPID_NETWORK_WIDE_CONTENT_BASE 0x860 -#define KS_NABTS_GROUPID_NETWORK_WIDE_ADVERTISER_BASE 0x870 - -// Used by telvision stations in local programming data -#define KS_NABTS_GROUPID_TELEVISION_STATION_CONTENT_BASE 0x880 -#define KS_NABTS_GROUPID_TELEVISION_STATION_ADVERTISER_BASE 0x890 - -// Used by cable system in cable head-end originated data -#define KS_NABTS_GROUPID_LOCAL_CABLE_SYSTEM_CONTENT_BASE 0x8A0 -#define KS_NABTS_GROUPID_LOCAL_CABLE_SYSTEM_ADVERTISER_BASE 0x8B0 - -// The values between 0x8C0 - 0x8EF are reserved for future expansion - -// Used by Microsoft for Testing purposes (0x8F0 - 0x8FF) -#define KS_NABTS_GROUPID_MICROSOFT_RESERVED_TEST_DATA_BASE 0x8F0 - -////////////////////////////////////////////////////////////// -// Stream Format FEC-corrected NABTS bundles -////////////////////////////////////////////////////////////// - -#define STATIC_KSDATAFORMAT_TYPE_NABTS \ - 0xe757bca0, 0x39ac, 0x11d1, 0xa9, 0xf5, 0x0, 0xc0, 0x4f, 0xbb, 0xde, 0x8f -DEFINE_GUIDSTRUCT("E757BCA0-39AC-11d1-A9F5-00C04FBBDE8F", KSDATAFORMAT_TYPE_NABTS); -#define KSDATAFORMAT_TYPE_NABTS DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_NABTS) - -#define STATIC_KSDATAFORMAT_SUBTYPE_NABTS_FEC \ - 0xe757bca1, 0x39ac, 0x11d1, 0xa9, 0xf5, 0x0, 0xc0, 0x4f, 0xbb, 0xde, 0x8f -DEFINE_GUIDSTRUCT("E757BCA1-39AC-11d1-A9F5-00C04FBBDE8F", KSDATAFORMAT_SUBTYPE_NABTS_FEC); -#define KSDATAFORMAT_SUBTYPE_NABTS_FEC DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_NABTS_FEC) - - -////////////////////////////////////////////////////////////// -// NABTS Bundle data structure definition -////////////////////////////////////////////////////////////// - -#define MAX_NABTS_VBI_LINES_PER_FIELD 11 -#define NABTS_LINES_PER_BUNDLE 16 -#define NABTS_PAYLOAD_PER_LINE 28 -#define NABTS_BYTES_PER_LINE 36 - -typedef struct _NABTSFEC_BUFFER { - ULONG dataSize; - USHORT groupID; - USHORT Reserved; - UCHAR data[NABTS_LINES_PER_BUNDLE * NABTS_PAYLOAD_PER_LINE]; -} NABTSFEC_BUFFER, *PNABTSFEC_BUFFER; - -////////////////////////////////////////////////////////////// -// vbi codec filtering pin properties -////////////////////////////////////////////////////////////// - -#define STATIC_KSPROPSETID_VBICodecFiltering \ - 0xcafeb0caL, 0x8715, 0x11d0, 0xbd, 0x6a, 0x00, 0x35, 0xc0, 0xed, 0xba, 0xbe -DEFINE_GUIDSTRUCT("cafeb0ca-8715-11d0-bd6a-0035c0edbabe", KSPROPSETID_VBICodecFiltering); -#define KSPROPSETID_VBICodecFiltering DEFINE_GUIDNAMED(KSPROPSETID_VBICodecFiltering) - -typedef enum { - KSPROPERTY_VBICODECFILTERING_SCANLINES_REQUESTED_BIT_ARRAY = 0x01, - KSPROPERTY_VBICODECFILTERING_SCANLINES_DISCOVERED_BIT_ARRAY, - KSPROPERTY_VBICODECFILTERING_SUBSTREAMS_REQUESTED_BIT_ARRAY, - KSPROPERTY_VBICODECFILTERING_SUBSTREAMS_DISCOVERED_BIT_ARRAY, - KSPROPERTY_VBICODECFILTERING_STATISTICS, -} KSPROPERTY_VBICODECFILTERING; - -typedef struct _VBICODECFILTERING_SCANLINES { - DWORD DwordBitArray[32]; // An array of scanline bits 0..1024(32*32) -} VBICODECFILTERING_SCANLINES, *PVBICODECFILTERING_SCANLINES; - -typedef struct _VBICODECFILTERING_NABTS_SUBSTREAMS { - DWORD SubstreamMask[128]; // An array of 4096 bits (one for each NABTS GroupID) -} VBICODECFILTERING_NABTS_SUBSTREAMS, *PVBICODECFILTERING_NABTS_SUBSTREAMS; - -typedef struct _VBICODECFILTERING_CC_SUBSTREAMS { - DWORD SubstreamMask; // An array of 32 bits (see KS_CC_SUBSTREAM *) -} VBICODECFILTERING_CC_SUBSTREAMS, *PVBICODECFILTERING_CC_SUBSTREAMS; - -// These KS_CC_SUBSTREAM_* bitmasks are used with VBICODECFILTERING_CC_SUBSTREAMS -#define KS_CC_SUBSTREAM_ODD 0x0001L // Unfiltered Field 1 Data -#define KS_CC_SUBSTREAM_EVEN 0x0002L // Unfiltered Field 2 Data - -// The following flags describe CC field 1 substreams: CC1,CC2,TT1,TT2 -#define KS_CC_SUBSTREAM_FIELD1_MASK 0x00F0L -#define KS_CC_SUBSTREAM_SERVICE_CC1 0x0010L -#define KS_CC_SUBSTREAM_SERVICE_CC2 0x0020L -#define KS_CC_SUBSTREAM_SERVICE_T1 0x0040L -#define KS_CC_SUBSTREAM_SERVICE_T2 0x0080L - -// The following flags describe CC field 2 substreams: CC3,CC4,TT3,TT4,XDS -#define KS_CC_SUBSTREAM_FIELD2_MASK 0x1F00L -#define KS_CC_SUBSTREAM_SERVICE_CC3 0x0100L -#define KS_CC_SUBSTREAM_SERVICE_CC4 0x0200L -#define KS_CC_SUBSTREAM_SERVICE_T3 0x0400L -#define KS_CC_SUBSTREAM_SERVICE_T4 0x0800L -#define KS_CC_SUBSTREAM_SERVICE_XDS 0x1000L - -// Special Note: field 1 or 2 substreams are usually on found on field 1 and 2 respectively -// If the VBI odd/even polarity is reversed, the correct filtered data will still be found. - -/////////////////////////////////////////////////////////////////// -// Hardware decoded CC stream format -/////////////////////////////////////////////////////////////////// - -#define CC_MAX_HW_DECODE_LINES 12 -typedef struct _CC_BYTE_PAIR { - BYTE Decoded[2]; - USHORT Reserved; -} CC_BYTE_PAIR, *PCC_BYTE_PAIR; - -typedef struct _CC_HW_FIELD { - VBICODECFILTERING_SCANLINES ScanlinesRequested; - ULONG fieldFlags; // KS_VBI_FLAG_FIELD1,2 - LONGLONG PictureNumber; - CC_BYTE_PAIR Lines[CC_MAX_HW_DECODE_LINES]; -} CC_HW_FIELD, *PCC_HW_FIELD; - -/////////////////////////////////////////////////////////////////// -// Raw NABTS stream format (TYPE_NABTS, SUBTYPE_NABTS) -/////////////////////////////////////////////////////////////////// - -// These low-level structures are byte packed( -Zp1 ) -#if !defined( PACK_PRAGMAS_NOT_SUPPORTED ) -#include -#endif -typedef struct _NABTS_BUFFER_LINE { - BYTE Confidence; - BYTE Bytes[NABTS_BYTES_PER_LINE]; -} NABTS_BUFFER_LINE, *PNABTS_BUFFER_LINE; - -#define NABTS_BUFFER_PICTURENUMBER_SUPPORT 1 -typedef struct _NABTS_BUFFER { - VBICODECFILTERING_SCANLINES ScanlinesRequested; - LONGLONG PictureNumber; - NABTS_BUFFER_LINE NabtsLines[MAX_NABTS_VBI_LINES_PER_FIELD]; -} NABTS_BUFFER, *PNABTS_BUFFER; -#if !defined( PACK_PRAGMAS_NOT_SUPPORTED ) -#include -#endif - -////////////////////////////////////////////////////////////// -// WST Codec Teletext Media Sample Format -////////////////////////////////////////////////////////////// - -#define WST_TVTUNER_CHANGE_BEGIN_TUNE 0x1000L // Starting a tuning operation -#define WST_TVTUNER_CHANGE_END_TUNE 0x2000L // Ending a tuning operation - -#define MAX_WST_VBI_LINES_PER_FIELD 17 -#define WST_BYTES_PER_LINE 42 - -typedef struct _WST_BUFFER_LINE { - BYTE Confidence; - BYTE Bytes[WST_BYTES_PER_LINE]; -} WST_BUFFER_LINE, *PWST_BUFFER_LINE; - -typedef struct _WST_BUFFER { - VBICODECFILTERING_SCANLINES ScanlinesRequested; - WST_BUFFER_LINE WstLines[MAX_WST_VBI_LINES_PER_FIELD]; -} WST_BUFFER, *PWST_BUFFER; - -// -// Common codec statistics -// - -typedef struct _VBICODECFILTERING_STATISTICS_COMMON { - DWORD InputSRBsProcessed; // upstream SRBs received - DWORD OutputSRBsProcessed; // downstream SRBs sent - DWORD SRBsIgnored; // SRBs ignored due to no requests - DWORD InputSRBsMissing; // SRBs dropped upstream - DWORD OutputSRBsMissing; // Output dropped because no SRB pending - DWORD OutputFailures; // dropped because of other failure - DWORD InternalErrors; // could not process due to int. failure - DWORD ExternalErrors; // could not process due to ext. failure - DWORD InputDiscontinuities; // discontinuities received - DWORD DSPFailures; // DSP confidence failure - DWORD TvTunerChanges; // number of received KS_TVTUNER_CHANGE_BEGIN_TUNE and KS_TVTUNER_CHANGE_END_TUNE pairs. - DWORD VBIHeaderChanges; // number of received KS_VBI_FLAG_VBIINFOHEADER_CHANGE - DWORD LineConfidenceAvg; // Average of all DSP confidence results - DWORD BytesOutput; // Bytes sent downstream -} VBICODECFILTERING_STATISTICS_COMMON, *PVBICODECFILTERING_STATISTICS_COMMON; - -typedef struct _VBICODECFILTERING_STATISTICS_COMMON_PIN { - DWORD SRBsProcessed; // SRBs sent/received - DWORD SRBsIgnored; // SRBs ignored due to filtering - DWORD SRBsMissing; // SRBs not sent/received - DWORD InternalErrors; // could not send/receive due to int. failure - DWORD ExternalErrors; // could not send/receive due to ext. failure - DWORD Discontinuities; // discontinuities received/sent - DWORD LineConfidenceAvg; // Average of all DSP confidence results for this pin - DWORD BytesOutput; // Bytes sent downstream -} VBICODECFILTERING_STATISTICS_COMMON_PIN, *PVBICODECFILTERING_STATISTICS_COMMON_PIN; - -// -// Codec-specific statistics - NABTS -// - -typedef struct _VBICODECFILTERING_STATISTICS_NABTS { - VBICODECFILTERING_STATISTICS_COMMON Common; // Generic VBI statistics - DWORD FECBundleBadLines; // Un-FEC-correctable lines - DWORD FECQueueOverflows; // Number of times FEC queue overflowed - DWORD FECCorrectedLines; // Lines CSUM corrected by FEC - DWORD FECUncorrectableLines; // FEC input lines not CSUM correctable - DWORD BundlesProcessed; // Bundles received from FEC - DWORD BundlesSent2IP; // Bundles sent to IP driver - DWORD FilteredLines; // Lines processed and then dropped - // because no one was interested -} VBICODECFILTERING_STATISTICS_NABTS, *PVBICODECFILTERING_STATISTICS_NABTS; - -typedef struct _VBICODECFILTERING_STATISTICS_NABTS_PIN { - VBICODECFILTERING_STATISTICS_COMMON_PIN Common;// Generic VBI pin statistics -} VBICODECFILTERING_STATISTICS_NABTS_PIN, *PVBICODECFILTERING_STATISTICS_NABTS_PIN; - -// -// Codec-specific statistics - Closed Caption -// - -typedef struct _VBICODECFILTERING_STATISTICS_CC { - VBICODECFILTERING_STATISTICS_COMMON Common; // Generic VBI statistics -} VBICODECFILTERING_STATISTICS_CC, *PVBICODECFILTERING_STATISTICS_CC; - - -typedef struct _VBICODECFILTERING_STATISTICS_CC_PIN { - VBICODECFILTERING_STATISTICS_COMMON_PIN Common;// Generic VBI pin statistics -} VBICODECFILTERING_STATISTICS_CC_PIN, *PVBICODECFILTERING_STATISTICS_CC_PIN; - -// -// Codec-specific statistics - Closed Caption -// - -typedef struct _VBICODECFILTERING_STATISTICS_TELETEXT { - VBICODECFILTERING_STATISTICS_COMMON Common; // Generic VBI statistics -} VBICODECFILTERING_STATISTICS_TELETEXT, *PVBICODECFILTERING_STATISTICS_TELETEXT; - -typedef struct _VBICODECFILTERING_STATISTICS_TELETEXT_PIN { - VBICODECFILTERING_STATISTICS_COMMON_PIN Common;// Generic VBI pin statistics -} VBICODECFILTERING_STATISTICS_TELETEXT_PIN, *PVBICODECFILTERING_STATISTICS_TELETEXT_PIN; - -//////////////////////////////////////////////////////////////////////////// -// VBI codec property structures(based on KSPROPERTY_VBICODECFILTERING enum) -//////////////////////////////////////////////////////////////////////////// - -// *** Most codecs support this property -// KSPROPERTY_VBICODECFILTERING_SCANLINES_REQUESTED_BIT_ARRAY -// KSPROPERTY_VBICODECFILTERING_SCANLINES_DISCOVERED_BIT_ARRAY, -typedef struct { - KSPROPERTY Property; - VBICODECFILTERING_SCANLINES Scanlines; -} KSPROPERTY_VBICODECFILTERING_SCANLINES_S, *PKSPROPERTY_VBICODECFILTERING_SCANLINES_S; - -// *** NABTS codecs support this property -// KSPROPERTY_VBICODECFILTERING_SUBSTREAMS_REQUESTED_BIT_ARRAY, -// KSPROPERTY_VBICODECFILTERING_SUBSTREAMS_DISCOVERED_BIT_ARRAY, -typedef struct { - KSPROPERTY Property; - VBICODECFILTERING_NABTS_SUBSTREAMS Substreams; -} KSPROPERTY_VBICODECFILTERING_NABTS_SUBSTREAMS_S, *PKSPROPERTY_VBICODECFILTERING_NABTS_SUBSTREAMS_S; - -// *** Closed captioning codecs support this property -// KSPROPERTY_VBICODECFILTERING_SUBSTREAMS_REQUESTED_BIT_ARRAY, -// KSPROPERTY_VBICODECFILTERING_SUBSTREAMS_DISCOVERED_BIT_ARRAY, -typedef struct { - KSPROPERTY Property; - VBICODECFILTERING_CC_SUBSTREAMS Substreams; -} KSPROPERTY_VBICODECFILTERING_CC_SUBSTREAMS_S, *PKSPROPERTY_VBICODECFILTERING_CC_SUBSTREAMS_S; - -// *** Most codecs support these versions of the global and pin properties -// KSPROPERTY_VBICODECFILTERING_STATISTICS -typedef struct { - KSPROPERTY Property; - VBICODECFILTERING_STATISTICS_COMMON Statistics; -} KSPROPERTY_VBICODECFILTERING_STATISTICS_COMMON_S, *PKSPROPERTY_VBICODECFILTERING_STATISTICS_COMMON_S; - -typedef struct { - KSPROPERTY Property; - VBICODECFILTERING_STATISTICS_COMMON_PIN Statistics; -} KSPROPERTY_VBICODECFILTERING_STATISTICS_COMMON_PIN_S, *PKSPROPERTY_VBICODECFILTERING_STATISTICS_COMMON_PIN_S; - -// *** NABTS codecs support this version of the global and pin properties -// KSPROPERTY_VBICODECFILTERING_STATISTICS -typedef struct { - KSPROPERTY Property; - VBICODECFILTERING_STATISTICS_NABTS Statistics; -} KSPROPERTY_VBICODECFILTERING_STATISTICS_NABTS_S, *PKSPROPERTY_VBICODECFILTERING_STATISTICS_NABTS_S; - -typedef struct { - KSPROPERTY Property; - VBICODECFILTERING_STATISTICS_NABTS_PIN Statistics; -} KSPROPERTY_VBICODECFILTERING_STATISTICS_NABTS_PIN_S, *PKSPROPERTY_VBICODECFILTERING_STATISTICS_NABTS_PIN_S; - -// *** Closed captioning codecs support this version of the global and pin properties -// KSPROPERTY_VBICODECFILTERING_STATISTICS - -typedef struct { - KSPROPERTY Property; - VBICODECFILTERING_STATISTICS_CC Statistics; -} KSPROPERTY_VBICODECFILTERING_STATISTICS_CC_S, *PKSPROPERTY_VBICODECFILTERING_STATISTICS_CC_S; - -typedef struct { - KSPROPERTY Property; - VBICODECFILTERING_STATISTICS_CC_PIN Statistics; -} KSPROPERTY_VBICODECFILTERING_STATISTICS_CC_PIN_S, *PKSPROPERTY_VBICODECFILTERING_STATISTICS_CC_PIN_S; - -// Standard Pin Names for the video capture filter -//=========================================================================== - -#define STATIC_PINNAME_VIDEO_CAPTURE \ - 0xfb6c4281, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -#define STATIC_PINNAME_CAPTURE STATIC_PINNAME_VIDEO_CAPTURE -DEFINE_GUIDSTRUCT("FB6C4281-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_CAPTURE); -#define PINNAME_VIDEO_CAPTURE DEFINE_GUIDNAMED(PINNAME_VIDEO_CAPTURE) -#define PINNAME_CAPTURE PINNAME_VIDEO_CAPTURE - -#define STATIC_PINNAME_VIDEO_CC_CAPTURE \ - 0x1aad8061, 0x12d, 0x11d2, 0xb4, 0xb1, 0x0, 0xa0, 0xd1, 0x2, 0xcf, 0xbe -#define STATIC_PINNAME_CC_CAPTURE STATIC_PINNAME_VIDEO_CC_CAPTURE -DEFINE_GUIDSTRUCT("1AAD8061-012D-11d2-B4B1-00A0D102CFBE", PINNAME_VIDEO_CC_CAPTURE); -#define PINNAME_VIDEO_CC_CAPTURE DEFINE_GUIDNAMED(PINNAME_VIDEO_CC_CAPTURE) - -#define STATIC_PINNAME_VIDEO_NABTS_CAPTURE \ - 0x29703660, 0x498a, 0x11d2, 0xb4, 0xb1, 0x0, 0xa0, 0xd1, 0x2, 0xcf, 0xbe -#define STATIC_PINNAME_NABTS_CAPTURE STATIC_PINNAME_VIDEO_NABTS_CAPTURE -DEFINE_GUIDSTRUCT("29703660-498A-11d2-B4B1-00A0D102CFBE", PINNAME_VIDEO_NABTS_CAPTURE); -#define PINNAME_VIDEO_NABTS_CAPTURE DEFINE_GUIDNAMED(PINNAME_VIDEO_NABTS_CAPTURE) - -#define STATIC_PINNAME_VIDEO_PREVIEW \ - 0xfb6c4282, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -#define STATIC_PINNAME_PREVIEW STATIC_PINNAME_VIDEO_PREVIEW -DEFINE_GUIDSTRUCT("FB6C4282-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_PREVIEW); -#define PINNAME_VIDEO_PREVIEW DEFINE_GUIDNAMED(PINNAME_VIDEO_PREVIEW) -#define PINNAME_PREVIEW PINNAME_VIDEO_PREVIEW - -#define STATIC_PINNAME_VIDEO_ANALOGVIDEOIN \ - 0xfb6c4283, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("FB6C4283-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_ANALOGVIDEOIN); -#define PINNAME_VIDEO_ANALOGVIDEOIN DEFINE_GUIDNAMED(PINNAME_VIDEO_ANALOGVIDEOIN) - -#define STATIC_PINNAME_VIDEO_VBI \ - 0xfb6c4284, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("FB6C4284-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_VBI); -#define PINNAME_VIDEO_VBI DEFINE_GUIDNAMED(PINNAME_VIDEO_VBI) - -#define STATIC_PINNAME_VIDEO_VIDEOPORT \ - 0xfb6c4285, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("FB6C4285-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_VIDEOPORT); -#define PINNAME_VIDEO_VIDEOPORT DEFINE_GUIDNAMED(PINNAME_VIDEO_VIDEOPORT) - -#define STATIC_PINNAME_VIDEO_NABTS \ - 0xfb6c4286, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("FB6C4286-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_NABTS); -#define PINNAME_VIDEO_NABTS DEFINE_GUIDNAMED(PINNAME_VIDEO_NABTS) - -#define STATIC_PINNAME_VIDEO_EDS \ - 0xfb6c4287, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("FB6C4287-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_EDS); -#define PINNAME_VIDEO_EDS DEFINE_GUIDNAMED(PINNAME_VIDEO_EDS) - -#define STATIC_PINNAME_VIDEO_TELETEXT \ - 0xfb6c4288, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("FB6C4288-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_TELETEXT); -#define PINNAME_VIDEO_TELETEXT DEFINE_GUIDNAMED(PINNAME_VIDEO_TELETEXT) - -#define STATIC_PINNAME_VIDEO_CC \ - 0xfb6c4289, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("FB6C4289-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_CC); -#define PINNAME_VIDEO_CC DEFINE_GUIDNAMED(PINNAME_VIDEO_CC) - -#define STATIC_PINNAME_VIDEO_STILL \ - 0xfb6c428A, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("FB6C428A-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_STILL); -#define PINNAME_VIDEO_STILL DEFINE_GUIDNAMED(PINNAME_VIDEO_STILL) - -#define STATIC_PINNAME_VIDEO_TIMECODE \ - 0xfb6c428B, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("FB6C428B-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_TIMECODE); -#define PINNAME_VIDEO_TIMECODE DEFINE_GUIDNAMED(PINNAME_VIDEO_TIMECODE) - -#define STATIC_PINNAME_VIDEO_VIDEOPORT_VBI \ - 0xfb6c428C, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("FB6C428C-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_VIDEOPORT_VBI); -#define PINNAME_VIDEO_VIDEOPORT_VBI DEFINE_GUIDNAMED(PINNAME_VIDEO_VIDEOPORT_VBI) - -//=========================================================================== -// KSSTREAM_HEADER extensions for digital video -//=========================================================================== - -#define KS_VIDEO_FLAG_FRAME 0x0000L // Frame or Field (default is frame) -#define KS_VIDEO_FLAG_FIELD1 0x0001L -#define KS_VIDEO_FLAG_FIELD2 0x0002L - -#define KS_VIDEO_FLAG_I_FRAME 0x0000L // I, B, or P (default is I) -#define KS_VIDEO_FLAG_P_FRAME 0x0010L -#define KS_VIDEO_FLAG_B_FRAME 0x0020L - -typedef struct tagKS_FRAME_INFO { - ULONG ExtendedHeaderSize; // Size of this extended header - DWORD dwFrameFlags; // Field1, Field2, or Frame - LONGLONG PictureNumber; - LONGLONG DropCount; - - // The following are only set when using OverlayMixer - HANDLE hDirectDraw; // user mode DDraw handle - HANDLE hSurfaceHandle; // user mode surface handle - RECT DirectDrawRect; // portion of surface locked - // Reserved fields, never reference these - DWORD Reserved1; - DWORD Reserved2; - DWORD Reserved3; - DWORD Reserved4; -} KS_FRAME_INFO, *PKS_FRAME_INFO; - -//=========================================================================== -// KSSTREAM_HEADER extensions for VBI -//=========================================================================== - -#define KS_VBI_FLAG_FIELD1 0x0001L -#define KS_VBI_FLAG_FIELD2 0x0002L - -#define KS_VBI_FLAG_MV_PRESENT 0x0100L -#define KS_VBI_FLAG_MV_HARDWARE 0x0200L -#define KS_VBI_FLAG_MV_DETECTED 0x0400L - -#define KS_VBI_FLAG_TVTUNER_CHANGE 0x0010L // TvTunerChangeInfo is valid -#define KS_VBI_FLAG_VBIINFOHEADER_CHANGE 0x0020L // VBIInfoHeader is valid - -typedef struct tagKS_VBI_FRAME_INFO { - ULONG ExtendedHeaderSize; // Size of this extended header - DWORD dwFrameFlags; // Field1, Field2, or Frame; & etc - LONGLONG PictureNumber; // Test only? - LONGLONG DropCount; // Test only? - DWORD dwSamplingFrequency; - KS_TVTUNER_CHANGE_INFO TvTunerChangeInfo; - KS_VBIINFOHEADER VBIInfoHeader; -} KS_VBI_FRAME_INFO, *PKS_VBI_FRAME_INFO; - - -//=========================================================================== -// Analog video formats, used with: -// Analog Video Decoders -// TVTuners -// Analog Video Encoders -// -// XXX_STANDARDS_SUPPORTED returns a bitmask -//=========================================================================== - -typedef enum -{ - KS_AnalogVideo_None = 0x00000000, // This is a digital sensor - KS_AnalogVideo_NTSC_M = 0x00000001, // 75 IRE Setup - KS_AnalogVideo_NTSC_M_J = 0x00000002, // Japan, 0 IRE Setup - KS_AnalogVideo_NTSC_433 = 0x00000004, - - KS_AnalogVideo_PAL_B = 0x00000010, - KS_AnalogVideo_PAL_D = 0x00000020, - KS_AnalogVideo_PAL_G = 0x00000040, - KS_AnalogVideo_PAL_H = 0x00000080, - KS_AnalogVideo_PAL_I = 0x00000100, - KS_AnalogVideo_PAL_M = 0x00000200, - KS_AnalogVideo_PAL_N = 0x00000400, - - KS_AnalogVideo_PAL_60 = 0x00000800, - - KS_AnalogVideo_SECAM_B = 0x00001000, - KS_AnalogVideo_SECAM_D = 0x00002000, - KS_AnalogVideo_SECAM_G = 0x00004000, - KS_AnalogVideo_SECAM_H = 0x00008000, - KS_AnalogVideo_SECAM_K = 0x00010000, - KS_AnalogVideo_SECAM_K1 = 0x00020000, - KS_AnalogVideo_SECAM_L = 0x00040000, - KS_AnalogVideo_SECAM_L1 = 0x00080000, - - KS_AnalogVideo_PAL_N_COMBO - = 0x00100000 -} KS_AnalogVideoStandard; - -#define KS_AnalogVideo_NTSC_Mask 0x00000007 -#define KS_AnalogVideo_PAL_Mask 0x00100FF0 -#define KS_AnalogVideo_SECAM_Mask 0x000FF000 - -//=========================================================================== -// Property set definitions -// The comments show whether a given property is: -// R : READ only -// w : WRITE only -// RW : READ / WRITE -// O : Optional (return E_UNSUPPORTED if you don't handle this) -//=========================================================================== - -#define STATIC_PROPSETID_ALLOCATOR_CONTROL\ - 0x53171960, 0x148e, 0x11d2, 0x99, 0x79, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba -DEFINE_GUIDSTRUCT("53171960-148E-11d2-9979-0000C0CC16BA", PROPSETID_ALLOCATOR_CONTROL); -#define PROPSETID_ALLOCATOR_CONTROL DEFINE_GUIDNAMED(PROPSETID_ALLOCATOR_CONTROL) -typedef enum { - KSPROPERTY_ALLOCATOR_CONTROL_HONOR_COUNT, // R O (will allocate exactly this number of buffers) - KSPROPERTY_ALLOCATOR_CONTROL_SURFACE_SIZE, // R O (return 2 DWORDs specifying surface size) - // W I (informn a capture driver whether interleave capture is possible or - // not - a value of 1 means that interleaved capture is supported) - KSPROPERTY_ALLOCATOR_CONTROL_CAPTURE_CAPS, - - // R O (if value == 1, then the ovmixer will turn on the DDVP_INTERLEAVE - // flag thus allowing interleaved capture of the video) - KSPROPERTY_ALLOCATOR_CONTROL_CAPTURE_INTERLEAVE, -} KSPROPERTY_ALLOCATOR_CONTROL; - -typedef struct { - //KSPROPERTY Property; - ULONG CX; - ULONG CY; -} KSPROPERTY_ALLOCATOR_CONTROL_SURFACE_SIZE_S, *PKSPROPERTY_ALLOCATOR_CONTROL_SURFACE_SIZE_S; - -typedef struct { - //KSPROPERTY Property; - ULONG InterleavedCapSupported; -} KSPROPERTY_ALLOCATOR_CONTROL_CAPTURE_CAPS_S, *PKSPROPERTY_ALLOCATOR_CONTROL_CAPTURE_CAPS_S; - - -typedef struct { - //KSPROPERTY Property; - ULONG InterleavedCapPossible; -} KSPROPERTY_ALLOCATOR_CONTROL_CAPTURE_INTERLEAVE_S, *PKSPROPERTY_ALLOCATOR_CONTROL_CAPTURE_INTERLEAVE_S; - -//=========================================================================== - -#define STATIC_PROPSETID_VIDCAP_VIDEOPROCAMP\ - 0xC6E13360L, 0x30AC, 0x11d0, 0xa1, 0x8c, 0x00, 0xA0, 0xC9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("C6E13360-30AC-11d0-A18C-00A0C9118956", PROPSETID_VIDCAP_VIDEOPROCAMP); -#define PROPSETID_VIDCAP_VIDEOPROCAMP DEFINE_GUIDNAMED(PROPSETID_VIDCAP_VIDEOPROCAMP) - -typedef enum { - KSPROPERTY_VIDEOPROCAMP_BRIGHTNESS, // RW O - KSPROPERTY_VIDEOPROCAMP_CONTRAST, // RW O - KSPROPERTY_VIDEOPROCAMP_HUE, // RW O - KSPROPERTY_VIDEOPROCAMP_SATURATION, // RW O - KSPROPERTY_VIDEOPROCAMP_SHARPNESS, // RW O - KSPROPERTY_VIDEOPROCAMP_GAMMA, // RW O - KSPROPERTY_VIDEOPROCAMP_COLORENABLE, // RW O - KSPROPERTY_VIDEOPROCAMP_WHITEBALANCE, // RW O - KSPROPERTY_VIDEOPROCAMP_BACKLIGHT_COMPENSATION,// RW O - KSPROPERTY_VIDEOPROCAMP_GAIN, // RW O - KSPROPERTY_VIDEOPROCAMP_DIGITAL_MULTIPLIER, // RW O - KSPROPERTY_VIDEOPROCAMP_DIGITAL_MULTIPLIER_LIMIT,// RW O - KSPROPERTY_VIDEOPROCAMP_WHITEBALANCE_COMPONENT, // RW O - KSPROPERTY_VIDEOPROCAMP_POWERLINE_FREQUENCY // RW O -} KSPROPERTY_VIDCAP_VIDEOPROCAMP; - -typedef struct { - KSPROPERTY Property; - LONG Value; // Value to set or get - ULONG Flags; // KSPROPERTY_VIDEOPROCAMP_FLAGS_* - ULONG Capabilities; // KSPROPERTY_VIDEOPROCAMP_FLAGS_* -} KSPROPERTY_VIDEOPROCAMP_S, *PKSPROPERTY_VIDEOPROCAMP_S; - -typedef struct { - KSP_NODE NodeProperty; - LONG Value; // Value to set or get - ULONG Flags; // KSPROPERTY_VIDEOPROCAMP_FLAGS_* - ULONG Capabilities; // KSPROPERTY_VIDEOPROCAMP_FLAGS_* -} KSPROPERTY_VIDEOPROCAMP_NODE_S, *PKSPROPERTY_VIDEOPROCAMP_NODE_S; - -typedef struct { - KSPROPERTY Property; - LONG Value1; - ULONG Flags; - ULONG Capabilities; - LONG Value2; -} KSPROPERTY_VIDEOPROCAMP_S2, *PKSPROPERTY_VIDEOPROCAMP_S2; - -typedef struct { - KSP_NODE NodeProperty; - LONG Value1; - ULONG Flags; - ULONG Capabilities; - LONG Value2; -} KSPROPERTY_VIDEOPROCAMP_NODE_S2, *PKSPROPERTY_VIDEOPROCAMP_NODE_S2; - -#define KSPROPERTY_VIDEOPROCAMP_FLAGS_AUTO 0X0001L -#define KSPROPERTY_VIDEOPROCAMP_FLAGS_MANUAL 0X0002L - -//=========================================================================== - -#define STATIC_PROPSETID_VIDCAP_SELECTOR \ - 0x1ABDAECA, 0x68B6, 0x4F83, 0x93, 0x71, 0xB4, 0x13, 0x90, 0x7C, 0x7B, 0x9F -DEFINE_GUIDSTRUCT("1ABDAECA-68B6-4F83-9371-B413907C7B9F", PROPSETID_VIDCAP_SELECTOR); -#define PROPSETID_VIDCAP_SELECTOR DEFINE_GUIDNAMED(PROPSETID_VIDCAP_SELECTOR) - -typedef enum { - KSPROPERTY_SELECTOR_SOURCE_NODE_ID, // RW - KSPROPERTY_SELECTOR_NUM_SOURCES // R -} KSPROPERTY_VIDCAP_SELECTOR, *PKSPROPERTY_VIDCAP_SELECTOR; - -typedef struct { - KSPROPERTY Property; - LONG Value; // Value to set or get - ULONG Flags; - ULONG Capabilities; -} KSPROPERTY_SELECTOR_S, *PKSPROPERTY_SELECTOR_S; - -typedef struct { - KSP_NODE NodeProperty; - LONG Value; // Value to set or get - ULONG Flags; - ULONG Capabilities; -} KSPROPERTY_SELECTOR_NODE_S, *PKSPROPERTY_SELECTOR_NODE_S; - - -//=========================================================================== - - -#define STATIC_PROPSETID_TUNER\ - 0x6a2e0605L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("6a2e0605-28e4-11d0-a18c-00a0c9118956", PROPSETID_TUNER); -#define PROPSETID_TUNER DEFINE_GUIDNAMED(PROPSETID_TUNER) - -typedef enum { - KSPROPERTY_TUNER_CAPS, // R -overall device capabilities - KSPROPERTY_TUNER_MODE_CAPS, // R -capabilities in this mode - KSPROPERTY_TUNER_MODE, // RW -set a mode (TV, FM, AM, DSS) - KSPROPERTY_TUNER_STANDARD, // R -get TV standard (only if TV mode) - KSPROPERTY_TUNER_FREQUENCY, // RW -set/get frequency - KSPROPERTY_TUNER_INPUT, // RW -select an input - KSPROPERTY_TUNER_STATUS, // R -tuning status - KSPROPERTY_TUNER_IF_MEDIUM // R O-Medium for IF or Transport Pin -} KSPROPERTY_TUNER; - -typedef enum { - KSPROPERTY_TUNER_MODE_TV = 0X0001, - KSPROPERTY_TUNER_MODE_FM_RADIO = 0X0002, - KSPROPERTY_TUNER_MODE_AM_RADIO = 0X0004, - KSPROPERTY_TUNER_MODE_DSS = 0X0008, - KSPROPERTY_TUNER_MODE_ATSC = 0X0010, // also used for DVB-T, DVB-C -} KSPROPERTY_TUNER_MODES; - -// Describes how the device tunes. Only one of these flags may be set -// in KSPROPERTY_TUNER_MODE_CAPS_S.Strategy - -// Describe how the driver should attempt to tune: -// EXACT: just go to the frequency specified (no fine tuning) -// FINE: (slow) do an exhaustive search for the best signal -// COARSE: (fast) use larger frequency jumps to just determine if any signal - -typedef enum { - KS_TUNER_TUNING_EXACT = 1, // No fine tuning - KS_TUNER_TUNING_FINE, // Fine grained search - KS_TUNER_TUNING_COARSE, // Coarse search -}KS_TUNER_TUNING_FLAGS; - -typedef enum { - KS_TUNER_STRATEGY_PLL = 0X01, // Tune by PLL offset - KS_TUNER_STRATEGY_SIGNAL_STRENGTH = 0X02, // Tune by signal strength - KS_TUNER_STRATEGY_DRIVER_TUNES = 0X04, // Driver does fine tuning -}KS_TUNER_STRATEGY; - -typedef struct { - KSPROPERTY Property; - ULONG ModesSupported; // KS_PROPERTY_TUNER_MODES_* - KSPIN_MEDIUM VideoMedium; // GUID_NULL (no pin), or GUID - KSPIN_MEDIUM TVAudioMedium; // GUID_NULL (no pin), or GUID - KSPIN_MEDIUM RadioAudioMedium; // GUID_NULL (no pin), or GUID -} KSPROPERTY_TUNER_CAPS_S, *PKSPROPERTY_TUNER_CAPS_S; - -typedef struct { - KSPROPERTY Property; - KSPIN_MEDIUM IFMedium; // GUID_NULL (no pin), or GUID -} KSPROPERTY_TUNER_IF_MEDIUM_S, *PKSPROPERTY_TUNER_IF_MEDIUM_S; - -typedef struct { - KSPROPERTY Property; - ULONG Mode; // IN: KSPROPERTY_TUNER_MODE - ULONG StandardsSupported; // KS_AnalogVideo_* (if TV or DSS) - ULONG MinFrequency; // Hz - ULONG MaxFrequency; // Hz - ULONG TuningGranularity; // Hz - ULONG NumberOfInputs; // count of inputs - ULONG SettlingTime; // milliSeconds - ULONG Strategy; // KS_TUNER_STRATEGY -} KSPROPERTY_TUNER_MODE_CAPS_S, *PKSPROPERTY_TUNER_MODE_CAPS_S; - -typedef struct { - KSPROPERTY Property; - ULONG Mode; // IN: KSPROPERTY_TUNER_MODE -} KSPROPERTY_TUNER_MODE_S, *PKSPROPERTY_TUNER_MODE_S; - -typedef struct { - KSPROPERTY Property; - ULONG Frequency; // Hz - ULONG LastFrequency; // Hz (last known good) - ULONG TuningFlags; // KS_TUNER_TUNING_FLAGS - ULONG VideoSubChannel; // DSS - ULONG AudioSubChannel; // DSS - ULONG Channel; // VBI decoders - ULONG Country; // VBI decoders -} KSPROPERTY_TUNER_FREQUENCY_S, *PKSPROPERTY_TUNER_FREQUENCY_S; - -typedef struct { - KSPROPERTY Property; - ULONG Standard; // KS_AnalogVideo_* -} KSPROPERTY_TUNER_STANDARD_S, *PKSPROPERTY_TUNER_STANDARD_S; - -typedef struct { - KSPROPERTY Property; - ULONG InputIndex; // 0 to (n-1) inputs -} KSPROPERTY_TUNER_INPUT_S, *PKSPROPERTY_TUNER_INPUT_S; - -typedef struct { - KSPROPERTY Property; - ULONG CurrentFrequency; // Hz - ULONG PLLOffset; // if Strategy.KS_TUNER_STRATEGY_PLL - ULONG SignalStrength; // if Stretegy.KS_TUNER_STRATEGY_SIGNAL_STRENGTH - ULONG Busy; // TRUE if in the process of tuning -} KSPROPERTY_TUNER_STATUS_S, *PKSPROPERTY_TUNER_STATUS_S; - -#define STATIC_EVENTSETID_TUNER\ - 0x6a2e0606L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("6a2e0606-28e4-11d0-a18c-00a0c9118956", EVENTSETID_TUNER); -#define EVENTSETID_TUNER DEFINE_GUIDNAMED(EVENTSETID_TUNER) - -typedef enum { - KSEVENT_TUNER_CHANGED -} KSEVENT_TUNER; - - -//=========================================================================== - -// USB Video Class Definitions - -#define STATIC_KSNODETYPE_VIDEO_STREAMING \ - 0xDFF229E1L, 0xF70F, 0x11D0, 0xB9, 0x17, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("DFF229E1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_VIDEO_STREAMING); -#define KSNODETYPE_VIDEO_STREAMING DEFINE_GUIDNAMED(KSNODETYPE_VIDEO_STREAMING) - -#define STATIC_KSNODETYPE_VIDEO_INPUT_TERMINAL \ - 0xDFF229E2L, 0xF70F, 0x11D0, 0xB9, 0x17, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("DFF229E2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_VIDEO_INPUT_TERMINAL); -#define KSNODETYPE_VIDEO_INPUT_TERMINAL DEFINE_GUIDNAMED(KSNODETYPE_VIDEO_INPUT_TERMINAL) - -#define STATIC_KSNODETYPE_VIDEO_OUTPUT_TERMINAL \ - 0xDFF229E3L, 0xF70F, 0x11D0, 0xB9, 0x17, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("DFF229E3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_VIDEO_OUTPUT_TERMINAL); -#define KSNODETYPE_VIDEO_OUTPUT_TERMINAL DEFINE_GUIDNAMED(KSNODETYPE_VIDEO_OUTPUT_TERMINAL) - -#define STATIC_KSNODETYPE_VIDEO_SELECTOR \ - 0xDFF229E4L, 0xF70F, 0x11D0, 0xB9, 0x17, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("DFF229E4-F70F-11D0-B917-00A0C9223196", KSNODETYPE_VIDEO_SELECTOR); -#define KSNODETYPE_VIDEO_SELECTOR DEFINE_GUIDNAMED(KSNODETYPE_VIDEO_SELECTOR) - -#define STATIC_KSNODETYPE_VIDEO_PROCESSING \ - 0xDFF229E5L, 0xF70F, 0x11D0, 0xB9, 0x17, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("DFF229E5-F70F-11D0-B917-00A0C9223196", KSNODETYPE_VIDEO_PROCESSING); -#define KSNODETYPE_VIDEO_PROCESSING DEFINE_GUIDNAMED(KSNODETYPE_VIDEO_PROCESSING) - -#define STATIC_KSNODETYPE_VIDEO_CAMERA_TERMINAL \ - 0xDFF229E6L, 0xF70F, 0x11D0, 0xB9, 0x17, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("DFF229E6-F70F-11D0-B917-00A0C9223196", KSNODETYPE_VIDEO_CAMERA_TERMINAL); -#define KSNODETYPE_VIDEO_CAMERA_TERMINAL DEFINE_GUIDNAMED(KSNODETYPE_VIDEO_CAMERA_TERMINAL) - -#define STATIC_KSNODETYPE_VIDEO_INPUT_MTT \ - 0xDFF229E7L, 0xF70F, 0x11D0, 0xB9, 0x17, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("DFF229E7-F70F-11D0-B917-00A0C9223196", KSNODETYPE_VIDEO_INPUT_MTT); -#define KSNODETYPE_VIDEO_INPUT_MTT DEFINE_GUIDNAMED(KSNODETYPE_VIDEO_INPUT_MTT) - -#define STATIC_KSNODETYPE_VIDEO_OUTPUT_MTT \ - 0xDFF229E8L, 0xF70F, 0x11D0, 0xB9, 0x17, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("DFF229E8-F70F-11D0-B917-00A0C9223196", KSNODETYPE_VIDEO_OUTPUT_MTT); -#define KSNODETYPE_VIDEO_OUTPUT_MTT DEFINE_GUIDNAMED(KSNODETYPE_VIDEO_OUTPUT_MTT) - -//=========================================================================== - - -#define STATIC_PROPSETID_VIDCAP_VIDEOENCODER\ - 0x6a2e0610L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("6a2e0610-28e4-11d0-a18c-00a0c9118956", PROPSETID_VIDCAP_VIDEOENCODER); -#define PROPSETID_VIDCAP_VIDEOENCODER DEFINE_GUIDNAMED(PROPSETID_VIDCAP_VIDEOENCODER) - -typedef enum { - KSPROPERTY_VIDEOENCODER_CAPS, // R - KSPROPERTY_VIDEOENCODER_STANDARD, // RW - KSPROPERTY_VIDEOENCODER_COPYPROTECTION, // RW O - KSPROPERTY_VIDEOENCODER_CC_ENABLE, // RW O -} KSPROPERTY_VIDCAP_VIDEOENCODER; - -typedef struct { - KSPROPERTY Property; - LONG Value; // value to get or set - ULONG Flags; // - ULONG Capabilities; // -} KSPROPERTY_VIDEOENCODER_S, *PKSPROPERTY_VIDEOENCODER_S; - -//=========================================================================== - -#define STATIC_PROPSETID_VIDCAP_VIDEODECODER\ - 0xC6E13350L, 0x30AC, 0x11d0, 0xA1, 0x8C, 0x00, 0xA0, 0xC9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("C6E13350-30AC-11d0-A18C-00A0C9118956", PROPSETID_VIDCAP_VIDEODECODER); -#define PROPSETID_VIDCAP_VIDEODECODER DEFINE_GUIDNAMED(PROPSETID_VIDCAP_VIDEODECODER) - -typedef enum { - KSPROPERTY_VIDEODECODER_CAPS, // R - KSPROPERTY_VIDEODECODER_STANDARD, // RW - KSPROPERTY_VIDEODECODER_STATUS, // R - KSPROPERTY_VIDEODECODER_OUTPUT_ENABLE, // Rw O - KSPROPERTY_VIDEODECODER_VCR_TIMING, // RW O -} KSPROPERTY_VIDCAP_VIDEODECODER; - -typedef enum { - KS_VIDEODECODER_FLAGS_CAN_DISABLE_OUTPUT = 0X0001, // VP Output can tri-stae - KS_VIDEODECODER_FLAGS_CAN_USE_VCR_LOCKING = 0X0002, // VCR PLL timings - KS_VIDEODECODER_FLAGS_CAN_INDICATE_LOCKED = 0X0004, // Can indicate valid signal -}KS_VIDEODECODER_FLAGS; - -typedef struct { - KSPROPERTY Property; - ULONG StandardsSupported; // KS_AnalogVideo_* - ULONG Capabilities; // KS_VIDEODECODER_FLAGS_* - ULONG SettlingTime; // milliseconds - ULONG HSyncPerVSync; // Number of HSync Pulses per VSync -} KSPROPERTY_VIDEODECODER_CAPS_S, *PKSPROPERTY_VIDEODECODER_CAPS_S; - -typedef struct { - KSPROPERTY Property; - ULONG NumberOfLines; // 525 or 625 lines detected - ULONG SignalLocked; // TRUE if signal is locked -} KSPROPERTY_VIDEODECODER_STATUS_S, *PKSPROPERTY_VIDEODECODER_STATUS_S; - -typedef struct { - KSPROPERTY Property; - ULONG Value; // Get or set a value -} KSPROPERTY_VIDEODECODER_S, *PKSPROPERTY_VIDEODECODER_S; - -#define STATIC_EVENTSETID_VIDEODECODER\ - 0x6a2e0621L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("6a2e0621-28e4-11d0-a18c-00a0c9118956", EVENTSETID_VIDEODECODER); -#define EVENTSETID_VIDEODECODER DEFINE_GUIDNAMED(EVENTSETID_VIDEODECODER) - -typedef enum { - KSEVENT_VIDEODECODER_CHANGED -} KSEVENT_VIDEODECODER; - -//=========================================================================== - -#define STATIC_PROPSETID_VIDCAP_CAMERACONTROL\ - 0xC6E13370L, 0x30AC, 0x11d0, 0xa1, 0x8C, 0x00, 0xA0, 0xC9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("C6E13370-30AC-11d0-A18C-00A0C9118956", PROPSETID_VIDCAP_CAMERACONTROL); -#define PROPSETID_VIDCAP_CAMERACONTROL DEFINE_GUIDNAMED(PROPSETID_VIDCAP_CAMERACONTROL) - -typedef enum { - KSPROPERTY_CAMERACONTROL_PAN, // RW O - KSPROPERTY_CAMERACONTROL_TILT, // RW O - KSPROPERTY_CAMERACONTROL_ROLL, // RW O - KSPROPERTY_CAMERACONTROL_ZOOM, // RW O - KSPROPERTY_CAMERACONTROL_EXPOSURE, // RW O - KSPROPERTY_CAMERACONTROL_IRIS, // RW O - KSPROPERTY_CAMERACONTROL_FOCUS, // RW O - KSPROPERTY_CAMERACONTROL_SCANMODE, // RW O - KSPROPERTY_CAMERACONTROL_PRIVACY, // RW O - KSPROPERTY_CAMERACONTROL_PANTILT, // RW O - KSPROPERTY_CAMERACONTROL_PAN_RELATIVE, // RW O - KSPROPERTY_CAMERACONTROL_TILT_RELATIVE, // RW O - KSPROPERTY_CAMERACONTROL_ROLL_RELATIVE, // RW O - KSPROPERTY_CAMERACONTROL_ZOOM_RELATIVE, // RW O - KSPROPERTY_CAMERACONTROL_EXPOSURE_RELATIVE, // RW O - KSPROPERTY_CAMERACONTROL_IRIS_RELATIVE, // RW O - KSPROPERTY_CAMERACONTROL_FOCUS_RELATIVE, // RW O - KSPROPERTY_CAMERACONTROL_PANTILT_RELATIVE, // RW O - KSPROPERTY_CAMERACONTROL_FOCAL_LENGTH // R O -} KSPROPERTY_VIDCAP_CAMERACONTROL; - -typedef struct { - KSPROPERTY Property; - LONG Value; // value to get or set - ULONG Flags; // KSPROPERTY_CAMERACONTROL_FLAGS_* - ULONG Capabilities; // KSPROPERTY_CAMERACONTROL_FLAGS_* -} KSPROPERTY_CAMERACONTROL_S, *PKSPROPERTY_CAMERACONTROL_S; - -typedef struct { - KSP_NODE NodeProperty; - LONG Value; // value to get or set - ULONG Flags; // KSPROPERTY_CAMERACONTROL_FLAGS_* - ULONG Capabilities; // KSPROPERTY_CAMERACONTROL_FLAGS_* -} KSPROPERTY_CAMERACONTROL_NODE_S, PKSPROPERTY_CAMERACONTROL_NODE_S; - -typedef struct { - KSPROPERTY Property; - LONG Value1; - ULONG Flags; - ULONG Capabilities; - LONG Value2; -} KSPROPERTY_CAMERACONTROL_S2, *PKSPROPERTY_CAMERACONTROL_S2; - -typedef struct { - KSP_NODE NodeProperty; - LONG Value1; - ULONG Flags; - ULONG Capabilities; - LONG Value2; -} KSPROPERTY_CAMERACONTROL_NODE_S2, *PKSPROPERTY_CAMERACONTROL_NODE_S2; - -typedef struct { - KSPROPERTY Property; - LONG lOcularFocalLength; - LONG lObjectiveFocalLengthMin; - LONG lObjectiveFocalLengthMax; -} KSPROPERTY_CAMERACONTROL_FOCAL_LENGTH_S, *PKSPROPERTY_CAMERACONTROL_FOCAL_LENGTH_S; - -typedef struct { - KSNODEPROPERTY NodeProperty; - LONG lOcularFocalLength; - LONG lObjectiveFocalLengthMin; - LONG lObjectiveFocalLengthMax; -} KSPROPERTY_CAMERACONTROL_NODE_FOCAL_LENGTH_S, *PKSPROPERTY_CAMERACONTROL_NODE_FOCAL_LENGTH_S; - -#define KSPROPERTY_CAMERACONTROL_FLAGS_AUTO 0X0001L -#define KSPROPERTY_CAMERACONTROL_FLAGS_MANUAL 0X0002L - -#define KSPROPERTY_CAMERACONTROL_FLAGS_ABSOLUTE 0X0000L -#define KSPROPERTY_CAMERACONTROL_FLAGS_RELATIVE 0X0010L - -#ifndef __EDevCtrl__ -#define __EDevCtrl__ -//=========================================================================== - -#define STATIC_PROPSETID_EXT_DEVICE\ - 0xB5730A90L, 0x1A2C, 0x11cf, 0x8c, 0x23, 0x00, 0xAA, 0x00, 0x6B, 0x68, 0x14 -DEFINE_GUIDSTRUCT("B5730A90-1A2C-11cf-8C23-00AA006B6814", PROPSETID_EXT_DEVICE); -#define PROPSETID_EXT_DEVICE DEFINE_GUIDNAMED(PROPSETID_EXT_DEVICE) - -typedef enum { - KSPROPERTY_EXTDEVICE_ID, // R - KSPROPERTY_EXTDEVICE_VERSION, // R - KSPROPERTY_EXTDEVICE_POWER_STATE, // RW - KSPROPERTY_EXTDEVICE_PORT, // R - KSPROPERTY_EXTDEVICE_CAPABILITIES, // R -} KSPROPERTY_EXTDEVICE; - -typedef struct tagDEVCAPS{ - LONG CanRecord; - LONG CanRecordStrobe; - LONG HasAudio; - LONG HasVideo; - LONG UsesFiles; - LONG CanSave; - LONG DeviceType; - LONG TCRead; - LONG TCWrite; - LONG CTLRead; - LONG IndexRead; - LONG Preroll; - LONG Postroll; - LONG SyncAcc; - LONG NormRate; - LONG CanPreview; - LONG CanMonitorSrc; - LONG CanTest; - LONG VideoIn; - LONG AudioIn; - LONG Calibrate; - LONG SeekType; - LONG SimulatedHardware; -} DEVCAPS, *PDEVCAPS; - -typedef struct { - KSPROPERTY Property; - union { - DEVCAPS Capabilities; // Device capabilities - ULONG DevPort; // 1394, USB, etc. - ULONG PowerState; // On, standby or off - WCHAR pawchString[MAX_PATH]; // Version - DWORD NodeUniqueID[2]; // Unique NodeID - } u; -} KSPROPERTY_EXTDEVICE_S, *PKSPROPERTY_EXTDEVICE_S; - -//=========================================================================== - -#define STATIC_PROPSETID_EXT_TRANSPORT\ - 0xA03CD5F0L, 0x3045, 0x11cf, 0x8c, 0x44, 0x00, 0xAA, 0x00, 0x6B, 0x68, 0x14 -DEFINE_GUIDSTRUCT("A03CD5F0-3045-11cf-8C44-00AA006B6814", PROPSETID_EXT_TRANSPORT); -#define PROPSETID_EXT_TRANSPORT DEFINE_GUIDNAMED(PROPSETID_EXT_TRANSPORT) - -typedef enum { - KSPROPERTY_EXTXPORT_CAPABILITIES, // (R) Transport specific capability - KSPROPERTY_EXTXPORT_INPUT_SIGNAL_MODE, // (RW) Input signal: e.g. dvsd/NTSC/PAL, dvsl/NTSC/PAL, MPEG2-TS etc - KSPROPERTY_EXTXPORT_OUTPUT_SIGNAL_MODE, // (RW) Output signal: e.g. dvsd/NTSC/PAL, dvsl/NTSC/PAL, MPEG2-TS etc - KSPROPERTY_EXTXPORT_LOAD_MEDIUM, // (RW) Eject, open tray, close tray - KSPROPERTY_EXTXPORT_MEDIUM_INFO, // (R) Cassettte type, tape grade and write protection - KSPROPERTY_EXTXPORT_STATE, // (RW) Current transport mode and state - KSPROPERTY_EXTXPORT_STATE_NOTIFY, // (RW) Notify of transport mode and state change - KSPROPERTY_EXTXPORT_TIMECODE_SEARCH, // (W) Search to a specific timecode on a tape - KSPROPERTY_EXTXPORT_ATN_SEARCH, // (W) Search to a specific absolute track number (ATN) on a tape - KSPROPERTY_EXTXPORT_RTC_SEARCH, // (W) Search to a specific relative time counter (RTC) on a tape - KSPROPERTY_RAW_AVC_CMD, // (RW) Issue a raw AVC commnad -} KSPROPERTY_EXTXPORT; - -typedef struct tagTRANSPORTSTATUS{ - LONG Mode; - LONG LastError; - LONG RecordInhibit; - LONG ServoLock; - LONG MediaPresent; - LONG MediaLength; - LONG MediaSize; - LONG MediaTrackCount; - LONG MediaTrackLength; - LONG MediaTrackSide; - LONG MediaType; - LONG LinkMode; - LONG NotifyOn; -} TRANSPORTSTATUS, *PTRANSPORTSTATUS; - -typedef struct tagTRANSPORTBASICPARMS{ - LONG TimeFormat; - LONG TimeReference; - LONG Superimpose; - LONG EndStopAction; - LONG RecordFormat; - LONG StepFrames; - LONG SetpField; - LONG Preroll; - LONG RecPreroll; - LONG Postroll; - LONG EditDelay; - LONG PlayTCDelay; - LONG RecTCDelay; - LONG EditField; - LONG FrameServo; - LONG ColorFrameServo; - LONG ServoRef; - LONG WarnGenlock; - LONG SetTracking; - TCHAR VolumeName[40]; - LONG Ballistic[20]; - LONG Speed; - LONG CounterFormat; - LONG TunerChannel; - LONG TunerNumber; - LONG TimerEvent; - LONG TimerStartDay; - LONG TimerStartTime; - LONG TimerStopDay; - LONG TimerStopTime; -} TRANSPORTBASICPARMS, *PTRANSPORTBASICPARMS; - -typedef struct tagTRANSPORTVIDEOPARMS{ - LONG OutputMode; - LONG Input; -} TRANSPORTVIDEOPARMS, *PTRANSPORTVIDEOPARMS; - -typedef struct tagTRANSPORTAUDIOPARMS{ - LONG EnableOutput; - LONG EnableRecord; - LONG EnableSelsync; - LONG Input; - LONG MonitorSource; -} TRANSPORTAUDIOPARMS, *PTRANSPORTAUDIOPARMS; - -typedef struct { - BOOL MediaPresent; - ULONG MediaType; - BOOL RecordInhibit; -} MEDIUM_INFO, *PMEDIUM_INFO; - -typedef struct { - ULONG Mode; - ULONG State; -} TRANSPORT_STATE, *PTRANSPORT_STATE; - -typedef struct { - KSPROPERTY Property; - union { - ULONG Capabilities; - ULONG SignalMode; - ULONG LoadMedium; - MEDIUM_INFO MediumInfo; - TRANSPORT_STATE XPrtState; - struct { - BYTE frame; - BYTE second; - BYTE minute; - BYTE hour; - } Timecode; - DWORD dwTimecode; - DWORD dwAbsTrackNumber; - struct { - ULONG PayloadSize; - BYTE Payload[512]; - } RawAVC; - } u; - -} KSPROPERTY_EXTXPORT_S, *PKSPROPERTY_EXTXPORT_S; - -typedef struct { - KSP_NODE NodeProperty; - union { - ULONG Capabilities; - ULONG SignalMode; - ULONG LoadMedium; - MEDIUM_INFO MediumInfo; - TRANSPORT_STATE XPrtState; - struct { - BYTE frame; - BYTE second; - BYTE minute; - BYTE hour; - } Timecode; - DWORD dwTimecode; - DWORD dwAbsTrackNumber; - struct { - ULONG PayloadSize; - BYTE Payload[512]; - } RawAVC; - } u; - -} KSPROPERTY_EXTXPORT_NODE_S, *PKSPROPERTY_EXTXPORT_NODE_S; - -//=========================================================================== - -#define STATIC_PROPSETID_TIMECODE_READER\ - 0x9B496CE1L, 0x811B, 0x11cf, 0x8C, 0x77, 0x00, 0xAA, 0x00, 0x6B, 0x68, 0x14 -DEFINE_GUIDSTRUCT("9B496CE1-811B-11cf-8C77-00AA006B6814", PROPSETID_TIMECODE_READER); -#define PROPSETID_TIMECODE_READER DEFINE_GUIDNAMED(PROPSETID_TIMECODE_READER) - -typedef enum { - KSPROPERTY_TIMECODE_READER, // (R) Timecode for the current tape position - KSPROPERTY_ATN_READER, // (R) Absolute track number for the current tape position - KSPROPERTY_RTC_READER, // (R) Relative time counter for the current tape position -} KSPROPERTY_TIMECODE; - -#ifndef TIMECODE_DEFINED -#define TIMECODE_DEFINED -typedef union _timecode { - struct { - WORD wFrameRate; - WORD wFrameFract; - DWORD dwFrames; - }; - DWORDLONG qw; -} TIMECODE; -typedef TIMECODE *PTIMECODE; - -typedef struct tagTIMECODE_SAMPLE { - LONGLONG qwTick; - TIMECODE timecode; - DWORD dwUser; - DWORD dwFlags; -} TIMECODE_SAMPLE; - -typedef TIMECODE_SAMPLE *PTIMECODE_SAMPLE; - -#endif /* TIMECODE_DEFINED */ - -typedef struct { - KSPROPERTY Property; - TIMECODE_SAMPLE TimecodeSamp; -} KSPROPERTY_TIMECODE_S, *PKSPROPERTY_TIMECODE_S; - -typedef struct { - KSP_NODE NodeProperty; - TIMECODE_SAMPLE TimecodeSamp; -} KSPROPERTY_TIMECODE_NODE_S, *PKSPROPERTY_TIMECODE_NODE_S; - -//=========================================================================== - -#define STATIC_KSEVENTSETID_EXTDEV_Command\ - 0x109c7988L, 0xb3cb, 0x11d2, 0xb4, 0x8e, 0x00, 0x60, 0x97, 0xb3, 0x39, 0x1b -DEFINE_GUIDSTRUCT("109c7988-b3cb-11d2-b48e-006097b3391b", KSEVENTSETID_EXTDEV_Command); -#define KSEVENTSETID_EXTDEV_Command DEFINE_GUIDNAMED(KSEVENTSETID_EXTDEV_Command) - -typedef enum { - KSEVENT_EXTDEV_COMMAND_NOTIFY_INTERIM_READY, // Final response is ready for notify command - KSEVENT_EXTDEV_COMMAND_CONTROL_INTERIM_READY, // Final response is ready for control command. - KSEVENT_EXTDEV_COMMAND_BUSRESET, // A bus reset has occured. - KSEVENT_EXTDEV_TIMECODE_UPDATE, // Timecode has changed. - KSEVENT_EXTDEV_OPERATION_MODE_UPDATE, // Operting mode (VCR,Camera, etc.) has changed. - KSEVENT_EXTDEV_TRANSPORT_STATE_UPDATE, // Transport state has changed. - KSEVENT_EXTDEV_NOTIFY_REMOVAL, // Device was surprise removal. - KSEVENT_EXTDEV_NOTIFY_MEDIUM_CHANGE, // Tape medium is removed or added. -} KSEVENT_DEVCMD; - -#endif // __EDevCtrl__ - - -//=========================================================================== - - -#define STATIC_PROPSETID_VIDCAP_CROSSBAR\ - 0x6a2e0640L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("6a2e0640-28e4-11d0-a18c-00a0c9118956", PROPSETID_VIDCAP_CROSSBAR); -#define PROPSETID_VIDCAP_CROSSBAR DEFINE_GUIDNAMED(PROPSETID_VIDCAP_CROSSBAR) - -typedef enum { - KSPROPERTY_CROSSBAR_CAPS, // R - KSPROPERTY_CROSSBAR_PININFO, // R - KSPROPERTY_CROSSBAR_CAN_ROUTE, // R - KSPROPERTY_CROSSBAR_ROUTE, // RW -} KSPROPERTY_VIDCAP_CROSSBAR; - -typedef struct { - KSPROPERTY Property; - ULONG NumberOfInputs; // the number of audio and video input pins - ULONG NumberOfOutputs; // the number of audio and video output pins -} KSPROPERTY_CROSSBAR_CAPS_S, *PKSPROPERTY_CROSSBAR_CAPS_S; - -typedef struct { - KSPROPERTY Property; - KSPIN_DATAFLOW Direction; // KSPIN_DATAFLOW_IN or KSPIN_DATAFLOW_OUT? - ULONG Index; // Which pin to return data for? - ULONG PinType; // KS_PhysConn_Video_* or KS_PhysConn_Audio_* - ULONG RelatedPinIndex; // For video pins, this is the related audio pin - KSPIN_MEDIUM Medium; // Identifies the hardware connection -} KSPROPERTY_CROSSBAR_PININFO_S, *PKSPROPERTY_CROSSBAR_PININFO_S; - -typedef struct { - KSPROPERTY Property; - ULONG IndexInputPin; // Zero based index of the input pin - ULONG IndexOutputPin; // Zero based index of the output pin - ULONG CanRoute; // returns non-zero on CAN_ROUTE if routing is possible -} KSPROPERTY_CROSSBAR_ROUTE_S, *PKSPROPERTY_CROSSBAR_ROUTE_S; - -#define STATIC_EVENTSETID_CROSSBAR\ - 0x6a2e0641L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("6a2e0641-28e4-11d0-a18c-00a0c9118956", EVENTSETID_CROSSBAR); -#define EVENTSETID_CROSSBAR DEFINE_GUIDNAMED(EVENTSETID_CROSSBAR) - -typedef enum { - KSEVENT_CROSSBAR_CHANGED -} KSEVENT_CROSSBAR; - -// The following IDs should match the AM equivalents -typedef enum { - KS_PhysConn_Video_Tuner = 1, - KS_PhysConn_Video_Composite, - KS_PhysConn_Video_SVideo, - KS_PhysConn_Video_RGB, - KS_PhysConn_Video_YRYBY, - KS_PhysConn_Video_SerialDigital, - KS_PhysConn_Video_ParallelDigital, - KS_PhysConn_Video_SCSI, - KS_PhysConn_Video_AUX, - KS_PhysConn_Video_1394, - KS_PhysConn_Video_USB, - KS_PhysConn_Video_VideoDecoder, - KS_PhysConn_Video_VideoEncoder, - KS_PhysConn_Video_SCART, - - KS_PhysConn_Audio_Tuner = 4096, - KS_PhysConn_Audio_Line, - KS_PhysConn_Audio_Mic, - KS_PhysConn_Audio_AESDigital, - KS_PhysConn_Audio_SPDIFDigital, - KS_PhysConn_Audio_SCSI, - KS_PhysConn_Audio_AUX, - KS_PhysConn_Audio_1394, - KS_PhysConn_Audio_USB, - KS_PhysConn_Audio_AudioDecoder, -} KS_PhysicalConnectorType; - - -//=========================================================================== - -#define STATIC_PROPSETID_VIDCAP_TVAUDIO\ - 0x6a2e0650L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("6a2e0650-28e4-11d0-a18c-00a0c9118956", PROPSETID_VIDCAP_TVAUDIO); -#define PROPSETID_VIDCAP_TVAUDIO DEFINE_GUIDNAMED(PROPSETID_VIDCAP_TVAUDIO) - -typedef enum { - KSPROPERTY_TVAUDIO_CAPS, // R - KSPROPERTY_TVAUDIO_MODE, // RW - KSPROPERTY_TVAUDIO_CURRENTLY_AVAILABLE_MODES // R -} KSPROPERTY_VIDCAP_TVAUDIO; - -#define KS_TVAUDIO_MODE_MONO 0x0001 // Mono -#define KS_TVAUDIO_MODE_STEREO 0x0002 // Stereo -#define KS_TVAUDIO_MODE_LANG_A 0x0010 // Primary language -#define KS_TVAUDIO_MODE_LANG_B 0x0020 // 2nd avail language -#define KS_TVAUDIO_MODE_LANG_C 0x0040 // 3rd avail language - -typedef struct { - KSPROPERTY Property; - ULONG Capabilities; // Bitmask of KS_TVAUDIO_MODE_* - KSPIN_MEDIUM InputMedium; - KSPIN_MEDIUM OutputMedium; -} KSPROPERTY_TVAUDIO_CAPS_S, *PKSPROPERTY_TVAUDIO_CAPS_S; - -typedef struct { - KSPROPERTY Property; - ULONG Mode; // KS_TVAUDIO_MODE_* -} KSPROPERTY_TVAUDIO_S, *PKSPROPERTY_TVAUDIO_S; - - -#define STATIC_KSEVENTSETID_VIDCAP_TVAUDIO\ - 0x6a2e0651L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("6a2e0651-28e4-11d0-a18c-00a0c9118956", KSEVENTSETID_VIDCAP_TVAUDIO); -#define KSEVENTSETID_VIDCAP_TVAUDIO DEFINE_GUIDNAMED(KSEVENTSETID_VIDCAP_TVAUDIO) - -typedef enum { - KSEVENT_TVAUDIO_CHANGED, -} KSEVENT_TVAUDIO; - -//=========================================================================== -#define STATIC_PROPSETID_VIDCAP_VIDEOCOMPRESSION\ - 0xC6E13343L, 0x30AC, 0x11d0, 0xA1, 0x8C, 0x00, 0xA0, 0xC9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("C6E13343-30AC-11d0-A18C-00A0C9118956", PROPSETID_VIDCAP_VIDEOCOMPRESSION); -#define PROPSETID_VIDCAP_VIDEOCOMPRESSION DEFINE_GUIDNAMED(PROPSETID_VIDCAP_VIDEOCOMPRESSION) - -typedef enum { - KSPROPERTY_VIDEOCOMPRESSION_GETINFO, // R - KSPROPERTY_VIDEOCOMPRESSION_KEYFRAME_RATE, // RW - KSPROPERTY_VIDEOCOMPRESSION_PFRAMES_PER_KEYFRAME, // RW - KSPROPERTY_VIDEOCOMPRESSION_QUALITY, // RW - KSPROPERTY_VIDEOCOMPRESSION_OVERRIDE_KEYFRAME, // W - KSPROPERTY_VIDEOCOMPRESSION_OVERRIDE_FRAME_SIZE, // W - KSPROPERTY_VIDEOCOMPRESSION_WINDOWSIZE, // RW -} KSPROPERTY_VIDCAP_VIDEOCOMPRESSION; - -typedef enum { - KS_CompressionCaps_CanQuality = 1, - KS_CompressionCaps_CanCrunch = 2, - KS_CompressionCaps_CanKeyFrame = 4, - KS_CompressionCaps_CanBFrame = 8, - KS_CompressionCaps_CanWindow = 0x10, -} KS_CompressionCaps; - -typedef struct { - KSPROPERTY Property; - // Note, no VersionString! - // Note, no DescriptionString! - ULONG StreamIndex; // zero based index of stream - LONG DefaultKeyFrameRate; // Key frame rate - LONG DefaultPFrameRate; // Predeicted frames per Key frame - LONG DefaultQuality; // 0 to 10000 - LONG NumberOfQualitySettings; // How many discreet quality settings? - LONG Capabilities; // KS_CompressionCaps_* -} KSPROPERTY_VIDEOCOMPRESSION_GETINFO_S, *PKSPROPERTY_VIDEOCOMPRESSION_GETINFO_S; - -typedef struct { - KSPROPERTY Property; - ULONG StreamIndex; // zero based index of stream - LONG Value; // value to get or set -} KSPROPERTY_VIDEOCOMPRESSION_S, *PKSPROPERTY_VIDEOCOMPRESSION_S; - -//=========================================================================== -// MEDIASUBTYPE_Overlay -#define STATIC_KSDATAFORMAT_SUBTYPE_OVERLAY\ - 0xe436eb7fL, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70 -DEFINE_GUIDSTRUCT("e436eb7f-524f-11ce-9f53-0020af0ba770", KSDATAFORMAT_SUBTYPE_OVERLAY); -#define KSDATAFORMAT_SUBTYPE_OVERLAY DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_OVERLAY) - -#define STATIC_KSPROPSETID_OverlayUpdate\ - 0x490EA5CFL, 0x7681, 0x11D1, 0xA2, 0x1C, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -DEFINE_GUIDSTRUCT("490EA5CF-7681-11D1-A21C-00A0C9223196", KSPROPSETID_OverlayUpdate); -#define KSPROPSETID_OverlayUpdate DEFINE_GUIDNAMED(KSPROPSETID_OverlayUpdate) - -typedef enum { - KSPROPERTY_OVERLAYUPDATE_INTERESTS, - KSPROPERTY_OVERLAYUPDATE_CLIPLIST = 0x1, - KSPROPERTY_OVERLAYUPDATE_PALETTE = 0x2, - KSPROPERTY_OVERLAYUPDATE_COLORKEY = 0x4, - KSPROPERTY_OVERLAYUPDATE_VIDEOPOSITION = 0x8, - KSPROPERTY_OVERLAYUPDATE_DISPLAYCHANGE = 0x10, - KSPROPERTY_OVERLAYUPDATE_COLORREF = 0x10000000 -} KSPROPERTY_OVERLAYUPDATE; - -typedef struct { - ULONG PelsWidth; - ULONG PelsHeight; - ULONG BitsPerPel; - WCHAR DeviceID[1]; -} KSDISPLAYCHANGE, *PKSDISPLAYCHANGE; - -#define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_INTERESTS(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_OVERLAYUPDATE_INTERESTS,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(ULONG),\ - NULL, NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_PALETTE(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_OVERLAYUPDATE_PALETTE,\ - NULL,\ - sizeof(KSPROPERTY),\ - 0,\ - (Handler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_COLORKEY(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_OVERLAYUPDATE_COLORKEY,\ - NULL,\ - sizeof(KSPROPERTY),\ - sizeof(COLORKEY),\ - (Handler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_CLIPLIST(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_OVERLAYUPDATE_CLIPLIST,\ - NULL,\ - sizeof(KSPROPERTY),\ - 2 * sizeof(RECT) + sizeof(RGNDATAHEADER),\ - (Handler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_VIDEOPOSITION(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_OVERLAYUPDATE_VIDEOPOSITION,\ - NULL,\ - sizeof(KSPROPERTY),\ - 2 * sizeof(RECT),\ - (Handler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_DISPLAYCHANGE(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_OVERLAYUPDATE_DISPLAYCHANGE,\ - NULL,\ - sizeof(KSPROPERTY),\ - sizeof(KSDISPLAYCHANGE),\ - (Handler),\ - NULL, 0, NULL, NULL, 0) - -#define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_COLORREF(Handler)\ - DEFINE_KSPROPERTY_ITEM(\ - KSPROPERTY_OVERLAYUPDATE_COLORREF,\ - (Handler),\ - sizeof(KSPROPERTY),\ - sizeof(COLORREF),\ - NULL,\ - NULL, 0, NULL, NULL, 0) - -//=========================================================================== -#define STATIC_PROPSETID_VIDCAP_VIDEOCONTROL\ - 0x6a2e0670L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("6a2e0670-28e4-11d0-a18c-00a0c9118956", PROPSETID_VIDCAP_VIDEOCONTROL); -#define PROPSETID_VIDCAP_VIDEOCONTROL DEFINE_GUIDNAMED(PROPSETID_VIDCAP_VIDEOCONTROL) - -typedef enum { - KSPROPERTY_VIDEOCONTROL_CAPS, // R - KSPROPERTY_VIDEOCONTROL_ACTUAL_FRAME_RATE, // R O - KSPROPERTY_VIDEOCONTROL_FRAME_RATES, // R O - KSPROPERTY_VIDEOCONTROL_MODE, // RWO -} KSPROPERTY_VIDCAP_VIDEOCONTROL; - -typedef enum { - KS_VideoControlFlag_FlipHorizontal = 0x0001, - KS_VideoControlFlag_FlipVertical = 0x0002, - KS_Obsolete_VideoControlFlag_ExternalTriggerEnable = 0x0010, // ***WARNING *** Flag msimatch with DSHOW. - KS_Obsolete_VideoControlFlag_Trigger = 0x0020, // ***WARNING *** Flag msimatch with DSHOW. - KS_VideoControlFlag_ExternalTriggerEnable = 0x0004, - KS_VideoControlFlag_Trigger = 0x0008, -} KS_VideoControlFlags; - -typedef struct { - KSPROPERTY Property; - ULONG StreamIndex; - ULONG VideoControlCaps; // KS_VideoControlFlags_* -} KSPROPERTY_VIDEOCONTROL_CAPS_S, *PKSPROPERTY_VIDEOCONTROL_CAPS_S; - -typedef struct { - KSPROPERTY Property; - ULONG StreamIndex; - LONG Mode; // KS_VideoControlFlags_* -} KSPROPERTY_VIDEOCONTROL_MODE_S, *PKSPROPERTY_VIDEOCONTROL_MODE_S; - -typedef struct { - KSPROPERTY Property; - ULONG StreamIndex; // Index of stream - ULONG RangeIndex; // Index of range - SIZE Dimensions; // Size of image - LONGLONG CurrentActualFrameRate; // Only correct if pin is open - LONGLONG CurrentMaxAvailableFrameRate; // Max Rate temporarily limited on USB or 1394? -} KSPROPERTY_VIDEOCONTROL_ACTUAL_FRAME_RATE_S, *PKSPROPERTY_VIDEOCONTROL_ACTUAL_FRAME_RATE_S; - -// KSPROPERTY_VIDEOCONTROL_FRAME_RATES returns a list of available frame rates in 100 nS units -typedef struct { - KSPROPERTY Property; - ULONG StreamIndex; // Index of stream - ULONG RangeIndex; // Index of range - SIZE Dimensions; // Size of image -} KSPROPERTY_VIDEOCONTROL_FRAME_RATES_S, *PKSPROPERTY_VIDEOCONTROL_FRAME_RATES_S; - -//=========================================================================== -#define STATIC_PROPSETID_VIDCAP_DROPPEDFRAMES\ - 0xC6E13344L, 0x30AC, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56 -DEFINE_GUIDSTRUCT("C6E13344-30AC-11d0-A18C-00A0C9118956", PROPSETID_VIDCAP_DROPPEDFRAMES); -#define PROPSETID_VIDCAP_DROPPEDFRAMES DEFINE_GUIDNAMED(PROPSETID_VIDCAP_DROPPEDFRAMES) - -typedef enum { - KSPROPERTY_DROPPEDFRAMES_CURRENT // R -} KSPROPERTY_VIDCAP_DROPPEDFRAMES; - -typedef struct { - KSPROPERTY Property; - LONGLONG PictureNumber; // Current Picture Number - LONGLONG DropCount; // Count of frames dropped - ULONG AverageFrameSize; // Average size of frames captured -} KSPROPERTY_DROPPEDFRAMES_CURRENT_S, *PKSPROPERTY_DROPPEDFRAMES_CURRENT_S; - -//=========================================================================== -// VPE - -#define STATIC_KSPROPSETID_VPConfig\ - 0xbc29a660L, 0x30e3, 0x11d0, 0x9e, 0x69, 0x00, 0xc0, 0x4f, 0xd7, 0xc1, 0x5b -DEFINE_GUIDSTRUCT("bc29a660-30e3-11d0-9e69-00c04fd7c15b", KSPROPSETID_VPConfig); -#define KSPROPSETID_VPConfig DEFINE_GUIDNAMED(KSPROPSETID_VPConfig) - -#define STATIC_KSPROPSETID_VPVBIConfig\ - 0xec529b00L, 0x1a1f, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a -DEFINE_GUIDSTRUCT("ec529b00-1a1f-11d1-bad9-00609744111a", KSPROPSETID_VPVBIConfig); -#define KSPROPSETID_VPVBIConfig DEFINE_GUIDNAMED(KSPROPSETID_VPVBIConfig) - -// Both of the above property sets use the same list of properties below - -typedef enum { - KSPROPERTY_VPCONFIG_NUMCONNECTINFO, - KSPROPERTY_VPCONFIG_GETCONNECTINFO, - KSPROPERTY_VPCONFIG_SETCONNECTINFO, - KSPROPERTY_VPCONFIG_VPDATAINFO, - KSPROPERTY_VPCONFIG_MAXPIXELRATE, - KSPROPERTY_VPCONFIG_INFORMVPINPUT, - KSPROPERTY_VPCONFIG_NUMVIDEOFORMAT, - KSPROPERTY_VPCONFIG_GETVIDEOFORMAT, - KSPROPERTY_VPCONFIG_SETVIDEOFORMAT, - KSPROPERTY_VPCONFIG_INVERTPOLARITY, - KSPROPERTY_VPCONFIG_DECIMATIONCAPABILITY, // E_NOTIMPL for VBI - KSPROPERTY_VPCONFIG_SCALEFACTOR, // E_NOTIMPL for VBI - KSPROPERTY_VPCONFIG_DDRAWHANDLE, - KSPROPERTY_VPCONFIG_VIDEOPORTID, - KSPROPERTY_VPCONFIG_DDRAWSURFACEHANDLE, - KSPROPERTY_VPCONFIG_SURFACEPARAMS -} KSPROPERTY_VPCONFIG; - -//========================= -// IBasicAudio -// -#define STATIC_CLSID_KsIBasicAudioInterfaceHandler\ - 0xb9f8ac3e, 0x0f71, 0x11d2, 0xb7, 0x2c, 0x00, 0xc0, 0x4f, 0xb6, 0xbd, 0x3d -DEFINE_GUIDSTRUCT("b9f8ac3e-0f71-11d2-b72c-00c04fb6bd3d", CLSID_KsIBasicAudioInterfaceHandler); -#define CLSID_KsIBasicAudioInterfaceHandler DEFINE_GUIDNAMED(CLSID_KsIBasicAudioInterfaceHandler) - - -#if defined(__IVPType__) - -typedef struct { - AMVPSIZE Size; - DWORD MaxPixelsPerSecond; - DWORD Reserved; -} KSVPMAXPIXELRATE, *PKSVPMAXPIXELRATE; - -typedef struct { - KSPROPERTY Property; - AMVPSIZE Size; -} KSVPSIZE_PROP, *PKSVPSIZE_PROP; - -typedef struct { - DWORD dwPitch; - DWORD dwXOrigin; - DWORD dwYOrigin; -} KSVPSURFACEPARAMS, *PKSVPSURFACEPARAMS; - -#else // !defined(__IVPType__) - -#if !defined(__DDRAW_INCLUDED__) - -//========================================================================== -// The following definitions must be in sync with DDraw.h in DirectX SDK -//========================================================================== - -/* - * The FourCC code is valid. - */ -#define DDPF_FOURCC 0x00000004l - - -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 (BD_1,2,4,8,16,24,32) - DWORD dwYUVBitCount; // how many bits per pixel (BD_4,8,16,24,32) - DWORD dwZBufferBitDepth; // how many bits for z buffers (BD_8,16,24,32) - DWORD dwAlphaBitDepth; // how many bits for alpha channels (BD_1,2,4,8) - }; - union - { - DWORD dwRBitMask; // mask for red bit - DWORD dwYBitMask; // mask for Y bits - }; - union - { - DWORD dwGBitMask; // mask for green bits - DWORD dwUBitMask; // mask for U bits - }; - union - { - DWORD dwBBitMask; // mask for blue bits - DWORD dwVBitMask; // mask for V bits - }; - union - { - DWORD dwRGBAlphaBitMask; // mask for alpha channel - DWORD dwYUVAlphaBitMask; // mask for alpha channel - DWORD dwRGBZBitMask; // mask for Z channel - DWORD dwYUVZBitMask; // mask for Z channel - }; -} DDPIXELFORMAT, * LPDDPIXELFORMAT; - -#endif // !defined(__DDRAW_INCLUDED__) - -//========================================================================== -// End of DDraw.h header info -//========================================================================== - -//========================================================================== -// The following definitions must be in sync with DVP.h in DirectX SDK -//========================================================================== - -#if !defined(__DVP_INCLUDED__) - -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 - DWORD dwReserved1; // Reserved, set to zero. -} DDVIDEOPORTCONNECT, * LPDDVIDEOPORTCONNECT; - -#define DDVPTYPE_E_HREFH_VREFH \ - 0x54F39980L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8 - -#define DDVPTYPE_E_HREFL_VREFL \ - 0xE09C77E0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8 - -#endif // !defined(__DVP_INCLUDED__) - -//========================================================================== -// End of DVP.h header info -//========================================================================== - - -//========================================================================== -// The following definitions must be in sync with VPType.h in AM 2.0 SDK -//========================================================================== - -// pixel aspect ratios corresponding to a 720x480 NTSC image or a 720x576 image -typedef enum // AMPixAspectRatio -{ - KS_PixAspectRatio_NTSC4x3, - KS_PixAspectRatio_NTSC16x9, - KS_PixAspectRatio_PAL4x3, - KS_PixAspectRatio_PAL16x9, -} KS_AMPixAspectRatio ; - -typedef enum // AMVP_SELECTFORMATBY -{ - KS_AMVP_DO_NOT_CARE, - KS_AMVP_BEST_BANDWIDTH, - KS_AMVP_INPUT_SAME_AS_OUTPUT -} KS_AMVP_SELECTFORMATBY; - -typedef enum // AMVP_MODE -{ - KS_AMVP_MODE_WEAVE, - KS_AMVP_MODE_BOBINTERLEAVED, - KS_AMVP_MODE_BOBNONINTERLEAVED, - KS_AMVP_MODE_SKIPEVEN, - KS_AMVP_MODE_SKIPODD -} KS_AMVP_MODE ; - -typedef struct tagKS_AMVPDIMINFO // AMVPDIMINFO -{ - DWORD dwFieldWidth ; // [out] field width - DWORD dwFieldHeight ; // [out] field height - DWORD dwVBIWidth ; // [out] VBI data width - DWORD dwVBIHeight ; // [out] VBI data height - RECT rcValidRegion ; // [out] valid rect for data cropping -} KS_AMVPDIMINFO, *PKS_AMVPDIMINFO ; - -typedef struct tagKS_AMVPDATAINFO // AMVPDATAINFO -{ - DWORD dwSize; // Size of the struct - DWORD dwMicrosecondsPerField; // Time taken by each field - KS_AMVPDIMINFO amvpDimInfo; // Dimensional Information - DWORD dwPictAspectRatioX; // Pict aspect ratio in X dimn - DWORD dwPictAspectRatioY; // Pict aspect ratio in Y dimn - BOOL bEnableDoubleClock; // Videoport should enable double clocking - BOOL bEnableVACT; // Videoport should use an external VACT signal - BOOL bDataIsInterlaced; // Indicates that the signal is interlaced - LONG lHalfLinesOdd; // number of halflines in the odd field - BOOL bFieldPolarityInverted; // Device inverts the polarity by default - DWORD dwNumLinesInVREF; // Number of lines of data in VREF - LONG lHalfLinesEven; // number of halflines in the even field - DWORD dwReserved1; // Reserved for future use -} KS_AMVPDATAINFO, *PKS_AMVPDATAINFO; - -typedef struct tagKS_AMVPSIZE // AMVPSIZE -{ - DWORD dwWidth ; // [in] width in pixels - DWORD dwHeight ; // [in] height in pixels -} KS_AMVPSIZE, *PKS_AMVPSIZE ; - -//========================================================================== -// End of VPType.h header info -//========================================================================== - -typedef struct { - KS_AMVPSIZE Size; - DWORD MaxPixelsPerSecond; - DWORD Reserved; -} KSVPMAXPIXELRATE, *PKSVPMAXPIXELRATE; - -typedef struct { - KSPROPERTY Property; - KS_AMVPSIZE Size; -} KSVPSIZE_PROP, *PKSVPSIZE_PROP; - -typedef struct { - DWORD dwPitch; - DWORD dwXOrigin; - DWORD dwYOrigin; -} KSVPSURFACEPARAMS, *PKSVPSURFACEPARAMS; - -#endif // !defined(__IVPType__) - -// -// IVPNotify event notification -// -#define STATIC_KSEVENTSETID_VPNotify\ - 0x20c5598eL, 0xd3c8, 0x11d0, 0x8d, 0xfc, 0x00, 0xc0, 0x4f, 0xd7, 0xc0, 0x8b -DEFINE_GUIDSTRUCT("20c5598e-d3c8-11d0-8dfc-00c04fd7c08b", KSEVENTSETID_VPNotify); -#define KSEVENTSETID_VPNotify DEFINE_GUIDNAMED(KSEVENTSETID_VPNotify) - -typedef enum { - KSEVENT_VPNOTIFY_FORMATCHANGE, -} KSEVENT_VPNOTIFY; - -// -// VIDCAPTOSTI event notification -// -#define STATIC_KSEVENTSETID_VIDCAPTOSTI\ - 0xdb47de20, 0xf628, 0x11d1, 0xba, 0x41, 0x0, 0xa0, 0xc9, 0xd, 0x2b, 0x5 -DEFINE_GUIDSTRUCT("DB47DE20-F628-11d1-BA41-00A0C90D2B05", KSEVENTSETID_VIDCAPTOSTI); -#define KSEVENTSETID_VIDCAPNotify DEFINE_GUIDNAMED(KSEVENTSETID_VIDCAPTOSTI) - -typedef enum { - KSEVENT_VIDCAPTOSTI_EXT_TRIGGER, - KSEVENT_VIDCAP_AUTO_UPDATE, - KSEVENT_VIDCAP_SEARCH -} KSEVENT_VIDCAPTOSTI; - -// -// Extension Unit Properties -// -typedef enum { - KSPROPERTY_EXTENSION_UNIT_INFO, // (R) - KSPROPERTY_EXTENSION_UNIT_CONTROL, // (RW) - KSPROPERTY_EXTENSION_UNIT_PASS_THROUGH = 0xffff, // (RW) -} KSPROPERTY_EXTENSION_UNIT, *PKSPROPERTY_EXTENSION_UNIT; - -// -// IVPVBINotify event notification -// -#define STATIC_KSEVENTSETID_VPVBINotify\ - 0xec529b01L, 0x1a1f, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a -DEFINE_GUIDSTRUCT("ec529b01-1a1f-11d1-bad9-00609744111a", KSEVENTSETID_VPVBINotify); -#define KSEVENTSETID_VPVBINotify DEFINE_GUIDNAMED(KSEVENTSETID_VPVBINotify) - -typedef enum { - KSEVENT_VPVBINOTIFY_FORMATCHANGE, -} KSEVENT_VPVBINOTIFY; - - -// -// closed caption information -// - -#define STATIC_KSDATAFORMAT_TYPE_AUXLine21Data \ -0x670aea80L, 0x3a82, 0x11d0, 0xb7, 0x9b, 0x00, 0xaa, 0x00, 0x37, 0x67, 0xa7 -DEFINE_GUIDSTRUCT("670aea80-3a82-11d0-b79b-00aa003767a7", KSDATAFORMAT_TYPE_AUXLine21Data); -#define KSDATAFORMAT_TYPE_AUXLine21Data DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_AUXLine21Data) - -#define STATIC_KSDATAFORMAT_SUBTYPE_Line21_BytePair \ -0x6e8d4a22L, 0x310c, 0x11d0, 0xb7, 0x9a, 0x00, 0xaa, 0x00, 0x37, 0x67, 0xa7 -DEFINE_GUIDSTRUCT("6e8d4a22-310c-11d0-b79a-00aa003767a7", KSDATAFORMAT_SUBTYPE_Line21_BytePair); -#define KSDATAFORMAT_SUBTYPE_Line21_BytePair DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_Line21_BytePair) - -#define STATIC_KSDATAFORMAT_SUBTYPE_Line21_GOPPacket \ -0x6e8d4a23L, 0x310c, 0x11d0, 0xb7, 0x9a, 0x00, 0xaa, 0x00, 0x37, 0x67, 0xa7 -DEFINE_GUIDSTRUCT("6e8d4a23-310c-11d0-b79a-00aa003767a7", KSDATAFORMAT_SUBTYPE_Line21_GOPPacket); -#define KSDATAFORMAT_SUBTYPE_Line21_GOPPacket DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_Line21_GOPPacket) - -typedef struct _KSGOP_USERDATA { - ULONG sc; - ULONG reserved1; - BYTE cFields; - CHAR l21Data[3]; -} KSGOP_USERDATA, *PKSGOP_USERDATA; - -// -// DVD encrypted PACK format type definition -// - -#define STATIC_KSDATAFORMAT_TYPE_DVD_ENCRYPTED_PACK\ - 0xed0b916a, 0x044d, 0x11d1, 0xaa, 0x78, 0x00, 0xc0, 0x4f, 0xc3, 0x1d, 0x60 -DEFINE_GUIDSTRUCT("ed0b916a-044d-11d1-aa78-00c04fc31d60", KSDATAFORMAT_TYPE_DVD_ENCRYPTED_PACK); -#define KSDATAFORMAT_TYPE_DVD_ENCRYPTED_PACK DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_DVD_ENCRYPTED_PACK) - -#define KS_AM_UseNewCSSKey 0x1 - - -// ----------------------------------------------------------------------- -// KS_AM_KSPROPSETID_TSRateChange property set definitions for time stamp -// rate changes. -// ----------------------------------------------------------------------- - - -#define STATIC_KSPROPSETID_TSRateChange\ - 0xa503c5c0, 0x1d1d, 0x11d1, 0xad, 0x80, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0 - -DEFINE_GUIDSTRUCT("A503C5C0-1D1D-11D1-AD80-444553540000", KSPROPSETID_TSRateChange); -#define KSPROPSETID_TSRateChange DEFINE_GUIDNAMED(KSPROPSETID_TSRateChange) -typedef enum { - KS_AM_RATE_SimpleRateChange=1, // rw, use KS_AM_SimpleRateChange - KS_AM_RATE_ExactRateChange=2, // rw, use KS_AM_ExactRateChange - KS_AM_RATE_MaxFullDataRate=3, // r, use KS_AM_MaxFullDataRate - KS_AM_RATE_Step=4 // w, use KS_AM_Step -} KS_AM_PROPERTY_TS_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) -} KS_AM_SimpleRateChange, *PKS_AM_SimpleRateChange; - -typedef struct { - REFERENCE_TIME OutputZeroTime; //input TS that maps to zero output TS - LONG Rate; //new rate * 10000 (decimal) -} KS_AM_ExactRateChange, *PKS_AM_ExactRateChange; - -typedef LONG KS_AM_MaxFullDataRate; //rate * 10000 (decimal) - -typedef DWORD KS_AM_Step; // number of frame to step - -//=========================================================================== -//ENCODER API DEFINITIONS -//=========================================================================== - -#define STATIC_KSCATEGORY_ENCODER \ - 0x19689bf6, 0xc384, 0x48fd, 0xad, 0x51, 0x90, 0xe5, 0x8c, 0x79, 0xf7, 0xb -DEFINE_GUIDSTRUCT("19689BF6-C384-48fd-AD51-90E58C79F70B", KSCATEGORY_ENCODER); -#define KSCATEGORY_ENCODER DEFINE_GUIDNAMED(KSCATEGORY_ENCODER) - -#define STATIC_KSCATEGORY_MULTIPLEXER \ - 0x7a5de1d3, 0x1a1, 0x452c, 0xb4, 0x81, 0x4f, 0xa2, 0xb9, 0x62, 0x71, 0xe8 -DEFINE_GUIDSTRUCT("7A5DE1D3-01A1-452c-B481-4FA2B96271E8", KSCATEGORY_MULTIPLEXER); -#define KSCATEGORY_MULTIPLEXER DEFINE_GUIDNAMED(KSCATEGORY_MULTIPLEXER) - -#ifndef __ENCODER_API_GUIDS__ -#define __ENCODER_API_GUIDS__ - -#define STATIC_ENCAPIPARAM_BITRATE \ - 0x49cc4c43, 0xca83, 0x4ad4, 0xa9, 0xaf, 0xf3, 0x69, 0x6a, 0xf6, 0x66, 0xdf -DEFINE_GUIDSTRUCT("49CC4C43-CA83-4ad4-A9AF-F3696AF666DF", ENCAPIPARAM_BITRATE); -#define ENCAPIPARAM_BITRATE DEFINE_GUIDNAMED(ENCAPIPARAM_BITRATE) - -#define STATIC_ENCAPIPARAM_PEAK_BITRATE \ - 0x703f16a9, 0x3d48, 0x44a1, 0xb0, 0x77, 0x1, 0x8d, 0xff, 0x91, 0x5d, 0x19 -DEFINE_GUIDSTRUCT("703F16A9-3D48-44a1-B077-018DFF915D19", ENCAPIPARAM_PEAK_BITRATE); -#define ENCAPIPARAM_PEAK_BITRATE DEFINE_GUIDNAMED(ENCAPIPARAM_PEAK_BITRATE) - -#define STATIC_ENCAPIPARAM_BITRATE_MODE \ - 0xee5fb25c, 0xc713, 0x40d1, 0x9d, 0x58, 0xc0, 0xd7, 0x24, 0x1e, 0x25, 0xf -DEFINE_GUIDSTRUCT("EE5FB25C-C713-40d1-9D58-C0D7241E250F", ENCAPIPARAM_BITRATE_MODE); -#define ENCAPIPARAM_BITRATE_MODE DEFINE_GUIDNAMED(ENCAPIPARAM_BITRATE_MODE) - -#define STATIC_CODECAPI_CHANGELISTS \ - 0x62b12acf, 0xf6b0, 0x47d9, 0x94, 0x56, 0x96, 0xf2, 0x2c, 0x4e, 0x0b, 0x9d -DEFINE_GUIDSTRUCT("62B12ACF-F6B0-47D9-9456-96F22C4E0B9D", CODECAPI_CHANGELISTS ); -#define CODECAPI_CHANGELISTS DEFINE_GUIDNAMED(CODECAPI_CHANGELISTS ) - -#define STATIC_CODECAPI_VIDEO_ENCODER \ - 0x7112e8e1, 0x3d03, 0x47ef, 0x8e, 0x60, 0x03, 0xf1, 0xcf, 0x53, 0x73, 0x01 -DEFINE_GUIDSTRUCT("7112E8E1-3D03-47EF-8E60-03F1CF537301", CODECAPI_VIDEO_ENCODER ); -#define CODECAPI_VIDEO_ENCODER DEFINE_GUIDNAMED(CODECAPI_VIDEO_ENCODER ) - -#define STATIC_CODECAPI_AUDIO_ENCODER \ - 0xb9d19a3e, 0xf897, 0x429c, 0xbc, 0x46, 0x81, 0x38, 0xb7, 0x27, 0x2b, 0x2d -DEFINE_GUIDSTRUCT("B9D19A3E-F897-429C-BC46-8138B7272B2D", CODECAPI_AUDIO_ENCODER ); -#define CODECAPI_AUDIO_ENCODER DEFINE_GUIDNAMED(CODECAPI_AUDIO_ENCODER ) - -#define STATIC_CODECAPI_SETALLDEFAULTS \ - 0x6c5e6a7c, 0xacf8, 0x4f55, 0xa9, 0x99, 0x1a, 0x62, 0x81, 0x09, 0x05, 0x1b -DEFINE_GUIDSTRUCT("6C5E6A7C-ACF8-4F55-A999-1A628109051B", CODECAPI_SETALLDEFAULTS ); -#define CODECAPI_SETALLDEFAULTS DEFINE_GUIDNAMED(CODECAPI_SETALLDEFAULTS ) - -#define STATIC_CODECAPI_ALLSETTINGS \ - 0x6a577e92, 0x83e1, 0x4113, 0xad, 0xc2, 0x4f, 0xce, 0xc3, 0x2f, 0x83, 0xa1 -DEFINE_GUIDSTRUCT("6A577E92-83E1-4113-ADC2-4FCEC32F83A1", CODECAPI_ALLSETTINGS ); -#define CODECAPI_ALLSETTINGS DEFINE_GUIDNAMED(CODECAPI_ALLSETTINGS ) - -#define STATIC_CODECAPI_SUPPORTSEVENTS \ - 0x0581af97, 0x7693, 0x4dbd, 0x9d, 0xca, 0x3f, 0x9e, 0xbd, 0x65, 0x85, 0xa1 -DEFINE_GUIDSTRUCT("0581AF97-7693-4DBD-9DCA-3F9EBD6585A1", CODECAPI_SUPPORTSEVENTS ); -#define CODECAPI_SUPPORTSEVENTS DEFINE_GUIDNAMED(CODECAPI_SUPPORTSEVENTS ) - -#define STATIC_CODECAPI_CURRENTCHANGELIST \ - 0x1cb14e83, 0x7d72, 0x4657, 0x83, 0xfd, 0x47, 0xa2, 0xc5, 0xb9, 0xd1, 0x3d -DEFINE_GUIDSTRUCT("1CB14E83-7D72-4657-83FD-47A2C5B9D13D", CODECAPI_CURRENTCHANGELIST ); -#define CODECAPI_CURRENTCHANGELIST DEFINE_GUIDNAMED(CODECAPI_CURRENTCHANGELIST ) - -#endif // __ENCODER_API_GUIDS__ - -#ifndef __ENCODER_API_DEFINES__ -#define __ENCODER_API_DEFINES__ - -typedef enum { - - // - // 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 an average with a peak not to exceed the specified peak bitrate over - // a specified window. The default window size is considered to be 500ms - // (classically one GOP). - // - VariableBitRatePeak - -} VIDEOENCODER_BITRATE_MODE; - -#endif // __ENCODER_API_DEFINES__ - -#endif // !defined(_KSMEDIA_) diff --git a/sdk/dx8sdk/Include/ksproxy.h b/sdk/dx8sdk/Include/ksproxy.h deleted file mode 100644 index 62be50ec..00000000 --- a/sdk/dx8sdk/Include/ksproxy.h +++ /dev/null @@ -1,858 +0,0 @@ -/*++ - -Copyright (c) Microsoft Corporation. All rights reserved. - -Module Name: - - ksproxy.h - -Abstract: - - Interface definitions for WDM-CSA proxy filters. - ---*/ - -#ifndef __KSPROXY__ -#define __KSPROXY__ - -#ifdef __cplusplus -extern "C" { -#endif - -#undef KSDDKAPI -#ifdef _KSDDK_ -#define KSDDKAPI -#else // !_KSDDK_ -#define KSDDKAPI DECLSPEC_IMPORT -#endif // _KSDDK_ - -#define STATIC_IID_IKsObject\ - 0x423c13a2L, 0x2070, 0x11d0, 0x9e, 0xf7, 0x00, 0xaa, 0x00, 0xa2, 0x16, 0xa1 - -#define STATIC_IID_IKsPinEx\ - 0x7bb38260L, 0xd19c, 0x11d2, 0xb3, 0x8a, 0x00, 0xa0, 0xc9, 0x5e, 0xc2, 0x2e - -#define STATIC_IID_IKsPin\ - 0xb61178d1L, 0xa2d9, 0x11cf, 0x9e, 0x53, 0x00, 0xaa, 0x00, 0xa2, 0x16, 0xa1 - -#define STATIC_IID_IKsPinPipe\ - 0xe539cd90L, 0xa8b4, 0x11d1, 0x81, 0x89, 0x00, 0xa0, 0xc9, 0x06, 0x28, 0x02 - -#define STATIC_IID_IKsDataTypeHandler\ - 0x5ffbaa02L, 0x49a3, 0x11d0, 0x9f, 0x36, 0x00, 0xaa, 0x00, 0xa2, 0x16, 0xa1 - -#define STATIC_IID_IKsDataTypeCompletion\ - 0x827D1A0EL, 0x0F73, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 - -#define STATIC_IID_IKsInterfaceHandler\ - 0xD3ABC7E0L, 0x9A61, 0x11D0, 0xA4, 0x0D, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 - -#define STATIC_IID_IKsClockPropertySet\ - 0x5C5CBD84L, 0xE755, 0x11D0, 0xAC, 0x18, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 - -#define STATIC_IID_IKsAllocator\ - 0x8da64899L, 0xc0d9, 0x11d0, 0x84, 0x13, 0x00, 0x00, 0xf8, 0x22, 0xfe, 0x8a - -#define STATIC_IID_IKsAllocatorEx\ - 0x091bb63aL, 0x603f, 0x11d1, 0xb0, 0x67, 0x00, 0xa0, 0xc9, 0x06, 0x28, 0x02 - - -#ifndef STATIC_IID_IKsPropertySet -#define STATIC_IID_IKsPropertySet\ - 0x31EFAC30L, 0x515C, 0x11d0, 0xA9, 0xAA, 0x00, 0xAA, 0x00, 0x61, 0xBE, 0x93 -#endif // STATIC_IID_IKsPropertySet - -#define STATIC_IID_IKsTopology\ - 0x28F54683L, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 - -#ifndef STATIC_IID_IKsControl -#define STATIC_IID_IKsControl\ - 0x28F54685L, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 -#endif // STATIC_IID_IKsControl - -#define STATIC_IID_IKsAggregateControl\ - 0x7F40EAC0L, 0x3947, 0x11D2, 0x87, 0x4E, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 - -#define STATIC_CLSID_Proxy \ - 0x17CCA71BL, 0xECD7, 0x11D0, 0xB9, 0x08, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 - -#ifdef _KS_ - -#if !defined(__cplusplus) || _MSC_VER < 1100 -DEFINE_GUIDEX(IID_IKsObject); - -DEFINE_GUIDEX(IID_IKsPin); - -DEFINE_GUIDEX(IID_IKsPinEx); - -DEFINE_GUIDEX(IID_IKsPinPipe); - -DEFINE_GUIDEX(IID_IKsDataTypeHandler); - -DEFINE_GUIDEX(IID_IKsDataTypeCompletion); - -DEFINE_GUIDEX(IID_IKsInterfaceHandler); - -DEFINE_GUIDEX(IID_IKsClockPropertySet); - -DEFINE_GUIDEX(IID_IKsAllocator); - -DEFINE_GUIDEX(IID_IKsAllocatorEx); - -#define IID_IKsQualityForwarder KSCATEGORY_QUALITY -#endif // !defined(__cplusplus) || _MSC_VER < 1100 - -#define STATIC_IID_IKsQualityForwarder STATIC_KSCATEGORY_QUALITY - -typedef enum { - KsAllocatorMode_User, - KsAllocatorMode_Kernel -} KSALLOCATORMODE; - - -typedef enum { - FramingProp_Uninitialized, - FramingProp_None, - FramingProp_Old, - FramingProp_Ex -} FRAMING_PROP; - -typedef FRAMING_PROP *PFRAMING_PROP; - - -typedef enum { - Framing_Cache_Update, // request to bypass cache when read/write - Framing_Cache_ReadLast, - Framing_Cache_ReadOrig, - Framing_Cache_Write -} FRAMING_CACHE_OPS; - - -typedef struct { - LONGLONG MinTotalNominator; - LONGLONG MaxTotalNominator; - LONGLONG TotalDenominator; -} OPTIMAL_WEIGHT_TOTALS; - -// forward declaration -typedef struct IPin IPin; -typedef struct IKsPin IKsPin; -typedef struct IKsAllocator IKsAllocator; -typedef struct IKsAllocatorEx IKsAllocatorEx; - - -// -// allocators strategy is defined by graph manager -// -#define AllocatorStrategy_DontCare 0 - -// -// what to optimize -// -#define AllocatorStrategy_MinimizeNumberOfFrames 0x00000001 -#define AllocatorStrategy_MinimizeFrameSize 0x00000002 -#define AllocatorStrategy_MinimizeNumberOfAllocators 0x00000004 -#define AllocatorStrategy_MaximizeSpeed 0x00000008 - -// -// factors (flags) defining the Pipes properties -// -#define PipeFactor_None 0 -#define PipeFactor_UserModeUpstream 0x00000001 -#define PipeFactor_UserModeDownstream 0x00000002 -#define PipeFactor_MemoryTypes 0x00000004 -#define PipeFactor_Flags 0x00000008 -#define PipeFactor_PhysicalRanges 0x00000010 -#define PipeFactor_OptimalRanges 0x00000020 -#define PipeFactor_FixedCompression 0x00000040 -#define PipeFactor_UnknownCompression 0x00000080 - -#define PipeFactor_Buffers 0x00000100 -#define PipeFactor_Align 0x00000200 - -#define PipeFactor_PhysicalEnd 0x00000400 -#define PipeFactor_LogicalEnd 0x00000800 - - - -typedef enum { - PipeState_DontCare, - PipeState_RangeNotFixed, - PipeState_RangeFixed, - PipeState_CompressionUnknown, - PipeState_Finalized -} PIPE_STATE; - - -// -// pipe dimensions relative to BeginPin. -// - -typedef struct _PIPE_DIMENSIONS { - KS_COMPRESSION AllocatorPin; - KS_COMPRESSION MaxExpansionPin; - KS_COMPRESSION EndPin; -} PIPE_DIMENSIONS, *PPIPE_DIMENSIONS; - - -typedef enum { - Pipe_Allocator_None, - Pipe_Allocator_FirstPin, - Pipe_Allocator_LastPin, - Pipe_Allocator_MiddlePin -} PIPE_ALLOCATOR_PLACE; - -typedef PIPE_ALLOCATOR_PLACE *PPIPE_ALLOCATOR_PLACE; - - -typedef enum { - KS_MemoryTypeDontCare = 0, - KS_MemoryTypeKernelPaged, - KS_MemoryTypeKernelNonPaged, - KS_MemoryTypeDeviceHostMapped, - KS_MemoryTypeDeviceSpecific, - KS_MemoryTypeUser, - KS_MemoryTypeAnyHost -} KS_LogicalMemoryType; - -typedef KS_LogicalMemoryType *PKS_LogicalMemoryType; - - - -typedef struct _PIPE_TERMINATION { - ULONG Flags; - ULONG OutsideFactors; - ULONG Weigth; // outside weight - KS_FRAMING_RANGE PhysicalRange; - KS_FRAMING_RANGE_WEIGHTED OptimalRange; - KS_COMPRESSION Compression; // relative to the connected pin on a neighboring filter. -} PIPE_TERMINATION; - - -// -// extended allocator properties -// -typedef struct _ALLOCATOR_PROPERTIES_EX - { - long cBuffers; - long cbBuffer; - long cbAlign; - long cbPrefix; -// new part - GUID MemoryType; - GUID BusType; // one of the buses this pipe is using - PIPE_STATE State; - PIPE_TERMINATION Input; - PIPE_TERMINATION Output; - ULONG Strategy; - ULONG Flags; - ULONG Weight; - KS_LogicalMemoryType LogicalMemoryType; - PIPE_ALLOCATOR_PLACE AllocatorPlace; - PIPE_DIMENSIONS Dimensions; - KS_FRAMING_RANGE PhysicalRange; // on allocator pin - IKsAllocatorEx* PrevSegment; // doubly-linked list of KS allocators - ULONG CountNextSegments; // possible multiple dependent pipes - IKsAllocatorEx** NextSegments; - ULONG InsideFactors; // existing factors (different from "don't care") - ULONG NumberPins; -} ALLOCATOR_PROPERTIES_EX; - -typedef ALLOCATOR_PROPERTIES_EX *PALLOCATOR_PROPERTIES_EX; - - -#ifdef __STREAMS__ - -struct DECLSPEC_UUID("5C5CBD84-E755-11D0-AC18-00A0C9223196") IKsClockPropertySet; -#undef INTERFACE -#define INTERFACE IKsClockPropertySet -DECLARE_INTERFACE_(IKsClockPropertySet, IUnknown) -{ - STDMETHOD(KsGetTime)( - THIS_ - LONGLONG* Time - ) PURE; - STDMETHOD(KsSetTime)( - THIS_ - LONGLONG Time - ) PURE; - STDMETHOD(KsGetPhysicalTime)( - THIS_ - LONGLONG* Time - ) PURE; - STDMETHOD(KsSetPhysicalTime)( - THIS_ - LONGLONG Time - ) PURE; - STDMETHOD(KsGetCorrelatedTime)( - THIS_ - KSCORRELATED_TIME* CorrelatedTime - ) PURE; - STDMETHOD(KsSetCorrelatedTime)( - THIS_ - KSCORRELATED_TIME* CorrelatedTime - ) PURE; - STDMETHOD(KsGetCorrelatedPhysicalTime)( - THIS_ - KSCORRELATED_TIME* CorrelatedTime - ) PURE; - STDMETHOD(KsSetCorrelatedPhysicalTime)( - THIS_ - KSCORRELATED_TIME* CorrelatedTime - ) PURE; - STDMETHOD(KsGetResolution)( - THIS_ - KSRESOLUTION* Resolution - ) PURE; - STDMETHOD(KsGetState)( - THIS_ - KSSTATE* State - ) PURE; -}; - - -interface DECLSPEC_UUID("8da64899-c0d9-11d0-8413-0000f822fe8a") IKsAllocator; -#undef INTERFACE -#define INTERFACE IKsAllocator -DECLARE_INTERFACE_(IKsAllocator, IUnknown) -{ - STDMETHOD_(HANDLE, KsGetAllocatorHandle)( - THIS - ) PURE; - STDMETHOD_(KSALLOCATORMODE, KsGetAllocatorMode)( - THIS - ) PURE; - STDMETHOD(KsGetAllocatorStatus)( - THIS_ - PKSSTREAMALLOCATOR_STATUS AllocatorStatus - ) PURE; - STDMETHOD_(VOID, KsSetAllocatorMode)( - THIS_ - KSALLOCATORMODE Mode - ) PURE; -}; - -interface DECLSPEC_UUID("091bb63a-603f-11d1-b067-00a0c9062802") IKsAllocatorEx; -#undef INTERFACE -#define INTERFACE IKsAllocatorEx -DECLARE_INTERFACE_(IKsAllocatorEx, IKsAllocator) -{ - STDMETHOD_(PALLOCATOR_PROPERTIES_EX, KsGetProperties)( - THIS - ) PURE; - STDMETHOD_(VOID, KsSetProperties)( - THIS_ - PALLOCATOR_PROPERTIES_EX - ) PURE; - STDMETHOD_(VOID, KsSetAllocatorHandle)( - THIS_ - HANDLE AllocatorHandle - ) PURE; - STDMETHOD_(HANDLE, KsCreateAllocatorAndGetHandle)( - THIS_ - IKsPin* KsPin - ) PURE; -}; - -typedef enum { - KsPeekOperation_PeekOnly, - KsPeekOperation_AddRef -} KSPEEKOPERATION; - -typedef struct _KSSTREAM_SEGMENT *PKSSTREAM_SEGMENT; - -interface DECLSPEC_UUID("b61178d1-a2d9-11cf-9e53-00aa00a216a1") IKsPin; - -#undef INTERFACE -#define INTERFACE IKsPin -DECLARE_INTERFACE_(IKsPin, IUnknown) -{ - STDMETHOD(KsQueryMediums)( - THIS_ - PKSMULTIPLE_ITEM* MediumList - ) PURE; - STDMETHOD(KsQueryInterfaces)( - THIS_ - PKSMULTIPLE_ITEM* InterfaceList - ) PURE; - STDMETHOD(KsCreateSinkPinHandle)( - THIS_ - KSPIN_INTERFACE& Interface, - KSPIN_MEDIUM& Medium - ) PURE; - STDMETHOD(KsGetCurrentCommunication)( - THIS_ - KSPIN_COMMUNICATION *Communication, - KSPIN_INTERFACE *Interface, - KSPIN_MEDIUM *Medium - ) PURE; - STDMETHOD(KsPropagateAcquire)( - THIS - ) PURE; - STDMETHOD(KsDeliver)( - THIS_ - IMediaSample* Sample, - ULONG Flags - ) PURE; - STDMETHOD(KsMediaSamplesCompleted)( - THIS_ - PKSSTREAM_SEGMENT StreamSegment - ) PURE; - STDMETHOD_(IMemAllocator *, KsPeekAllocator)( - THIS_ - KSPEEKOPERATION Operation - ) PURE; - STDMETHOD(KsReceiveAllocator)( - THIS_ - IMemAllocator *MemAllocator - ) PURE; - STDMETHOD(KsRenegotiateAllocator)( - THIS - ) PURE; - STDMETHOD_(LONG, KsIncrementPendingIoCount)( - THIS - ) PURE; - STDMETHOD_(LONG, KsDecrementPendingIoCount)( - THIS - ) PURE; - STDMETHOD(KsQualityNotify)( - THIS_ - ULONG Proportion, - REFERENCE_TIME TimeDelta - ) PURE; -}; - -interface DECLSPEC_UUID("7bb38260-d19c-11d2-b38a-00a0c95ec22e") IKsPinEx; -#undef INTERFACE -#define INTERFACE IKsPinEx -DECLARE_INTERFACE_(IKsPinEx, IKsPin) -{ - STDMETHOD_(VOID, KsNotifyError)( - THIS_ - IMediaSample* Sample, - HRESULT hr - ) PURE; -}; - -interface DECLSPEC_UUID("e539cd90-a8b4-11d1-8189-00a0c9062802") IKsPinPipe; -#undef INTERFACE -#define INTERFACE IKsPinPipe -DECLARE_INTERFACE_(IKsPinPipe, IUnknown) -{ - STDMETHOD(KsGetPinFramingCache)( - THIS_ - PKSALLOCATOR_FRAMING_EX *FramingEx, - PFRAMING_PROP FramingProp, - FRAMING_CACHE_OPS Option - ) PURE; - STDMETHOD(KsSetPinFramingCache)( - THIS_ - PKSALLOCATOR_FRAMING_EX FramingEx, - PFRAMING_PROP FramingProp, - FRAMING_CACHE_OPS Option - ) PURE; - STDMETHOD_(IPin*, KsGetConnectedPin)( - THIS - ) PURE; - STDMETHOD_(IKsAllocatorEx*, KsGetPipe)( - THIS_ - KSPEEKOPERATION Operation - ) PURE; - STDMETHOD(KsSetPipe)( - THIS_ - IKsAllocatorEx *KsAllocator - ) PURE; - STDMETHOD_(ULONG, KsGetPipeAllocatorFlag)( - THIS - ) PURE; - STDMETHOD(KsSetPipeAllocatorFlag)( - THIS_ - ULONG Flag - ) PURE; - STDMETHOD_(GUID, KsGetPinBusCache)( - THIS - ) PURE; - STDMETHOD(KsSetPinBusCache)( - THIS_ - GUID Bus - ) PURE; -// -// very useful methods for tracing. -// - STDMETHOD_(PWCHAR, KsGetPinName)( - THIS - ) PURE; - STDMETHOD_(PWCHAR, KsGetFilterName)( - THIS - ) PURE; -}; - - -interface DECLSPEC_UUID("CD5EBE6B-8B6E-11D1-8AE0-00A0C9223196") IKsPinFactory; -#undef INTERFACE -#define INTERFACE IKsPinFactory -DECLARE_INTERFACE_(IKsPinFactory, IUnknown) -{ - STDMETHOD(KsPinFactory)( - THIS_ - ULONG* PinFactory - ) PURE; -}; - -typedef enum { - KsIoOperation_Write, - KsIoOperation_Read -} KSIOOPERATION; - -interface DECLSPEC_UUID("5ffbaa02-49a3-11d0-9f36-00aa00a216a1") IKsDataTypeHandler; -#undef INTERFACE -#define INTERFACE IKsDataTypeHandler -DECLARE_INTERFACE_(IKsDataTypeHandler, IUnknown) -{ - STDMETHOD(KsCompleteIoOperation)( - THIS_ - IMediaSample *Sample, - PVOID StreamHeader, - KSIOOPERATION IoOperation, - BOOL Cancelled - ) PURE; - STDMETHOD(KsIsMediaTypeInRanges)( - THIS_ - PVOID DataRanges - ) PURE; - STDMETHOD(KsPrepareIoOperation)( - THIS_ - IMediaSample *Sample, - PVOID StreamHeader, - KSIOOPERATION IoOperation - ) PURE; - STDMETHOD(KsQueryExtendedSize)( - THIS_ - ULONG* ExtendedSize - ) PURE; - STDMETHOD(KsSetMediaType)( - THIS_ - const AM_MEDIA_TYPE* AmMediaType - ) PURE; -}; - -interface DECLSPEC_UUID("827D1A0E-0F73-11D2-B27A-00A0C9223196") IKsDataTypeCompletion; -#undef INTERFACE -#define INTERFACE IKsDataTypeCompletion -DECLARE_INTERFACE_(IKsDataTypeCompletion, IUnknown) -{ - STDMETHOD(KsCompleteMediaType)( - THIS_ - HANDLE FilterHandle, - ULONG PinFactoryId, - AM_MEDIA_TYPE* AmMediaType - ) PURE; -}; - -interface DECLSPEC_UUID("D3ABC7E0-9A61-11d0-A40D-00A0C9223196") IKsInterfaceHandler; -#undef INTERFACE -#define INTERFACE IKsInterfaceHandler -DECLARE_INTERFACE_(IKsInterfaceHandler, IUnknown) -{ - STDMETHOD(KsSetPin)( - THIS_ - IKsPin *KsPin - ) PURE; - STDMETHOD(KsProcessMediaSamples)( - THIS_ - IKsDataTypeHandler *KsDataTypeHandler, - IMediaSample** SampleList, - PLONG SampleCount, - KSIOOPERATION IoOperation, - PKSSTREAM_SEGMENT *StreamSegment - ) PURE; - STDMETHOD(KsCompleteIo)( - THIS_ - PKSSTREAM_SEGMENT StreamSegment - ) PURE; -}; - - -// -// This structure definition is the common header required by the proxy to -// dispatch the stream segment to the interface handler. Interface handlers -// will create extended structures to include other information such as -// media samples, extended header size and so on. -// - -typedef struct _KSSTREAM_SEGMENT { - IKsInterfaceHandler *KsInterfaceHandler; - IKsDataTypeHandler *KsDataTypeHandler; - KSIOOPERATION IoOperation; - HANDLE CompletionEvent; - -} KSSTREAM_SEGMENT; - -interface DECLSPEC_UUID("423c13a2-2070-11d0-9ef7-00aa00a216a1") IKsObject; -#undef INTERFACE -#define INTERFACE IKsObject -DECLARE_INTERFACE_(IKsObject, IUnknown) -{ - STDMETHOD_(HANDLE, KsGetObjectHandle)( - THIS - ) PURE; -}; - -interface DECLSPEC_UUID("97ebaacb-95bd-11d0-a3ea-00a0c9223196") IKsQualityForwarder; -#undef INTERFACE -#define INTERFACE IKsQualityForwarder -DECLARE_INTERFACE_(IKsQualityForwarder, IKsObject) -{ - STDMETHOD_(VOID, KsFlushClient)( - THIS_ - IKsPin* Pin - ) PURE; -}; - -interface DECLSPEC_UUID("412bd695-f84b-46c1-ac73-54196dbc8fa7") IKsNotifyEvent; -#undef INTERFACE -#define INTERFACE IKsNotifyEvent -DECLARE_INTERFACE_(IKsNotifyEvent, IUnknown) -{ - STDMETHOD(KsNotifyEvent)( - THIS_ - ULONG Event, - ULONG_PTR lParam1, - ULONG_PTR lParam2 - ) PURE; -}; - -KSDDKAPI -HRESULT -WINAPI -KsResolveRequiredAttributes( - PKSDATARANGE DataRange, - PKSMULTIPLE_ITEM Attributes OPTIONAL - ); - -KSDDKAPI -HRESULT -WINAPI -KsOpenDefaultDevice( - REFGUID Category, - ACCESS_MASK Access, - PHANDLE DeviceHandle - ); -KSDDKAPI -HRESULT -WINAPI -KsSynchronousDeviceControl( - HANDLE Handle, - ULONG IoControl, - PVOID InBuffer, - ULONG InLength, - PVOID OutBuffer, - ULONG OutLength, - PULONG BytesReturned - ); -KSDDKAPI -HRESULT -WINAPI -KsGetMultiplePinFactoryItems( - HANDLE FilterHandle, - ULONG PinFactoryId, - ULONG PropertyId, - PVOID* Items - ); -KSDDKAPI -HRESULT -WINAPI -KsGetMediaTypeCount( - HANDLE FilterHandle, - ULONG PinFactoryId, - ULONG* MediaTypeCount - ); -KSDDKAPI -HRESULT -WINAPI -KsGetMediaType( - int Position, - AM_MEDIA_TYPE* AmMediaType, - HANDLE FilterHandle, - ULONG PinFactoryId - ); - -#endif // __STREAMS__ - -#ifndef _IKsPropertySet_ -#if !defined(__cplusplus) || _MSC_VER < 1100 -DEFINE_GUIDEX(IID_IKsPropertySet); -#endif // !defined(__cplusplus) || _MSC_VER < 1100 -#endif // _IKsPropertySet_ - -#ifndef _IKsControl_ -#if !defined(__cplusplus) || _MSC_VER < 1100 -DEFINE_GUIDEX(IID_IKsControl); -#endif // !defined(__cplusplus) || _MSC_VER < 1100 -#endif // _IKsControl_ - -#if !defined(__cplusplus) || _MSC_VER < 1100 -DEFINE_GUIDEX(IID_IKsAggregateControl); -#endif // !defined(__cplusplus) || _MSC_VER < 1100 - -#ifndef _IKsTopology_ -#if !defined(__cplusplus) || _MSC_VER < 1100 -DEFINE_GUIDEX(IID_IKsTopology); -#endif // !defined(__cplusplus) || _MSC_VER < 1100 -#endif // _IKsTopology_ - -DEFINE_GUIDSTRUCT("17CCA71B-ECD7-11D0-B908-00A0C9223196", CLSID_Proxy); -#define CLSID_Proxy DEFINE_GUIDNAMED(CLSID_Proxy) - -#else // !_KS_ - -#ifndef _IKsPropertySet_ -#if !defined(__cplusplus) || _MSC_VER < 1100 -DEFINE_GUID(IID_IKsPropertySet, STATIC_IID_IKsPropertySet); -#endif // !defined(__cplusplus) || _MSC_VER < 1100 -#endif // _IKsPropertySet_ - -#if !defined(__cplusplus) || _MSC_VER < 1100 -DEFINE_GUID(CLSID_Proxy, STATIC_CLSID_Proxy); -#else // defined(__cplusplus) && _MSC_VER >= 1100 -DECLSPEC_UUID("17CCA71B-ECD7-11D0-B908-00A0C9223196") CLSID_Proxy; -#endif // defined(__cplusplus) && _MSC_VER >= 1100 - -#endif // !_KS_ - -#ifndef _IKsPropertySet_ -#define _IKsPropertySet_ - -#define KSPROPERTY_SUPPORT_GET 1 -#define KSPROPERTY_SUPPORT_SET 2 - -#ifdef DECLARE_INTERFACE_ - -interface DECLSPEC_UUID("31EFAC30-515C-11d0-A9AA-00aa0061be93") IKsPropertySet; -#undef INTERFACE -#define INTERFACE IKsPropertySet -DECLARE_INTERFACE_(IKsPropertySet, IUnknown) -{ - STDMETHOD(Set)( - THIS_ - IN REFGUID PropSet, - IN ULONG Id, - IN LPVOID InstanceData, - IN ULONG InstanceLength, - IN LPVOID PropertyData, - IN ULONG DataLength - ) PURE; - - STDMETHOD(Get)( - THIS_ - IN REFGUID PropSet, - IN ULONG Id, - IN LPVOID InstanceData, - IN ULONG InstanceLength, - OUT LPVOID PropertyData, - IN ULONG DataLength, - OUT ULONG* BytesReturned - ) PURE; - - STDMETHOD(QuerySupported)( - THIS_ - IN REFGUID PropSet, - IN ULONG Id, - OUT ULONG* TypeSupport - ) PURE; -}; - -#endif // DECLARE_INTERFACE_ - -#endif // _IKsPropertySet_ - -#ifndef _IKsControl_ -#define _IKsControl_ - -#ifdef DECLARE_INTERFACE_ - -interface DECLSPEC_UUID("28F54685-06FD-11D2-B27A-00A0C9223196") IKsControl; -#undef INTERFACE -#define INTERFACE IKsControl -DECLARE_INTERFACE_(IKsControl, IUnknown) -{ - STDMETHOD(KsProperty)( - THIS_ - IN PKSPROPERTY Property, - IN ULONG PropertyLength, - IN OUT LPVOID PropertyData, - IN ULONG DataLength, - OUT ULONG* BytesReturned - ) PURE; - STDMETHOD(KsMethod)( - THIS_ - IN PKSMETHOD Method, - IN ULONG MethodLength, - IN OUT LPVOID MethodData, - IN ULONG DataLength, - OUT ULONG* BytesReturned - ) PURE; - STDMETHOD(KsEvent)( - THIS_ - IN PKSEVENT Event OPTIONAL, - IN ULONG EventLength, - IN OUT LPVOID EventData, - IN ULONG DataLength, - OUT ULONG* BytesReturned - ) PURE; -}; - -#endif // DECLARE_INTERFACE_ - -#endif // _IKsControl_ - - -#ifdef DECLARE_INTERFACE_ - -interface DECLSPEC_UUID("7F40EAC0-3947-11D2-874E-00A0C9223196") IKsAggregateControl; -#undef INTERFACE -#define INTERFACE IKsAggregateControl -DECLARE_INTERFACE_(IKsAggregateControl, IUnknown) -{ - STDMETHOD(KsAddAggregate)( - THIS_ - IN REFGUID AggregateClass - ) PURE; - STDMETHOD(KsRemoveAggregate)( - THIS_ - IN REFGUID AggregateClass - ) PURE; -}; - -#endif // DECLARE_INTERFACE_ - -#ifndef _IKsTopology_ -#define _IKsTopology_ - -#ifdef DECLARE_INTERFACE_ - -interface DECLSPEC_UUID("28F54683-06FD-11D2-B27A-00A0C9223196") IKsTopology; -#undef INTERFACE -#define INTERFACE IKsTopology -DECLARE_INTERFACE_(IKsTopology, IUnknown) -{ - STDMETHOD(CreateNodeInstance)( - THIS_ - IN ULONG NodeId, - IN ULONG Flags, - IN ACCESS_MASK DesiredAccess, - IN IUnknown* UnkOuter OPTIONAL, - IN REFGUID InterfaceId, - OUT LPVOID* Interface - ) PURE; -}; - -#endif // DECLARE_INTERFACE_ - -#endif // _IKsTopology_ - -#ifdef __cplusplus -} -#endif // __cplusplus - -#endif // __KSPROXY__ diff --git a/sdk/dx8sdk/Include/ksuuids.h b/sdk/dx8sdk/Include/ksuuids.h deleted file mode 100644 index 816fff26..00000000 --- a/sdk/dx8sdk/Include/ksuuids.h +++ /dev/null @@ -1,244 +0,0 @@ -//------------------------------------------------------------------------------ -// File: ksuuids.h -// -// Desc: Contains the GUIDs for the MediaType type, subtype fields and format -// types for DVD/MPEG2 media types. -// -// Copyright (c) 1992 - 2002, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -// -// --- MPEG 2 definitions --- -// - -// 36523B13-8EE5-11d1-8CA3-0060B057664A -OUR_GUID_ENTRY(MEDIATYPE_MPEG2_PACK, -0x36523B13, 0x8EE5, 0x11d1, 0x8C, 0xA3, 0x00, 0x60, 0xB0, 0x57, 0x66, 0x4A) - -// e06d8020-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIATYPE_MPEG2_PES, -0xe06d8020, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea) - - -#if 0 -DEFINE_GUID(MEDIATYPE_CONTROL, -0xe06d8021, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea); -#endif // #if 0 - - -OUR_GUID_ENTRY( MEDIATYPE_MPEG2_SECTIONS, - 0x455f176c, 0x4b06, 0x47ce, 0x9a, 0xef, 0x8c, 0xae, 0xf7, 0x3d, 0xf7, 0xb5) - -OUR_GUID_ENTRY(MEDIASUBTYPE_ATSC_SI, -0xb3c7397c, 0xd303, 0x414d, 0xb3, 0x3c, 0x4e, 0xd2, 0xc9, 0xd2, 0x97, 0x33) - -OUR_GUID_ENTRY(MEDIASUBTYPE_DVB_SI, -0xe9dd31a3, 0x221d, 0x4adb, 0x85, 0x32, 0x9a, 0xf3, 0x9, 0xc1, 0xa4, 0x8) - - -// {C892E55B-252D-42b5-A316-D997E7A5D995} -OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG2DATA, -0xc892e55b, 0x252d, 0x42b5, 0xa3, 0x16, 0xd9, 0x97, 0xe7, 0xa5, 0xd9, 0x95) - - - -// e06d8026-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG2_VIDEO, -0xe06d8026, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea) - -// use MPEG2VIDEOINFO (defined below) with FORMAT_MPEG2_VIDEO -// e06d80e3-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(FORMAT_MPEG2_VIDEO, -0xe06d80e3, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea) - -// F72A76A0-EB0A-11d0-ACE4-0000C0CC16BA (FORMAT_VideoInfo2) -OUR_GUID_ENTRY(FORMAT_VIDEOINFO2, -0xf72a76A0L, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba) - -// MPEG2 Other subtypes -// e06d8022-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG2_PROGRAM, -0xe06d8022, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// e06d8023-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG2_TRANSPORT, -0xe06d8023, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// 138AA9A4-1EE2-4c5b-988E-19ABFDBC8A11 -OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG2_TRANSPORT_STRIDE, -0x138aa9a4, 0x1ee2, 0x4c5b, 0x98, 0x8e, 0x19, 0xab, 0xfd, 0xbc, 0x8a, 0x11) - -// e06d802b-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG2_AUDIO, -0xe06d802b, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// e06d802c-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIASUBTYPE_DOLBY_AC3, -0xe06d802c, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// e06d802d-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIASUBTYPE_DVD_SUBPICTURE, -0xe06d802d, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// e06d8032-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIASUBTYPE_DVD_LPCM_AUDIO, -0xe06d8032, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// e06d8033-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIASUBTYPE_DTS, -0xe06d8033, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// e06d8034-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIASUBTYPE_SDDS, -0xe06d8034, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// DVD-related mediatypes -// ED0B916A-044D-11d1-AA78-00C04FC31D60 -OUR_GUID_ENTRY(MEDIATYPE_DVD_ENCRYPTED_PACK, -0xed0b916a, 0x044d, 0x11d1, 0xaa, 0x78, 0x00, 0xc0, 0x04f, 0xc3, 0x1d, 0x60) - -// e06d802e-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIATYPE_DVD_NAVIGATION, -0xe06d802e, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// e06d802f-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIASUBTYPE_DVD_NAVIGATION_PCI, -0xe06d802f, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// e06d8030-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIASUBTYPE_DVD_NAVIGATION_DSI, -0xe06d8030, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// e06d8031-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(MEDIASUBTYPE_DVD_NAVIGATION_PROVIDER, -0xe06d8031, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// -// DVD - MPEG2/AC3-related Formats -// -// e06d80e3-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(FORMAT_MPEG2Video, -0xe06d80e3, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// e06d80e4-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(FORMAT_DolbyAC3, -0xe06d80e4, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// e06d80e5-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(FORMAT_MPEG2Audio, -0xe06d80e5, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - -// e06d80e6-db46-11cf-b4d1-00805f6cbbea -OUR_GUID_ENTRY(FORMAT_DVD_LPCMAudio, -0xe06d80e6, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea) - - -// -// KS Property Set Id (to communicate with the WDM Proxy filter) -- from -// ksmedia.h of WDM DDK. -// - -// BFABE720-6E1F-11D0-BCF2-444553540000 -OUR_GUID_ENTRY(AM_KSPROPSETID_AC3, -0xBFABE720, 0x6E1F, 0x11D0, 0xBC, 0xF2, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00) - -// ac390460-43af-11d0-bd6a-003505c103a9 -OUR_GUID_ENTRY(AM_KSPROPSETID_DvdSubPic, -0xac390460, 0x43af, 0x11d0, 0xbd, 0x6a, 0x00, 0x35, 0x05, 0xc1, 0x03, 0xa9) - -// 0E8A0A40L-6AEF-11D0-9ED0-00A024CA19B3 -OUR_GUID_ENTRY(AM_KSPROPSETID_CopyProt, -0x0E8A0A40, 0x6AEF, 0x11D0, 0x9E, 0xD0, 0x00, 0xA0, 0x24, 0xCA, 0x19, 0xB3) - -// A503C5C0-1D1D-11d1-AD80-444553540000 -OUR_GUID_ENTRY(AM_KSPROPSETID_TSRateChange, -0xa503c5c0, 0x1d1d, 0x11d1, 0xad, 0x80, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0) - -// 3577EB09-9582-477f-B29C-B0C452A4FF9A -OUR_GUID_ENTRY(AM_KSPROPSETID_DVD_RateChange, -0x3577eb09, 0x9582, 0x477f, 0xb2, 0x9c, 0xb0, 0xc4, 0x52, 0xa4, 0xff, 0x9a) - -// ae4720ae-aa71-42d8-b82a-fffdf58b76fd -OUR_GUID_ENTRY(AM_KSPROPSETID_DvdKaraoke, -0xae4720ae, 0xaa71, 0x42d8, 0xb8, 0x2a, 0xff, 0xfd, 0xf5, 0x8b, 0x76, 0xfd) - -// c830acbd-ab07-492f-8852-45b6987c2979 -OUR_GUID_ENTRY(AM_KSPROPSETID_FrameStep, -0xc830acbd, 0xab07, 0x492f, 0x88, 0x52, 0x45, 0xb6, 0x98, 0x7c, 0x29, 0x79) - -// -// KS categories from ks.h and ksmedia.h -// -// - -// 65E8773D-8F56-11D0-A3B9-00A0C9223196 -OUR_GUID_ENTRY(AM_KSCATEGORY_CAPTURE, -0x65E8773DL, 0x8F56, 0x11D0, 0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96) - -// 65E8773E-8F56-11D0-A3B9-00A0C9223196 -OUR_GUID_ENTRY(AM_KSCATEGORY_RENDER, -0x65E8773EL, 0x8F56, 0x11D0, 0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96) - -// 1E84C900-7E70-11D0-A5D6-28DB04C10000 -OUR_GUID_ENTRY(AM_KSCATEGORY_DATACOMPRESSOR, -0x1E84C900L, 0x7E70, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00) - -// 6994AD04-93EF-11D0-A3CC-00A0C9223196 -OUR_GUID_ENTRY(AM_KSCATEGORY_AUDIO, -0x6994AD04L, 0x93EF, 0x11D0, 0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96) - -// 6994AD05-93EF-11D0-A3CC-00A0C9223196 -OUR_GUID_ENTRY(AM_KSCATEGORY_VIDEO, -0x6994AD05L, 0x93EF, 0x11D0, 0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96) - -// a799a800-a46d-11d0-a18c-00a02401dcd4 -OUR_GUID_ENTRY(AM_KSCATEGORY_TVTUNER, -0xa799a800L, 0xa46d, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0x24, 0x01, 0xdc, 0xd4) - -// a799a801-a46d-11d0-a18c-00a02401dcd4 -OUR_GUID_ENTRY(AM_KSCATEGORY_CROSSBAR, -0xa799a801L, 0xa46d, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0x24, 0x01, 0xdc, 0xd4) - -// a799a802-a46d-11d0-a18c-00a02401dcd4 -OUR_GUID_ENTRY(AM_KSCATEGORY_TVAUDIO, -0xa799a802L, 0xa46d, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0x24, 0x01, 0xdc, 0xd4) - - -// 07dad660L-22f1-11d1-a9f4-00c04fbbde8f -OUR_GUID_ENTRY(AM_KSCATEGORY_VBICODEC, -0x07dad660L, 0x22f1, 0x11d1, 0xa9, 0xf4, 0x00, 0xc0, 0x4f, 0xbb, 0xde, 0x8f) - - -// 0A4252A0L-7E70-11D0-A5D6-28DB04C10000 -OUR_GUID_ENTRY(AM_KSCATEGORY_SPLITTER, -0x0A4252A0L, 0x7E70, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00) - - -// -// GUIDs needed to support IKsPin interface -// - -// d3abc7e0l-9a61-11d0-a40d00a0c9223196 -OUR_GUID_ENTRY(IID_IKsInterfaceHandler, -0xD3ABC7E0L, 0x9A61, 0x11D0, 0xA4, 0x0D, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96) - -// 5ffbaa02l-49a3-11d0-9f3600aa00a216a1 -OUR_GUID_ENTRY(IID_IKsDataTypeHandler, -0x5FFBAA02L, 0x49A3, 0x11D0, 0x9F, 0x36, 0x00, 0xAA, 0x00, 0xA2, 0x16, 0xA1) - -// b61178d1-a2d9-11cf-9e53-00aa00a216a1 -OUR_GUID_ENTRY(IID_IKsPin, -0xb61178d1L, 0xa2d9, 0x11cf, 0x9e, 0x53, 0x00, 0xaa, 0x00, 0xa2, 0x16, 0xa1) - -// 28F54685-06FD-11D2-B27A-00A0C9223196 -OUR_GUID_ENTRY(IID_IKsControl, -0x28F54685L, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96) - -// CD5EBE6B-8B6E-11D1-8AE0-00A0C9223196 -OUR_GUID_ENTRY(IID_IKsPinFactory, -0xCD5EBE6BL, 0x8B6E, 0x11D1, 0x8A, 0xE0, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96) - -// 1A8766A0-62CE-11CF-A5D6-28DB04C10000 -OUR_GUID_ENTRY(AM_INTERFACESETID_Standard, -0x1A8766A0L, 0x62CE, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00) diff --git a/sdk/dx8sdk/Include/mediaerr.h b/sdk/dx8sdk/Include/mediaerr.h deleted file mode 100644 index 74c242a5..00000000 --- a/sdk/dx8sdk/Include/mediaerr.h +++ /dev/null @@ -1,20 +0,0 @@ -//------------------------------------------------------------------------------ -// File: MediaErr.h -// -// Desc: Shell error codes -// -// Copyright (c) 1999 - 2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef _MEDIAERR_H_ -#define _MEDIAERR_H_ - -#define DMO_E_INVALIDSTREAMINDEX 0x80040201 -#define DMO_E_INVALIDTYPE 0x80040202 -#define DMO_E_TYPE_NOT_SET 0x80040203 -#define DMO_E_NOTACCEPTING 0x80040204 -#define DMO_E_TYPE_NOT_ACCEPTED 0x80040205 -#define DMO_E_NO_MORE_ITEMS 0x80040206 - -#endif _MEDIAERR_H_ diff --git a/sdk/dx8sdk/Include/mediaobj.h b/sdk/dx8sdk/Include/mediaobj.h deleted file mode 100644 index d90d0943..00000000 --- a/sdk/dx8sdk/Include/mediaobj.h +++ /dev/null @@ -1,1574 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for mediaobj.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __mediaobj_h__ -#define __mediaobj_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IMediaBuffer_FWD_DEFINED__ -#define __IMediaBuffer_FWD_DEFINED__ -typedef interface IMediaBuffer IMediaBuffer; -#endif /* __IMediaBuffer_FWD_DEFINED__ */ - - -#ifndef __IMediaObject_FWD_DEFINED__ -#define __IMediaObject_FWD_DEFINED__ -typedef interface IMediaObject IMediaObject; -#endif /* __IMediaObject_FWD_DEFINED__ */ - - -#ifndef __IEnumDMO_FWD_DEFINED__ -#define __IEnumDMO_FWD_DEFINED__ -typedef interface IEnumDMO IEnumDMO; -#endif /* __IEnumDMO_FWD_DEFINED__ */ - - -#ifndef __IMediaObjectInPlace_FWD_DEFINED__ -#define __IMediaObjectInPlace_FWD_DEFINED__ -typedef interface IMediaObjectInPlace IMediaObjectInPlace; -#endif /* __IMediaObjectInPlace_FWD_DEFINED__ */ - - -#ifndef __IDMOQualityControl_FWD_DEFINED__ -#define __IDMOQualityControl_FWD_DEFINED__ -typedef interface IDMOQualityControl IDMOQualityControl; -#endif /* __IDMOQualityControl_FWD_DEFINED__ */ - - -#ifndef __IDMOVideoOutputOptimizations_FWD_DEFINED__ -#define __IDMOVideoOutputOptimizations_FWD_DEFINED__ -typedef interface IDMOVideoOutputOptimizations IDMOVideoOutputOptimizations; -#endif /* __IDMOVideoOutputOptimizations_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "unknwn.h" -#include "objidl.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_mediaobj_0000 */ -/* [local] */ - -#ifdef __strmif_h__ -typedef AM_MEDIA_TYPE DMO_MEDIA_TYPE; -#else -typedef struct _DMOMediaType - { - GUID majortype; - GUID subtype; - BOOL bFixedSizeSamples; - BOOL bTemporalCompression; - ULONG lSampleSize; - GUID formattype; - IUnknown *pUnk; - ULONG cbFormat; - /* [size_is] */ BYTE *pbFormat; - } DMO_MEDIA_TYPE; - -typedef LONGLONG REFERENCE_TIME; - -#endif - -enum _DMO_INPUT_DATA_BUFFER_FLAGS - { DMO_INPUT_DATA_BUFFERF_SYNCPOINT = 0x1, - DMO_INPUT_DATA_BUFFERF_TIME = 0x2, - DMO_INPUT_DATA_BUFFERF_TIMELENGTH = 0x4 - } ; - -enum _DMO_OUTPUT_DATA_BUFFER_FLAGS - { DMO_OUTPUT_DATA_BUFFERF_SYNCPOINT = 0x1, - DMO_OUTPUT_DATA_BUFFERF_TIME = 0x2, - DMO_OUTPUT_DATA_BUFFERF_TIMELENGTH = 0x4, - DMO_OUTPUT_DATA_BUFFERF_INCOMPLETE = 0x1000000 - } ; - -enum _DMO_INPUT_STATUS_FLAGS - { DMO_INPUT_STATUSF_ACCEPT_DATA = 0x1 - } ; - -enum _DMO_INPUT_STREAM_INFO_FLAGS - { DMO_INPUT_STREAMF_WHOLE_SAMPLES = 0x1, - DMO_INPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER = 0x2, - DMO_INPUT_STREAMF_FIXED_SAMPLE_SIZE = 0x4, - DMO_INPUT_STREAMF_HOLDS_BUFFERS = 0x8 - } ; - -enum _DMO_OUTPUT_STREAM_INFO_FLAGS - { DMO_OUTPUT_STREAMF_WHOLE_SAMPLES = 0x1, - DMO_OUTPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER = 0x2, - DMO_OUTPUT_STREAMF_FIXED_SAMPLE_SIZE = 0x4, - DMO_OUTPUT_STREAMF_DISCARDABLE = 0x8, - DMO_OUTPUT_STREAMF_OPTIONAL = 0x10 - } ; - -enum _DMO_SET_TYPE_FLAGS - { DMO_SET_TYPEF_TEST_ONLY = 0x1, - DMO_SET_TYPEF_CLEAR = 0x2 - } ; - -enum _DMO_PROCESS_OUTPUT_FLAGS - { DMO_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER = 0x1 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0000_v0_0_s_ifspec; - -#ifndef __IMediaBuffer_INTERFACE_DEFINED__ -#define __IMediaBuffer_INTERFACE_DEFINED__ - -/* interface IMediaBuffer */ -/* [uuid][object] */ - - -EXTERN_C const IID IID_IMediaBuffer; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("59eff8b9-938c-4a26-82f2-95cb84cdc837") - IMediaBuffer : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetLength( - DWORD cbLength) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMaxLength( - /* [out] */ DWORD *pcbMaxLength) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBufferAndLength( - /* [out] */ BYTE **ppBuffer, - /* [out] */ DWORD *pcbLength) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaBufferVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaBuffer * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaBuffer * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaBuffer * This); - - HRESULT ( STDMETHODCALLTYPE *SetLength )( - IMediaBuffer * This, - DWORD cbLength); - - HRESULT ( STDMETHODCALLTYPE *GetMaxLength )( - IMediaBuffer * This, - /* [out] */ DWORD *pcbMaxLength); - - HRESULT ( STDMETHODCALLTYPE *GetBufferAndLength )( - IMediaBuffer * This, - /* [out] */ BYTE **ppBuffer, - /* [out] */ DWORD *pcbLength); - - END_INTERFACE - } IMediaBufferVtbl; - - interface IMediaBuffer - { - CONST_VTBL struct IMediaBufferVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaBuffer_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaBuffer_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaBuffer_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaBuffer_SetLength(This,cbLength) \ - (This)->lpVtbl -> SetLength(This,cbLength) - -#define IMediaBuffer_GetMaxLength(This,pcbMaxLength) \ - (This)->lpVtbl -> GetMaxLength(This,pcbMaxLength) - -#define IMediaBuffer_GetBufferAndLength(This,ppBuffer,pcbLength) \ - (This)->lpVtbl -> GetBufferAndLength(This,ppBuffer,pcbLength) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaBuffer_SetLength_Proxy( - IMediaBuffer * This, - DWORD cbLength); - - -void __RPC_STUB IMediaBuffer_SetLength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaBuffer_GetMaxLength_Proxy( - IMediaBuffer * This, - /* [out] */ DWORD *pcbMaxLength); - - -void __RPC_STUB IMediaBuffer_GetMaxLength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaBuffer_GetBufferAndLength_Proxy( - IMediaBuffer * This, - /* [out] */ BYTE **ppBuffer, - /* [out] */ DWORD *pcbLength); - - -void __RPC_STUB IMediaBuffer_GetBufferAndLength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaBuffer_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_mediaobj_0090 */ -/* [local] */ - -typedef struct _DMO_OUTPUT_DATA_BUFFER - { - IMediaBuffer *pBuffer; - DWORD dwStatus; - REFERENCE_TIME rtTimestamp; - REFERENCE_TIME rtTimelength; - } DMO_OUTPUT_DATA_BUFFER; - -typedef struct _DMO_OUTPUT_DATA_BUFFER *PDMO_OUTPUT_DATA_BUFFER; - - - -extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0090_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0090_v0_0_s_ifspec; - -#ifndef __IMediaObject_INTERFACE_DEFINED__ -#define __IMediaObject_INTERFACE_DEFINED__ - -/* interface IMediaObject */ -/* [uuid][object] */ - - -EXTERN_C const IID IID_IMediaObject; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("d8ad0f58-5494-4102-97c5-ec798e59bcf4") - IMediaObject : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetStreamCount( - /* [out] */ DWORD *pcInputStreams, - /* [out] */ DWORD *pcOutputStreams) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInputStreamInfo( - DWORD dwInputStreamIndex, - /* [out] */ DWORD *pdwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetOutputStreamInfo( - DWORD dwOutputStreamIndex, - /* [out] */ DWORD *pdwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInputType( - DWORD dwInputStreamIndex, - DWORD dwTypeIndex, - /* [out] */ DMO_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetOutputType( - DWORD dwOutputStreamIndex, - DWORD dwTypeIndex, - /* [out] */ DMO_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetInputType( - DWORD dwInputStreamIndex, - /* [in] */ const DMO_MEDIA_TYPE *pmt, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOutputType( - DWORD dwOutputStreamIndex, - /* [in] */ const DMO_MEDIA_TYPE *pmt, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInputCurrentType( - DWORD dwInputStreamIndex, - /* [out] */ DMO_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetOutputCurrentType( - DWORD dwOutputStreamIndex, - /* [out] */ DMO_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInputSizeInfo( - DWORD dwInputStreamIndex, - /* [out] */ DWORD *pcbSize, - /* [out] */ DWORD *pcbMaxLookahead, - /* [out] */ DWORD *pcbAlignment) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetOutputSizeInfo( - DWORD dwOutputStreamIndex, - /* [out] */ DWORD *pcbSize, - /* [out] */ DWORD *pcbAlignment) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInputMaxLatency( - DWORD dwInputStreamIndex, - /* [out] */ REFERENCE_TIME *prtMaxLatency) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetInputMaxLatency( - DWORD dwInputStreamIndex, - REFERENCE_TIME rtMaxLatency) = 0; - - virtual HRESULT STDMETHODCALLTYPE Flush( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Discontinuity( - DWORD dwInputStreamIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE AllocateStreamingResources( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE FreeStreamingResources( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInputStatus( - DWORD dwInputStreamIndex, - /* [out] */ DWORD *dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE ProcessInput( - DWORD dwInputStreamIndex, - IMediaBuffer *pBuffer, - DWORD dwFlags, - REFERENCE_TIME rtTimestamp, - REFERENCE_TIME rtTimelength) = 0; - - virtual HRESULT STDMETHODCALLTYPE ProcessOutput( - DWORD dwFlags, - DWORD cOutputBufferCount, - /* [size_is][out][in] */ DMO_OUTPUT_DATA_BUFFER *pOutputBuffers, - /* [out] */ DWORD *pdwStatus) = 0; - - virtual HRESULT STDMETHODCALLTYPE Lock( - LONG bLock) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaObjectVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaObject * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaObject * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaObject * This); - - HRESULT ( STDMETHODCALLTYPE *GetStreamCount )( - IMediaObject * This, - /* [out] */ DWORD *pcInputStreams, - /* [out] */ DWORD *pcOutputStreams); - - HRESULT ( STDMETHODCALLTYPE *GetInputStreamInfo )( - IMediaObject * This, - DWORD dwInputStreamIndex, - /* [out] */ DWORD *pdwFlags); - - HRESULT ( STDMETHODCALLTYPE *GetOutputStreamInfo )( - IMediaObject * This, - DWORD dwOutputStreamIndex, - /* [out] */ DWORD *pdwFlags); - - HRESULT ( STDMETHODCALLTYPE *GetInputType )( - IMediaObject * This, - DWORD dwInputStreamIndex, - DWORD dwTypeIndex, - /* [out] */ DMO_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *GetOutputType )( - IMediaObject * This, - DWORD dwOutputStreamIndex, - DWORD dwTypeIndex, - /* [out] */ DMO_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *SetInputType )( - IMediaObject * This, - DWORD dwInputStreamIndex, - /* [in] */ const DMO_MEDIA_TYPE *pmt, - DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *SetOutputType )( - IMediaObject * This, - DWORD dwOutputStreamIndex, - /* [in] */ const DMO_MEDIA_TYPE *pmt, - DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *GetInputCurrentType )( - IMediaObject * This, - DWORD dwInputStreamIndex, - /* [out] */ DMO_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *GetOutputCurrentType )( - IMediaObject * This, - DWORD dwOutputStreamIndex, - /* [out] */ DMO_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *GetInputSizeInfo )( - IMediaObject * This, - DWORD dwInputStreamIndex, - /* [out] */ DWORD *pcbSize, - /* [out] */ DWORD *pcbMaxLookahead, - /* [out] */ DWORD *pcbAlignment); - - HRESULT ( STDMETHODCALLTYPE *GetOutputSizeInfo )( - IMediaObject * This, - DWORD dwOutputStreamIndex, - /* [out] */ DWORD *pcbSize, - /* [out] */ DWORD *pcbAlignment); - - HRESULT ( STDMETHODCALLTYPE *GetInputMaxLatency )( - IMediaObject * This, - DWORD dwInputStreamIndex, - /* [out] */ REFERENCE_TIME *prtMaxLatency); - - HRESULT ( STDMETHODCALLTYPE *SetInputMaxLatency )( - IMediaObject * This, - DWORD dwInputStreamIndex, - REFERENCE_TIME rtMaxLatency); - - HRESULT ( STDMETHODCALLTYPE *Flush )( - IMediaObject * This); - - HRESULT ( STDMETHODCALLTYPE *Discontinuity )( - IMediaObject * This, - DWORD dwInputStreamIndex); - - HRESULT ( STDMETHODCALLTYPE *AllocateStreamingResources )( - IMediaObject * This); - - HRESULT ( STDMETHODCALLTYPE *FreeStreamingResources )( - IMediaObject * This); - - HRESULT ( STDMETHODCALLTYPE *GetInputStatus )( - IMediaObject * This, - DWORD dwInputStreamIndex, - /* [out] */ DWORD *dwFlags); - - HRESULT ( STDMETHODCALLTYPE *ProcessInput )( - IMediaObject * This, - DWORD dwInputStreamIndex, - IMediaBuffer *pBuffer, - DWORD dwFlags, - REFERENCE_TIME rtTimestamp, - REFERENCE_TIME rtTimelength); - - HRESULT ( STDMETHODCALLTYPE *ProcessOutput )( - IMediaObject * This, - DWORD dwFlags, - DWORD cOutputBufferCount, - /* [size_is][out][in] */ DMO_OUTPUT_DATA_BUFFER *pOutputBuffers, - /* [out] */ DWORD *pdwStatus); - - HRESULT ( STDMETHODCALLTYPE *Lock )( - IMediaObject * This, - LONG bLock); - - END_INTERFACE - } IMediaObjectVtbl; - - interface IMediaObject - { - CONST_VTBL struct IMediaObjectVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaObject_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaObject_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaObject_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaObject_GetStreamCount(This,pcInputStreams,pcOutputStreams) \ - (This)->lpVtbl -> GetStreamCount(This,pcInputStreams,pcOutputStreams) - -#define IMediaObject_GetInputStreamInfo(This,dwInputStreamIndex,pdwFlags) \ - (This)->lpVtbl -> GetInputStreamInfo(This,dwInputStreamIndex,pdwFlags) - -#define IMediaObject_GetOutputStreamInfo(This,dwOutputStreamIndex,pdwFlags) \ - (This)->lpVtbl -> GetOutputStreamInfo(This,dwOutputStreamIndex,pdwFlags) - -#define IMediaObject_GetInputType(This,dwInputStreamIndex,dwTypeIndex,pmt) \ - (This)->lpVtbl -> GetInputType(This,dwInputStreamIndex,dwTypeIndex,pmt) - -#define IMediaObject_GetOutputType(This,dwOutputStreamIndex,dwTypeIndex,pmt) \ - (This)->lpVtbl -> GetOutputType(This,dwOutputStreamIndex,dwTypeIndex,pmt) - -#define IMediaObject_SetInputType(This,dwInputStreamIndex,pmt,dwFlags) \ - (This)->lpVtbl -> SetInputType(This,dwInputStreamIndex,pmt,dwFlags) - -#define IMediaObject_SetOutputType(This,dwOutputStreamIndex,pmt,dwFlags) \ - (This)->lpVtbl -> SetOutputType(This,dwOutputStreamIndex,pmt,dwFlags) - -#define IMediaObject_GetInputCurrentType(This,dwInputStreamIndex,pmt) \ - (This)->lpVtbl -> GetInputCurrentType(This,dwInputStreamIndex,pmt) - -#define IMediaObject_GetOutputCurrentType(This,dwOutputStreamIndex,pmt) \ - (This)->lpVtbl -> GetOutputCurrentType(This,dwOutputStreamIndex,pmt) - -#define IMediaObject_GetInputSizeInfo(This,dwInputStreamIndex,pcbSize,pcbMaxLookahead,pcbAlignment) \ - (This)->lpVtbl -> GetInputSizeInfo(This,dwInputStreamIndex,pcbSize,pcbMaxLookahead,pcbAlignment) - -#define IMediaObject_GetOutputSizeInfo(This,dwOutputStreamIndex,pcbSize,pcbAlignment) \ - (This)->lpVtbl -> GetOutputSizeInfo(This,dwOutputStreamIndex,pcbSize,pcbAlignment) - -#define IMediaObject_GetInputMaxLatency(This,dwInputStreamIndex,prtMaxLatency) \ - (This)->lpVtbl -> GetInputMaxLatency(This,dwInputStreamIndex,prtMaxLatency) - -#define IMediaObject_SetInputMaxLatency(This,dwInputStreamIndex,rtMaxLatency) \ - (This)->lpVtbl -> SetInputMaxLatency(This,dwInputStreamIndex,rtMaxLatency) - -#define IMediaObject_Flush(This) \ - (This)->lpVtbl -> Flush(This) - -#define IMediaObject_Discontinuity(This,dwInputStreamIndex) \ - (This)->lpVtbl -> Discontinuity(This,dwInputStreamIndex) - -#define IMediaObject_AllocateStreamingResources(This) \ - (This)->lpVtbl -> AllocateStreamingResources(This) - -#define IMediaObject_FreeStreamingResources(This) \ - (This)->lpVtbl -> FreeStreamingResources(This) - -#define IMediaObject_GetInputStatus(This,dwInputStreamIndex,dwFlags) \ - (This)->lpVtbl -> GetInputStatus(This,dwInputStreamIndex,dwFlags) - -#define IMediaObject_ProcessInput(This,dwInputStreamIndex,pBuffer,dwFlags,rtTimestamp,rtTimelength) \ - (This)->lpVtbl -> ProcessInput(This,dwInputStreamIndex,pBuffer,dwFlags,rtTimestamp,rtTimelength) - -#define IMediaObject_ProcessOutput(This,dwFlags,cOutputBufferCount,pOutputBuffers,pdwStatus) \ - (This)->lpVtbl -> ProcessOutput(This,dwFlags,cOutputBufferCount,pOutputBuffers,pdwStatus) - -#define IMediaObject_Lock(This,bLock) \ - (This)->lpVtbl -> Lock(This,bLock) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaObject_GetStreamCount_Proxy( - IMediaObject * This, - /* [out] */ DWORD *pcInputStreams, - /* [out] */ DWORD *pcOutputStreams); - - -void __RPC_STUB IMediaObject_GetStreamCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_GetInputStreamInfo_Proxy( - IMediaObject * This, - DWORD dwInputStreamIndex, - /* [out] */ DWORD *pdwFlags); - - -void __RPC_STUB IMediaObject_GetInputStreamInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_GetOutputStreamInfo_Proxy( - IMediaObject * This, - DWORD dwOutputStreamIndex, - /* [out] */ DWORD *pdwFlags); - - -void __RPC_STUB IMediaObject_GetOutputStreamInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_GetInputType_Proxy( - IMediaObject * This, - DWORD dwInputStreamIndex, - DWORD dwTypeIndex, - /* [out] */ DMO_MEDIA_TYPE *pmt); - - -void __RPC_STUB IMediaObject_GetInputType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_GetOutputType_Proxy( - IMediaObject * This, - DWORD dwOutputStreamIndex, - DWORD dwTypeIndex, - /* [out] */ DMO_MEDIA_TYPE *pmt); - - -void __RPC_STUB IMediaObject_GetOutputType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_SetInputType_Proxy( - IMediaObject * This, - DWORD dwInputStreamIndex, - /* [in] */ const DMO_MEDIA_TYPE *pmt, - DWORD dwFlags); - - -void __RPC_STUB IMediaObject_SetInputType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_SetOutputType_Proxy( - IMediaObject * This, - DWORD dwOutputStreamIndex, - /* [in] */ const DMO_MEDIA_TYPE *pmt, - DWORD dwFlags); - - -void __RPC_STUB IMediaObject_SetOutputType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_GetInputCurrentType_Proxy( - IMediaObject * This, - DWORD dwInputStreamIndex, - /* [out] */ DMO_MEDIA_TYPE *pmt); - - -void __RPC_STUB IMediaObject_GetInputCurrentType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_GetOutputCurrentType_Proxy( - IMediaObject * This, - DWORD dwOutputStreamIndex, - /* [out] */ DMO_MEDIA_TYPE *pmt); - - -void __RPC_STUB IMediaObject_GetOutputCurrentType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_GetInputSizeInfo_Proxy( - IMediaObject * This, - DWORD dwInputStreamIndex, - /* [out] */ DWORD *pcbSize, - /* [out] */ DWORD *pcbMaxLookahead, - /* [out] */ DWORD *pcbAlignment); - - -void __RPC_STUB IMediaObject_GetInputSizeInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_GetOutputSizeInfo_Proxy( - IMediaObject * This, - DWORD dwOutputStreamIndex, - /* [out] */ DWORD *pcbSize, - /* [out] */ DWORD *pcbAlignment); - - -void __RPC_STUB IMediaObject_GetOutputSizeInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_GetInputMaxLatency_Proxy( - IMediaObject * This, - DWORD dwInputStreamIndex, - /* [out] */ REFERENCE_TIME *prtMaxLatency); - - -void __RPC_STUB IMediaObject_GetInputMaxLatency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_SetInputMaxLatency_Proxy( - IMediaObject * This, - DWORD dwInputStreamIndex, - REFERENCE_TIME rtMaxLatency); - - -void __RPC_STUB IMediaObject_SetInputMaxLatency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_Flush_Proxy( - IMediaObject * This); - - -void __RPC_STUB IMediaObject_Flush_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_Discontinuity_Proxy( - IMediaObject * This, - DWORD dwInputStreamIndex); - - -void __RPC_STUB IMediaObject_Discontinuity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_AllocateStreamingResources_Proxy( - IMediaObject * This); - - -void __RPC_STUB IMediaObject_AllocateStreamingResources_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_FreeStreamingResources_Proxy( - IMediaObject * This); - - -void __RPC_STUB IMediaObject_FreeStreamingResources_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_GetInputStatus_Proxy( - IMediaObject * This, - DWORD dwInputStreamIndex, - /* [out] */ DWORD *dwFlags); - - -void __RPC_STUB IMediaObject_GetInputStatus_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_ProcessInput_Proxy( - IMediaObject * This, - DWORD dwInputStreamIndex, - IMediaBuffer *pBuffer, - DWORD dwFlags, - REFERENCE_TIME rtTimestamp, - REFERENCE_TIME rtTimelength); - - -void __RPC_STUB IMediaObject_ProcessInput_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_ProcessOutput_Proxy( - IMediaObject * This, - DWORD dwFlags, - DWORD cOutputBufferCount, - /* [size_is][out][in] */ DMO_OUTPUT_DATA_BUFFER *pOutputBuffers, - /* [out] */ DWORD *pdwStatus); - - -void __RPC_STUB IMediaObject_ProcessOutput_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObject_Lock_Proxy( - IMediaObject * This, - LONG bLock); - - -void __RPC_STUB IMediaObject_Lock_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaObject_INTERFACE_DEFINED__ */ - - -#ifndef __IEnumDMO_INTERFACE_DEFINED__ -#define __IEnumDMO_INTERFACE_DEFINED__ - -/* interface IEnumDMO */ -/* [uuid][object] */ - - -EXTERN_C const IID IID_IEnumDMO; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("2c3cd98a-2bfa-4a53-9c27-5249ba64ba0f") - IEnumDMO : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Next( - DWORD cItemsToFetch, - /* [length_is][size_is][out] */ CLSID *pCLSID, - /* [string][length_is][size_is][out] */ WCHAR **Names, - /* [out] */ DWORD *pcItemsFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - DWORD cItemsToSkip) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IEnumDMO **ppEnum) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumDMOVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumDMO * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumDMO * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumDMO * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumDMO * This, - DWORD cItemsToFetch, - /* [length_is][size_is][out] */ CLSID *pCLSID, - /* [string][length_is][size_is][out] */ WCHAR **Names, - /* [out] */ DWORD *pcItemsFetched); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumDMO * This, - DWORD cItemsToSkip); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumDMO * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumDMO * This, - /* [out] */ IEnumDMO **ppEnum); - - END_INTERFACE - } IEnumDMOVtbl; - - interface IEnumDMO - { - CONST_VTBL struct IEnumDMOVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEnumDMO_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEnumDMO_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEnumDMO_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEnumDMO_Next(This,cItemsToFetch,pCLSID,Names,pcItemsFetched) \ - (This)->lpVtbl -> Next(This,cItemsToFetch,pCLSID,Names,pcItemsFetched) - -#define IEnumDMO_Skip(This,cItemsToSkip) \ - (This)->lpVtbl -> Skip(This,cItemsToSkip) - -#define IEnumDMO_Reset(This) \ - (This)->lpVtbl -> Reset(This) - -#define IEnumDMO_Clone(This,ppEnum) \ - (This)->lpVtbl -> Clone(This,ppEnum) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IEnumDMO_Next_Proxy( - IEnumDMO * This, - DWORD cItemsToFetch, - /* [length_is][size_is][out] */ CLSID *pCLSID, - /* [string][length_is][size_is][out] */ WCHAR **Names, - /* [out] */ DWORD *pcItemsFetched); - - -void __RPC_STUB IEnumDMO_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumDMO_Skip_Proxy( - IEnumDMO * This, - DWORD cItemsToSkip); - - -void __RPC_STUB IEnumDMO_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumDMO_Reset_Proxy( - IEnumDMO * This); - - -void __RPC_STUB IEnumDMO_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumDMO_Clone_Proxy( - IEnumDMO * This, - /* [out] */ IEnumDMO **ppEnum); - - -void __RPC_STUB IEnumDMO_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEnumDMO_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_mediaobj_0092 */ -/* [local] */ - - -enum _DMO_INPLACE_PROCESS_FLAGS - { DMO_INPLACE_NORMAL = 0, - DMO_INPLACE_ZERO = 0x1 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0092_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0092_v0_0_s_ifspec; - -#ifndef __IMediaObjectInPlace_INTERFACE_DEFINED__ -#define __IMediaObjectInPlace_INTERFACE_DEFINED__ - -/* interface IMediaObjectInPlace */ -/* [uuid][object] */ - - -EXTERN_C const IID IID_IMediaObjectInPlace; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("651b9ad0-0fc7-4aa9-9538-d89931010741") - IMediaObjectInPlace : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Process( - /* [in] */ ULONG ulSize, - /* [size_is][out][in] */ BYTE *pData, - /* [in] */ REFERENCE_TIME refTimeStart, - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IMediaObjectInPlace **ppMediaObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetLatency( - /* [out] */ REFERENCE_TIME *pLatencyTime) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaObjectInPlaceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaObjectInPlace * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaObjectInPlace * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaObjectInPlace * This); - - HRESULT ( STDMETHODCALLTYPE *Process )( - IMediaObjectInPlace * This, - /* [in] */ ULONG ulSize, - /* [size_is][out][in] */ BYTE *pData, - /* [in] */ REFERENCE_TIME refTimeStart, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IMediaObjectInPlace * This, - /* [out] */ IMediaObjectInPlace **ppMediaObject); - - HRESULT ( STDMETHODCALLTYPE *GetLatency )( - IMediaObjectInPlace * This, - /* [out] */ REFERENCE_TIME *pLatencyTime); - - END_INTERFACE - } IMediaObjectInPlaceVtbl; - - interface IMediaObjectInPlace - { - CONST_VTBL struct IMediaObjectInPlaceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaObjectInPlace_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaObjectInPlace_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaObjectInPlace_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaObjectInPlace_Process(This,ulSize,pData,refTimeStart,dwFlags) \ - (This)->lpVtbl -> Process(This,ulSize,pData,refTimeStart,dwFlags) - -#define IMediaObjectInPlace_Clone(This,ppMediaObject) \ - (This)->lpVtbl -> Clone(This,ppMediaObject) - -#define IMediaObjectInPlace_GetLatency(This,pLatencyTime) \ - (This)->lpVtbl -> GetLatency(This,pLatencyTime) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaObjectInPlace_Process_Proxy( - IMediaObjectInPlace * This, - /* [in] */ ULONG ulSize, - /* [size_is][out][in] */ BYTE *pData, - /* [in] */ REFERENCE_TIME refTimeStart, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IMediaObjectInPlace_Process_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObjectInPlace_Clone_Proxy( - IMediaObjectInPlace * This, - /* [out] */ IMediaObjectInPlace **ppMediaObject); - - -void __RPC_STUB IMediaObjectInPlace_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaObjectInPlace_GetLatency_Proxy( - IMediaObjectInPlace * This, - /* [out] */ REFERENCE_TIME *pLatencyTime); - - -void __RPC_STUB IMediaObjectInPlace_GetLatency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaObjectInPlace_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_mediaobj_0093 */ -/* [local] */ - - -enum _DMO_QUALITY_STATUS_FLAGS - { DMO_QUALITY_STATUS_ENABLED = 0x1 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0093_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0093_v0_0_s_ifspec; - -#ifndef __IDMOQualityControl_INTERFACE_DEFINED__ -#define __IDMOQualityControl_INTERFACE_DEFINED__ - -/* interface IDMOQualityControl */ -/* [uuid][object] */ - - -EXTERN_C const IID IID_IDMOQualityControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("65abea96-cf36-453f-af8a-705e98f16260") - IDMOQualityControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetNow( - /* [in] */ REFERENCE_TIME rtNow) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetStatus( - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStatus( - /* [out] */ DWORD *pdwFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDMOQualityControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDMOQualityControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDMOQualityControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDMOQualityControl * This); - - HRESULT ( STDMETHODCALLTYPE *SetNow )( - IDMOQualityControl * This, - /* [in] */ REFERENCE_TIME rtNow); - - HRESULT ( STDMETHODCALLTYPE *SetStatus )( - IDMOQualityControl * This, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *GetStatus )( - IDMOQualityControl * This, - /* [out] */ DWORD *pdwFlags); - - END_INTERFACE - } IDMOQualityControlVtbl; - - interface IDMOQualityControl - { - CONST_VTBL struct IDMOQualityControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDMOQualityControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDMOQualityControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDMOQualityControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDMOQualityControl_SetNow(This,rtNow) \ - (This)->lpVtbl -> SetNow(This,rtNow) - -#define IDMOQualityControl_SetStatus(This,dwFlags) \ - (This)->lpVtbl -> SetStatus(This,dwFlags) - -#define IDMOQualityControl_GetStatus(This,pdwFlags) \ - (This)->lpVtbl -> GetStatus(This,pdwFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDMOQualityControl_SetNow_Proxy( - IDMOQualityControl * This, - /* [in] */ REFERENCE_TIME rtNow); - - -void __RPC_STUB IDMOQualityControl_SetNow_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDMOQualityControl_SetStatus_Proxy( - IDMOQualityControl * This, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IDMOQualityControl_SetStatus_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDMOQualityControl_GetStatus_Proxy( - IDMOQualityControl * This, - /* [out] */ DWORD *pdwFlags); - - -void __RPC_STUB IDMOQualityControl_GetStatus_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDMOQualityControl_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_mediaobj_0094 */ -/* [local] */ - - -enum _DMO_VIDEO_OUTPUT_STREAM_FLAGS - { DMO_VOSF_NEEDS_PREVIOUS_SAMPLE = 0x1 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0094_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0094_v0_0_s_ifspec; - -#ifndef __IDMOVideoOutputOptimizations_INTERFACE_DEFINED__ -#define __IDMOVideoOutputOptimizations_INTERFACE_DEFINED__ - -/* interface IDMOVideoOutputOptimizations */ -/* [uuid][object] */ - - -EXTERN_C const IID IID_IDMOVideoOutputOptimizations; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("be8f4f4e-5b16-4d29-b350-7f6b5d9298ac") - IDMOVideoOutputOptimizations : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE QueryOperationModePreferences( - ULONG ulOutputStreamIndex, - DWORD *pdwRequestedCapabilities) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOperationMode( - ULONG ulOutputStreamIndex, - DWORD dwEnabledFeatures) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentOperationMode( - ULONG ulOutputStreamIndex, - DWORD *pdwEnabledFeatures) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentSampleRequirements( - ULONG ulOutputStreamIndex, - DWORD *pdwRequestedFeatures) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDMOVideoOutputOptimizationsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDMOVideoOutputOptimizations * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDMOVideoOutputOptimizations * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDMOVideoOutputOptimizations * This); - - HRESULT ( STDMETHODCALLTYPE *QueryOperationModePreferences )( - IDMOVideoOutputOptimizations * This, - ULONG ulOutputStreamIndex, - DWORD *pdwRequestedCapabilities); - - HRESULT ( STDMETHODCALLTYPE *SetOperationMode )( - IDMOVideoOutputOptimizations * This, - ULONG ulOutputStreamIndex, - DWORD dwEnabledFeatures); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentOperationMode )( - IDMOVideoOutputOptimizations * This, - ULONG ulOutputStreamIndex, - DWORD *pdwEnabledFeatures); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentSampleRequirements )( - IDMOVideoOutputOptimizations * This, - ULONG ulOutputStreamIndex, - DWORD *pdwRequestedFeatures); - - END_INTERFACE - } IDMOVideoOutputOptimizationsVtbl; - - interface IDMOVideoOutputOptimizations - { - CONST_VTBL struct IDMOVideoOutputOptimizationsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDMOVideoOutputOptimizations_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDMOVideoOutputOptimizations_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDMOVideoOutputOptimizations_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDMOVideoOutputOptimizations_QueryOperationModePreferences(This,ulOutputStreamIndex,pdwRequestedCapabilities) \ - (This)->lpVtbl -> QueryOperationModePreferences(This,ulOutputStreamIndex,pdwRequestedCapabilities) - -#define IDMOVideoOutputOptimizations_SetOperationMode(This,ulOutputStreamIndex,dwEnabledFeatures) \ - (This)->lpVtbl -> SetOperationMode(This,ulOutputStreamIndex,dwEnabledFeatures) - -#define IDMOVideoOutputOptimizations_GetCurrentOperationMode(This,ulOutputStreamIndex,pdwEnabledFeatures) \ - (This)->lpVtbl -> GetCurrentOperationMode(This,ulOutputStreamIndex,pdwEnabledFeatures) - -#define IDMOVideoOutputOptimizations_GetCurrentSampleRequirements(This,ulOutputStreamIndex,pdwRequestedFeatures) \ - (This)->lpVtbl -> GetCurrentSampleRequirements(This,ulOutputStreamIndex,pdwRequestedFeatures) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDMOVideoOutputOptimizations_QueryOperationModePreferences_Proxy( - IDMOVideoOutputOptimizations * This, - ULONG ulOutputStreamIndex, - DWORD *pdwRequestedCapabilities); - - -void __RPC_STUB IDMOVideoOutputOptimizations_QueryOperationModePreferences_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDMOVideoOutputOptimizations_SetOperationMode_Proxy( - IDMOVideoOutputOptimizations * This, - ULONG ulOutputStreamIndex, - DWORD dwEnabledFeatures); - - -void __RPC_STUB IDMOVideoOutputOptimizations_SetOperationMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDMOVideoOutputOptimizations_GetCurrentOperationMode_Proxy( - IDMOVideoOutputOptimizations * This, - ULONG ulOutputStreamIndex, - DWORD *pdwEnabledFeatures); - - -void __RPC_STUB IDMOVideoOutputOptimizations_GetCurrentOperationMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDMOVideoOutputOptimizations_GetCurrentSampleRequirements_Proxy( - IDMOVideoOutputOptimizations * This, - ULONG ulOutputStreamIndex, - DWORD *pdwRequestedFeatures); - - -void __RPC_STUB IDMOVideoOutputOptimizations_GetCurrentSampleRequirements_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDMOVideoOutputOptimizations_INTERFACE_DEFINED__ */ - - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/medparam.h b/sdk/dx8sdk/Include/medparam.h deleted file mode 100644 index db38cac8..00000000 --- a/sdk/dx8sdk/Include/medparam.h +++ /dev/null @@ -1,581 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for medparam.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __medparam_h__ -#define __medparam_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IMediaParamInfo_FWD_DEFINED__ -#define __IMediaParamInfo_FWD_DEFINED__ -typedef interface IMediaParamInfo IMediaParamInfo; -#endif /* __IMediaParamInfo_FWD_DEFINED__ */ - - -#ifndef __IMediaParams_FWD_DEFINED__ -#define __IMediaParams_FWD_DEFINED__ -typedef interface IMediaParams IMediaParams; -#endif /* __IMediaParams_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "oaidl.h" -#include "ocidl.h" -#include "strmif.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_medparam_0000 */ -/* [local] */ - -typedef float MP_DATA; - -typedef -enum _MP_Type - { MPT_INT = 0, - MPT_FLOAT = MPT_INT + 1, - MPT_BOOL = MPT_FLOAT + 1, - MPT_ENUM = MPT_BOOL + 1, - MPT_MAX = MPT_ENUM + 1 - } MP_TYPE; - -#define MPBOOL_TRUE ( 1 ) - -#define MPBOOL_FALSE ( 0 ) - -typedef -enum _MP_CURVE_TYPE - { MP_CURVE_JUMP = 0x1, - MP_CURVE_LINEAR = 0x2, - MP_CURVE_SQUARE = 0x4, - MP_CURVE_INVSQUARE = 0x8, - MP_CURVE_SINE = 0x10 - } MP_CURVE_TYPE; - -typedef DWORD MP_CAPS; - -#define MP_CAPS_CURVE_JUMP ( MP_CURVE_JUMP ) - -#define MP_CAPS_CURVE_LINEAR ( MP_CURVE_LINEAR ) - -#define MP_CAPS_CURVE_SQUARE ( MP_CURVE_SQUARE ) - -#define MP_CAPS_CURVE_INVSQUARE ( MP_CURVE_INVSQUARE ) - -#define MP_CAPS_CURVE_SINE ( MP_CURVE_SINE ) - -typedef struct _MP_PARAMINFO - { - MP_TYPE mpType; - MP_CAPS mopCaps; - MP_DATA mpdMinValue; - MP_DATA mpdMaxValue; - MP_DATA mpdNeutralValue; - WCHAR szUnitText[ 32 ]; - WCHAR szLabel[ 32 ]; - } MP_PARAMINFO; - -typedef DWORD DWORD; - -#define DWORD_ALLPARAMS ( -1 ) - -typedef DWORD MP_TIMEDATA; - -DEFINE_GUID(GUID_TIME_REFERENCE, -0x93ad712b, 0xdaa0, 0x4ffe, 0xbc, 0x81, 0xb0, 0xce, 0x50, 0xf, 0xcd, 0xd9); -DEFINE_GUID(GUID_TIME_MUSIC, -0x574c49d, 0x5b04, 0x4b15, 0xa5, 0x42, 0xae, 0x28, 0x20, 0x30, 0x11, 0x7b); -DEFINE_GUID(GUID_TIME_SAMPLES, -0xa8593d05, 0xc43, 0x4984, 0x9a, 0x63, 0x97, 0xaf, 0x9e, 0x2, 0xc4, 0xc0); -typedef DWORD MP_FLAGS; - -#define MPF_ENVLP_STANDARD ( 0 ) - -#define MPF_ENVLP_BEGIN_CURRENTVAL ( 0x1 ) - -#define MPF_ENVLP_BEGIN_NEUTRALVAL ( 0x2 ) - -typedef struct _MP_ENVELOPE_SEGMENT - { - REFERENCE_TIME rtStart; - REFERENCE_TIME rtEnd; - MP_DATA valStart; - MP_DATA valEnd; - MP_CURVE_TYPE iCurve; - MP_FLAGS flags; - } MP_ENVELOPE_SEGMENT; - -#define MPF_PUNCHIN_REFTIME ( 0 ) - -#define MPF_PUNCHIN_NOW ( 0x1 ) - -#define MPF_PUNCHIN_STOPPED ( 0x2 ) - - - -extern RPC_IF_HANDLE __MIDL_itf_medparam_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_medparam_0000_v0_0_s_ifspec; - -#ifndef __IMediaParamInfo_INTERFACE_DEFINED__ -#define __IMediaParamInfo_INTERFACE_DEFINED__ - -/* interface IMediaParamInfo */ -/* [version][uuid][object] */ - - -EXTERN_C const IID IID_IMediaParamInfo; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("6d6cbb60-a223-44aa-842f-a2f06750be6d") - IMediaParamInfo : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetParamCount( - /* [out] */ DWORD *pdwParams) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetParamInfo( - /* [in] */ DWORD dwParamIndex, - /* [out] */ MP_PARAMINFO *pInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetParamText( - /* [in] */ DWORD dwParamIndex, - /* [out] */ WCHAR **ppwchText) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNumTimeFormats( - /* [out] */ DWORD *pdwNumTimeFormats) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSupportedTimeFormat( - /* [in] */ DWORD dwFormatIndex, - /* [out] */ GUID *pguidTimeFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentTimeFormat( - /* [out] */ GUID *pguidTimeFormat, - /* [out] */ MP_TIMEDATA *pTimeData) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaParamInfoVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaParamInfo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaParamInfo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaParamInfo * This); - - HRESULT ( STDMETHODCALLTYPE *GetParamCount )( - IMediaParamInfo * This, - /* [out] */ DWORD *pdwParams); - - HRESULT ( STDMETHODCALLTYPE *GetParamInfo )( - IMediaParamInfo * This, - /* [in] */ DWORD dwParamIndex, - /* [out] */ MP_PARAMINFO *pInfo); - - HRESULT ( STDMETHODCALLTYPE *GetParamText )( - IMediaParamInfo * This, - /* [in] */ DWORD dwParamIndex, - /* [out] */ WCHAR **ppwchText); - - HRESULT ( STDMETHODCALLTYPE *GetNumTimeFormats )( - IMediaParamInfo * This, - /* [out] */ DWORD *pdwNumTimeFormats); - - HRESULT ( STDMETHODCALLTYPE *GetSupportedTimeFormat )( - IMediaParamInfo * This, - /* [in] */ DWORD dwFormatIndex, - /* [out] */ GUID *pguidTimeFormat); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentTimeFormat )( - IMediaParamInfo * This, - /* [out] */ GUID *pguidTimeFormat, - /* [out] */ MP_TIMEDATA *pTimeData); - - END_INTERFACE - } IMediaParamInfoVtbl; - - interface IMediaParamInfo - { - CONST_VTBL struct IMediaParamInfoVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaParamInfo_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaParamInfo_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaParamInfo_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaParamInfo_GetParamCount(This,pdwParams) \ - (This)->lpVtbl -> GetParamCount(This,pdwParams) - -#define IMediaParamInfo_GetParamInfo(This,dwParamIndex,pInfo) \ - (This)->lpVtbl -> GetParamInfo(This,dwParamIndex,pInfo) - -#define IMediaParamInfo_GetParamText(This,dwParamIndex,ppwchText) \ - (This)->lpVtbl -> GetParamText(This,dwParamIndex,ppwchText) - -#define IMediaParamInfo_GetNumTimeFormats(This,pdwNumTimeFormats) \ - (This)->lpVtbl -> GetNumTimeFormats(This,pdwNumTimeFormats) - -#define IMediaParamInfo_GetSupportedTimeFormat(This,dwFormatIndex,pguidTimeFormat) \ - (This)->lpVtbl -> GetSupportedTimeFormat(This,dwFormatIndex,pguidTimeFormat) - -#define IMediaParamInfo_GetCurrentTimeFormat(This,pguidTimeFormat,pTimeData) \ - (This)->lpVtbl -> GetCurrentTimeFormat(This,pguidTimeFormat,pTimeData) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaParamInfo_GetParamCount_Proxy( - IMediaParamInfo * This, - /* [out] */ DWORD *pdwParams); - - -void __RPC_STUB IMediaParamInfo_GetParamCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaParamInfo_GetParamInfo_Proxy( - IMediaParamInfo * This, - /* [in] */ DWORD dwParamIndex, - /* [out] */ MP_PARAMINFO *pInfo); - - -void __RPC_STUB IMediaParamInfo_GetParamInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaParamInfo_GetParamText_Proxy( - IMediaParamInfo * This, - /* [in] */ DWORD dwParamIndex, - /* [out] */ WCHAR **ppwchText); - - -void __RPC_STUB IMediaParamInfo_GetParamText_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaParamInfo_GetNumTimeFormats_Proxy( - IMediaParamInfo * This, - /* [out] */ DWORD *pdwNumTimeFormats); - - -void __RPC_STUB IMediaParamInfo_GetNumTimeFormats_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaParamInfo_GetSupportedTimeFormat_Proxy( - IMediaParamInfo * This, - /* [in] */ DWORD dwFormatIndex, - /* [out] */ GUID *pguidTimeFormat); - - -void __RPC_STUB IMediaParamInfo_GetSupportedTimeFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaParamInfo_GetCurrentTimeFormat_Proxy( - IMediaParamInfo * This, - /* [out] */ GUID *pguidTimeFormat, - /* [out] */ MP_TIMEDATA *pTimeData); - - -void __RPC_STUB IMediaParamInfo_GetCurrentTimeFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaParamInfo_INTERFACE_DEFINED__ */ - - -#ifndef __IMediaParams_INTERFACE_DEFINED__ -#define __IMediaParams_INTERFACE_DEFINED__ - -/* interface IMediaParams */ -/* [version][uuid][object] */ - - -EXTERN_C const IID IID_IMediaParams; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("6d6cbb61-a223-44aa-842f-a2f06750be6e") - IMediaParams : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetParam( - /* [in] */ DWORD dwParamIndex, - /* [out] */ MP_DATA *pValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetParam( - /* [in] */ DWORD dwParamIndex, - /* [in] */ MP_DATA value) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddEnvelope( - /* [in] */ DWORD dwParamIndex, - /* [in] */ DWORD cSegments, - /* [in] */ MP_ENVELOPE_SEGMENT *pEnvelopeSegments) = 0; - - virtual HRESULT STDMETHODCALLTYPE FlushEnvelope( - /* [in] */ DWORD dwParamIndex, - /* [in] */ REFERENCE_TIME refTimeStart, - /* [in] */ REFERENCE_TIME refTimeEnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTimeFormat( - /* [in] */ GUID guidTimeFormat, - /* [in] */ MP_TIMEDATA mpTimeData) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaParamsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaParams * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaParams * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaParams * This); - - HRESULT ( STDMETHODCALLTYPE *GetParam )( - IMediaParams * This, - /* [in] */ DWORD dwParamIndex, - /* [out] */ MP_DATA *pValue); - - HRESULT ( STDMETHODCALLTYPE *SetParam )( - IMediaParams * This, - /* [in] */ DWORD dwParamIndex, - /* [in] */ MP_DATA value); - - HRESULT ( STDMETHODCALLTYPE *AddEnvelope )( - IMediaParams * This, - /* [in] */ DWORD dwParamIndex, - /* [in] */ DWORD cSegments, - /* [in] */ MP_ENVELOPE_SEGMENT *pEnvelopeSegments); - - HRESULT ( STDMETHODCALLTYPE *FlushEnvelope )( - IMediaParams * This, - /* [in] */ DWORD dwParamIndex, - /* [in] */ REFERENCE_TIME refTimeStart, - /* [in] */ REFERENCE_TIME refTimeEnd); - - HRESULT ( STDMETHODCALLTYPE *SetTimeFormat )( - IMediaParams * This, - /* [in] */ GUID guidTimeFormat, - /* [in] */ MP_TIMEDATA mpTimeData); - - END_INTERFACE - } IMediaParamsVtbl; - - interface IMediaParams - { - CONST_VTBL struct IMediaParamsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaParams_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaParams_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaParams_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaParams_GetParam(This,dwParamIndex,pValue) \ - (This)->lpVtbl -> GetParam(This,dwParamIndex,pValue) - -#define IMediaParams_SetParam(This,dwParamIndex,value) \ - (This)->lpVtbl -> SetParam(This,dwParamIndex,value) - -#define IMediaParams_AddEnvelope(This,dwParamIndex,cSegments,pEnvelopeSegments) \ - (This)->lpVtbl -> AddEnvelope(This,dwParamIndex,cSegments,pEnvelopeSegments) - -#define IMediaParams_FlushEnvelope(This,dwParamIndex,refTimeStart,refTimeEnd) \ - (This)->lpVtbl -> FlushEnvelope(This,dwParamIndex,refTimeStart,refTimeEnd) - -#define IMediaParams_SetTimeFormat(This,guidTimeFormat,mpTimeData) \ - (This)->lpVtbl -> SetTimeFormat(This,guidTimeFormat,mpTimeData) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaParams_GetParam_Proxy( - IMediaParams * This, - /* [in] */ DWORD dwParamIndex, - /* [out] */ MP_DATA *pValue); - - -void __RPC_STUB IMediaParams_GetParam_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaParams_SetParam_Proxy( - IMediaParams * This, - /* [in] */ DWORD dwParamIndex, - /* [in] */ MP_DATA value); - - -void __RPC_STUB IMediaParams_SetParam_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaParams_AddEnvelope_Proxy( - IMediaParams * This, - /* [in] */ DWORD dwParamIndex, - /* [in] */ DWORD cSegments, - /* [in] */ MP_ENVELOPE_SEGMENT *pEnvelopeSegments); - - -void __RPC_STUB IMediaParams_AddEnvelope_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaParams_FlushEnvelope_Proxy( - IMediaParams * This, - /* [in] */ DWORD dwParamIndex, - /* [in] */ REFERENCE_TIME refTimeStart, - /* [in] */ REFERENCE_TIME refTimeEnd); - - -void __RPC_STUB IMediaParams_FlushEnvelope_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaParams_SetTimeFormat_Proxy( - IMediaParams * This, - /* [in] */ GUID guidTimeFormat, - /* [in] */ MP_TIMEDATA mpTimeData); - - -void __RPC_STUB IMediaParams_SetTimeFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaParams_INTERFACE_DEFINED__ */ - - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/mixerocx.h b/sdk/dx8sdk/Include/mixerocx.h deleted file mode 100644 index fd7814e3..00000000 --- a/sdk/dx8sdk/Include/mixerocx.h +++ /dev/null @@ -1,488 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for mixerocx.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __mixerocx_h__ -#define __mixerocx_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IMixerOCXNotify_FWD_DEFINED__ -#define __IMixerOCXNotify_FWD_DEFINED__ -typedef interface IMixerOCXNotify IMixerOCXNotify; -#endif /* __IMixerOCXNotify_FWD_DEFINED__ */ - - -#ifndef __IMixerOCX_FWD_DEFINED__ -#define __IMixerOCX_FWD_DEFINED__ -typedef interface IMixerOCX IMixerOCX; -#endif /* __IMixerOCX_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "unknwn.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_mixerocx_0000 */ -/* [local] */ - - - - - -extern RPC_IF_HANDLE __MIDL_itf_mixerocx_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_mixerocx_0000_v0_0_s_ifspec; - -#ifndef __IMixerOCXNotify_INTERFACE_DEFINED__ -#define __IMixerOCXNotify_INTERFACE_DEFINED__ - -/* interface IMixerOCXNotify */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IMixerOCXNotify; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("81A3BD31-DEE1-11d1-8508-00A0C91F9CA0") - IMixerOCXNotify : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE OnInvalidateRect( - /* [in] */ LPCRECT lpcRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnStatusChange( - /* [in] */ ULONG ulStatusFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnDataChange( - /* [in] */ ULONG ulDataFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMixerOCXNotifyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMixerOCXNotify * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMixerOCXNotify * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMixerOCXNotify * This); - - HRESULT ( STDMETHODCALLTYPE *OnInvalidateRect )( - IMixerOCXNotify * This, - /* [in] */ LPCRECT lpcRect); - - HRESULT ( STDMETHODCALLTYPE *OnStatusChange )( - IMixerOCXNotify * This, - /* [in] */ ULONG ulStatusFlags); - - HRESULT ( STDMETHODCALLTYPE *OnDataChange )( - IMixerOCXNotify * This, - /* [in] */ ULONG ulDataFlags); - - END_INTERFACE - } IMixerOCXNotifyVtbl; - - interface IMixerOCXNotify - { - CONST_VTBL struct IMixerOCXNotifyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMixerOCXNotify_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMixerOCXNotify_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMixerOCXNotify_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMixerOCXNotify_OnInvalidateRect(This,lpcRect) \ - (This)->lpVtbl -> OnInvalidateRect(This,lpcRect) - -#define IMixerOCXNotify_OnStatusChange(This,ulStatusFlags) \ - (This)->lpVtbl -> OnStatusChange(This,ulStatusFlags) - -#define IMixerOCXNotify_OnDataChange(This,ulDataFlags) \ - (This)->lpVtbl -> OnDataChange(This,ulDataFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMixerOCXNotify_OnInvalidateRect_Proxy( - IMixerOCXNotify * This, - /* [in] */ LPCRECT lpcRect); - - -void __RPC_STUB IMixerOCXNotify_OnInvalidateRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMixerOCXNotify_OnStatusChange_Proxy( - IMixerOCXNotify * This, - /* [in] */ ULONG ulStatusFlags); - - -void __RPC_STUB IMixerOCXNotify_OnStatusChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMixerOCXNotify_OnDataChange_Proxy( - IMixerOCXNotify * This, - /* [in] */ ULONG ulDataFlags); - - -void __RPC_STUB IMixerOCXNotify_OnDataChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMixerOCXNotify_INTERFACE_DEFINED__ */ - - -#ifndef __IMixerOCX_INTERFACE_DEFINED__ -#define __IMixerOCX_INTERFACE_DEFINED__ - -/* interface IMixerOCX */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IMixerOCX; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("81A3BD32-DEE1-11d1-8508-00A0C91F9CA0") - IMixerOCX : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE OnDisplayChange( - /* [in] */ ULONG ulBitsPerPixel, - /* [in] */ ULONG ulScreenWidth, - /* [in] */ ULONG ulScreenHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAspectRatio( - /* [out] */ LPDWORD pdwPictAspectRatioX, - /* [out] */ LPDWORD pdwPictAspectRatioY) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVideoSize( - /* [out] */ LPDWORD pdwVideoWidth, - /* [out] */ LPDWORD pdwVideoHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStatus( - /* [out] */ LPDWORD *pdwStatus) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnDraw( - /* [in] */ HDC hdcDraw, - /* [in] */ LPCRECT prcDraw) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDrawRegion( - /* [in] */ LPPOINT lpptTopLeftSC, - /* [in] */ LPCRECT prcDrawCC, - /* [in] */ LPCRECT lprcClip) = 0; - - virtual HRESULT STDMETHODCALLTYPE Advise( - /* [in] */ IMixerOCXNotify *pmdns) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnAdvise( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMixerOCXVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMixerOCX * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMixerOCX * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMixerOCX * This); - - HRESULT ( STDMETHODCALLTYPE *OnDisplayChange )( - IMixerOCX * This, - /* [in] */ ULONG ulBitsPerPixel, - /* [in] */ ULONG ulScreenWidth, - /* [in] */ ULONG ulScreenHeight); - - HRESULT ( STDMETHODCALLTYPE *GetAspectRatio )( - IMixerOCX * This, - /* [out] */ LPDWORD pdwPictAspectRatioX, - /* [out] */ LPDWORD pdwPictAspectRatioY); - - HRESULT ( STDMETHODCALLTYPE *GetVideoSize )( - IMixerOCX * This, - /* [out] */ LPDWORD pdwVideoWidth, - /* [out] */ LPDWORD pdwVideoHeight); - - HRESULT ( STDMETHODCALLTYPE *GetStatus )( - IMixerOCX * This, - /* [out] */ LPDWORD *pdwStatus); - - HRESULT ( STDMETHODCALLTYPE *OnDraw )( - IMixerOCX * This, - /* [in] */ HDC hdcDraw, - /* [in] */ LPCRECT prcDraw); - - HRESULT ( STDMETHODCALLTYPE *SetDrawRegion )( - IMixerOCX * This, - /* [in] */ LPPOINT lpptTopLeftSC, - /* [in] */ LPCRECT prcDrawCC, - /* [in] */ LPCRECT lprcClip); - - HRESULT ( STDMETHODCALLTYPE *Advise )( - IMixerOCX * This, - /* [in] */ IMixerOCXNotify *pmdns); - - HRESULT ( STDMETHODCALLTYPE *UnAdvise )( - IMixerOCX * This); - - END_INTERFACE - } IMixerOCXVtbl; - - interface IMixerOCX - { - CONST_VTBL struct IMixerOCXVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMixerOCX_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMixerOCX_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMixerOCX_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMixerOCX_OnDisplayChange(This,ulBitsPerPixel,ulScreenWidth,ulScreenHeight) \ - (This)->lpVtbl -> OnDisplayChange(This,ulBitsPerPixel,ulScreenWidth,ulScreenHeight) - -#define IMixerOCX_GetAspectRatio(This,pdwPictAspectRatioX,pdwPictAspectRatioY) \ - (This)->lpVtbl -> GetAspectRatio(This,pdwPictAspectRatioX,pdwPictAspectRatioY) - -#define IMixerOCX_GetVideoSize(This,pdwVideoWidth,pdwVideoHeight) \ - (This)->lpVtbl -> GetVideoSize(This,pdwVideoWidth,pdwVideoHeight) - -#define IMixerOCX_GetStatus(This,pdwStatus) \ - (This)->lpVtbl -> GetStatus(This,pdwStatus) - -#define IMixerOCX_OnDraw(This,hdcDraw,prcDraw) \ - (This)->lpVtbl -> OnDraw(This,hdcDraw,prcDraw) - -#define IMixerOCX_SetDrawRegion(This,lpptTopLeftSC,prcDrawCC,lprcClip) \ - (This)->lpVtbl -> SetDrawRegion(This,lpptTopLeftSC,prcDrawCC,lprcClip) - -#define IMixerOCX_Advise(This,pmdns) \ - (This)->lpVtbl -> Advise(This,pmdns) - -#define IMixerOCX_UnAdvise(This) \ - (This)->lpVtbl -> UnAdvise(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMixerOCX_OnDisplayChange_Proxy( - IMixerOCX * This, - /* [in] */ ULONG ulBitsPerPixel, - /* [in] */ ULONG ulScreenWidth, - /* [in] */ ULONG ulScreenHeight); - - -void __RPC_STUB IMixerOCX_OnDisplayChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMixerOCX_GetAspectRatio_Proxy( - IMixerOCX * This, - /* [out] */ LPDWORD pdwPictAspectRatioX, - /* [out] */ LPDWORD pdwPictAspectRatioY); - - -void __RPC_STUB IMixerOCX_GetAspectRatio_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMixerOCX_GetVideoSize_Proxy( - IMixerOCX * This, - /* [out] */ LPDWORD pdwVideoWidth, - /* [out] */ LPDWORD pdwVideoHeight); - - -void __RPC_STUB IMixerOCX_GetVideoSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMixerOCX_GetStatus_Proxy( - IMixerOCX * This, - /* [out] */ LPDWORD *pdwStatus); - - -void __RPC_STUB IMixerOCX_GetStatus_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMixerOCX_OnDraw_Proxy( - IMixerOCX * This, - /* [in] */ HDC hdcDraw, - /* [in] */ LPCRECT prcDraw); - - -void __RPC_STUB IMixerOCX_OnDraw_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMixerOCX_SetDrawRegion_Proxy( - IMixerOCX * This, - /* [in] */ LPPOINT lpptTopLeftSC, - /* [in] */ LPCRECT prcDrawCC, - /* [in] */ LPCRECT lprcClip); - - -void __RPC_STUB IMixerOCX_SetDrawRegion_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMixerOCX_Advise_Proxy( - IMixerOCX * This, - /* [in] */ IMixerOCXNotify *pmdns); - - -void __RPC_STUB IMixerOCX_Advise_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMixerOCX_UnAdvise_Proxy( - IMixerOCX * This); - - -void __RPC_STUB IMixerOCX_UnAdvise_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMixerOCX_INTERFACE_DEFINED__ */ - - -/* Additional Prototypes for ALL interfaces */ - -unsigned long __RPC_USER HDC_UserSize( unsigned long *, unsigned long , HDC * ); -unsigned char * __RPC_USER HDC_UserMarshal( unsigned long *, unsigned char *, HDC * ); -unsigned char * __RPC_USER HDC_UserUnmarshal(unsigned long *, unsigned char *, HDC * ); -void __RPC_USER HDC_UserFree( unsigned long *, HDC * ); - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/mmstream.h b/sdk/dx8sdk/Include/mmstream.h deleted file mode 100644 index ec91bc0b..00000000 --- a/sdk/dx8sdk/Include/mmstream.h +++ /dev/null @@ -1,846 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for mmstream.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __mmstream_h__ -#define __mmstream_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IMultiMediaStream_FWD_DEFINED__ -#define __IMultiMediaStream_FWD_DEFINED__ -typedef interface IMultiMediaStream IMultiMediaStream; -#endif /* __IMultiMediaStream_FWD_DEFINED__ */ - - -#ifndef __IMediaStream_FWD_DEFINED__ -#define __IMediaStream_FWD_DEFINED__ -typedef interface IMediaStream IMediaStream; -#endif /* __IMediaStream_FWD_DEFINED__ */ - - -#ifndef __IStreamSample_FWD_DEFINED__ -#define __IStreamSample_FWD_DEFINED__ -typedef interface IStreamSample IStreamSample; -#endif /* __IStreamSample_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "unknwn.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_mmstream_0000 */ -/* [local] */ - -#define MS_ERROR_CODE(x) MAKE_HRESULT(1, FACILITY_ITF, (x) + 0x400) -#define MS_SUCCESS_CODE(x) MAKE_HRESULT(0, FACILITY_ITF, x) -#define MS_S_PENDING MS_SUCCESS_CODE(1) -#define MS_S_NOUPDATE MS_SUCCESS_CODE(2) -#define MS_S_ENDOFSTREAM MS_SUCCESS_CODE(3) -#define MS_E_SAMPLEALLOC MS_ERROR_CODE(1) -#define MS_E_PURPOSEID MS_ERROR_CODE(2) -#define MS_E_NOSTREAM MS_ERROR_CODE(3) -#define MS_E_NOSEEKING MS_ERROR_CODE(4) -#define MS_E_INCOMPATIBLE MS_ERROR_CODE(5) -#define MS_E_BUSY MS_ERROR_CODE(6) -#define MS_E_NOTINIT MS_ERROR_CODE(7) -#define MS_E_SOURCEALREADYDEFINED MS_ERROR_CODE(8) -#define MS_E_INVALIDSTREAMTYPE MS_ERROR_CODE(9) -#define MS_E_NOTRUNNING MS_ERROR_CODE(10) -// {A35FF56A-9FDA-11d0-8FDF-00C04FD9189D} -DEFINE_GUID(MSPID_PrimaryVideo, -0xa35ff56a, 0x9fda, 0x11d0, 0x8f, 0xdf, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d); -// {A35FF56B-9FDA-11d0-8FDF-00C04FD9189D} -DEFINE_GUID(MSPID_PrimaryAudio, -0xa35ff56b, 0x9fda, 0x11d0, 0x8f, 0xdf, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d); -#if(_WIN32_WINNT < 0x0400) -typedef void ( __stdcall *PAPCFUNC )( - DWORD_PTR dwParam); - -#endif -typedef LONGLONG STREAM_TIME; - -typedef GUID MSPID; - -typedef REFGUID REFMSPID; - -typedef /* [public][public][public] */ -enum __MIDL___MIDL_itf_mmstream_0000_0001 - { STREAMTYPE_READ = 0, - STREAMTYPE_WRITE = 1, - STREAMTYPE_TRANSFORM = 2 - } STREAM_TYPE; - -typedef /* [public][public][public] */ -enum __MIDL___MIDL_itf_mmstream_0000_0002 - { STREAMSTATE_STOP = 0, - STREAMSTATE_RUN = 1 - } STREAM_STATE; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_mmstream_0000_0003 - { COMPSTAT_NOUPDATEOK = 0x1, - COMPSTAT_WAIT = 0x2, - COMPSTAT_ABORT = 0x4 - } COMPLETION_STATUS_FLAGS; - - -enum __MIDL___MIDL_itf_mmstream_0000_0004 - { MMSSF_HASCLOCK = 0x1, - MMSSF_SUPPORTSEEK = 0x2, - MMSSF_ASYNCHRONOUS = 0x4 - } ; - -enum __MIDL___MIDL_itf_mmstream_0000_0005 - { SSUPDATE_ASYNC = 0x1, - SSUPDATE_CONTINUOUS = 0x2 - } ; - - - - - -extern RPC_IF_HANDLE __MIDL_itf_mmstream_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_mmstream_0000_v0_0_s_ifspec; - -#ifndef __IMultiMediaStream_INTERFACE_DEFINED__ -#define __IMultiMediaStream_INTERFACE_DEFINED__ - -/* interface IMultiMediaStream */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IMultiMediaStream; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B502D1BC-9A57-11d0-8FDE-00C04FD9189D") - IMultiMediaStream : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetInformation( - /* [out] */ DWORD *pdwFlags, - /* [out] */ STREAM_TYPE *pStreamType) = 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 GetState( - /* [out] */ STREAM_STATE *pCurrentState) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetState( - /* [in] */ STREAM_STATE NewState) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTime( - /* [out] */ STREAM_TIME *pCurrentTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDuration( - /* [out] */ STREAM_TIME *pDuration) = 0; - - virtual HRESULT STDMETHODCALLTYPE Seek( - /* [in] */ STREAM_TIME SeekTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetEndOfStreamEventHandle( - /* [out] */ HANDLE *phEOS) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMultiMediaStreamVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMultiMediaStream * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMultiMediaStream * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMultiMediaStream * This); - - HRESULT ( STDMETHODCALLTYPE *GetInformation )( - IMultiMediaStream * This, - /* [out] */ DWORD *pdwFlags, - /* [out] */ STREAM_TYPE *pStreamType); - - HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( - IMultiMediaStream * This, - /* [in] */ REFMSPID idPurpose, - /* [out] */ IMediaStream **ppMediaStream); - - HRESULT ( STDMETHODCALLTYPE *EnumMediaStreams )( - IMultiMediaStream * This, - /* [in] */ long Index, - /* [out] */ IMediaStream **ppMediaStream); - - HRESULT ( STDMETHODCALLTYPE *GetState )( - IMultiMediaStream * This, - /* [out] */ STREAM_STATE *pCurrentState); - - HRESULT ( STDMETHODCALLTYPE *SetState )( - IMultiMediaStream * This, - /* [in] */ STREAM_STATE NewState); - - HRESULT ( STDMETHODCALLTYPE *GetTime )( - IMultiMediaStream * This, - /* [out] */ STREAM_TIME *pCurrentTime); - - HRESULT ( STDMETHODCALLTYPE *GetDuration )( - IMultiMediaStream * This, - /* [out] */ STREAM_TIME *pDuration); - - HRESULT ( STDMETHODCALLTYPE *Seek )( - IMultiMediaStream * This, - /* [in] */ STREAM_TIME SeekTime); - - HRESULT ( STDMETHODCALLTYPE *GetEndOfStreamEventHandle )( - IMultiMediaStream * This, - /* [out] */ HANDLE *phEOS); - - END_INTERFACE - } IMultiMediaStreamVtbl; - - interface IMultiMediaStream - { - CONST_VTBL struct IMultiMediaStreamVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMultiMediaStream_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMultiMediaStream_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMultiMediaStream_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMultiMediaStream_GetInformation(This,pdwFlags,pStreamType) \ - (This)->lpVtbl -> GetInformation(This,pdwFlags,pStreamType) - -#define IMultiMediaStream_GetMediaStream(This,idPurpose,ppMediaStream) \ - (This)->lpVtbl -> GetMediaStream(This,idPurpose,ppMediaStream) - -#define IMultiMediaStream_EnumMediaStreams(This,Index,ppMediaStream) \ - (This)->lpVtbl -> EnumMediaStreams(This,Index,ppMediaStream) - -#define IMultiMediaStream_GetState(This,pCurrentState) \ - (This)->lpVtbl -> GetState(This,pCurrentState) - -#define IMultiMediaStream_SetState(This,NewState) \ - (This)->lpVtbl -> SetState(This,NewState) - -#define IMultiMediaStream_GetTime(This,pCurrentTime) \ - (This)->lpVtbl -> GetTime(This,pCurrentTime) - -#define IMultiMediaStream_GetDuration(This,pDuration) \ - (This)->lpVtbl -> GetDuration(This,pDuration) - -#define IMultiMediaStream_Seek(This,SeekTime) \ - (This)->lpVtbl -> Seek(This,SeekTime) - -#define IMultiMediaStream_GetEndOfStreamEventHandle(This,phEOS) \ - (This)->lpVtbl -> GetEndOfStreamEventHandle(This,phEOS) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMultiMediaStream_GetInformation_Proxy( - IMultiMediaStream * This, - /* [out] */ DWORD *pdwFlags, - /* [out] */ STREAM_TYPE *pStreamType); - - -void __RPC_STUB IMultiMediaStream_GetInformation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMultiMediaStream_GetMediaStream_Proxy( - IMultiMediaStream * This, - /* [in] */ REFMSPID idPurpose, - /* [out] */ IMediaStream **ppMediaStream); - - -void __RPC_STUB IMultiMediaStream_GetMediaStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMultiMediaStream_EnumMediaStreams_Proxy( - IMultiMediaStream * This, - /* [in] */ long Index, - /* [out] */ IMediaStream **ppMediaStream); - - -void __RPC_STUB IMultiMediaStream_EnumMediaStreams_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMultiMediaStream_GetState_Proxy( - IMultiMediaStream * This, - /* [out] */ STREAM_STATE *pCurrentState); - - -void __RPC_STUB IMultiMediaStream_GetState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMultiMediaStream_SetState_Proxy( - IMultiMediaStream * This, - /* [in] */ STREAM_STATE NewState); - - -void __RPC_STUB IMultiMediaStream_SetState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMultiMediaStream_GetTime_Proxy( - IMultiMediaStream * This, - /* [out] */ STREAM_TIME *pCurrentTime); - - -void __RPC_STUB IMultiMediaStream_GetTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMultiMediaStream_GetDuration_Proxy( - IMultiMediaStream * This, - /* [out] */ STREAM_TIME *pDuration); - - -void __RPC_STUB IMultiMediaStream_GetDuration_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMultiMediaStream_Seek_Proxy( - IMultiMediaStream * This, - /* [in] */ STREAM_TIME SeekTime); - - -void __RPC_STUB IMultiMediaStream_Seek_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMultiMediaStream_GetEndOfStreamEventHandle_Proxy( - IMultiMediaStream * This, - /* [out] */ HANDLE *phEOS); - - -void __RPC_STUB IMultiMediaStream_GetEndOfStreamEventHandle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMultiMediaStream_INTERFACE_DEFINED__ */ - - -#ifndef __IMediaStream_INTERFACE_DEFINED__ -#define __IMediaStream_INTERFACE_DEFINED__ - -/* interface IMediaStream */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IMediaStream; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B502D1BD-9A57-11d0-8FDE-00C04FD9189D") - IMediaStream : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetMultiMediaStream( - /* [out] */ IMultiMediaStream **ppMultiMediaStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInformation( - /* [out] */ MSPID *pPurposeId, - /* [out] */ STREAM_TYPE *pType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSameFormat( - /* [in] */ IMediaStream *pStreamThatHasDesiredFormat, - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE AllocateSample( - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateSharedSample( - /* [in] */ IStreamSample *pExistingSample, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppNewSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE SendEndOfStream( - DWORD dwFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaStreamVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaStream * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaStream * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaStream * This); - - HRESULT ( STDMETHODCALLTYPE *GetMultiMediaStream )( - IMediaStream * This, - /* [out] */ IMultiMediaStream **ppMultiMediaStream); - - HRESULT ( STDMETHODCALLTYPE *GetInformation )( - IMediaStream * This, - /* [out] */ MSPID *pPurposeId, - /* [out] */ STREAM_TYPE *pType); - - HRESULT ( STDMETHODCALLTYPE *SetSameFormat )( - IMediaStream * This, - /* [in] */ IMediaStream *pStreamThatHasDesiredFormat, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *AllocateSample )( - IMediaStream * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppSample); - - HRESULT ( STDMETHODCALLTYPE *CreateSharedSample )( - IMediaStream * This, - /* [in] */ IStreamSample *pExistingSample, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppNewSample); - - HRESULT ( STDMETHODCALLTYPE *SendEndOfStream )( - IMediaStream * This, - DWORD dwFlags); - - END_INTERFACE - } IMediaStreamVtbl; - - interface IMediaStream - { - CONST_VTBL struct IMediaStreamVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaStream_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaStream_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaStream_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaStream_GetMultiMediaStream(This,ppMultiMediaStream) \ - (This)->lpVtbl -> GetMultiMediaStream(This,ppMultiMediaStream) - -#define IMediaStream_GetInformation(This,pPurposeId,pType) \ - (This)->lpVtbl -> GetInformation(This,pPurposeId,pType) - -#define IMediaStream_SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) \ - (This)->lpVtbl -> SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) - -#define IMediaStream_AllocateSample(This,dwFlags,ppSample) \ - (This)->lpVtbl -> AllocateSample(This,dwFlags,ppSample) - -#define IMediaStream_CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) \ - (This)->lpVtbl -> CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) - -#define IMediaStream_SendEndOfStream(This,dwFlags) \ - (This)->lpVtbl -> SendEndOfStream(This,dwFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaStream_GetMultiMediaStream_Proxy( - IMediaStream * This, - /* [out] */ IMultiMediaStream **ppMultiMediaStream); - - -void __RPC_STUB IMediaStream_GetMultiMediaStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStream_GetInformation_Proxy( - IMediaStream * This, - /* [out] */ MSPID *pPurposeId, - /* [out] */ STREAM_TYPE *pType); - - -void __RPC_STUB IMediaStream_GetInformation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStream_SetSameFormat_Proxy( - IMediaStream * This, - /* [in] */ IMediaStream *pStreamThatHasDesiredFormat, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IMediaStream_SetSameFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStream_AllocateSample_Proxy( - IMediaStream * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppSample); - - -void __RPC_STUB IMediaStream_AllocateSample_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStream_CreateSharedSample_Proxy( - IMediaStream * This, - /* [in] */ IStreamSample *pExistingSample, - /* [in] */ DWORD dwFlags, - /* [out] */ IStreamSample **ppNewSample); - - -void __RPC_STUB IMediaStream_CreateSharedSample_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaStream_SendEndOfStream_Proxy( - IMediaStream * This, - DWORD dwFlags); - - -void __RPC_STUB IMediaStream_SendEndOfStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaStream_INTERFACE_DEFINED__ */ - - -#ifndef __IStreamSample_INTERFACE_DEFINED__ -#define __IStreamSample_INTERFACE_DEFINED__ - -/* interface IStreamSample */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IStreamSample; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B502D1BE-9A57-11d0-8FDE-00C04FD9189D") - IStreamSample : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetMediaStream( - /* [in] */ IMediaStream **ppMediaStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSampleTimes( - /* [out] */ STREAM_TIME *pStartTime, - /* [out] */ STREAM_TIME *pEndTime, - /* [out] */ STREAM_TIME *pCurrentTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSampleTimes( - /* [in] */ const STREAM_TIME *pStartTime, - /* [in] */ const STREAM_TIME *pEndTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE Update( - /* [in] */ DWORD dwFlags, - /* [in] */ HANDLE hEvent, - /* [in] */ PAPCFUNC pfnAPC, - /* [in] */ DWORD_PTR dwAPCData) = 0; - - virtual HRESULT STDMETHODCALLTYPE CompletionStatus( - /* [in] */ DWORD dwFlags, - /* [in] */ DWORD dwMilliseconds) = 0; - - }; - -#else /* C style interface */ - - typedef struct IStreamSampleVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IStreamSample * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IStreamSample * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IStreamSample * This); - - HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( - IStreamSample * This, - /* [in] */ IMediaStream **ppMediaStream); - - HRESULT ( STDMETHODCALLTYPE *GetSampleTimes )( - IStreamSample * This, - /* [out] */ STREAM_TIME *pStartTime, - /* [out] */ STREAM_TIME *pEndTime, - /* [out] */ STREAM_TIME *pCurrentTime); - - HRESULT ( STDMETHODCALLTYPE *SetSampleTimes )( - IStreamSample * This, - /* [in] */ const STREAM_TIME *pStartTime, - /* [in] */ const STREAM_TIME *pEndTime); - - HRESULT ( STDMETHODCALLTYPE *Update )( - IStreamSample * This, - /* [in] */ DWORD dwFlags, - /* [in] */ HANDLE hEvent, - /* [in] */ PAPCFUNC pfnAPC, - /* [in] */ DWORD_PTR dwAPCData); - - HRESULT ( STDMETHODCALLTYPE *CompletionStatus )( - IStreamSample * This, - /* [in] */ DWORD dwFlags, - /* [in] */ DWORD dwMilliseconds); - - END_INTERFACE - } IStreamSampleVtbl; - - interface IStreamSample - { - CONST_VTBL struct IStreamSampleVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IStreamSample_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IStreamSample_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IStreamSample_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IStreamSample_GetMediaStream(This,ppMediaStream) \ - (This)->lpVtbl -> GetMediaStream(This,ppMediaStream) - -#define IStreamSample_GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime) \ - (This)->lpVtbl -> GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime) - -#define IStreamSample_SetSampleTimes(This,pStartTime,pEndTime) \ - (This)->lpVtbl -> SetSampleTimes(This,pStartTime,pEndTime) - -#define IStreamSample_Update(This,dwFlags,hEvent,pfnAPC,dwAPCData) \ - (This)->lpVtbl -> Update(This,dwFlags,hEvent,pfnAPC,dwAPCData) - -#define IStreamSample_CompletionStatus(This,dwFlags,dwMilliseconds) \ - (This)->lpVtbl -> CompletionStatus(This,dwFlags,dwMilliseconds) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IStreamSample_GetMediaStream_Proxy( - IStreamSample * This, - /* [in] */ IMediaStream **ppMediaStream); - - -void __RPC_STUB IStreamSample_GetMediaStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamSample_GetSampleTimes_Proxy( - IStreamSample * This, - /* [out] */ STREAM_TIME *pStartTime, - /* [out] */ STREAM_TIME *pEndTime, - /* [out] */ STREAM_TIME *pCurrentTime); - - -void __RPC_STUB IStreamSample_GetSampleTimes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamSample_SetSampleTimes_Proxy( - IStreamSample * This, - /* [in] */ const STREAM_TIME *pStartTime, - /* [in] */ const STREAM_TIME *pEndTime); - - -void __RPC_STUB IStreamSample_SetSampleTimes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamSample_Update_Proxy( - IStreamSample * This, - /* [in] */ DWORD dwFlags, - /* [in] */ HANDLE hEvent, - /* [in] */ PAPCFUNC pfnAPC, - /* [in] */ DWORD_PTR dwAPCData); - - -void __RPC_STUB IStreamSample_Update_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamSample_CompletionStatus_Proxy( - IStreamSample * This, - /* [in] */ DWORD dwFlags, - /* [in] */ DWORD dwMilliseconds); - - -void __RPC_STUB IStreamSample_CompletionStatus_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IStreamSample_INTERFACE_DEFINED__ */ - - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/mpconfig.h b/sdk/dx8sdk/Include/mpconfig.h deleted file mode 100644 index 49f8cf10..00000000 --- a/sdk/dx8sdk/Include/mpconfig.h +++ /dev/null @@ -1,144 +0,0 @@ -//------------------------------------------------------------------------------ -// File: MPConfig.h -// -// Desc: -// -// Copyright (c) 1997-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef __IMPConfig__ -#define __IMPConfig__ - -#ifdef __cplusplus -extern "C" { -#endif - -typedef enum _AM_ASPECT_RATIO_MODE -{ - AM_ARMODE_STRETCHED, // don't do any aspect ratio correction - AM_ARMODE_LETTER_BOX, // letter box the video, paint background color in the excess region - AM_ARMODE_CROP, // crop the video to the right aspect ratio - AM_ARMODE_STRETCHED_AS_PRIMARY // follow whatever the primary stream does (in terms of the mode as well as pict-aspect-ratio values) -} AM_ASPECT_RATIO_MODE; - - -DECLARE_INTERFACE_(IMixerPinConfig, IUnknown) -{ - // this function sets the position of the stream in the display window, assuming - // that the window coordinates are {0, 0, 10000, 10000}. Thus giving arguments - // (0, 0, 5000, 5000) will put the stream in the top-left quarter. Any value greater - // than 10000 is invalid. - STDMETHOD (SetRelativePosition)(THIS_ - IN DWORD dwLeft, - IN DWORD dwTop, - IN DWORD dwRight, - IN DWORD dwBottom - ) PURE; - - // this function gets the position of the stream in the display window, assuming - // that the window coordinates are {0, 0, 10000, 10000}. Thus if the values returned - // are (0, 0, 5000, 5000), then it means that the stream is in the top-left quarter. - STDMETHOD (GetRelativePosition)(THIS_ - OUT DWORD *pdwLeft, - OUT DWORD *pdwTop, - OUT DWORD *pdwRight, - OUT DWORD *pdwBottom - ) PURE; - - // this function sets the ZOrder of the stream. The ZOrder of 0 is the closest - // to the eyes of the user, and increasing values imply greater distance. - STDMETHOD (SetZOrder)(THIS_ - IN DWORD dwZOrder - ) PURE; - - - // this function gets the ZOrder of the stream. The ZOrder of 0 is the closest - // to the eyes of the user, and increasing values imply greater distance. - STDMETHOD (GetZOrder)(THIS_ - OUT DWORD *pdwZOrder - ) PURE; - - // this function sets the colorkey being used by the stream. Setting this value on the - // primary stream sets the destination colorkey being used by the overlay surface. Setting - // this value on the secondary pin makes sense only if the stream is transparent. By default - // the destination colorkey is used as the colorkey for all transparent (secondary) streams. - STDMETHOD (SetColorKey)(THIS_ - IN COLORKEY *pColorKey - ) PURE; - - // this function gets the colorkey being used by the stream. Getting this value on the - // primary stream gets the destination colorkey being used by the overlay surface. Getting - // this value on the secondary pin returns the colorkey being used by that particular stream. - // When using this method, you are allowed to pass NULL for either pColorKey or pColor but - // not both. - STDMETHOD (GetColorKey)(THIS_ - OUT COLORKEY *pColorKey, - OUT DWORD *pColor - ) PURE; - - // this function sets the blending parameter which in turn defines, how the secondary stream - // is going to be blended with the primary stream. A value of 0 makes the secondary stream - // invisible, a value of 255 makes the primary stream invisible (in that region only ofcourse), - // and any value inbetween, say x, blends the secondary and primary streams in the ratio x : (255-x). - // If no value is set, the default is 255. - // Any value less than 0 or greater than 255 is invalid. Calling this function on the primary - // stream would result in a return value of E_UNEXPECTED. - STDMETHOD (SetBlendingParameter)(THIS_ - IN DWORD dwBlendingParameter - ) PURE; - - // this function gets the blending parameter which in turn defines, how the secondary stream - // is currently being blended with the primary stream. - STDMETHOD (GetBlendingParameter)(THIS_ - OUT DWORD *pdwBlendingParameter - ) PURE; - - - // this function is used to set the Aspect Ratio Correction mode on the pin. - // If the mode is set to letter box, black color is painted on the excess region - STDMETHOD (SetAspectRatioMode)(THIS_ - IN AM_ASPECT_RATIO_MODE amAspectRatioMode - ) PURE; - - // this function is used to get the Aspect Ratio Correction mode on the pin. - STDMETHOD (GetAspectRatioMode)(THIS_ - OUT AM_ASPECT_RATIO_MODE* pamAspectRatioMode - ) PURE; - - // this function sets the stream to be transparent. That means that the stream is not going - // to occupy the whole of the rectangle (specified by SetRelativePosition), some of the region - // is going to be transparent i.e. the stream underneath, is going to see through. - // Calling this function on the primary stream would result in a return value of E_UNEXPECTED. - STDMETHOD (SetStreamTransparent)(THIS_ - IN BOOL bStreamTransparent - ) PURE; - - // this function is used to tell whether the stream is transparent or not. - STDMETHOD (GetStreamTransparent)(THIS_ - OUT BOOL *pbStreamTransparent - ) PURE; -}; - - -DECLARE_INTERFACE_(IMixerPinConfig2, IMixerPinConfig) -{ - // this functions sets the color-controls, if the vga chip supports it. - STDMETHOD (SetOverlaySurfaceColorControls)(THIS_ - IN LPDDCOLORCONTROL pColorControl - ) PURE; - - // this functions gets the color-controls. It also returns the capability of the vga hardware - // in the dwFlags value of the struct. - STDMETHOD (GetOverlaySurfaceColorControls)(THIS_ - OUT LPDDCOLORCONTROL pColorControl - ) PURE; -}; - -#ifdef __cplusplus -} -#endif - - -#endif // #define __IMPConfig__ - diff --git a/sdk/dx8sdk/Include/mpeg2data.h b/sdk/dx8sdk/Include/mpeg2data.h deleted file mode 100644 index f3301c69..00000000 --- a/sdk/dx8sdk/Include/mpeg2data.h +++ /dev/null @@ -1,1072 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for mpeg2data.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __mpeg2data_h__ -#define __mpeg2data_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IMpeg2Data_FWD_DEFINED__ -#define __IMpeg2Data_FWD_DEFINED__ -typedef interface IMpeg2Data IMpeg2Data; -#endif /* __IMpeg2Data_FWD_DEFINED__ */ - - -#ifndef __ISectionList_FWD_DEFINED__ -#define __ISectionList_FWD_DEFINED__ -typedef interface ISectionList ISectionList; -#endif /* __ISectionList_FWD_DEFINED__ */ - - -#ifndef __IMpeg2Stream_FWD_DEFINED__ -#define __IMpeg2Stream_FWD_DEFINED__ -typedef interface IMpeg2Stream IMpeg2Stream; -#endif /* __IMpeg2Stream_FWD_DEFINED__ */ - - -#ifndef __SectionList_FWD_DEFINED__ -#define __SectionList_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class SectionList SectionList; -#else -typedef struct SectionList SectionList; -#endif /* __cplusplus */ - -#endif /* __SectionList_FWD_DEFINED__ */ - - -#ifndef __Mpeg2Stream_FWD_DEFINED__ -#define __Mpeg2Stream_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class Mpeg2Stream Mpeg2Stream; -#else -typedef struct Mpeg2Stream Mpeg2Stream; -#endif /* __cplusplus */ - -#endif /* __Mpeg2Stream_FWD_DEFINED__ */ - - -#ifndef __Mpeg2Data_FWD_DEFINED__ -#define __Mpeg2Data_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class Mpeg2Data Mpeg2Data; -#else -typedef struct Mpeg2Data Mpeg2Data; -#endif /* __cplusplus */ - -#endif /* __Mpeg2Data_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "oaidl.h" -#include "ocidl.h" -#include "bdaiface.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_mpeg2data_0000 */ -/* [local] */ - - -#pragma pack(push) - -#pragma pack(1) - - -#define MPEG_PAT_PID 0x0000 -#define MPEG_PAT_TID 0x00 -#define MPEG_CAT_PID 0x0001 -#define MPEG_CAT_TID 0x01 -#define MPEG_PMT_TID 0x02 -#define MPEG_TSDT_PID 0x0002 -#define MPEG_TSDT_TID 0x03 -#define ATSC_MGT_PID 0x1FFB -#define ATSC_MGT_TID 0xC7 -#define ATSC_VCT_PID 0x1FFB -#define ATSC_VCT_TERR_TID 0xC8 -#define ATSC_VCT_CABL_TID 0xC9 -#define ATSC_RRT_PID 0x1FFB -#define ATSC_RRT_TID 0xCA -#define ATSC_EIT_TID 0xCB -#define ATSC_ETT_TID 0xCC -#define ATSC_STT_PID 0x1FFB -#define ATSC_STT_TID 0xCD -#define ATSC_PIT_TID 0xD0 -#define DVB_NIT_PID 0x0010 -#define DVB_NIT_ACTUAL_TID 0x40 -#define DVB_NIT_OTHER_TID 0x41 -#define DVB_SDT_PID 0x0011 -#define DVB_SDT_ACTUAL_TID 0x42 -#define DVB_SDT_OTHER_TID 0x46 -#define DVB_BAT_PID 0x0011 -#define DVB_BAT_TID 0x4A -#define DVB_EIT_PID 0x0012 -#define DVB_EIT_ACTUAL_TID 0x4E -#define DVB_EIT_OTHER_TID 0x4F -#define DVB_RST_PID 0x0013 -#define DVB_RST_TID 0x71 -#define DVB_TDT_PID 0x0014 -#define DVB_TDT_TID 0x70 -#define DVB_ST_PID_16 0x0010 -#define DVB_ST_PID_17 0x0011 -#define DVB_ST_PID_18 0x0012 -#define DVB_ST_PID_19 0x0013 -#define DVB_ST_PID_20 0x0014 -#define DVB_ST_TID 0x72 -#define DVB_TOT_PID 0x0014 -#define DVB_TOT_TID 0x73 -#define DVB_DIT_PID 0x001E -#define DVB_DIT_TID 0x7E -#define DVB_SIT_PID 0x001F -#define DVB_SIT_TID 0x7F -#define ISDB_DCT_PID 0x0017 -#define ISDB_DCT_TID 0xC0 -#define ISDB_LIT_PID 0x0020 -#define ISDB_LIT_TID 0xD0 -#define ISDB_ERT_PID 0x0021 -#define ISDB_ERT_TID 0xD1 -#define ISDB_ITT_TID 0xD2 -#define ISDB_DLT_TID 0xC1 -#define ISDB_PCAT_PID 0x0022 -#define ISDB_PCAT_TID 0xC2 -#define ISDB_SDTT_PID 0x0023 -#define ISDB_SDTT_TID 0xC3 -class DECLSPEC_UUID("DBAF6C1B-B6A4-4898-AE65-204F0D9509A1") Mpeg2DataLib; - - -extern RPC_IF_HANDLE __MIDL_itf_mpeg2data_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_mpeg2data_0000_v0_0_s_ifspec; - - -#ifndef __Mpeg2DataLib_LIBRARY_DEFINED__ -#define __Mpeg2DataLib_LIBRARY_DEFINED__ - -/* library Mpeg2DataLib */ -/* [version][uuid] */ - -#pragma once - -#pragma pack(push) - -#pragma pack(1) -typedef /* [public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0001 - { - WORD Bits; - } PID_BITS_MIDL; - -typedef /* [public][public][public][public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0002 - { - WORD Bits; - } MPEG_HEADER_BITS_MIDL; - -typedef /* [public][public][public][public][public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0003 - { - BYTE Bits; - } MPEG_HEADER_VERSION_BITS_MIDL; - - -#pragma pack(pop) -typedef WORD PID; - -typedef BYTE TID; - -typedef UINT ClientKey; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_mpeg2data_0000_0004 - { MPEG_SECTION_IS_NEXT = 0, - MPEG_SECTION_IS_CURRENT = 1 - } MPEG_CURRENT_NEXT_BIT; - -typedef /* [public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0005 - { - WORD wTidExt; - WORD wCount; - } TID_EXTENSION; - -typedef struct __MIDL___MIDL_itf_mpeg2data_0000_0005 *PTID_EXTENSION; - -typedef /* [public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0006 - { - TID TableId; - union - { - MPEG_HEADER_BITS_MIDL S; - WORD W; - } Header; - BYTE SectionData[ 1 ]; - } SECTION; - -typedef struct __MIDL___MIDL_itf_mpeg2data_0000_0006 *PSECTION; - -typedef /* [public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0008 - { - TID TableId; - union - { - MPEG_HEADER_BITS_MIDL S; - WORD W; - } Header; - WORD TableIdExtension; - union - { - MPEG_HEADER_VERSION_BITS_MIDL S; - BYTE B; - } Version; - BYTE SectionNumber; - BYTE LastSectionNumber; - BYTE RemainingData[ 1 ]; - } LONG_SECTION; - -typedef struct __MIDL___MIDL_itf_mpeg2data_0000_0008 *PLONG_SECTION; - -typedef /* [public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0011 - { - TID TableId; - union - { - MPEG_HEADER_BITS_MIDL S; - WORD W; - } Header; - WORD TableIdExtension; - union - { - MPEG_HEADER_VERSION_BITS_MIDL S; - BYTE B; - } Version; - BYTE SectionNumber; - BYTE LastSectionNumber; - BYTE ProtocolDiscriminator; - BYTE DsmccType; - WORD MessageId; - DWORD TransactionId; - BYTE Reserved; - BYTE AdaptationLength; - WORD MessageLength; - BYTE RemainingData[ 1 ]; - } DSMCC_SECTION; - -typedef struct __MIDL___MIDL_itf_mpeg2data_0000_0011 *PDSMCC_SECTION; - -typedef /* [public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0014 - { - DWORD dwLength; - PSECTION pSection; - } MPEG_RQST_PACKET; - -typedef struct __MIDL___MIDL_itf_mpeg2data_0000_0014 *PMPEG_RQST_PACKET; - -typedef /* [public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0015 - { - WORD wPacketCount; - PMPEG_RQST_PACKET PacketList[ 1 ]; - } MPEG_PACKET_LIST; - -typedef struct __MIDL___MIDL_itf_mpeg2data_0000_0015 *PMPEG_PACKET_LIST; - -typedef /* [public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0016 - { - BOOL fSpecifyProtocol; - BYTE Protocol; - BOOL fSpecifyType; - BYTE Type; - BOOL fSpecifyMessageId; - WORD MessageId; - BOOL fSpecifyTransactionId; - BOOL fUseTrxIdMessageIdMask; - DWORD TransactionId; - BOOL fSpecifyModuleVersion; - BYTE ModuleVersion; - BOOL fSpecifyBlockNumber; - WORD BlockNumber; - BOOL fGetModuleCall; - WORD NumberOfBlocksInModule; - } DSMCC_FILTER_OPTIONS; - -typedef /* [public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0017 - { - BOOL fSpecifyEtmId; - DWORD EtmId; - } ATSC_FILTER_OPTIONS; - -typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0018 - { - BYTE bVersionNumber; - WORD wFilterSize; - BOOL fUseRawFilteringBits; - BYTE Filter[ 16 ]; - BYTE Mask[ 16 ]; - BOOL fSpecifyTableIdExtension; - WORD TableIdExtension; - BOOL fSpecifyVersion; - BYTE Version; - BOOL fSpecifySectionNumber; - BYTE SectionNumber; - BOOL fSpecifyCurrentNext; - BOOL fNext; - BOOL fSpecifyDsmccOptions; - DSMCC_FILTER_OPTIONS Dsmcc; - BOOL fSpecifyAtscOptions; - ATSC_FILTER_OPTIONS Atsc; - } MPEG2_FILTER; - -typedef struct __MIDL___MIDL_itf_mpeg2data_0000_0018 *PMPEG2_FILTER; - -#define MPEG2_FILTER_VERSION_1_SIZE 124 -typedef /* [public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0019 - { - HRESULT hr; - DWORD dwDataBufferSize; - DWORD dwSizeOfDataRead; - BYTE *pDataBuffer; - } MPEG_STREAM_BUFFER; - -typedef struct __MIDL___MIDL_itf_mpeg2data_0000_0019 *PMPEG_STREAM_BUFFER; - -typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0020 - { - BYTE Hours; - BYTE Minutes; - BYTE Seconds; - } MPEG_TIME; - -typedef MPEG_TIME MPEG_DURATION; - -typedef /* [public][public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0021 - { - BYTE Date; - BYTE Month; - WORD Year; - } MPEG_DATE; - -typedef /* [public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0022 - { - MPEG_DATE D; - MPEG_TIME T; - } MPEG_DATE_AND_TIME; - -typedef /* [public][public][public][public][public][public][public] */ -enum __MIDL___MIDL_itf_mpeg2data_0000_0023 - { MPEG_CONTEXT_BCS_DEMUX = 0, - MPEG_CONTEXT_WINSOCK = MPEG_CONTEXT_BCS_DEMUX + 1 - } MPEG_CONTEXT_TYPE; - -typedef /* [public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0024 - { - DWORD AVMGraphId; - } MPEG_BCS_DEMUX; - -typedef /* [public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0025 - { - DWORD AVMGraphId; - } MPEG_WINSOCK; - -typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0026 - { - MPEG_CONTEXT_TYPE Type; - union - { - MPEG_BCS_DEMUX Demux; - MPEG_WINSOCK Winsock; - } U; - } MPEG_CONTEXT; - -typedef struct __MIDL___MIDL_itf_mpeg2data_0000_0026 *PMPEG_CONTEXT; - -typedef /* [public][public][public][public][public] */ -enum __MIDL___MIDL_itf_mpeg2data_0000_0028 - { MPEG_RQST_UNKNOWN = 0, - MPEG_RQST_GET_SECTION = MPEG_RQST_UNKNOWN + 1, - MPEG_RQST_GET_SECTION_ASYNC = MPEG_RQST_GET_SECTION + 1, - MPEG_RQST_GET_TABLE = MPEG_RQST_GET_SECTION_ASYNC + 1, - MPEG_RQST_GET_TABLE_ASYNC = MPEG_RQST_GET_TABLE + 1, - MPEG_RQST_GET_SECTIONS_STREAM = MPEG_RQST_GET_TABLE_ASYNC + 1, - MPEG_RQST_GET_PES_STREAM = MPEG_RQST_GET_SECTIONS_STREAM + 1, - MPEG_RQST_GET_TS_STREAM = MPEG_RQST_GET_PES_STREAM + 1, - MPEG_RQST_START_MPE_STREAM = MPEG_RQST_GET_TS_STREAM + 1 - } MPEG_REQUEST_TYPE; - -typedef /* [public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0029 - { - MPEG_REQUEST_TYPE Type; - MPEG_CONTEXT Context; - PID Pid; - TID TableId; - MPEG2_FILTER Filter; - DWORD Flags; - } MPEG_SERVICE_REQUEST; - -typedef struct __MIDL___MIDL_itf_mpeg2data_0000_0029 *PMPEG_SERVICE_REQUEST; - -typedef /* [public] */ struct __MIDL___MIDL_itf_mpeg2data_0000_0030 - { - DWORD IPAddress; - WORD Port; - } MPEG_SERVICE_RESPONSE; - -typedef struct __MIDL___MIDL_itf_mpeg2data_0000_0030 *PMPEG_SERVICE_RESPONSE; - -typedef struct _DSMCC_ELEMENT - { - PID pid; - BYTE bComponentTag; - DWORD dwCarouselId; - DWORD dwTransactionId; - struct _DSMCC_ELEMENT *pNext; - } DSMCC_ELEMENT; - -typedef struct _DSMCC_ELEMENT *PDSMCC_ELEMENT; - -typedef struct _MPE_ELEMENT - { - PID pid; - BYTE bComponentTag; - struct _MPE_ELEMENT *pNext; - } MPE_ELEMENT; - -typedef struct _MPE_ELEMENT *PMPE_ELEMENT; - -typedef struct _MPEG_STREAM_FILTER - { - WORD wPidValue; - DWORD dwFilterSize; - BOOL fCrcEnabled; - BYTE rgchFilter[ 16 ]; - BYTE rgchMask[ 16 ]; - } MPEG_STREAM_FILTER; - - -EXTERN_C const IID LIBID_Mpeg2DataLib; - -#ifndef __IMpeg2Data_INTERFACE_DEFINED__ -#define __IMpeg2Data_INTERFACE_DEFINED__ - -/* interface IMpeg2Data */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IMpeg2Data; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9B396D40-F380-4e3c-A514-1A82BF6EBFE6") - IMpeg2Data : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetSection( - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ DWORD dwTimeout, - /* [out] */ ISectionList **ppSectionList) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTable( - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ DWORD dwTimeout, - /* [out] */ ISectionList **ppSectionList) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStreamOfSections( - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ HANDLE hDataReadyEvent, - /* [out] */ IMpeg2Stream **ppMpegStream) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMpeg2DataVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMpeg2Data * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMpeg2Data * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMpeg2Data * This); - - HRESULT ( STDMETHODCALLTYPE *GetSection )( - IMpeg2Data * This, - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ DWORD dwTimeout, - /* [out] */ ISectionList **ppSectionList); - - HRESULT ( STDMETHODCALLTYPE *GetTable )( - IMpeg2Data * This, - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ DWORD dwTimeout, - /* [out] */ ISectionList **ppSectionList); - - HRESULT ( STDMETHODCALLTYPE *GetStreamOfSections )( - IMpeg2Data * This, - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ HANDLE hDataReadyEvent, - /* [out] */ IMpeg2Stream **ppMpegStream); - - END_INTERFACE - } IMpeg2DataVtbl; - - interface IMpeg2Data - { - CONST_VTBL struct IMpeg2DataVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMpeg2Data_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMpeg2Data_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMpeg2Data_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMpeg2Data_GetSection(This,pid,tid,pFilter,dwTimeout,ppSectionList) \ - (This)->lpVtbl -> GetSection(This,pid,tid,pFilter,dwTimeout,ppSectionList) - -#define IMpeg2Data_GetTable(This,pid,tid,pFilter,dwTimeout,ppSectionList) \ - (This)->lpVtbl -> GetTable(This,pid,tid,pFilter,dwTimeout,ppSectionList) - -#define IMpeg2Data_GetStreamOfSections(This,pid,tid,pFilter,hDataReadyEvent,ppMpegStream) \ - (This)->lpVtbl -> GetStreamOfSections(This,pid,tid,pFilter,hDataReadyEvent,ppMpegStream) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMpeg2Data_GetSection_Proxy( - IMpeg2Data * This, - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ DWORD dwTimeout, - /* [out] */ ISectionList **ppSectionList); - - -void __RPC_STUB IMpeg2Data_GetSection_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMpeg2Data_GetTable_Proxy( - IMpeg2Data * This, - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ DWORD dwTimeout, - /* [out] */ ISectionList **ppSectionList); - - -void __RPC_STUB IMpeg2Data_GetTable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMpeg2Data_GetStreamOfSections_Proxy( - IMpeg2Data * This, - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ HANDLE hDataReadyEvent, - /* [out] */ IMpeg2Stream **ppMpegStream); - - -void __RPC_STUB IMpeg2Data_GetStreamOfSections_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMpeg2Data_INTERFACE_DEFINED__ */ - - -#ifndef __ISectionList_INTERFACE_DEFINED__ -#define __ISectionList_INTERFACE_DEFINED__ - -/* interface ISectionList */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_ISectionList; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("AFEC1EB5-2A64-46c6-BF4B-AE3CCB6AFDB0") - ISectionList : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Initialize( - /* [in] */ MPEG_REQUEST_TYPE requestType, - /* [in] */ IMpeg2Data *pMpeg2Data, - /* [in] */ PMPEG_CONTEXT pContext, - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ DWORD timeout, - /* [in] */ HANDLE hDoneEvent) = 0; - - virtual HRESULT STDMETHODCALLTYPE InitializeWithRawSections( - /* [in] */ PMPEG_PACKET_LIST pmplSections) = 0; - - virtual HRESULT STDMETHODCALLTYPE CancelPendingRequest( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNumberOfSections( - /* [out] */ WORD *pCount) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSectionData( - /* [in] */ WORD sectionNumber, - /* [out] */ DWORD *pdwRawPacketLength, - /* [out] */ PSECTION *ppSection) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetProgramIdentifier( - PID *pPid) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTableIdentifier( - TID *pTableId) = 0; - - }; - -#else /* C style interface */ - - typedef struct ISectionListVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ISectionList * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ISectionList * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ISectionList * This); - - HRESULT ( STDMETHODCALLTYPE *Initialize )( - ISectionList * This, - /* [in] */ MPEG_REQUEST_TYPE requestType, - /* [in] */ IMpeg2Data *pMpeg2Data, - /* [in] */ PMPEG_CONTEXT pContext, - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ DWORD timeout, - /* [in] */ HANDLE hDoneEvent); - - HRESULT ( STDMETHODCALLTYPE *InitializeWithRawSections )( - ISectionList * This, - /* [in] */ PMPEG_PACKET_LIST pmplSections); - - HRESULT ( STDMETHODCALLTYPE *CancelPendingRequest )( - ISectionList * This); - - HRESULT ( STDMETHODCALLTYPE *GetNumberOfSections )( - ISectionList * This, - /* [out] */ WORD *pCount); - - HRESULT ( STDMETHODCALLTYPE *GetSectionData )( - ISectionList * This, - /* [in] */ WORD sectionNumber, - /* [out] */ DWORD *pdwRawPacketLength, - /* [out] */ PSECTION *ppSection); - - HRESULT ( STDMETHODCALLTYPE *GetProgramIdentifier )( - ISectionList * This, - PID *pPid); - - HRESULT ( STDMETHODCALLTYPE *GetTableIdentifier )( - ISectionList * This, - TID *pTableId); - - END_INTERFACE - } ISectionListVtbl; - - interface ISectionList - { - CONST_VTBL struct ISectionListVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ISectionList_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ISectionList_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ISectionList_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ISectionList_Initialize(This,requestType,pMpeg2Data,pContext,pid,tid,pFilter,timeout,hDoneEvent) \ - (This)->lpVtbl -> Initialize(This,requestType,pMpeg2Data,pContext,pid,tid,pFilter,timeout,hDoneEvent) - -#define ISectionList_InitializeWithRawSections(This,pmplSections) \ - (This)->lpVtbl -> InitializeWithRawSections(This,pmplSections) - -#define ISectionList_CancelPendingRequest(This) \ - (This)->lpVtbl -> CancelPendingRequest(This) - -#define ISectionList_GetNumberOfSections(This,pCount) \ - (This)->lpVtbl -> GetNumberOfSections(This,pCount) - -#define ISectionList_GetSectionData(This,sectionNumber,pdwRawPacketLength,ppSection) \ - (This)->lpVtbl -> GetSectionData(This,sectionNumber,pdwRawPacketLength,ppSection) - -#define ISectionList_GetProgramIdentifier(This,pPid) \ - (This)->lpVtbl -> GetProgramIdentifier(This,pPid) - -#define ISectionList_GetTableIdentifier(This,pTableId) \ - (This)->lpVtbl -> GetTableIdentifier(This,pTableId) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE ISectionList_Initialize_Proxy( - ISectionList * This, - /* [in] */ MPEG_REQUEST_TYPE requestType, - /* [in] */ IMpeg2Data *pMpeg2Data, - /* [in] */ PMPEG_CONTEXT pContext, - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ DWORD timeout, - /* [in] */ HANDLE hDoneEvent); - - -void __RPC_STUB ISectionList_Initialize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISectionList_InitializeWithRawSections_Proxy( - ISectionList * This, - /* [in] */ PMPEG_PACKET_LIST pmplSections); - - -void __RPC_STUB ISectionList_InitializeWithRawSections_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISectionList_CancelPendingRequest_Proxy( - ISectionList * This); - - -void __RPC_STUB ISectionList_CancelPendingRequest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISectionList_GetNumberOfSections_Proxy( - ISectionList * This, - /* [out] */ WORD *pCount); - - -void __RPC_STUB ISectionList_GetNumberOfSections_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISectionList_GetSectionData_Proxy( - ISectionList * This, - /* [in] */ WORD sectionNumber, - /* [out] */ DWORD *pdwRawPacketLength, - /* [out] */ PSECTION *ppSection); - - -void __RPC_STUB ISectionList_GetSectionData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISectionList_GetProgramIdentifier_Proxy( - ISectionList * This, - PID *pPid); - - -void __RPC_STUB ISectionList_GetProgramIdentifier_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISectionList_GetTableIdentifier_Proxy( - ISectionList * This, - TID *pTableId); - - -void __RPC_STUB ISectionList_GetTableIdentifier_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ISectionList_INTERFACE_DEFINED__ */ - - -#ifndef __IMpeg2Stream_INTERFACE_DEFINED__ -#define __IMpeg2Stream_INTERFACE_DEFINED__ - -/* interface IMpeg2Stream */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IMpeg2Stream; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("400CC286-32A0-4ce4-9041-39571125A635") - IMpeg2Stream : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Initialize( - /* [in] */ MPEG_REQUEST_TYPE requestType, - /* [in] */ IMpeg2Data *pMpeg2Data, - /* [in] */ PMPEG_CONTEXT pContext, - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ HANDLE hDataReadyEvent) = 0; - - virtual HRESULT STDMETHODCALLTYPE SupplyDataBuffer( - /* [in] */ PMPEG_STREAM_BUFFER pStreamBuffer) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMpeg2StreamVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMpeg2Stream * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMpeg2Stream * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMpeg2Stream * This); - - HRESULT ( STDMETHODCALLTYPE *Initialize )( - IMpeg2Stream * This, - /* [in] */ MPEG_REQUEST_TYPE requestType, - /* [in] */ IMpeg2Data *pMpeg2Data, - /* [in] */ PMPEG_CONTEXT pContext, - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ HANDLE hDataReadyEvent); - - HRESULT ( STDMETHODCALLTYPE *SupplyDataBuffer )( - IMpeg2Stream * This, - /* [in] */ PMPEG_STREAM_BUFFER pStreamBuffer); - - END_INTERFACE - } IMpeg2StreamVtbl; - - interface IMpeg2Stream - { - CONST_VTBL struct IMpeg2StreamVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMpeg2Stream_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMpeg2Stream_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMpeg2Stream_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMpeg2Stream_Initialize(This,requestType,pMpeg2Data,pContext,pid,tid,pFilter,hDataReadyEvent) \ - (This)->lpVtbl -> Initialize(This,requestType,pMpeg2Data,pContext,pid,tid,pFilter,hDataReadyEvent) - -#define IMpeg2Stream_SupplyDataBuffer(This,pStreamBuffer) \ - (This)->lpVtbl -> SupplyDataBuffer(This,pStreamBuffer) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMpeg2Stream_Initialize_Proxy( - IMpeg2Stream * This, - /* [in] */ MPEG_REQUEST_TYPE requestType, - /* [in] */ IMpeg2Data *pMpeg2Data, - /* [in] */ PMPEG_CONTEXT pContext, - /* [in] */ PID pid, - /* [in] */ TID tid, - /* [in] */ PMPEG2_FILTER pFilter, - /* [in] */ HANDLE hDataReadyEvent); - - -void __RPC_STUB IMpeg2Stream_Initialize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMpeg2Stream_SupplyDataBuffer_Proxy( - IMpeg2Stream * This, - /* [in] */ PMPEG_STREAM_BUFFER pStreamBuffer); - - -void __RPC_STUB IMpeg2Stream_SupplyDataBuffer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMpeg2Stream_INTERFACE_DEFINED__ */ - - -EXTERN_C const CLSID CLSID_SectionList; - -#ifdef __cplusplus - -class DECLSPEC_UUID("73DA5D04-4347-45d3-A9DC-FAE9DDBE558D") -SectionList; -#endif - -EXTERN_C const CLSID CLSID_Mpeg2Stream; - -#ifdef __cplusplus - -class DECLSPEC_UUID("F91D96C7-8509-4d0b-AB26-A0DD10904BB7") -Mpeg2Stream; -#endif - -EXTERN_C const CLSID CLSID_Mpeg2Data; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C666E115-BB62-4027-A113-82D643FE2D99") -Mpeg2Data; -#endif -#endif /* __Mpeg2DataLib_LIBRARY_DEFINED__ */ - -/* interface __MIDL_itf_mpeg2data_0432 */ -/* [local] */ - - -#pragma pack(pop) - - -extern RPC_IF_HANDLE __MIDL_itf_mpeg2data_0432_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_mpeg2data_0432_v0_0_s_ifspec; - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/mpegtype.h b/sdk/dx8sdk/Include/mpegtype.h deleted file mode 100644 index 4e79fcb0..00000000 --- a/sdk/dx8sdk/Include/mpegtype.h +++ /dev/null @@ -1,119 +0,0 @@ -//------------------------------------------------------------------------------ -// File: MPEGType.h -// -// Desc: MPEG system stream compound type definition -// -// Copyright (c) 1996-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef __MPEGTYPE__ -#define __MPEGTYPE__ - -#ifdef __cplusplus -extern "C" { -#endif // __cplusplus - -// -// AM_MPEGSYSTEMTYPE defines the format block contents for -// data of type MEDIATYPE_MPEG1System when the format -// block GUID is FORMAT_MPEG1System -// -// The format block consists of elements of type -// AM_MPEGSYSTEMTYPE up to the length of the format block -// Each format block is 8-byte aligned from the start of -// the format block -// - -typedef struct tagAM_MPEGSTREAMTYPE -{ - DWORD dwStreamId; // Stream id of stream to process - DWORD dwReserved; // 8-byte alignment - AM_MEDIA_TYPE mt; // Type for substream - pbFormat is NULL - BYTE bFormat[1]; // Format data -} AM_MPEGSTREAMTYPE; - -typedef struct tagAM_MPEGSYSTEMTYPE -{ - DWORD dwBitRate; // Bits per second - DWORD cStreams; // Number of streams - AM_MPEGSTREAMTYPE Streams[1]; -} AM_MPEGSYSTEMTYPE; - -// -// Helper macros for AM_MPEGSTREAMTYPE -// -#define AM_MPEGSTREAMTYPE_ELEMENTLENGTH(pStreamType) \ - FIELD_OFFSET(AM_MPEGSTREAMTYPE, bFormat[(pStreamType)->mt.cbFormat]) -#define AM_MPEGSTREAMTYPE_NEXT(pStreamType) \ - ((AM_MPEGSTREAMTYPE *)((PBYTE)(pStreamType) + \ - ((AM_MPEGSTREAMTYPE_ELEMENTLENGTH(pStreamType) + 7) & ~7))) - -// -// IMpegAudioDecoder -// - -// Values for DualMode -#define AM_MPEG_AUDIO_DUAL_MERGE 0 -#define AM_MPEG_AUDIO_DUAL_LEFT 1 -#define AM_MPEG_AUDIO_DUAL_RIGHT 2 - -DECLARE_INTERFACE_(IMpegAudioDecoder, IUnknown) { - - STDMETHOD(get_FrequencyDivider) (THIS_ - unsigned long *pDivider /* [out] */ - ) PURE; - - STDMETHOD(put_FrequencyDivider) (THIS_ - unsigned long Divider /* [in] */ - ) PURE; - - STDMETHOD(get_DecoderAccuracy) (THIS_ - unsigned long *pAccuracy /* [out] */ - ) PURE; - - STDMETHOD(put_DecoderAccuracy) (THIS_ - unsigned long Accuracy /* [in] */ - ) PURE; - - STDMETHOD(get_Stereo) (THIS_ - unsigned long *pStereo /* [out] */ - ) PURE; - - STDMETHOD(put_Stereo) (THIS_ - unsigned long Stereo /* [in] */ - ) PURE; - - STDMETHOD(get_DecoderWordSize) (THIS_ - unsigned long *pWordSize /* [out] */ - ) PURE; - - STDMETHOD(put_DecoderWordSize) (THIS_ - unsigned long WordSize /* [in] */ - ) PURE; - - STDMETHOD(get_IntegerDecode) (THIS_ - unsigned long *pIntDecode /* [out] */ - ) PURE; - - STDMETHOD(put_IntegerDecode) (THIS_ - unsigned long IntDecode /* [in] */ - ) PURE; - - STDMETHOD(get_DualMode) (THIS_ - unsigned long *pIntDecode /* [out] */ - ) PURE; - - STDMETHOD(put_DualMode) (THIS_ - unsigned long IntDecode /* [in] */ - ) PURE; - - STDMETHOD(get_AudioFormat) (THIS_ - MPEG1WAVEFORMAT *lpFmt /* [out] */ - ) PURE; -}; - -#ifdef __cplusplus -} -#endif // __cplusplus -#endif // __MPEGTYPE__ diff --git a/sdk/dx8sdk/Include/multimon.h b/sdk/dx8sdk/Include/multimon.h deleted file mode 100644 index 88e2862a..00000000 --- a/sdk/dx8sdk/Include/multimon.h +++ /dev/null @@ -1,484 +0,0 @@ -//============================================================================= -// -// multimon.h -- Stub module that fakes multiple monitor apis on Win32 OSes -// without them. -// -// By using this header your code will get back default values from -// GetSystemMetrics() for new metrics, and the new multimonitor APIs -// will act like only one display is present on a Win32 OS without -// multimonitor APIs. -// -// Exactly one source must include this with COMPILE_MULTIMON_STUBS defined. -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -//============================================================================= - -#ifdef __cplusplus -extern "C" { // Assume C declarations for C++ -#endif // __cplusplus - -// -// If we are building with Win95/NT4 headers, we need to declare -// the multimonitor-related metrics and APIs ourselves. -// -#ifndef SM_CMONITORS - -#define SM_XVIRTUALSCREEN 76 -#define SM_YVIRTUALSCREEN 77 -#define SM_CXVIRTUALSCREEN 78 -#define SM_CYVIRTUALSCREEN 79 -#define SM_CMONITORS 80 -#define SM_SAMEDISPLAYFORMAT 81 - -// HMONITOR is already declared if WINVER >= 0x0500 in windef.h -// This is for components built with an older version number. -// -#if !defined(HMONITOR_DECLARED) && (WINVER < 0x0500) -DECLARE_HANDLE(HMONITOR); -#define HMONITOR_DECLARED -#endif - -#define MONITOR_DEFAULTTONULL 0x00000000 -#define MONITOR_DEFAULTTOPRIMARY 0x00000001 -#define MONITOR_DEFAULTTONEAREST 0x00000002 - -#define MONITORINFOF_PRIMARY 0x00000001 - -typedef struct tagMONITORINFO -{ - DWORD cbSize; - RECT rcMonitor; - RECT rcWork; - DWORD dwFlags; -} MONITORINFO, *LPMONITORINFO; - -#ifndef CCHDEVICENAME -#define CCHDEVICENAME 32 -#endif - -#ifdef __cplusplus -typedef struct tagMONITORINFOEXA : public tagMONITORINFO -{ - CHAR szDevice[CCHDEVICENAME]; -} MONITORINFOEXA, *LPMONITORINFOEXA; -typedef struct tagMONITORINFOEXW : public tagMONITORINFO -{ - WCHAR szDevice[CCHDEVICENAME]; -} MONITORINFOEXW, *LPMONITORINFOEXW; -#ifdef UNICODE -typedef MONITORINFOEXW MONITORINFOEX; -typedef LPMONITORINFOEXW LPMONITORINFOEX; -#else -typedef MONITORINFOEXA MONITORINFOEX; -typedef LPMONITORINFOEXA LPMONITORINFOEX; -#endif // UNICODE -#else // ndef __cplusplus -typedef struct tagMONITORINFOEXA -{ - MONITORINFO; - CHAR szDevice[CCHDEVICENAME]; -} MONITORINFOEXA, *LPMONITORINFOEXA; -typedef struct tagMONITORINFOEXW -{ - MONITORINFO; - WCHAR szDevice[CCHDEVICENAME]; -} MONITORINFOEXW, *LPMONITORINFOEXW; -#ifdef UNICODE -typedef MONITORINFOEXW MONITORINFOEX; -typedef LPMONITORINFOEXW LPMONITORINFOEX; -#else -typedef MONITORINFOEXA MONITORINFOEX; -typedef LPMONITORINFOEXA LPMONITORINFOEX; -#endif // UNICODE -#endif - -typedef BOOL (CALLBACK* MONITORENUMPROC)(HMONITOR, HDC, LPRECT, LPARAM); - -#ifndef DISPLAY_DEVICE_ATTACHED_TO_DESKTOP -typedef struct _DISPLAY_DEVICEA { - DWORD cb; - CHAR DeviceName[32]; - CHAR DeviceString[128]; - DWORD StateFlags; - CHAR DeviceID[128]; - CHAR DeviceKey[128]; -} DISPLAY_DEVICEA, *PDISPLAY_DEVICEA, *LPDISPLAY_DEVICEA; -typedef struct _DISPLAY_DEVICEW { - DWORD cb; - WCHAR DeviceName[32]; - WCHAR DeviceString[128]; - DWORD StateFlags; - WCHAR DeviceID[128]; - WCHAR DeviceKey[128]; -} DISPLAY_DEVICEW, *PDISPLAY_DEVICEW, *LPDISPLAY_DEVICEW; -#ifdef UNICODE -typedef DISPLAY_DEVICEW DISPLAY_DEVICE; -typedef PDISPLAY_DEVICEW PDISPLAY_DEVICE; -typedef LPDISPLAY_DEVICEW LPDISPLAY_DEVICE; -#else -typedef DISPLAY_DEVICEA DISPLAY_DEVICE; -typedef PDISPLAY_DEVICEA PDISPLAY_DEVICE; -typedef LPDISPLAY_DEVICEA LPDISPLAY_DEVICE; -#endif // UNICODE - -#define DISPLAY_DEVICE_ATTACHED_TO_DESKTOP 0x00000001 -#define DISPLAY_DEVICE_MULTI_DRIVER 0x00000002 -#define DISPLAY_DEVICE_PRIMARY_DEVICE 0x00000004 -#define DISPLAY_DEVICE_MIRRORING_DRIVER 0x00000008 -#define DISPLAY_DEVICE_VGA_COMPATIBLE 0x00000010 -#endif - -#endif // SM_CMONITORS - -#undef GetMonitorInfo -#undef GetSystemMetrics -#undef MonitorFromWindow -#undef MonitorFromRect -#undef MonitorFromPoint -#undef EnumDisplayMonitors -#undef EnumDisplayDevices - -// -// Define COMPILE_MULTIMON_STUBS to compile the stubs; -// otherwise, you get the declarations. -// -#ifdef COMPILE_MULTIMON_STUBS - -//----------------------------------------------------------------------------- -// -// Implement the API stubs. -// -//----------------------------------------------------------------------------- - -#ifndef MULTIMON_FNS_DEFINED - -int (WINAPI* g_pfnGetSystemMetrics)(int) = NULL; -HMONITOR (WINAPI* g_pfnMonitorFromWindow)(HWND, DWORD) = NULL; -HMONITOR (WINAPI* g_pfnMonitorFromRect)(LPCRECT, DWORD) = NULL; -HMONITOR (WINAPI* g_pfnMonitorFromPoint)(POINT, DWORD) = NULL; -BOOL (WINAPI* g_pfnGetMonitorInfo)(HMONITOR, LPMONITORINFO) = NULL; -BOOL (WINAPI* g_pfnEnumDisplayMonitors)(HDC, LPCRECT, MONITORENUMPROC, LPARAM) = NULL; -BOOL (WINAPI* g_pfnEnumDisplayDevices)(PVOID, DWORD, PDISPLAY_DEVICE,DWORD) = NULL; -BOOL g_fMultiMonInitDone = FALSE; -BOOL g_fMultimonPlatformNT = FALSE; - -#endif - -BOOL IsPlatformNT() -{ - OSVERSIONINFOA osvi = {0}; - osvi.dwOSVersionInfoSize = sizeof(osvi); - GetVersionExA((OSVERSIONINFOA*)&osvi); - return (VER_PLATFORM_WIN32_NT == osvi.dwPlatformId); -} - -BOOL InitMultipleMonitorStubs(void) -{ - HMODULE hUser32; - if (g_fMultiMonInitDone) - { - return g_pfnGetMonitorInfo != NULL; - } - - g_fMultimonPlatformNT = IsPlatformNT(); - hUser32 = GetModuleHandle(TEXT("USER32")); - if (hUser32 && - (*(FARPROC*)&g_pfnGetSystemMetrics = GetProcAddress(hUser32,"GetSystemMetrics")) != NULL && - (*(FARPROC*)&g_pfnMonitorFromWindow = GetProcAddress(hUser32,"MonitorFromWindow")) != NULL && - (*(FARPROC*)&g_pfnMonitorFromRect = GetProcAddress(hUser32,"MonitorFromRect")) != NULL && - (*(FARPROC*)&g_pfnMonitorFromPoint = GetProcAddress(hUser32,"MonitorFromPoint")) != NULL && - (*(FARPROC*)&g_pfnEnumDisplayMonitors = GetProcAddress(hUser32,"EnumDisplayMonitors")) != NULL && -#ifdef UNICODE - (*(FARPROC*)&g_pfnEnumDisplayDevices = GetProcAddress(hUser32,"EnumDisplayDevicesW")) != NULL && - (*(FARPROC*)&g_pfnGetMonitorInfo = g_fMultimonPlatformNT ? GetProcAddress(hUser32,"GetMonitorInfoW") : - GetProcAddress(hUser32,"GetMonitorInfoA")) != NULL -#else - (*(FARPROC*)&g_pfnGetMonitorInfo = GetProcAddress(hUser32,"GetMonitorInfoA")) != NULL && - (*(FARPROC*)&g_pfnEnumDisplayDevices = GetProcAddress(hUser32,"EnumDisplayDevicesA")) != NULL -#endif - ) { - g_fMultiMonInitDone = TRUE; - return TRUE; - } - else - { - g_pfnGetSystemMetrics = NULL; - g_pfnMonitorFromWindow = NULL; - g_pfnMonitorFromRect = NULL; - g_pfnMonitorFromPoint = NULL; - g_pfnGetMonitorInfo = NULL; - g_pfnEnumDisplayMonitors = NULL; - g_pfnEnumDisplayDevices = NULL; - - g_fMultiMonInitDone = TRUE; - return FALSE; - } -} - -//----------------------------------------------------------------------------- -// -// fake implementations of Monitor APIs that work with the primary display -// no special parameter validation is made since these run in client code -// -//----------------------------------------------------------------------------- - -int WINAPI -xGetSystemMetrics(int nIndex) -{ - if (InitMultipleMonitorStubs()) - return g_pfnGetSystemMetrics(nIndex); - - switch (nIndex) - { - case SM_CMONITORS: - case SM_SAMEDISPLAYFORMAT: - return 1; - - case SM_XVIRTUALSCREEN: - case SM_YVIRTUALSCREEN: - return 0; - - case SM_CXVIRTUALSCREEN: - nIndex = SM_CXSCREEN; - break; - - case SM_CYVIRTUALSCREEN: - nIndex = SM_CYSCREEN; - break; - } - - return GetSystemMetrics(nIndex); -} - -#define xPRIMARY_MONITOR ((HMONITOR)0x12340042) - -HMONITOR WINAPI -xMonitorFromPoint(POINT ptScreenCoords, DWORD dwFlags) -{ - if (InitMultipleMonitorStubs()) - return g_pfnMonitorFromPoint(ptScreenCoords, dwFlags); - - if ((dwFlags & (MONITOR_DEFAULTTOPRIMARY | MONITOR_DEFAULTTONEAREST)) || - ((ptScreenCoords.x >= 0) && - (ptScreenCoords.x < GetSystemMetrics(SM_CXSCREEN)) && - (ptScreenCoords.y >= 0) && - (ptScreenCoords.y < GetSystemMetrics(SM_CYSCREEN)))) - { - return xPRIMARY_MONITOR; - } - - return NULL; -} - -HMONITOR WINAPI -xMonitorFromRect(LPCRECT lprcScreenCoords, DWORD dwFlags) -{ - if (InitMultipleMonitorStubs()) - return g_pfnMonitorFromRect(lprcScreenCoords, dwFlags); - - if ((dwFlags & (MONITOR_DEFAULTTOPRIMARY | MONITOR_DEFAULTTONEAREST)) || - ((lprcScreenCoords->right > 0) && - (lprcScreenCoords->bottom > 0) && - (lprcScreenCoords->left < GetSystemMetrics(SM_CXSCREEN)) && - (lprcScreenCoords->top < GetSystemMetrics(SM_CYSCREEN)))) - { - return xPRIMARY_MONITOR; - } - - return NULL; -} - -HMONITOR WINAPI -xMonitorFromWindow(HWND hWnd, DWORD dwFlags) -{ - WINDOWPLACEMENT wp; - - if (InitMultipleMonitorStubs()) - return g_pfnMonitorFromWindow(hWnd, dwFlags); - - if (dwFlags & (MONITOR_DEFAULTTOPRIMARY | MONITOR_DEFAULTTONEAREST)) - return xPRIMARY_MONITOR; - - if (IsIconic(hWnd) ? - GetWindowPlacement(hWnd, &wp) : - GetWindowRect(hWnd, &wp.rcNormalPosition)) { - - return xMonitorFromRect(&wp.rcNormalPosition, dwFlags); - } - - return NULL; -} - -BOOL WINAPI -xGetMonitorInfo(HMONITOR hMonitor, LPMONITORINFO lpMonitorInfo) -{ - RECT rcWork; - - if (InitMultipleMonitorStubs()) - { - BOOL f = g_pfnGetMonitorInfo(hMonitor, lpMonitorInfo); -#ifdef UNICODE - if (f && !g_fMultimonPlatformNT && (lpMonitorInfo->cbSize >= sizeof(MONITORINFOEX))) - { - MultiByteToWideChar(CP_ACP, 0, - (LPSTR)((MONITORINFOEX*)lpMonitorInfo)->szDevice, -1, - ((MONITORINFOEX*)lpMonitorInfo)->szDevice, (sizeof(((MONITORINFOEX*)lpMonitorInfo)->szDevice)/sizeof(TCHAR))); - } -#endif - return f; - } - - if ((hMonitor == xPRIMARY_MONITOR) && - lpMonitorInfo && - (lpMonitorInfo->cbSize >= sizeof(MONITORINFO)) && - SystemParametersInfoA(SPI_GETWORKAREA, 0, &rcWork, 0)) - { - lpMonitorInfo->rcMonitor.left = 0; - lpMonitorInfo->rcMonitor.top = 0; - lpMonitorInfo->rcMonitor.right = GetSystemMetrics(SM_CXSCREEN); - lpMonitorInfo->rcMonitor.bottom = GetSystemMetrics(SM_CYSCREEN); - lpMonitorInfo->rcWork = rcWork; - lpMonitorInfo->dwFlags = MONITORINFOF_PRIMARY; - - if (lpMonitorInfo->cbSize >= sizeof(MONITORINFOEX)) - { -#ifdef UNICODE - MultiByteToWideChar(CP_ACP, 0, "DISPLAY", -1, ((MONITORINFOEX*)lpMonitorInfo)->szDevice, (sizeof(((MONITORINFOEX*)lpMonitorInfo)->szDevice)/sizeof(TCHAR))); -#else // UNICODE - lstrcpy(((MONITORINFOEX*)lpMonitorInfo)->szDevice, TEXT("DISPLAY")); -#endif // UNICODE - } - - return TRUE; - } - - return FALSE; -} - -BOOL WINAPI -xEnumDisplayMonitors( - HDC hdcOptionalForPainting, - LPCRECT lprcEnumMonitorsThatIntersect, - MONITORENUMPROC lpfnEnumProc, - LPARAM dwData) -{ - RECT rcLimit; - - if (InitMultipleMonitorStubs()) { - return g_pfnEnumDisplayMonitors( - hdcOptionalForPainting, - lprcEnumMonitorsThatIntersect, - lpfnEnumProc, - dwData); - } - - if (!lpfnEnumProc) - return FALSE; - - rcLimit.left = 0; - rcLimit.top = 0; - rcLimit.right = GetSystemMetrics(SM_CXSCREEN); - rcLimit.bottom = GetSystemMetrics(SM_CYSCREEN); - - if (hdcOptionalForPainting) - { - RECT rcClip; - POINT ptOrg; - - switch (GetClipBox(hdcOptionalForPainting, &rcClip)) - { - default: - if (!GetDCOrgEx(hdcOptionalForPainting, &ptOrg)) - return FALSE; - - OffsetRect(&rcLimit, -ptOrg.x, -ptOrg.y); - if (IntersectRect(&rcLimit, &rcLimit, &rcClip) && - (!lprcEnumMonitorsThatIntersect || - IntersectRect(&rcLimit, &rcLimit, lprcEnumMonitorsThatIntersect))) { - - break; - } - //fall thru - case NULLREGION: - return TRUE; - case ERROR: - return FALSE; - } - } else { - if ( lprcEnumMonitorsThatIntersect && - !IntersectRect(&rcLimit, &rcLimit, lprcEnumMonitorsThatIntersect)) { - - return TRUE; - } - } - - return lpfnEnumProc( - xPRIMARY_MONITOR, - hdcOptionalForPainting, - &rcLimit, - dwData); -} - -BOOL WINAPI -xEnumDisplayDevices( - PVOID Unused, - DWORD iDevNum, - PDISPLAY_DEVICE lpDisplayDevice, - DWORD dwFlags) -{ - if (InitMultipleMonitorStubs()) - return g_pfnEnumDisplayDevices(Unused, iDevNum, lpDisplayDevice, dwFlags); - - if (Unused != NULL) - return FALSE; - - if (iDevNum != 0) - return FALSE; - - if (lpDisplayDevice == NULL || lpDisplayDevice->cb < sizeof(DISPLAY_DEVICE)) - return FALSE; - -#ifdef UNICODE - MultiByteToWideChar(CP_ACP, 0, "DISPLAY", -1, lpDisplayDevice->DeviceName, (sizeof(lpDisplayDevice->DeviceName)/sizeof(TCHAR))); - MultiByteToWideChar(CP_ACP, 0, "DISPLAY", -1, lpDisplayDevice->DeviceString, (sizeof(lpDisplayDevice->DeviceName)/sizeof(TCHAR))); -#else // UNICODE - lstrcpy((LPTSTR)lpDisplayDevice->DeviceName, TEXT("DISPLAY")); - lstrcpy((LPTSTR)lpDisplayDevice->DeviceString, TEXT("DISPLAY")); -#endif // UNICODE - - lpDisplayDevice->StateFlags = DISPLAY_DEVICE_ATTACHED_TO_DESKTOP | DISPLAY_DEVICE_PRIMARY_DEVICE; - - return TRUE; -} - -#undef xPRIMARY_MONITOR -#undef COMPILE_MULTIMON_STUBS - -#else // COMPILE_MULTIMON_STUBS - -extern int WINAPI xGetSystemMetrics(int); -extern HMONITOR WINAPI xMonitorFromWindow(HWND, DWORD); -extern HMONITOR WINAPI xMonitorFromRect(LPCRECT, DWORD); -extern HMONITOR WINAPI xMonitorFromPoint(POINT, DWORD); -extern BOOL WINAPI xGetMonitorInfo(HMONITOR, LPMONITORINFO); -extern BOOL WINAPI xEnumDisplayMonitors(HDC, LPCRECT, MONITORENUMPROC, LPARAM); -extern BOOL WINAPI xEnumDisplayDevices(PVOID, DWORD, PDISPLAY_DEVICE, DWORD); - -#endif // COMPILE_MULTIMON_STUBS - -// -// build defines that replace the regular APIs with our versions -// -#define GetSystemMetrics xGetSystemMetrics -#define MonitorFromWindow xMonitorFromWindow -#define MonitorFromRect xMonitorFromRect -#define MonitorFromPoint xMonitorFromPoint -#define GetMonitorInfo xGetMonitorInfo -#define EnumDisplayMonitors xEnumDisplayMonitors -#define EnumDisplayDevices xEnumDisplayDevices - -#ifdef __cplusplus -} -#endif // __cplusplus - diff --git a/sdk/dx8sdk/Include/playlist.h b/sdk/dx8sdk/Include/playlist.h deleted file mode 100644 index 1a796f3a..00000000 --- a/sdk/dx8sdk/Include/playlist.h +++ /dev/null @@ -1,849 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 5.03.0279 */ -/* at Sat Jul 31 00:39:47 1999 - */ -/* Compiler settings for playlist.idl: - Oicf (OptLev=i2), W1, Zp8, env=Win32 (32b run), ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __playlist_h__ -#define __playlist_h__ - -/* Forward Declarations */ - -#ifndef __IAMPlayListItem_FWD_DEFINED__ -#define __IAMPlayListItem_FWD_DEFINED__ -typedef interface IAMPlayListItem IAMPlayListItem; -#endif /* __IAMPlayListItem_FWD_DEFINED__ */ - - -#ifndef __IAMPlayList_FWD_DEFINED__ -#define __IAMPlayList_FWD_DEFINED__ -typedef interface IAMPlayList IAMPlayList; -#endif /* __IAMPlayList_FWD_DEFINED__ */ - - -#ifndef __ISpecifyParticularPages_FWD_DEFINED__ -#define __ISpecifyParticularPages_FWD_DEFINED__ -typedef interface ISpecifyParticularPages ISpecifyParticularPages; -#endif /* __ISpecifyParticularPages_FWD_DEFINED__ */ - - -#ifndef __IAMRebuild_FWD_DEFINED__ -#define __IAMRebuild_FWD_DEFINED__ -typedef interface IAMRebuild IAMRebuild; -#endif /* __IAMRebuild_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "unknwn.h" -#include "strmif.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void __RPC_FAR * ); - -/* interface __MIDL_itf_playlist_0000 */ -/* [local] */ - - -enum AMPlayListItemFlags - { AMPLAYLISTITEM_CANSKIP = 0x1, - AMPLAYLISTITEM_CANBIND = 0x2 - }; - - -extern RPC_IF_HANDLE __MIDL_itf_playlist_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_playlist_0000_v0_0_s_ifspec; - -#ifndef __IAMPlayListItem_INTERFACE_DEFINED__ -#define __IAMPlayListItem_INTERFACE_DEFINED__ - -/* interface IAMPlayListItem */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMPlayListItem; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868ff-0ad4-11ce-b03a-0020af0ba770") - IAMPlayListItem : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetFlags( - /* [out] */ DWORD __RPC_FAR *pdwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourceCount( - /* [out] */ DWORD __RPC_FAR *pdwSources) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourceURL( - /* [in] */ DWORD dwSourceIndex, - /* [out] */ BSTR __RPC_FAR *pbstrURL) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourceStart( - /* [in] */ DWORD dwSourceIndex, - /* [out] */ REFERENCE_TIME __RPC_FAR *prtStart) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourceDuration( - /* [in] */ DWORD dwSourceIndex, - /* [out] */ REFERENCE_TIME __RPC_FAR *prtDuration) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourceStartMarker( - /* [in] */ DWORD dwSourceIndex, - /* [out] */ DWORD __RPC_FAR *pdwMarker) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourceEndMarker( - /* [in] */ DWORD dwSourceIndex, - /* [out] */ DWORD __RPC_FAR *pdwMarker) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourceStartMarkerName( - /* [in] */ DWORD dwSourceIndex, - /* [out] */ BSTR __RPC_FAR *pbstrStartMarker) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourceEndMarkerName( - /* [in] */ DWORD dwSourceIndex, - /* [out] */ BSTR __RPC_FAR *pbstrEndMarker) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetLinkURL( - /* [out] */ BSTR __RPC_FAR *pbstrURL) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetScanDuration( - /* [in] */ DWORD dwSourceIndex, - /* [out] */ REFERENCE_TIME __RPC_FAR *prtScanDuration) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMPlayListItemVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject); - - ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( - IAMPlayListItem __RPC_FAR * This); - - ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( - IAMPlayListItem __RPC_FAR * This); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetFlags )( - IAMPlayListItem __RPC_FAR * This, - /* [out] */ DWORD __RPC_FAR *pdwFlags); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetSourceCount )( - IAMPlayListItem __RPC_FAR * This, - /* [out] */ DWORD __RPC_FAR *pdwSources); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetSourceURL )( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ BSTR __RPC_FAR *pbstrURL); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetSourceStart )( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ REFERENCE_TIME __RPC_FAR *prtStart); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetSourceDuration )( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ REFERENCE_TIME __RPC_FAR *prtDuration); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetSourceStartMarker )( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ DWORD __RPC_FAR *pdwMarker); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetSourceEndMarker )( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ DWORD __RPC_FAR *pdwMarker); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetSourceStartMarkerName )( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ BSTR __RPC_FAR *pbstrStartMarker); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetSourceEndMarkerName )( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ BSTR __RPC_FAR *pbstrEndMarker); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetLinkURL )( - IAMPlayListItem __RPC_FAR * This, - /* [out] */ BSTR __RPC_FAR *pbstrURL); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetScanDuration )( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ REFERENCE_TIME __RPC_FAR *prtScanDuration); - - END_INTERFACE - } IAMPlayListItemVtbl; - - interface IAMPlayListItem - { - CONST_VTBL struct IAMPlayListItemVtbl __RPC_FAR *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMPlayListItem_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMPlayListItem_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMPlayListItem_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMPlayListItem_GetFlags(This,pdwFlags) \ - (This)->lpVtbl -> GetFlags(This,pdwFlags) - -#define IAMPlayListItem_GetSourceCount(This,pdwSources) \ - (This)->lpVtbl -> GetSourceCount(This,pdwSources) - -#define IAMPlayListItem_GetSourceURL(This,dwSourceIndex,pbstrURL) \ - (This)->lpVtbl -> GetSourceURL(This,dwSourceIndex,pbstrURL) - -#define IAMPlayListItem_GetSourceStart(This,dwSourceIndex,prtStart) \ - (This)->lpVtbl -> GetSourceStart(This,dwSourceIndex,prtStart) - -#define IAMPlayListItem_GetSourceDuration(This,dwSourceIndex,prtDuration) \ - (This)->lpVtbl -> GetSourceDuration(This,dwSourceIndex,prtDuration) - -#define IAMPlayListItem_GetSourceStartMarker(This,dwSourceIndex,pdwMarker) \ - (This)->lpVtbl -> GetSourceStartMarker(This,dwSourceIndex,pdwMarker) - -#define IAMPlayListItem_GetSourceEndMarker(This,dwSourceIndex,pdwMarker) \ - (This)->lpVtbl -> GetSourceEndMarker(This,dwSourceIndex,pdwMarker) - -#define IAMPlayListItem_GetSourceStartMarkerName(This,dwSourceIndex,pbstrStartMarker) \ - (This)->lpVtbl -> GetSourceStartMarkerName(This,dwSourceIndex,pbstrStartMarker) - -#define IAMPlayListItem_GetSourceEndMarkerName(This,dwSourceIndex,pbstrEndMarker) \ - (This)->lpVtbl -> GetSourceEndMarkerName(This,dwSourceIndex,pbstrEndMarker) - -#define IAMPlayListItem_GetLinkURL(This,pbstrURL) \ - (This)->lpVtbl -> GetLinkURL(This,pbstrURL) - -#define IAMPlayListItem_GetScanDuration(This,dwSourceIndex,prtScanDuration) \ - (This)->lpVtbl -> GetScanDuration(This,dwSourceIndex,prtScanDuration) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMPlayListItem_GetFlags_Proxy( - IAMPlayListItem __RPC_FAR * This, - /* [out] */ DWORD __RPC_FAR *pdwFlags); - - -void __RPC_STUB IAMPlayListItem_GetFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayListItem_GetSourceCount_Proxy( - IAMPlayListItem __RPC_FAR * This, - /* [out] */ DWORD __RPC_FAR *pdwSources); - - -void __RPC_STUB IAMPlayListItem_GetSourceCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayListItem_GetSourceURL_Proxy( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ BSTR __RPC_FAR *pbstrURL); - - -void __RPC_STUB IAMPlayListItem_GetSourceURL_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayListItem_GetSourceStart_Proxy( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ REFERENCE_TIME __RPC_FAR *prtStart); - - -void __RPC_STUB IAMPlayListItem_GetSourceStart_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayListItem_GetSourceDuration_Proxy( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ REFERENCE_TIME __RPC_FAR *prtDuration); - - -void __RPC_STUB IAMPlayListItem_GetSourceDuration_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayListItem_GetSourceStartMarker_Proxy( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ DWORD __RPC_FAR *pdwMarker); - - -void __RPC_STUB IAMPlayListItem_GetSourceStartMarker_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayListItem_GetSourceEndMarker_Proxy( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ DWORD __RPC_FAR *pdwMarker); - - -void __RPC_STUB IAMPlayListItem_GetSourceEndMarker_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayListItem_GetSourceStartMarkerName_Proxy( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ BSTR __RPC_FAR *pbstrStartMarker); - - -void __RPC_STUB IAMPlayListItem_GetSourceStartMarkerName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayListItem_GetSourceEndMarkerName_Proxy( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ BSTR __RPC_FAR *pbstrEndMarker); - - -void __RPC_STUB IAMPlayListItem_GetSourceEndMarkerName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayListItem_GetLinkURL_Proxy( - IAMPlayListItem __RPC_FAR * This, - /* [out] */ BSTR __RPC_FAR *pbstrURL); - - -void __RPC_STUB IAMPlayListItem_GetLinkURL_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayListItem_GetScanDuration_Proxy( - IAMPlayListItem __RPC_FAR * This, - /* [in] */ DWORD dwSourceIndex, - /* [out] */ REFERENCE_TIME __RPC_FAR *prtScanDuration); - - -void __RPC_STUB IAMPlayListItem_GetScanDuration_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMPlayListItem_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_playlist_0348 */ -/* [local] */ - - -enum AMPlayListFlags - { AMPLAYLIST_STARTINSCANMODE = 0x1, - AMPLAYLIST_FORCEBANNER = 0x2 - }; - -enum AMPlayListEventFlags - { AMPLAYLISTEVENT_RESUME = 0, - AMPLAYLISTEVENT_BREAK = 0x1, - AMPLAYLISTEVENT_NEXT = 0x2, - AMPLAYLISTEVENT_MASK = 0xf, - AMPLAYLISTEVENT_REFRESH = 0x10 - }; - - -extern RPC_IF_HANDLE __MIDL_itf_playlist_0348_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_playlist_0348_v0_0_s_ifspec; - -#ifndef __IAMPlayList_INTERFACE_DEFINED__ -#define __IAMPlayList_INTERFACE_DEFINED__ - -/* interface IAMPlayList */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMPlayList; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868fe-0ad4-11ce-b03a-0020af0ba770") - IAMPlayList : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetFlags( - /* [out] */ DWORD __RPC_FAR *pdwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetItemCount( - /* [out] */ DWORD __RPC_FAR *pdwItems) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetItem( - /* [in] */ DWORD dwItemIndex, - /* [out] */ IAMPlayListItem __RPC_FAR *__RPC_FAR *ppItem) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNamedEvent( - /* [in] */ WCHAR __RPC_FAR *pwszEventName, - /* [in] */ DWORD dwItemIndex, - /* [out] */ IAMPlayListItem __RPC_FAR *__RPC_FAR *ppItem, - /* [out] */ DWORD __RPC_FAR *pdwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRepeatInfo( - /* [out] */ DWORD __RPC_FAR *pdwRepeatCount, - /* [out] */ DWORD __RPC_FAR *pdwRepeatStart, - /* [out] */ DWORD __RPC_FAR *pdwRepeatEnd) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMPlayListVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( - IAMPlayList __RPC_FAR * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject); - - ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( - IAMPlayList __RPC_FAR * This); - - ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( - IAMPlayList __RPC_FAR * This); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetFlags )( - IAMPlayList __RPC_FAR * This, - /* [out] */ DWORD __RPC_FAR *pdwFlags); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetItemCount )( - IAMPlayList __RPC_FAR * This, - /* [out] */ DWORD __RPC_FAR *pdwItems); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetItem )( - IAMPlayList __RPC_FAR * This, - /* [in] */ DWORD dwItemIndex, - /* [out] */ IAMPlayListItem __RPC_FAR *__RPC_FAR *ppItem); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetNamedEvent )( - IAMPlayList __RPC_FAR * This, - /* [in] */ WCHAR __RPC_FAR *pwszEventName, - /* [in] */ DWORD dwItemIndex, - /* [out] */ IAMPlayListItem __RPC_FAR *__RPC_FAR *ppItem, - /* [out] */ DWORD __RPC_FAR *pdwFlags); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetRepeatInfo )( - IAMPlayList __RPC_FAR * This, - /* [out] */ DWORD __RPC_FAR *pdwRepeatCount, - /* [out] */ DWORD __RPC_FAR *pdwRepeatStart, - /* [out] */ DWORD __RPC_FAR *pdwRepeatEnd); - - END_INTERFACE - } IAMPlayListVtbl; - - interface IAMPlayList - { - CONST_VTBL struct IAMPlayListVtbl __RPC_FAR *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMPlayList_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMPlayList_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMPlayList_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMPlayList_GetFlags(This,pdwFlags) \ - (This)->lpVtbl -> GetFlags(This,pdwFlags) - -#define IAMPlayList_GetItemCount(This,pdwItems) \ - (This)->lpVtbl -> GetItemCount(This,pdwItems) - -#define IAMPlayList_GetItem(This,dwItemIndex,ppItem) \ - (This)->lpVtbl -> GetItem(This,dwItemIndex,ppItem) - -#define IAMPlayList_GetNamedEvent(This,pwszEventName,dwItemIndex,ppItem,pdwFlags) \ - (This)->lpVtbl -> GetNamedEvent(This,pwszEventName,dwItemIndex,ppItem,pdwFlags) - -#define IAMPlayList_GetRepeatInfo(This,pdwRepeatCount,pdwRepeatStart,pdwRepeatEnd) \ - (This)->lpVtbl -> GetRepeatInfo(This,pdwRepeatCount,pdwRepeatStart,pdwRepeatEnd) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMPlayList_GetFlags_Proxy( - IAMPlayList __RPC_FAR * This, - /* [out] */ DWORD __RPC_FAR *pdwFlags); - - -void __RPC_STUB IAMPlayList_GetFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayList_GetItemCount_Proxy( - IAMPlayList __RPC_FAR * This, - /* [out] */ DWORD __RPC_FAR *pdwItems); - - -void __RPC_STUB IAMPlayList_GetItemCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayList_GetItem_Proxy( - IAMPlayList __RPC_FAR * This, - /* [in] */ DWORD dwItemIndex, - /* [out] */ IAMPlayListItem __RPC_FAR *__RPC_FAR *ppItem); - - -void __RPC_STUB IAMPlayList_GetItem_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayList_GetNamedEvent_Proxy( - IAMPlayList __RPC_FAR * This, - /* [in] */ WCHAR __RPC_FAR *pwszEventName, - /* [in] */ DWORD dwItemIndex, - /* [out] */ IAMPlayListItem __RPC_FAR *__RPC_FAR *ppItem, - /* [out] */ DWORD __RPC_FAR *pdwFlags); - - -void __RPC_STUB IAMPlayList_GetNamedEvent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPlayList_GetRepeatInfo_Proxy( - IAMPlayList __RPC_FAR * This, - /* [out] */ DWORD __RPC_FAR *pdwRepeatCount, - /* [out] */ DWORD __RPC_FAR *pdwRepeatStart, - /* [out] */ DWORD __RPC_FAR *pdwRepeatEnd); - - -void __RPC_STUB IAMPlayList_GetRepeatInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMPlayList_INTERFACE_DEFINED__ */ - - -#ifndef __ISpecifyParticularPages_INTERFACE_DEFINED__ -#define __ISpecifyParticularPages_INTERFACE_DEFINED__ - -/* interface ISpecifyParticularPages */ -/* [object][helpstring][uuid] */ - - -EXTERN_C const IID IID_ISpecifyParticularPages; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("4C437B91-6E9E-11d1-A704-006097C4E476") - ISpecifyParticularPages : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetPages( - /* [in] */ REFGUID guidWhatPages, - /* [out] */ CAUUID __RPC_FAR *pPages) = 0; - - }; - -#else /* C style interface */ - - typedef struct ISpecifyParticularPagesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( - ISpecifyParticularPages __RPC_FAR * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject); - - ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( - ISpecifyParticularPages __RPC_FAR * This); - - ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( - ISpecifyParticularPages __RPC_FAR * This); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetPages )( - ISpecifyParticularPages __RPC_FAR * This, - /* [in] */ REFGUID guidWhatPages, - /* [out] */ CAUUID __RPC_FAR *pPages); - - END_INTERFACE - } ISpecifyParticularPagesVtbl; - - interface ISpecifyParticularPages - { - CONST_VTBL struct ISpecifyParticularPagesVtbl __RPC_FAR *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ISpecifyParticularPages_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ISpecifyParticularPages_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ISpecifyParticularPages_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ISpecifyParticularPages_GetPages(This,guidWhatPages,pPages) \ - (This)->lpVtbl -> GetPages(This,guidWhatPages,pPages) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE ISpecifyParticularPages_GetPages_Proxy( - ISpecifyParticularPages __RPC_FAR * This, - /* [in] */ REFGUID guidWhatPages, - /* [out] */ CAUUID __RPC_FAR *pPages); - - -void __RPC_STUB ISpecifyParticularPages_GetPages_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ISpecifyParticularPages_INTERFACE_DEFINED__ */ - - -#ifndef __IAMRebuild_INTERFACE_DEFINED__ -#define __IAMRebuild_INTERFACE_DEFINED__ - -/* interface IAMRebuild */ -/* [object][helpstring][uuid][local] */ - - -EXTERN_C const IID IID_IAMRebuild; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("02EF04DD-7580-11d1-BECE-00C04FB6E937") - IAMRebuild : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE RebuildNow( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMRebuildVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( - IAMRebuild __RPC_FAR * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject); - - ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( - IAMRebuild __RPC_FAR * This); - - ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( - IAMRebuild __RPC_FAR * This); - - HRESULT ( STDMETHODCALLTYPE __RPC_FAR *RebuildNow )( - IAMRebuild __RPC_FAR * This); - - END_INTERFACE - } IAMRebuildVtbl; - - interface IAMRebuild - { - CONST_VTBL struct IAMRebuildVtbl __RPC_FAR *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMRebuild_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMRebuild_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMRebuild_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMRebuild_RebuildNow(This) \ - (This)->lpVtbl -> RebuildNow(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMRebuild_RebuildNow_Proxy( - IAMRebuild __RPC_FAR * This); - - -void __RPC_STUB IAMRebuild_RebuildNow_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMRebuild_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_playlist_0351 */ -/* [local] */ - -EXTERN_GUID(IID_IAMPlayListItem,0x56a868ff,0x0ad4,0x11ce,0xb0,0xa3,0x0,0x20,0xaf,0x0b,0xa7,0x70); -EXTERN_GUID(IID_IAMRebuild,0x2ef04dd,0x7580,0x11d1,0xbe,0xce,0x0,0xc0,0x4f,0xb6,0xe9,0x37); -EXTERN_GUID(IID_IAMPlayList,0x56a868fe,0x0ad4,0x11ce,0xb0,0xa3,0x0,0x20,0xaf,0x0b,0xa7,0x70); -EXTERN_GUID(SPECIFYPAGES_STATISTICS,0x4c437b92,0x6e9e,0x11d1,0xa7,0x4,0x0,0x60,0x97,0xc4,0xe4,0x76); -EXTERN_GUID(IID_ISpecifyParticularPages,0x4c437b91,0x6e9e,0x11d1,0xa7,0x4,0x0,0x60,0x97,0xc4,0xe4,0x76); - - -extern RPC_IF_HANDLE __MIDL_itf_playlist_0351_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_playlist_0351_v0_0_s_ifspec; - -/* Additional Prototypes for ALL interfaces */ - -unsigned long __RPC_USER BSTR_UserSize( unsigned long __RPC_FAR *, unsigned long , BSTR __RPC_FAR * ); -unsigned char __RPC_FAR * __RPC_USER BSTR_UserMarshal( unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); -unsigned char __RPC_FAR * __RPC_USER BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); -void __RPC_USER BSTR_UserFree( unsigned long __RPC_FAR *, BSTR __RPC_FAR * ); - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/qedit.h b/sdk/dx8sdk/Include/qedit.h deleted file mode 100644 index 947c8a08..00000000 --- a/sdk/dx8sdk/Include/qedit.h +++ /dev/null @@ -1,10236 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for qedit.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __qedit_h__ -#define __qedit_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IPropertySetter_FWD_DEFINED__ -#define __IPropertySetter_FWD_DEFINED__ -typedef interface IPropertySetter IPropertySetter; -#endif /* __IPropertySetter_FWD_DEFINED__ */ - - -#ifndef __IDxtCompositor_FWD_DEFINED__ -#define __IDxtCompositor_FWD_DEFINED__ -typedef interface IDxtCompositor IDxtCompositor; -#endif /* __IDxtCompositor_FWD_DEFINED__ */ - - -#ifndef __IDxtAlphaSetter_FWD_DEFINED__ -#define __IDxtAlphaSetter_FWD_DEFINED__ -typedef interface IDxtAlphaSetter IDxtAlphaSetter; -#endif /* __IDxtAlphaSetter_FWD_DEFINED__ */ - - -#ifndef __IDxtJpeg_FWD_DEFINED__ -#define __IDxtJpeg_FWD_DEFINED__ -typedef interface IDxtJpeg IDxtJpeg; -#endif /* __IDxtJpeg_FWD_DEFINED__ */ - - -#ifndef __IDxtKey_FWD_DEFINED__ -#define __IDxtKey_FWD_DEFINED__ -typedef interface IDxtKey IDxtKey; -#endif /* __IDxtKey_FWD_DEFINED__ */ - - -#ifndef __IMediaLocator_FWD_DEFINED__ -#define __IMediaLocator_FWD_DEFINED__ -typedef interface IMediaLocator IMediaLocator; -#endif /* __IMediaLocator_FWD_DEFINED__ */ - - -#ifndef __IMediaDet_FWD_DEFINED__ -#define __IMediaDet_FWD_DEFINED__ -typedef interface IMediaDet IMediaDet; -#endif /* __IMediaDet_FWD_DEFINED__ */ - - -#ifndef __IGrfCache_FWD_DEFINED__ -#define __IGrfCache_FWD_DEFINED__ -typedef interface IGrfCache IGrfCache; -#endif /* __IGrfCache_FWD_DEFINED__ */ - - -#ifndef __IRenderEngine_FWD_DEFINED__ -#define __IRenderEngine_FWD_DEFINED__ -typedef interface IRenderEngine IRenderEngine; -#endif /* __IRenderEngine_FWD_DEFINED__ */ - - -#ifndef __IRenderEngine2_FWD_DEFINED__ -#define __IRenderEngine2_FWD_DEFINED__ -typedef interface IRenderEngine2 IRenderEngine2; -#endif /* __IRenderEngine2_FWD_DEFINED__ */ - - -#ifndef __IFindCompressorCB_FWD_DEFINED__ -#define __IFindCompressorCB_FWD_DEFINED__ -typedef interface IFindCompressorCB IFindCompressorCB; -#endif /* __IFindCompressorCB_FWD_DEFINED__ */ - - -#ifndef __ISmartRenderEngine_FWD_DEFINED__ -#define __ISmartRenderEngine_FWD_DEFINED__ -typedef interface ISmartRenderEngine ISmartRenderEngine; -#endif /* __ISmartRenderEngine_FWD_DEFINED__ */ - - -#ifndef __IAMTimelineObj_FWD_DEFINED__ -#define __IAMTimelineObj_FWD_DEFINED__ -typedef interface IAMTimelineObj IAMTimelineObj; -#endif /* __IAMTimelineObj_FWD_DEFINED__ */ - - -#ifndef __IAMTimelineEffectable_FWD_DEFINED__ -#define __IAMTimelineEffectable_FWD_DEFINED__ -typedef interface IAMTimelineEffectable IAMTimelineEffectable; -#endif /* __IAMTimelineEffectable_FWD_DEFINED__ */ - - -#ifndef __IAMTimelineEffect_FWD_DEFINED__ -#define __IAMTimelineEffect_FWD_DEFINED__ -typedef interface IAMTimelineEffect IAMTimelineEffect; -#endif /* __IAMTimelineEffect_FWD_DEFINED__ */ - - -#ifndef __IAMTimelineTransable_FWD_DEFINED__ -#define __IAMTimelineTransable_FWD_DEFINED__ -typedef interface IAMTimelineTransable IAMTimelineTransable; -#endif /* __IAMTimelineTransable_FWD_DEFINED__ */ - - -#ifndef __IAMTimelineSplittable_FWD_DEFINED__ -#define __IAMTimelineSplittable_FWD_DEFINED__ -typedef interface IAMTimelineSplittable IAMTimelineSplittable; -#endif /* __IAMTimelineSplittable_FWD_DEFINED__ */ - - -#ifndef __IAMTimelineTrans_FWD_DEFINED__ -#define __IAMTimelineTrans_FWD_DEFINED__ -typedef interface IAMTimelineTrans IAMTimelineTrans; -#endif /* __IAMTimelineTrans_FWD_DEFINED__ */ - - -#ifndef __IAMTimelineSrc_FWD_DEFINED__ -#define __IAMTimelineSrc_FWD_DEFINED__ -typedef interface IAMTimelineSrc IAMTimelineSrc; -#endif /* __IAMTimelineSrc_FWD_DEFINED__ */ - - -#ifndef __IAMTimelineTrack_FWD_DEFINED__ -#define __IAMTimelineTrack_FWD_DEFINED__ -typedef interface IAMTimelineTrack IAMTimelineTrack; -#endif /* __IAMTimelineTrack_FWD_DEFINED__ */ - - -#ifndef __IAMTimelineVirtualTrack_FWD_DEFINED__ -#define __IAMTimelineVirtualTrack_FWD_DEFINED__ -typedef interface IAMTimelineVirtualTrack IAMTimelineVirtualTrack; -#endif /* __IAMTimelineVirtualTrack_FWD_DEFINED__ */ - - -#ifndef __IAMTimelineComp_FWD_DEFINED__ -#define __IAMTimelineComp_FWD_DEFINED__ -typedef interface IAMTimelineComp IAMTimelineComp; -#endif /* __IAMTimelineComp_FWD_DEFINED__ */ - - -#ifndef __IAMTimelineGroup_FWD_DEFINED__ -#define __IAMTimelineGroup_FWD_DEFINED__ -typedef interface IAMTimelineGroup IAMTimelineGroup; -#endif /* __IAMTimelineGroup_FWD_DEFINED__ */ - - -#ifndef __IAMTimeline_FWD_DEFINED__ -#define __IAMTimeline_FWD_DEFINED__ -typedef interface IAMTimeline IAMTimeline; -#endif /* __IAMTimeline_FWD_DEFINED__ */ - - -#ifndef __IXml2Dex_FWD_DEFINED__ -#define __IXml2Dex_FWD_DEFINED__ -typedef interface IXml2Dex IXml2Dex; -#endif /* __IXml2Dex_FWD_DEFINED__ */ - - -#ifndef __IAMErrorLog_FWD_DEFINED__ -#define __IAMErrorLog_FWD_DEFINED__ -typedef interface IAMErrorLog IAMErrorLog; -#endif /* __IAMErrorLog_FWD_DEFINED__ */ - - -#ifndef __IAMSetErrorLog_FWD_DEFINED__ -#define __IAMSetErrorLog_FWD_DEFINED__ -typedef interface IAMSetErrorLog IAMSetErrorLog; -#endif /* __IAMSetErrorLog_FWD_DEFINED__ */ - - -#ifndef __ISampleGrabberCB_FWD_DEFINED__ -#define __ISampleGrabberCB_FWD_DEFINED__ -typedef interface ISampleGrabberCB ISampleGrabberCB; -#endif /* __ISampleGrabberCB_FWD_DEFINED__ */ - - -#ifndef __ISampleGrabber_FWD_DEFINED__ -#define __ISampleGrabber_FWD_DEFINED__ -typedef interface ISampleGrabber ISampleGrabber; -#endif /* __ISampleGrabber_FWD_DEFINED__ */ - - -#ifndef __IResize_FWD_DEFINED__ -#define __IResize_FWD_DEFINED__ -typedef interface IResize IResize; -#endif /* __IResize_FWD_DEFINED__ */ - - -#ifndef __AMTimeline_FWD_DEFINED__ -#define __AMTimeline_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AMTimeline AMTimeline; -#else -typedef struct AMTimeline AMTimeline; -#endif /* __cplusplus */ - -#endif /* __AMTimeline_FWD_DEFINED__ */ - - -#ifndef __AMTimelineObj_FWD_DEFINED__ -#define __AMTimelineObj_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AMTimelineObj AMTimelineObj; -#else -typedef struct AMTimelineObj AMTimelineObj; -#endif /* __cplusplus */ - -#endif /* __AMTimelineObj_FWD_DEFINED__ */ - - -#ifndef __AMTimelineSrc_FWD_DEFINED__ -#define __AMTimelineSrc_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AMTimelineSrc AMTimelineSrc; -#else -typedef struct AMTimelineSrc AMTimelineSrc; -#endif /* __cplusplus */ - -#endif /* __AMTimelineSrc_FWD_DEFINED__ */ - - -#ifndef __AMTimelineTrack_FWD_DEFINED__ -#define __AMTimelineTrack_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AMTimelineTrack AMTimelineTrack; -#else -typedef struct AMTimelineTrack AMTimelineTrack; -#endif /* __cplusplus */ - -#endif /* __AMTimelineTrack_FWD_DEFINED__ */ - - -#ifndef __AMTimelineComp_FWD_DEFINED__ -#define __AMTimelineComp_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AMTimelineComp AMTimelineComp; -#else -typedef struct AMTimelineComp AMTimelineComp; -#endif /* __cplusplus */ - -#endif /* __AMTimelineComp_FWD_DEFINED__ */ - - -#ifndef __AMTimelineGroup_FWD_DEFINED__ -#define __AMTimelineGroup_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AMTimelineGroup AMTimelineGroup; -#else -typedef struct AMTimelineGroup AMTimelineGroup; -#endif /* __cplusplus */ - -#endif /* __AMTimelineGroup_FWD_DEFINED__ */ - - -#ifndef __AMTimelineTrans_FWD_DEFINED__ -#define __AMTimelineTrans_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AMTimelineTrans AMTimelineTrans; -#else -typedef struct AMTimelineTrans AMTimelineTrans; -#endif /* __cplusplus */ - -#endif /* __AMTimelineTrans_FWD_DEFINED__ */ - - -#ifndef __AMTimelineEffect_FWD_DEFINED__ -#define __AMTimelineEffect_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AMTimelineEffect AMTimelineEffect; -#else -typedef struct AMTimelineEffect AMTimelineEffect; -#endif /* __cplusplus */ - -#endif /* __AMTimelineEffect_FWD_DEFINED__ */ - - -#ifndef __RenderEngine_FWD_DEFINED__ -#define __RenderEngine_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class RenderEngine RenderEngine; -#else -typedef struct RenderEngine RenderEngine; -#endif /* __cplusplus */ - -#endif /* __RenderEngine_FWD_DEFINED__ */ - - -#ifndef __SmartRenderEngine_FWD_DEFINED__ -#define __SmartRenderEngine_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class SmartRenderEngine SmartRenderEngine; -#else -typedef struct SmartRenderEngine SmartRenderEngine; -#endif /* __cplusplus */ - -#endif /* __SmartRenderEngine_FWD_DEFINED__ */ - - -#ifndef __AudMixer_FWD_DEFINED__ -#define __AudMixer_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AudMixer AudMixer; -#else -typedef struct AudMixer AudMixer; -#endif /* __cplusplus */ - -#endif /* __AudMixer_FWD_DEFINED__ */ - - -#ifndef __Xml2Dex_FWD_DEFINED__ -#define __Xml2Dex_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class Xml2Dex Xml2Dex; -#else -typedef struct Xml2Dex Xml2Dex; -#endif /* __cplusplus */ - -#endif /* __Xml2Dex_FWD_DEFINED__ */ - - -#ifndef __MediaLocator_FWD_DEFINED__ -#define __MediaLocator_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MediaLocator MediaLocator; -#else -typedef struct MediaLocator MediaLocator; -#endif /* __cplusplus */ - -#endif /* __MediaLocator_FWD_DEFINED__ */ - - -#ifndef __PropertySetter_FWD_DEFINED__ -#define __PropertySetter_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class PropertySetter PropertySetter; -#else -typedef struct PropertySetter PropertySetter; -#endif /* __cplusplus */ - -#endif /* __PropertySetter_FWD_DEFINED__ */ - - -#ifndef __MediaDet_FWD_DEFINED__ -#define __MediaDet_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MediaDet MediaDet; -#else -typedef struct MediaDet MediaDet; -#endif /* __cplusplus */ - -#endif /* __MediaDet_FWD_DEFINED__ */ - - -#ifndef __SampleGrabber_FWD_DEFINED__ -#define __SampleGrabber_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class SampleGrabber SampleGrabber; -#else -typedef struct SampleGrabber SampleGrabber; -#endif /* __cplusplus */ - -#endif /* __SampleGrabber_FWD_DEFINED__ */ - - -#ifndef __NullRenderer_FWD_DEFINED__ -#define __NullRenderer_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class NullRenderer NullRenderer; -#else -typedef struct NullRenderer NullRenderer; -#endif /* __cplusplus */ - -#endif /* __NullRenderer_FWD_DEFINED__ */ - - -#ifndef __DxtCompositor_FWD_DEFINED__ -#define __DxtCompositor_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DxtCompositor DxtCompositor; -#else -typedef struct DxtCompositor DxtCompositor; -#endif /* __cplusplus */ - -#endif /* __DxtCompositor_FWD_DEFINED__ */ - - -#ifndef __DxtAlphaSetter_FWD_DEFINED__ -#define __DxtAlphaSetter_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DxtAlphaSetter DxtAlphaSetter; -#else -typedef struct DxtAlphaSetter DxtAlphaSetter; -#endif /* __cplusplus */ - -#endif /* __DxtAlphaSetter_FWD_DEFINED__ */ - - -#ifndef __DxtJpeg_FWD_DEFINED__ -#define __DxtJpeg_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DxtJpeg DxtJpeg; -#else -typedef struct DxtJpeg DxtJpeg; -#endif /* __cplusplus */ - -#endif /* __DxtJpeg_FWD_DEFINED__ */ - - -#ifndef __ColorSource_FWD_DEFINED__ -#define __ColorSource_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class ColorSource ColorSource; -#else -typedef struct ColorSource ColorSource; -#endif /* __cplusplus */ - -#endif /* __ColorSource_FWD_DEFINED__ */ - - -#ifndef __DxtKey_FWD_DEFINED__ -#define __DxtKey_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DxtKey DxtKey; -#else -typedef struct DxtKey DxtKey; -#endif /* __cplusplus */ - -#endif /* __DxtKey_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "oaidl.h" -#include "ocidl.h" -#include "dxtrans.h" -#include "amstream.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_qedit_0000 */ -/* [local] */ - - - - - - - - - - -typedef /* [public] */ -enum __MIDL___MIDL_itf_qedit_0000_0001 - { DEXTERF_JUMP = 0, - DEXTERF_INTERPOLATE = DEXTERF_JUMP + 1 - } DEXTERF; - -typedef /* [public][public][public][public] */ struct __MIDL___MIDL_itf_qedit_0000_0002 - { - BSTR Name; - DISPID dispID; - LONG nValues; - } DEXTER_PARAM; - -typedef /* [public][public][public][public] */ struct __MIDL___MIDL_itf_qedit_0000_0003 - { - VARIANT v; - REFERENCE_TIME rt; - DWORD dwInterp; - } DEXTER_VALUE; - - -enum __MIDL___MIDL_itf_qedit_0000_0004 - { DEXTER_AUDIO_JUMP = 0, - DEXTER_AUDIO_INTERPOLATE = DEXTER_AUDIO_JUMP + 1 - } ; -typedef /* [public] */ struct __MIDL___MIDL_itf_qedit_0000_0005 - { - REFERENCE_TIME rtEnd; - double dLevel; - BOOL bMethod; - } DEXTER_AUDIO_VOLUMEENVELOPE; - - -enum __MIDL___MIDL_itf_qedit_0000_0006 - { TIMELINE_INSERT_MODE_INSERT = 1, - TIMELINE_INSERT_MODE_OVERLAY = 2 - } ; -typedef /* [public][public][public][public][public][public][public][public] */ -enum __MIDL___MIDL_itf_qedit_0000_0007 - { TIMELINE_MAJOR_TYPE_COMPOSITE = 1, - TIMELINE_MAJOR_TYPE_TRACK = 2, - TIMELINE_MAJOR_TYPE_SOURCE = 4, - TIMELINE_MAJOR_TYPE_TRANSITION = 8, - TIMELINE_MAJOR_TYPE_EFFECT = 16, - TIMELINE_MAJOR_TYPE_GROUP = 128 - } TIMELINE_MAJOR_TYPE; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_qedit_0000_0008 - { DEXTERF_BOUNDING = -1, - DEXTERF_EXACTLY_AT = 0, - DEXTERF_FORWARDS = 1 - } DEXTERF_TRACK_SEARCH_FLAGS; - -typedef struct _SCompFmt0 - { - long nFormatId; - AM_MEDIA_TYPE MediaType; - } SCompFmt0; - - -enum __MIDL___MIDL_itf_qedit_0000_0009 - { RESIZEF_STRETCH = 0, - RESIZEF_CROP = RESIZEF_STRETCH + 1, - RESIZEF_PRESERVEASPECTRATIO = RESIZEF_CROP + 1, - RESIZEF_PRESERVEASPECTRATIO_NOLETTERBOX = RESIZEF_PRESERVEASPECTRATIO + 1 - } ; - -enum __MIDL___MIDL_itf_qedit_0000_0010 - { CONNECTF_DYNAMIC_NONE = 0, - CONNECTF_DYNAMIC_SOURCES = 0x1, - CONNECTF_DYNAMIC_EFFECTS = 0x2 - } ; - -enum __MIDL___MIDL_itf_qedit_0000_0011 - { SFN_VALIDATEF_CHECK = 0x1, - SFN_VALIDATEF_POPUP = 0x2, - SFN_VALIDATEF_TELLME = 0x4, - SFN_VALIDATEF_REPLACE = 0x8, - SFN_VALIDATEF_USELOCAL = 0x10, - SFN_VALIDATEF_NOFIND = 0x20, - SFN_VALIDATEF_IGNOREMUTED = 0x40, - SFN_VALIDATEF_END = SFN_VALIDATEF_IGNOREMUTED + 1 - } ; - -enum __MIDL___MIDL_itf_qedit_0000_0012 - { DXTKEY_RGB = 0, - DXTKEY_NONRED = DXTKEY_RGB + 1, - DXTKEY_LUMINANCE = DXTKEY_NONRED + 1, - DXTKEY_ALPHA = DXTKEY_LUMINANCE + 1, - DXTKEY_HUE = DXTKEY_ALPHA + 1 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_qedit_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_qedit_0000_v0_0_s_ifspec; - -#ifndef __IPropertySetter_INTERFACE_DEFINED__ -#define __IPropertySetter_INTERFACE_DEFINED__ - -/* interface IPropertySetter */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IPropertySetter; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("AE9472BD-B0C3-11D2-8D24-00A0C9441E20") - IPropertySetter : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE LoadXML( - /* [in] */ IUnknown *pxml) = 0; - - virtual HRESULT STDMETHODCALLTYPE PrintXML( - /* [out] */ char *pszXML, - /* [in] */ int cbXML, - /* [out] */ int *pcbPrinted, - /* [in] */ int indent) = 0; - - virtual HRESULT STDMETHODCALLTYPE CloneProps( - /* [out] */ IPropertySetter **ppSetter, - /* [in] */ REFERENCE_TIME rtStart, - /* [in] */ REFERENCE_TIME rtStop) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddProp( - /* [in] */ DEXTER_PARAM Param, - /* [in] */ DEXTER_VALUE *paValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetProps( - /* [out] */ LONG *pcParams, - /* [out] */ DEXTER_PARAM **paParam, - /* [out] */ DEXTER_VALUE **paValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE FreeProps( - /* [in] */ LONG cParams, - /* [in] */ DEXTER_PARAM *paParam, - /* [in] */ DEXTER_VALUE *paValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE ClearProps( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE SaveToBlob( - /* [out] */ LONG *pcSize, - /* [out] */ BYTE **ppb) = 0; - - virtual HRESULT STDMETHODCALLTYPE LoadFromBlob( - /* [in] */ LONG cSize, - /* [in] */ BYTE *pb) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetProps( - /* [in] */ IUnknown *pTarget, - /* [in] */ REFERENCE_TIME rtNow) = 0; - - virtual HRESULT STDMETHODCALLTYPE PrintXMLW( - /* [out] */ WCHAR *pszXML, - /* [in] */ int cchXML, - /* [out] */ int *pcchPrinted, - /* [in] */ int indent) = 0; - - }; - -#else /* C style interface */ - - typedef struct IPropertySetterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IPropertySetter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IPropertySetter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IPropertySetter * This); - - HRESULT ( STDMETHODCALLTYPE *LoadXML )( - IPropertySetter * This, - /* [in] */ IUnknown *pxml); - - HRESULT ( STDMETHODCALLTYPE *PrintXML )( - IPropertySetter * This, - /* [out] */ char *pszXML, - /* [in] */ int cbXML, - /* [out] */ int *pcbPrinted, - /* [in] */ int indent); - - HRESULT ( STDMETHODCALLTYPE *CloneProps )( - IPropertySetter * This, - /* [out] */ IPropertySetter **ppSetter, - /* [in] */ REFERENCE_TIME rtStart, - /* [in] */ REFERENCE_TIME rtStop); - - HRESULT ( STDMETHODCALLTYPE *AddProp )( - IPropertySetter * This, - /* [in] */ DEXTER_PARAM Param, - /* [in] */ DEXTER_VALUE *paValue); - - HRESULT ( STDMETHODCALLTYPE *GetProps )( - IPropertySetter * This, - /* [out] */ LONG *pcParams, - /* [out] */ DEXTER_PARAM **paParam, - /* [out] */ DEXTER_VALUE **paValue); - - HRESULT ( STDMETHODCALLTYPE *FreeProps )( - IPropertySetter * This, - /* [in] */ LONG cParams, - /* [in] */ DEXTER_PARAM *paParam, - /* [in] */ DEXTER_VALUE *paValue); - - HRESULT ( STDMETHODCALLTYPE *ClearProps )( - IPropertySetter * This); - - HRESULT ( STDMETHODCALLTYPE *SaveToBlob )( - IPropertySetter * This, - /* [out] */ LONG *pcSize, - /* [out] */ BYTE **ppb); - - HRESULT ( STDMETHODCALLTYPE *LoadFromBlob )( - IPropertySetter * This, - /* [in] */ LONG cSize, - /* [in] */ BYTE *pb); - - HRESULT ( STDMETHODCALLTYPE *SetProps )( - IPropertySetter * This, - /* [in] */ IUnknown *pTarget, - /* [in] */ REFERENCE_TIME rtNow); - - HRESULT ( STDMETHODCALLTYPE *PrintXMLW )( - IPropertySetter * This, - /* [out] */ WCHAR *pszXML, - /* [in] */ int cchXML, - /* [out] */ int *pcchPrinted, - /* [in] */ int indent); - - END_INTERFACE - } IPropertySetterVtbl; - - interface IPropertySetter - { - CONST_VTBL struct IPropertySetterVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IPropertySetter_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IPropertySetter_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IPropertySetter_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IPropertySetter_LoadXML(This,pxml) \ - (This)->lpVtbl -> LoadXML(This,pxml) - -#define IPropertySetter_PrintXML(This,pszXML,cbXML,pcbPrinted,indent) \ - (This)->lpVtbl -> PrintXML(This,pszXML,cbXML,pcbPrinted,indent) - -#define IPropertySetter_CloneProps(This,ppSetter,rtStart,rtStop) \ - (This)->lpVtbl -> CloneProps(This,ppSetter,rtStart,rtStop) - -#define IPropertySetter_AddProp(This,Param,paValue) \ - (This)->lpVtbl -> AddProp(This,Param,paValue) - -#define IPropertySetter_GetProps(This,pcParams,paParam,paValue) \ - (This)->lpVtbl -> GetProps(This,pcParams,paParam,paValue) - -#define IPropertySetter_FreeProps(This,cParams,paParam,paValue) \ - (This)->lpVtbl -> FreeProps(This,cParams,paParam,paValue) - -#define IPropertySetter_ClearProps(This) \ - (This)->lpVtbl -> ClearProps(This) - -#define IPropertySetter_SaveToBlob(This,pcSize,ppb) \ - (This)->lpVtbl -> SaveToBlob(This,pcSize,ppb) - -#define IPropertySetter_LoadFromBlob(This,cSize,pb) \ - (This)->lpVtbl -> LoadFromBlob(This,cSize,pb) - -#define IPropertySetter_SetProps(This,pTarget,rtNow) \ - (This)->lpVtbl -> SetProps(This,pTarget,rtNow) - -#define IPropertySetter_PrintXMLW(This,pszXML,cchXML,pcchPrinted,indent) \ - (This)->lpVtbl -> PrintXMLW(This,pszXML,cchXML,pcchPrinted,indent) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IPropertySetter_LoadXML_Proxy( - IPropertySetter * This, - /* [in] */ IUnknown *pxml); - - -void __RPC_STUB IPropertySetter_LoadXML_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPropertySetter_PrintXML_Proxy( - IPropertySetter * This, - /* [out] */ char *pszXML, - /* [in] */ int cbXML, - /* [out] */ int *pcbPrinted, - /* [in] */ int indent); - - -void __RPC_STUB IPropertySetter_PrintXML_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPropertySetter_CloneProps_Proxy( - IPropertySetter * This, - /* [out] */ IPropertySetter **ppSetter, - /* [in] */ REFERENCE_TIME rtStart, - /* [in] */ REFERENCE_TIME rtStop); - - -void __RPC_STUB IPropertySetter_CloneProps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPropertySetter_AddProp_Proxy( - IPropertySetter * This, - /* [in] */ DEXTER_PARAM Param, - /* [in] */ DEXTER_VALUE *paValue); - - -void __RPC_STUB IPropertySetter_AddProp_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPropertySetter_GetProps_Proxy( - IPropertySetter * This, - /* [out] */ LONG *pcParams, - /* [out] */ DEXTER_PARAM **paParam, - /* [out] */ DEXTER_VALUE **paValue); - - -void __RPC_STUB IPropertySetter_GetProps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPropertySetter_FreeProps_Proxy( - IPropertySetter * This, - /* [in] */ LONG cParams, - /* [in] */ DEXTER_PARAM *paParam, - /* [in] */ DEXTER_VALUE *paValue); - - -void __RPC_STUB IPropertySetter_FreeProps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPropertySetter_ClearProps_Proxy( - IPropertySetter * This); - - -void __RPC_STUB IPropertySetter_ClearProps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPropertySetter_SaveToBlob_Proxy( - IPropertySetter * This, - /* [out] */ LONG *pcSize, - /* [out] */ BYTE **ppb); - - -void __RPC_STUB IPropertySetter_SaveToBlob_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPropertySetter_LoadFromBlob_Proxy( - IPropertySetter * This, - /* [in] */ LONG cSize, - /* [in] */ BYTE *pb); - - -void __RPC_STUB IPropertySetter_LoadFromBlob_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPropertySetter_SetProps_Proxy( - IPropertySetter * This, - /* [in] */ IUnknown *pTarget, - /* [in] */ REFERENCE_TIME rtNow); - - -void __RPC_STUB IPropertySetter_SetProps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPropertySetter_PrintXMLW_Proxy( - IPropertySetter * This, - /* [out] */ WCHAR *pszXML, - /* [in] */ int cchXML, - /* [out] */ int *pcchPrinted, - /* [in] */ int indent); - - -void __RPC_STUB IPropertySetter_PrintXMLW_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IPropertySetter_INTERFACE_DEFINED__ */ - - -#ifndef __IDxtCompositor_INTERFACE_DEFINED__ -#define __IDxtCompositor_INTERFACE_DEFINED__ - -/* interface IDxtCompositor */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_IDxtCompositor; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("BB44391E-6ABD-422f-9E2E-385C9DFF51FC") - IDxtCompositor : public IDXEffect - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OffsetX( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OffsetX( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OffsetY( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OffsetY( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Width( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Width( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Height( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Height( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SrcOffsetX( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SrcOffsetX( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SrcOffsetY( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SrcOffsetY( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SrcWidth( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SrcWidth( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SrcHeight( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SrcHeight( - /* [in] */ long newVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDxtCompositorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDxtCompositor * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDxtCompositor * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDxtCompositor * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDxtCompositor * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDxtCompositor * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDxtCompositor * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDxtCompositor * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Capabilities )( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Progress )( - IDxtCompositor * This, - /* [retval][out] */ float *pVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Progress )( - IDxtCompositor * This, - /* [in] */ float newVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StepResolution )( - IDxtCompositor * This, - /* [retval][out] */ float *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Duration )( - IDxtCompositor * This, - /* [retval][out] */ float *pVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Duration )( - IDxtCompositor * This, - /* [in] */ float newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OffsetX )( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OffsetX )( - IDxtCompositor * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OffsetY )( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OffsetY )( - IDxtCompositor * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Width )( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Width )( - IDxtCompositor * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Height )( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Height )( - IDxtCompositor * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SrcOffsetX )( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SrcOffsetX )( - IDxtCompositor * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SrcOffsetY )( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SrcOffsetY )( - IDxtCompositor * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SrcWidth )( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SrcWidth )( - IDxtCompositor * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SrcHeight )( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SrcHeight )( - IDxtCompositor * This, - /* [in] */ long newVal); - - END_INTERFACE - } IDxtCompositorVtbl; - - interface IDxtCompositor - { - CONST_VTBL struct IDxtCompositorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDxtCompositor_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDxtCompositor_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDxtCompositor_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDxtCompositor_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDxtCompositor_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDxtCompositor_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDxtCompositor_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDxtCompositor_get_Capabilities(This,pVal) \ - (This)->lpVtbl -> get_Capabilities(This,pVal) - -#define IDxtCompositor_get_Progress(This,pVal) \ - (This)->lpVtbl -> get_Progress(This,pVal) - -#define IDxtCompositor_put_Progress(This,newVal) \ - (This)->lpVtbl -> put_Progress(This,newVal) - -#define IDxtCompositor_get_StepResolution(This,pVal) \ - (This)->lpVtbl -> get_StepResolution(This,pVal) - -#define IDxtCompositor_get_Duration(This,pVal) \ - (This)->lpVtbl -> get_Duration(This,pVal) - -#define IDxtCompositor_put_Duration(This,newVal) \ - (This)->lpVtbl -> put_Duration(This,newVal) - - -#define IDxtCompositor_get_OffsetX(This,pVal) \ - (This)->lpVtbl -> get_OffsetX(This,pVal) - -#define IDxtCompositor_put_OffsetX(This,newVal) \ - (This)->lpVtbl -> put_OffsetX(This,newVal) - -#define IDxtCompositor_get_OffsetY(This,pVal) \ - (This)->lpVtbl -> get_OffsetY(This,pVal) - -#define IDxtCompositor_put_OffsetY(This,newVal) \ - (This)->lpVtbl -> put_OffsetY(This,newVal) - -#define IDxtCompositor_get_Width(This,pVal) \ - (This)->lpVtbl -> get_Width(This,pVal) - -#define IDxtCompositor_put_Width(This,newVal) \ - (This)->lpVtbl -> put_Width(This,newVal) - -#define IDxtCompositor_get_Height(This,pVal) \ - (This)->lpVtbl -> get_Height(This,pVal) - -#define IDxtCompositor_put_Height(This,newVal) \ - (This)->lpVtbl -> put_Height(This,newVal) - -#define IDxtCompositor_get_SrcOffsetX(This,pVal) \ - (This)->lpVtbl -> get_SrcOffsetX(This,pVal) - -#define IDxtCompositor_put_SrcOffsetX(This,newVal) \ - (This)->lpVtbl -> put_SrcOffsetX(This,newVal) - -#define IDxtCompositor_get_SrcOffsetY(This,pVal) \ - (This)->lpVtbl -> get_SrcOffsetY(This,pVal) - -#define IDxtCompositor_put_SrcOffsetY(This,newVal) \ - (This)->lpVtbl -> put_SrcOffsetY(This,newVal) - -#define IDxtCompositor_get_SrcWidth(This,pVal) \ - (This)->lpVtbl -> get_SrcWidth(This,pVal) - -#define IDxtCompositor_put_SrcWidth(This,newVal) \ - (This)->lpVtbl -> put_SrcWidth(This,newVal) - -#define IDxtCompositor_get_SrcHeight(This,pVal) \ - (This)->lpVtbl -> get_SrcHeight(This,pVal) - -#define IDxtCompositor_put_SrcHeight(This,newVal) \ - (This)->lpVtbl -> put_SrcHeight(This,newVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_get_OffsetX_Proxy( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtCompositor_get_OffsetX_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_put_OffsetX_Proxy( - IDxtCompositor * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtCompositor_put_OffsetX_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_get_OffsetY_Proxy( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtCompositor_get_OffsetY_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_put_OffsetY_Proxy( - IDxtCompositor * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtCompositor_put_OffsetY_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_get_Width_Proxy( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtCompositor_get_Width_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_put_Width_Proxy( - IDxtCompositor * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtCompositor_put_Width_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_get_Height_Proxy( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtCompositor_get_Height_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_put_Height_Proxy( - IDxtCompositor * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtCompositor_put_Height_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_get_SrcOffsetX_Proxy( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtCompositor_get_SrcOffsetX_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_put_SrcOffsetX_Proxy( - IDxtCompositor * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtCompositor_put_SrcOffsetX_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_get_SrcOffsetY_Proxy( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtCompositor_get_SrcOffsetY_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_put_SrcOffsetY_Proxy( - IDxtCompositor * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtCompositor_put_SrcOffsetY_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_get_SrcWidth_Proxy( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtCompositor_get_SrcWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_put_SrcWidth_Proxy( - IDxtCompositor * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtCompositor_put_SrcWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_get_SrcHeight_Proxy( - IDxtCompositor * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtCompositor_get_SrcHeight_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtCompositor_put_SrcHeight_Proxy( - IDxtCompositor * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtCompositor_put_SrcHeight_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDxtCompositor_INTERFACE_DEFINED__ */ - - -#ifndef __IDxtAlphaSetter_INTERFACE_DEFINED__ -#define __IDxtAlphaSetter_INTERFACE_DEFINED__ - -/* interface IDxtAlphaSetter */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_IDxtAlphaSetter; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("4EE9EAD9-DA4D-43d0-9383-06B90C08B12B") - IDxtAlphaSetter : public IDXEffect - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Alpha( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Alpha( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AlphaRamp( - /* [retval][out] */ double *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AlphaRamp( - /* [in] */ double newVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDxtAlphaSetterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDxtAlphaSetter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDxtAlphaSetter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDxtAlphaSetter * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDxtAlphaSetter * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDxtAlphaSetter * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDxtAlphaSetter * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDxtAlphaSetter * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Capabilities )( - IDxtAlphaSetter * This, - /* [retval][out] */ long *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Progress )( - IDxtAlphaSetter * This, - /* [retval][out] */ float *pVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Progress )( - IDxtAlphaSetter * This, - /* [in] */ float newVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StepResolution )( - IDxtAlphaSetter * This, - /* [retval][out] */ float *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Duration )( - IDxtAlphaSetter * This, - /* [retval][out] */ float *pVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Duration )( - IDxtAlphaSetter * This, - /* [in] */ float newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Alpha )( - IDxtAlphaSetter * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Alpha )( - IDxtAlphaSetter * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlphaRamp )( - IDxtAlphaSetter * This, - /* [retval][out] */ double *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlphaRamp )( - IDxtAlphaSetter * This, - /* [in] */ double newVal); - - END_INTERFACE - } IDxtAlphaSetterVtbl; - - interface IDxtAlphaSetter - { - CONST_VTBL struct IDxtAlphaSetterVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDxtAlphaSetter_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDxtAlphaSetter_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDxtAlphaSetter_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDxtAlphaSetter_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDxtAlphaSetter_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDxtAlphaSetter_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDxtAlphaSetter_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDxtAlphaSetter_get_Capabilities(This,pVal) \ - (This)->lpVtbl -> get_Capabilities(This,pVal) - -#define IDxtAlphaSetter_get_Progress(This,pVal) \ - (This)->lpVtbl -> get_Progress(This,pVal) - -#define IDxtAlphaSetter_put_Progress(This,newVal) \ - (This)->lpVtbl -> put_Progress(This,newVal) - -#define IDxtAlphaSetter_get_StepResolution(This,pVal) \ - (This)->lpVtbl -> get_StepResolution(This,pVal) - -#define IDxtAlphaSetter_get_Duration(This,pVal) \ - (This)->lpVtbl -> get_Duration(This,pVal) - -#define IDxtAlphaSetter_put_Duration(This,newVal) \ - (This)->lpVtbl -> put_Duration(This,newVal) - - -#define IDxtAlphaSetter_get_Alpha(This,pVal) \ - (This)->lpVtbl -> get_Alpha(This,pVal) - -#define IDxtAlphaSetter_put_Alpha(This,newVal) \ - (This)->lpVtbl -> put_Alpha(This,newVal) - -#define IDxtAlphaSetter_get_AlphaRamp(This,pVal) \ - (This)->lpVtbl -> get_AlphaRamp(This,pVal) - -#define IDxtAlphaSetter_put_AlphaRamp(This,newVal) \ - (This)->lpVtbl -> put_AlphaRamp(This,newVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtAlphaSetter_get_Alpha_Proxy( - IDxtAlphaSetter * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtAlphaSetter_get_Alpha_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtAlphaSetter_put_Alpha_Proxy( - IDxtAlphaSetter * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtAlphaSetter_put_Alpha_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtAlphaSetter_get_AlphaRamp_Proxy( - IDxtAlphaSetter * This, - /* [retval][out] */ double *pVal); - - -void __RPC_STUB IDxtAlphaSetter_get_AlphaRamp_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtAlphaSetter_put_AlphaRamp_Proxy( - IDxtAlphaSetter * This, - /* [in] */ double newVal); - - -void __RPC_STUB IDxtAlphaSetter_put_AlphaRamp_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDxtAlphaSetter_INTERFACE_DEFINED__ */ - - -#ifndef __IDxtJpeg_INTERFACE_DEFINED__ -#define __IDxtJpeg_INTERFACE_DEFINED__ - -/* interface IDxtJpeg */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_IDxtJpeg; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("DE75D011-7A65-11D2-8CEA-00A0C9441E20") - IDxtJpeg : public IDXEffect - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MaskNum( - /* [retval][out] */ long *__MIDL_0021) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MaskNum( - /* [in] */ long __MIDL_0022) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MaskName( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MaskName( - /* [in] */ BSTR newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ScaleX( - /* [retval][out] */ double *__MIDL_0023) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ScaleX( - /* [in] */ double __MIDL_0024) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ScaleY( - /* [retval][out] */ double *__MIDL_0025) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ScaleY( - /* [in] */ double __MIDL_0026) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OffsetX( - /* [retval][out] */ long *__MIDL_0027) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OffsetX( - /* [in] */ long __MIDL_0028) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OffsetY( - /* [retval][out] */ long *__MIDL_0029) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OffsetY( - /* [in] */ long __MIDL_0030) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReplicateX( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ReplicateX( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReplicateY( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ReplicateY( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BorderColor( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BorderColor( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BorderWidth( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BorderWidth( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BorderSoftness( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BorderSoftness( - /* [in] */ long newVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE ApplyChanges( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE LoadDefSettings( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDxtJpegVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDxtJpeg * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDxtJpeg * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDxtJpeg * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDxtJpeg * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDxtJpeg * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDxtJpeg * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDxtJpeg * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Capabilities )( - IDxtJpeg * This, - /* [retval][out] */ long *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Progress )( - IDxtJpeg * This, - /* [retval][out] */ float *pVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Progress )( - IDxtJpeg * This, - /* [in] */ float newVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StepResolution )( - IDxtJpeg * This, - /* [retval][out] */ float *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Duration )( - IDxtJpeg * This, - /* [retval][out] */ float *pVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Duration )( - IDxtJpeg * This, - /* [in] */ float newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaskNum )( - IDxtJpeg * This, - /* [retval][out] */ long *__MIDL_0021); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaskNum )( - IDxtJpeg * This, - /* [in] */ long __MIDL_0022); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaskName )( - IDxtJpeg * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaskName )( - IDxtJpeg * This, - /* [in] */ BSTR newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScaleX )( - IDxtJpeg * This, - /* [retval][out] */ double *__MIDL_0023); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ScaleX )( - IDxtJpeg * This, - /* [in] */ double __MIDL_0024); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScaleY )( - IDxtJpeg * This, - /* [retval][out] */ double *__MIDL_0025); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ScaleY )( - IDxtJpeg * This, - /* [in] */ double __MIDL_0026); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OffsetX )( - IDxtJpeg * This, - /* [retval][out] */ long *__MIDL_0027); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OffsetX )( - IDxtJpeg * This, - /* [in] */ long __MIDL_0028); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OffsetY )( - IDxtJpeg * This, - /* [retval][out] */ long *__MIDL_0029); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OffsetY )( - IDxtJpeg * This, - /* [in] */ long __MIDL_0030); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReplicateX )( - IDxtJpeg * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReplicateX )( - IDxtJpeg * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReplicateY )( - IDxtJpeg * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReplicateY )( - IDxtJpeg * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BorderColor )( - IDxtJpeg * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BorderColor )( - IDxtJpeg * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BorderWidth )( - IDxtJpeg * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BorderWidth )( - IDxtJpeg * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BorderSoftness )( - IDxtJpeg * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BorderSoftness )( - IDxtJpeg * This, - /* [in] */ long newVal); - - HRESULT ( STDMETHODCALLTYPE *ApplyChanges )( - IDxtJpeg * This); - - HRESULT ( STDMETHODCALLTYPE *LoadDefSettings )( - IDxtJpeg * This); - - END_INTERFACE - } IDxtJpegVtbl; - - interface IDxtJpeg - { - CONST_VTBL struct IDxtJpegVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDxtJpeg_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDxtJpeg_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDxtJpeg_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDxtJpeg_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDxtJpeg_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDxtJpeg_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDxtJpeg_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDxtJpeg_get_Capabilities(This,pVal) \ - (This)->lpVtbl -> get_Capabilities(This,pVal) - -#define IDxtJpeg_get_Progress(This,pVal) \ - (This)->lpVtbl -> get_Progress(This,pVal) - -#define IDxtJpeg_put_Progress(This,newVal) \ - (This)->lpVtbl -> put_Progress(This,newVal) - -#define IDxtJpeg_get_StepResolution(This,pVal) \ - (This)->lpVtbl -> get_StepResolution(This,pVal) - -#define IDxtJpeg_get_Duration(This,pVal) \ - (This)->lpVtbl -> get_Duration(This,pVal) - -#define IDxtJpeg_put_Duration(This,newVal) \ - (This)->lpVtbl -> put_Duration(This,newVal) - - -#define IDxtJpeg_get_MaskNum(This,__MIDL_0021) \ - (This)->lpVtbl -> get_MaskNum(This,__MIDL_0021) - -#define IDxtJpeg_put_MaskNum(This,__MIDL_0022) \ - (This)->lpVtbl -> put_MaskNum(This,__MIDL_0022) - -#define IDxtJpeg_get_MaskName(This,pVal) \ - (This)->lpVtbl -> get_MaskName(This,pVal) - -#define IDxtJpeg_put_MaskName(This,newVal) \ - (This)->lpVtbl -> put_MaskName(This,newVal) - -#define IDxtJpeg_get_ScaleX(This,__MIDL_0023) \ - (This)->lpVtbl -> get_ScaleX(This,__MIDL_0023) - -#define IDxtJpeg_put_ScaleX(This,__MIDL_0024) \ - (This)->lpVtbl -> put_ScaleX(This,__MIDL_0024) - -#define IDxtJpeg_get_ScaleY(This,__MIDL_0025) \ - (This)->lpVtbl -> get_ScaleY(This,__MIDL_0025) - -#define IDxtJpeg_put_ScaleY(This,__MIDL_0026) \ - (This)->lpVtbl -> put_ScaleY(This,__MIDL_0026) - -#define IDxtJpeg_get_OffsetX(This,__MIDL_0027) \ - (This)->lpVtbl -> get_OffsetX(This,__MIDL_0027) - -#define IDxtJpeg_put_OffsetX(This,__MIDL_0028) \ - (This)->lpVtbl -> put_OffsetX(This,__MIDL_0028) - -#define IDxtJpeg_get_OffsetY(This,__MIDL_0029) \ - (This)->lpVtbl -> get_OffsetY(This,__MIDL_0029) - -#define IDxtJpeg_put_OffsetY(This,__MIDL_0030) \ - (This)->lpVtbl -> put_OffsetY(This,__MIDL_0030) - -#define IDxtJpeg_get_ReplicateX(This,pVal) \ - (This)->lpVtbl -> get_ReplicateX(This,pVal) - -#define IDxtJpeg_put_ReplicateX(This,newVal) \ - (This)->lpVtbl -> put_ReplicateX(This,newVal) - -#define IDxtJpeg_get_ReplicateY(This,pVal) \ - (This)->lpVtbl -> get_ReplicateY(This,pVal) - -#define IDxtJpeg_put_ReplicateY(This,newVal) \ - (This)->lpVtbl -> put_ReplicateY(This,newVal) - -#define IDxtJpeg_get_BorderColor(This,pVal) \ - (This)->lpVtbl -> get_BorderColor(This,pVal) - -#define IDxtJpeg_put_BorderColor(This,newVal) \ - (This)->lpVtbl -> put_BorderColor(This,newVal) - -#define IDxtJpeg_get_BorderWidth(This,pVal) \ - (This)->lpVtbl -> get_BorderWidth(This,pVal) - -#define IDxtJpeg_put_BorderWidth(This,newVal) \ - (This)->lpVtbl -> put_BorderWidth(This,newVal) - -#define IDxtJpeg_get_BorderSoftness(This,pVal) \ - (This)->lpVtbl -> get_BorderSoftness(This,pVal) - -#define IDxtJpeg_put_BorderSoftness(This,newVal) \ - (This)->lpVtbl -> put_BorderSoftness(This,newVal) - -#define IDxtJpeg_ApplyChanges(This) \ - (This)->lpVtbl -> ApplyChanges(This) - -#define IDxtJpeg_LoadDefSettings(This) \ - (This)->lpVtbl -> LoadDefSettings(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_get_MaskNum_Proxy( - IDxtJpeg * This, - /* [retval][out] */ long *__MIDL_0021); - - -void __RPC_STUB IDxtJpeg_get_MaskNum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_put_MaskNum_Proxy( - IDxtJpeg * This, - /* [in] */ long __MIDL_0022); - - -void __RPC_STUB IDxtJpeg_put_MaskNum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_get_MaskName_Proxy( - IDxtJpeg * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB IDxtJpeg_get_MaskName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_put_MaskName_Proxy( - IDxtJpeg * This, - /* [in] */ BSTR newVal); - - -void __RPC_STUB IDxtJpeg_put_MaskName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_get_ScaleX_Proxy( - IDxtJpeg * This, - /* [retval][out] */ double *__MIDL_0023); - - -void __RPC_STUB IDxtJpeg_get_ScaleX_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_put_ScaleX_Proxy( - IDxtJpeg * This, - /* [in] */ double __MIDL_0024); - - -void __RPC_STUB IDxtJpeg_put_ScaleX_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_get_ScaleY_Proxy( - IDxtJpeg * This, - /* [retval][out] */ double *__MIDL_0025); - - -void __RPC_STUB IDxtJpeg_get_ScaleY_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_put_ScaleY_Proxy( - IDxtJpeg * This, - /* [in] */ double __MIDL_0026); - - -void __RPC_STUB IDxtJpeg_put_ScaleY_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_get_OffsetX_Proxy( - IDxtJpeg * This, - /* [retval][out] */ long *__MIDL_0027); - - -void __RPC_STUB IDxtJpeg_get_OffsetX_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_put_OffsetX_Proxy( - IDxtJpeg * This, - /* [in] */ long __MIDL_0028); - - -void __RPC_STUB IDxtJpeg_put_OffsetX_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_get_OffsetY_Proxy( - IDxtJpeg * This, - /* [retval][out] */ long *__MIDL_0029); - - -void __RPC_STUB IDxtJpeg_get_OffsetY_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_put_OffsetY_Proxy( - IDxtJpeg * This, - /* [in] */ long __MIDL_0030); - - -void __RPC_STUB IDxtJpeg_put_OffsetY_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_get_ReplicateX_Proxy( - IDxtJpeg * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtJpeg_get_ReplicateX_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_put_ReplicateX_Proxy( - IDxtJpeg * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtJpeg_put_ReplicateX_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_get_ReplicateY_Proxy( - IDxtJpeg * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtJpeg_get_ReplicateY_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_put_ReplicateY_Proxy( - IDxtJpeg * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtJpeg_put_ReplicateY_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_get_BorderColor_Proxy( - IDxtJpeg * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtJpeg_get_BorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_put_BorderColor_Proxy( - IDxtJpeg * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtJpeg_put_BorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_get_BorderWidth_Proxy( - IDxtJpeg * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtJpeg_get_BorderWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_put_BorderWidth_Proxy( - IDxtJpeg * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtJpeg_put_BorderWidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_get_BorderSoftness_Proxy( - IDxtJpeg * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IDxtJpeg_get_BorderSoftness_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtJpeg_put_BorderSoftness_Proxy( - IDxtJpeg * This, - /* [in] */ long newVal); - - -void __RPC_STUB IDxtJpeg_put_BorderSoftness_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDxtJpeg_ApplyChanges_Proxy( - IDxtJpeg * This); - - -void __RPC_STUB IDxtJpeg_ApplyChanges_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDxtJpeg_LoadDefSettings_Proxy( - IDxtJpeg * This); - - -void __RPC_STUB IDxtJpeg_LoadDefSettings_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDxtJpeg_INTERFACE_DEFINED__ */ - - -#ifndef __IDxtKey_INTERFACE_DEFINED__ -#define __IDxtKey_INTERFACE_DEFINED__ - -/* interface IDxtKey */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_IDxtKey; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("3255de56-38fb-4901-b980-94b438010d7b") - IDxtKey : public IDXEffect - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_KeyType( - /* [retval][out] */ int *__MIDL_0031) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_KeyType( - /* [in] */ int __MIDL_0032) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Hue( - /* [retval][out] */ int *__MIDL_0033) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Hue( - /* [in] */ int __MIDL_0034) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Luminance( - /* [retval][out] */ int *__MIDL_0035) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Luminance( - /* [in] */ int __MIDL_0036) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RGB( - /* [retval][out] */ DWORD *__MIDL_0037) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RGB( - /* [in] */ DWORD __MIDL_0038) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Similarity( - /* [retval][out] */ int *__MIDL_0039) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Similarity( - /* [in] */ int __MIDL_0040) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Invert( - /* [retval][out] */ BOOL *__MIDL_0041) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Invert( - /* [in] */ BOOL __MIDL_0042) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDxtKeyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDxtKey * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDxtKey * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDxtKey * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDxtKey * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDxtKey * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDxtKey * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDxtKey * 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][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Capabilities )( - IDxtKey * This, - /* [retval][out] */ long *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Progress )( - IDxtKey * This, - /* [retval][out] */ float *pVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Progress )( - IDxtKey * This, - /* [in] */ float newVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StepResolution )( - IDxtKey * This, - /* [retval][out] */ float *pVal); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Duration )( - IDxtKey * This, - /* [retval][out] */ float *pVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Duration )( - IDxtKey * This, - /* [in] */ float newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyType )( - IDxtKey * This, - /* [retval][out] */ int *__MIDL_0031); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyType )( - IDxtKey * This, - /* [in] */ int __MIDL_0032); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Hue )( - IDxtKey * This, - /* [retval][out] */ int *__MIDL_0033); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Hue )( - IDxtKey * This, - /* [in] */ int __MIDL_0034); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Luminance )( - IDxtKey * This, - /* [retval][out] */ int *__MIDL_0035); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Luminance )( - IDxtKey * This, - /* [in] */ int __MIDL_0036); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RGB )( - IDxtKey * This, - /* [retval][out] */ DWORD *__MIDL_0037); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RGB )( - IDxtKey * This, - /* [in] */ DWORD __MIDL_0038); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Similarity )( - IDxtKey * This, - /* [retval][out] */ int *__MIDL_0039); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Similarity )( - IDxtKey * This, - /* [in] */ int __MIDL_0040); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Invert )( - IDxtKey * This, - /* [retval][out] */ BOOL *__MIDL_0041); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Invert )( - IDxtKey * This, - /* [in] */ BOOL __MIDL_0042); - - END_INTERFACE - } IDxtKeyVtbl; - - interface IDxtKey - { - CONST_VTBL struct IDxtKeyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDxtKey_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDxtKey_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDxtKey_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDxtKey_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDxtKey_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDxtKey_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDxtKey_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDxtKey_get_Capabilities(This,pVal) \ - (This)->lpVtbl -> get_Capabilities(This,pVal) - -#define IDxtKey_get_Progress(This,pVal) \ - (This)->lpVtbl -> get_Progress(This,pVal) - -#define IDxtKey_put_Progress(This,newVal) \ - (This)->lpVtbl -> put_Progress(This,newVal) - -#define IDxtKey_get_StepResolution(This,pVal) \ - (This)->lpVtbl -> get_StepResolution(This,pVal) - -#define IDxtKey_get_Duration(This,pVal) \ - (This)->lpVtbl -> get_Duration(This,pVal) - -#define IDxtKey_put_Duration(This,newVal) \ - (This)->lpVtbl -> put_Duration(This,newVal) - - -#define IDxtKey_get_KeyType(This,__MIDL_0031) \ - (This)->lpVtbl -> get_KeyType(This,__MIDL_0031) - -#define IDxtKey_put_KeyType(This,__MIDL_0032) \ - (This)->lpVtbl -> put_KeyType(This,__MIDL_0032) - -#define IDxtKey_get_Hue(This,__MIDL_0033) \ - (This)->lpVtbl -> get_Hue(This,__MIDL_0033) - -#define IDxtKey_put_Hue(This,__MIDL_0034) \ - (This)->lpVtbl -> put_Hue(This,__MIDL_0034) - -#define IDxtKey_get_Luminance(This,__MIDL_0035) \ - (This)->lpVtbl -> get_Luminance(This,__MIDL_0035) - -#define IDxtKey_put_Luminance(This,__MIDL_0036) \ - (This)->lpVtbl -> put_Luminance(This,__MIDL_0036) - -#define IDxtKey_get_RGB(This,__MIDL_0037) \ - (This)->lpVtbl -> get_RGB(This,__MIDL_0037) - -#define IDxtKey_put_RGB(This,__MIDL_0038) \ - (This)->lpVtbl -> put_RGB(This,__MIDL_0038) - -#define IDxtKey_get_Similarity(This,__MIDL_0039) \ - (This)->lpVtbl -> get_Similarity(This,__MIDL_0039) - -#define IDxtKey_put_Similarity(This,__MIDL_0040) \ - (This)->lpVtbl -> put_Similarity(This,__MIDL_0040) - -#define IDxtKey_get_Invert(This,__MIDL_0041) \ - (This)->lpVtbl -> get_Invert(This,__MIDL_0041) - -#define IDxtKey_put_Invert(This,__MIDL_0042) \ - (This)->lpVtbl -> put_Invert(This,__MIDL_0042) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtKey_get_KeyType_Proxy( - IDxtKey * This, - /* [retval][out] */ int *__MIDL_0031); - - -void __RPC_STUB IDxtKey_get_KeyType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtKey_put_KeyType_Proxy( - IDxtKey * This, - /* [in] */ int __MIDL_0032); - - -void __RPC_STUB IDxtKey_put_KeyType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtKey_get_Hue_Proxy( - IDxtKey * This, - /* [retval][out] */ int *__MIDL_0033); - - -void __RPC_STUB IDxtKey_get_Hue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtKey_put_Hue_Proxy( - IDxtKey * This, - /* [in] */ int __MIDL_0034); - - -void __RPC_STUB IDxtKey_put_Hue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtKey_get_Luminance_Proxy( - IDxtKey * This, - /* [retval][out] */ int *__MIDL_0035); - - -void __RPC_STUB IDxtKey_get_Luminance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtKey_put_Luminance_Proxy( - IDxtKey * This, - /* [in] */ int __MIDL_0036); - - -void __RPC_STUB IDxtKey_put_Luminance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtKey_get_RGB_Proxy( - IDxtKey * This, - /* [retval][out] */ DWORD *__MIDL_0037); - - -void __RPC_STUB IDxtKey_get_RGB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtKey_put_RGB_Proxy( - IDxtKey * This, - /* [in] */ DWORD __MIDL_0038); - - -void __RPC_STUB IDxtKey_put_RGB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtKey_get_Similarity_Proxy( - IDxtKey * This, - /* [retval][out] */ int *__MIDL_0039); - - -void __RPC_STUB IDxtKey_get_Similarity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtKey_put_Similarity_Proxy( - IDxtKey * This, - /* [in] */ int __MIDL_0040); - - -void __RPC_STUB IDxtKey_put_Similarity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDxtKey_get_Invert_Proxy( - IDxtKey * This, - /* [retval][out] */ BOOL *__MIDL_0041); - - -void __RPC_STUB IDxtKey_get_Invert_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDxtKey_put_Invert_Proxy( - IDxtKey * This, - /* [in] */ BOOL __MIDL_0042); - - -void __RPC_STUB IDxtKey_put_Invert_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDxtKey_INTERFACE_DEFINED__ */ - - -#ifndef __IMediaLocator_INTERFACE_DEFINED__ -#define __IMediaLocator_INTERFACE_DEFINED__ - -/* interface IMediaLocator */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IMediaLocator; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("288581E0-66CE-11d2-918F-00C0DF10D434") - IMediaLocator : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE FindMediaFile( - BSTR Input, - BSTR FilterString, - BSTR *pOutput, - long Flags) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddFoundLocation( - BSTR DirectoryName) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaLocatorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaLocator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaLocator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaLocator * This); - - HRESULT ( STDMETHODCALLTYPE *FindMediaFile )( - IMediaLocator * This, - BSTR Input, - BSTR FilterString, - BSTR *pOutput, - long Flags); - - HRESULT ( STDMETHODCALLTYPE *AddFoundLocation )( - IMediaLocator * This, - BSTR DirectoryName); - - END_INTERFACE - } IMediaLocatorVtbl; - - interface IMediaLocator - { - CONST_VTBL struct IMediaLocatorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaLocator_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaLocator_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaLocator_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaLocator_FindMediaFile(This,Input,FilterString,pOutput,Flags) \ - (This)->lpVtbl -> FindMediaFile(This,Input,FilterString,pOutput,Flags) - -#define IMediaLocator_AddFoundLocation(This,DirectoryName) \ - (This)->lpVtbl -> AddFoundLocation(This,DirectoryName) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaLocator_FindMediaFile_Proxy( - IMediaLocator * This, - BSTR Input, - BSTR FilterString, - BSTR *pOutput, - long Flags); - - -void __RPC_STUB IMediaLocator_FindMediaFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaLocator_AddFoundLocation_Proxy( - IMediaLocator * This, - BSTR DirectoryName); - - -void __RPC_STUB IMediaLocator_AddFoundLocation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaLocator_INTERFACE_DEFINED__ */ - - -#ifndef __IMediaDet_INTERFACE_DEFINED__ -#define __IMediaDet_INTERFACE_DEFINED__ - -/* interface IMediaDet */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IMediaDet; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("65BD0710-24D2-4ff7-9324-ED2E5D3ABAFA") - IMediaDet : public IUnknown - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Filter( - /* [retval][out] */ IUnknown **pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Filter( - /* [in] */ IUnknown *newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutputStreams( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentStream( - /* [retval][out] */ long *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CurrentStream( - /* [in] */ long newVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StreamType( - /* [retval][out] */ GUID *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StreamTypeB( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StreamLength( - /* [retval][out] */ double *pVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Filename( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Filename( - /* [in] */ BSTR newVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetBitmapBits( - double StreamTime, - long *pBufferSize, - char *pBuffer, - long Width, - long Height) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteBitmapBits( - double StreamTime, - long Width, - long Height, - BSTR Filename) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StreamMediaType( - /* [retval][out] */ AM_MEDIA_TYPE *pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSampleGrabber( - /* [out] */ ISampleGrabber **ppVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FrameRate( - /* [retval][out] */ double *pVal) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnterBitmapGrabMode( - double SeekTime) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaDetVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaDet * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaDet * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaDet * This); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( - IMediaDet * This, - /* [retval][out] */ IUnknown **pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Filter )( - IMediaDet * This, - /* [in] */ IUnknown *newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutputStreams )( - IMediaDet * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentStream )( - IMediaDet * This, - /* [retval][out] */ long *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CurrentStream )( - IMediaDet * This, - /* [in] */ long newVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StreamType )( - IMediaDet * This, - /* [retval][out] */ GUID *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StreamTypeB )( - IMediaDet * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StreamLength )( - IMediaDet * This, - /* [retval][out] */ double *pVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Filename )( - IMediaDet * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Filename )( - IMediaDet * This, - /* [in] */ BSTR newVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetBitmapBits )( - IMediaDet * This, - double StreamTime, - long *pBufferSize, - char *pBuffer, - long Width, - long Height); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WriteBitmapBits )( - IMediaDet * This, - double StreamTime, - long Width, - long Height, - BSTR Filename); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StreamMediaType )( - IMediaDet * This, - /* [retval][out] */ AM_MEDIA_TYPE *pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSampleGrabber )( - IMediaDet * This, - /* [out] */ ISampleGrabber **ppVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FrameRate )( - IMediaDet * This, - /* [retval][out] */ double *pVal); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnterBitmapGrabMode )( - IMediaDet * This, - double SeekTime); - - END_INTERFACE - } IMediaDetVtbl; - - interface IMediaDet - { - CONST_VTBL struct IMediaDetVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaDet_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaDet_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaDet_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaDet_get_Filter(This,pVal) \ - (This)->lpVtbl -> get_Filter(This,pVal) - -#define IMediaDet_put_Filter(This,newVal) \ - (This)->lpVtbl -> put_Filter(This,newVal) - -#define IMediaDet_get_OutputStreams(This,pVal) \ - (This)->lpVtbl -> get_OutputStreams(This,pVal) - -#define IMediaDet_get_CurrentStream(This,pVal) \ - (This)->lpVtbl -> get_CurrentStream(This,pVal) - -#define IMediaDet_put_CurrentStream(This,newVal) \ - (This)->lpVtbl -> put_CurrentStream(This,newVal) - -#define IMediaDet_get_StreamType(This,pVal) \ - (This)->lpVtbl -> get_StreamType(This,pVal) - -#define IMediaDet_get_StreamTypeB(This,pVal) \ - (This)->lpVtbl -> get_StreamTypeB(This,pVal) - -#define IMediaDet_get_StreamLength(This,pVal) \ - (This)->lpVtbl -> get_StreamLength(This,pVal) - -#define IMediaDet_get_Filename(This,pVal) \ - (This)->lpVtbl -> get_Filename(This,pVal) - -#define IMediaDet_put_Filename(This,newVal) \ - (This)->lpVtbl -> put_Filename(This,newVal) - -#define IMediaDet_GetBitmapBits(This,StreamTime,pBufferSize,pBuffer,Width,Height) \ - (This)->lpVtbl -> GetBitmapBits(This,StreamTime,pBufferSize,pBuffer,Width,Height) - -#define IMediaDet_WriteBitmapBits(This,StreamTime,Width,Height,Filename) \ - (This)->lpVtbl -> WriteBitmapBits(This,StreamTime,Width,Height,Filename) - -#define IMediaDet_get_StreamMediaType(This,pVal) \ - (This)->lpVtbl -> get_StreamMediaType(This,pVal) - -#define IMediaDet_GetSampleGrabber(This,ppVal) \ - (This)->lpVtbl -> GetSampleGrabber(This,ppVal) - -#define IMediaDet_get_FrameRate(This,pVal) \ - (This)->lpVtbl -> get_FrameRate(This,pVal) - -#define IMediaDet_EnterBitmapGrabMode(This,SeekTime) \ - (This)->lpVtbl -> EnterBitmapGrabMode(This,SeekTime) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMediaDet_get_Filter_Proxy( - IMediaDet * This, - /* [retval][out] */ IUnknown **pVal); - - -void __RPC_STUB IMediaDet_get_Filter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMediaDet_put_Filter_Proxy( - IMediaDet * This, - /* [in] */ IUnknown *newVal); - - -void __RPC_STUB IMediaDet_put_Filter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMediaDet_get_OutputStreams_Proxy( - IMediaDet * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMediaDet_get_OutputStreams_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMediaDet_get_CurrentStream_Proxy( - IMediaDet * This, - /* [retval][out] */ long *pVal); - - -void __RPC_STUB IMediaDet_get_CurrentStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMediaDet_put_CurrentStream_Proxy( - IMediaDet * This, - /* [in] */ long newVal); - - -void __RPC_STUB IMediaDet_put_CurrentStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMediaDet_get_StreamType_Proxy( - IMediaDet * This, - /* [retval][out] */ GUID *pVal); - - -void __RPC_STUB IMediaDet_get_StreamType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMediaDet_get_StreamTypeB_Proxy( - IMediaDet * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB IMediaDet_get_StreamTypeB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMediaDet_get_StreamLength_Proxy( - IMediaDet * This, - /* [retval][out] */ double *pVal); - - -void __RPC_STUB IMediaDet_get_StreamLength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMediaDet_get_Filename_Proxy( - IMediaDet * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB IMediaDet_get_Filename_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMediaDet_put_Filename_Proxy( - IMediaDet * This, - /* [in] */ BSTR newVal); - - -void __RPC_STUB IMediaDet_put_Filename_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMediaDet_GetBitmapBits_Proxy( - IMediaDet * This, - double StreamTime, - long *pBufferSize, - char *pBuffer, - long Width, - long Height); - - -void __RPC_STUB IMediaDet_GetBitmapBits_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMediaDet_WriteBitmapBits_Proxy( - IMediaDet * This, - double StreamTime, - long Width, - long Height, - BSTR Filename); - - -void __RPC_STUB IMediaDet_WriteBitmapBits_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMediaDet_get_StreamMediaType_Proxy( - IMediaDet * This, - /* [retval][out] */ AM_MEDIA_TYPE *pVal); - - -void __RPC_STUB IMediaDet_get_StreamMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMediaDet_GetSampleGrabber_Proxy( - IMediaDet * This, - /* [out] */ ISampleGrabber **ppVal); - - -void __RPC_STUB IMediaDet_GetSampleGrabber_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMediaDet_get_FrameRate_Proxy( - IMediaDet * This, - /* [retval][out] */ double *pVal); - - -void __RPC_STUB IMediaDet_get_FrameRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMediaDet_EnterBitmapGrabMode_Proxy( - IMediaDet * This, - double SeekTime); - - -void __RPC_STUB IMediaDet_EnterBitmapGrabMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaDet_INTERFACE_DEFINED__ */ - - -#ifndef __IGrfCache_INTERFACE_DEFINED__ -#define __IGrfCache_INTERFACE_DEFINED__ - -/* interface IGrfCache */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IGrfCache; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("AE9472BE-B0C3-11D2-8D24-00A0C9441E20") - IGrfCache : public IDispatch - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddFilter( - IGrfCache *ChainedCache, - LONGLONG ID, - const IBaseFilter *pFilter, - LPCWSTR pName) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ConnectPins( - IGrfCache *ChainedCache, - LONGLONG PinID1, - const IPin *pPin1, - LONGLONG PinID2, - const IPin *pPin2) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetGraph( - const IGraphBuilder *pGraph) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DoConnectionsNow( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IGrfCacheVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IGrfCache * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IGrfCache * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IGrfCache * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IGrfCache * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IGrfCache * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IGrfCache * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IGrfCache * 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); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddFilter )( - IGrfCache * This, - IGrfCache *ChainedCache, - LONGLONG ID, - const IBaseFilter *pFilter, - LPCWSTR pName); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectPins )( - IGrfCache * This, - IGrfCache *ChainedCache, - LONGLONG PinID1, - const IPin *pPin1, - LONGLONG PinID2, - const IPin *pPin2); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetGraph )( - IGrfCache * This, - const IGraphBuilder *pGraph); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DoConnectionsNow )( - IGrfCache * This); - - END_INTERFACE - } IGrfCacheVtbl; - - interface IGrfCache - { - CONST_VTBL struct IGrfCacheVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IGrfCache_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IGrfCache_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IGrfCache_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IGrfCache_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IGrfCache_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IGrfCache_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IGrfCache_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IGrfCache_AddFilter(This,ChainedCache,ID,pFilter,pName) \ - (This)->lpVtbl -> AddFilter(This,ChainedCache,ID,pFilter,pName) - -#define IGrfCache_ConnectPins(This,ChainedCache,PinID1,pPin1,PinID2,pPin2) \ - (This)->lpVtbl -> ConnectPins(This,ChainedCache,PinID1,pPin1,PinID2,pPin2) - -#define IGrfCache_SetGraph(This,pGraph) \ - (This)->lpVtbl -> SetGraph(This,pGraph) - -#define IGrfCache_DoConnectionsNow(This) \ - (This)->lpVtbl -> DoConnectionsNow(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IGrfCache_AddFilter_Proxy( - IGrfCache * This, - IGrfCache *ChainedCache, - LONGLONG ID, - const IBaseFilter *pFilter, - LPCWSTR pName); - - -void __RPC_STUB IGrfCache_AddFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IGrfCache_ConnectPins_Proxy( - IGrfCache * This, - IGrfCache *ChainedCache, - LONGLONG PinID1, - const IPin *pPin1, - LONGLONG PinID2, - const IPin *pPin2); - - -void __RPC_STUB IGrfCache_ConnectPins_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IGrfCache_SetGraph_Proxy( - IGrfCache * This, - const IGraphBuilder *pGraph); - - -void __RPC_STUB IGrfCache_SetGraph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IGrfCache_DoConnectionsNow_Proxy( - IGrfCache * This); - - -void __RPC_STUB IGrfCache_DoConnectionsNow_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IGrfCache_INTERFACE_DEFINED__ */ - - -#ifndef __IRenderEngine_INTERFACE_DEFINED__ -#define __IRenderEngine_INTERFACE_DEFINED__ - -/* interface IRenderEngine */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IRenderEngine; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("6BEE3A81-66C9-11d2-918F-00C0DF10D434") - IRenderEngine : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetTimelineObject( - IAMTimeline *pTimeline) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTimelineObject( - /* [out] */ IAMTimeline **ppTimeline) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFilterGraph( - /* [out] */ IGraphBuilder **ppFG) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFilterGraph( - IGraphBuilder *pFG) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetInterestRange( - REFERENCE_TIME Start, - REFERENCE_TIME Stop) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetInterestRange2( - double Start, - double Stop) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRenderRange( - REFERENCE_TIME Start, - REFERENCE_TIME Stop) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRenderRange2( - double Start, - double Stop) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetGroupOutputPin( - long Group, - /* [out] */ IPin **ppRenderPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE ScrapIt( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE RenderOutputPins( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVendorString( - /* [retval][out] */ BSTR *pVendorID) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConnectFrontEnd( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSourceConnectCallback( - IGrfCache *pCallback) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDynamicReconnectLevel( - long Level) = 0; - - virtual HRESULT STDMETHODCALLTYPE DoSmartRecompression( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE UseInSmartRecompressionGraph( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSourceNameValidation( - BSTR FilterString, - IMediaLocator *pOverride, - LONG Flags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Commit( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Decommit( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCaps( - long Index, - long *pReturn) = 0; - - }; - -#else /* C style interface */ - - typedef struct IRenderEngineVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IRenderEngine * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IRenderEngine * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IRenderEngine * This); - - HRESULT ( STDMETHODCALLTYPE *SetTimelineObject )( - IRenderEngine * This, - IAMTimeline *pTimeline); - - HRESULT ( STDMETHODCALLTYPE *GetTimelineObject )( - IRenderEngine * This, - /* [out] */ IAMTimeline **ppTimeline); - - HRESULT ( STDMETHODCALLTYPE *GetFilterGraph )( - IRenderEngine * This, - /* [out] */ IGraphBuilder **ppFG); - - HRESULT ( STDMETHODCALLTYPE *SetFilterGraph )( - IRenderEngine * This, - IGraphBuilder *pFG); - - HRESULT ( STDMETHODCALLTYPE *SetInterestRange )( - IRenderEngine * This, - REFERENCE_TIME Start, - REFERENCE_TIME Stop); - - HRESULT ( STDMETHODCALLTYPE *SetInterestRange2 )( - IRenderEngine * This, - double Start, - double Stop); - - HRESULT ( STDMETHODCALLTYPE *SetRenderRange )( - IRenderEngine * This, - REFERENCE_TIME Start, - REFERENCE_TIME Stop); - - HRESULT ( STDMETHODCALLTYPE *SetRenderRange2 )( - IRenderEngine * This, - double Start, - double Stop); - - HRESULT ( STDMETHODCALLTYPE *GetGroupOutputPin )( - IRenderEngine * This, - long Group, - /* [out] */ IPin **ppRenderPin); - - HRESULT ( STDMETHODCALLTYPE *ScrapIt )( - IRenderEngine * This); - - HRESULT ( STDMETHODCALLTYPE *RenderOutputPins )( - IRenderEngine * This); - - HRESULT ( STDMETHODCALLTYPE *GetVendorString )( - IRenderEngine * This, - /* [retval][out] */ BSTR *pVendorID); - - HRESULT ( STDMETHODCALLTYPE *ConnectFrontEnd )( - IRenderEngine * This); - - HRESULT ( STDMETHODCALLTYPE *SetSourceConnectCallback )( - IRenderEngine * This, - IGrfCache *pCallback); - - HRESULT ( STDMETHODCALLTYPE *SetDynamicReconnectLevel )( - IRenderEngine * This, - long Level); - - HRESULT ( STDMETHODCALLTYPE *DoSmartRecompression )( - IRenderEngine * This); - - HRESULT ( STDMETHODCALLTYPE *UseInSmartRecompressionGraph )( - IRenderEngine * This); - - HRESULT ( STDMETHODCALLTYPE *SetSourceNameValidation )( - IRenderEngine * This, - BSTR FilterString, - IMediaLocator *pOverride, - LONG Flags); - - HRESULT ( STDMETHODCALLTYPE *Commit )( - IRenderEngine * This); - - HRESULT ( STDMETHODCALLTYPE *Decommit )( - IRenderEngine * This); - - HRESULT ( STDMETHODCALLTYPE *GetCaps )( - IRenderEngine * This, - long Index, - long *pReturn); - - END_INTERFACE - } IRenderEngineVtbl; - - interface IRenderEngine - { - CONST_VTBL struct IRenderEngineVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IRenderEngine_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IRenderEngine_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IRenderEngine_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IRenderEngine_SetTimelineObject(This,pTimeline) \ - (This)->lpVtbl -> SetTimelineObject(This,pTimeline) - -#define IRenderEngine_GetTimelineObject(This,ppTimeline) \ - (This)->lpVtbl -> GetTimelineObject(This,ppTimeline) - -#define IRenderEngine_GetFilterGraph(This,ppFG) \ - (This)->lpVtbl -> GetFilterGraph(This,ppFG) - -#define IRenderEngine_SetFilterGraph(This,pFG) \ - (This)->lpVtbl -> SetFilterGraph(This,pFG) - -#define IRenderEngine_SetInterestRange(This,Start,Stop) \ - (This)->lpVtbl -> SetInterestRange(This,Start,Stop) - -#define IRenderEngine_SetInterestRange2(This,Start,Stop) \ - (This)->lpVtbl -> SetInterestRange2(This,Start,Stop) - -#define IRenderEngine_SetRenderRange(This,Start,Stop) \ - (This)->lpVtbl -> SetRenderRange(This,Start,Stop) - -#define IRenderEngine_SetRenderRange2(This,Start,Stop) \ - (This)->lpVtbl -> SetRenderRange2(This,Start,Stop) - -#define IRenderEngine_GetGroupOutputPin(This,Group,ppRenderPin) \ - (This)->lpVtbl -> GetGroupOutputPin(This,Group,ppRenderPin) - -#define IRenderEngine_ScrapIt(This) \ - (This)->lpVtbl -> ScrapIt(This) - -#define IRenderEngine_RenderOutputPins(This) \ - (This)->lpVtbl -> RenderOutputPins(This) - -#define IRenderEngine_GetVendorString(This,pVendorID) \ - (This)->lpVtbl -> GetVendorString(This,pVendorID) - -#define IRenderEngine_ConnectFrontEnd(This) \ - (This)->lpVtbl -> ConnectFrontEnd(This) - -#define IRenderEngine_SetSourceConnectCallback(This,pCallback) \ - (This)->lpVtbl -> SetSourceConnectCallback(This,pCallback) - -#define IRenderEngine_SetDynamicReconnectLevel(This,Level) \ - (This)->lpVtbl -> SetDynamicReconnectLevel(This,Level) - -#define IRenderEngine_DoSmartRecompression(This) \ - (This)->lpVtbl -> DoSmartRecompression(This) - -#define IRenderEngine_UseInSmartRecompressionGraph(This) \ - (This)->lpVtbl -> UseInSmartRecompressionGraph(This) - -#define IRenderEngine_SetSourceNameValidation(This,FilterString,pOverride,Flags) \ - (This)->lpVtbl -> SetSourceNameValidation(This,FilterString,pOverride,Flags) - -#define IRenderEngine_Commit(This) \ - (This)->lpVtbl -> Commit(This) - -#define IRenderEngine_Decommit(This) \ - (This)->lpVtbl -> Decommit(This) - -#define IRenderEngine_GetCaps(This,Index,pReturn) \ - (This)->lpVtbl -> GetCaps(This,Index,pReturn) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IRenderEngine_SetTimelineObject_Proxy( - IRenderEngine * This, - IAMTimeline *pTimeline); - - -void __RPC_STUB IRenderEngine_SetTimelineObject_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_GetTimelineObject_Proxy( - IRenderEngine * This, - /* [out] */ IAMTimeline **ppTimeline); - - -void __RPC_STUB IRenderEngine_GetTimelineObject_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_GetFilterGraph_Proxy( - IRenderEngine * This, - /* [out] */ IGraphBuilder **ppFG); - - -void __RPC_STUB IRenderEngine_GetFilterGraph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_SetFilterGraph_Proxy( - IRenderEngine * This, - IGraphBuilder *pFG); - - -void __RPC_STUB IRenderEngine_SetFilterGraph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_SetInterestRange_Proxy( - IRenderEngine * This, - REFERENCE_TIME Start, - REFERENCE_TIME Stop); - - -void __RPC_STUB IRenderEngine_SetInterestRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_SetInterestRange2_Proxy( - IRenderEngine * This, - double Start, - double Stop); - - -void __RPC_STUB IRenderEngine_SetInterestRange2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_SetRenderRange_Proxy( - IRenderEngine * This, - REFERENCE_TIME Start, - REFERENCE_TIME Stop); - - -void __RPC_STUB IRenderEngine_SetRenderRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_SetRenderRange2_Proxy( - IRenderEngine * This, - double Start, - double Stop); - - -void __RPC_STUB IRenderEngine_SetRenderRange2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_GetGroupOutputPin_Proxy( - IRenderEngine * This, - long Group, - /* [out] */ IPin **ppRenderPin); - - -void __RPC_STUB IRenderEngine_GetGroupOutputPin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_ScrapIt_Proxy( - IRenderEngine * This); - - -void __RPC_STUB IRenderEngine_ScrapIt_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_RenderOutputPins_Proxy( - IRenderEngine * This); - - -void __RPC_STUB IRenderEngine_RenderOutputPins_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_GetVendorString_Proxy( - IRenderEngine * This, - /* [retval][out] */ BSTR *pVendorID); - - -void __RPC_STUB IRenderEngine_GetVendorString_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_ConnectFrontEnd_Proxy( - IRenderEngine * This); - - -void __RPC_STUB IRenderEngine_ConnectFrontEnd_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_SetSourceConnectCallback_Proxy( - IRenderEngine * This, - IGrfCache *pCallback); - - -void __RPC_STUB IRenderEngine_SetSourceConnectCallback_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_SetDynamicReconnectLevel_Proxy( - IRenderEngine * This, - long Level); - - -void __RPC_STUB IRenderEngine_SetDynamicReconnectLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_DoSmartRecompression_Proxy( - IRenderEngine * This); - - -void __RPC_STUB IRenderEngine_DoSmartRecompression_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_UseInSmartRecompressionGraph_Proxy( - IRenderEngine * This); - - -void __RPC_STUB IRenderEngine_UseInSmartRecompressionGraph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_SetSourceNameValidation_Proxy( - IRenderEngine * This, - BSTR FilterString, - IMediaLocator *pOverride, - LONG Flags); - - -void __RPC_STUB IRenderEngine_SetSourceNameValidation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_Commit_Proxy( - IRenderEngine * This); - - -void __RPC_STUB IRenderEngine_Commit_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_Decommit_Proxy( - IRenderEngine * This); - - -void __RPC_STUB IRenderEngine_Decommit_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IRenderEngine_GetCaps_Proxy( - IRenderEngine * This, - long Index, - long *pReturn); - - -void __RPC_STUB IRenderEngine_GetCaps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IRenderEngine_INTERFACE_DEFINED__ */ - - -#ifndef __IRenderEngine2_INTERFACE_DEFINED__ -#define __IRenderEngine2_INTERFACE_DEFINED__ - -/* interface IRenderEngine2 */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IRenderEngine2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("6BEE3A82-66C9-11d2-918F-00C0DF10D434") - IRenderEngine2 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetResizerGUID( - GUID ResizerGuid) = 0; - - }; - -#else /* C style interface */ - - typedef struct IRenderEngine2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IRenderEngine2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IRenderEngine2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IRenderEngine2 * This); - - HRESULT ( STDMETHODCALLTYPE *SetResizerGUID )( - IRenderEngine2 * This, - GUID ResizerGuid); - - END_INTERFACE - } IRenderEngine2Vtbl; - - interface IRenderEngine2 - { - CONST_VTBL struct IRenderEngine2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IRenderEngine2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IRenderEngine2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IRenderEngine2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IRenderEngine2_SetResizerGUID(This,ResizerGuid) \ - (This)->lpVtbl -> SetResizerGUID(This,ResizerGuid) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IRenderEngine2_SetResizerGUID_Proxy( - IRenderEngine2 * This, - GUID ResizerGuid); - - -void __RPC_STUB IRenderEngine2_SetResizerGUID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IRenderEngine2_INTERFACE_DEFINED__ */ - - -#ifndef __IFindCompressorCB_INTERFACE_DEFINED__ -#define __IFindCompressorCB_INTERFACE_DEFINED__ - -/* interface IFindCompressorCB */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IFindCompressorCB; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("F03FA8DE-879A-4d59-9B2C-26BB1CF83461") - IFindCompressorCB : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetCompressor( - AM_MEDIA_TYPE *pType, - AM_MEDIA_TYPE *pCompType, - /* [out] */ IBaseFilter **ppFilter) = 0; - - }; - -#else /* C style interface */ - - typedef struct IFindCompressorCBVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IFindCompressorCB * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IFindCompressorCB * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IFindCompressorCB * This); - - HRESULT ( STDMETHODCALLTYPE *GetCompressor )( - IFindCompressorCB * This, - AM_MEDIA_TYPE *pType, - AM_MEDIA_TYPE *pCompType, - /* [out] */ IBaseFilter **ppFilter); - - END_INTERFACE - } IFindCompressorCBVtbl; - - interface IFindCompressorCB - { - CONST_VTBL struct IFindCompressorCBVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IFindCompressorCB_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IFindCompressorCB_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IFindCompressorCB_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IFindCompressorCB_GetCompressor(This,pType,pCompType,ppFilter) \ - (This)->lpVtbl -> GetCompressor(This,pType,pCompType,ppFilter) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IFindCompressorCB_GetCompressor_Proxy( - IFindCompressorCB * This, - AM_MEDIA_TYPE *pType, - AM_MEDIA_TYPE *pCompType, - /* [out] */ IBaseFilter **ppFilter); - - -void __RPC_STUB IFindCompressorCB_GetCompressor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IFindCompressorCB_INTERFACE_DEFINED__ */ - - -#ifndef __ISmartRenderEngine_INTERFACE_DEFINED__ -#define __ISmartRenderEngine_INTERFACE_DEFINED__ - -/* interface ISmartRenderEngine */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_ISmartRenderEngine; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("F03FA8CE-879A-4d59-9B2C-26BB1CF83461") - ISmartRenderEngine : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetGroupCompressor( - long Group, - IBaseFilter *pCompressor) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetGroupCompressor( - long Group, - IBaseFilter **pCompressor) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFindCompressorCB( - IFindCompressorCB *pCallback) = 0; - - }; - -#else /* C style interface */ - - typedef struct ISmartRenderEngineVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ISmartRenderEngine * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ISmartRenderEngine * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ISmartRenderEngine * This); - - HRESULT ( STDMETHODCALLTYPE *SetGroupCompressor )( - ISmartRenderEngine * This, - long Group, - IBaseFilter *pCompressor); - - HRESULT ( STDMETHODCALLTYPE *GetGroupCompressor )( - ISmartRenderEngine * This, - long Group, - IBaseFilter **pCompressor); - - HRESULT ( STDMETHODCALLTYPE *SetFindCompressorCB )( - ISmartRenderEngine * This, - IFindCompressorCB *pCallback); - - END_INTERFACE - } ISmartRenderEngineVtbl; - - interface ISmartRenderEngine - { - CONST_VTBL struct ISmartRenderEngineVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ISmartRenderEngine_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ISmartRenderEngine_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ISmartRenderEngine_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ISmartRenderEngine_SetGroupCompressor(This,Group,pCompressor) \ - (This)->lpVtbl -> SetGroupCompressor(This,Group,pCompressor) - -#define ISmartRenderEngine_GetGroupCompressor(This,Group,pCompressor) \ - (This)->lpVtbl -> GetGroupCompressor(This,Group,pCompressor) - -#define ISmartRenderEngine_SetFindCompressorCB(This,pCallback) \ - (This)->lpVtbl -> SetFindCompressorCB(This,pCallback) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE ISmartRenderEngine_SetGroupCompressor_Proxy( - ISmartRenderEngine * This, - long Group, - IBaseFilter *pCompressor); - - -void __RPC_STUB ISmartRenderEngine_SetGroupCompressor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISmartRenderEngine_GetGroupCompressor_Proxy( - ISmartRenderEngine * This, - long Group, - IBaseFilter **pCompressor); - - -void __RPC_STUB ISmartRenderEngine_GetGroupCompressor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISmartRenderEngine_SetFindCompressorCB_Proxy( - ISmartRenderEngine * This, - IFindCompressorCB *pCallback); - - -void __RPC_STUB ISmartRenderEngine_SetFindCompressorCB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ISmartRenderEngine_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTimelineObj_INTERFACE_DEFINED__ -#define __IAMTimelineObj_INTERFACE_DEFINED__ - -/* interface IAMTimelineObj */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IAMTimelineObj; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("78530B77-61F9-11D2-8CAD-00A024580902") - IAMTimelineObj : public IUnknown - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetStartStop( - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetStartStop2( - REFTIME *pStart, - REFTIME *pStop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE FixTimes( - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE FixTimes2( - REFTIME *pStart, - REFTIME *pStop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetStartStop( - REFERENCE_TIME Start, - REFERENCE_TIME Stop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetStartStop2( - REFTIME Start, - REFTIME Stop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPropertySetter( - /* [retval][out] */ IPropertySetter **pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetPropertySetter( - IPropertySetter *newVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSubObject( - /* [retval][out] */ IUnknown **pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetSubObject( - IUnknown *newVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetSubObjectGUID( - GUID newVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetSubObjectGUIDB( - BSTR newVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSubObjectGUID( - GUID *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSubObjectGUIDB( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSubObjectLoaded( - BOOL *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTimelineType( - TIMELINE_MAJOR_TYPE *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetTimelineType( - TIMELINE_MAJOR_TYPE newVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetUserID( - long *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetUserID( - long newVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetGenID( - long *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetUserName( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetUserName( - BSTR newVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetUserData( - BYTE *pData, - long *pSize) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetUserData( - BYTE *pData, - long Size) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMuted( - BOOL *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMuted( - BOOL newVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetLocked( - BOOL *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetLocked( - BOOL newVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDirtyRange( - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDirtyRange2( - REFTIME *pStart, - REFTIME *pStop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetDirtyRange( - REFERENCE_TIME Start, - REFERENCE_TIME Stop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetDirtyRange2( - REFTIME Start, - REFTIME Stop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ClearDirty( void) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Remove( void) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RemoveAll( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTimelineNoRef( - IAMTimeline **ppResult) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetGroupIBelongTo( - /* [out] */ IAMTimelineGroup **ppGroup) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetEmbedDepth( - long *pVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimelineObjVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimelineObj * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimelineObj * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimelineObj * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStartStop )( - IAMTimelineObj * This, - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStartStop2 )( - IAMTimelineObj * This, - REFTIME *pStart, - REFTIME *pStop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *FixTimes )( - IAMTimelineObj * This, - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *FixTimes2 )( - IAMTimelineObj * This, - REFTIME *pStart, - REFTIME *pStop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetStartStop )( - IAMTimelineObj * This, - REFERENCE_TIME Start, - REFERENCE_TIME Stop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetStartStop2 )( - IAMTimelineObj * This, - REFTIME Start, - REFTIME Stop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPropertySetter )( - IAMTimelineObj * This, - /* [retval][out] */ IPropertySetter **pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetPropertySetter )( - IAMTimelineObj * This, - IPropertySetter *newVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSubObject )( - IAMTimelineObj * This, - /* [retval][out] */ IUnknown **pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetSubObject )( - IAMTimelineObj * This, - IUnknown *newVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetSubObjectGUID )( - IAMTimelineObj * This, - GUID newVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetSubObjectGUIDB )( - IAMTimelineObj * This, - BSTR newVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSubObjectGUID )( - IAMTimelineObj * This, - GUID *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSubObjectGUIDB )( - IAMTimelineObj * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSubObjectLoaded )( - IAMTimelineObj * This, - BOOL *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTimelineType )( - IAMTimelineObj * This, - TIMELINE_MAJOR_TYPE *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetTimelineType )( - IAMTimelineObj * This, - TIMELINE_MAJOR_TYPE newVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetUserID )( - IAMTimelineObj * This, - long *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetUserID )( - IAMTimelineObj * This, - long newVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetGenID )( - IAMTimelineObj * This, - long *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetUserName )( - IAMTimelineObj * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetUserName )( - IAMTimelineObj * This, - BSTR newVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetUserData )( - IAMTimelineObj * This, - BYTE *pData, - long *pSize); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetUserData )( - IAMTimelineObj * This, - BYTE *pData, - long Size); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMuted )( - IAMTimelineObj * This, - BOOL *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMuted )( - IAMTimelineObj * This, - BOOL newVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetLocked )( - IAMTimelineObj * This, - BOOL *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetLocked )( - IAMTimelineObj * This, - BOOL newVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDirtyRange )( - IAMTimelineObj * This, - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDirtyRange2 )( - IAMTimelineObj * This, - REFTIME *pStart, - REFTIME *pStop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetDirtyRange )( - IAMTimelineObj * This, - REFERENCE_TIME Start, - REFERENCE_TIME Stop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetDirtyRange2 )( - IAMTimelineObj * This, - REFTIME Start, - REFTIME Stop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ClearDirty )( - IAMTimelineObj * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - IAMTimelineObj * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemoveAll )( - IAMTimelineObj * This); - - HRESULT ( STDMETHODCALLTYPE *GetTimelineNoRef )( - IAMTimelineObj * This, - IAMTimeline **ppResult); - - HRESULT ( STDMETHODCALLTYPE *GetGroupIBelongTo )( - IAMTimelineObj * This, - /* [out] */ IAMTimelineGroup **ppGroup); - - HRESULT ( STDMETHODCALLTYPE *GetEmbedDepth )( - IAMTimelineObj * This, - long *pVal); - - END_INTERFACE - } IAMTimelineObjVtbl; - - interface IAMTimelineObj - { - CONST_VTBL struct IAMTimelineObjVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimelineObj_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimelineObj_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimelineObj_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimelineObj_GetStartStop(This,pStart,pStop) \ - (This)->lpVtbl -> GetStartStop(This,pStart,pStop) - -#define IAMTimelineObj_GetStartStop2(This,pStart,pStop) \ - (This)->lpVtbl -> GetStartStop2(This,pStart,pStop) - -#define IAMTimelineObj_FixTimes(This,pStart,pStop) \ - (This)->lpVtbl -> FixTimes(This,pStart,pStop) - -#define IAMTimelineObj_FixTimes2(This,pStart,pStop) \ - (This)->lpVtbl -> FixTimes2(This,pStart,pStop) - -#define IAMTimelineObj_SetStartStop(This,Start,Stop) \ - (This)->lpVtbl -> SetStartStop(This,Start,Stop) - -#define IAMTimelineObj_SetStartStop2(This,Start,Stop) \ - (This)->lpVtbl -> SetStartStop2(This,Start,Stop) - -#define IAMTimelineObj_GetPropertySetter(This,pVal) \ - (This)->lpVtbl -> GetPropertySetter(This,pVal) - -#define IAMTimelineObj_SetPropertySetter(This,newVal) \ - (This)->lpVtbl -> SetPropertySetter(This,newVal) - -#define IAMTimelineObj_GetSubObject(This,pVal) \ - (This)->lpVtbl -> GetSubObject(This,pVal) - -#define IAMTimelineObj_SetSubObject(This,newVal) \ - (This)->lpVtbl -> SetSubObject(This,newVal) - -#define IAMTimelineObj_SetSubObjectGUID(This,newVal) \ - (This)->lpVtbl -> SetSubObjectGUID(This,newVal) - -#define IAMTimelineObj_SetSubObjectGUIDB(This,newVal) \ - (This)->lpVtbl -> SetSubObjectGUIDB(This,newVal) - -#define IAMTimelineObj_GetSubObjectGUID(This,pVal) \ - (This)->lpVtbl -> GetSubObjectGUID(This,pVal) - -#define IAMTimelineObj_GetSubObjectGUIDB(This,pVal) \ - (This)->lpVtbl -> GetSubObjectGUIDB(This,pVal) - -#define IAMTimelineObj_GetSubObjectLoaded(This,pVal) \ - (This)->lpVtbl -> GetSubObjectLoaded(This,pVal) - -#define IAMTimelineObj_GetTimelineType(This,pVal) \ - (This)->lpVtbl -> GetTimelineType(This,pVal) - -#define IAMTimelineObj_SetTimelineType(This,newVal) \ - (This)->lpVtbl -> SetTimelineType(This,newVal) - -#define IAMTimelineObj_GetUserID(This,pVal) \ - (This)->lpVtbl -> GetUserID(This,pVal) - -#define IAMTimelineObj_SetUserID(This,newVal) \ - (This)->lpVtbl -> SetUserID(This,newVal) - -#define IAMTimelineObj_GetGenID(This,pVal) \ - (This)->lpVtbl -> GetGenID(This,pVal) - -#define IAMTimelineObj_GetUserName(This,pVal) \ - (This)->lpVtbl -> GetUserName(This,pVal) - -#define IAMTimelineObj_SetUserName(This,newVal) \ - (This)->lpVtbl -> SetUserName(This,newVal) - -#define IAMTimelineObj_GetUserData(This,pData,pSize) \ - (This)->lpVtbl -> GetUserData(This,pData,pSize) - -#define IAMTimelineObj_SetUserData(This,pData,Size) \ - (This)->lpVtbl -> SetUserData(This,pData,Size) - -#define IAMTimelineObj_GetMuted(This,pVal) \ - (This)->lpVtbl -> GetMuted(This,pVal) - -#define IAMTimelineObj_SetMuted(This,newVal) \ - (This)->lpVtbl -> SetMuted(This,newVal) - -#define IAMTimelineObj_GetLocked(This,pVal) \ - (This)->lpVtbl -> GetLocked(This,pVal) - -#define IAMTimelineObj_SetLocked(This,newVal) \ - (This)->lpVtbl -> SetLocked(This,newVal) - -#define IAMTimelineObj_GetDirtyRange(This,pStart,pStop) \ - (This)->lpVtbl -> GetDirtyRange(This,pStart,pStop) - -#define IAMTimelineObj_GetDirtyRange2(This,pStart,pStop) \ - (This)->lpVtbl -> GetDirtyRange2(This,pStart,pStop) - -#define IAMTimelineObj_SetDirtyRange(This,Start,Stop) \ - (This)->lpVtbl -> SetDirtyRange(This,Start,Stop) - -#define IAMTimelineObj_SetDirtyRange2(This,Start,Stop) \ - (This)->lpVtbl -> SetDirtyRange2(This,Start,Stop) - -#define IAMTimelineObj_ClearDirty(This) \ - (This)->lpVtbl -> ClearDirty(This) - -#define IAMTimelineObj_Remove(This) \ - (This)->lpVtbl -> Remove(This) - -#define IAMTimelineObj_RemoveAll(This) \ - (This)->lpVtbl -> RemoveAll(This) - -#define IAMTimelineObj_GetTimelineNoRef(This,ppResult) \ - (This)->lpVtbl -> GetTimelineNoRef(This,ppResult) - -#define IAMTimelineObj_GetGroupIBelongTo(This,ppGroup) \ - (This)->lpVtbl -> GetGroupIBelongTo(This,ppGroup) - -#define IAMTimelineObj_GetEmbedDepth(This,pVal) \ - (This)->lpVtbl -> GetEmbedDepth(This,pVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetStartStop_Proxy( - IAMTimelineObj * This, - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop); - - -void __RPC_STUB IAMTimelineObj_GetStartStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetStartStop2_Proxy( - IAMTimelineObj * This, - REFTIME *pStart, - REFTIME *pStop); - - -void __RPC_STUB IAMTimelineObj_GetStartStop2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_FixTimes_Proxy( - IAMTimelineObj * This, - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop); - - -void __RPC_STUB IAMTimelineObj_FixTimes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_FixTimes2_Proxy( - IAMTimelineObj * This, - REFTIME *pStart, - REFTIME *pStop); - - -void __RPC_STUB IAMTimelineObj_FixTimes2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetStartStop_Proxy( - IAMTimelineObj * This, - REFERENCE_TIME Start, - REFERENCE_TIME Stop); - - -void __RPC_STUB IAMTimelineObj_SetStartStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetStartStop2_Proxy( - IAMTimelineObj * This, - REFTIME Start, - REFTIME Stop); - - -void __RPC_STUB IAMTimelineObj_SetStartStop2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetPropertySetter_Proxy( - IAMTimelineObj * This, - /* [retval][out] */ IPropertySetter **pVal); - - -void __RPC_STUB IAMTimelineObj_GetPropertySetter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetPropertySetter_Proxy( - IAMTimelineObj * This, - IPropertySetter *newVal); - - -void __RPC_STUB IAMTimelineObj_SetPropertySetter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetSubObject_Proxy( - IAMTimelineObj * This, - /* [retval][out] */ IUnknown **pVal); - - -void __RPC_STUB IAMTimelineObj_GetSubObject_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetSubObject_Proxy( - IAMTimelineObj * This, - IUnknown *newVal); - - -void __RPC_STUB IAMTimelineObj_SetSubObject_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetSubObjectGUID_Proxy( - IAMTimelineObj * This, - GUID newVal); - - -void __RPC_STUB IAMTimelineObj_SetSubObjectGUID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetSubObjectGUIDB_Proxy( - IAMTimelineObj * This, - BSTR newVal); - - -void __RPC_STUB IAMTimelineObj_SetSubObjectGUIDB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetSubObjectGUID_Proxy( - IAMTimelineObj * This, - GUID *pVal); - - -void __RPC_STUB IAMTimelineObj_GetSubObjectGUID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetSubObjectGUIDB_Proxy( - IAMTimelineObj * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB IAMTimelineObj_GetSubObjectGUIDB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetSubObjectLoaded_Proxy( - IAMTimelineObj * This, - BOOL *pVal); - - -void __RPC_STUB IAMTimelineObj_GetSubObjectLoaded_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetTimelineType_Proxy( - IAMTimelineObj * This, - TIMELINE_MAJOR_TYPE *pVal); - - -void __RPC_STUB IAMTimelineObj_GetTimelineType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetTimelineType_Proxy( - IAMTimelineObj * This, - TIMELINE_MAJOR_TYPE newVal); - - -void __RPC_STUB IAMTimelineObj_SetTimelineType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetUserID_Proxy( - IAMTimelineObj * This, - long *pVal); - - -void __RPC_STUB IAMTimelineObj_GetUserID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetUserID_Proxy( - IAMTimelineObj * This, - long newVal); - - -void __RPC_STUB IAMTimelineObj_SetUserID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetGenID_Proxy( - IAMTimelineObj * This, - long *pVal); - - -void __RPC_STUB IAMTimelineObj_GetGenID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetUserName_Proxy( - IAMTimelineObj * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB IAMTimelineObj_GetUserName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetUserName_Proxy( - IAMTimelineObj * This, - BSTR newVal); - - -void __RPC_STUB IAMTimelineObj_SetUserName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetUserData_Proxy( - IAMTimelineObj * This, - BYTE *pData, - long *pSize); - - -void __RPC_STUB IAMTimelineObj_GetUserData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetUserData_Proxy( - IAMTimelineObj * This, - BYTE *pData, - long Size); - - -void __RPC_STUB IAMTimelineObj_SetUserData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetMuted_Proxy( - IAMTimelineObj * This, - BOOL *pVal); - - -void __RPC_STUB IAMTimelineObj_GetMuted_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetMuted_Proxy( - IAMTimelineObj * This, - BOOL newVal); - - -void __RPC_STUB IAMTimelineObj_SetMuted_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetLocked_Proxy( - IAMTimelineObj * This, - BOOL *pVal); - - -void __RPC_STUB IAMTimelineObj_GetLocked_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetLocked_Proxy( - IAMTimelineObj * This, - BOOL newVal); - - -void __RPC_STUB IAMTimelineObj_SetLocked_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetDirtyRange_Proxy( - IAMTimelineObj * This, - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop); - - -void __RPC_STUB IAMTimelineObj_GetDirtyRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetDirtyRange2_Proxy( - IAMTimelineObj * This, - REFTIME *pStart, - REFTIME *pStop); - - -void __RPC_STUB IAMTimelineObj_GetDirtyRange2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetDirtyRange_Proxy( - IAMTimelineObj * This, - REFERENCE_TIME Start, - REFERENCE_TIME Stop); - - -void __RPC_STUB IAMTimelineObj_SetDirtyRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_SetDirtyRange2_Proxy( - IAMTimelineObj * This, - REFTIME Start, - REFTIME Stop); - - -void __RPC_STUB IAMTimelineObj_SetDirtyRange2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_ClearDirty_Proxy( - IAMTimelineObj * This); - - -void __RPC_STUB IAMTimelineObj_ClearDirty_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_Remove_Proxy( - IAMTimelineObj * This); - - -void __RPC_STUB IAMTimelineObj_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineObj_RemoveAll_Proxy( - IAMTimelineObj * This); - - -void __RPC_STUB IAMTimelineObj_RemoveAll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetTimelineNoRef_Proxy( - IAMTimelineObj * This, - IAMTimeline **ppResult); - - -void __RPC_STUB IAMTimelineObj_GetTimelineNoRef_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetGroupIBelongTo_Proxy( - IAMTimelineObj * This, - /* [out] */ IAMTimelineGroup **ppGroup); - - -void __RPC_STUB IAMTimelineObj_GetGroupIBelongTo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineObj_GetEmbedDepth_Proxy( - IAMTimelineObj * This, - long *pVal); - - -void __RPC_STUB IAMTimelineObj_GetEmbedDepth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimelineObj_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTimelineEffectable_INTERFACE_DEFINED__ -#define __IAMTimelineEffectable_INTERFACE_DEFINED__ - -/* interface IAMTimelineEffectable */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimelineEffectable; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("EAE58537-622E-11d2-8CAD-00A024580902") - IAMTimelineEffectable : public IUnknown - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EffectInsBefore( - IAMTimelineObj *pFX, - long priority) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EffectSwapPriorities( - long PriorityA, - long PriorityB) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EffectGetCount( - long *pCount) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetEffect( - /* [out] */ IAMTimelineObj **ppFx, - long Which) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimelineEffectableVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimelineEffectable * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimelineEffectable * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimelineEffectable * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EffectInsBefore )( - IAMTimelineEffectable * This, - IAMTimelineObj *pFX, - long priority); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EffectSwapPriorities )( - IAMTimelineEffectable * This, - long PriorityA, - long PriorityB); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EffectGetCount )( - IAMTimelineEffectable * This, - long *pCount); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetEffect )( - IAMTimelineEffectable * This, - /* [out] */ IAMTimelineObj **ppFx, - long Which); - - END_INTERFACE - } IAMTimelineEffectableVtbl; - - interface IAMTimelineEffectable - { - CONST_VTBL struct IAMTimelineEffectableVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimelineEffectable_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimelineEffectable_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimelineEffectable_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimelineEffectable_EffectInsBefore(This,pFX,priority) \ - (This)->lpVtbl -> EffectInsBefore(This,pFX,priority) - -#define IAMTimelineEffectable_EffectSwapPriorities(This,PriorityA,PriorityB) \ - (This)->lpVtbl -> EffectSwapPriorities(This,PriorityA,PriorityB) - -#define IAMTimelineEffectable_EffectGetCount(This,pCount) \ - (This)->lpVtbl -> EffectGetCount(This,pCount) - -#define IAMTimelineEffectable_GetEffect(This,ppFx,Which) \ - (This)->lpVtbl -> GetEffect(This,ppFx,Which) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineEffectable_EffectInsBefore_Proxy( - IAMTimelineEffectable * This, - IAMTimelineObj *pFX, - long priority); - - -void __RPC_STUB IAMTimelineEffectable_EffectInsBefore_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineEffectable_EffectSwapPriorities_Proxy( - IAMTimelineEffectable * This, - long PriorityA, - long PriorityB); - - -void __RPC_STUB IAMTimelineEffectable_EffectSwapPriorities_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineEffectable_EffectGetCount_Proxy( - IAMTimelineEffectable * This, - long *pCount); - - -void __RPC_STUB IAMTimelineEffectable_EffectGetCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineEffectable_GetEffect_Proxy( - IAMTimelineEffectable * This, - /* [out] */ IAMTimelineObj **ppFx, - long Which); - - -void __RPC_STUB IAMTimelineEffectable_GetEffect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimelineEffectable_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTimelineEffect_INTERFACE_DEFINED__ -#define __IAMTimelineEffect_INTERFACE_DEFINED__ - -/* interface IAMTimelineEffect */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimelineEffect; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("BCE0C264-622D-11d2-8CAD-00A024580902") - IAMTimelineEffect : public IUnknown - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EffectGetPriority( - long *pVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimelineEffectVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimelineEffect * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimelineEffect * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimelineEffect * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EffectGetPriority )( - IAMTimelineEffect * This, - long *pVal); - - END_INTERFACE - } IAMTimelineEffectVtbl; - - interface IAMTimelineEffect - { - CONST_VTBL struct IAMTimelineEffectVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimelineEffect_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimelineEffect_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimelineEffect_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimelineEffect_EffectGetPriority(This,pVal) \ - (This)->lpVtbl -> EffectGetPriority(This,pVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineEffect_EffectGetPriority_Proxy( - IAMTimelineEffect * This, - long *pVal); - - -void __RPC_STUB IAMTimelineEffect_EffectGetPriority_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimelineEffect_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTimelineTransable_INTERFACE_DEFINED__ -#define __IAMTimelineTransable_INTERFACE_DEFINED__ - -/* interface IAMTimelineTransable */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimelineTransable; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("378FA386-622E-11d2-8CAD-00A024580902") - IAMTimelineTransable : public IUnknown - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE TransAdd( - IAMTimelineObj *pTrans) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE TransGetCount( - long *pCount) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetNextTrans( - /* [out] */ IAMTimelineObj **ppTrans, - REFERENCE_TIME *pInOut) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetNextTrans2( - /* [out] */ IAMTimelineObj **ppTrans, - REFTIME *pInOut) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTransAtTime( - /* [out] */ IAMTimelineObj **ppObj, - REFERENCE_TIME Time, - long SearchDirection) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTransAtTime2( - /* [out] */ IAMTimelineObj **ppObj, - REFTIME Time, - long SearchDirection) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimelineTransableVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimelineTransable * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimelineTransable * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimelineTransable * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *TransAdd )( - IAMTimelineTransable * This, - IAMTimelineObj *pTrans); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *TransGetCount )( - IAMTimelineTransable * This, - long *pCount); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetNextTrans )( - IAMTimelineTransable * This, - /* [out] */ IAMTimelineObj **ppTrans, - REFERENCE_TIME *pInOut); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetNextTrans2 )( - IAMTimelineTransable * This, - /* [out] */ IAMTimelineObj **ppTrans, - REFTIME *pInOut); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTransAtTime )( - IAMTimelineTransable * This, - /* [out] */ IAMTimelineObj **ppObj, - REFERENCE_TIME Time, - long SearchDirection); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTransAtTime2 )( - IAMTimelineTransable * This, - /* [out] */ IAMTimelineObj **ppObj, - REFTIME Time, - long SearchDirection); - - END_INTERFACE - } IAMTimelineTransableVtbl; - - interface IAMTimelineTransable - { - CONST_VTBL struct IAMTimelineTransableVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimelineTransable_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimelineTransable_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimelineTransable_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimelineTransable_TransAdd(This,pTrans) \ - (This)->lpVtbl -> TransAdd(This,pTrans) - -#define IAMTimelineTransable_TransGetCount(This,pCount) \ - (This)->lpVtbl -> TransGetCount(This,pCount) - -#define IAMTimelineTransable_GetNextTrans(This,ppTrans,pInOut) \ - (This)->lpVtbl -> GetNextTrans(This,ppTrans,pInOut) - -#define IAMTimelineTransable_GetNextTrans2(This,ppTrans,pInOut) \ - (This)->lpVtbl -> GetNextTrans2(This,ppTrans,pInOut) - -#define IAMTimelineTransable_GetTransAtTime(This,ppObj,Time,SearchDirection) \ - (This)->lpVtbl -> GetTransAtTime(This,ppObj,Time,SearchDirection) - -#define IAMTimelineTransable_GetTransAtTime2(This,ppObj,Time,SearchDirection) \ - (This)->lpVtbl -> GetTransAtTime2(This,ppObj,Time,SearchDirection) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTransable_TransAdd_Proxy( - IAMTimelineTransable * This, - IAMTimelineObj *pTrans); - - -void __RPC_STUB IAMTimelineTransable_TransAdd_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTransable_TransGetCount_Proxy( - IAMTimelineTransable * This, - long *pCount); - - -void __RPC_STUB IAMTimelineTransable_TransGetCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTransable_GetNextTrans_Proxy( - IAMTimelineTransable * This, - /* [out] */ IAMTimelineObj **ppTrans, - REFERENCE_TIME *pInOut); - - -void __RPC_STUB IAMTimelineTransable_GetNextTrans_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTransable_GetNextTrans2_Proxy( - IAMTimelineTransable * This, - /* [out] */ IAMTimelineObj **ppTrans, - REFTIME *pInOut); - - -void __RPC_STUB IAMTimelineTransable_GetNextTrans2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTransable_GetTransAtTime_Proxy( - IAMTimelineTransable * This, - /* [out] */ IAMTimelineObj **ppObj, - REFERENCE_TIME Time, - long SearchDirection); - - -void __RPC_STUB IAMTimelineTransable_GetTransAtTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTransable_GetTransAtTime2_Proxy( - IAMTimelineTransable * This, - /* [out] */ IAMTimelineObj **ppObj, - REFTIME Time, - long SearchDirection); - - -void __RPC_STUB IAMTimelineTransable_GetTransAtTime2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimelineTransable_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTimelineSplittable_INTERFACE_DEFINED__ -#define __IAMTimelineSplittable_INTERFACE_DEFINED__ - -/* interface IAMTimelineSplittable */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimelineSplittable; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("A0F840A0-D590-11d2-8D55-00A0C9441E20") - IAMTimelineSplittable : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SplitAt( - REFERENCE_TIME Time) = 0; - - virtual HRESULT STDMETHODCALLTYPE SplitAt2( - REFTIME Time) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimelineSplittableVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimelineSplittable * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimelineSplittable * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimelineSplittable * This); - - HRESULT ( STDMETHODCALLTYPE *SplitAt )( - IAMTimelineSplittable * This, - REFERENCE_TIME Time); - - HRESULT ( STDMETHODCALLTYPE *SplitAt2 )( - IAMTimelineSplittable * This, - REFTIME Time); - - END_INTERFACE - } IAMTimelineSplittableVtbl; - - interface IAMTimelineSplittable - { - CONST_VTBL struct IAMTimelineSplittableVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimelineSplittable_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimelineSplittable_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimelineSplittable_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimelineSplittable_SplitAt(This,Time) \ - (This)->lpVtbl -> SplitAt(This,Time) - -#define IAMTimelineSplittable_SplitAt2(This,Time) \ - (This)->lpVtbl -> SplitAt2(This,Time) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMTimelineSplittable_SplitAt_Proxy( - IAMTimelineSplittable * This, - REFERENCE_TIME Time); - - -void __RPC_STUB IAMTimelineSplittable_SplitAt_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineSplittable_SplitAt2_Proxy( - IAMTimelineSplittable * This, - REFTIME Time); - - -void __RPC_STUB IAMTimelineSplittable_SplitAt2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimelineSplittable_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTimelineTrans_INTERFACE_DEFINED__ -#define __IAMTimelineTrans_INTERFACE_DEFINED__ - -/* interface IAMTimelineTrans */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimelineTrans; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("BCE0C265-622D-11d2-8CAD-00A024580902") - IAMTimelineTrans : public IUnknown - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCutPoint( - REFERENCE_TIME *pTLTime) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCutPoint2( - REFTIME *pTLTime) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetCutPoint( - REFERENCE_TIME TLTime) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetCutPoint2( - REFTIME TLTime) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSwapInputs( - BOOL *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetSwapInputs( - BOOL pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCutsOnly( - BOOL *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetCutsOnly( - BOOL pVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimelineTransVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimelineTrans * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimelineTrans * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimelineTrans * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCutPoint )( - IAMTimelineTrans * This, - REFERENCE_TIME *pTLTime); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCutPoint2 )( - IAMTimelineTrans * This, - REFTIME *pTLTime); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCutPoint )( - IAMTimelineTrans * This, - REFERENCE_TIME TLTime); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCutPoint2 )( - IAMTimelineTrans * This, - REFTIME TLTime); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSwapInputs )( - IAMTimelineTrans * This, - BOOL *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetSwapInputs )( - IAMTimelineTrans * This, - BOOL pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCutsOnly )( - IAMTimelineTrans * This, - BOOL *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCutsOnly )( - IAMTimelineTrans * This, - BOOL pVal); - - END_INTERFACE - } IAMTimelineTransVtbl; - - interface IAMTimelineTrans - { - CONST_VTBL struct IAMTimelineTransVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimelineTrans_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimelineTrans_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimelineTrans_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimelineTrans_GetCutPoint(This,pTLTime) \ - (This)->lpVtbl -> GetCutPoint(This,pTLTime) - -#define IAMTimelineTrans_GetCutPoint2(This,pTLTime) \ - (This)->lpVtbl -> GetCutPoint2(This,pTLTime) - -#define IAMTimelineTrans_SetCutPoint(This,TLTime) \ - (This)->lpVtbl -> SetCutPoint(This,TLTime) - -#define IAMTimelineTrans_SetCutPoint2(This,TLTime) \ - (This)->lpVtbl -> SetCutPoint2(This,TLTime) - -#define IAMTimelineTrans_GetSwapInputs(This,pVal) \ - (This)->lpVtbl -> GetSwapInputs(This,pVal) - -#define IAMTimelineTrans_SetSwapInputs(This,pVal) \ - (This)->lpVtbl -> SetSwapInputs(This,pVal) - -#define IAMTimelineTrans_GetCutsOnly(This,pVal) \ - (This)->lpVtbl -> GetCutsOnly(This,pVal) - -#define IAMTimelineTrans_SetCutsOnly(This,pVal) \ - (This)->lpVtbl -> SetCutsOnly(This,pVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrans_GetCutPoint_Proxy( - IAMTimelineTrans * This, - REFERENCE_TIME *pTLTime); - - -void __RPC_STUB IAMTimelineTrans_GetCutPoint_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrans_GetCutPoint2_Proxy( - IAMTimelineTrans * This, - REFTIME *pTLTime); - - -void __RPC_STUB IAMTimelineTrans_GetCutPoint2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrans_SetCutPoint_Proxy( - IAMTimelineTrans * This, - REFERENCE_TIME TLTime); - - -void __RPC_STUB IAMTimelineTrans_SetCutPoint_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrans_SetCutPoint2_Proxy( - IAMTimelineTrans * This, - REFTIME TLTime); - - -void __RPC_STUB IAMTimelineTrans_SetCutPoint2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrans_GetSwapInputs_Proxy( - IAMTimelineTrans * This, - BOOL *pVal); - - -void __RPC_STUB IAMTimelineTrans_GetSwapInputs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrans_SetSwapInputs_Proxy( - IAMTimelineTrans * This, - BOOL pVal); - - -void __RPC_STUB IAMTimelineTrans_SetSwapInputs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrans_GetCutsOnly_Proxy( - IAMTimelineTrans * This, - BOOL *pVal); - - -void __RPC_STUB IAMTimelineTrans_GetCutsOnly_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrans_SetCutsOnly_Proxy( - IAMTimelineTrans * This, - BOOL pVal); - - -void __RPC_STUB IAMTimelineTrans_SetCutsOnly_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimelineTrans_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTimelineSrc_INTERFACE_DEFINED__ -#define __IAMTimelineSrc_INTERFACE_DEFINED__ - -/* interface IAMTimelineSrc */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimelineSrc; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("78530B79-61F9-11D2-8CAD-00A024580902") - IAMTimelineSrc : public IUnknown - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMediaTimes( - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMediaTimes2( - REFTIME *pStart, - REFTIME *pStop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ModifyStopTime( - REFERENCE_TIME Stop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ModifyStopTime2( - REFTIME Stop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE FixMediaTimes( - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE FixMediaTimes2( - REFTIME *pStart, - REFTIME *pStop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMediaTimes( - REFERENCE_TIME Start, - REFERENCE_TIME Stop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMediaTimes2( - REFTIME Start, - REFTIME Stop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMediaLength( - REFERENCE_TIME Length) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMediaLength2( - REFTIME Length) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMediaLength( - REFERENCE_TIME *pLength) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMediaLength2( - REFTIME *pLength) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMediaName( - /* [retval][out] */ BSTR *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMediaName( - BSTR newVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SpliceWithNext( - IAMTimelineObj *pNext) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetStreamNumber( - long *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetStreamNumber( - long Val) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsNormalRate( - BOOL *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDefaultFPS( - double *pFPS) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetDefaultFPS( - double FPS) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetStretchMode( - int *pnStretchMode) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetStretchMode( - int nStretchMode) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimelineSrcVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimelineSrc * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimelineSrc * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimelineSrc * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMediaTimes )( - IAMTimelineSrc * This, - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMediaTimes2 )( - IAMTimelineSrc * This, - REFTIME *pStart, - REFTIME *pStop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ModifyStopTime )( - IAMTimelineSrc * This, - REFERENCE_TIME Stop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ModifyStopTime2 )( - IAMTimelineSrc * This, - REFTIME Stop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *FixMediaTimes )( - IAMTimelineSrc * This, - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *FixMediaTimes2 )( - IAMTimelineSrc * This, - REFTIME *pStart, - REFTIME *pStop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMediaTimes )( - IAMTimelineSrc * This, - REFERENCE_TIME Start, - REFERENCE_TIME Stop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMediaTimes2 )( - IAMTimelineSrc * This, - REFTIME Start, - REFTIME Stop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMediaLength )( - IAMTimelineSrc * This, - REFERENCE_TIME Length); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMediaLength2 )( - IAMTimelineSrc * This, - REFTIME Length); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMediaLength )( - IAMTimelineSrc * This, - REFERENCE_TIME *pLength); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMediaLength2 )( - IAMTimelineSrc * This, - REFTIME *pLength); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMediaName )( - IAMTimelineSrc * This, - /* [retval][out] */ BSTR *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMediaName )( - IAMTimelineSrc * This, - BSTR newVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SpliceWithNext )( - IAMTimelineSrc * This, - IAMTimelineObj *pNext); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStreamNumber )( - IAMTimelineSrc * This, - long *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetStreamNumber )( - IAMTimelineSrc * This, - long Val); - - HRESULT ( STDMETHODCALLTYPE *IsNormalRate )( - IAMTimelineSrc * This, - BOOL *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDefaultFPS )( - IAMTimelineSrc * This, - double *pFPS); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetDefaultFPS )( - IAMTimelineSrc * This, - double FPS); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStretchMode )( - IAMTimelineSrc * This, - int *pnStretchMode); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetStretchMode )( - IAMTimelineSrc * This, - int nStretchMode); - - END_INTERFACE - } IAMTimelineSrcVtbl; - - interface IAMTimelineSrc - { - CONST_VTBL struct IAMTimelineSrcVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimelineSrc_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimelineSrc_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimelineSrc_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimelineSrc_GetMediaTimes(This,pStart,pStop) \ - (This)->lpVtbl -> GetMediaTimes(This,pStart,pStop) - -#define IAMTimelineSrc_GetMediaTimes2(This,pStart,pStop) \ - (This)->lpVtbl -> GetMediaTimes2(This,pStart,pStop) - -#define IAMTimelineSrc_ModifyStopTime(This,Stop) \ - (This)->lpVtbl -> ModifyStopTime(This,Stop) - -#define IAMTimelineSrc_ModifyStopTime2(This,Stop) \ - (This)->lpVtbl -> ModifyStopTime2(This,Stop) - -#define IAMTimelineSrc_FixMediaTimes(This,pStart,pStop) \ - (This)->lpVtbl -> FixMediaTimes(This,pStart,pStop) - -#define IAMTimelineSrc_FixMediaTimes2(This,pStart,pStop) \ - (This)->lpVtbl -> FixMediaTimes2(This,pStart,pStop) - -#define IAMTimelineSrc_SetMediaTimes(This,Start,Stop) \ - (This)->lpVtbl -> SetMediaTimes(This,Start,Stop) - -#define IAMTimelineSrc_SetMediaTimes2(This,Start,Stop) \ - (This)->lpVtbl -> SetMediaTimes2(This,Start,Stop) - -#define IAMTimelineSrc_SetMediaLength(This,Length) \ - (This)->lpVtbl -> SetMediaLength(This,Length) - -#define IAMTimelineSrc_SetMediaLength2(This,Length) \ - (This)->lpVtbl -> SetMediaLength2(This,Length) - -#define IAMTimelineSrc_GetMediaLength(This,pLength) \ - (This)->lpVtbl -> GetMediaLength(This,pLength) - -#define IAMTimelineSrc_GetMediaLength2(This,pLength) \ - (This)->lpVtbl -> GetMediaLength2(This,pLength) - -#define IAMTimelineSrc_GetMediaName(This,pVal) \ - (This)->lpVtbl -> GetMediaName(This,pVal) - -#define IAMTimelineSrc_SetMediaName(This,newVal) \ - (This)->lpVtbl -> SetMediaName(This,newVal) - -#define IAMTimelineSrc_SpliceWithNext(This,pNext) \ - (This)->lpVtbl -> SpliceWithNext(This,pNext) - -#define IAMTimelineSrc_GetStreamNumber(This,pVal) \ - (This)->lpVtbl -> GetStreamNumber(This,pVal) - -#define IAMTimelineSrc_SetStreamNumber(This,Val) \ - (This)->lpVtbl -> SetStreamNumber(This,Val) - -#define IAMTimelineSrc_IsNormalRate(This,pVal) \ - (This)->lpVtbl -> IsNormalRate(This,pVal) - -#define IAMTimelineSrc_GetDefaultFPS(This,pFPS) \ - (This)->lpVtbl -> GetDefaultFPS(This,pFPS) - -#define IAMTimelineSrc_SetDefaultFPS(This,FPS) \ - (This)->lpVtbl -> SetDefaultFPS(This,FPS) - -#define IAMTimelineSrc_GetStretchMode(This,pnStretchMode) \ - (This)->lpVtbl -> GetStretchMode(This,pnStretchMode) - -#define IAMTimelineSrc_SetStretchMode(This,nStretchMode) \ - (This)->lpVtbl -> SetStretchMode(This,nStretchMode) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_GetMediaTimes_Proxy( - IAMTimelineSrc * This, - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop); - - -void __RPC_STUB IAMTimelineSrc_GetMediaTimes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_GetMediaTimes2_Proxy( - IAMTimelineSrc * This, - REFTIME *pStart, - REFTIME *pStop); - - -void __RPC_STUB IAMTimelineSrc_GetMediaTimes2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_ModifyStopTime_Proxy( - IAMTimelineSrc * This, - REFERENCE_TIME Stop); - - -void __RPC_STUB IAMTimelineSrc_ModifyStopTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_ModifyStopTime2_Proxy( - IAMTimelineSrc * This, - REFTIME Stop); - - -void __RPC_STUB IAMTimelineSrc_ModifyStopTime2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_FixMediaTimes_Proxy( - IAMTimelineSrc * This, - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop); - - -void __RPC_STUB IAMTimelineSrc_FixMediaTimes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_FixMediaTimes2_Proxy( - IAMTimelineSrc * This, - REFTIME *pStart, - REFTIME *pStop); - - -void __RPC_STUB IAMTimelineSrc_FixMediaTimes2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_SetMediaTimes_Proxy( - IAMTimelineSrc * This, - REFERENCE_TIME Start, - REFERENCE_TIME Stop); - - -void __RPC_STUB IAMTimelineSrc_SetMediaTimes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_SetMediaTimes2_Proxy( - IAMTimelineSrc * This, - REFTIME Start, - REFTIME Stop); - - -void __RPC_STUB IAMTimelineSrc_SetMediaTimes2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_SetMediaLength_Proxy( - IAMTimelineSrc * This, - REFERENCE_TIME Length); - - -void __RPC_STUB IAMTimelineSrc_SetMediaLength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_SetMediaLength2_Proxy( - IAMTimelineSrc * This, - REFTIME Length); - - -void __RPC_STUB IAMTimelineSrc_SetMediaLength2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_GetMediaLength_Proxy( - IAMTimelineSrc * This, - REFERENCE_TIME *pLength); - - -void __RPC_STUB IAMTimelineSrc_GetMediaLength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_GetMediaLength2_Proxy( - IAMTimelineSrc * This, - REFTIME *pLength); - - -void __RPC_STUB IAMTimelineSrc_GetMediaLength2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_GetMediaName_Proxy( - IAMTimelineSrc * This, - /* [retval][out] */ BSTR *pVal); - - -void __RPC_STUB IAMTimelineSrc_GetMediaName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_SetMediaName_Proxy( - IAMTimelineSrc * This, - BSTR newVal); - - -void __RPC_STUB IAMTimelineSrc_SetMediaName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_SpliceWithNext_Proxy( - IAMTimelineSrc * This, - IAMTimelineObj *pNext); - - -void __RPC_STUB IAMTimelineSrc_SpliceWithNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_GetStreamNumber_Proxy( - IAMTimelineSrc * This, - long *pVal); - - -void __RPC_STUB IAMTimelineSrc_GetStreamNumber_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_SetStreamNumber_Proxy( - IAMTimelineSrc * This, - long Val); - - -void __RPC_STUB IAMTimelineSrc_SetStreamNumber_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineSrc_IsNormalRate_Proxy( - IAMTimelineSrc * This, - BOOL *pVal); - - -void __RPC_STUB IAMTimelineSrc_IsNormalRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_GetDefaultFPS_Proxy( - IAMTimelineSrc * This, - double *pFPS); - - -void __RPC_STUB IAMTimelineSrc_GetDefaultFPS_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_SetDefaultFPS_Proxy( - IAMTimelineSrc * This, - double FPS); - - -void __RPC_STUB IAMTimelineSrc_SetDefaultFPS_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_GetStretchMode_Proxy( - IAMTimelineSrc * This, - int *pnStretchMode); - - -void __RPC_STUB IAMTimelineSrc_GetStretchMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineSrc_SetStretchMode_Proxy( - IAMTimelineSrc * This, - int nStretchMode); - - -void __RPC_STUB IAMTimelineSrc_SetStretchMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimelineSrc_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTimelineTrack_INTERFACE_DEFINED__ -#define __IAMTimelineTrack_INTERFACE_DEFINED__ - -/* interface IAMTimelineTrack */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimelineTrack; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("EAE58538-622E-11d2-8CAD-00A024580902") - IAMTimelineTrack : public IUnknown - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SrcAdd( - IAMTimelineObj *pSource) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetNextSrc( - /* [out] */ IAMTimelineObj **ppSrc, - REFERENCE_TIME *pInOut) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetNextSrc2( - /* [out] */ IAMTimelineObj **ppSrc, - REFTIME *pInOut) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE MoveEverythingBy( - REFERENCE_TIME Start, - REFERENCE_TIME MoveBy) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE MoveEverythingBy2( - REFTIME Start, - REFTIME MoveBy) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSourcesCount( - long *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AreYouBlank( - long *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSrcAtTime( - /* [out] */ IAMTimelineObj **ppSrc, - REFERENCE_TIME Time, - long SearchDirection) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSrcAtTime2( - /* [out] */ IAMTimelineObj **ppSrc, - REFTIME Time, - long SearchDirection) = 0; - - virtual HRESULT STDMETHODCALLTYPE InsertSpace( - REFERENCE_TIME rtStart, - REFERENCE_TIME rtEnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE InsertSpace2( - REFTIME rtStart, - REFTIME rtEnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE ZeroBetween( - REFERENCE_TIME rtStart, - REFERENCE_TIME rtEnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE ZeroBetween2( - REFTIME rtStart, - REFTIME rtEnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNextSrcEx( - IAMTimelineObj *pLast, - /* [out] */ IAMTimelineObj **ppNext) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimelineTrackVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimelineTrack * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimelineTrack * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimelineTrack * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SrcAdd )( - IAMTimelineTrack * This, - IAMTimelineObj *pSource); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetNextSrc )( - IAMTimelineTrack * This, - /* [out] */ IAMTimelineObj **ppSrc, - REFERENCE_TIME *pInOut); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetNextSrc2 )( - IAMTimelineTrack * This, - /* [out] */ IAMTimelineObj **ppSrc, - REFTIME *pInOut); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *MoveEverythingBy )( - IAMTimelineTrack * This, - REFERENCE_TIME Start, - REFERENCE_TIME MoveBy); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *MoveEverythingBy2 )( - IAMTimelineTrack * This, - REFTIME Start, - REFTIME MoveBy); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSourcesCount )( - IAMTimelineTrack * This, - long *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AreYouBlank )( - IAMTimelineTrack * This, - long *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSrcAtTime )( - IAMTimelineTrack * This, - /* [out] */ IAMTimelineObj **ppSrc, - REFERENCE_TIME Time, - long SearchDirection); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSrcAtTime2 )( - IAMTimelineTrack * This, - /* [out] */ IAMTimelineObj **ppSrc, - REFTIME Time, - long SearchDirection); - - HRESULT ( STDMETHODCALLTYPE *InsertSpace )( - IAMTimelineTrack * This, - REFERENCE_TIME rtStart, - REFERENCE_TIME rtEnd); - - HRESULT ( STDMETHODCALLTYPE *InsertSpace2 )( - IAMTimelineTrack * This, - REFTIME rtStart, - REFTIME rtEnd); - - HRESULT ( STDMETHODCALLTYPE *ZeroBetween )( - IAMTimelineTrack * This, - REFERENCE_TIME rtStart, - REFERENCE_TIME rtEnd); - - HRESULT ( STDMETHODCALLTYPE *ZeroBetween2 )( - IAMTimelineTrack * This, - REFTIME rtStart, - REFTIME rtEnd); - - HRESULT ( STDMETHODCALLTYPE *GetNextSrcEx )( - IAMTimelineTrack * This, - IAMTimelineObj *pLast, - /* [out] */ IAMTimelineObj **ppNext); - - END_INTERFACE - } IAMTimelineTrackVtbl; - - interface IAMTimelineTrack - { - CONST_VTBL struct IAMTimelineTrackVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimelineTrack_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimelineTrack_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimelineTrack_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimelineTrack_SrcAdd(This,pSource) \ - (This)->lpVtbl -> SrcAdd(This,pSource) - -#define IAMTimelineTrack_GetNextSrc(This,ppSrc,pInOut) \ - (This)->lpVtbl -> GetNextSrc(This,ppSrc,pInOut) - -#define IAMTimelineTrack_GetNextSrc2(This,ppSrc,pInOut) \ - (This)->lpVtbl -> GetNextSrc2(This,ppSrc,pInOut) - -#define IAMTimelineTrack_MoveEverythingBy(This,Start,MoveBy) \ - (This)->lpVtbl -> MoveEverythingBy(This,Start,MoveBy) - -#define IAMTimelineTrack_MoveEverythingBy2(This,Start,MoveBy) \ - (This)->lpVtbl -> MoveEverythingBy2(This,Start,MoveBy) - -#define IAMTimelineTrack_GetSourcesCount(This,pVal) \ - (This)->lpVtbl -> GetSourcesCount(This,pVal) - -#define IAMTimelineTrack_AreYouBlank(This,pVal) \ - (This)->lpVtbl -> AreYouBlank(This,pVal) - -#define IAMTimelineTrack_GetSrcAtTime(This,ppSrc,Time,SearchDirection) \ - (This)->lpVtbl -> GetSrcAtTime(This,ppSrc,Time,SearchDirection) - -#define IAMTimelineTrack_GetSrcAtTime2(This,ppSrc,Time,SearchDirection) \ - (This)->lpVtbl -> GetSrcAtTime2(This,ppSrc,Time,SearchDirection) - -#define IAMTimelineTrack_InsertSpace(This,rtStart,rtEnd) \ - (This)->lpVtbl -> InsertSpace(This,rtStart,rtEnd) - -#define IAMTimelineTrack_InsertSpace2(This,rtStart,rtEnd) \ - (This)->lpVtbl -> InsertSpace2(This,rtStart,rtEnd) - -#define IAMTimelineTrack_ZeroBetween(This,rtStart,rtEnd) \ - (This)->lpVtbl -> ZeroBetween(This,rtStart,rtEnd) - -#define IAMTimelineTrack_ZeroBetween2(This,rtStart,rtEnd) \ - (This)->lpVtbl -> ZeroBetween2(This,rtStart,rtEnd) - -#define IAMTimelineTrack_GetNextSrcEx(This,pLast,ppNext) \ - (This)->lpVtbl -> GetNextSrcEx(This,pLast,ppNext) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrack_SrcAdd_Proxy( - IAMTimelineTrack * This, - IAMTimelineObj *pSource); - - -void __RPC_STUB IAMTimelineTrack_SrcAdd_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrack_GetNextSrc_Proxy( - IAMTimelineTrack * This, - /* [out] */ IAMTimelineObj **ppSrc, - REFERENCE_TIME *pInOut); - - -void __RPC_STUB IAMTimelineTrack_GetNextSrc_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrack_GetNextSrc2_Proxy( - IAMTimelineTrack * This, - /* [out] */ IAMTimelineObj **ppSrc, - REFTIME *pInOut); - - -void __RPC_STUB IAMTimelineTrack_GetNextSrc2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrack_MoveEverythingBy_Proxy( - IAMTimelineTrack * This, - REFERENCE_TIME Start, - REFERENCE_TIME MoveBy); - - -void __RPC_STUB IAMTimelineTrack_MoveEverythingBy_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrack_MoveEverythingBy2_Proxy( - IAMTimelineTrack * This, - REFTIME Start, - REFTIME MoveBy); - - -void __RPC_STUB IAMTimelineTrack_MoveEverythingBy2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrack_GetSourcesCount_Proxy( - IAMTimelineTrack * This, - long *pVal); - - -void __RPC_STUB IAMTimelineTrack_GetSourcesCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrack_AreYouBlank_Proxy( - IAMTimelineTrack * This, - long *pVal); - - -void __RPC_STUB IAMTimelineTrack_AreYouBlank_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrack_GetSrcAtTime_Proxy( - IAMTimelineTrack * This, - /* [out] */ IAMTimelineObj **ppSrc, - REFERENCE_TIME Time, - long SearchDirection); - - -void __RPC_STUB IAMTimelineTrack_GetSrcAtTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineTrack_GetSrcAtTime2_Proxy( - IAMTimelineTrack * This, - /* [out] */ IAMTimelineObj **ppSrc, - REFTIME Time, - long SearchDirection); - - -void __RPC_STUB IAMTimelineTrack_GetSrcAtTime2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineTrack_InsertSpace_Proxy( - IAMTimelineTrack * This, - REFERENCE_TIME rtStart, - REFERENCE_TIME rtEnd); - - -void __RPC_STUB IAMTimelineTrack_InsertSpace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineTrack_InsertSpace2_Proxy( - IAMTimelineTrack * This, - REFTIME rtStart, - REFTIME rtEnd); - - -void __RPC_STUB IAMTimelineTrack_InsertSpace2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineTrack_ZeroBetween_Proxy( - IAMTimelineTrack * This, - REFERENCE_TIME rtStart, - REFERENCE_TIME rtEnd); - - -void __RPC_STUB IAMTimelineTrack_ZeroBetween_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineTrack_ZeroBetween2_Proxy( - IAMTimelineTrack * This, - REFTIME rtStart, - REFTIME rtEnd); - - -void __RPC_STUB IAMTimelineTrack_ZeroBetween2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineTrack_GetNextSrcEx_Proxy( - IAMTimelineTrack * This, - IAMTimelineObj *pLast, - /* [out] */ IAMTimelineObj **ppNext); - - -void __RPC_STUB IAMTimelineTrack_GetNextSrcEx_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimelineTrack_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTimelineVirtualTrack_INTERFACE_DEFINED__ -#define __IAMTimelineVirtualTrack_INTERFACE_DEFINED__ - -/* interface IAMTimelineVirtualTrack */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimelineVirtualTrack; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("A8ED5F80-C2C7-11d2-8D39-00A0C9441E20") - IAMTimelineVirtualTrack : public IUnknown - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE TrackGetPriority( - long *pPriority) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetTrackDirty( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimelineVirtualTrackVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimelineVirtualTrack * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimelineVirtualTrack * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimelineVirtualTrack * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *TrackGetPriority )( - IAMTimelineVirtualTrack * This, - long *pPriority); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetTrackDirty )( - IAMTimelineVirtualTrack * This); - - END_INTERFACE - } IAMTimelineVirtualTrackVtbl; - - interface IAMTimelineVirtualTrack - { - CONST_VTBL struct IAMTimelineVirtualTrackVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimelineVirtualTrack_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimelineVirtualTrack_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimelineVirtualTrack_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimelineVirtualTrack_TrackGetPriority(This,pPriority) \ - (This)->lpVtbl -> TrackGetPriority(This,pPriority) - -#define IAMTimelineVirtualTrack_SetTrackDirty(This) \ - (This)->lpVtbl -> SetTrackDirty(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineVirtualTrack_TrackGetPriority_Proxy( - IAMTimelineVirtualTrack * This, - long *pPriority); - - -void __RPC_STUB IAMTimelineVirtualTrack_TrackGetPriority_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineVirtualTrack_SetTrackDirty_Proxy( - IAMTimelineVirtualTrack * This); - - -void __RPC_STUB IAMTimelineVirtualTrack_SetTrackDirty_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimelineVirtualTrack_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTimelineComp_INTERFACE_DEFINED__ -#define __IAMTimelineComp_INTERFACE_DEFINED__ - -/* interface IAMTimelineComp */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimelineComp; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("EAE58536-622E-11d2-8CAD-00A024580902") - IAMTimelineComp : public IUnknown - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE VTrackInsBefore( - IAMTimelineObj *pVirtualTrack, - long Priority) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE VTrackSwapPriorities( - long VirtualTrackA, - long VirtualTrackB) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE VTrackGetCount( - long *pVal) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetVTrack( - /* [out] */ IAMTimelineObj **ppVirtualTrack, - long Which) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCountOfType( - long *pVal, - long *pValWithComps, - TIMELINE_MAJOR_TYPE MajorType) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetRecursiveLayerOfType( - /* [out] */ IAMTimelineObj **ppVirtualTrack, - long WhichLayer, - TIMELINE_MAJOR_TYPE Type) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetRecursiveLayerOfTypeI( - /* [out] */ IAMTimelineObj **ppVirtualTrack, - /* [out][in] */ long *pWhichLayer, - TIMELINE_MAJOR_TYPE Type) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNextVTrack( - IAMTimelineObj *pVirtualTrack, - /* [out] */ IAMTimelineObj **ppNextVirtualTrack) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimelineCompVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimelineComp * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimelineComp * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimelineComp * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *VTrackInsBefore )( - IAMTimelineComp * This, - IAMTimelineObj *pVirtualTrack, - long Priority); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *VTrackSwapPriorities )( - IAMTimelineComp * This, - long VirtualTrackA, - long VirtualTrackB); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *VTrackGetCount )( - IAMTimelineComp * This, - long *pVal); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVTrack )( - IAMTimelineComp * This, - /* [out] */ IAMTimelineObj **ppVirtualTrack, - long Which); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCountOfType )( - IAMTimelineComp * This, - long *pVal, - long *pValWithComps, - TIMELINE_MAJOR_TYPE MajorType); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetRecursiveLayerOfType )( - IAMTimelineComp * This, - /* [out] */ IAMTimelineObj **ppVirtualTrack, - long WhichLayer, - TIMELINE_MAJOR_TYPE Type); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetRecursiveLayerOfTypeI )( - IAMTimelineComp * This, - /* [out] */ IAMTimelineObj **ppVirtualTrack, - /* [out][in] */ long *pWhichLayer, - TIMELINE_MAJOR_TYPE Type); - - HRESULT ( STDMETHODCALLTYPE *GetNextVTrack )( - IAMTimelineComp * This, - IAMTimelineObj *pVirtualTrack, - /* [out] */ IAMTimelineObj **ppNextVirtualTrack); - - END_INTERFACE - } IAMTimelineCompVtbl; - - interface IAMTimelineComp - { - CONST_VTBL struct IAMTimelineCompVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimelineComp_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimelineComp_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimelineComp_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimelineComp_VTrackInsBefore(This,pVirtualTrack,Priority) \ - (This)->lpVtbl -> VTrackInsBefore(This,pVirtualTrack,Priority) - -#define IAMTimelineComp_VTrackSwapPriorities(This,VirtualTrackA,VirtualTrackB) \ - (This)->lpVtbl -> VTrackSwapPriorities(This,VirtualTrackA,VirtualTrackB) - -#define IAMTimelineComp_VTrackGetCount(This,pVal) \ - (This)->lpVtbl -> VTrackGetCount(This,pVal) - -#define IAMTimelineComp_GetVTrack(This,ppVirtualTrack,Which) \ - (This)->lpVtbl -> GetVTrack(This,ppVirtualTrack,Which) - -#define IAMTimelineComp_GetCountOfType(This,pVal,pValWithComps,MajorType) \ - (This)->lpVtbl -> GetCountOfType(This,pVal,pValWithComps,MajorType) - -#define IAMTimelineComp_GetRecursiveLayerOfType(This,ppVirtualTrack,WhichLayer,Type) \ - (This)->lpVtbl -> GetRecursiveLayerOfType(This,ppVirtualTrack,WhichLayer,Type) - -#define IAMTimelineComp_GetRecursiveLayerOfTypeI(This,ppVirtualTrack,pWhichLayer,Type) \ - (This)->lpVtbl -> GetRecursiveLayerOfTypeI(This,ppVirtualTrack,pWhichLayer,Type) - -#define IAMTimelineComp_GetNextVTrack(This,pVirtualTrack,ppNextVirtualTrack) \ - (This)->lpVtbl -> GetNextVTrack(This,pVirtualTrack,ppNextVirtualTrack) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineComp_VTrackInsBefore_Proxy( - IAMTimelineComp * This, - IAMTimelineObj *pVirtualTrack, - long Priority); - - -void __RPC_STUB IAMTimelineComp_VTrackInsBefore_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineComp_VTrackSwapPriorities_Proxy( - IAMTimelineComp * This, - long VirtualTrackA, - long VirtualTrackB); - - -void __RPC_STUB IAMTimelineComp_VTrackSwapPriorities_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineComp_VTrackGetCount_Proxy( - IAMTimelineComp * This, - long *pVal); - - -void __RPC_STUB IAMTimelineComp_VTrackGetCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineComp_GetVTrack_Proxy( - IAMTimelineComp * This, - /* [out] */ IAMTimelineObj **ppVirtualTrack, - long Which); - - -void __RPC_STUB IAMTimelineComp_GetVTrack_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineComp_GetCountOfType_Proxy( - IAMTimelineComp * This, - long *pVal, - long *pValWithComps, - TIMELINE_MAJOR_TYPE MajorType); - - -void __RPC_STUB IAMTimelineComp_GetCountOfType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineComp_GetRecursiveLayerOfType_Proxy( - IAMTimelineComp * This, - /* [out] */ IAMTimelineObj **ppVirtualTrack, - long WhichLayer, - TIMELINE_MAJOR_TYPE Type); - - -void __RPC_STUB IAMTimelineComp_GetRecursiveLayerOfType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineComp_GetRecursiveLayerOfTypeI_Proxy( - IAMTimelineComp * This, - /* [out] */ IAMTimelineObj **ppVirtualTrack, - /* [out][in] */ long *pWhichLayer, - TIMELINE_MAJOR_TYPE Type); - - -void __RPC_STUB IAMTimelineComp_GetRecursiveLayerOfTypeI_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineComp_GetNextVTrack_Proxy( - IAMTimelineComp * This, - IAMTimelineObj *pVirtualTrack, - /* [out] */ IAMTimelineObj **ppNextVirtualTrack); - - -void __RPC_STUB IAMTimelineComp_GetNextVTrack_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimelineComp_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTimelineGroup_INTERFACE_DEFINED__ -#define __IAMTimelineGroup_INTERFACE_DEFINED__ - -/* interface IAMTimelineGroup */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimelineGroup; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9EED4F00-B8A6-11d2-8023-00C0DF10D434") - IAMTimelineGroup : public IUnknown - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetTimeline( - IAMTimeline *pTimeline) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTimeline( - /* [out] */ IAMTimeline **ppTimeline) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPriority( - long *pPriority) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMediaType( - /* [out] */ AM_MEDIA_TYPE *__MIDL_0043) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMediaType( - /* [in] */ AM_MEDIA_TYPE *__MIDL_0044) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetOutputFPS( - double FPS) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetOutputFPS( - double *pFPS) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetGroupName( - BSTR pGroupName) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetGroupName( - /* [retval][out] */ BSTR *pGroupName) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetPreviewMode( - BOOL fPreview) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPreviewMode( - BOOL *pfPreview) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMediaTypeForVB( - /* [in] */ long Val) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetOutputBuffering( - /* [out] */ int *pnBuffer) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetOutputBuffering( - /* [in] */ int nBuffer) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSmartRecompressFormat( - long *pFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSmartRecompressFormat( - long **ppFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsSmartRecompressFormatSet( - BOOL *pVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsRecompressFormatDirty( - BOOL *pVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE ClearRecompressFormatDirty( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRecompFormatFromSource( - IAMTimelineSrc *pSource) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimelineGroupVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimelineGroup * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimelineGroup * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimelineGroup * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetTimeline )( - IAMTimelineGroup * This, - IAMTimeline *pTimeline); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTimeline )( - IAMTimelineGroup * This, - /* [out] */ IAMTimeline **ppTimeline); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPriority )( - IAMTimelineGroup * This, - long *pPriority); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMediaType )( - IAMTimelineGroup * This, - /* [out] */ AM_MEDIA_TYPE *__MIDL_0043); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMediaType )( - IAMTimelineGroup * This, - /* [in] */ AM_MEDIA_TYPE *__MIDL_0044); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetOutputFPS )( - IAMTimelineGroup * This, - double FPS); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetOutputFPS )( - IAMTimelineGroup * This, - double *pFPS); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetGroupName )( - IAMTimelineGroup * This, - BSTR pGroupName); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetGroupName )( - IAMTimelineGroup * This, - /* [retval][out] */ BSTR *pGroupName); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetPreviewMode )( - IAMTimelineGroup * This, - BOOL fPreview); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPreviewMode )( - IAMTimelineGroup * This, - BOOL *pfPreview); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMediaTypeForVB )( - IAMTimelineGroup * This, - /* [in] */ long Val); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetOutputBuffering )( - IAMTimelineGroup * This, - /* [out] */ int *pnBuffer); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetOutputBuffering )( - IAMTimelineGroup * This, - /* [in] */ int nBuffer); - - HRESULT ( STDMETHODCALLTYPE *SetSmartRecompressFormat )( - IAMTimelineGroup * This, - long *pFormat); - - HRESULT ( STDMETHODCALLTYPE *GetSmartRecompressFormat )( - IAMTimelineGroup * This, - long **ppFormat); - - HRESULT ( STDMETHODCALLTYPE *IsSmartRecompressFormatSet )( - IAMTimelineGroup * This, - BOOL *pVal); - - HRESULT ( STDMETHODCALLTYPE *IsRecompressFormatDirty )( - IAMTimelineGroup * This, - BOOL *pVal); - - HRESULT ( STDMETHODCALLTYPE *ClearRecompressFormatDirty )( - IAMTimelineGroup * This); - - HRESULT ( STDMETHODCALLTYPE *SetRecompFormatFromSource )( - IAMTimelineGroup * This, - IAMTimelineSrc *pSource); - - END_INTERFACE - } IAMTimelineGroupVtbl; - - interface IAMTimelineGroup - { - CONST_VTBL struct IAMTimelineGroupVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimelineGroup_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimelineGroup_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimelineGroup_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimelineGroup_SetTimeline(This,pTimeline) \ - (This)->lpVtbl -> SetTimeline(This,pTimeline) - -#define IAMTimelineGroup_GetTimeline(This,ppTimeline) \ - (This)->lpVtbl -> GetTimeline(This,ppTimeline) - -#define IAMTimelineGroup_GetPriority(This,pPriority) \ - (This)->lpVtbl -> GetPriority(This,pPriority) - -#define IAMTimelineGroup_GetMediaType(This,__MIDL_0043) \ - (This)->lpVtbl -> GetMediaType(This,__MIDL_0043) - -#define IAMTimelineGroup_SetMediaType(This,__MIDL_0044) \ - (This)->lpVtbl -> SetMediaType(This,__MIDL_0044) - -#define IAMTimelineGroup_SetOutputFPS(This,FPS) \ - (This)->lpVtbl -> SetOutputFPS(This,FPS) - -#define IAMTimelineGroup_GetOutputFPS(This,pFPS) \ - (This)->lpVtbl -> GetOutputFPS(This,pFPS) - -#define IAMTimelineGroup_SetGroupName(This,pGroupName) \ - (This)->lpVtbl -> SetGroupName(This,pGroupName) - -#define IAMTimelineGroup_GetGroupName(This,pGroupName) \ - (This)->lpVtbl -> GetGroupName(This,pGroupName) - -#define IAMTimelineGroup_SetPreviewMode(This,fPreview) \ - (This)->lpVtbl -> SetPreviewMode(This,fPreview) - -#define IAMTimelineGroup_GetPreviewMode(This,pfPreview) \ - (This)->lpVtbl -> GetPreviewMode(This,pfPreview) - -#define IAMTimelineGroup_SetMediaTypeForVB(This,Val) \ - (This)->lpVtbl -> SetMediaTypeForVB(This,Val) - -#define IAMTimelineGroup_GetOutputBuffering(This,pnBuffer) \ - (This)->lpVtbl -> GetOutputBuffering(This,pnBuffer) - -#define IAMTimelineGroup_SetOutputBuffering(This,nBuffer) \ - (This)->lpVtbl -> SetOutputBuffering(This,nBuffer) - -#define IAMTimelineGroup_SetSmartRecompressFormat(This,pFormat) \ - (This)->lpVtbl -> SetSmartRecompressFormat(This,pFormat) - -#define IAMTimelineGroup_GetSmartRecompressFormat(This,ppFormat) \ - (This)->lpVtbl -> GetSmartRecompressFormat(This,ppFormat) - -#define IAMTimelineGroup_IsSmartRecompressFormatSet(This,pVal) \ - (This)->lpVtbl -> IsSmartRecompressFormatSet(This,pVal) - -#define IAMTimelineGroup_IsRecompressFormatDirty(This,pVal) \ - (This)->lpVtbl -> IsRecompressFormatDirty(This,pVal) - -#define IAMTimelineGroup_ClearRecompressFormatDirty(This) \ - (This)->lpVtbl -> ClearRecompressFormatDirty(This) - -#define IAMTimelineGroup_SetRecompFormatFromSource(This,pSource) \ - (This)->lpVtbl -> SetRecompFormatFromSource(This,pSource) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_SetTimeline_Proxy( - IAMTimelineGroup * This, - IAMTimeline *pTimeline); - - -void __RPC_STUB IAMTimelineGroup_SetTimeline_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_GetTimeline_Proxy( - IAMTimelineGroup * This, - /* [out] */ IAMTimeline **ppTimeline); - - -void __RPC_STUB IAMTimelineGroup_GetTimeline_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_GetPriority_Proxy( - IAMTimelineGroup * This, - long *pPriority); - - -void __RPC_STUB IAMTimelineGroup_GetPriority_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_GetMediaType_Proxy( - IAMTimelineGroup * This, - /* [out] */ AM_MEDIA_TYPE *__MIDL_0043); - - -void __RPC_STUB IAMTimelineGroup_GetMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_SetMediaType_Proxy( - IAMTimelineGroup * This, - /* [in] */ AM_MEDIA_TYPE *__MIDL_0044); - - -void __RPC_STUB IAMTimelineGroup_SetMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_SetOutputFPS_Proxy( - IAMTimelineGroup * This, - double FPS); - - -void __RPC_STUB IAMTimelineGroup_SetOutputFPS_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_GetOutputFPS_Proxy( - IAMTimelineGroup * This, - double *pFPS); - - -void __RPC_STUB IAMTimelineGroup_GetOutputFPS_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_SetGroupName_Proxy( - IAMTimelineGroup * This, - BSTR pGroupName); - - -void __RPC_STUB IAMTimelineGroup_SetGroupName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_GetGroupName_Proxy( - IAMTimelineGroup * This, - /* [retval][out] */ BSTR *pGroupName); - - -void __RPC_STUB IAMTimelineGroup_GetGroupName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_SetPreviewMode_Proxy( - IAMTimelineGroup * This, - BOOL fPreview); - - -void __RPC_STUB IAMTimelineGroup_SetPreviewMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_GetPreviewMode_Proxy( - IAMTimelineGroup * This, - BOOL *pfPreview); - - -void __RPC_STUB IAMTimelineGroup_GetPreviewMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_SetMediaTypeForVB_Proxy( - IAMTimelineGroup * This, - /* [in] */ long Val); - - -void __RPC_STUB IAMTimelineGroup_SetMediaTypeForVB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_GetOutputBuffering_Proxy( - IAMTimelineGroup * This, - /* [out] */ int *pnBuffer); - - -void __RPC_STUB IAMTimelineGroup_GetOutputBuffering_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimelineGroup_SetOutputBuffering_Proxy( - IAMTimelineGroup * This, - /* [in] */ int nBuffer); - - -void __RPC_STUB IAMTimelineGroup_SetOutputBuffering_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineGroup_SetSmartRecompressFormat_Proxy( - IAMTimelineGroup * This, - long *pFormat); - - -void __RPC_STUB IAMTimelineGroup_SetSmartRecompressFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineGroup_GetSmartRecompressFormat_Proxy( - IAMTimelineGroup * This, - long **ppFormat); - - -void __RPC_STUB IAMTimelineGroup_GetSmartRecompressFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineGroup_IsSmartRecompressFormatSet_Proxy( - IAMTimelineGroup * This, - BOOL *pVal); - - -void __RPC_STUB IAMTimelineGroup_IsSmartRecompressFormatSet_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineGroup_IsRecompressFormatDirty_Proxy( - IAMTimelineGroup * This, - BOOL *pVal); - - -void __RPC_STUB IAMTimelineGroup_IsRecompressFormatDirty_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineGroup_ClearRecompressFormatDirty_Proxy( - IAMTimelineGroup * This); - - -void __RPC_STUB IAMTimelineGroup_ClearRecompressFormatDirty_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimelineGroup_SetRecompFormatFromSource_Proxy( - IAMTimelineGroup * This, - IAMTimelineSrc *pSource); - - -void __RPC_STUB IAMTimelineGroup_SetRecompFormatFromSource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimelineGroup_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTimeline_INTERFACE_DEFINED__ -#define __IAMTimeline_INTERFACE_DEFINED__ - -/* interface IAMTimeline */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimeline; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("78530B74-61F9-11D2-8CAD-00A024580902") - IAMTimeline : public IUnknown - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateEmptyNode( - /* [out] */ IAMTimelineObj **ppObj, - TIMELINE_MAJOR_TYPE Type) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddGroup( - IAMTimelineObj *pGroup) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemGroupFromList( - IAMTimelineObj *pGroup) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetGroup( - /* [out] */ IAMTimelineObj **ppGroup, - long WhichGroup) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetGroupCount( - long *pCount) = 0; - - virtual HRESULT STDMETHODCALLTYPE ClearAllGroups( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInsertMode( - long *pMode) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetInsertMode( - long Mode) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EnableTransitions( - BOOL fEnabled) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE TransitionsEnabled( - BOOL *pfEnabled) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EnableEffects( - BOOL fEnabled) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EffectsEnabled( - BOOL *pfEnabled) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetInterestRange( - REFERENCE_TIME Start, - REFERENCE_TIME Stop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDuration( - REFERENCE_TIME *pDuration) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDuration2( - double *pDuration) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetDefaultFPS( - double FPS) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDefaultFPS( - double *pFPS) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE IsDirty( - BOOL *pDirty) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDirtyRange( - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCountOfType( - long Group, - long *pVal, - long *pValWithComps, - TIMELINE_MAJOR_TYPE MajorType) = 0; - - virtual HRESULT STDMETHODCALLTYPE ValidateSourceNames( - long ValidateFlags, - IMediaLocator *pOverride, - LONG_PTR NotifyEventHandle) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDefaultTransition( - GUID *pGuid) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultTransition( - GUID *pGuid) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDefaultEffect( - GUID *pGuid) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultEffect( - GUID *pGuid) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDefaultTransitionB( - BSTR pGuid) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultTransitionB( - /* [retval][out] */ BSTR *pGuid) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDefaultEffectB( - BSTR pGuid) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultEffectB( - /* [retval][out] */ BSTR *pGuid) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimelineVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimeline * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimeline * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimeline * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateEmptyNode )( - IAMTimeline * This, - /* [out] */ IAMTimelineObj **ppObj, - TIMELINE_MAJOR_TYPE Type); - - HRESULT ( STDMETHODCALLTYPE *AddGroup )( - IAMTimeline * This, - IAMTimelineObj *pGroup); - - HRESULT ( STDMETHODCALLTYPE *RemGroupFromList )( - IAMTimeline * This, - IAMTimelineObj *pGroup); - - HRESULT ( STDMETHODCALLTYPE *GetGroup )( - IAMTimeline * This, - /* [out] */ IAMTimelineObj **ppGroup, - long WhichGroup); - - HRESULT ( STDMETHODCALLTYPE *GetGroupCount )( - IAMTimeline * This, - long *pCount); - - HRESULT ( STDMETHODCALLTYPE *ClearAllGroups )( - IAMTimeline * This); - - HRESULT ( STDMETHODCALLTYPE *GetInsertMode )( - IAMTimeline * This, - long *pMode); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetInsertMode )( - IAMTimeline * This, - long Mode); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnableTransitions )( - IAMTimeline * This, - BOOL fEnabled); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *TransitionsEnabled )( - IAMTimeline * This, - BOOL *pfEnabled); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnableEffects )( - IAMTimeline * This, - BOOL fEnabled); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EffectsEnabled )( - IAMTimeline * This, - BOOL *pfEnabled); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetInterestRange )( - IAMTimeline * This, - REFERENCE_TIME Start, - REFERENCE_TIME Stop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDuration )( - IAMTimeline * This, - REFERENCE_TIME *pDuration); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDuration2 )( - IAMTimeline * This, - double *pDuration); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetDefaultFPS )( - IAMTimeline * This, - double FPS); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDefaultFPS )( - IAMTimeline * This, - double *pFPS); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *IsDirty )( - IAMTimeline * This, - BOOL *pDirty); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDirtyRange )( - IAMTimeline * This, - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCountOfType )( - IAMTimeline * This, - long Group, - long *pVal, - long *pValWithComps, - TIMELINE_MAJOR_TYPE MajorType); - - HRESULT ( STDMETHODCALLTYPE *ValidateSourceNames )( - IAMTimeline * This, - long ValidateFlags, - IMediaLocator *pOverride, - LONG_PTR NotifyEventHandle); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultTransition )( - IAMTimeline * This, - GUID *pGuid); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultTransition )( - IAMTimeline * This, - GUID *pGuid); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultEffect )( - IAMTimeline * This, - GUID *pGuid); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultEffect )( - IAMTimeline * This, - GUID *pGuid); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultTransitionB )( - IAMTimeline * This, - BSTR pGuid); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultTransitionB )( - IAMTimeline * This, - /* [retval][out] */ BSTR *pGuid); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultEffectB )( - IAMTimeline * This, - BSTR pGuid); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultEffectB )( - IAMTimeline * This, - /* [retval][out] */ BSTR *pGuid); - - END_INTERFACE - } IAMTimelineVtbl; - - interface IAMTimeline - { - CONST_VTBL struct IAMTimelineVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimeline_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimeline_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimeline_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimeline_CreateEmptyNode(This,ppObj,Type) \ - (This)->lpVtbl -> CreateEmptyNode(This,ppObj,Type) - -#define IAMTimeline_AddGroup(This,pGroup) \ - (This)->lpVtbl -> AddGroup(This,pGroup) - -#define IAMTimeline_RemGroupFromList(This,pGroup) \ - (This)->lpVtbl -> RemGroupFromList(This,pGroup) - -#define IAMTimeline_GetGroup(This,ppGroup,WhichGroup) \ - (This)->lpVtbl -> GetGroup(This,ppGroup,WhichGroup) - -#define IAMTimeline_GetGroupCount(This,pCount) \ - (This)->lpVtbl -> GetGroupCount(This,pCount) - -#define IAMTimeline_ClearAllGroups(This) \ - (This)->lpVtbl -> ClearAllGroups(This) - -#define IAMTimeline_GetInsertMode(This,pMode) \ - (This)->lpVtbl -> GetInsertMode(This,pMode) - -#define IAMTimeline_SetInsertMode(This,Mode) \ - (This)->lpVtbl -> SetInsertMode(This,Mode) - -#define IAMTimeline_EnableTransitions(This,fEnabled) \ - (This)->lpVtbl -> EnableTransitions(This,fEnabled) - -#define IAMTimeline_TransitionsEnabled(This,pfEnabled) \ - (This)->lpVtbl -> TransitionsEnabled(This,pfEnabled) - -#define IAMTimeline_EnableEffects(This,fEnabled) \ - (This)->lpVtbl -> EnableEffects(This,fEnabled) - -#define IAMTimeline_EffectsEnabled(This,pfEnabled) \ - (This)->lpVtbl -> EffectsEnabled(This,pfEnabled) - -#define IAMTimeline_SetInterestRange(This,Start,Stop) \ - (This)->lpVtbl -> SetInterestRange(This,Start,Stop) - -#define IAMTimeline_GetDuration(This,pDuration) \ - (This)->lpVtbl -> GetDuration(This,pDuration) - -#define IAMTimeline_GetDuration2(This,pDuration) \ - (This)->lpVtbl -> GetDuration2(This,pDuration) - -#define IAMTimeline_SetDefaultFPS(This,FPS) \ - (This)->lpVtbl -> SetDefaultFPS(This,FPS) - -#define IAMTimeline_GetDefaultFPS(This,pFPS) \ - (This)->lpVtbl -> GetDefaultFPS(This,pFPS) - -#define IAMTimeline_IsDirty(This,pDirty) \ - (This)->lpVtbl -> IsDirty(This,pDirty) - -#define IAMTimeline_GetDirtyRange(This,pStart,pStop) \ - (This)->lpVtbl -> GetDirtyRange(This,pStart,pStop) - -#define IAMTimeline_GetCountOfType(This,Group,pVal,pValWithComps,MajorType) \ - (This)->lpVtbl -> GetCountOfType(This,Group,pVal,pValWithComps,MajorType) - -#define IAMTimeline_ValidateSourceNames(This,ValidateFlags,pOverride,NotifyEventHandle) \ - (This)->lpVtbl -> ValidateSourceNames(This,ValidateFlags,pOverride,NotifyEventHandle) - -#define IAMTimeline_SetDefaultTransition(This,pGuid) \ - (This)->lpVtbl -> SetDefaultTransition(This,pGuid) - -#define IAMTimeline_GetDefaultTransition(This,pGuid) \ - (This)->lpVtbl -> GetDefaultTransition(This,pGuid) - -#define IAMTimeline_SetDefaultEffect(This,pGuid) \ - (This)->lpVtbl -> SetDefaultEffect(This,pGuid) - -#define IAMTimeline_GetDefaultEffect(This,pGuid) \ - (This)->lpVtbl -> GetDefaultEffect(This,pGuid) - -#define IAMTimeline_SetDefaultTransitionB(This,pGuid) \ - (This)->lpVtbl -> SetDefaultTransitionB(This,pGuid) - -#define IAMTimeline_GetDefaultTransitionB(This,pGuid) \ - (This)->lpVtbl -> GetDefaultTransitionB(This,pGuid) - -#define IAMTimeline_SetDefaultEffectB(This,pGuid) \ - (This)->lpVtbl -> SetDefaultEffectB(This,pGuid) - -#define IAMTimeline_GetDefaultEffectB(This,pGuid) \ - (This)->lpVtbl -> GetDefaultEffectB(This,pGuid) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_CreateEmptyNode_Proxy( - IAMTimeline * This, - /* [out] */ IAMTimelineObj **ppObj, - TIMELINE_MAJOR_TYPE Type); - - -void __RPC_STUB IAMTimeline_CreateEmptyNode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_AddGroup_Proxy( - IAMTimeline * This, - IAMTimelineObj *pGroup); - - -void __RPC_STUB IAMTimeline_AddGroup_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_RemGroupFromList_Proxy( - IAMTimeline * This, - IAMTimelineObj *pGroup); - - -void __RPC_STUB IAMTimeline_RemGroupFromList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_GetGroup_Proxy( - IAMTimeline * This, - /* [out] */ IAMTimelineObj **ppGroup, - long WhichGroup); - - -void __RPC_STUB IAMTimeline_GetGroup_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_GetGroupCount_Proxy( - IAMTimeline * This, - long *pCount); - - -void __RPC_STUB IAMTimeline_GetGroupCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_ClearAllGroups_Proxy( - IAMTimeline * This); - - -void __RPC_STUB IAMTimeline_ClearAllGroups_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_GetInsertMode_Proxy( - IAMTimeline * This, - long *pMode); - - -void __RPC_STUB IAMTimeline_GetInsertMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_SetInsertMode_Proxy( - IAMTimeline * This, - long Mode); - - -void __RPC_STUB IAMTimeline_SetInsertMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_EnableTransitions_Proxy( - IAMTimeline * This, - BOOL fEnabled); - - -void __RPC_STUB IAMTimeline_EnableTransitions_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_TransitionsEnabled_Proxy( - IAMTimeline * This, - BOOL *pfEnabled); - - -void __RPC_STUB IAMTimeline_TransitionsEnabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_EnableEffects_Proxy( - IAMTimeline * This, - BOOL fEnabled); - - -void __RPC_STUB IAMTimeline_EnableEffects_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_EffectsEnabled_Proxy( - IAMTimeline * This, - BOOL *pfEnabled); - - -void __RPC_STUB IAMTimeline_EffectsEnabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_SetInterestRange_Proxy( - IAMTimeline * This, - REFERENCE_TIME Start, - REFERENCE_TIME Stop); - - -void __RPC_STUB IAMTimeline_SetInterestRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_GetDuration_Proxy( - IAMTimeline * This, - REFERENCE_TIME *pDuration); - - -void __RPC_STUB IAMTimeline_GetDuration_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_GetDuration2_Proxy( - IAMTimeline * This, - double *pDuration); - - -void __RPC_STUB IAMTimeline_GetDuration2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_SetDefaultFPS_Proxy( - IAMTimeline * This, - double FPS); - - -void __RPC_STUB IAMTimeline_SetDefaultFPS_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_GetDefaultFPS_Proxy( - IAMTimeline * This, - double *pFPS); - - -void __RPC_STUB IAMTimeline_GetDefaultFPS_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_IsDirty_Proxy( - IAMTimeline * This, - BOOL *pDirty); - - -void __RPC_STUB IAMTimeline_IsDirty_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_GetDirtyRange_Proxy( - IAMTimeline * This, - REFERENCE_TIME *pStart, - REFERENCE_TIME *pStop); - - -void __RPC_STUB IAMTimeline_GetDirtyRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMTimeline_GetCountOfType_Proxy( - IAMTimeline * This, - long Group, - long *pVal, - long *pValWithComps, - TIMELINE_MAJOR_TYPE MajorType); - - -void __RPC_STUB IAMTimeline_GetCountOfType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_ValidateSourceNames_Proxy( - IAMTimeline * This, - long ValidateFlags, - IMediaLocator *pOverride, - LONG_PTR NotifyEventHandle); - - -void __RPC_STUB IAMTimeline_ValidateSourceNames_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_SetDefaultTransition_Proxy( - IAMTimeline * This, - GUID *pGuid); - - -void __RPC_STUB IAMTimeline_SetDefaultTransition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_GetDefaultTransition_Proxy( - IAMTimeline * This, - GUID *pGuid); - - -void __RPC_STUB IAMTimeline_GetDefaultTransition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_SetDefaultEffect_Proxy( - IAMTimeline * This, - GUID *pGuid); - - -void __RPC_STUB IAMTimeline_SetDefaultEffect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_GetDefaultEffect_Proxy( - IAMTimeline * This, - GUID *pGuid); - - -void __RPC_STUB IAMTimeline_GetDefaultEffect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_SetDefaultTransitionB_Proxy( - IAMTimeline * This, - BSTR pGuid); - - -void __RPC_STUB IAMTimeline_SetDefaultTransitionB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_GetDefaultTransitionB_Proxy( - IAMTimeline * This, - /* [retval][out] */ BSTR *pGuid); - - -void __RPC_STUB IAMTimeline_GetDefaultTransitionB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_SetDefaultEffectB_Proxy( - IAMTimeline * This, - BSTR pGuid); - - -void __RPC_STUB IAMTimeline_SetDefaultEffectB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimeline_GetDefaultEffectB_Proxy( - IAMTimeline * This, - /* [retval][out] */ BSTR *pGuid); - - -void __RPC_STUB IAMTimeline_GetDefaultEffectB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimeline_INTERFACE_DEFINED__ */ - - -#ifndef __IXml2Dex_INTERFACE_DEFINED__ -#define __IXml2Dex_INTERFACE_DEFINED__ - -/* interface IXml2Dex */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IXml2Dex; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("18C628ED-962A-11D2-8D08-00A0C9441E20") - IXml2Dex : public IDispatch - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateGraphFromFile( - /* [out] */ IUnknown **ppGraph, - IUnknown *pTimeline, - BSTR Filename) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteGrfFile( - IUnknown *pGraph, - BSTR FileName) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteXMLFile( - IUnknown *pTimeline, - BSTR FileName) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReadXMLFile( - IUnknown *pTimeline, - BSTR XMLName) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( - IUnknown *pTimeline, - double dStart, - double dEnd) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteXMLPart( - IUnknown *pTimeline, - double dStart, - double dEnd, - BSTR FileName) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PasteXMLFile( - IUnknown *pTimeline, - double dStart, - BSTR FileName) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CopyXML( - IUnknown *pTimeline, - double dStart, - double dEnd) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PasteXML( - IUnknown *pTimeline, - double dStart) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReadXML( - IUnknown *pTimeline, - IUnknown *pXML) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteXML( - IUnknown *pTimeline, - BSTR *pbstrXML) = 0; - - }; - -#else /* C style interface */ - - typedef struct IXml2DexVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IXml2Dex * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IXml2Dex * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IXml2Dex * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IXml2Dex * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IXml2Dex * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IXml2Dex * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IXml2Dex * 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); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateGraphFromFile )( - IXml2Dex * This, - /* [out] */ IUnknown **ppGraph, - IUnknown *pTimeline, - BSTR Filename); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WriteGrfFile )( - IXml2Dex * This, - IUnknown *pGraph, - BSTR FileName); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WriteXMLFile )( - IXml2Dex * This, - IUnknown *pTimeline, - BSTR FileName); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReadXMLFile )( - IXml2Dex * This, - IUnknown *pTimeline, - BSTR XMLName); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( - IXml2Dex * This, - IUnknown *pTimeline, - double dStart, - double dEnd); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WriteXMLPart )( - IXml2Dex * This, - IUnknown *pTimeline, - double dStart, - double dEnd, - BSTR FileName); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PasteXMLFile )( - IXml2Dex * This, - IUnknown *pTimeline, - double dStart, - BSTR FileName); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyXML )( - IXml2Dex * This, - IUnknown *pTimeline, - double dStart, - double dEnd); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PasteXML )( - IXml2Dex * This, - IUnknown *pTimeline, - double dStart); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Reset )( - IXml2Dex * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReadXML )( - IXml2Dex * This, - IUnknown *pTimeline, - IUnknown *pXML); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WriteXML )( - IXml2Dex * This, - IUnknown *pTimeline, - BSTR *pbstrXML); - - END_INTERFACE - } IXml2DexVtbl; - - interface IXml2Dex - { - CONST_VTBL struct IXml2DexVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IXml2Dex_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IXml2Dex_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IXml2Dex_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IXml2Dex_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IXml2Dex_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IXml2Dex_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IXml2Dex_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IXml2Dex_CreateGraphFromFile(This,ppGraph,pTimeline,Filename) \ - (This)->lpVtbl -> CreateGraphFromFile(This,ppGraph,pTimeline,Filename) - -#define IXml2Dex_WriteGrfFile(This,pGraph,FileName) \ - (This)->lpVtbl -> WriteGrfFile(This,pGraph,FileName) - -#define IXml2Dex_WriteXMLFile(This,pTimeline,FileName) \ - (This)->lpVtbl -> WriteXMLFile(This,pTimeline,FileName) - -#define IXml2Dex_ReadXMLFile(This,pTimeline,XMLName) \ - (This)->lpVtbl -> ReadXMLFile(This,pTimeline,XMLName) - -#define IXml2Dex_Delete(This,pTimeline,dStart,dEnd) \ - (This)->lpVtbl -> Delete(This,pTimeline,dStart,dEnd) - -#define IXml2Dex_WriteXMLPart(This,pTimeline,dStart,dEnd,FileName) \ - (This)->lpVtbl -> WriteXMLPart(This,pTimeline,dStart,dEnd,FileName) - -#define IXml2Dex_PasteXMLFile(This,pTimeline,dStart,FileName) \ - (This)->lpVtbl -> PasteXMLFile(This,pTimeline,dStart,FileName) - -#define IXml2Dex_CopyXML(This,pTimeline,dStart,dEnd) \ - (This)->lpVtbl -> CopyXML(This,pTimeline,dStart,dEnd) - -#define IXml2Dex_PasteXML(This,pTimeline,dStart) \ - (This)->lpVtbl -> PasteXML(This,pTimeline,dStart) - -#define IXml2Dex_Reset(This) \ - (This)->lpVtbl -> Reset(This) - -#define IXml2Dex_ReadXML(This,pTimeline,pXML) \ - (This)->lpVtbl -> ReadXML(This,pTimeline,pXML) - -#define IXml2Dex_WriteXML(This,pTimeline,pbstrXML) \ - (This)->lpVtbl -> WriteXML(This,pTimeline,pbstrXML) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXml2Dex_CreateGraphFromFile_Proxy( - IXml2Dex * This, - /* [out] */ IUnknown **ppGraph, - IUnknown *pTimeline, - BSTR Filename); - - -void __RPC_STUB IXml2Dex_CreateGraphFromFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXml2Dex_WriteGrfFile_Proxy( - IXml2Dex * This, - IUnknown *pGraph, - BSTR FileName); - - -void __RPC_STUB IXml2Dex_WriteGrfFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXml2Dex_WriteXMLFile_Proxy( - IXml2Dex * This, - IUnknown *pTimeline, - BSTR FileName); - - -void __RPC_STUB IXml2Dex_WriteXMLFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXml2Dex_ReadXMLFile_Proxy( - IXml2Dex * This, - IUnknown *pTimeline, - BSTR XMLName); - - -void __RPC_STUB IXml2Dex_ReadXMLFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXml2Dex_Delete_Proxy( - IXml2Dex * This, - IUnknown *pTimeline, - double dStart, - double dEnd); - - -void __RPC_STUB IXml2Dex_Delete_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXml2Dex_WriteXMLPart_Proxy( - IXml2Dex * This, - IUnknown *pTimeline, - double dStart, - double dEnd, - BSTR FileName); - - -void __RPC_STUB IXml2Dex_WriteXMLPart_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXml2Dex_PasteXMLFile_Proxy( - IXml2Dex * This, - IUnknown *pTimeline, - double dStart, - BSTR FileName); - - -void __RPC_STUB IXml2Dex_PasteXMLFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXml2Dex_CopyXML_Proxy( - IXml2Dex * This, - IUnknown *pTimeline, - double dStart, - double dEnd); - - -void __RPC_STUB IXml2Dex_CopyXML_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXml2Dex_PasteXML_Proxy( - IXml2Dex * This, - IUnknown *pTimeline, - double dStart); - - -void __RPC_STUB IXml2Dex_PasteXML_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXml2Dex_Reset_Proxy( - IXml2Dex * This); - - -void __RPC_STUB IXml2Dex_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXml2Dex_ReadXML_Proxy( - IXml2Dex * This, - IUnknown *pTimeline, - IUnknown *pXML); - - -void __RPC_STUB IXml2Dex_ReadXML_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXml2Dex_WriteXML_Proxy( - IXml2Dex * This, - IUnknown *pTimeline, - BSTR *pbstrXML); - - -void __RPC_STUB IXml2Dex_WriteXML_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IXml2Dex_INTERFACE_DEFINED__ */ - - -#ifndef __IAMErrorLog_INTERFACE_DEFINED__ -#define __IAMErrorLog_INTERFACE_DEFINED__ - -/* interface IAMErrorLog */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMErrorLog; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("E43E73A2-0EFA-11d3-9601-00A0C9441E20") - IAMErrorLog : public IUnknown - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE LogError( - long Severity, - BSTR pErrorString, - long ErrorCode, - long hresult, - /* [in] */ VARIANT *pExtraInfo) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMErrorLogVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMErrorLog * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMErrorLog * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMErrorLog * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *LogError )( - IAMErrorLog * This, - long Severity, - BSTR pErrorString, - long ErrorCode, - long hresult, - /* [in] */ VARIANT *pExtraInfo); - - END_INTERFACE - } IAMErrorLogVtbl; - - interface IAMErrorLog - { - CONST_VTBL struct IAMErrorLogVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMErrorLog_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMErrorLog_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMErrorLog_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMErrorLog_LogError(This,Severity,pErrorString,ErrorCode,hresult,pExtraInfo) \ - (This)->lpVtbl -> LogError(This,Severity,pErrorString,ErrorCode,hresult,pExtraInfo) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IAMErrorLog_LogError_Proxy( - IAMErrorLog * This, - long Severity, - BSTR pErrorString, - long ErrorCode, - long hresult, - /* [in] */ VARIANT *pExtraInfo); - - -void __RPC_STUB IAMErrorLog_LogError_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMErrorLog_INTERFACE_DEFINED__ */ - - -#ifndef __IAMSetErrorLog_INTERFACE_DEFINED__ -#define __IAMSetErrorLog_INTERFACE_DEFINED__ - -/* interface IAMSetErrorLog */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IAMSetErrorLog; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("963566DA-BE21-4eaf-88E9-35704F8F52A1") - IAMSetErrorLog : public IUnknown - { - public: - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ErrorLog( - /* [retval][out] */ IAMErrorLog **pVal) = 0; - - virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_ErrorLog( - /* [in] */ IAMErrorLog *newVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMSetErrorLogVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMSetErrorLog * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMSetErrorLog * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMSetErrorLog * This); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ErrorLog )( - IAMSetErrorLog * This, - /* [retval][out] */ IAMErrorLog **pVal); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ErrorLog )( - IAMSetErrorLog * This, - /* [in] */ IAMErrorLog *newVal); - - END_INTERFACE - } IAMSetErrorLogVtbl; - - interface IAMSetErrorLog - { - CONST_VTBL struct IAMSetErrorLogVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMSetErrorLog_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMSetErrorLog_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMSetErrorLog_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMSetErrorLog_get_ErrorLog(This,pVal) \ - (This)->lpVtbl -> get_ErrorLog(This,pVal) - -#define IAMSetErrorLog_put_ErrorLog(This,newVal) \ - (This)->lpVtbl -> put_ErrorLog(This,newVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IAMSetErrorLog_get_ErrorLog_Proxy( - IAMSetErrorLog * This, - /* [retval][out] */ IAMErrorLog **pVal); - - -void __RPC_STUB IAMSetErrorLog_get_ErrorLog_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE IAMSetErrorLog_put_ErrorLog_Proxy( - IAMSetErrorLog * This, - /* [in] */ IAMErrorLog *newVal); - - -void __RPC_STUB IAMSetErrorLog_put_ErrorLog_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMSetErrorLog_INTERFACE_DEFINED__ */ - - -#ifndef __ISampleGrabberCB_INTERFACE_DEFINED__ -#define __ISampleGrabberCB_INTERFACE_DEFINED__ - -/* interface ISampleGrabberCB */ -/* [unique][helpstring][local][uuid][object] */ - - -EXTERN_C const IID IID_ISampleGrabberCB; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("0579154A-2B53-4994-B0D0-E773148EFF85") - ISampleGrabberCB : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SampleCB( - double SampleTime, - IMediaSample *pSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE BufferCB( - double SampleTime, - BYTE *pBuffer, - long BufferLen) = 0; - - }; - -#else /* C style interface */ - - typedef struct ISampleGrabberCBVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ISampleGrabberCB * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ISampleGrabberCB * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ISampleGrabberCB * This); - - HRESULT ( STDMETHODCALLTYPE *SampleCB )( - ISampleGrabberCB * This, - double SampleTime, - IMediaSample *pSample); - - HRESULT ( STDMETHODCALLTYPE *BufferCB )( - ISampleGrabberCB * This, - double SampleTime, - BYTE *pBuffer, - long BufferLen); - - END_INTERFACE - } ISampleGrabberCBVtbl; - - interface ISampleGrabberCB - { - CONST_VTBL struct ISampleGrabberCBVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ISampleGrabberCB_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ISampleGrabberCB_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ISampleGrabberCB_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ISampleGrabberCB_SampleCB(This,SampleTime,pSample) \ - (This)->lpVtbl -> SampleCB(This,SampleTime,pSample) - -#define ISampleGrabberCB_BufferCB(This,SampleTime,pBuffer,BufferLen) \ - (This)->lpVtbl -> BufferCB(This,SampleTime,pBuffer,BufferLen) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE ISampleGrabberCB_SampleCB_Proxy( - ISampleGrabberCB * This, - double SampleTime, - IMediaSample *pSample); - - -void __RPC_STUB ISampleGrabberCB_SampleCB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISampleGrabberCB_BufferCB_Proxy( - ISampleGrabberCB * This, - double SampleTime, - BYTE *pBuffer, - long BufferLen); - - -void __RPC_STUB ISampleGrabberCB_BufferCB_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ISampleGrabberCB_INTERFACE_DEFINED__ */ - - -#ifndef __ISampleGrabber_INTERFACE_DEFINED__ -#define __ISampleGrabber_INTERFACE_DEFINED__ - -/* interface ISampleGrabber */ -/* [unique][helpstring][local][uuid][object] */ - - -EXTERN_C const IID IID_ISampleGrabber; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("6B652FFF-11FE-4fce-92AD-0266B5D7C78F") - ISampleGrabber : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetOneShot( - BOOL OneShot) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMediaType( - const AM_MEDIA_TYPE *pType) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetConnectedMediaType( - AM_MEDIA_TYPE *pType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBufferSamples( - BOOL BufferThem) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentBuffer( - /* [out][in] */ long *pBufferSize, - /* [out] */ long *pBuffer) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentSample( - /* [retval][out] */ IMediaSample **ppSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetCallback( - ISampleGrabberCB *pCallback, - long WhichMethodToCallback) = 0; - - }; - -#else /* C style interface */ - - typedef struct ISampleGrabberVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ISampleGrabber * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ISampleGrabber * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ISampleGrabber * This); - - HRESULT ( STDMETHODCALLTYPE *SetOneShot )( - ISampleGrabber * This, - BOOL OneShot); - - HRESULT ( STDMETHODCALLTYPE *SetMediaType )( - ISampleGrabber * This, - const AM_MEDIA_TYPE *pType); - - HRESULT ( STDMETHODCALLTYPE *GetConnectedMediaType )( - ISampleGrabber * This, - AM_MEDIA_TYPE *pType); - - HRESULT ( STDMETHODCALLTYPE *SetBufferSamples )( - ISampleGrabber * This, - BOOL BufferThem); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentBuffer )( - ISampleGrabber * This, - /* [out][in] */ long *pBufferSize, - /* [out] */ long *pBuffer); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentSample )( - ISampleGrabber * This, - /* [retval][out] */ IMediaSample **ppSample); - - HRESULT ( STDMETHODCALLTYPE *SetCallback )( - ISampleGrabber * This, - ISampleGrabberCB *pCallback, - long WhichMethodToCallback); - - END_INTERFACE - } ISampleGrabberVtbl; - - interface ISampleGrabber - { - CONST_VTBL struct ISampleGrabberVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ISampleGrabber_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ISampleGrabber_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ISampleGrabber_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ISampleGrabber_SetOneShot(This,OneShot) \ - (This)->lpVtbl -> SetOneShot(This,OneShot) - -#define ISampleGrabber_SetMediaType(This,pType) \ - (This)->lpVtbl -> SetMediaType(This,pType) - -#define ISampleGrabber_GetConnectedMediaType(This,pType) \ - (This)->lpVtbl -> GetConnectedMediaType(This,pType) - -#define ISampleGrabber_SetBufferSamples(This,BufferThem) \ - (This)->lpVtbl -> SetBufferSamples(This,BufferThem) - -#define ISampleGrabber_GetCurrentBuffer(This,pBufferSize,pBuffer) \ - (This)->lpVtbl -> GetCurrentBuffer(This,pBufferSize,pBuffer) - -#define ISampleGrabber_GetCurrentSample(This,ppSample) \ - (This)->lpVtbl -> GetCurrentSample(This,ppSample) - -#define ISampleGrabber_SetCallback(This,pCallback,WhichMethodToCallback) \ - (This)->lpVtbl -> SetCallback(This,pCallback,WhichMethodToCallback) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE ISampleGrabber_SetOneShot_Proxy( - ISampleGrabber * This, - BOOL OneShot); - - -void __RPC_STUB ISampleGrabber_SetOneShot_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISampleGrabber_SetMediaType_Proxy( - ISampleGrabber * This, - const AM_MEDIA_TYPE *pType); - - -void __RPC_STUB ISampleGrabber_SetMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISampleGrabber_GetConnectedMediaType_Proxy( - ISampleGrabber * This, - AM_MEDIA_TYPE *pType); - - -void __RPC_STUB ISampleGrabber_GetConnectedMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISampleGrabber_SetBufferSamples_Proxy( - ISampleGrabber * This, - BOOL BufferThem); - - -void __RPC_STUB ISampleGrabber_SetBufferSamples_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISampleGrabber_GetCurrentBuffer_Proxy( - ISampleGrabber * This, - /* [out][in] */ long *pBufferSize, - /* [out] */ long *pBuffer); - - -void __RPC_STUB ISampleGrabber_GetCurrentBuffer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISampleGrabber_GetCurrentSample_Proxy( - ISampleGrabber * This, - /* [retval][out] */ IMediaSample **ppSample); - - -void __RPC_STUB ISampleGrabber_GetCurrentSample_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISampleGrabber_SetCallback_Proxy( - ISampleGrabber * This, - ISampleGrabberCB *pCallback, - long WhichMethodToCallback); - - -void __RPC_STUB ISampleGrabber_SetCallback_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ISampleGrabber_INTERFACE_DEFINED__ */ - - - -#ifndef __DexterLib_LIBRARY_DEFINED__ -#define __DexterLib_LIBRARY_DEFINED__ - -/* library DexterLib */ -/* [helpstring][version][uuid] */ - - -EXTERN_C const IID LIBID_DexterLib; - -#ifndef __IResize_INTERFACE_DEFINED__ -#define __IResize_INTERFACE_DEFINED__ - -/* interface IResize */ -/* [unique][helpstring][uuid][object] */ - - -EXTERN_C const IID IID_IResize; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("4ada63a0-72d5-11d2-952a-0060081840bc") - IResize : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE get_Size( - /* [out] */ int *piHeight, - /* [out] */ int *piWidth, - /* [out] */ long *pFlag) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_InputSize( - /* [out] */ int *piHeight, - /* [out] */ int *piWidth) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Size( - /* [in] */ int Height, - /* [in] */ int Width, - /* [in] */ long Flag) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_MediaType( - /* [out] */ AM_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_MediaType( - /* [in] */ const AM_MEDIA_TYPE *pmt) = 0; - - }; - -#else /* C style interface */ - - typedef struct IResizeVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IResize * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IResize * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IResize * This); - - HRESULT ( STDMETHODCALLTYPE *get_Size )( - IResize * This, - /* [out] */ int *piHeight, - /* [out] */ int *piWidth, - /* [out] */ long *pFlag); - - HRESULT ( STDMETHODCALLTYPE *get_InputSize )( - IResize * This, - /* [out] */ int *piHeight, - /* [out] */ int *piWidth); - - HRESULT ( STDMETHODCALLTYPE *put_Size )( - IResize * This, - /* [in] */ int Height, - /* [in] */ int Width, - /* [in] */ long Flag); - - HRESULT ( STDMETHODCALLTYPE *get_MediaType )( - IResize * This, - /* [out] */ AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *put_MediaType )( - IResize * This, - /* [in] */ const AM_MEDIA_TYPE *pmt); - - END_INTERFACE - } IResizeVtbl; - - interface IResize - { - CONST_VTBL struct IResizeVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IResize_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IResize_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IResize_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IResize_get_Size(This,piHeight,piWidth,pFlag) \ - (This)->lpVtbl -> get_Size(This,piHeight,piWidth,pFlag) - -#define IResize_get_InputSize(This,piHeight,piWidth) \ - (This)->lpVtbl -> get_InputSize(This,piHeight,piWidth) - -#define IResize_put_Size(This,Height,Width,Flag) \ - (This)->lpVtbl -> put_Size(This,Height,Width,Flag) - -#define IResize_get_MediaType(This,pmt) \ - (This)->lpVtbl -> get_MediaType(This,pmt) - -#define IResize_put_MediaType(This,pmt) \ - (This)->lpVtbl -> put_MediaType(This,pmt) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IResize_get_Size_Proxy( - IResize * This, - /* [out] */ int *piHeight, - /* [out] */ int *piWidth, - /* [out] */ long *pFlag); - - -void __RPC_STUB IResize_get_Size_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IResize_get_InputSize_Proxy( - IResize * This, - /* [out] */ int *piHeight, - /* [out] */ int *piWidth); - - -void __RPC_STUB IResize_get_InputSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IResize_put_Size_Proxy( - IResize * This, - /* [in] */ int Height, - /* [in] */ int Width, - /* [in] */ long Flag); - - -void __RPC_STUB IResize_put_Size_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IResize_get_MediaType_Proxy( - IResize * This, - /* [out] */ AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IResize_get_MediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IResize_put_MediaType_Proxy( - IResize * This, - /* [in] */ const AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IResize_put_MediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IResize_INTERFACE_DEFINED__ */ - - -EXTERN_C const CLSID CLSID_AMTimeline; - -#ifdef __cplusplus - -class DECLSPEC_UUID("78530B75-61F9-11D2-8CAD-00A024580902") -AMTimeline; -#endif - -EXTERN_C const CLSID CLSID_AMTimelineObj; - -#ifdef __cplusplus - -class DECLSPEC_UUID("78530B78-61F9-11D2-8CAD-00A024580902") -AMTimelineObj; -#endif - -EXTERN_C const CLSID CLSID_AMTimelineSrc; - -#ifdef __cplusplus - -class DECLSPEC_UUID("78530B7A-61F9-11D2-8CAD-00A024580902") -AMTimelineSrc; -#endif - -EXTERN_C const CLSID CLSID_AMTimelineTrack; - -#ifdef __cplusplus - -class DECLSPEC_UUID("8F6C3C50-897B-11d2-8CFB-00A0C9441E20") -AMTimelineTrack; -#endif - -EXTERN_C const CLSID CLSID_AMTimelineComp; - -#ifdef __cplusplus - -class DECLSPEC_UUID("74D2EC80-6233-11d2-8CAD-00A024580902") -AMTimelineComp; -#endif - -EXTERN_C const CLSID CLSID_AMTimelineGroup; - -#ifdef __cplusplus - -class DECLSPEC_UUID("F6D371E1-B8A6-11d2-8023-00C0DF10D434") -AMTimelineGroup; -#endif - -EXTERN_C const CLSID CLSID_AMTimelineTrans; - -#ifdef __cplusplus - -class DECLSPEC_UUID("74D2EC81-6233-11d2-8CAD-00A024580902") -AMTimelineTrans; -#endif - -EXTERN_C const CLSID CLSID_AMTimelineEffect; - -#ifdef __cplusplus - -class DECLSPEC_UUID("74D2EC82-6233-11d2-8CAD-00A024580902") -AMTimelineEffect; -#endif - -EXTERN_C const CLSID CLSID_RenderEngine; - -#ifdef __cplusplus - -class DECLSPEC_UUID("64D8A8E0-80A2-11d2-8CF3-00A0C9441E20") -RenderEngine; -#endif - -EXTERN_C const CLSID CLSID_SmartRenderEngine; - -#ifdef __cplusplus - -class DECLSPEC_UUID("498B0949-BBE9-4072-98BE-6CCAEB79DC6F") -SmartRenderEngine; -#endif - -EXTERN_C const CLSID CLSID_AudMixer; - -#ifdef __cplusplus - -class DECLSPEC_UUID("036A9790-C153-11d2-9EF7-006008039E37") -AudMixer; -#endif - -EXTERN_C const CLSID CLSID_Xml2Dex; - -#ifdef __cplusplus - -class DECLSPEC_UUID("18C628EE-962A-11D2-8D08-00A0C9441E20") -Xml2Dex; -#endif - -EXTERN_C const CLSID CLSID_MediaLocator; - -#ifdef __cplusplus - -class DECLSPEC_UUID("CC1101F2-79DC-11D2-8CE6-00A0C9441E20") -MediaLocator; -#endif - -EXTERN_C const CLSID CLSID_PropertySetter; - -#ifdef __cplusplus - -class DECLSPEC_UUID("ADF95821-DED7-11d2-ACBE-0080C75E246E") -PropertySetter; -#endif - -EXTERN_C const CLSID CLSID_MediaDet; - -#ifdef __cplusplus - -class DECLSPEC_UUID("65BD0711-24D2-4ff7-9324-ED2E5D3ABAFA") -MediaDet; -#endif - -EXTERN_C const CLSID CLSID_SampleGrabber; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C1F400A0-3F08-11d3-9F0B-006008039E37") -SampleGrabber; -#endif - -EXTERN_C const CLSID CLSID_NullRenderer; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C1F400A4-3F08-11d3-9F0B-006008039E37") -NullRenderer; -#endif - -EXTERN_C const CLSID CLSID_DxtCompositor; - -#ifdef __cplusplus - -class DECLSPEC_UUID("BB44391D-6ABD-422f-9E2E-385C9DFF51FC") -DxtCompositor; -#endif - -EXTERN_C const CLSID CLSID_DxtAlphaSetter; - -#ifdef __cplusplus - -class DECLSPEC_UUID("506D89AE-909A-44f7-9444-ABD575896E35") -DxtAlphaSetter; -#endif - -EXTERN_C const CLSID CLSID_DxtJpeg; - -#ifdef __cplusplus - -class DECLSPEC_UUID("DE75D012-7A65-11D2-8CEA-00A0C9441E20") -DxtJpeg; -#endif - -EXTERN_C const CLSID CLSID_ColorSource; - -#ifdef __cplusplus - -class DECLSPEC_UUID("0cfdd070-581a-11d2-9ee6-006008039e37") -ColorSource; -#endif - -EXTERN_C const CLSID CLSID_DxtKey; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C5B19592-145E-11d3-9F04-006008039E37") -DxtKey; -#endif -#endif /* __DexterLib_LIBRARY_DEFINED__ */ - -/* interface __MIDL_itf_qedit_0484 */ -/* [local] */ - - -enum __MIDL___MIDL_itf_qedit_0484_0001 - { E_NOTINTREE = 0x80040400, - E_RENDER_ENGINE_IS_BROKEN = 0x80040401, - E_MUST_INIT_RENDERER = 0x80040402, - E_NOTDETERMINED = 0x80040403, - E_NO_TIMELINE = 0x80040404, - S_WARN_OUTPUTRESET = 40404 - } ; -#define DEX_IDS_BAD_SOURCE_NAME 1400 -#define DEX_IDS_BAD_SOURCE_NAME2 1401 -#define DEX_IDS_MISSING_SOURCE_NAME 1402 -#define DEX_IDS_UNKNOWN_SOURCE 1403 -#define DEX_IDS_INSTALL_PROBLEM 1404 -#define DEX_IDS_NO_SOURCE_NAMES 1405 -#define DEX_IDS_BAD_MEDIATYPE 1406 -#define DEX_IDS_STREAM_NUMBER 1407 -#define DEX_IDS_OUTOFMEMORY 1408 -#define DEX_IDS_DIBSEQ_NOTALLSAME 1409 -#define DEX_IDS_CLIPTOOSHORT 1410 -#define DEX_IDS_INVALID_DXT 1411 -#define DEX_IDS_INVALID_DEFAULT_DXT 1412 -#define DEX_IDS_NO_3D 1413 -#define DEX_IDS_BROKEN_DXT 1414 -#define DEX_IDS_NO_SUCH_PROPERTY 1415 -#define DEX_IDS_ILLEGAL_PROPERTY_VAL 1416 -#define DEX_IDS_INVALID_XML 1417 -#define DEX_IDS_CANT_FIND_FILTER 1418 -#define DEX_IDS_DISK_WRITE_ERROR 1419 -#define DEX_IDS_INVALID_AUDIO_FX 1420 -#define DEX_IDS_CANT_FIND_COMPRESSOR 1421 -#define DEX_IDS_TIMELINE_PARSE 1426 -#define DEX_IDS_GRAPH_ERROR 1427 -#define DEX_IDS_GRID_ERROR 1428 -#define DEX_IDS_INTERFACE_ERROR 1429 -EXTERN_GUID(CLSID_VideoEffects1Category, 0xcc7bfb42, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59); -EXTERN_GUID(CLSID_VideoEffects2Category, 0xcc7bfb43, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59); -EXTERN_GUID(CLSID_AudioEffects1Category, 0xcc7bfb44, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59); -EXTERN_GUID(CLSID_AudioEffects2Category, 0xcc7bfb45, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59); - - -extern RPC_IF_HANDLE __MIDL_itf_qedit_0484_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_qedit_0484_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 VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); -void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * ); - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/qnetwork.h b/sdk/dx8sdk/Include/qnetwork.h deleted file mode 100644 index 2df21946..00000000 --- a/sdk/dx8sdk/Include/qnetwork.h +++ /dev/null @@ -1,555 +0,0 @@ -//------------------------------------------------------------------------------ -// File: qnetwork.h -// -// Desc: This header file machine-generated by mktyplib.exe. -// Interface to type library: QuartzNetTypeLib -// -// Copyright (c) 1997-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef _QuartzNetTypeLib_H_ -#define _QuartzNetTypeLib_H_ - -DEFINE_GUID(LIBID_QuartzNetTypeLib,0x56A868B1L,0x0AD4,0x11CE,0xB0,0x3A,0x00,0x20,0xAF,0x0B,0xA7,0x70); -#ifndef BEGIN_INTERFACE -#define BEGIN_INTERFACE -#endif - -DEFINE_GUID(IID_IAMNetShowConfig,0xFA2AA8F1L,0x8B62,0x11D0,0xA5,0x20,0x00,0x00,0x00,0x00,0x00,0x00); - -/* Definition of interface: IAMNetShowConfig */ -#undef INTERFACE -#define INTERFACE IAMNetShowConfig - -DECLARE_INTERFACE_(IAMNetShowConfig, IDispatch) -{ -BEGIN_INTERFACE -#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; - - /* IDispatch methods */ - STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE; - - STDMETHOD(GetTypeInfo)( - THIS_ - UINT itinfo, - LCID lcid, - ITypeInfo FAR* FAR* pptinfo) PURE; - - STDMETHOD(GetIDsOfNames)( - THIS_ - REFIID riid, - OLECHAR FAR* FAR* rgszNames, - UINT cNames, - LCID lcid, - DISPID FAR* rgdispid) PURE; - - STDMETHOD(Invoke)( - THIS_ - DISPID dispidMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS FAR* pdispparams, - VARIANT FAR* pvarResult, - EXCEPINFO FAR* pexcepinfo, - UINT FAR* puArgErr) PURE; -#endif - - /* IAMNetShowConfig methods */ - STDMETHOD(get_BufferingTime)(THIS_ double FAR* pBufferingTime) PURE; - STDMETHOD(put_BufferingTime)(THIS_ double BufferingTime) PURE; - STDMETHOD(get_UseFixedUDPPort)(THIS_ VARIANT_BOOL FAR* pUseFixedUDPPort) PURE; - STDMETHOD(put_UseFixedUDPPort)(THIS_ VARIANT_BOOL UseFixedUDPPort) PURE; - STDMETHOD(get_FixedUDPPort)(THIS_ long FAR* pFixedUDPPort) PURE; - STDMETHOD(put_FixedUDPPort)(THIS_ long FixedUDPPort) PURE; - STDMETHOD(get_UseHTTPProxy)(THIS_ VARIANT_BOOL FAR* pUseHTTPProxy) PURE; - STDMETHOD(put_UseHTTPProxy)(THIS_ VARIANT_BOOL UseHTTPProxy) PURE; - STDMETHOD(get_EnableAutoProxy)(THIS_ VARIANT_BOOL FAR* pEnableAutoProxy) PURE; - STDMETHOD(put_EnableAutoProxy)(THIS_ VARIANT_BOOL EnableAutoProxy) PURE; - STDMETHOD(get_HTTPProxyHost)(THIS_ BSTR FAR* pbstrHTTPProxyHost) PURE; - STDMETHOD(put_HTTPProxyHost)(THIS_ BSTR bstrHTTPProxyHost) PURE; - STDMETHOD(get_HTTPProxyPort)(THIS_ long FAR* pHTTPProxyPort) PURE; - STDMETHOD(put_HTTPProxyPort)(THIS_ long HTTPProxyPort) PURE; - STDMETHOD(get_EnableMulticast)(THIS_ VARIANT_BOOL FAR* pEnableMulticast) PURE; - STDMETHOD(put_EnableMulticast)(THIS_ VARIANT_BOOL EnableMulticast) PURE; - STDMETHOD(get_EnableUDP)(THIS_ VARIANT_BOOL FAR* pEnableUDP) PURE; - STDMETHOD(put_EnableUDP)(THIS_ VARIANT_BOOL EnableUDP) PURE; - STDMETHOD(get_EnableTCP)(THIS_ VARIANT_BOOL FAR* pEnableTCP) PURE; - STDMETHOD(put_EnableTCP)(THIS_ VARIANT_BOOL EnableTCP) PURE; - STDMETHOD(get_EnableHTTP)(THIS_ VARIANT_BOOL FAR* pEnableHTTP) PURE; - STDMETHOD(put_EnableHTTP)(THIS_ VARIANT_BOOL EnableHTTP) PURE; -}; - -DEFINE_GUID(IID_IAMChannelInfo,0xFA2AA8F2L,0x8B62,0x11D0,0xA5,0x20,0x00,0x00,0x00,0x00,0x00,0x00); - -/* Definition of interface: IAMChannelInfo */ -#undef INTERFACE -#define INTERFACE IAMChannelInfo - -DECLARE_INTERFACE_(IAMChannelInfo, IDispatch) -{ -BEGIN_INTERFACE -#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; - - /* IDispatch methods */ - STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE; - - STDMETHOD(GetTypeInfo)( - THIS_ - UINT itinfo, - LCID lcid, - ITypeInfo FAR* FAR* pptinfo) PURE; - - STDMETHOD(GetIDsOfNames)( - THIS_ - REFIID riid, - OLECHAR FAR* FAR* rgszNames, - UINT cNames, - LCID lcid, - DISPID FAR* rgdispid) PURE; - - STDMETHOD(Invoke)( - THIS_ - DISPID dispidMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS FAR* pdispparams, - VARIANT FAR* pvarResult, - EXCEPINFO FAR* pexcepinfo, - UINT FAR* puArgErr) PURE; -#endif - - /* IAMChannelInfo methods */ - STDMETHOD(get_ChannelName)(THIS_ BSTR FAR* pbstrChannelName) PURE; - STDMETHOD(get_ChannelDescription)(THIS_ BSTR FAR* pbstrChannelDescription) PURE; - STDMETHOD(get_ChannelURL)(THIS_ BSTR FAR* pbstrChannelURL) PURE; - STDMETHOD(get_ContactAddress)(THIS_ BSTR FAR* pbstrContactAddress) PURE; - STDMETHOD(get_ContactPhone)(THIS_ BSTR FAR* pbstrContactPhone) PURE; - STDMETHOD(get_ContactEmail)(THIS_ BSTR FAR* pbstrContactEmail) PURE; -}; - -DEFINE_GUID(IID_IAMNetworkStatus,0xFA2AA8F3L,0x8B62,0x11D0,0xA5,0x20,0x00,0x00,0x00,0x00,0x00,0x00); - -/* Definition of interface: IAMNetworkStatus */ -#undef INTERFACE -#define INTERFACE IAMNetworkStatus - -DECLARE_INTERFACE_(IAMNetworkStatus, IDispatch) -{ -BEGIN_INTERFACE -#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; - - /* IDispatch methods */ - STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE; - - STDMETHOD(GetTypeInfo)( - THIS_ - UINT itinfo, - LCID lcid, - ITypeInfo FAR* FAR* pptinfo) PURE; - - STDMETHOD(GetIDsOfNames)( - THIS_ - REFIID riid, - OLECHAR FAR* FAR* rgszNames, - UINT cNames, - LCID lcid, - DISPID FAR* rgdispid) PURE; - - STDMETHOD(Invoke)( - THIS_ - DISPID dispidMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS FAR* pdispparams, - VARIANT FAR* pvarResult, - EXCEPINFO FAR* pexcepinfo, - UINT FAR* puArgErr) PURE; -#endif - - /* IAMNetworkStatus methods */ - STDMETHOD(get_ReceivedPackets)(THIS_ long FAR* pReceivedPackets) PURE; - STDMETHOD(get_RecoveredPackets)(THIS_ long FAR* pRecoveredPackets) PURE; - STDMETHOD(get_LostPackets)(THIS_ long FAR* pLostPackets) PURE; - STDMETHOD(get_ReceptionQuality)(THIS_ long FAR* pReceptionQuality) PURE; - STDMETHOD(get_BufferingCount)(THIS_ long FAR* pBufferingCount) PURE; - STDMETHOD(get_IsBroadcast)(THIS_ VARIANT_BOOL FAR* pIsBroadcast) PURE; - STDMETHOD(get_BufferingProgress)(THIS_ long FAR* pBufferingProgress) PURE; -}; - -typedef enum { - AM_EXSEEK_CANSEEK = 1, - AM_EXSEEK_CANSCAN = 2, - AM_EXSEEK_MARKERSEEK = 4, - AM_EXSEEK_SCANWITHOUTCLOCK = 8, - AM_EXSEEK_NOSTANDARDREPAINT = 16, - AM_EXSEEK_BUFFERING = 32, - AM_EXSEEK_SENDS_VIDEOFRAMEREADY = 64 -} AMExtendedSeekingCapabilities; - -DEFINE_GUID(IID_IAMExtendedSeeking,0xFA2AA8F9L,0x8B62,0x11D0,0xA5,0x20,0x00,0x00,0x00,0x00,0x00,0x00); - -/* Definition of interface: IAMExtendedSeeking */ -#undef INTERFACE -#define INTERFACE IAMExtendedSeeking - -DECLARE_INTERFACE_(IAMExtendedSeeking, IDispatch) -{ -BEGIN_INTERFACE -#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; - - /* IDispatch methods */ - STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE; - - STDMETHOD(GetTypeInfo)( - THIS_ - UINT itinfo, - LCID lcid, - ITypeInfo FAR* FAR* pptinfo) PURE; - - STDMETHOD(GetIDsOfNames)( - THIS_ - REFIID riid, - OLECHAR FAR* FAR* rgszNames, - UINT cNames, - LCID lcid, - DISPID FAR* rgdispid) PURE; - - STDMETHOD(Invoke)( - THIS_ - DISPID dispidMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS FAR* pdispparams, - VARIANT FAR* pvarResult, - EXCEPINFO FAR* pexcepinfo, - UINT FAR* puArgErr) PURE; -#endif - - /* IAMExtendedSeeking methods */ - STDMETHOD(get_ExSeekCapabilities)(THIS_ long FAR* pExCapabilities) PURE; - STDMETHOD(get_MarkerCount)(THIS_ long FAR* pMarkerCount) PURE; - STDMETHOD(get_CurrentMarker)(THIS_ long FAR* pCurrentMarker) PURE; - STDMETHOD(GetMarkerTime)(THIS_ long MarkerNum, double FAR* pMarkerTime) PURE; - STDMETHOD(GetMarkerName)(THIS_ long MarkerNum, BSTR FAR* pbstrMarkerName) PURE; - STDMETHOD(put_PlaybackSpeed)(THIS_ double Speed) PURE; - STDMETHOD(get_PlaybackSpeed)(THIS_ double FAR* pSpeed) PURE; -}; - -DEFINE_GUID(IID_IAMNetShowExProps,0xFA2AA8F5L,0x8B62,0x11D0,0xA5,0x20,0x00,0x00,0x00,0x00,0x00,0x00); - -/* Definition of interface: IAMNetShowExProps */ -#undef INTERFACE -#define INTERFACE IAMNetShowExProps - -DECLARE_INTERFACE_(IAMNetShowExProps, IDispatch) -{ -BEGIN_INTERFACE -#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; - - /* IDispatch methods */ - STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE; - - STDMETHOD(GetTypeInfo)( - THIS_ - UINT itinfo, - LCID lcid, - ITypeInfo FAR* FAR* pptinfo) PURE; - - STDMETHOD(GetIDsOfNames)( - THIS_ - REFIID riid, - OLECHAR FAR* FAR* rgszNames, - UINT cNames, - LCID lcid, - DISPID FAR* rgdispid) PURE; - - STDMETHOD(Invoke)( - THIS_ - DISPID dispidMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS FAR* pdispparams, - VARIANT FAR* pvarResult, - EXCEPINFO FAR* pexcepinfo, - UINT FAR* puArgErr) PURE; -#endif - - /* IAMNetShowExProps methods */ - STDMETHOD(get_SourceProtocol)(THIS_ long FAR* pSourceProtocol) PURE; - STDMETHOD(get_Bandwidth)(THIS_ long FAR* pBandwidth) PURE; - STDMETHOD(get_ErrorCorrection)(THIS_ BSTR FAR* pbstrErrorCorrection) PURE; - STDMETHOD(get_CodecCount)(THIS_ long FAR* pCodecCount) PURE; - STDMETHOD(GetCodecInstalled)(THIS_ long CodecNum, VARIANT_BOOL FAR* pCodecInstalled) PURE; - STDMETHOD(GetCodecDescription)(THIS_ long CodecNum, BSTR FAR* pbstrCodecDescription) PURE; - STDMETHOD(GetCodecURL)(THIS_ long CodecNum, BSTR FAR* pbstrCodecURL) PURE; - STDMETHOD(get_CreationDate)(THIS_ DATE FAR* pCreationDate) PURE; - STDMETHOD(get_SourceLink)(THIS_ BSTR FAR* pbstrSourceLink) PURE; -}; - -DEFINE_GUID(IID_IAMExtendedErrorInfo,0xFA2AA8F6L,0x8B62,0x11D0,0xA5,0x20,0x00,0x00,0x00,0x00,0x00,0x00); - -/* Definition of interface: IAMExtendedErrorInfo */ -#undef INTERFACE -#define INTERFACE IAMExtendedErrorInfo - -DECLARE_INTERFACE_(IAMExtendedErrorInfo, IDispatch) -{ -BEGIN_INTERFACE -#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; - - /* IDispatch methods */ - STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE; - - STDMETHOD(GetTypeInfo)( - THIS_ - UINT itinfo, - LCID lcid, - ITypeInfo FAR* FAR* pptinfo) PURE; - - STDMETHOD(GetIDsOfNames)( - THIS_ - REFIID riid, - OLECHAR FAR* FAR* rgszNames, - UINT cNames, - LCID lcid, - DISPID FAR* rgdispid) PURE; - - STDMETHOD(Invoke)( - THIS_ - DISPID dispidMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS FAR* pdispparams, - VARIANT FAR* pvarResult, - EXCEPINFO FAR* pexcepinfo, - UINT FAR* puArgErr) PURE; -#endif - - /* IAMExtendedErrorInfo methods */ - STDMETHOD(get_HasError)(THIS_ VARIANT_BOOL FAR* pHasError) PURE; - STDMETHOD(get_ErrorDescription)(THIS_ BSTR FAR* pbstrErrorDescription) PURE; - STDMETHOD(get_ErrorCode)(THIS_ long FAR* pErrorCode) PURE; -}; - -DEFINE_GUID(IID_IAMMediaContent,0xFA2AA8F4L,0x8B62,0x11D0,0xA5,0x20,0x00,0x00,0x00,0x00,0x00,0x00); - -/* Definition of interface: IAMMediaContent */ -#undef INTERFACE -#define INTERFACE IAMMediaContent - -DECLARE_INTERFACE_(IAMMediaContent, IDispatch) -{ -BEGIN_INTERFACE -#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; - - /* IDispatch methods */ - STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE; - - STDMETHOD(GetTypeInfo)( - THIS_ - UINT itinfo, - LCID lcid, - ITypeInfo FAR* FAR* pptinfo) PURE; - - STDMETHOD(GetIDsOfNames)( - THIS_ - REFIID riid, - OLECHAR FAR* FAR* rgszNames, - UINT cNames, - LCID lcid, - DISPID FAR* rgdispid) PURE; - - STDMETHOD(Invoke)( - THIS_ - DISPID dispidMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS FAR* pdispparams, - VARIANT FAR* pvarResult, - EXCEPINFO FAR* pexcepinfo, - UINT FAR* puArgErr) PURE; -#endif - - /* IAMMediaContent methods */ - STDMETHOD(get_AuthorName)(THIS_ BSTR FAR* pbstrAuthorName) PURE; - STDMETHOD(get_Title)(THIS_ BSTR FAR* pbstrTitle) PURE; - STDMETHOD(get_Rating)(THIS_ BSTR FAR* pbstrRating) PURE; - STDMETHOD(get_Description)(THIS_ BSTR FAR* pbstrDescription) PURE; - STDMETHOD(get_Copyright)(THIS_ BSTR FAR* pbstrCopyright) PURE; - STDMETHOD(get_BaseURL)(THIS_ BSTR FAR* pbstrBaseURL) PURE; - STDMETHOD(get_LogoURL)(THIS_ BSTR FAR* pbstrLogoURL) PURE; - STDMETHOD(get_LogoIconURL)(THIS_ BSTR FAR* pbstrLogoURL) PURE; - STDMETHOD(get_WatermarkURL)(THIS_ BSTR FAR* pbstrWatermarkURL) PURE; - STDMETHOD(get_MoreInfoURL)(THIS_ BSTR FAR* pbstrMoreInfoURL) PURE; - STDMETHOD(get_MoreInfoBannerImage)(THIS_ BSTR FAR* pbstrMoreInfoBannerImage) PURE; - STDMETHOD(get_MoreInfoBannerURL)(THIS_ BSTR FAR* pbstrMoreInfoBannerURL) PURE; - STDMETHOD(get_MoreInfoText)(THIS_ BSTR FAR* pbstrMoreInfoText) PURE; -}; - -DEFINE_GUID(IID_IAMMediaContent2,0xCE8F78C1L,0x74D9,0x11D2,0xB0,0x9D,0x00,0xA0,0xC9,0xA8,0x11,0x17); - -/* Definition of interface: IAMMediaContent2 */ -#undef INTERFACE -#define INTERFACE IAMMediaContent2 - -DECLARE_INTERFACE_(IAMMediaContent2, IDispatch) -{ -BEGIN_INTERFACE -#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; - - /* IDispatch methods */ - STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE; - - STDMETHOD(GetTypeInfo)( - THIS_ - UINT itinfo, - LCID lcid, - ITypeInfo FAR* FAR* pptinfo) PURE; - - STDMETHOD(GetIDsOfNames)( - THIS_ - REFIID riid, - OLECHAR FAR* FAR* rgszNames, - UINT cNames, - LCID lcid, - DISPID FAR* rgdispid) PURE; - - STDMETHOD(Invoke)( - THIS_ - DISPID dispidMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS FAR* pdispparams, - VARIANT FAR* pvarResult, - EXCEPINFO FAR* pexcepinfo, - UINT FAR* puArgErr) PURE; -#endif - - /* IAMMediaContent2 methods */ - STDMETHOD(get_MediaParameter)(THIS_ long EntryNum, BSTR bstrName, BSTR FAR* pbstrValue) PURE; - STDMETHOD(get_MediaParameterName)(THIS_ long EntryNum, long Index, BSTR FAR* pbstrName) PURE; - STDMETHOD(get_PlaylistCount)(THIS_ long FAR* pNumberEntries) PURE; -}; - -DEFINE_GUID(IID_IAMNetShowPreroll,0xAAE7E4E2L,0x6388,0x11D1,0x8D,0x93,0x00,0x60,0x97,0xC9,0xA2,0xB2); - -/* Definition of interface: IAMNetShowPreroll */ -#undef INTERFACE -#define INTERFACE IAMNetShowPreroll - -DECLARE_INTERFACE_(IAMNetShowPreroll, IDispatch) -{ -BEGIN_INTERFACE -#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; - - /* IDispatch methods */ - STDMETHOD(GetTypeInfoCount)(THIS_ UINT FAR* pctinfo) PURE; - - STDMETHOD(GetTypeInfo)( - THIS_ - UINT itinfo, - LCID lcid, - ITypeInfo FAR* FAR* pptinfo) PURE; - - STDMETHOD(GetIDsOfNames)( - THIS_ - REFIID riid, - OLECHAR FAR* FAR* rgszNames, - UINT cNames, - LCID lcid, - DISPID FAR* rgdispid) PURE; - - STDMETHOD(Invoke)( - THIS_ - DISPID dispidMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS FAR* pdispparams, - VARIANT FAR* pvarResult, - EXCEPINFO FAR* pexcepinfo, - UINT FAR* puArgErr) PURE; -#endif - - /* IAMNetShowPreroll methods */ - STDMETHOD(put_Preroll)(THIS_ VARIANT_BOOL fPreroll) PURE; - STDMETHOD(get_Preroll)(THIS_ VARIANT_BOOL FAR* pfPreroll) PURE; -}; - -DEFINE_GUID(IID_IDShowPlugin,0x4746B7C8L,0x700E,0x11D1,0xBE,0xCC,0x00,0xC0,0x4F,0xB6,0xE9,0x37); - -/* Definition of interface: IDShowPlugin */ -#undef INTERFACE -#define INTERFACE IDShowPlugin - -DECLARE_INTERFACE_(IDShowPlugin, IUnknown) -{ -BEGIN_INTERFACE -#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 - - /* IDShowPlugin methods */ - STDMETHOD(get_URL)(THIS_ BSTR FAR* pURL) PURE; - STDMETHOD(get_UserAgent)(THIS_ BSTR FAR* pUserAgent) PURE; -}; - -#endif diff --git a/sdk/dx8sdk/Include/regbag.h b/sdk/dx8sdk/Include/regbag.h deleted file mode 100644 index 6cb54d78..00000000 --- a/sdk/dx8sdk/Include/regbag.h +++ /dev/null @@ -1,193 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for regbag.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __regbag_h__ -#define __regbag_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __ICreatePropBagOnRegKey_FWD_DEFINED__ -#define __ICreatePropBagOnRegKey_FWD_DEFINED__ -typedef interface ICreatePropBagOnRegKey ICreatePropBagOnRegKey; -#endif /* __ICreatePropBagOnRegKey_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "objidl.h" -#include "oaidl.h" -#include "ocidl.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_regbag_0000 */ -/* [local] */ - -//+------------------------------------------------------------------------- -// -// Microsoft Windows -// Copyright (C) Microsoft Corporation, 1999-2000. -// -//-------------------------------------------------------------------------- -#pragma once - - -extern RPC_IF_HANDLE __MIDL_itf_regbag_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_regbag_0000_v0_0_s_ifspec; - -#ifndef __ICreatePropBagOnRegKey_INTERFACE_DEFINED__ -#define __ICreatePropBagOnRegKey_INTERFACE_DEFINED__ - -/* interface ICreatePropBagOnRegKey */ -/* [local][unique][helpstring][uuid][restricted][hidden][object] */ - - -EXTERN_C const IID IID_ICreatePropBagOnRegKey; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("8A674B48-1F63-11d3-B64C-00C04F79498E") - ICreatePropBagOnRegKey : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Create( - /* [in] */ HKEY hkey, - /* [in] */ LPCOLESTR subkey, - /* [in] */ DWORD ulOptions, - /* [in] */ DWORD samDesired, - REFIID iid, - /* [out] */ LPVOID *ppBag) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICreatePropBagOnRegKeyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICreatePropBagOnRegKey * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICreatePropBagOnRegKey * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICreatePropBagOnRegKey * This); - - HRESULT ( STDMETHODCALLTYPE *Create )( - ICreatePropBagOnRegKey * This, - /* [in] */ HKEY hkey, - /* [in] */ LPCOLESTR subkey, - /* [in] */ DWORD ulOptions, - /* [in] */ DWORD samDesired, - REFIID iid, - /* [out] */ LPVOID *ppBag); - - END_INTERFACE - } ICreatePropBagOnRegKeyVtbl; - - interface ICreatePropBagOnRegKey - { - CONST_VTBL struct ICreatePropBagOnRegKeyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICreatePropBagOnRegKey_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICreatePropBagOnRegKey_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICreatePropBagOnRegKey_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICreatePropBagOnRegKey_Create(This,hkey,subkey,ulOptions,samDesired,iid,ppBag) \ - (This)->lpVtbl -> Create(This,hkey,subkey,ulOptions,samDesired,iid,ppBag) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE ICreatePropBagOnRegKey_Create_Proxy( - ICreatePropBagOnRegKey * This, - /* [in] */ HKEY hkey, - /* [in] */ LPCOLESTR subkey, - /* [in] */ DWORD ulOptions, - /* [in] */ DWORD samDesired, - REFIID iid, - /* [out] */ LPVOID *ppBag); - - -void __RPC_STUB ICreatePropBagOnRegKey_Create_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICreatePropBagOnRegKey_INTERFACE_DEFINED__ */ - - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/rmxfguid.h b/sdk/dx8sdk/Include/rmxfguid.h deleted file mode 100644 index d3326ccc..00000000 --- a/sdk/dx8sdk/Include/rmxfguid.h +++ /dev/null @@ -1,223 +0,0 @@ -/*************************************************************************** - * - * Copyright (C) 1998-1999 Microsoft Corporation. All Rights Reserved. - * - * File: rmxfguid.h - * - * Content: Defines GUIDs of D3DRM's templates. - * - ***************************************************************************/ - -#ifndef __RMXFGUID_H_ -#define __RMXFGUID_H_ - -/* {2B957100-9E9A-11cf-AB39-0020AF71E433} */ -DEFINE_GUID(TID_D3DRMInfo, -0x2b957100, 0x9e9a, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* {3D82AB44-62DA-11cf-AB39-0020AF71E433} */ -DEFINE_GUID(TID_D3DRMMesh, -0x3d82ab44, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* {3D82AB5E-62DA-11cf-AB39-0020AF71E433} */ -DEFINE_GUID(TID_D3DRMVector, -0x3d82ab5e, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* {3D82AB5F-62DA-11cf-AB39-0020AF71E433} */ -DEFINE_GUID(TID_D3DRMMeshFace, -0x3d82ab5f, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* {3D82AB4D-62DA-11cf-AB39-0020AF71E433} */ -DEFINE_GUID(TID_D3DRMMaterial, -0x3d82ab4d, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* {35FF44E1-6C7C-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMMaterialArray, -0x35ff44e1, 0x6c7c, 0x11cf, 0x8F, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {3D82AB46-62DA-11cf-AB39-0020AF71E433} */ -DEFINE_GUID(TID_D3DRMFrame, -0x3d82ab46, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* {F6F23F41-7686-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMFrameTransformMatrix, -0xf6f23f41, 0x7686, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {F6F23F42-7686-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMMeshMaterialList, -0xf6f23f42, 0x7686, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {F6F23F40-7686-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMMeshTextureCoords, -0xf6f23f40, 0x7686, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {F6F23F43-7686-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMMeshNormals, -0xf6f23f43, 0x7686, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {F6F23F44-7686-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMCoords2d, -0xf6f23f44, 0x7686, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {F6F23F45-7686-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMMatrix4x4, -0xf6f23f45, 0x7686, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {3D82AB4F-62DA-11cf-AB39-0020AF71E433} */ -DEFINE_GUID(TID_D3DRMAnimation, -0x3d82ab4f, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* {3D82AB50-62DA-11cf-AB39-0020AF71E433} */ -DEFINE_GUID(TID_D3DRMAnimationSet, -0x3d82ab50, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* {10DD46A8-775B-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMAnimationKey, -0x10dd46a8, 0x775b, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xA3); - -/* {10DD46A9-775B-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMFloatKeys, -0x10dd46a9, 0x775b, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xA3); - -/* {01411840-7786-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMMaterialAmbientColor, -0x01411840, 0x7786, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xA3); - -/* {01411841-7786-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMMaterialDiffuseColor, -0x01411841, 0x7786, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xA3); - -/* {01411842-7786-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMMaterialSpecularColor, -0x01411842, 0x7786, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xA3); - -/* {D3E16E80-7835-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMMaterialEmissiveColor, -0xd3e16e80, 0x7835, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {01411843-7786-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMMaterialPower, -0x01411843, 0x7786, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xA3); - -/* {35FF44E0-6C7C-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMColorRGBA, -0x35ff44e0, 0x6c7c, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xA3); - -/* {D3E16E81-7835-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMColorRGB, -0xd3e16e81, 0x7835, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {A42790E0-7810-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMGuid, -0xa42790e0, 0x7810, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {A42790E1-7810-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMTextureFilename, -0xa42790e1, 0x7810, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {A42790E2-7810-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMTextureReference, -0xa42790e2, 0x7810, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {1630B820-7842-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMIndexedColor, -0x1630b820, 0x7842, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {1630B821-7842-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMMeshVertexColors, -0x1630b821, 0x7842, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {4885AE60-78E8-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMMaterialWrap, -0x4885ae60, 0x78e8, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {537DA6A0-CA37-11d0-941C-0080C80CFA7B} */ -DEFINE_GUID(TID_D3DRMBoolean, -0x537da6a0, 0xca37, 0x11d0, 0x94, 0x1c, 0x0, 0x80, 0xc8, 0xc, 0xfa, 0x7b); - -/* {ED1EC5C0-C0A8-11d0-941C-0080C80CFA7B} */ -DEFINE_GUID(TID_D3DRMMeshFaceWraps, -0xed1ec5c0, 0xc0a8, 0x11d0, 0x94, 0x1c, 0x0, 0x80, 0xc8, 0xc, 0xfa, 0x7b); - -/* {4885AE63-78E8-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMBoolean2d, -0x4885ae63, 0x78e8, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {F406B180-7B3B-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMTimedFloatKeys, -0xf406b180, 0x7b3b, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {E2BF56C0-840F-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMAnimationOptions, -0xe2bf56c0, 0x840f, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {E2BF56C1-840F-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMFramePosition, -0xe2bf56c1, 0x840f, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {E2BF56C2-840F-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMFrameVelocity, -0xe2bf56c2, 0x840f, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {E2BF56C3-840F-11cf-8F52-0040333594A3} */ -DEFINE_GUID(TID_D3DRMFrameRotation, -0xe2bf56c3, 0x840f, 0x11cf, 0x8f, 0x52, 0x0, 0x40, 0x33, 0x35, 0x94, 0xa3); - -/* {3D82AB4A-62DA-11cf-AB39-0020AF71E433} */ -DEFINE_GUID(TID_D3DRMLight, -0x3d82ab4a, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* {3D82AB51-62DA-11cf-AB39-0020AF71E433} */ -DEFINE_GUID(TID_D3DRMCamera, -0x3d82ab51, 0x62da, 0x11cf, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* {E5745280-B24F-11cf-9DD5-00AA00A71A2F} */ -DEFINE_GUID(TID_D3DRMAppData, -0xe5745280, 0xb24f, 0x11cf, 0x9d, 0xd5, 0x0, 0xaa, 0x0, 0xa7, 0x1a, 0x2f); - -/* {AED22740-B31F-11cf-9DD5-00AA00A71A2F} */ -DEFINE_GUID(TID_D3DRMLightUmbra, -0xaed22740, 0xb31f, 0x11cf, 0x9d, 0xd5, 0x0, 0xaa, 0x0, 0xa7, 0x1a, 0x2f); - -/* {AED22742-B31F-11cf-9DD5-00AA00A71A2F} */ -DEFINE_GUID(TID_D3DRMLightRange, -0xaed22742, 0xb31f, 0x11cf, 0x9d, 0xd5, 0x0, 0xaa, 0x0, 0xa7, 0x1a, 0x2f); - -/* {AED22741-B31F-11cf-9DD5-00AA00A71A2F} */ -DEFINE_GUID(TID_D3DRMLightPenumbra, -0xaed22741, 0xb31f, 0x11cf, 0x9d, 0xd5, 0x0, 0xaa, 0x0, 0xa7, 0x1a, 0x2f); - -/* {A8A98BA0-C5E5-11cf-B941-0080C80CFA7B} */ -DEFINE_GUID(TID_D3DRMLightAttenuation, -0xa8a98ba0, 0xc5e5, 0x11cf, 0xb9, 0x41, 0x0, 0x80, 0xc8, 0xc, 0xfa, 0x7b); - -/* {3A23EEA0-94B1-11d0-AB39-0020AF71E433} */ -DEFINE_GUID(TID_D3DRMInlineData, -0x3a23eea0, 0x94b1, 0x11d0, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* {3A23EEA1-94B1-11d0-AB39-0020AF71E433} */ -DEFINE_GUID(TID_D3DRMUrl, -0x3a23eea1, 0x94b1, 0x11d0, 0xab, 0x39, 0x0, 0x20, 0xaf, 0x71, 0xe4, 0x33); - -/* {8A63C360-997D-11d0-941C-0080C80CFA7B} */ -DEFINE_GUID(TID_D3DRMProgressiveMesh, -0x8A63C360, 0x997D, 0x11d0, 0x94, 0x1C, 0x0, 0x80, 0xC8, 0x0C, 0xFA, 0x7B); - -/* {98116AA0-BDBA-11d1-82C0-00A0C9697271} */ -DEFINE_GUID(TID_D3DRMExternalVisual, -0x98116AA0, 0xBDBA, 0x11d1, 0x82, 0xC0, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x71); - -/* {7F0F21E0-BFE1-11d1-82C0-00A0C9697271} */ -DEFINE_GUID(TID_D3DRMStringProperty, -0x7f0f21e0, 0xbfe1, 0x11d1, 0x82, 0xc0, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x71); - -/* {7F0F21E1-BFE1-11d1-82C0-00A0C9697271} */ -DEFINE_GUID(TID_D3DRMPropertyBag, -0x7f0f21e1, 0xbfe1, 0x11d1, 0x82, 0xc0, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x71); - -// {7F5D5EA0-D53A-11d1-82C0-00A0C9697271} -DEFINE_GUID(TID_D3DRMRightHanded, -0x7f5d5ea0, 0xd53a, 0x11d1, 0x82, 0xc0, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x71); - -#endif /* __RMXFGUID_H_ */ - diff --git a/sdk/dx8sdk/Include/rmxftmpl.h b/sdk/dx8sdk/Include/rmxftmpl.h deleted file mode 100644 index e0018d04..00000000 --- a/sdk/dx8sdk/Include/rmxftmpl.h +++ /dev/null @@ -1,339 +0,0 @@ -/* D3DRM XFile templates in binary form */ - -#ifndef _RMXFTMPL_H_ -#define _RMXFTMPL_H_ - -unsigned char D3DRM_XTEMPLATES[] = { - 0x78, 0x6f, 0x66, 0x20, 0x30, 0x33, 0x30, 0x32, 0x62, - 0x69, 0x6e, 0x20, 0x30, 0x30, 0x36, 0x34, 0x1f, 0, 0x1, - 0, 0x6, 0, 0, 0, 0x48, 0x65, 0x61, 0x64, 0x65, - 0x72, 0xa, 0, 0x5, 0, 0x43, 0xab, 0x82, 0x3d, 0xda, - 0x62, 0xcf, 0x11, 0xab, 0x39, 0, 0x20, 0xaf, 0x71, 0xe4, - 0x33, 0x28, 0, 0x1, 0, 0x5, 0, 0, 0, 0x6d, - 0x61, 0x6a, 0x6f, 0x72, 0x14, 0, 0x28, 0, 0x1, 0, - 0x5, 0, 0, 0, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x14, - 0, 0x29, 0, 0x1, 0, 0x5, 0, 0, 0, 0x66, - 0x6c, 0x61, 0x67, 0x73, 0x14, 0, 0xb, 0, 0x1f, 0, - 0x1, 0, 0x6, 0, 0, 0, 0x56, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0xa, 0, 0x5, 0, 0x5e, 0xab, 0x82, 0x3d, - 0xda, 0x62, 0xcf, 0x11, 0xab, 0x39, 0, 0x20, 0xaf, 0x71, - 0xe4, 0x33, 0x2a, 0, 0x1, 0, 0x1, 0, 0, 0, - 0x78, 0x14, 0, 0x2a, 0, 0x1, 0, 0x1, 0, 0, - 0, 0x79, 0x14, 0, 0x2a, 0, 0x1, 0, 0x1, 0, - 0, 0, 0x7a, 0x14, 0, 0xb, 0, 0x1f, 0, 0x1, - 0, 0x8, 0, 0, 0, 0x43, 0x6f, 0x6f, 0x72, 0x64, - 0x73, 0x32, 0x64, 0xa, 0, 0x5, 0, 0x44, 0x3f, 0xf2, - 0xf6, 0x86, 0x76, 0xcf, 0x11, 0x8f, 0x52, 0, 0x40, 0x33, - 0x35, 0x94, 0xa3, 0x2a, 0, 0x1, 0, 0x1, 0, 0, - 0, 0x75, 0x14, 0, 0x2a, 0, 0x1, 0, 0x1, 0, - 0, 0, 0x76, 0x14, 0, 0xb, 0, 0x1f, 0, 0x1, - 0, 0x9, 0, 0, 0, 0x4d, 0x61, 0x74, 0x72, 0x69, - 0x78, 0x34, 0x78, 0x34, 0xa, 0, 0x5, 0, 0x45, 0x3f, - 0xf2, 0xf6, 0x86, 0x76, 0xcf, 0x11, 0x8f, 0x52, 0, 0x40, - 0x33, 0x35, 0x94, 0xa3, 0x34, 0, 0x2a, 0, 0x1, 0, - 0x6, 0, 0, 0, 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, - 0xe, 0, 0x3, 0, 0x10, 0, 0, 0, 0xf, 0, - 0x14, 0, 0xb, 0, 0x1f, 0, 0x1, 0, 0x9, 0, - 0, 0, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x47, 0x42, - 0x41, 0xa, 0, 0x5, 0, 0xe0, 0x44, 0xff, 0x35, 0x7c, - 0x6c, 0xcf, 0x11, 0x8f, 0x52, 0, 0x40, 0x33, 0x35, 0x94, - 0xa3, 0x2a, 0, 0x1, 0, 0x3, 0, 0, 0, 0x72, - 0x65, 0x64, 0x14, 0, 0x2a, 0, 0x1, 0, 0x5, 0, - 0, 0, 0x67, 0x72, 0x65, 0x65, 0x6e, 0x14, 0, 0x2a, - 0, 0x1, 0, 0x4, 0, 0, 0, 0x62, 0x6c, 0x75, - 0x65, 0x14, 0, 0x2a, 0, 0x1, 0, 0x5, 0, 0, - 0, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x14, 0, 0xb, 0, - 0x1f, 0, 0x1, 0, 0x8, 0, 0, 0, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x52, 0x47, 0x42, 0xa, 0, 0x5, 0, - 0x81, 0x6e, 0xe1, 0xd3, 0x35, 0x78, 0xcf, 0x11, 0x8f, 0x52, - 0, 0x40, 0x33, 0x35, 0x94, 0xa3, 0x2a, 0, 0x1, 0, - 0x3, 0, 0, 0, 0x72, 0x65, 0x64, 0x14, 0, 0x2a, - 0, 0x1, 0, 0x5, 0, 0, 0, 0x67, 0x72, 0x65, - 0x65, 0x6e, 0x14, 0, 0x2a, 0, 0x1, 0, 0x4, 0, - 0, 0, 0x62, 0x6c, 0x75, 0x65, 0x14, 0, 0xb, 0, - 0x1f, 0, 0x1, 0, 0xc, 0, 0, 0, 0x49, 0x6e, - 0x64, 0x65, 0x78, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0xa, 0, 0x5, 0, 0x20, 0xb8, 0x30, 0x16, 0x42, 0x78, - 0xcf, 0x11, 0x8f, 0x52, 0, 0x40, 0x33, 0x35, 0x94, 0xa3, - 0x29, 0, 0x1, 0, 0x5, 0, 0, 0, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x14, 0, 0x1, 0, 0x9, 0, 0, - 0, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x47, 0x42, 0x41, - 0x1, 0, 0xa, 0, 0, 0, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x14, 0, 0xb, 0, - 0x1f, 0, 0x1, 0, 0x7, 0, 0, 0, 0x42, 0x6f, - 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0xa, 0, 0x5, 0, 0xa0, - 0xa6, 0x7d, 0x53, 0x37, 0xca, 0xd0, 0x11, 0x94, 0x1c, 0, - 0x80, 0xc8, 0xc, 0xfa, 0x7b, 0x29, 0, 0x1, 0, 0x9, - 0, 0, 0, 0x74, 0x72, 0x75, 0x65, 0x66, 0x61, 0x6c, - 0x73, 0x65, 0x14, 0, 0xb, 0, 0x1f, 0, 0x1, 0, - 0x9, 0, 0, 0, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, - 0x6e, 0x32, 0x64, 0xa, 0, 0x5, 0, 0x63, 0xae, 0x85, - 0x48, 0xe8, 0x78, 0xcf, 0x11, 0x8f, 0x52, 0, 0x40, 0x33, - 0x35, 0x94, 0xa3, 0x1, 0, 0x7, 0, 0, 0, 0x42, - 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x1, 0, 0x1, 0, - 0, 0, 0x75, 0x14, 0, 0x1, 0, 0x7, 0, 0, - 0, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x1, 0, - 0x1, 0, 0, 0, 0x76, 0x14, 0, 0xb, 0, 0x1f, - 0, 0x1, 0, 0xc, 0, 0, 0, 0x4d, 0x61, 0x74, - 0x65, 0x72, 0x69, 0x61, 0x6c, 0x57, 0x72, 0x61, 0x70, 0xa, - 0, 0x5, 0, 0x60, 0xae, 0x85, 0x48, 0xe8, 0x78, 0xcf, - 0x11, 0x8f, 0x52, 0, 0x40, 0x33, 0x35, 0x94, 0xa3, 0x1, - 0, 0x7, 0, 0, 0, 0x42, 0x6f, 0x6f, 0x6c, 0x65, - 0x61, 0x6e, 0x1, 0, 0x1, 0, 0, 0, 0x75, 0x14, - 0, 0x1, 0, 0x7, 0, 0, 0, 0x42, 0x6f, 0x6f, - 0x6c, 0x65, 0x61, 0x6e, 0x1, 0, 0x1, 0, 0, 0, - 0x76, 0x14, 0, 0xb, 0, 0x1f, 0, 0x1, 0, 0xf, - 0, 0, 0, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, - 0x46, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0xa, 0, - 0x5, 0, 0xe1, 0x90, 0x27, 0xa4, 0x10, 0x78, 0xcf, 0x11, - 0x8f, 0x52, 0, 0x40, 0x33, 0x35, 0x94, 0xa3, 0x31, 0, - 0x1, 0, 0x8, 0, 0, 0, 0x66, 0x69, 0x6c, 0x65, - 0x6e, 0x61, 0x6d, 0x65, 0x14, 0, 0xb, 0, 0x1f, 0, - 0x1, 0, 0x8, 0, 0, 0, 0x4d, 0x61, 0x74, 0x65, - 0x72, 0x69, 0x61, 0x6c, 0xa, 0, 0x5, 0, 0x4d, 0xab, - 0x82, 0x3d, 0xda, 0x62, 0xcf, 0x11, 0xab, 0x39, 0, 0x20, - 0xaf, 0x71, 0xe4, 0x33, 0x1, 0, 0x9, 0, 0, 0, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x47, 0x42, 0x41, 0x1, - 0, 0x9, 0, 0, 0, 0x66, 0x61, 0x63, 0x65, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x14, 0, 0x2a, 0, 0x1, 0, - 0x5, 0, 0, 0, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x14, - 0, 0x1, 0, 0x8, 0, 0, 0, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 0x52, 0x47, 0x42, 0x1, 0, 0xd, 0, 0, - 0, 0x73, 0x70, 0x65, 0x63, 0x75, 0x6c, 0x61, 0x72, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x14, 0, 0x1, 0, 0x8, 0, - 0, 0, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x47, 0x42, - 0x1, 0, 0xd, 0, 0, 0, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x14, - 0, 0xe, 0, 0x12, 0, 0x12, 0, 0x12, 0, 0xf, - 0, 0xb, 0, 0x1f, 0, 0x1, 0, 0x8, 0, 0, - 0, 0x4d, 0x65, 0x73, 0x68, 0x46, 0x61, 0x63, 0x65, 0xa, - 0, 0x5, 0, 0x5f, 0xab, 0x82, 0x3d, 0xda, 0x62, 0xcf, - 0x11, 0xab, 0x39, 0, 0x20, 0xaf, 0x71, 0xe4, 0x33, 0x29, - 0, 0x1, 0, 0x12, 0, 0, 0, 0x6e, 0x46, 0x61, - 0x63, 0x65, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x49, 0x6e, - 0x64, 0x69, 0x63, 0x65, 0x73, 0x14, 0, 0x34, 0, 0x29, - 0, 0x1, 0, 0x11, 0, 0, 0, 0x66, 0x61, 0x63, - 0x65, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x49, 0x6e, 0x64, - 0x69, 0x63, 0x65, 0x73, 0xe, 0, 0x1, 0, 0x12, 0, - 0, 0, 0x6e, 0x46, 0x61, 0x63, 0x65, 0x56, 0x65, 0x72, - 0x74, 0x65, 0x78, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, - 0xf, 0, 0x14, 0, 0xb, 0, 0x1f, 0, 0x1, 0, - 0xd, 0, 0, 0, 0x4d, 0x65, 0x73, 0x68, 0x46, 0x61, - 0x63, 0x65, 0x57, 0x72, 0x61, 0x70, 0x73, 0xa, 0, 0x5, - 0, 0xc0, 0xc5, 0x1e, 0xed, 0xa8, 0xc0, 0xd0, 0x11, 0x94, - 0x1c, 0, 0x80, 0xc8, 0xc, 0xfa, 0x7b, 0x29, 0, 0x1, - 0, 0xf, 0, 0, 0, 0x6e, 0x46, 0x61, 0x63, 0x65, - 0x57, 0x72, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x14, 0, 0x34, 0, 0x1, 0, 0x9, 0, 0, 0, - 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x32, 0x64, 0x1, - 0, 0xe, 0, 0, 0, 0x66, 0x61, 0x63, 0x65, 0x57, - 0x72, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0xe, - 0, 0x1, 0, 0xf, 0, 0, 0, 0x6e, 0x46, 0x61, - 0x63, 0x65, 0x57, 0x72, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0xf, 0, 0x14, 0, 0xb, 0, 0x1f, 0, - 0x1, 0, 0x11, 0, 0, 0, 0x4d, 0x65, 0x73, 0x68, - 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x6f, - 0x72, 0x64, 0x73, 0xa, 0, 0x5, 0, 0x40, 0x3f, 0xf2, - 0xf6, 0x86, 0x76, 0xcf, 0x11, 0x8f, 0x52, 0, 0x40, 0x33, - 0x35, 0x94, 0xa3, 0x29, 0, 0x1, 0, 0xe, 0, 0, - 0, 0x6e, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x43, - 0x6f, 0x6f, 0x72, 0x64, 0x73, 0x14, 0, 0x34, 0, 0x1, - 0, 0x8, 0, 0, 0, 0x43, 0x6f, 0x6f, 0x72, 0x64, - 0x73, 0x32, 0x64, 0x1, 0, 0xd, 0, 0, 0, 0x74, - 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x6f, 0x72, - 0x64, 0x73, 0xe, 0, 0x1, 0, 0xe, 0, 0, 0, - 0x6e, 0x54, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x43, 0x6f, - 0x6f, 0x72, 0x64, 0x73, 0xf, 0, 0x14, 0, 0xb, 0, - 0x1f, 0, 0x1, 0, 0x10, 0, 0, 0, 0x4d, 0x65, - 0x73, 0x68, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, - 0x4c, 0x69, 0x73, 0x74, 0xa, 0, 0x5, 0, 0x42, 0x3f, - 0xf2, 0xf6, 0x86, 0x76, 0xcf, 0x11, 0x8f, 0x52, 0, 0x40, - 0x33, 0x35, 0x94, 0xa3, 0x29, 0, 0x1, 0, 0xa, 0, - 0, 0, 0x6e, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, - 0x6c, 0x73, 0x14, 0, 0x29, 0, 0x1, 0, 0xc, 0, - 0, 0, 0x6e, 0x46, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x64, - 0x65, 0x78, 0x65, 0x73, 0x14, 0, 0x34, 0, 0x29, 0, - 0x1, 0, 0xb, 0, 0, 0, 0x66, 0x61, 0x63, 0x65, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0xe, 0, 0x1, - 0, 0xc, 0, 0, 0, 0x6e, 0x46, 0x61, 0x63, 0x65, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0xf, 0, 0x14, - 0, 0xe, 0, 0x1, 0, 0x8, 0, 0, 0, 0x4d, - 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0xf, 0, 0xb, - 0, 0x1f, 0, 0x1, 0, 0xb, 0, 0, 0, 0x4d, - 0x65, 0x73, 0x68, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x73, - 0xa, 0, 0x5, 0, 0x43, 0x3f, 0xf2, 0xf6, 0x86, 0x76, - 0xcf, 0x11, 0x8f, 0x52, 0, 0x40, 0x33, 0x35, 0x94, 0xa3, - 0x29, 0, 0x1, 0, 0x8, 0, 0, 0, 0x6e, 0x4e, - 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x73, 0x14, 0, 0x34, 0, - 0x1, 0, 0x6, 0, 0, 0, 0x56, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x1, 0, 0x7, 0, 0, 0, 0x6e, 0x6f, - 0x72, 0x6d, 0x61, 0x6c, 0x73, 0xe, 0, 0x1, 0, 0x8, - 0, 0, 0, 0x6e, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, - 0x73, 0xf, 0, 0x14, 0, 0x29, 0, 0x1, 0, 0xc, - 0, 0, 0, 0x6e, 0x46, 0x61, 0x63, 0x65, 0x4e, 0x6f, - 0x72, 0x6d, 0x61, 0x6c, 0x73, 0x14, 0, 0x34, 0, 0x1, - 0, 0x8, 0, 0, 0, 0x4d, 0x65, 0x73, 0x68, 0x46, - 0x61, 0x63, 0x65, 0x1, 0, 0xb, 0, 0, 0, 0x66, - 0x61, 0x63, 0x65, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x73, - 0xe, 0, 0x1, 0, 0xc, 0, 0, 0, 0x6e, 0x46, - 0x61, 0x63, 0x65, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x73, - 0xf, 0, 0x14, 0, 0xb, 0, 0x1f, 0, 0x1, 0, - 0x10, 0, 0, 0, 0x4d, 0x65, 0x73, 0x68, 0x56, 0x65, - 0x72, 0x74, 0x65, 0x78, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x73, - 0xa, 0, 0x5, 0, 0x21, 0xb8, 0x30, 0x16, 0x42, 0x78, - 0xcf, 0x11, 0x8f, 0x52, 0, 0x40, 0x33, 0x35, 0x94, 0xa3, - 0x29, 0, 0x1, 0, 0xd, 0, 0, 0, 0x6e, 0x56, - 0x65, 0x72, 0x74, 0x65, 0x78, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x73, 0x14, 0, 0x34, 0, 0x1, 0, 0xc, 0, 0, - 0, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x1, 0, 0xc, 0, 0, 0, 0x76, - 0x65, 0x72, 0x74, 0x65, 0x78, 0x43, 0x6f, 0x6c, 0x6f, 0x72, - 0x73, 0xe, 0, 0x1, 0, 0xd, 0, 0, 0, 0x6e, - 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x73, 0xf, 0, 0x14, 0, 0xb, 0, 0x1f, 0, - 0x1, 0, 0x4, 0, 0, 0, 0x4d, 0x65, 0x73, 0x68, - 0xa, 0, 0x5, 0, 0x44, 0xab, 0x82, 0x3d, 0xda, 0x62, - 0xcf, 0x11, 0xab, 0x39, 0, 0x20, 0xaf, 0x71, 0xe4, 0x33, - 0x29, 0, 0x1, 0, 0x9, 0, 0, 0, 0x6e, 0x56, - 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x14, 0, 0x34, - 0, 0x1, 0, 0x6, 0, 0, 0, 0x56, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x1, 0, 0x8, 0, 0, 0, 0x76, - 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0xe, 0, 0x1, - 0, 0x9, 0, 0, 0, 0x6e, 0x56, 0x65, 0x72, 0x74, - 0x69, 0x63, 0x65, 0x73, 0xf, 0, 0x14, 0, 0x29, 0, - 0x1, 0, 0x6, 0, 0, 0, 0x6e, 0x46, 0x61, 0x63, - 0x65, 0x73, 0x14, 0, 0x34, 0, 0x1, 0, 0x8, 0, - 0, 0, 0x4d, 0x65, 0x73, 0x68, 0x46, 0x61, 0x63, 0x65, - 0x1, 0, 0x5, 0, 0, 0, 0x66, 0x61, 0x63, 0x65, - 0x73, 0xe, 0, 0x1, 0, 0x6, 0, 0, 0, 0x6e, - 0x46, 0x61, 0x63, 0x65, 0x73, 0xf, 0, 0x14, 0, 0xe, - 0, 0x12, 0, 0x12, 0, 0x12, 0, 0xf, 0, 0xb, - 0, 0x1f, 0, 0x1, 0, 0x14, 0, 0, 0, 0x46, - 0x72, 0x61, 0x6d, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0xa, - 0, 0x5, 0, 0x41, 0x3f, 0xf2, 0xf6, 0x86, 0x76, 0xcf, - 0x11, 0x8f, 0x52, 0, 0x40, 0x33, 0x35, 0x94, 0xa3, 0x1, - 0, 0x9, 0, 0, 0, 0x4d, 0x61, 0x74, 0x72, 0x69, - 0x78, 0x34, 0x78, 0x34, 0x1, 0, 0xb, 0, 0, 0, - 0x66, 0x72, 0x61, 0x6d, 0x65, 0x4d, 0x61, 0x74, 0x72, 0x69, - 0x78, 0x14, 0, 0xb, 0, 0x1f, 0, 0x1, 0, 0x5, - 0, 0, 0, 0x46, 0x72, 0x61, 0x6d, 0x65, 0xa, 0, - 0x5, 0, 0x46, 0xab, 0x82, 0x3d, 0xda, 0x62, 0xcf, 0x11, - 0xab, 0x39, 0, 0x20, 0xaf, 0x71, 0xe4, 0x33, 0xe, 0, - 0x12, 0, 0x12, 0, 0x12, 0, 0xf, 0, 0xb, 0, - 0x1f, 0, 0x1, 0, 0x9, 0, 0, 0, 0x46, 0x6c, - 0x6f, 0x61, 0x74, 0x4b, 0x65, 0x79, 0x73, 0xa, 0, 0x5, - 0, 0xa9, 0x46, 0xdd, 0x10, 0x5b, 0x77, 0xcf, 0x11, 0x8f, - 0x52, 0, 0x40, 0x33, 0x35, 0x94, 0xa3, 0x29, 0, 0x1, - 0, 0x7, 0, 0, 0, 0x6e, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x14, 0, 0x34, 0, 0x2a, 0, 0x1, 0, - 0x6, 0, 0, 0, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0xe, 0, 0x1, 0, 0x7, 0, 0, 0, 0x6e, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0xf, 0, 0x14, 0, 0xb, - 0, 0x1f, 0, 0x1, 0, 0xe, 0, 0, 0, 0x54, - 0x69, 0x6d, 0x65, 0x64, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x4b, - 0x65, 0x79, 0x73, 0xa, 0, 0x5, 0, 0x80, 0xb1, 0x6, - 0xf4, 0x3b, 0x7b, 0xcf, 0x11, 0x8f, 0x52, 0, 0x40, 0x33, - 0x35, 0x94, 0xa3, 0x29, 0, 0x1, 0, 0x4, 0, 0, - 0, 0x74, 0x69, 0x6d, 0x65, 0x14, 0, 0x1, 0, 0x9, - 0, 0, 0, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x4b, 0x65, - 0x79, 0x73, 0x1, 0, 0x6, 0, 0, 0, 0x74, 0x66, - 0x6b, 0x65, 0x79, 0x73, 0x14, 0, 0xb, 0, 0x1f, 0, - 0x1, 0, 0xc, 0, 0, 0, 0x41, 0x6e, 0x69, 0x6d, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0xa, 0, - 0x5, 0, 0xa8, 0x46, 0xdd, 0x10, 0x5b, 0x77, 0xcf, 0x11, - 0x8f, 0x52, 0, 0x40, 0x33, 0x35, 0x94, 0xa3, 0x29, 0, - 0x1, 0, 0x7, 0, 0, 0, 0x6b, 0x65, 0x79, 0x54, - 0x79, 0x70, 0x65, 0x14, 0, 0x29, 0, 0x1, 0, 0x5, - 0, 0, 0, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x14, 0, - 0x34, 0, 0x1, 0, 0xe, 0, 0, 0, 0x54, 0x69, - 0x6d, 0x65, 0x64, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x4b, 0x65, - 0x79, 0x73, 0x1, 0, 0x4, 0, 0, 0, 0x6b, 0x65, - 0x79, 0x73, 0xe, 0, 0x1, 0, 0x5, 0, 0, 0, - 0x6e, 0x4b, 0x65, 0x79, 0x73, 0xf, 0, 0x14, 0, 0xb, - 0, 0x1f, 0, 0x1, 0, 0x10, 0, 0, 0, 0x41, - 0x6e, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xa, 0, 0x5, 0, 0xc0, - 0x56, 0xbf, 0xe2, 0xf, 0x84, 0xcf, 0x11, 0x8f, 0x52, 0, - 0x40, 0x33, 0x35, 0x94, 0xa3, 0x29, 0, 0x1, 0, 0xa, - 0, 0, 0, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6c, 0x6f, - 0x73, 0x65, 0x64, 0x14, 0, 0x29, 0, 0x1, 0, 0xf, - 0, 0, 0, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x14, 0, - 0xb, 0, 0x1f, 0, 0x1, 0, 0x9, 0, 0, 0, - 0x41, 0x6e, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa, - 0, 0x5, 0, 0x4f, 0xab, 0x82, 0x3d, 0xda, 0x62, 0xcf, - 0x11, 0xab, 0x39, 0, 0x20, 0xaf, 0x71, 0xe4, 0x33, 0xe, - 0, 0x12, 0, 0x12, 0, 0x12, 0, 0xf, 0, 0xb, - 0, 0x1f, 0, 0x1, 0, 0xc, 0, 0, 0, 0x41, - 0x6e, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, - 0x74, 0xa, 0, 0x5, 0, 0x50, 0xab, 0x82, 0x3d, 0xda, - 0x62, 0xcf, 0x11, 0xab, 0x39, 0, 0x20, 0xaf, 0x71, 0xe4, - 0x33, 0xe, 0, 0x1, 0, 0x9, 0, 0, 0, 0x41, - 0x6e, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xf, 0, - 0xb, 0, 0x1f, 0, 0x1, 0, 0xa, 0, 0, 0, - 0x49, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, - 0xa, 0, 0x5, 0, 0xa0, 0xee, 0x23, 0x3a, 0xb1, 0x94, - 0xd0, 0x11, 0xab, 0x39, 0, 0x20, 0xaf, 0x71, 0xe4, 0x33, - 0xe, 0, 0x1, 0, 0x6, 0, 0, 0, 0x42, 0x49, - 0x4e, 0x41, 0x52, 0x59, 0xf, 0, 0xb, 0, 0x1f, 0, - 0x1, 0, 0x3, 0, 0, 0, 0x55, 0x72, 0x6c, 0xa, - 0, 0x5, 0, 0xa1, 0xee, 0x23, 0x3a, 0xb1, 0x94, 0xd0, - 0x11, 0xab, 0x39, 0, 0x20, 0xaf, 0x71, 0xe4, 0x33, 0x29, - 0, 0x1, 0, 0x5, 0, 0, 0, 0x6e, 0x55, 0x72, - 0x6c, 0x73, 0x14, 0, 0x34, 0, 0x31, 0, 0x1, 0, - 0x4, 0, 0, 0, 0x75, 0x72, 0x6c, 0x73, 0xe, 0, - 0x1, 0, 0x5, 0, 0, 0, 0x6e, 0x55, 0x72, 0x6c, - 0x73, 0xf, 0, 0x14, 0, 0xb, 0, 0x1f, 0, 0x1, - 0, 0xf, 0, 0, 0, 0x50, 0x72, 0x6f, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x68, - 0xa, 0, 0x5, 0, 0x60, 0xc3, 0x63, 0x8a, 0x7d, 0x99, - 0xd0, 0x11, 0x94, 0x1c, 0, 0x80, 0xc8, 0xc, 0xfa, 0x7b, - 0xe, 0, 0x1, 0, 0x3, 0, 0, 0, 0x55, 0x72, - 0x6c, 0x13, 0, 0x1, 0, 0xa, 0, 0, 0, 0x49, - 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0xf, - 0, 0xb, 0, 0x1f, 0, 0x1, 0, 0x4, 0, 0, - 0, 0x47, 0x75, 0x69, 0x64, 0xa, 0, 0x5, 0, 0xe0, - 0x90, 0x27, 0xa4, 0x10, 0x78, 0xcf, 0x11, 0x8f, 0x52, 0, - 0x40, 0x33, 0x35, 0x94, 0xa3, 0x29, 0, 0x1, 0, 0x5, - 0, 0, 0, 0x64, 0x61, 0x74, 0x61, 0x31, 0x14, 0, - 0x28, 0, 0x1, 0, 0x5, 0, 0, 0, 0x64, 0x61, - 0x74, 0x61, 0x32, 0x14, 0, 0x28, 0, 0x1, 0, 0x5, - 0, 0, 0, 0x64, 0x61, 0x74, 0x61, 0x33, 0x14, 0, - 0x34, 0, 0x2d, 0, 0x1, 0, 0x5, 0, 0, 0, - 0x64, 0x61, 0x74, 0x61, 0x34, 0xe, 0, 0x3, 0, 0x8, - 0, 0, 0, 0xf, 0, 0x14, 0, 0xb, 0, 0x1f, - 0, 0x1, 0, 0xe, 0, 0, 0, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, - 0x79, 0xa, 0, 0x5, 0, 0xe0, 0x21, 0xf, 0x7f, 0xe1, - 0xbf, 0xd1, 0x11, 0x82, 0xc0, 0, 0xa0, 0xc9, 0x69, 0x72, - 0x71, 0x31, 0, 0x1, 0, 0x3, 0, 0, 0, 0x6b, - 0x65, 0x79, 0x14, 0, 0x31, 0, 0x1, 0, 0x5, 0, - 0, 0, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x14, 0, 0xb, - 0, 0x1f, 0, 0x1, 0, 0xb, 0, 0, 0, 0x50, - 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x42, 0x61, 0x67, - 0xa, 0, 0x5, 0, 0xe1, 0x21, 0xf, 0x7f, 0xe1, 0xbf, - 0xd1, 0x11, 0x82, 0xc0, 0, 0xa0, 0xc9, 0x69, 0x72, 0x71, - 0xe, 0, 0x1, 0, 0xe, 0, 0, 0, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, - 0x74, 0x79, 0xf, 0, 0xb, 0, 0x1f, 0, 0x1, 0, - 0xe, 0, 0, 0, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, - 0x61, 0x6c, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0xa, 0, - 0x5, 0, 0xa0, 0x6a, 0x11, 0x98, 0xba, 0xbd, 0xd1, 0x11, - 0x82, 0xc0, 0, 0xa0, 0xc9, 0x69, 0x72, 0x71, 0x1, 0, - 0x4, 0, 0, 0, 0x47, 0x75, 0x69, 0x64, 0x1, 0, - 0x12, 0, 0, 0, 0x67, 0x75, 0x69, 0x64, 0x45, 0x78, - 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x56, 0x69, 0x73, 0x75, - 0x61, 0x6c, 0x14, 0, 0xe, 0, 0x12, 0, 0x12, 0, - 0x12, 0, 0xf, 0, 0xb, 0, 0x1f, 0, 0x1, 0, - 0xb, 0, 0, 0, 0x52, 0x69, 0x67, 0x68, 0x74, 0x48, - 0x61, 0x6e, 0x64, 0x65, 0x64, 0xa, 0, 0x5, 0, 0xa0, - 0x5e, 0x5d, 0x7f, 0x3a, 0xd5, 0xd1, 0x11, 0x82, 0xc0, 0, - 0xa0, 0xc9, 0x69, 0x72, 0x71, 0x29, 0, 0x1, 0, 0xc, - 0, 0, 0, 0x62, 0x52, 0x69, 0x67, 0x68, 0x74, 0x48, - 0x61, 0x6e, 0x64, 0x65, 0x64, 0x14, 0, 0xb, 0 -}; - -#define D3DRM_XTEMPLATE_BYTES 3278 - -#endif /* _RMXFTMPL_H_ */ diff --git a/sdk/dx8sdk/Include/sbe.h b/sdk/dx8sdk/Include/sbe.h deleted file mode 100644 index 0fcc4011..00000000 --- a/sdk/dx8sdk/Include/sbe.h +++ /dev/null @@ -1,1777 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for sbe.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __sbe_h__ -#define __sbe_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IStreamBufferInitialize_FWD_DEFINED__ -#define __IStreamBufferInitialize_FWD_DEFINED__ -typedef interface IStreamBufferInitialize IStreamBufferInitialize; -#endif /* __IStreamBufferInitialize_FWD_DEFINED__ */ - - -#ifndef __IStreamBufferSink_FWD_DEFINED__ -#define __IStreamBufferSink_FWD_DEFINED__ -typedef interface IStreamBufferSink IStreamBufferSink; -#endif /* __IStreamBufferSink_FWD_DEFINED__ */ - - -#ifndef __IStreamBufferSource_FWD_DEFINED__ -#define __IStreamBufferSource_FWD_DEFINED__ -typedef interface IStreamBufferSource IStreamBufferSource; -#endif /* __IStreamBufferSource_FWD_DEFINED__ */ - - -#ifndef __IStreamBufferRecordControl_FWD_DEFINED__ -#define __IStreamBufferRecordControl_FWD_DEFINED__ -typedef interface IStreamBufferRecordControl IStreamBufferRecordControl; -#endif /* __IStreamBufferRecordControl_FWD_DEFINED__ */ - - -#ifndef __IStreamBufferRecComp_FWD_DEFINED__ -#define __IStreamBufferRecComp_FWD_DEFINED__ -typedef interface IStreamBufferRecComp IStreamBufferRecComp; -#endif /* __IStreamBufferRecComp_FWD_DEFINED__ */ - - -#ifndef __IStreamBufferRecordingAttribute_FWD_DEFINED__ -#define __IStreamBufferRecordingAttribute_FWD_DEFINED__ -typedef interface IStreamBufferRecordingAttribute IStreamBufferRecordingAttribute; -#endif /* __IStreamBufferRecordingAttribute_FWD_DEFINED__ */ - - -#ifndef __IEnumStreamBufferRecordingAttrib_FWD_DEFINED__ -#define __IEnumStreamBufferRecordingAttrib_FWD_DEFINED__ -typedef interface IEnumStreamBufferRecordingAttrib IEnumStreamBufferRecordingAttrib; -#endif /* __IEnumStreamBufferRecordingAttrib_FWD_DEFINED__ */ - - -#ifndef __IStreamBufferConfigure_FWD_DEFINED__ -#define __IStreamBufferConfigure_FWD_DEFINED__ -typedef interface IStreamBufferConfigure IStreamBufferConfigure; -#endif /* __IStreamBufferConfigure_FWD_DEFINED__ */ - - -#ifndef __IStreamBufferMediaSeeking_FWD_DEFINED__ -#define __IStreamBufferMediaSeeking_FWD_DEFINED__ -typedef interface IStreamBufferMediaSeeking IStreamBufferMediaSeeking; -#endif /* __IStreamBufferMediaSeeking_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "unknwn.h" -#include "objidl.h" -#include "strmif.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_sbe_0000 */ -/* [local] */ - - - - - - - - - - - - -extern RPC_IF_HANDLE __MIDL_itf_sbe_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_sbe_0000_v0_0_s_ifspec; - -#ifndef __IStreamBufferInitialize_INTERFACE_DEFINED__ -#define __IStreamBufferInitialize_INTERFACE_DEFINED__ - -/* interface IStreamBufferInitialize */ -/* [local][unique][uuid][object] */ - - -EXTERN_C const IID IID_IStreamBufferInitialize; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9ce50f2d-6ba7-40fb-a034-50b1a674ec78") - IStreamBufferInitialize : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetHKEY( - /* [in] */ HKEY hkeyRoot) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSIDs( - /* [in] */ DWORD cSIDs, - /* [size_is][in] */ PSID *ppSID) = 0; - - }; - -#else /* C style interface */ - - typedef struct IStreamBufferInitializeVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IStreamBufferInitialize * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IStreamBufferInitialize * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IStreamBufferInitialize * This); - - HRESULT ( STDMETHODCALLTYPE *SetHKEY )( - IStreamBufferInitialize * This, - /* [in] */ HKEY hkeyRoot); - - HRESULT ( STDMETHODCALLTYPE *SetSIDs )( - IStreamBufferInitialize * This, - /* [in] */ DWORD cSIDs, - /* [size_is][in] */ PSID *ppSID); - - END_INTERFACE - } IStreamBufferInitializeVtbl; - - interface IStreamBufferInitialize - { - CONST_VTBL struct IStreamBufferInitializeVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IStreamBufferInitialize_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IStreamBufferInitialize_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IStreamBufferInitialize_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IStreamBufferInitialize_SetHKEY(This,hkeyRoot) \ - (This)->lpVtbl -> SetHKEY(This,hkeyRoot) - -#define IStreamBufferInitialize_SetSIDs(This,cSIDs,ppSID) \ - (This)->lpVtbl -> SetSIDs(This,cSIDs,ppSID) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IStreamBufferInitialize_SetHKEY_Proxy( - IStreamBufferInitialize * This, - /* [in] */ HKEY hkeyRoot); - - -void __RPC_STUB IStreamBufferInitialize_SetHKEY_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferInitialize_SetSIDs_Proxy( - IStreamBufferInitialize * This, - /* [in] */ DWORD cSIDs, - /* [size_is][in] */ PSID *ppSID); - - -void __RPC_STUB IStreamBufferInitialize_SetSIDs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IStreamBufferInitialize_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_sbe_0408 */ -/* [local] */ - - -enum __MIDL___MIDL_itf_sbe_0408_0001 - { RECORDING_TYPE_CONTENT = 0, - RECORDING_TYPE_REFERENCE = RECORDING_TYPE_CONTENT + 1 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_sbe_0408_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_sbe_0408_v0_0_s_ifspec; - -#ifndef __IStreamBufferSink_INTERFACE_DEFINED__ -#define __IStreamBufferSink_INTERFACE_DEFINED__ - -/* interface IStreamBufferSink */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IStreamBufferSink; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("afd1f242-7efd-45ee-ba4e-407a25c9a77a") - IStreamBufferSink : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE LockProfile( - /* [in] */ LPCWSTR pszStreamBufferFilename) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateRecorder( - /* [in] */ LPCWSTR pszFilename, - /* [in] */ DWORD dwRecordType, - /* [out] */ IUnknown **pRecordingIUnknown) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsProfileLocked( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IStreamBufferSinkVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IStreamBufferSink * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IStreamBufferSink * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IStreamBufferSink * This); - - HRESULT ( STDMETHODCALLTYPE *LockProfile )( - IStreamBufferSink * This, - /* [in] */ LPCWSTR pszStreamBufferFilename); - - HRESULT ( STDMETHODCALLTYPE *CreateRecorder )( - IStreamBufferSink * This, - /* [in] */ LPCWSTR pszFilename, - /* [in] */ DWORD dwRecordType, - /* [out] */ IUnknown **pRecordingIUnknown); - - HRESULT ( STDMETHODCALLTYPE *IsProfileLocked )( - IStreamBufferSink * This); - - END_INTERFACE - } IStreamBufferSinkVtbl; - - interface IStreamBufferSink - { - CONST_VTBL struct IStreamBufferSinkVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IStreamBufferSink_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IStreamBufferSink_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IStreamBufferSink_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IStreamBufferSink_LockProfile(This,pszStreamBufferFilename) \ - (This)->lpVtbl -> LockProfile(This,pszStreamBufferFilename) - -#define IStreamBufferSink_CreateRecorder(This,pszFilename,dwRecordType,pRecordingIUnknown) \ - (This)->lpVtbl -> CreateRecorder(This,pszFilename,dwRecordType,pRecordingIUnknown) - -#define IStreamBufferSink_IsProfileLocked(This) \ - (This)->lpVtbl -> IsProfileLocked(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IStreamBufferSink_LockProfile_Proxy( - IStreamBufferSink * This, - /* [in] */ LPCWSTR pszStreamBufferFilename); - - -void __RPC_STUB IStreamBufferSink_LockProfile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferSink_CreateRecorder_Proxy( - IStreamBufferSink * This, - /* [in] */ LPCWSTR pszFilename, - /* [in] */ DWORD dwRecordType, - /* [out] */ IUnknown **pRecordingIUnknown); - - -void __RPC_STUB IStreamBufferSink_CreateRecorder_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferSink_IsProfileLocked_Proxy( - IStreamBufferSink * This); - - -void __RPC_STUB IStreamBufferSink_IsProfileLocked_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IStreamBufferSink_INTERFACE_DEFINED__ */ - - -#ifndef __IStreamBufferSource_INTERFACE_DEFINED__ -#define __IStreamBufferSource_INTERFACE_DEFINED__ - -/* interface IStreamBufferSource */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IStreamBufferSource; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1c5bd776-6ced-4f44-8164-5eab0e98db12") - IStreamBufferSource : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetStreamSink( - /* [in] */ IStreamBufferSink *pIStreamBufferSink) = 0; - - }; - -#else /* C style interface */ - - typedef struct IStreamBufferSourceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IStreamBufferSource * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IStreamBufferSource * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IStreamBufferSource * This); - - HRESULT ( STDMETHODCALLTYPE *SetStreamSink )( - IStreamBufferSource * This, - /* [in] */ IStreamBufferSink *pIStreamBufferSink); - - END_INTERFACE - } IStreamBufferSourceVtbl; - - interface IStreamBufferSource - { - CONST_VTBL struct IStreamBufferSourceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IStreamBufferSource_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IStreamBufferSource_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IStreamBufferSource_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IStreamBufferSource_SetStreamSink(This,pIStreamBufferSink) \ - (This)->lpVtbl -> SetStreamSink(This,pIStreamBufferSink) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IStreamBufferSource_SetStreamSink_Proxy( - IStreamBufferSource * This, - /* [in] */ IStreamBufferSink *pIStreamBufferSink); - - -void __RPC_STUB IStreamBufferSource_SetStreamSink_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IStreamBufferSource_INTERFACE_DEFINED__ */ - - -#ifndef __IStreamBufferRecordControl_INTERFACE_DEFINED__ -#define __IStreamBufferRecordControl_INTERFACE_DEFINED__ - -/* interface IStreamBufferRecordControl */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IStreamBufferRecordControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("ba9b6c99-f3c7-4ff2-92db-cfdd4851bf31") - IStreamBufferRecordControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Start( - /* [out][in] */ REFERENCE_TIME *prtStart) = 0; - - virtual HRESULT STDMETHODCALLTYPE Stop( - /* [in] */ REFERENCE_TIME rtStop) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRecordingStatus( - /* [out] */ HRESULT *phResult, - /* [out] */ BOOL *pbStarted, - /* [out] */ BOOL *pbStopped) = 0; - - }; - -#else /* C style interface */ - - typedef struct IStreamBufferRecordControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IStreamBufferRecordControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IStreamBufferRecordControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IStreamBufferRecordControl * This); - - HRESULT ( STDMETHODCALLTYPE *Start )( - IStreamBufferRecordControl * This, - /* [out][in] */ REFERENCE_TIME *prtStart); - - HRESULT ( STDMETHODCALLTYPE *Stop )( - IStreamBufferRecordControl * This, - /* [in] */ REFERENCE_TIME rtStop); - - HRESULT ( STDMETHODCALLTYPE *GetRecordingStatus )( - IStreamBufferRecordControl * This, - /* [out] */ HRESULT *phResult, - /* [out] */ BOOL *pbStarted, - /* [out] */ BOOL *pbStopped); - - END_INTERFACE - } IStreamBufferRecordControlVtbl; - - interface IStreamBufferRecordControl - { - CONST_VTBL struct IStreamBufferRecordControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IStreamBufferRecordControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IStreamBufferRecordControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IStreamBufferRecordControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IStreamBufferRecordControl_Start(This,prtStart) \ - (This)->lpVtbl -> Start(This,prtStart) - -#define IStreamBufferRecordControl_Stop(This,rtStop) \ - (This)->lpVtbl -> Stop(This,rtStop) - -#define IStreamBufferRecordControl_GetRecordingStatus(This,phResult,pbStarted,pbStopped) \ - (This)->lpVtbl -> GetRecordingStatus(This,phResult,pbStarted,pbStopped) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecordControl_Start_Proxy( - IStreamBufferRecordControl * This, - /* [out][in] */ REFERENCE_TIME *prtStart); - - -void __RPC_STUB IStreamBufferRecordControl_Start_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecordControl_Stop_Proxy( - IStreamBufferRecordControl * This, - /* [in] */ REFERENCE_TIME rtStop); - - -void __RPC_STUB IStreamBufferRecordControl_Stop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecordControl_GetRecordingStatus_Proxy( - IStreamBufferRecordControl * This, - /* [out] */ HRESULT *phResult, - /* [out] */ BOOL *pbStarted, - /* [out] */ BOOL *pbStopped); - - -void __RPC_STUB IStreamBufferRecordControl_GetRecordingStatus_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IStreamBufferRecordControl_INTERFACE_DEFINED__ */ - - -#ifndef __IStreamBufferRecComp_INTERFACE_DEFINED__ -#define __IStreamBufferRecComp_INTERFACE_DEFINED__ - -/* interface IStreamBufferRecComp */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IStreamBufferRecComp; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9E259A9B-8815-42ae-B09F-221970B154FD") - IStreamBufferRecComp : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Initialize( - /* [in] */ LPCWSTR pszTargetFilename, - /* [in] */ LPCWSTR pszSBRecProfileRef) = 0; - - virtual HRESULT STDMETHODCALLTYPE Append( - /* [in] */ LPCWSTR pszSBRecording) = 0; - - virtual HRESULT STDMETHODCALLTYPE AppendEx( - /* [in] */ LPCWSTR pszSBRecording, - /* [in] */ REFERENCE_TIME rtStart, - /* [in] */ REFERENCE_TIME rtStop) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentLength( - /* [out] */ DWORD *pcSeconds) = 0; - - virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Cancel( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IStreamBufferRecCompVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IStreamBufferRecComp * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IStreamBufferRecComp * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IStreamBufferRecComp * This); - - HRESULT ( STDMETHODCALLTYPE *Initialize )( - IStreamBufferRecComp * This, - /* [in] */ LPCWSTR pszTargetFilename, - /* [in] */ LPCWSTR pszSBRecProfileRef); - - HRESULT ( STDMETHODCALLTYPE *Append )( - IStreamBufferRecComp * This, - /* [in] */ LPCWSTR pszSBRecording); - - HRESULT ( STDMETHODCALLTYPE *AppendEx )( - IStreamBufferRecComp * This, - /* [in] */ LPCWSTR pszSBRecording, - /* [in] */ REFERENCE_TIME rtStart, - /* [in] */ REFERENCE_TIME rtStop); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentLength )( - IStreamBufferRecComp * This, - /* [out] */ DWORD *pcSeconds); - - HRESULT ( STDMETHODCALLTYPE *Close )( - IStreamBufferRecComp * This); - - HRESULT ( STDMETHODCALLTYPE *Cancel )( - IStreamBufferRecComp * This); - - END_INTERFACE - } IStreamBufferRecCompVtbl; - - interface IStreamBufferRecComp - { - CONST_VTBL struct IStreamBufferRecCompVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IStreamBufferRecComp_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IStreamBufferRecComp_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IStreamBufferRecComp_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IStreamBufferRecComp_Initialize(This,pszTargetFilename,pszSBRecProfileRef) \ - (This)->lpVtbl -> Initialize(This,pszTargetFilename,pszSBRecProfileRef) - -#define IStreamBufferRecComp_Append(This,pszSBRecording) \ - (This)->lpVtbl -> Append(This,pszSBRecording) - -#define IStreamBufferRecComp_AppendEx(This,pszSBRecording,rtStart,rtStop) \ - (This)->lpVtbl -> AppendEx(This,pszSBRecording,rtStart,rtStop) - -#define IStreamBufferRecComp_GetCurrentLength(This,pcSeconds) \ - (This)->lpVtbl -> GetCurrentLength(This,pcSeconds) - -#define IStreamBufferRecComp_Close(This) \ - (This)->lpVtbl -> Close(This) - -#define IStreamBufferRecComp_Cancel(This) \ - (This)->lpVtbl -> Cancel(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecComp_Initialize_Proxy( - IStreamBufferRecComp * This, - /* [in] */ LPCWSTR pszTargetFilename, - /* [in] */ LPCWSTR pszSBRecProfileRef); - - -void __RPC_STUB IStreamBufferRecComp_Initialize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecComp_Append_Proxy( - IStreamBufferRecComp * This, - /* [in] */ LPCWSTR pszSBRecording); - - -void __RPC_STUB IStreamBufferRecComp_Append_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecComp_AppendEx_Proxy( - IStreamBufferRecComp * This, - /* [in] */ LPCWSTR pszSBRecording, - /* [in] */ REFERENCE_TIME rtStart, - /* [in] */ REFERENCE_TIME rtStop); - - -void __RPC_STUB IStreamBufferRecComp_AppendEx_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecComp_GetCurrentLength_Proxy( - IStreamBufferRecComp * This, - /* [out] */ DWORD *pcSeconds); - - -void __RPC_STUB IStreamBufferRecComp_GetCurrentLength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecComp_Close_Proxy( - IStreamBufferRecComp * This); - - -void __RPC_STUB IStreamBufferRecComp_Close_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecComp_Cancel_Proxy( - IStreamBufferRecComp * This); - - -void __RPC_STUB IStreamBufferRecComp_Cancel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IStreamBufferRecComp_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_sbe_0412 */ -/* [local] */ - -//////////////////////////////////////////////////////////////// -// -// List of pre-defined attributes -// -static const WCHAR g_wszStreamBufferRecordingDuration[] =L"Duration"; -static const WCHAR g_wszStreamBufferRecordingBitrate[] =L"Bitrate"; -static const WCHAR g_wszStreamBufferRecordingSeekable[] =L"Seekable"; -static const WCHAR g_wszStreamBufferRecordingStridable[] =L"Stridable"; -static const WCHAR g_wszStreamBufferRecordingBroadcast[] =L"Broadcast"; -static const WCHAR g_wszStreamBufferRecordingProtected[] =L"Is_Protected"; -static const WCHAR g_wszStreamBufferRecordingTrusted[] =L"Is_Trusted"; -static const WCHAR g_wszStreamBufferRecordingSignature_Name[] =L"Signature_Name"; -static const WCHAR g_wszStreamBufferRecordingHasAudio[] =L"HasAudio"; -static const WCHAR g_wszStreamBufferRecordingHasImage[] =L"HasImage"; -static const WCHAR g_wszStreamBufferRecordingHasScript[] =L"HasScript"; -static const WCHAR g_wszStreamBufferRecordingHasVideo[] =L"HasVideo"; -static const WCHAR g_wszStreamBufferRecordingCurrentBitrate[] =L"CurrentBitrate"; -static const WCHAR g_wszStreamBufferRecordingOptimalBitrate[] =L"OptimalBitrate"; -static const WCHAR g_wszStreamBufferRecordingHasAttachedImages[] =L"HasAttachedImages"; -static const WCHAR g_wszStreamBufferRecordingSkipBackward[] =L"Can_Skip_Backward"; -static const WCHAR g_wszStreamBufferRecordingSkipForward[] =L"Can_Skip_Forward"; -static const WCHAR g_wszStreamBufferRecordingNumberOfFrames[] =L"NumberOfFrames"; -static const WCHAR g_wszStreamBufferRecordingFileSize[] =L"FileSize"; -static const WCHAR g_wszStreamBufferRecordingHasArbitraryDataStream[] =L"HasArbitraryDataStream"; -static const WCHAR g_wszStreamBufferRecordingHasFileTransferStream[] =L"HasFileTransferStream"; - -//////////////////////////////////////////////////////////////// -// -// The content description object supports 5 basic attributes. -// -static const WCHAR g_wszStreamBufferRecordingTitle[] =L"Title"; -static const WCHAR g_wszStreamBufferRecordingAuthor[] =L"Author"; -static const WCHAR g_wszStreamBufferRecordingDescription[] =L"Description"; -static const WCHAR g_wszStreamBufferRecordingRating[] =L"Rating"; -static const WCHAR g_wszStreamBufferRecordingCopyright[] =L"Copyright"; - -//////////////////////////////////////////////////////////////// -// -// These attributes are used to configure DRM using IWMDRMWriter::SetDRMAttribute. -// -static const WCHAR *g_wszStreamBufferRecordingUse_DRM = L"Use_DRM"; -static const WCHAR *g_wszStreamBufferRecordingDRM_Flags = L"DRM_Flags"; -static const WCHAR *g_wszStreamBufferRecordingDRM_Level = L"DRM_Level"; - -//////////////////////////////////////////////////////////////// -// -// These are the additional attributes defined in the WM attribute -// namespace that give information about the content. -// -static const WCHAR g_wszStreamBufferRecordingAlbumTitle[] =L"WM/AlbumTitle"; -static const WCHAR g_wszStreamBufferRecordingTrack[] =L"WM/Track"; -static const WCHAR g_wszStreamBufferRecordingPromotionURL[] =L"WM/PromotionURL"; -static const WCHAR g_wszStreamBufferRecordingAlbumCoverURL[] =L"WM/AlbumCoverURL"; -static const WCHAR g_wszStreamBufferRecordingGenre[] =L"WM/Genre"; -static const WCHAR g_wszStreamBufferRecordingYear[] =L"WM/Year"; -static const WCHAR g_wszStreamBufferRecordingGenreID[] =L"WM/GenreID"; -static const WCHAR g_wszStreamBufferRecordingMCDI[] =L"WM/MCDI"; -static const WCHAR g_wszStreamBufferRecordingComposer[] =L"WM/Composer"; -static const WCHAR g_wszStreamBufferRecordingLyrics[] =L"WM/Lyrics"; -static const WCHAR g_wszStreamBufferRecordingTrackNumber[] =L"WM/TrackNumber"; -static const WCHAR g_wszStreamBufferRecordingToolName[] =L"WM/ToolName"; -static const WCHAR g_wszStreamBufferRecordingToolVersion[] =L"WM/ToolVersion"; -static const WCHAR g_wszStreamBufferRecordingIsVBR[] =L"IsVBR"; -static const WCHAR g_wszStreamBufferRecordingAlbumArtist[] =L"WM/AlbumArtist"; - -//////////////////////////////////////////////////////////////// -// -// These optional attributes may be used to give information -// about the branding of the content. -// -static const WCHAR g_wszStreamBufferRecordingBannerImageType[] =L"BannerImageType"; -static const WCHAR g_wszStreamBufferRecordingBannerImageData[] =L"BannerImageData"; -static const WCHAR g_wszStreamBufferRecordingBannerImageURL[] =L"BannerImageURL"; -static const WCHAR g_wszStreamBufferRecordingCopyrightURL[] =L"CopyrightURL"; -//////////////////////////////////////////////////////////////// -// -// Optional attributes, used to give information -// about video stream properties. -// -static const WCHAR g_wszStreamBufferRecordingAspectRatioX[] =L"AspectRatioX"; -static const WCHAR g_wszStreamBufferRecordingAspectRatioY[] =L"AspectRatioY"; -//////////////////////////////////////////////////////////////// -// -// The NSC file supports the following attributes. -// -static const WCHAR g_wszStreamBufferRecordingNSCName[] =L"NSC_Name"; -static const WCHAR g_wszStreamBufferRecordingNSCAddress[] =L"NSC_Address"; -static const WCHAR g_wszStreamBufferRecordingNSCPhone[] =L"NSC_Phone"; -static const WCHAR g_wszStreamBufferRecordingNSCEmail[] =L"NSC_Email"; -static const WCHAR g_wszStreamBufferRecordingNSCDescription[] =L"NSC_Description"; - -typedef /* [public][public][public][public][public][public] */ -enum __MIDL___MIDL_itf_sbe_0412_0001 - { STREAMBUFFER_TYPE_DWORD = 0, - STREAMBUFFER_TYPE_STRING = 1, - STREAMBUFFER_TYPE_BINARY = 2, - STREAMBUFFER_TYPE_BOOL = 3, - STREAMBUFFER_TYPE_QWORD = 4, - STREAMBUFFER_TYPE_WORD = 5, - STREAMBUFFER_TYPE_GUID = 6 - } STREAMBUFFER_ATTR_DATATYPE; - - - -extern RPC_IF_HANDLE __MIDL_itf_sbe_0412_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_sbe_0412_v0_0_s_ifspec; - -#ifndef __IStreamBufferRecordingAttribute_INTERFACE_DEFINED__ -#define __IStreamBufferRecordingAttribute_INTERFACE_DEFINED__ - -/* interface IStreamBufferRecordingAttribute */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IStreamBufferRecordingAttribute; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("16CA4E03-FE69-4705-BD41-5B7DFC0C95F3") - IStreamBufferRecordingAttribute : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetAttribute( - /* [in] */ ULONG ulReserved, - /* [in] */ LPCWSTR pszAttributeName, - /* [in] */ STREAMBUFFER_ATTR_DATATYPE StreamBufferAttributeType, - /* [in] */ BYTE *pbAttribute, - /* [in] */ WORD cbAttributeLength) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAttributeCount( - /* [in] */ ULONG ulReserved, - /* [out] */ WORD *pcAttributes) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAttributeByName( - /* [in] */ LPCWSTR pszAttributeName, - /* [in] */ ULONG *pulReserved, - /* [out] */ STREAMBUFFER_ATTR_DATATYPE *pStreamBufferAttributeType, - /* [out] */ BYTE *pbAttribute, - /* [out][in] */ WORD *pcbLength) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAttributeByIndex( - /* [in] */ WORD wIndex, - /* [in] */ ULONG *pulReserved, - /* [out] */ WCHAR *pszAttributeName, - /* [out][in] */ WORD *pcchNameLength, - /* [out] */ STREAMBUFFER_ATTR_DATATYPE *pStreamBufferAttributeType, - /* [out] */ BYTE *pbAttribute, - /* [out][in] */ WORD *pcbLength) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumAttributes( - /* [out] */ IEnumStreamBufferRecordingAttrib **ppIEnumStreamBufferAttrib) = 0; - - }; - -#else /* C style interface */ - - typedef struct IStreamBufferRecordingAttributeVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IStreamBufferRecordingAttribute * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IStreamBufferRecordingAttribute * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IStreamBufferRecordingAttribute * This); - - HRESULT ( STDMETHODCALLTYPE *SetAttribute )( - IStreamBufferRecordingAttribute * This, - /* [in] */ ULONG ulReserved, - /* [in] */ LPCWSTR pszAttributeName, - /* [in] */ STREAMBUFFER_ATTR_DATATYPE StreamBufferAttributeType, - /* [in] */ BYTE *pbAttribute, - /* [in] */ WORD cbAttributeLength); - - HRESULT ( STDMETHODCALLTYPE *GetAttributeCount )( - IStreamBufferRecordingAttribute * This, - /* [in] */ ULONG ulReserved, - /* [out] */ WORD *pcAttributes); - - HRESULT ( STDMETHODCALLTYPE *GetAttributeByName )( - IStreamBufferRecordingAttribute * This, - /* [in] */ LPCWSTR pszAttributeName, - /* [in] */ ULONG *pulReserved, - /* [out] */ STREAMBUFFER_ATTR_DATATYPE *pStreamBufferAttributeType, - /* [out] */ BYTE *pbAttribute, - /* [out][in] */ WORD *pcbLength); - - HRESULT ( STDMETHODCALLTYPE *GetAttributeByIndex )( - IStreamBufferRecordingAttribute * This, - /* [in] */ WORD wIndex, - /* [in] */ ULONG *pulReserved, - /* [out] */ WCHAR *pszAttributeName, - /* [out][in] */ WORD *pcchNameLength, - /* [out] */ STREAMBUFFER_ATTR_DATATYPE *pStreamBufferAttributeType, - /* [out] */ BYTE *pbAttribute, - /* [out][in] */ WORD *pcbLength); - - HRESULT ( STDMETHODCALLTYPE *EnumAttributes )( - IStreamBufferRecordingAttribute * This, - /* [out] */ IEnumStreamBufferRecordingAttrib **ppIEnumStreamBufferAttrib); - - END_INTERFACE - } IStreamBufferRecordingAttributeVtbl; - - interface IStreamBufferRecordingAttribute - { - CONST_VTBL struct IStreamBufferRecordingAttributeVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IStreamBufferRecordingAttribute_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IStreamBufferRecordingAttribute_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IStreamBufferRecordingAttribute_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IStreamBufferRecordingAttribute_SetAttribute(This,ulReserved,pszAttributeName,StreamBufferAttributeType,pbAttribute,cbAttributeLength) \ - (This)->lpVtbl -> SetAttribute(This,ulReserved,pszAttributeName,StreamBufferAttributeType,pbAttribute,cbAttributeLength) - -#define IStreamBufferRecordingAttribute_GetAttributeCount(This,ulReserved,pcAttributes) \ - (This)->lpVtbl -> GetAttributeCount(This,ulReserved,pcAttributes) - -#define IStreamBufferRecordingAttribute_GetAttributeByName(This,pszAttributeName,pulReserved,pStreamBufferAttributeType,pbAttribute,pcbLength) \ - (This)->lpVtbl -> GetAttributeByName(This,pszAttributeName,pulReserved,pStreamBufferAttributeType,pbAttribute,pcbLength) - -#define IStreamBufferRecordingAttribute_GetAttributeByIndex(This,wIndex,pulReserved,pszAttributeName,pcchNameLength,pStreamBufferAttributeType,pbAttribute,pcbLength) \ - (This)->lpVtbl -> GetAttributeByIndex(This,wIndex,pulReserved,pszAttributeName,pcchNameLength,pStreamBufferAttributeType,pbAttribute,pcbLength) - -#define IStreamBufferRecordingAttribute_EnumAttributes(This,ppIEnumStreamBufferAttrib) \ - (This)->lpVtbl -> EnumAttributes(This,ppIEnumStreamBufferAttrib) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecordingAttribute_SetAttribute_Proxy( - IStreamBufferRecordingAttribute * This, - /* [in] */ ULONG ulReserved, - /* [in] */ LPCWSTR pszAttributeName, - /* [in] */ STREAMBUFFER_ATTR_DATATYPE StreamBufferAttributeType, - /* [in] */ BYTE *pbAttribute, - /* [in] */ WORD cbAttributeLength); - - -void __RPC_STUB IStreamBufferRecordingAttribute_SetAttribute_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecordingAttribute_GetAttributeCount_Proxy( - IStreamBufferRecordingAttribute * This, - /* [in] */ ULONG ulReserved, - /* [out] */ WORD *pcAttributes); - - -void __RPC_STUB IStreamBufferRecordingAttribute_GetAttributeCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecordingAttribute_GetAttributeByName_Proxy( - IStreamBufferRecordingAttribute * This, - /* [in] */ LPCWSTR pszAttributeName, - /* [in] */ ULONG *pulReserved, - /* [out] */ STREAMBUFFER_ATTR_DATATYPE *pStreamBufferAttributeType, - /* [out] */ BYTE *pbAttribute, - /* [out][in] */ WORD *pcbLength); - - -void __RPC_STUB IStreamBufferRecordingAttribute_GetAttributeByName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecordingAttribute_GetAttributeByIndex_Proxy( - IStreamBufferRecordingAttribute * This, - /* [in] */ WORD wIndex, - /* [in] */ ULONG *pulReserved, - /* [out] */ WCHAR *pszAttributeName, - /* [out][in] */ WORD *pcchNameLength, - /* [out] */ STREAMBUFFER_ATTR_DATATYPE *pStreamBufferAttributeType, - /* [out] */ BYTE *pbAttribute, - /* [out][in] */ WORD *pcbLength); - - -void __RPC_STUB IStreamBufferRecordingAttribute_GetAttributeByIndex_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferRecordingAttribute_EnumAttributes_Proxy( - IStreamBufferRecordingAttribute * This, - /* [out] */ IEnumStreamBufferRecordingAttrib **ppIEnumStreamBufferAttrib); - - -void __RPC_STUB IStreamBufferRecordingAttribute_EnumAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IStreamBufferRecordingAttribute_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_sbe_0413 */ -/* [local] */ - -typedef /* [public][public] */ struct __MIDL___MIDL_itf_sbe_0413_0001 - { - LPWSTR pszName; - STREAMBUFFER_ATTR_DATATYPE StreamBufferAttributeType; - BYTE *pbAttribute; - WORD cbLength; - } STREAMBUFFER_ATTRIBUTE; - - - -extern RPC_IF_HANDLE __MIDL_itf_sbe_0413_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_sbe_0413_v0_0_s_ifspec; - -#ifndef __IEnumStreamBufferRecordingAttrib_INTERFACE_DEFINED__ -#define __IEnumStreamBufferRecordingAttrib_INTERFACE_DEFINED__ - -/* interface IEnumStreamBufferRecordingAttrib */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IEnumStreamBufferRecordingAttrib; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C18A9162-1E82-4142-8C73-5690FA62FE33") - IEnumStreamBufferRecordingAttrib : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Next( - /* [in] */ ULONG cRequest, - /* [size_is][out][in] */ STREAMBUFFER_ATTRIBUTE *pStreamBufferAttribute, - /* [out] */ ULONG *pcReceived) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - /* [in] */ ULONG cRecords) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IEnumStreamBufferRecordingAttrib **ppIEnumStreamBufferAttrib) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumStreamBufferRecordingAttribVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumStreamBufferRecordingAttrib * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumStreamBufferRecordingAttrib * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumStreamBufferRecordingAttrib * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumStreamBufferRecordingAttrib * This, - /* [in] */ ULONG cRequest, - /* [size_is][out][in] */ STREAMBUFFER_ATTRIBUTE *pStreamBufferAttribute, - /* [out] */ ULONG *pcReceived); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumStreamBufferRecordingAttrib * This, - /* [in] */ ULONG cRecords); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumStreamBufferRecordingAttrib * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumStreamBufferRecordingAttrib * This, - /* [out] */ IEnumStreamBufferRecordingAttrib **ppIEnumStreamBufferAttrib); - - END_INTERFACE - } IEnumStreamBufferRecordingAttribVtbl; - - interface IEnumStreamBufferRecordingAttrib - { - CONST_VTBL struct IEnumStreamBufferRecordingAttribVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEnumStreamBufferRecordingAttrib_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEnumStreamBufferRecordingAttrib_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEnumStreamBufferRecordingAttrib_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEnumStreamBufferRecordingAttrib_Next(This,cRequest,pStreamBufferAttribute,pcReceived) \ - (This)->lpVtbl -> Next(This,cRequest,pStreamBufferAttribute,pcReceived) - -#define IEnumStreamBufferRecordingAttrib_Skip(This,cRecords) \ - (This)->lpVtbl -> Skip(This,cRecords) - -#define IEnumStreamBufferRecordingAttrib_Reset(This) \ - (This)->lpVtbl -> Reset(This) - -#define IEnumStreamBufferRecordingAttrib_Clone(This,ppIEnumStreamBufferAttrib) \ - (This)->lpVtbl -> Clone(This,ppIEnumStreamBufferAttrib) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IEnumStreamBufferRecordingAttrib_Next_Proxy( - IEnumStreamBufferRecordingAttrib * This, - /* [in] */ ULONG cRequest, - /* [size_is][out][in] */ STREAMBUFFER_ATTRIBUTE *pStreamBufferAttribute, - /* [out] */ ULONG *pcReceived); - - -void __RPC_STUB IEnumStreamBufferRecordingAttrib_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumStreamBufferRecordingAttrib_Skip_Proxy( - IEnumStreamBufferRecordingAttrib * This, - /* [in] */ ULONG cRecords); - - -void __RPC_STUB IEnumStreamBufferRecordingAttrib_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumStreamBufferRecordingAttrib_Reset_Proxy( - IEnumStreamBufferRecordingAttrib * This); - - -void __RPC_STUB IEnumStreamBufferRecordingAttrib_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumStreamBufferRecordingAttrib_Clone_Proxy( - IEnumStreamBufferRecordingAttrib * This, - /* [out] */ IEnumStreamBufferRecordingAttrib **ppIEnumStreamBufferAttrib); - - -void __RPC_STUB IEnumStreamBufferRecordingAttrib_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEnumStreamBufferRecordingAttrib_INTERFACE_DEFINED__ */ - - -#ifndef __IStreamBufferConfigure_INTERFACE_DEFINED__ -#define __IStreamBufferConfigure_INTERFACE_DEFINED__ - -/* interface IStreamBufferConfigure */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IStreamBufferConfigure; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("ce14dfae-4098-4af7-bbf7-d6511f835414") - IStreamBufferConfigure : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetDirectory( - /* [in] */ LPCWSTR pszDirectoryName) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDirectory( - /* [out] */ LPWSTR *ppszDirectoryName) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBackingFileCount( - /* [in] */ DWORD dwMin, - /* [in] */ DWORD dwMax) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBackingFileCount( - /* [out] */ DWORD *pdwMin, - /* [out] */ DWORD *pdwMax) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBackingFileDuration( - /* [in] */ DWORD dwSeconds) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBackingFileDuration( - /* [out] */ DWORD *pdwSeconds) = 0; - - }; - -#else /* C style interface */ - - typedef struct IStreamBufferConfigureVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IStreamBufferConfigure * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IStreamBufferConfigure * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IStreamBufferConfigure * This); - - HRESULT ( STDMETHODCALLTYPE *SetDirectory )( - IStreamBufferConfigure * This, - /* [in] */ LPCWSTR pszDirectoryName); - - HRESULT ( STDMETHODCALLTYPE *GetDirectory )( - IStreamBufferConfigure * This, - /* [out] */ LPWSTR *ppszDirectoryName); - - HRESULT ( STDMETHODCALLTYPE *SetBackingFileCount )( - IStreamBufferConfigure * This, - /* [in] */ DWORD dwMin, - /* [in] */ DWORD dwMax); - - HRESULT ( STDMETHODCALLTYPE *GetBackingFileCount )( - IStreamBufferConfigure * This, - /* [out] */ DWORD *pdwMin, - /* [out] */ DWORD *pdwMax); - - HRESULT ( STDMETHODCALLTYPE *SetBackingFileDuration )( - IStreamBufferConfigure * This, - /* [in] */ DWORD dwSeconds); - - HRESULT ( STDMETHODCALLTYPE *GetBackingFileDuration )( - IStreamBufferConfigure * This, - /* [out] */ DWORD *pdwSeconds); - - END_INTERFACE - } IStreamBufferConfigureVtbl; - - interface IStreamBufferConfigure - { - CONST_VTBL struct IStreamBufferConfigureVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IStreamBufferConfigure_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IStreamBufferConfigure_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IStreamBufferConfigure_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IStreamBufferConfigure_SetDirectory(This,pszDirectoryName) \ - (This)->lpVtbl -> SetDirectory(This,pszDirectoryName) - -#define IStreamBufferConfigure_GetDirectory(This,ppszDirectoryName) \ - (This)->lpVtbl -> GetDirectory(This,ppszDirectoryName) - -#define IStreamBufferConfigure_SetBackingFileCount(This,dwMin,dwMax) \ - (This)->lpVtbl -> SetBackingFileCount(This,dwMin,dwMax) - -#define IStreamBufferConfigure_GetBackingFileCount(This,pdwMin,pdwMax) \ - (This)->lpVtbl -> GetBackingFileCount(This,pdwMin,pdwMax) - -#define IStreamBufferConfigure_SetBackingFileDuration(This,dwSeconds) \ - (This)->lpVtbl -> SetBackingFileDuration(This,dwSeconds) - -#define IStreamBufferConfigure_GetBackingFileDuration(This,pdwSeconds) \ - (This)->lpVtbl -> GetBackingFileDuration(This,pdwSeconds) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IStreamBufferConfigure_SetDirectory_Proxy( - IStreamBufferConfigure * This, - /* [in] */ LPCWSTR pszDirectoryName); - - -void __RPC_STUB IStreamBufferConfigure_SetDirectory_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferConfigure_GetDirectory_Proxy( - IStreamBufferConfigure * This, - /* [out] */ LPWSTR *ppszDirectoryName); - - -void __RPC_STUB IStreamBufferConfigure_GetDirectory_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferConfigure_SetBackingFileCount_Proxy( - IStreamBufferConfigure * This, - /* [in] */ DWORD dwMin, - /* [in] */ DWORD dwMax); - - -void __RPC_STUB IStreamBufferConfigure_SetBackingFileCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferConfigure_GetBackingFileCount_Proxy( - IStreamBufferConfigure * This, - /* [out] */ DWORD *pdwMin, - /* [out] */ DWORD *pdwMax); - - -void __RPC_STUB IStreamBufferConfigure_GetBackingFileCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferConfigure_SetBackingFileDuration_Proxy( - IStreamBufferConfigure * This, - /* [in] */ DWORD dwSeconds); - - -void __RPC_STUB IStreamBufferConfigure_SetBackingFileDuration_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBufferConfigure_GetBackingFileDuration_Proxy( - IStreamBufferConfigure * This, - /* [out] */ DWORD *pdwSeconds); - - -void __RPC_STUB IStreamBufferConfigure_GetBackingFileDuration_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IStreamBufferConfigure_INTERFACE_DEFINED__ */ - - -#ifndef __IStreamBufferMediaSeeking_INTERFACE_DEFINED__ -#define __IStreamBufferMediaSeeking_INTERFACE_DEFINED__ - -/* interface IStreamBufferMediaSeeking */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IStreamBufferMediaSeeking; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("f61f5c26-863d-4afa-b0ba-2f81dc978596") - IStreamBufferMediaSeeking : public IMediaSeeking - { - public: - }; - -#else /* C style interface */ - - typedef struct IStreamBufferMediaSeekingVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IStreamBufferMediaSeeking * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IStreamBufferMediaSeeking * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IStreamBufferMediaSeeking * This); - - HRESULT ( STDMETHODCALLTYPE *GetCapabilities )( - IStreamBufferMediaSeeking * This, - /* [out] */ DWORD *pCapabilities); - - HRESULT ( STDMETHODCALLTYPE *CheckCapabilities )( - IStreamBufferMediaSeeking * This, - /* [out][in] */ DWORD *pCapabilities); - - HRESULT ( STDMETHODCALLTYPE *IsFormatSupported )( - IStreamBufferMediaSeeking * This, - /* [in] */ const GUID *pFormat); - - HRESULT ( STDMETHODCALLTYPE *QueryPreferredFormat )( - IStreamBufferMediaSeeking * This, - /* [out] */ GUID *pFormat); - - HRESULT ( STDMETHODCALLTYPE *GetTimeFormat )( - IStreamBufferMediaSeeking * This, - /* [out] */ GUID *pFormat); - - HRESULT ( STDMETHODCALLTYPE *IsUsingTimeFormat )( - IStreamBufferMediaSeeking * This, - /* [in] */ const GUID *pFormat); - - HRESULT ( STDMETHODCALLTYPE *SetTimeFormat )( - IStreamBufferMediaSeeking * This, - /* [in] */ const GUID *pFormat); - - HRESULT ( STDMETHODCALLTYPE *GetDuration )( - IStreamBufferMediaSeeking * This, - /* [out] */ LONGLONG *pDuration); - - HRESULT ( STDMETHODCALLTYPE *GetStopPosition )( - IStreamBufferMediaSeeking * This, - /* [out] */ LONGLONG *pStop); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentPosition )( - IStreamBufferMediaSeeking * This, - /* [out] */ LONGLONG *pCurrent); - - HRESULT ( STDMETHODCALLTYPE *ConvertTimeFormat )( - IStreamBufferMediaSeeking * This, - /* [out] */ LONGLONG *pTarget, - /* [in] */ const GUID *pTargetFormat, - /* [in] */ LONGLONG Source, - /* [in] */ const GUID *pSourceFormat); - - HRESULT ( STDMETHODCALLTYPE *SetPositions )( - IStreamBufferMediaSeeking * This, - /* [out][in] */ LONGLONG *pCurrent, - /* [in] */ DWORD dwCurrentFlags, - /* [out][in] */ LONGLONG *pStop, - /* [in] */ DWORD dwStopFlags); - - HRESULT ( STDMETHODCALLTYPE *GetPositions )( - IStreamBufferMediaSeeking * This, - /* [out] */ LONGLONG *pCurrent, - /* [out] */ LONGLONG *pStop); - - HRESULT ( STDMETHODCALLTYPE *GetAvailable )( - IStreamBufferMediaSeeking * This, - /* [out] */ LONGLONG *pEarliest, - /* [out] */ LONGLONG *pLatest); - - HRESULT ( STDMETHODCALLTYPE *SetRate )( - IStreamBufferMediaSeeking * This, - /* [in] */ double dRate); - - HRESULT ( STDMETHODCALLTYPE *GetRate )( - IStreamBufferMediaSeeking * This, - /* [out] */ double *pdRate); - - HRESULT ( STDMETHODCALLTYPE *GetPreroll )( - IStreamBufferMediaSeeking * This, - /* [out] */ LONGLONG *pllPreroll); - - END_INTERFACE - } IStreamBufferMediaSeekingVtbl; - - interface IStreamBufferMediaSeeking - { - CONST_VTBL struct IStreamBufferMediaSeekingVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IStreamBufferMediaSeeking_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IStreamBufferMediaSeeking_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IStreamBufferMediaSeeking_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IStreamBufferMediaSeeking_GetCapabilities(This,pCapabilities) \ - (This)->lpVtbl -> GetCapabilities(This,pCapabilities) - -#define IStreamBufferMediaSeeking_CheckCapabilities(This,pCapabilities) \ - (This)->lpVtbl -> CheckCapabilities(This,pCapabilities) - -#define IStreamBufferMediaSeeking_IsFormatSupported(This,pFormat) \ - (This)->lpVtbl -> IsFormatSupported(This,pFormat) - -#define IStreamBufferMediaSeeking_QueryPreferredFormat(This,pFormat) \ - (This)->lpVtbl -> QueryPreferredFormat(This,pFormat) - -#define IStreamBufferMediaSeeking_GetTimeFormat(This,pFormat) \ - (This)->lpVtbl -> GetTimeFormat(This,pFormat) - -#define IStreamBufferMediaSeeking_IsUsingTimeFormat(This,pFormat) \ - (This)->lpVtbl -> IsUsingTimeFormat(This,pFormat) - -#define IStreamBufferMediaSeeking_SetTimeFormat(This,pFormat) \ - (This)->lpVtbl -> SetTimeFormat(This,pFormat) - -#define IStreamBufferMediaSeeking_GetDuration(This,pDuration) \ - (This)->lpVtbl -> GetDuration(This,pDuration) - -#define IStreamBufferMediaSeeking_GetStopPosition(This,pStop) \ - (This)->lpVtbl -> GetStopPosition(This,pStop) - -#define IStreamBufferMediaSeeking_GetCurrentPosition(This,pCurrent) \ - (This)->lpVtbl -> GetCurrentPosition(This,pCurrent) - -#define IStreamBufferMediaSeeking_ConvertTimeFormat(This,pTarget,pTargetFormat,Source,pSourceFormat) \ - (This)->lpVtbl -> ConvertTimeFormat(This,pTarget,pTargetFormat,Source,pSourceFormat) - -#define IStreamBufferMediaSeeking_SetPositions(This,pCurrent,dwCurrentFlags,pStop,dwStopFlags) \ - (This)->lpVtbl -> SetPositions(This,pCurrent,dwCurrentFlags,pStop,dwStopFlags) - -#define IStreamBufferMediaSeeking_GetPositions(This,pCurrent,pStop) \ - (This)->lpVtbl -> GetPositions(This,pCurrent,pStop) - -#define IStreamBufferMediaSeeking_GetAvailable(This,pEarliest,pLatest) \ - (This)->lpVtbl -> GetAvailable(This,pEarliest,pLatest) - -#define IStreamBufferMediaSeeking_SetRate(This,dRate) \ - (This)->lpVtbl -> SetRate(This,dRate) - -#define IStreamBufferMediaSeeking_GetRate(This,pdRate) \ - (This)->lpVtbl -> GetRate(This,pdRate) - -#define IStreamBufferMediaSeeking_GetPreroll(This,pllPreroll) \ - (This)->lpVtbl -> GetPreroll(This,pllPreroll) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IStreamBufferMediaSeeking_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_sbe_0416 */ -/* [local] */ - -#define STREAMBUFFER_EC_BASE 0x0326 -enum { - // timehole event - // param1 = timehole stream offset ms - // param1 = timehole size ms - STREAMBUFFER_EC_TIMEHOLE = STREAMBUFFER_EC_BASE, - - STREAMBUFFER_EC_STALE_DATA_READ, - - STREAMBUFFER_EC_STALE_FILE_DELETED, - STREAMBUFFER_EC_CONTENT_BECOMING_STALE, - STREAMBUFFER_EC_WRITE_FAILURE, - // - // unexpected read failure - // param1 = HRESULT failure - // param2 = undefined - STREAMBUFFER_EC_READ_FAILURE, - // - // playback rate change - // param1 = old_playback_rate * 10000 e.g. 2x is 20000 - // param2 = new_playback_rate * 10000 - STREAMBUFFER_EC_RATE_CHANGED, -} ; - - -extern RPC_IF_HANDLE __MIDL_itf_sbe_0416_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_sbe_0416_v0_0_s_ifspec; - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/strmif.h b/sdk/dx8sdk/Include/strmif.h deleted file mode 100644 index 600105e7..00000000 --- a/sdk/dx8sdk/Include/strmif.h +++ /dev/null @@ -1,30736 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for strmif.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __strmif_h__ -#define __strmif_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __ICreateDevEnum_FWD_DEFINED__ -#define __ICreateDevEnum_FWD_DEFINED__ -typedef interface ICreateDevEnum ICreateDevEnum; -#endif /* __ICreateDevEnum_FWD_DEFINED__ */ - - -#ifndef __IPin_FWD_DEFINED__ -#define __IPin_FWD_DEFINED__ -typedef interface IPin IPin; -#endif /* __IPin_FWD_DEFINED__ */ - - -#ifndef __IEnumPins_FWD_DEFINED__ -#define __IEnumPins_FWD_DEFINED__ -typedef interface IEnumPins IEnumPins; -#endif /* __IEnumPins_FWD_DEFINED__ */ - - -#ifndef __IEnumMediaTypes_FWD_DEFINED__ -#define __IEnumMediaTypes_FWD_DEFINED__ -typedef interface IEnumMediaTypes IEnumMediaTypes; -#endif /* __IEnumMediaTypes_FWD_DEFINED__ */ - - -#ifndef __IFilterGraph_FWD_DEFINED__ -#define __IFilterGraph_FWD_DEFINED__ -typedef interface IFilterGraph IFilterGraph; -#endif /* __IFilterGraph_FWD_DEFINED__ */ - - -#ifndef __IEnumFilters_FWD_DEFINED__ -#define __IEnumFilters_FWD_DEFINED__ -typedef interface IEnumFilters IEnumFilters; -#endif /* __IEnumFilters_FWD_DEFINED__ */ - - -#ifndef __IMediaFilter_FWD_DEFINED__ -#define __IMediaFilter_FWD_DEFINED__ -typedef interface IMediaFilter IMediaFilter; -#endif /* __IMediaFilter_FWD_DEFINED__ */ - - -#ifndef __IBaseFilter_FWD_DEFINED__ -#define __IBaseFilter_FWD_DEFINED__ -typedef interface IBaseFilter IBaseFilter; -#endif /* __IBaseFilter_FWD_DEFINED__ */ - - -#ifndef __IReferenceClock_FWD_DEFINED__ -#define __IReferenceClock_FWD_DEFINED__ -typedef interface IReferenceClock IReferenceClock; -#endif /* __IReferenceClock_FWD_DEFINED__ */ - - -#ifndef __IReferenceClock2_FWD_DEFINED__ -#define __IReferenceClock2_FWD_DEFINED__ -typedef interface IReferenceClock2 IReferenceClock2; -#endif /* __IReferenceClock2_FWD_DEFINED__ */ - - -#ifndef __IMediaSample_FWD_DEFINED__ -#define __IMediaSample_FWD_DEFINED__ -typedef interface IMediaSample IMediaSample; -#endif /* __IMediaSample_FWD_DEFINED__ */ - - -#ifndef __IMediaSample2_FWD_DEFINED__ -#define __IMediaSample2_FWD_DEFINED__ -typedef interface IMediaSample2 IMediaSample2; -#endif /* __IMediaSample2_FWD_DEFINED__ */ - - -#ifndef __IMemAllocator_FWD_DEFINED__ -#define __IMemAllocator_FWD_DEFINED__ -typedef interface IMemAllocator IMemAllocator; -#endif /* __IMemAllocator_FWD_DEFINED__ */ - - -#ifndef __IMemAllocatorCallbackTemp_FWD_DEFINED__ -#define __IMemAllocatorCallbackTemp_FWD_DEFINED__ -typedef interface IMemAllocatorCallbackTemp IMemAllocatorCallbackTemp; -#endif /* __IMemAllocatorCallbackTemp_FWD_DEFINED__ */ - - -#ifndef __IMemAllocatorNotifyCallbackTemp_FWD_DEFINED__ -#define __IMemAllocatorNotifyCallbackTemp_FWD_DEFINED__ -typedef interface IMemAllocatorNotifyCallbackTemp IMemAllocatorNotifyCallbackTemp; -#endif /* __IMemAllocatorNotifyCallbackTemp_FWD_DEFINED__ */ - - -#ifndef __IMemInputPin_FWD_DEFINED__ -#define __IMemInputPin_FWD_DEFINED__ -typedef interface IMemInputPin IMemInputPin; -#endif /* __IMemInputPin_FWD_DEFINED__ */ - - -#ifndef __IAMovieSetup_FWD_DEFINED__ -#define __IAMovieSetup_FWD_DEFINED__ -typedef interface IAMovieSetup IAMovieSetup; -#endif /* __IAMovieSetup_FWD_DEFINED__ */ - - -#ifndef __IMediaSeeking_FWD_DEFINED__ -#define __IMediaSeeking_FWD_DEFINED__ -typedef interface IMediaSeeking IMediaSeeking; -#endif /* __IMediaSeeking_FWD_DEFINED__ */ - - -#ifndef __IEnumRegFilters_FWD_DEFINED__ -#define __IEnumRegFilters_FWD_DEFINED__ -typedef interface IEnumRegFilters IEnumRegFilters; -#endif /* __IEnumRegFilters_FWD_DEFINED__ */ - - -#ifndef __IFilterMapper_FWD_DEFINED__ -#define __IFilterMapper_FWD_DEFINED__ -typedef interface IFilterMapper IFilterMapper; -#endif /* __IFilterMapper_FWD_DEFINED__ */ - - -#ifndef __IFilterMapper2_FWD_DEFINED__ -#define __IFilterMapper2_FWD_DEFINED__ -typedef interface IFilterMapper2 IFilterMapper2; -#endif /* __IFilterMapper2_FWD_DEFINED__ */ - - -#ifndef __IFilterMapper3_FWD_DEFINED__ -#define __IFilterMapper3_FWD_DEFINED__ -typedef interface IFilterMapper3 IFilterMapper3; -#endif /* __IFilterMapper3_FWD_DEFINED__ */ - - -#ifndef __IQualityControl_FWD_DEFINED__ -#define __IQualityControl_FWD_DEFINED__ -typedef interface IQualityControl IQualityControl; -#endif /* __IQualityControl_FWD_DEFINED__ */ - - -#ifndef __IOverlayNotify_FWD_DEFINED__ -#define __IOverlayNotify_FWD_DEFINED__ -typedef interface IOverlayNotify IOverlayNotify; -#endif /* __IOverlayNotify_FWD_DEFINED__ */ - - -#ifndef __IOverlayNotify2_FWD_DEFINED__ -#define __IOverlayNotify2_FWD_DEFINED__ -typedef interface IOverlayNotify2 IOverlayNotify2; -#endif /* __IOverlayNotify2_FWD_DEFINED__ */ - - -#ifndef __IOverlay_FWD_DEFINED__ -#define __IOverlay_FWD_DEFINED__ -typedef interface IOverlay IOverlay; -#endif /* __IOverlay_FWD_DEFINED__ */ - - -#ifndef __IMediaEventSink_FWD_DEFINED__ -#define __IMediaEventSink_FWD_DEFINED__ -typedef interface IMediaEventSink IMediaEventSink; -#endif /* __IMediaEventSink_FWD_DEFINED__ */ - - -#ifndef __IFileSourceFilter_FWD_DEFINED__ -#define __IFileSourceFilter_FWD_DEFINED__ -typedef interface IFileSourceFilter IFileSourceFilter; -#endif /* __IFileSourceFilter_FWD_DEFINED__ */ - - -#ifndef __IFileSinkFilter_FWD_DEFINED__ -#define __IFileSinkFilter_FWD_DEFINED__ -typedef interface IFileSinkFilter IFileSinkFilter; -#endif /* __IFileSinkFilter_FWD_DEFINED__ */ - - -#ifndef __IFileSinkFilter2_FWD_DEFINED__ -#define __IFileSinkFilter2_FWD_DEFINED__ -typedef interface IFileSinkFilter2 IFileSinkFilter2; -#endif /* __IFileSinkFilter2_FWD_DEFINED__ */ - - -#ifndef __IGraphBuilder_FWD_DEFINED__ -#define __IGraphBuilder_FWD_DEFINED__ -typedef interface IGraphBuilder IGraphBuilder; -#endif /* __IGraphBuilder_FWD_DEFINED__ */ - - -#ifndef __ICaptureGraphBuilder_FWD_DEFINED__ -#define __ICaptureGraphBuilder_FWD_DEFINED__ -typedef interface ICaptureGraphBuilder ICaptureGraphBuilder; -#endif /* __ICaptureGraphBuilder_FWD_DEFINED__ */ - - -#ifndef __IAMCopyCaptureFileProgress_FWD_DEFINED__ -#define __IAMCopyCaptureFileProgress_FWD_DEFINED__ -typedef interface IAMCopyCaptureFileProgress IAMCopyCaptureFileProgress; -#endif /* __IAMCopyCaptureFileProgress_FWD_DEFINED__ */ - - -#ifndef __ICaptureGraphBuilder2_FWD_DEFINED__ -#define __ICaptureGraphBuilder2_FWD_DEFINED__ -typedef interface ICaptureGraphBuilder2 ICaptureGraphBuilder2; -#endif /* __ICaptureGraphBuilder2_FWD_DEFINED__ */ - - -#ifndef __IFilterGraph2_FWD_DEFINED__ -#define __IFilterGraph2_FWD_DEFINED__ -typedef interface IFilterGraph2 IFilterGraph2; -#endif /* __IFilterGraph2_FWD_DEFINED__ */ - - -#ifndef __IStreamBuilder_FWD_DEFINED__ -#define __IStreamBuilder_FWD_DEFINED__ -typedef interface IStreamBuilder IStreamBuilder; -#endif /* __IStreamBuilder_FWD_DEFINED__ */ - - -#ifndef __IAsyncReader_FWD_DEFINED__ -#define __IAsyncReader_FWD_DEFINED__ -typedef interface IAsyncReader IAsyncReader; -#endif /* __IAsyncReader_FWD_DEFINED__ */ - - -#ifndef __IGraphVersion_FWD_DEFINED__ -#define __IGraphVersion_FWD_DEFINED__ -typedef interface IGraphVersion IGraphVersion; -#endif /* __IGraphVersion_FWD_DEFINED__ */ - - -#ifndef __IResourceConsumer_FWD_DEFINED__ -#define __IResourceConsumer_FWD_DEFINED__ -typedef interface IResourceConsumer IResourceConsumer; -#endif /* __IResourceConsumer_FWD_DEFINED__ */ - - -#ifndef __IResourceManager_FWD_DEFINED__ -#define __IResourceManager_FWD_DEFINED__ -typedef interface IResourceManager IResourceManager; -#endif /* __IResourceManager_FWD_DEFINED__ */ - - -#ifndef __IDistributorNotify_FWD_DEFINED__ -#define __IDistributorNotify_FWD_DEFINED__ -typedef interface IDistributorNotify IDistributorNotify; -#endif /* __IDistributorNotify_FWD_DEFINED__ */ - - -#ifndef __IAMStreamControl_FWD_DEFINED__ -#define __IAMStreamControl_FWD_DEFINED__ -typedef interface IAMStreamControl IAMStreamControl; -#endif /* __IAMStreamControl_FWD_DEFINED__ */ - - -#ifndef __ISeekingPassThru_FWD_DEFINED__ -#define __ISeekingPassThru_FWD_DEFINED__ -typedef interface ISeekingPassThru ISeekingPassThru; -#endif /* __ISeekingPassThru_FWD_DEFINED__ */ - - -#ifndef __IAMStreamConfig_FWD_DEFINED__ -#define __IAMStreamConfig_FWD_DEFINED__ -typedef interface IAMStreamConfig IAMStreamConfig; -#endif /* __IAMStreamConfig_FWD_DEFINED__ */ - - -#ifndef __IConfigInterleaving_FWD_DEFINED__ -#define __IConfigInterleaving_FWD_DEFINED__ -typedef interface IConfigInterleaving IConfigInterleaving; -#endif /* __IConfigInterleaving_FWD_DEFINED__ */ - - -#ifndef __IConfigAviMux_FWD_DEFINED__ -#define __IConfigAviMux_FWD_DEFINED__ -typedef interface IConfigAviMux IConfigAviMux; -#endif /* __IConfigAviMux_FWD_DEFINED__ */ - - -#ifndef __IAMVideoCompression_FWD_DEFINED__ -#define __IAMVideoCompression_FWD_DEFINED__ -typedef interface IAMVideoCompression IAMVideoCompression; -#endif /* __IAMVideoCompression_FWD_DEFINED__ */ - - -#ifndef __IAMVfwCaptureDialogs_FWD_DEFINED__ -#define __IAMVfwCaptureDialogs_FWD_DEFINED__ -typedef interface IAMVfwCaptureDialogs IAMVfwCaptureDialogs; -#endif /* __IAMVfwCaptureDialogs_FWD_DEFINED__ */ - - -#ifndef __IAMVfwCompressDialogs_FWD_DEFINED__ -#define __IAMVfwCompressDialogs_FWD_DEFINED__ -typedef interface IAMVfwCompressDialogs IAMVfwCompressDialogs; -#endif /* __IAMVfwCompressDialogs_FWD_DEFINED__ */ - - -#ifndef __IAMDroppedFrames_FWD_DEFINED__ -#define __IAMDroppedFrames_FWD_DEFINED__ -typedef interface IAMDroppedFrames IAMDroppedFrames; -#endif /* __IAMDroppedFrames_FWD_DEFINED__ */ - - -#ifndef __IAMAudioInputMixer_FWD_DEFINED__ -#define __IAMAudioInputMixer_FWD_DEFINED__ -typedef interface IAMAudioInputMixer IAMAudioInputMixer; -#endif /* __IAMAudioInputMixer_FWD_DEFINED__ */ - - -#ifndef __IAMBufferNegotiation_FWD_DEFINED__ -#define __IAMBufferNegotiation_FWD_DEFINED__ -typedef interface IAMBufferNegotiation IAMBufferNegotiation; -#endif /* __IAMBufferNegotiation_FWD_DEFINED__ */ - - -#ifndef __IAMAnalogVideoDecoder_FWD_DEFINED__ -#define __IAMAnalogVideoDecoder_FWD_DEFINED__ -typedef interface IAMAnalogVideoDecoder IAMAnalogVideoDecoder; -#endif /* __IAMAnalogVideoDecoder_FWD_DEFINED__ */ - - -#ifndef __IAMVideoProcAmp_FWD_DEFINED__ -#define __IAMVideoProcAmp_FWD_DEFINED__ -typedef interface IAMVideoProcAmp IAMVideoProcAmp; -#endif /* __IAMVideoProcAmp_FWD_DEFINED__ */ - - -#ifndef __IAMCameraControl_FWD_DEFINED__ -#define __IAMCameraControl_FWD_DEFINED__ -typedef interface IAMCameraControl IAMCameraControl; -#endif /* __IAMCameraControl_FWD_DEFINED__ */ - - -#ifndef __IAMVideoControl_FWD_DEFINED__ -#define __IAMVideoControl_FWD_DEFINED__ -typedef interface IAMVideoControl IAMVideoControl; -#endif /* __IAMVideoControl_FWD_DEFINED__ */ - - -#ifndef __IAMCrossbar_FWD_DEFINED__ -#define __IAMCrossbar_FWD_DEFINED__ -typedef interface IAMCrossbar IAMCrossbar; -#endif /* __IAMCrossbar_FWD_DEFINED__ */ - - -#ifndef __IAMTuner_FWD_DEFINED__ -#define __IAMTuner_FWD_DEFINED__ -typedef interface IAMTuner IAMTuner; -#endif /* __IAMTuner_FWD_DEFINED__ */ - - -#ifndef __IAMTunerNotification_FWD_DEFINED__ -#define __IAMTunerNotification_FWD_DEFINED__ -typedef interface IAMTunerNotification IAMTunerNotification; -#endif /* __IAMTunerNotification_FWD_DEFINED__ */ - - -#ifndef __IAMTVTuner_FWD_DEFINED__ -#define __IAMTVTuner_FWD_DEFINED__ -typedef interface IAMTVTuner IAMTVTuner; -#endif /* __IAMTVTuner_FWD_DEFINED__ */ - - -#ifndef __IBPCSatelliteTuner_FWD_DEFINED__ -#define __IBPCSatelliteTuner_FWD_DEFINED__ -typedef interface IBPCSatelliteTuner IBPCSatelliteTuner; -#endif /* __IBPCSatelliteTuner_FWD_DEFINED__ */ - - -#ifndef __IAMTVAudio_FWD_DEFINED__ -#define __IAMTVAudio_FWD_DEFINED__ -typedef interface IAMTVAudio IAMTVAudio; -#endif /* __IAMTVAudio_FWD_DEFINED__ */ - - -#ifndef __IAMTVAudioNotification_FWD_DEFINED__ -#define __IAMTVAudioNotification_FWD_DEFINED__ -typedef interface IAMTVAudioNotification IAMTVAudioNotification; -#endif /* __IAMTVAudioNotification_FWD_DEFINED__ */ - - -#ifndef __IAMAnalogVideoEncoder_FWD_DEFINED__ -#define __IAMAnalogVideoEncoder_FWD_DEFINED__ -typedef interface IAMAnalogVideoEncoder IAMAnalogVideoEncoder; -#endif /* __IAMAnalogVideoEncoder_FWD_DEFINED__ */ - - -#ifndef __IKsPropertySet_FWD_DEFINED__ -#define __IKsPropertySet_FWD_DEFINED__ -typedef interface IKsPropertySet IKsPropertySet; -#endif /* __IKsPropertySet_FWD_DEFINED__ */ - - -#ifndef __IMediaPropertyBag_FWD_DEFINED__ -#define __IMediaPropertyBag_FWD_DEFINED__ -typedef interface IMediaPropertyBag IMediaPropertyBag; -#endif /* __IMediaPropertyBag_FWD_DEFINED__ */ - - -#ifndef __IPersistMediaPropertyBag_FWD_DEFINED__ -#define __IPersistMediaPropertyBag_FWD_DEFINED__ -typedef interface IPersistMediaPropertyBag IPersistMediaPropertyBag; -#endif /* __IPersistMediaPropertyBag_FWD_DEFINED__ */ - - -#ifndef __IAMPhysicalPinInfo_FWD_DEFINED__ -#define __IAMPhysicalPinInfo_FWD_DEFINED__ -typedef interface IAMPhysicalPinInfo IAMPhysicalPinInfo; -#endif /* __IAMPhysicalPinInfo_FWD_DEFINED__ */ - - -#ifndef __IAMExtDevice_FWD_DEFINED__ -#define __IAMExtDevice_FWD_DEFINED__ -typedef interface IAMExtDevice IAMExtDevice; -#endif /* __IAMExtDevice_FWD_DEFINED__ */ - - -#ifndef __IAMExtTransport_FWD_DEFINED__ -#define __IAMExtTransport_FWD_DEFINED__ -typedef interface IAMExtTransport IAMExtTransport; -#endif /* __IAMExtTransport_FWD_DEFINED__ */ - - -#ifndef __IAMTimecodeReader_FWD_DEFINED__ -#define __IAMTimecodeReader_FWD_DEFINED__ -typedef interface IAMTimecodeReader IAMTimecodeReader; -#endif /* __IAMTimecodeReader_FWD_DEFINED__ */ - - -#ifndef __IAMTimecodeGenerator_FWD_DEFINED__ -#define __IAMTimecodeGenerator_FWD_DEFINED__ -typedef interface IAMTimecodeGenerator IAMTimecodeGenerator; -#endif /* __IAMTimecodeGenerator_FWD_DEFINED__ */ - - -#ifndef __IAMTimecodeDisplay_FWD_DEFINED__ -#define __IAMTimecodeDisplay_FWD_DEFINED__ -typedef interface IAMTimecodeDisplay IAMTimecodeDisplay; -#endif /* __IAMTimecodeDisplay_FWD_DEFINED__ */ - - -#ifndef __IAMDevMemoryAllocator_FWD_DEFINED__ -#define __IAMDevMemoryAllocator_FWD_DEFINED__ -typedef interface IAMDevMemoryAllocator IAMDevMemoryAllocator; -#endif /* __IAMDevMemoryAllocator_FWD_DEFINED__ */ - - -#ifndef __IAMDevMemoryControl_FWD_DEFINED__ -#define __IAMDevMemoryControl_FWD_DEFINED__ -typedef interface IAMDevMemoryControl IAMDevMemoryControl; -#endif /* __IAMDevMemoryControl_FWD_DEFINED__ */ - - -#ifndef __IAMStreamSelect_FWD_DEFINED__ -#define __IAMStreamSelect_FWD_DEFINED__ -typedef interface IAMStreamSelect IAMStreamSelect; -#endif /* __IAMStreamSelect_FWD_DEFINED__ */ - - -#ifndef __IAMResourceControl_FWD_DEFINED__ -#define __IAMResourceControl_FWD_DEFINED__ -typedef interface IAMResourceControl IAMResourceControl; -#endif /* __IAMResourceControl_FWD_DEFINED__ */ - - -#ifndef __IAMClockAdjust_FWD_DEFINED__ -#define __IAMClockAdjust_FWD_DEFINED__ -typedef interface IAMClockAdjust IAMClockAdjust; -#endif /* __IAMClockAdjust_FWD_DEFINED__ */ - - -#ifndef __IAMFilterMiscFlags_FWD_DEFINED__ -#define __IAMFilterMiscFlags_FWD_DEFINED__ -typedef interface IAMFilterMiscFlags IAMFilterMiscFlags; -#endif /* __IAMFilterMiscFlags_FWD_DEFINED__ */ - - -#ifndef __IDrawVideoImage_FWD_DEFINED__ -#define __IDrawVideoImage_FWD_DEFINED__ -typedef interface IDrawVideoImage IDrawVideoImage; -#endif /* __IDrawVideoImage_FWD_DEFINED__ */ - - -#ifndef __IDecimateVideoImage_FWD_DEFINED__ -#define __IDecimateVideoImage_FWD_DEFINED__ -typedef interface IDecimateVideoImage IDecimateVideoImage; -#endif /* __IDecimateVideoImage_FWD_DEFINED__ */ - - -#ifndef __IAMVideoDecimationProperties_FWD_DEFINED__ -#define __IAMVideoDecimationProperties_FWD_DEFINED__ -typedef interface IAMVideoDecimationProperties IAMVideoDecimationProperties; -#endif /* __IAMVideoDecimationProperties_FWD_DEFINED__ */ - - -#ifndef __IVideoFrameStep_FWD_DEFINED__ -#define __IVideoFrameStep_FWD_DEFINED__ -typedef interface IVideoFrameStep IVideoFrameStep; -#endif /* __IVideoFrameStep_FWD_DEFINED__ */ - - -#ifndef __IAMLatency_FWD_DEFINED__ -#define __IAMLatency_FWD_DEFINED__ -typedef interface IAMLatency IAMLatency; -#endif /* __IAMLatency_FWD_DEFINED__ */ - - -#ifndef __IAMPushSource_FWD_DEFINED__ -#define __IAMPushSource_FWD_DEFINED__ -typedef interface IAMPushSource IAMPushSource; -#endif /* __IAMPushSource_FWD_DEFINED__ */ - - -#ifndef __IAMDeviceRemoval_FWD_DEFINED__ -#define __IAMDeviceRemoval_FWD_DEFINED__ -typedef interface IAMDeviceRemoval IAMDeviceRemoval; -#endif /* __IAMDeviceRemoval_FWD_DEFINED__ */ - - -#ifndef __IDVEnc_FWD_DEFINED__ -#define __IDVEnc_FWD_DEFINED__ -typedef interface IDVEnc IDVEnc; -#endif /* __IDVEnc_FWD_DEFINED__ */ - - -#ifndef __IIPDVDec_FWD_DEFINED__ -#define __IIPDVDec_FWD_DEFINED__ -typedef interface IIPDVDec IIPDVDec; -#endif /* __IIPDVDec_FWD_DEFINED__ */ - - -#ifndef __IDVRGB219_FWD_DEFINED__ -#define __IDVRGB219_FWD_DEFINED__ -typedef interface IDVRGB219 IDVRGB219; -#endif /* __IDVRGB219_FWD_DEFINED__ */ - - -#ifndef __IDVSplitter_FWD_DEFINED__ -#define __IDVSplitter_FWD_DEFINED__ -typedef interface IDVSplitter IDVSplitter; -#endif /* __IDVSplitter_FWD_DEFINED__ */ - - -#ifndef __IAMAudioRendererStats_FWD_DEFINED__ -#define __IAMAudioRendererStats_FWD_DEFINED__ -typedef interface IAMAudioRendererStats IAMAudioRendererStats; -#endif /* __IAMAudioRendererStats_FWD_DEFINED__ */ - - -#ifndef __IAMGraphStreams_FWD_DEFINED__ -#define __IAMGraphStreams_FWD_DEFINED__ -typedef interface IAMGraphStreams IAMGraphStreams; -#endif /* __IAMGraphStreams_FWD_DEFINED__ */ - - -#ifndef __IAMOverlayFX_FWD_DEFINED__ -#define __IAMOverlayFX_FWD_DEFINED__ -typedef interface IAMOverlayFX IAMOverlayFX; -#endif /* __IAMOverlayFX_FWD_DEFINED__ */ - - -#ifndef __IAMOpenProgress_FWD_DEFINED__ -#define __IAMOpenProgress_FWD_DEFINED__ -typedef interface IAMOpenProgress IAMOpenProgress; -#endif /* __IAMOpenProgress_FWD_DEFINED__ */ - - -#ifndef __IMpeg2Demultiplexer_FWD_DEFINED__ -#define __IMpeg2Demultiplexer_FWD_DEFINED__ -typedef interface IMpeg2Demultiplexer IMpeg2Demultiplexer; -#endif /* __IMpeg2Demultiplexer_FWD_DEFINED__ */ - - -#ifndef __IEnumStreamIdMap_FWD_DEFINED__ -#define __IEnumStreamIdMap_FWD_DEFINED__ -typedef interface IEnumStreamIdMap IEnumStreamIdMap; -#endif /* __IEnumStreamIdMap_FWD_DEFINED__ */ - - -#ifndef __IMPEG2StreamIdMap_FWD_DEFINED__ -#define __IMPEG2StreamIdMap_FWD_DEFINED__ -typedef interface IMPEG2StreamIdMap IMPEG2StreamIdMap; -#endif /* __IMPEG2StreamIdMap_FWD_DEFINED__ */ - - -#ifndef __IRegisterServiceProvider_FWD_DEFINED__ -#define __IRegisterServiceProvider_FWD_DEFINED__ -typedef interface IRegisterServiceProvider IRegisterServiceProvider; -#endif /* __IRegisterServiceProvider_FWD_DEFINED__ */ - - -#ifndef __IAMClockSlave_FWD_DEFINED__ -#define __IAMClockSlave_FWD_DEFINED__ -typedef interface IAMClockSlave IAMClockSlave; -#endif /* __IAMClockSlave_FWD_DEFINED__ */ - - -#ifndef __IAMGraphBuilderCallback_FWD_DEFINED__ -#define __IAMGraphBuilderCallback_FWD_DEFINED__ -typedef interface IAMGraphBuilderCallback IAMGraphBuilderCallback; -#endif /* __IAMGraphBuilderCallback_FWD_DEFINED__ */ - - -#ifndef __ICodecAPI_FWD_DEFINED__ -#define __ICodecAPI_FWD_DEFINED__ -typedef interface ICodecAPI ICodecAPI; -#endif /* __ICodecAPI_FWD_DEFINED__ */ - - -#ifndef __IGetCapabilitiesKey_FWD_DEFINED__ -#define __IGetCapabilitiesKey_FWD_DEFINED__ -typedef interface IGetCapabilitiesKey IGetCapabilitiesKey; -#endif /* __IGetCapabilitiesKey_FWD_DEFINED__ */ - - -#ifndef __IEncoderAPI_FWD_DEFINED__ -#define __IEncoderAPI_FWD_DEFINED__ -typedef interface IEncoderAPI IEncoderAPI; -#endif /* __IEncoderAPI_FWD_DEFINED__ */ - - -#ifndef __IVideoEncoder_FWD_DEFINED__ -#define __IVideoEncoder_FWD_DEFINED__ -typedef interface IVideoEncoder IVideoEncoder; -#endif /* __IVideoEncoder_FWD_DEFINED__ */ - - -#ifndef __IAMDecoderCaps_FWD_DEFINED__ -#define __IAMDecoderCaps_FWD_DEFINED__ -typedef interface IAMDecoderCaps IAMDecoderCaps; -#endif /* __IAMDecoderCaps_FWD_DEFINED__ */ - - -#ifndef __IDvdControl_FWD_DEFINED__ -#define __IDvdControl_FWD_DEFINED__ -typedef interface IDvdControl IDvdControl; -#endif /* __IDvdControl_FWD_DEFINED__ */ - - -#ifndef __IDvdInfo_FWD_DEFINED__ -#define __IDvdInfo_FWD_DEFINED__ -typedef interface IDvdInfo IDvdInfo; -#endif /* __IDvdInfo_FWD_DEFINED__ */ - - -#ifndef __IDvdCmd_FWD_DEFINED__ -#define __IDvdCmd_FWD_DEFINED__ -typedef interface IDvdCmd IDvdCmd; -#endif /* __IDvdCmd_FWD_DEFINED__ */ - - -#ifndef __IDvdState_FWD_DEFINED__ -#define __IDvdState_FWD_DEFINED__ -typedef interface IDvdState IDvdState; -#endif /* __IDvdState_FWD_DEFINED__ */ - - -#ifndef __IDvdControl2_FWD_DEFINED__ -#define __IDvdControl2_FWD_DEFINED__ -typedef interface IDvdControl2 IDvdControl2; -#endif /* __IDvdControl2_FWD_DEFINED__ */ - - -#ifndef __IDvdInfo2_FWD_DEFINED__ -#define __IDvdInfo2_FWD_DEFINED__ -typedef interface IDvdInfo2 IDvdInfo2; -#endif /* __IDvdInfo2_FWD_DEFINED__ */ - - -#ifndef __IDvdGraphBuilder_FWD_DEFINED__ -#define __IDvdGraphBuilder_FWD_DEFINED__ -typedef interface IDvdGraphBuilder IDvdGraphBuilder; -#endif /* __IDvdGraphBuilder_FWD_DEFINED__ */ - - -#ifndef __IDDrawExclModeVideo_FWD_DEFINED__ -#define __IDDrawExclModeVideo_FWD_DEFINED__ -typedef interface IDDrawExclModeVideo IDDrawExclModeVideo; -#endif /* __IDDrawExclModeVideo_FWD_DEFINED__ */ - - -#ifndef __IDDrawExclModeVideoCallback_FWD_DEFINED__ -#define __IDDrawExclModeVideoCallback_FWD_DEFINED__ -typedef interface IDDrawExclModeVideoCallback IDDrawExclModeVideoCallback; -#endif /* __IDDrawExclModeVideoCallback_FWD_DEFINED__ */ - - -#ifndef __IPinConnection_FWD_DEFINED__ -#define __IPinConnection_FWD_DEFINED__ -typedef interface IPinConnection IPinConnection; -#endif /* __IPinConnection_FWD_DEFINED__ */ - - -#ifndef __IPinFlowControl_FWD_DEFINED__ -#define __IPinFlowControl_FWD_DEFINED__ -typedef interface IPinFlowControl IPinFlowControl; -#endif /* __IPinFlowControl_FWD_DEFINED__ */ - - -#ifndef __IGraphConfig_FWD_DEFINED__ -#define __IGraphConfig_FWD_DEFINED__ -typedef interface IGraphConfig IGraphConfig; -#endif /* __IGraphConfig_FWD_DEFINED__ */ - - -#ifndef __IGraphConfigCallback_FWD_DEFINED__ -#define __IGraphConfigCallback_FWD_DEFINED__ -typedef interface IGraphConfigCallback IGraphConfigCallback; -#endif /* __IGraphConfigCallback_FWD_DEFINED__ */ - - -#ifndef __IFilterChain_FWD_DEFINED__ -#define __IFilterChain_FWD_DEFINED__ -typedef interface IFilterChain IFilterChain; -#endif /* __IFilterChain_FWD_DEFINED__ */ - - -#ifndef __IVMRImagePresenter_FWD_DEFINED__ -#define __IVMRImagePresenter_FWD_DEFINED__ -typedef interface IVMRImagePresenter IVMRImagePresenter; -#endif /* __IVMRImagePresenter_FWD_DEFINED__ */ - - -#ifndef __IVMRSurfaceAllocator_FWD_DEFINED__ -#define __IVMRSurfaceAllocator_FWD_DEFINED__ -typedef interface IVMRSurfaceAllocator IVMRSurfaceAllocator; -#endif /* __IVMRSurfaceAllocator_FWD_DEFINED__ */ - - -#ifndef __IVMRSurfaceAllocatorNotify_FWD_DEFINED__ -#define __IVMRSurfaceAllocatorNotify_FWD_DEFINED__ -typedef interface IVMRSurfaceAllocatorNotify IVMRSurfaceAllocatorNotify; -#endif /* __IVMRSurfaceAllocatorNotify_FWD_DEFINED__ */ - - -#ifndef __IVMRWindowlessControl_FWD_DEFINED__ -#define __IVMRWindowlessControl_FWD_DEFINED__ -typedef interface IVMRWindowlessControl IVMRWindowlessControl; -#endif /* __IVMRWindowlessControl_FWD_DEFINED__ */ - - -#ifndef __IVMRMixerControl_FWD_DEFINED__ -#define __IVMRMixerControl_FWD_DEFINED__ -typedef interface IVMRMixerControl IVMRMixerControl; -#endif /* __IVMRMixerControl_FWD_DEFINED__ */ - - -#ifndef __IVMRMonitorConfig_FWD_DEFINED__ -#define __IVMRMonitorConfig_FWD_DEFINED__ -typedef interface IVMRMonitorConfig IVMRMonitorConfig; -#endif /* __IVMRMonitorConfig_FWD_DEFINED__ */ - - -#ifndef __IVMRFilterConfig_FWD_DEFINED__ -#define __IVMRFilterConfig_FWD_DEFINED__ -typedef interface IVMRFilterConfig IVMRFilterConfig; -#endif /* __IVMRFilterConfig_FWD_DEFINED__ */ - - -#ifndef __IVMRAspectRatioControl_FWD_DEFINED__ -#define __IVMRAspectRatioControl_FWD_DEFINED__ -typedef interface IVMRAspectRatioControl IVMRAspectRatioControl; -#endif /* __IVMRAspectRatioControl_FWD_DEFINED__ */ - - -#ifndef __IVMRDeinterlaceControl_FWD_DEFINED__ -#define __IVMRDeinterlaceControl_FWD_DEFINED__ -typedef interface IVMRDeinterlaceControl IVMRDeinterlaceControl; -#endif /* __IVMRDeinterlaceControl_FWD_DEFINED__ */ - - -#ifndef __IVMRMixerBitmap_FWD_DEFINED__ -#define __IVMRMixerBitmap_FWD_DEFINED__ -typedef interface IVMRMixerBitmap IVMRMixerBitmap; -#endif /* __IVMRMixerBitmap_FWD_DEFINED__ */ - - -#ifndef __IVMRImageCompositor_FWD_DEFINED__ -#define __IVMRImageCompositor_FWD_DEFINED__ -typedef interface IVMRImageCompositor IVMRImageCompositor; -#endif /* __IVMRImageCompositor_FWD_DEFINED__ */ - - -#ifndef __IVMRVideoStreamControl_FWD_DEFINED__ -#define __IVMRVideoStreamControl_FWD_DEFINED__ -typedef interface IVMRVideoStreamControl IVMRVideoStreamControl; -#endif /* __IVMRVideoStreamControl_FWD_DEFINED__ */ - - -#ifndef __IVMRSurface_FWD_DEFINED__ -#define __IVMRSurface_FWD_DEFINED__ -typedef interface IVMRSurface IVMRSurface; -#endif /* __IVMRSurface_FWD_DEFINED__ */ - - -#ifndef __IVMRImagePresenterConfig_FWD_DEFINED__ -#define __IVMRImagePresenterConfig_FWD_DEFINED__ -typedef interface IVMRImagePresenterConfig IVMRImagePresenterConfig; -#endif /* __IVMRImagePresenterConfig_FWD_DEFINED__ */ - - -#ifndef __IVMRImagePresenterExclModeConfig_FWD_DEFINED__ -#define __IVMRImagePresenterExclModeConfig_FWD_DEFINED__ -typedef interface IVMRImagePresenterExclModeConfig IVMRImagePresenterExclModeConfig; -#endif /* __IVMRImagePresenterExclModeConfig_FWD_DEFINED__ */ - - -#ifndef __IVPManager_FWD_DEFINED__ -#define __IVPManager_FWD_DEFINED__ -typedef interface IVPManager IVPManager; -#endif /* __IVPManager_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "unknwn.h" -#include "objidl.h" -#include "oaidl.h" -#include "ocidl.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_strmif_0000 */ -/* [local] */ - -//+------------------------------------------------------------------------- -// -// Copyright (C) Microsoft Corporation, 1999-2002. -// -//-------------------------------------------------------------------------- -// Disable /W4 compiler warning C4201: nameless struct/union -#pragma warning(push) -#pragma warning(disable:4201) // Disable C4201: nameless struct/union - -#define CDEF_CLASS_DEFAULT 0x0001 -#define CDEF_BYPASS_CLASS_MANAGER 0x0002 -#define CDEF_MERIT_ABOVE_DO_NOT_USE 0x0008 -#define CDEF_DEVMON_CMGR_DEVICE 0x0010 -#define CDEF_DEVMON_DMO 0x0020 -#define CDEF_DEVMON_PNP_DEVICE 0x0040 -#define CDEF_DEVMON_FILTER 0x0080 -#define CDEF_DEVMON_SELECTIVE_MASK 0x00f0 - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0000_v0_0_s_ifspec; - -#ifndef __ICreateDevEnum_INTERFACE_DEFINED__ -#define __ICreateDevEnum_INTERFACE_DEFINED__ - -/* interface ICreateDevEnum */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_ICreateDevEnum; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("29840822-5B84-11D0-BD3B-00A0C911CE86") - ICreateDevEnum : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE CreateClassEnumerator( - /* [in] */ REFCLSID clsidDeviceClass, - /* [out] */ IEnumMoniker **ppEnumMoniker, - /* [in] */ DWORD dwFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICreateDevEnumVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICreateDevEnum * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICreateDevEnum * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICreateDevEnum * This); - - HRESULT ( STDMETHODCALLTYPE *CreateClassEnumerator )( - ICreateDevEnum * This, - /* [in] */ REFCLSID clsidDeviceClass, - /* [out] */ IEnumMoniker **ppEnumMoniker, - /* [in] */ DWORD dwFlags); - - END_INTERFACE - } ICreateDevEnumVtbl; - - interface ICreateDevEnum - { - CONST_VTBL struct ICreateDevEnumVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICreateDevEnum_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICreateDevEnum_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICreateDevEnum_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICreateDevEnum_CreateClassEnumerator(This,clsidDeviceClass,ppEnumMoniker,dwFlags) \ - (This)->lpVtbl -> CreateClassEnumerator(This,clsidDeviceClass,ppEnumMoniker,dwFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE ICreateDevEnum_CreateClassEnumerator_Proxy( - ICreateDevEnum * This, - /* [in] */ REFCLSID clsidDeviceClass, - /* [out] */ IEnumMoniker **ppEnumMoniker, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB ICreateDevEnum_CreateClassEnumerator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICreateDevEnum_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0113 */ -/* [local] */ - -#define CHARS_IN_GUID 39 -typedef struct _AMMediaType - { - GUID majortype; - GUID subtype; - BOOL bFixedSizeSamples; - BOOL bTemporalCompression; - ULONG lSampleSize; - GUID formattype; - IUnknown *pUnk; - ULONG cbFormat; - /* [size_is] */ BYTE *pbFormat; - } AM_MEDIA_TYPE; - -typedef -enum _PinDirection - { PINDIR_INPUT = 0, - PINDIR_OUTPUT = PINDIR_INPUT + 1 - } PIN_DIRECTION; - -#define MAX_PIN_NAME 128 -#define MAX_FILTER_NAME 128 -typedef LONGLONG REFERENCE_TIME; - -typedef double REFTIME; - -typedef DWORD_PTR HSEMAPHORE; - -typedef DWORD_PTR HEVENT; - -typedef struct _AllocatorProperties - { - long cBuffers; - long cbBuffer; - long cbAlign; - long cbPrefix; - } ALLOCATOR_PROPERTIES; - - - - - - - - - - - - - - - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0113_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0113_v0_0_s_ifspec; - -#ifndef __IPin_INTERFACE_DEFINED__ -#define __IPin_INTERFACE_DEFINED__ - -/* interface IPin */ -/* [unique][uuid][object] */ - -typedef struct _PinInfo - { - IBaseFilter *pFilter; - PIN_DIRECTION dir; - WCHAR achName[ 128 ]; - } PIN_INFO; - - -EXTERN_C const IID IID_IPin; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a86891-0ad4-11ce-b03a-0020af0ba770") - IPin : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Connect( - /* [in] */ IPin *pReceivePin, - /* [in] */ const AM_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReceiveConnection( - /* [in] */ IPin *pConnector, - /* [in] */ const AM_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Disconnect( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConnectedTo( - /* [out] */ IPin **pPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConnectionMediaType( - /* [out] */ AM_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryPinInfo( - /* [out] */ PIN_INFO *pInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryDirection( - /* [out] */ PIN_DIRECTION *pPinDir) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryId( - /* [out] */ LPWSTR *Id) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryAccept( - /* [in] */ const AM_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumMediaTypes( - /* [out] */ IEnumMediaTypes **ppEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryInternalConnections( - /* [out] */ IPin **apPin, - /* [out][in] */ ULONG *nPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE EndOfStream( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE BeginFlush( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE EndFlush( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE NewSegment( - /* [in] */ REFERENCE_TIME tStart, - /* [in] */ REFERENCE_TIME tStop, - /* [in] */ double dRate) = 0; - - }; - -#else /* C style interface */ - - typedef struct IPinVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IPin * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IPin * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IPin * This); - - HRESULT ( STDMETHODCALLTYPE *Connect )( - IPin * This, - /* [in] */ IPin *pReceivePin, - /* [in] */ const AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *ReceiveConnection )( - IPin * This, - /* [in] */ IPin *pConnector, - /* [in] */ const AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *Disconnect )( - IPin * This); - - HRESULT ( STDMETHODCALLTYPE *ConnectedTo )( - IPin * This, - /* [out] */ IPin **pPin); - - HRESULT ( STDMETHODCALLTYPE *ConnectionMediaType )( - IPin * This, - /* [out] */ AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *QueryPinInfo )( - IPin * This, - /* [out] */ PIN_INFO *pInfo); - - HRESULT ( STDMETHODCALLTYPE *QueryDirection )( - IPin * This, - /* [out] */ PIN_DIRECTION *pPinDir); - - HRESULT ( STDMETHODCALLTYPE *QueryId )( - IPin * This, - /* [out] */ LPWSTR *Id); - - HRESULT ( STDMETHODCALLTYPE *QueryAccept )( - IPin * This, - /* [in] */ const AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *EnumMediaTypes )( - IPin * This, - /* [out] */ IEnumMediaTypes **ppEnum); - - HRESULT ( STDMETHODCALLTYPE *QueryInternalConnections )( - IPin * This, - /* [out] */ IPin **apPin, - /* [out][in] */ ULONG *nPin); - - HRESULT ( STDMETHODCALLTYPE *EndOfStream )( - IPin * This); - - HRESULT ( STDMETHODCALLTYPE *BeginFlush )( - IPin * This); - - HRESULT ( STDMETHODCALLTYPE *EndFlush )( - IPin * This); - - HRESULT ( STDMETHODCALLTYPE *NewSegment )( - IPin * This, - /* [in] */ REFERENCE_TIME tStart, - /* [in] */ REFERENCE_TIME tStop, - /* [in] */ double dRate); - - END_INTERFACE - } IPinVtbl; - - interface IPin - { - CONST_VTBL struct IPinVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IPin_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IPin_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IPin_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IPin_Connect(This,pReceivePin,pmt) \ - (This)->lpVtbl -> Connect(This,pReceivePin,pmt) - -#define IPin_ReceiveConnection(This,pConnector,pmt) \ - (This)->lpVtbl -> ReceiveConnection(This,pConnector,pmt) - -#define IPin_Disconnect(This) \ - (This)->lpVtbl -> Disconnect(This) - -#define IPin_ConnectedTo(This,pPin) \ - (This)->lpVtbl -> ConnectedTo(This,pPin) - -#define IPin_ConnectionMediaType(This,pmt) \ - (This)->lpVtbl -> ConnectionMediaType(This,pmt) - -#define IPin_QueryPinInfo(This,pInfo) \ - (This)->lpVtbl -> QueryPinInfo(This,pInfo) - -#define IPin_QueryDirection(This,pPinDir) \ - (This)->lpVtbl -> QueryDirection(This,pPinDir) - -#define IPin_QueryId(This,Id) \ - (This)->lpVtbl -> QueryId(This,Id) - -#define IPin_QueryAccept(This,pmt) \ - (This)->lpVtbl -> QueryAccept(This,pmt) - -#define IPin_EnumMediaTypes(This,ppEnum) \ - (This)->lpVtbl -> EnumMediaTypes(This,ppEnum) - -#define IPin_QueryInternalConnections(This,apPin,nPin) \ - (This)->lpVtbl -> QueryInternalConnections(This,apPin,nPin) - -#define IPin_EndOfStream(This) \ - (This)->lpVtbl -> EndOfStream(This) - -#define IPin_BeginFlush(This) \ - (This)->lpVtbl -> BeginFlush(This) - -#define IPin_EndFlush(This) \ - (This)->lpVtbl -> EndFlush(This) - -#define IPin_NewSegment(This,tStart,tStop,dRate) \ - (This)->lpVtbl -> NewSegment(This,tStart,tStop,dRate) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IPin_Connect_Proxy( - IPin * This, - /* [in] */ IPin *pReceivePin, - /* [in] */ const AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IPin_Connect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_ReceiveConnection_Proxy( - IPin * This, - /* [in] */ IPin *pConnector, - /* [in] */ const AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IPin_ReceiveConnection_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_Disconnect_Proxy( - IPin * This); - - -void __RPC_STUB IPin_Disconnect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_ConnectedTo_Proxy( - IPin * This, - /* [out] */ IPin **pPin); - - -void __RPC_STUB IPin_ConnectedTo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_ConnectionMediaType_Proxy( - IPin * This, - /* [out] */ AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IPin_ConnectionMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_QueryPinInfo_Proxy( - IPin * This, - /* [out] */ PIN_INFO *pInfo); - - -void __RPC_STUB IPin_QueryPinInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_QueryDirection_Proxy( - IPin * This, - /* [out] */ PIN_DIRECTION *pPinDir); - - -void __RPC_STUB IPin_QueryDirection_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_QueryId_Proxy( - IPin * This, - /* [out] */ LPWSTR *Id); - - -void __RPC_STUB IPin_QueryId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_QueryAccept_Proxy( - IPin * This, - /* [in] */ const AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IPin_QueryAccept_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_EnumMediaTypes_Proxy( - IPin * This, - /* [out] */ IEnumMediaTypes **ppEnum); - - -void __RPC_STUB IPin_EnumMediaTypes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_QueryInternalConnections_Proxy( - IPin * This, - /* [out] */ IPin **apPin, - /* [out][in] */ ULONG *nPin); - - -void __RPC_STUB IPin_QueryInternalConnections_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_EndOfStream_Proxy( - IPin * This); - - -void __RPC_STUB IPin_EndOfStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_BeginFlush_Proxy( - IPin * This); - - -void __RPC_STUB IPin_BeginFlush_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_EndFlush_Proxy( - IPin * This); - - -void __RPC_STUB IPin_EndFlush_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPin_NewSegment_Proxy( - IPin * This, - /* [in] */ REFERENCE_TIME tStart, - /* [in] */ REFERENCE_TIME tStop, - /* [in] */ double dRate); - - -void __RPC_STUB IPin_NewSegment_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IPin_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0114 */ -/* [local] */ - -typedef IPin *PPIN; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0114_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0114_v0_0_s_ifspec; - -#ifndef __IEnumPins_INTERFACE_DEFINED__ -#define __IEnumPins_INTERFACE_DEFINED__ - -/* interface IEnumPins */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IEnumPins; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a86892-0ad4-11ce-b03a-0020af0ba770") - IEnumPins : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Next( - /* [in] */ ULONG cPins, - /* [size_is][out] */ IPin **ppPins, - /* [out] */ ULONG *pcFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - /* [in] */ ULONG cPins) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IEnumPins **ppEnum) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumPinsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumPins * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumPins * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumPins * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumPins * This, - /* [in] */ ULONG cPins, - /* [size_is][out] */ IPin **ppPins, - /* [out] */ ULONG *pcFetched); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumPins * This, - /* [in] */ ULONG cPins); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumPins * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumPins * This, - /* [out] */ IEnumPins **ppEnum); - - END_INTERFACE - } IEnumPinsVtbl; - - interface IEnumPins - { - CONST_VTBL struct IEnumPinsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEnumPins_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEnumPins_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEnumPins_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEnumPins_Next(This,cPins,ppPins,pcFetched) \ - (This)->lpVtbl -> Next(This,cPins,ppPins,pcFetched) - -#define IEnumPins_Skip(This,cPins) \ - (This)->lpVtbl -> Skip(This,cPins) - -#define IEnumPins_Reset(This) \ - (This)->lpVtbl -> Reset(This) - -#define IEnumPins_Clone(This,ppEnum) \ - (This)->lpVtbl -> Clone(This,ppEnum) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IEnumPins_Next_Proxy( - IEnumPins * This, - /* [in] */ ULONG cPins, - /* [size_is][out] */ IPin **ppPins, - /* [out] */ ULONG *pcFetched); - - -void __RPC_STUB IEnumPins_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumPins_Skip_Proxy( - IEnumPins * This, - /* [in] */ ULONG cPins); - - -void __RPC_STUB IEnumPins_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumPins_Reset_Proxy( - IEnumPins * This); - - -void __RPC_STUB IEnumPins_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumPins_Clone_Proxy( - IEnumPins * This, - /* [out] */ IEnumPins **ppEnum); - - -void __RPC_STUB IEnumPins_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEnumPins_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0115 */ -/* [local] */ - -typedef IEnumPins *PENUMPINS; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0115_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0115_v0_0_s_ifspec; - -#ifndef __IEnumMediaTypes_INTERFACE_DEFINED__ -#define __IEnumMediaTypes_INTERFACE_DEFINED__ - -/* interface IEnumMediaTypes */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IEnumMediaTypes; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("89c31040-846b-11ce-97d3-00aa0055595a") - IEnumMediaTypes : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Next( - /* [in] */ ULONG cMediaTypes, - /* [size_is][out] */ AM_MEDIA_TYPE **ppMediaTypes, - /* [out] */ ULONG *pcFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - /* [in] */ ULONG cMediaTypes) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IEnumMediaTypes **ppEnum) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumMediaTypesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumMediaTypes * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumMediaTypes * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumMediaTypes * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumMediaTypes * This, - /* [in] */ ULONG cMediaTypes, - /* [size_is][out] */ AM_MEDIA_TYPE **ppMediaTypes, - /* [out] */ ULONG *pcFetched); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumMediaTypes * This, - /* [in] */ ULONG cMediaTypes); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumMediaTypes * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumMediaTypes * This, - /* [out] */ IEnumMediaTypes **ppEnum); - - END_INTERFACE - } IEnumMediaTypesVtbl; - - interface IEnumMediaTypes - { - CONST_VTBL struct IEnumMediaTypesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEnumMediaTypes_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEnumMediaTypes_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEnumMediaTypes_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEnumMediaTypes_Next(This,cMediaTypes,ppMediaTypes,pcFetched) \ - (This)->lpVtbl -> Next(This,cMediaTypes,ppMediaTypes,pcFetched) - -#define IEnumMediaTypes_Skip(This,cMediaTypes) \ - (This)->lpVtbl -> Skip(This,cMediaTypes) - -#define IEnumMediaTypes_Reset(This) \ - (This)->lpVtbl -> Reset(This) - -#define IEnumMediaTypes_Clone(This,ppEnum) \ - (This)->lpVtbl -> Clone(This,ppEnum) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IEnumMediaTypes_Next_Proxy( - IEnumMediaTypes * This, - /* [in] */ ULONG cMediaTypes, - /* [size_is][out] */ AM_MEDIA_TYPE **ppMediaTypes, - /* [out] */ ULONG *pcFetched); - - -void __RPC_STUB IEnumMediaTypes_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumMediaTypes_Skip_Proxy( - IEnumMediaTypes * This, - /* [in] */ ULONG cMediaTypes); - - -void __RPC_STUB IEnumMediaTypes_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumMediaTypes_Reset_Proxy( - IEnumMediaTypes * This); - - -void __RPC_STUB IEnumMediaTypes_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumMediaTypes_Clone_Proxy( - IEnumMediaTypes * This, - /* [out] */ IEnumMediaTypes **ppEnum); - - -void __RPC_STUB IEnumMediaTypes_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEnumMediaTypes_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0116 */ -/* [local] */ - -typedef IEnumMediaTypes *PENUMMEDIATYPES; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0116_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0116_v0_0_s_ifspec; - -#ifndef __IFilterGraph_INTERFACE_DEFINED__ -#define __IFilterGraph_INTERFACE_DEFINED__ - -/* interface IFilterGraph */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IFilterGraph; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a8689f-0ad4-11ce-b03a-0020af0ba770") - IFilterGraph : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE AddFilter( - /* [in] */ IBaseFilter *pFilter, - /* [string][in] */ LPCWSTR pName) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemoveFilter( - /* [in] */ IBaseFilter *pFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumFilters( - /* [out] */ IEnumFilters **ppEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindFilterByName( - /* [string][in] */ LPCWSTR pName, - /* [out] */ IBaseFilter **ppFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConnectDirect( - /* [in] */ IPin *ppinOut, - /* [in] */ IPin *ppinIn, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reconnect( - /* [in] */ IPin *ppin) = 0; - - virtual HRESULT STDMETHODCALLTYPE Disconnect( - /* [in] */ IPin *ppin) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDefaultSyncSource( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IFilterGraphVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IFilterGraph * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IFilterGraph * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IFilterGraph * This); - - HRESULT ( STDMETHODCALLTYPE *AddFilter )( - IFilterGraph * This, - /* [in] */ IBaseFilter *pFilter, - /* [string][in] */ LPCWSTR pName); - - HRESULT ( STDMETHODCALLTYPE *RemoveFilter )( - IFilterGraph * This, - /* [in] */ IBaseFilter *pFilter); - - HRESULT ( STDMETHODCALLTYPE *EnumFilters )( - IFilterGraph * This, - /* [out] */ IEnumFilters **ppEnum); - - HRESULT ( STDMETHODCALLTYPE *FindFilterByName )( - IFilterGraph * This, - /* [string][in] */ LPCWSTR pName, - /* [out] */ IBaseFilter **ppFilter); - - HRESULT ( STDMETHODCALLTYPE *ConnectDirect )( - IFilterGraph * This, - /* [in] */ IPin *ppinOut, - /* [in] */ IPin *ppinIn, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *Reconnect )( - IFilterGraph * This, - /* [in] */ IPin *ppin); - - HRESULT ( STDMETHODCALLTYPE *Disconnect )( - IFilterGraph * This, - /* [in] */ IPin *ppin); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultSyncSource )( - IFilterGraph * This); - - END_INTERFACE - } IFilterGraphVtbl; - - interface IFilterGraph - { - CONST_VTBL struct IFilterGraphVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IFilterGraph_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IFilterGraph_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IFilterGraph_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IFilterGraph_AddFilter(This,pFilter,pName) \ - (This)->lpVtbl -> AddFilter(This,pFilter,pName) - -#define IFilterGraph_RemoveFilter(This,pFilter) \ - (This)->lpVtbl -> RemoveFilter(This,pFilter) - -#define IFilterGraph_EnumFilters(This,ppEnum) \ - (This)->lpVtbl -> EnumFilters(This,ppEnum) - -#define IFilterGraph_FindFilterByName(This,pName,ppFilter) \ - (This)->lpVtbl -> FindFilterByName(This,pName,ppFilter) - -#define IFilterGraph_ConnectDirect(This,ppinOut,ppinIn,pmt) \ - (This)->lpVtbl -> ConnectDirect(This,ppinOut,ppinIn,pmt) - -#define IFilterGraph_Reconnect(This,ppin) \ - (This)->lpVtbl -> Reconnect(This,ppin) - -#define IFilterGraph_Disconnect(This,ppin) \ - (This)->lpVtbl -> Disconnect(This,ppin) - -#define IFilterGraph_SetDefaultSyncSource(This) \ - (This)->lpVtbl -> SetDefaultSyncSource(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IFilterGraph_AddFilter_Proxy( - IFilterGraph * This, - /* [in] */ IBaseFilter *pFilter, - /* [string][in] */ LPCWSTR pName); - - -void __RPC_STUB IFilterGraph_AddFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterGraph_RemoveFilter_Proxy( - IFilterGraph * This, - /* [in] */ IBaseFilter *pFilter); - - -void __RPC_STUB IFilterGraph_RemoveFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterGraph_EnumFilters_Proxy( - IFilterGraph * This, - /* [out] */ IEnumFilters **ppEnum); - - -void __RPC_STUB IFilterGraph_EnumFilters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterGraph_FindFilterByName_Proxy( - IFilterGraph * This, - /* [string][in] */ LPCWSTR pName, - /* [out] */ IBaseFilter **ppFilter); - - -void __RPC_STUB IFilterGraph_FindFilterByName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterGraph_ConnectDirect_Proxy( - IFilterGraph * This, - /* [in] */ IPin *ppinOut, - /* [in] */ IPin *ppinIn, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IFilterGraph_ConnectDirect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterGraph_Reconnect_Proxy( - IFilterGraph * This, - /* [in] */ IPin *ppin); - - -void __RPC_STUB IFilterGraph_Reconnect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterGraph_Disconnect_Proxy( - IFilterGraph * This, - /* [in] */ IPin *ppin); - - -void __RPC_STUB IFilterGraph_Disconnect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterGraph_SetDefaultSyncSource_Proxy( - IFilterGraph * This); - - -void __RPC_STUB IFilterGraph_SetDefaultSyncSource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IFilterGraph_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0117 */ -/* [local] */ - -typedef IFilterGraph *PFILTERGRAPH; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0117_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0117_v0_0_s_ifspec; - -#ifndef __IEnumFilters_INTERFACE_DEFINED__ -#define __IEnumFilters_INTERFACE_DEFINED__ - -/* interface IEnumFilters */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IEnumFilters; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a86893-0ad4-11ce-b03a-0020af0ba770") - IEnumFilters : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Next( - /* [in] */ ULONG cFilters, - /* [out] */ IBaseFilter **ppFilter, - /* [out] */ ULONG *pcFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - /* [in] */ ULONG cFilters) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IEnumFilters **ppEnum) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumFiltersVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumFilters * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumFilters * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumFilters * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumFilters * This, - /* [in] */ ULONG cFilters, - /* [out] */ IBaseFilter **ppFilter, - /* [out] */ ULONG *pcFetched); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumFilters * This, - /* [in] */ ULONG cFilters); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumFilters * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumFilters * This, - /* [out] */ IEnumFilters **ppEnum); - - END_INTERFACE - } IEnumFiltersVtbl; - - interface IEnumFilters - { - CONST_VTBL struct IEnumFiltersVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEnumFilters_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEnumFilters_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEnumFilters_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEnumFilters_Next(This,cFilters,ppFilter,pcFetched) \ - (This)->lpVtbl -> Next(This,cFilters,ppFilter,pcFetched) - -#define IEnumFilters_Skip(This,cFilters) \ - (This)->lpVtbl -> Skip(This,cFilters) - -#define IEnumFilters_Reset(This) \ - (This)->lpVtbl -> Reset(This) - -#define IEnumFilters_Clone(This,ppEnum) \ - (This)->lpVtbl -> Clone(This,ppEnum) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IEnumFilters_Next_Proxy( - IEnumFilters * This, - /* [in] */ ULONG cFilters, - /* [out] */ IBaseFilter **ppFilter, - /* [out] */ ULONG *pcFetched); - - -void __RPC_STUB IEnumFilters_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumFilters_Skip_Proxy( - IEnumFilters * This, - /* [in] */ ULONG cFilters); - - -void __RPC_STUB IEnumFilters_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumFilters_Reset_Proxy( - IEnumFilters * This); - - -void __RPC_STUB IEnumFilters_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumFilters_Clone_Proxy( - IEnumFilters * This, - /* [out] */ IEnumFilters **ppEnum); - - -void __RPC_STUB IEnumFilters_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEnumFilters_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0118 */ -/* [local] */ - -typedef IEnumFilters *PENUMFILTERS; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0118_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0118_v0_0_s_ifspec; - -#ifndef __IMediaFilter_INTERFACE_DEFINED__ -#define __IMediaFilter_INTERFACE_DEFINED__ - -/* interface IMediaFilter */ -/* [unique][uuid][object] */ - -typedef -enum _FilterState - { State_Stopped = 0, - State_Paused = State_Stopped + 1, - State_Running = State_Paused + 1 - } FILTER_STATE; - - -EXTERN_C const IID IID_IMediaFilter; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a86899-0ad4-11ce-b03a-0020af0ba770") - IMediaFilter : public IPersist - { - public: - virtual HRESULT STDMETHODCALLTYPE Stop( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Pause( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Run( - REFERENCE_TIME tStart) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetState( - /* [in] */ DWORD dwMilliSecsTimeout, - /* [out] */ FILTER_STATE *State) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSyncSource( - /* [in] */ IReferenceClock *pClock) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSyncSource( - /* [out] */ IReferenceClock **pClock) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaFilterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaFilter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaFilter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaFilter * This); - - HRESULT ( STDMETHODCALLTYPE *GetClassID )( - IMediaFilter * This, - /* [out] */ CLSID *pClassID); - - HRESULT ( STDMETHODCALLTYPE *Stop )( - IMediaFilter * This); - - HRESULT ( STDMETHODCALLTYPE *Pause )( - IMediaFilter * This); - - HRESULT ( STDMETHODCALLTYPE *Run )( - IMediaFilter * This, - REFERENCE_TIME tStart); - - HRESULT ( STDMETHODCALLTYPE *GetState )( - IMediaFilter * This, - /* [in] */ DWORD dwMilliSecsTimeout, - /* [out] */ FILTER_STATE *State); - - HRESULT ( STDMETHODCALLTYPE *SetSyncSource )( - IMediaFilter * This, - /* [in] */ IReferenceClock *pClock); - - HRESULT ( STDMETHODCALLTYPE *GetSyncSource )( - IMediaFilter * This, - /* [out] */ IReferenceClock **pClock); - - END_INTERFACE - } IMediaFilterVtbl; - - interface IMediaFilter - { - CONST_VTBL struct IMediaFilterVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaFilter_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaFilter_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaFilter_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaFilter_GetClassID(This,pClassID) \ - (This)->lpVtbl -> GetClassID(This,pClassID) - - -#define IMediaFilter_Stop(This) \ - (This)->lpVtbl -> Stop(This) - -#define IMediaFilter_Pause(This) \ - (This)->lpVtbl -> Pause(This) - -#define IMediaFilter_Run(This,tStart) \ - (This)->lpVtbl -> Run(This,tStart) - -#define IMediaFilter_GetState(This,dwMilliSecsTimeout,State) \ - (This)->lpVtbl -> GetState(This,dwMilliSecsTimeout,State) - -#define IMediaFilter_SetSyncSource(This,pClock) \ - (This)->lpVtbl -> SetSyncSource(This,pClock) - -#define IMediaFilter_GetSyncSource(This,pClock) \ - (This)->lpVtbl -> GetSyncSource(This,pClock) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaFilter_Stop_Proxy( - IMediaFilter * This); - - -void __RPC_STUB IMediaFilter_Stop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaFilter_Pause_Proxy( - IMediaFilter * This); - - -void __RPC_STUB IMediaFilter_Pause_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaFilter_Run_Proxy( - IMediaFilter * This, - REFERENCE_TIME tStart); - - -void __RPC_STUB IMediaFilter_Run_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaFilter_GetState_Proxy( - IMediaFilter * This, - /* [in] */ DWORD dwMilliSecsTimeout, - /* [out] */ FILTER_STATE *State); - - -void __RPC_STUB IMediaFilter_GetState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaFilter_SetSyncSource_Proxy( - IMediaFilter * This, - /* [in] */ IReferenceClock *pClock); - - -void __RPC_STUB IMediaFilter_SetSyncSource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaFilter_GetSyncSource_Proxy( - IMediaFilter * This, - /* [out] */ IReferenceClock **pClock); - - -void __RPC_STUB IMediaFilter_GetSyncSource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaFilter_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0119 */ -/* [local] */ - -typedef IMediaFilter *PMEDIAFILTER; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0119_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0119_v0_0_s_ifspec; - -#ifndef __IBaseFilter_INTERFACE_DEFINED__ -#define __IBaseFilter_INTERFACE_DEFINED__ - -/* interface IBaseFilter */ -/* [unique][uuid][object] */ - -typedef struct _FilterInfo - { - WCHAR achName[ 128 ]; - IFilterGraph *pGraph; - } FILTER_INFO; - - -EXTERN_C const IID IID_IBaseFilter; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a86895-0ad4-11ce-b03a-0020af0ba770") - IBaseFilter : public IMediaFilter - { - public: - virtual HRESULT STDMETHODCALLTYPE EnumPins( - /* [out] */ IEnumPins **ppEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindPin( - /* [string][in] */ LPCWSTR Id, - /* [out] */ IPin **ppPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryFilterInfo( - /* [out] */ FILTER_INFO *pInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE JoinFilterGraph( - /* [in] */ IFilterGraph *pGraph, - /* [string][in] */ LPCWSTR pName) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryVendorInfo( - /* [string][out] */ LPWSTR *pVendorInfo) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBaseFilterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBaseFilter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBaseFilter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBaseFilter * This); - - HRESULT ( STDMETHODCALLTYPE *GetClassID )( - IBaseFilter * This, - /* [out] */ CLSID *pClassID); - - HRESULT ( STDMETHODCALLTYPE *Stop )( - IBaseFilter * This); - - HRESULT ( STDMETHODCALLTYPE *Pause )( - IBaseFilter * This); - - HRESULT ( STDMETHODCALLTYPE *Run )( - IBaseFilter * This, - REFERENCE_TIME tStart); - - HRESULT ( STDMETHODCALLTYPE *GetState )( - IBaseFilter * This, - /* [in] */ DWORD dwMilliSecsTimeout, - /* [out] */ FILTER_STATE *State); - - HRESULT ( STDMETHODCALLTYPE *SetSyncSource )( - IBaseFilter * This, - /* [in] */ IReferenceClock *pClock); - - HRESULT ( STDMETHODCALLTYPE *GetSyncSource )( - IBaseFilter * This, - /* [out] */ IReferenceClock **pClock); - - HRESULT ( STDMETHODCALLTYPE *EnumPins )( - IBaseFilter * This, - /* [out] */ IEnumPins **ppEnum); - - HRESULT ( STDMETHODCALLTYPE *FindPin )( - IBaseFilter * This, - /* [string][in] */ LPCWSTR Id, - /* [out] */ IPin **ppPin); - - HRESULT ( STDMETHODCALLTYPE *QueryFilterInfo )( - IBaseFilter * This, - /* [out] */ FILTER_INFO *pInfo); - - HRESULT ( STDMETHODCALLTYPE *JoinFilterGraph )( - IBaseFilter * This, - /* [in] */ IFilterGraph *pGraph, - /* [string][in] */ LPCWSTR pName); - - HRESULT ( STDMETHODCALLTYPE *QueryVendorInfo )( - IBaseFilter * This, - /* [string][out] */ LPWSTR *pVendorInfo); - - END_INTERFACE - } IBaseFilterVtbl; - - interface IBaseFilter - { - CONST_VTBL struct IBaseFilterVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IBaseFilter_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IBaseFilter_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IBaseFilter_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IBaseFilter_GetClassID(This,pClassID) \ - (This)->lpVtbl -> GetClassID(This,pClassID) - - -#define IBaseFilter_Stop(This) \ - (This)->lpVtbl -> Stop(This) - -#define IBaseFilter_Pause(This) \ - (This)->lpVtbl -> Pause(This) - -#define IBaseFilter_Run(This,tStart) \ - (This)->lpVtbl -> Run(This,tStart) - -#define IBaseFilter_GetState(This,dwMilliSecsTimeout,State) \ - (This)->lpVtbl -> GetState(This,dwMilliSecsTimeout,State) - -#define IBaseFilter_SetSyncSource(This,pClock) \ - (This)->lpVtbl -> SetSyncSource(This,pClock) - -#define IBaseFilter_GetSyncSource(This,pClock) \ - (This)->lpVtbl -> GetSyncSource(This,pClock) - - -#define IBaseFilter_EnumPins(This,ppEnum) \ - (This)->lpVtbl -> EnumPins(This,ppEnum) - -#define IBaseFilter_FindPin(This,Id,ppPin) \ - (This)->lpVtbl -> FindPin(This,Id,ppPin) - -#define IBaseFilter_QueryFilterInfo(This,pInfo) \ - (This)->lpVtbl -> QueryFilterInfo(This,pInfo) - -#define IBaseFilter_JoinFilterGraph(This,pGraph,pName) \ - (This)->lpVtbl -> JoinFilterGraph(This,pGraph,pName) - -#define IBaseFilter_QueryVendorInfo(This,pVendorInfo) \ - (This)->lpVtbl -> QueryVendorInfo(This,pVendorInfo) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IBaseFilter_EnumPins_Proxy( - IBaseFilter * This, - /* [out] */ IEnumPins **ppEnum); - - -void __RPC_STUB IBaseFilter_EnumPins_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBaseFilter_FindPin_Proxy( - IBaseFilter * This, - /* [string][in] */ LPCWSTR Id, - /* [out] */ IPin **ppPin); - - -void __RPC_STUB IBaseFilter_FindPin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBaseFilter_QueryFilterInfo_Proxy( - IBaseFilter * This, - /* [out] */ FILTER_INFO *pInfo); - - -void __RPC_STUB IBaseFilter_QueryFilterInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBaseFilter_JoinFilterGraph_Proxy( - IBaseFilter * This, - /* [in] */ IFilterGraph *pGraph, - /* [string][in] */ LPCWSTR pName); - - -void __RPC_STUB IBaseFilter_JoinFilterGraph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBaseFilter_QueryVendorInfo_Proxy( - IBaseFilter * This, - /* [string][out] */ LPWSTR *pVendorInfo); - - -void __RPC_STUB IBaseFilter_QueryVendorInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IBaseFilter_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0120 */ -/* [local] */ - -typedef IBaseFilter *PFILTER; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0120_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0120_v0_0_s_ifspec; - -#ifndef __IReferenceClock_INTERFACE_DEFINED__ -#define __IReferenceClock_INTERFACE_DEFINED__ - -/* interface IReferenceClock */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IReferenceClock; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a86897-0ad4-11ce-b03a-0020af0ba770") - IReferenceClock : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetTime( - /* [out] */ REFERENCE_TIME *pTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE AdviseTime( - /* [in] */ REFERENCE_TIME baseTime, - /* [in] */ REFERENCE_TIME streamTime, - /* [in] */ HEVENT hEvent, - /* [out] */ DWORD_PTR *pdwAdviseCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE AdvisePeriodic( - /* [in] */ REFERENCE_TIME startTime, - /* [in] */ REFERENCE_TIME periodTime, - /* [in] */ HSEMAPHORE hSemaphore, - /* [out] */ DWORD_PTR *pdwAdviseCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE Unadvise( - /* [in] */ DWORD_PTR dwAdviseCookie) = 0; - - }; - -#else /* C style interface */ - - typedef struct IReferenceClockVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IReferenceClock * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IReferenceClock * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IReferenceClock * This); - - HRESULT ( STDMETHODCALLTYPE *GetTime )( - IReferenceClock * This, - /* [out] */ REFERENCE_TIME *pTime); - - HRESULT ( STDMETHODCALLTYPE *AdviseTime )( - IReferenceClock * This, - /* [in] */ REFERENCE_TIME baseTime, - /* [in] */ REFERENCE_TIME streamTime, - /* [in] */ HEVENT hEvent, - /* [out] */ DWORD_PTR *pdwAdviseCookie); - - HRESULT ( STDMETHODCALLTYPE *AdvisePeriodic )( - IReferenceClock * This, - /* [in] */ REFERENCE_TIME startTime, - /* [in] */ REFERENCE_TIME periodTime, - /* [in] */ HSEMAPHORE hSemaphore, - /* [out] */ DWORD_PTR *pdwAdviseCookie); - - HRESULT ( STDMETHODCALLTYPE *Unadvise )( - IReferenceClock * This, - /* [in] */ DWORD_PTR dwAdviseCookie); - - END_INTERFACE - } IReferenceClockVtbl; - - interface IReferenceClock - { - CONST_VTBL struct IReferenceClockVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IReferenceClock_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IReferenceClock_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IReferenceClock_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IReferenceClock_GetTime(This,pTime) \ - (This)->lpVtbl -> GetTime(This,pTime) - -#define IReferenceClock_AdviseTime(This,baseTime,streamTime,hEvent,pdwAdviseCookie) \ - (This)->lpVtbl -> AdviseTime(This,baseTime,streamTime,hEvent,pdwAdviseCookie) - -#define IReferenceClock_AdvisePeriodic(This,startTime,periodTime,hSemaphore,pdwAdviseCookie) \ - (This)->lpVtbl -> AdvisePeriodic(This,startTime,periodTime,hSemaphore,pdwAdviseCookie) - -#define IReferenceClock_Unadvise(This,dwAdviseCookie) \ - (This)->lpVtbl -> Unadvise(This,dwAdviseCookie) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IReferenceClock_GetTime_Proxy( - IReferenceClock * This, - /* [out] */ REFERENCE_TIME *pTime); - - -void __RPC_STUB IReferenceClock_GetTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IReferenceClock_AdviseTime_Proxy( - IReferenceClock * This, - /* [in] */ REFERENCE_TIME baseTime, - /* [in] */ REFERENCE_TIME streamTime, - /* [in] */ HEVENT hEvent, - /* [out] */ DWORD_PTR *pdwAdviseCookie); - - -void __RPC_STUB IReferenceClock_AdviseTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IReferenceClock_AdvisePeriodic_Proxy( - IReferenceClock * This, - /* [in] */ REFERENCE_TIME startTime, - /* [in] */ REFERENCE_TIME periodTime, - /* [in] */ HSEMAPHORE hSemaphore, - /* [out] */ DWORD_PTR *pdwAdviseCookie); - - -void __RPC_STUB IReferenceClock_AdvisePeriodic_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IReferenceClock_Unadvise_Proxy( - IReferenceClock * This, - /* [in] */ DWORD_PTR dwAdviseCookie); - - -void __RPC_STUB IReferenceClock_Unadvise_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IReferenceClock_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0121 */ -/* [local] */ - -typedef IReferenceClock *PREFERENCECLOCK; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0121_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0121_v0_0_s_ifspec; - -#ifndef __IReferenceClock2_INTERFACE_DEFINED__ -#define __IReferenceClock2_INTERFACE_DEFINED__ - -/* interface IReferenceClock2 */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IReferenceClock2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("36b73885-c2c8-11cf-8b46-00805f6cef60") - IReferenceClock2 : public IReferenceClock - { - public: - }; - -#else /* C style interface */ - - typedef struct IReferenceClock2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IReferenceClock2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IReferenceClock2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IReferenceClock2 * This); - - HRESULT ( STDMETHODCALLTYPE *GetTime )( - IReferenceClock2 * This, - /* [out] */ REFERENCE_TIME *pTime); - - HRESULT ( STDMETHODCALLTYPE *AdviseTime )( - IReferenceClock2 * This, - /* [in] */ REFERENCE_TIME baseTime, - /* [in] */ REFERENCE_TIME streamTime, - /* [in] */ HEVENT hEvent, - /* [out] */ DWORD_PTR *pdwAdviseCookie); - - HRESULT ( STDMETHODCALLTYPE *AdvisePeriodic )( - IReferenceClock2 * This, - /* [in] */ REFERENCE_TIME startTime, - /* [in] */ REFERENCE_TIME periodTime, - /* [in] */ HSEMAPHORE hSemaphore, - /* [out] */ DWORD_PTR *pdwAdviseCookie); - - HRESULT ( STDMETHODCALLTYPE *Unadvise )( - IReferenceClock2 * This, - /* [in] */ DWORD_PTR dwAdviseCookie); - - END_INTERFACE - } IReferenceClock2Vtbl; - - interface IReferenceClock2 - { - CONST_VTBL struct IReferenceClock2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IReferenceClock2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IReferenceClock2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IReferenceClock2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IReferenceClock2_GetTime(This,pTime) \ - (This)->lpVtbl -> GetTime(This,pTime) - -#define IReferenceClock2_AdviseTime(This,baseTime,streamTime,hEvent,pdwAdviseCookie) \ - (This)->lpVtbl -> AdviseTime(This,baseTime,streamTime,hEvent,pdwAdviseCookie) - -#define IReferenceClock2_AdvisePeriodic(This,startTime,periodTime,hSemaphore,pdwAdviseCookie) \ - (This)->lpVtbl -> AdvisePeriodic(This,startTime,periodTime,hSemaphore,pdwAdviseCookie) - -#define IReferenceClock2_Unadvise(This,dwAdviseCookie) \ - (This)->lpVtbl -> Unadvise(This,dwAdviseCookie) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IReferenceClock2_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0122 */ -/* [local] */ - -typedef IReferenceClock2 *PREFERENCECLOCK2; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0122_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0122_v0_0_s_ifspec; - -#ifndef __IMediaSample_INTERFACE_DEFINED__ -#define __IMediaSample_INTERFACE_DEFINED__ - -/* interface IMediaSample */ -/* [unique][uuid][object][local] */ - - -EXTERN_C const IID IID_IMediaSample; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a8689a-0ad4-11ce-b03a-0020af0ba770") - IMediaSample : public IUnknown - { - public: - 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_0010) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMediaType( - AM_MEDIA_TYPE **ppMediaType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMediaType( - 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 IMediaSampleVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaSample * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaSample * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaSample * This); - - HRESULT ( STDMETHODCALLTYPE *GetPointer )( - IMediaSample * This, - /* [out] */ BYTE **ppBuffer); - - long ( STDMETHODCALLTYPE *GetSize )( - IMediaSample * This); - - HRESULT ( STDMETHODCALLTYPE *GetTime )( - IMediaSample * This, - /* [out] */ REFERENCE_TIME *pTimeStart, - /* [out] */ REFERENCE_TIME *pTimeEnd); - - HRESULT ( STDMETHODCALLTYPE *SetTime )( - IMediaSample * This, - /* [in] */ REFERENCE_TIME *pTimeStart, - /* [in] */ REFERENCE_TIME *pTimeEnd); - - HRESULT ( STDMETHODCALLTYPE *IsSyncPoint )( - IMediaSample * This); - - HRESULT ( STDMETHODCALLTYPE *SetSyncPoint )( - IMediaSample * This, - BOOL bIsSyncPoint); - - HRESULT ( STDMETHODCALLTYPE *IsPreroll )( - IMediaSample * This); - - HRESULT ( STDMETHODCALLTYPE *SetPreroll )( - IMediaSample * This, - BOOL bIsPreroll); - - long ( STDMETHODCALLTYPE *GetActualDataLength )( - IMediaSample * This); - - HRESULT ( STDMETHODCALLTYPE *SetActualDataLength )( - IMediaSample * This, - long __MIDL_0010); - - HRESULT ( STDMETHODCALLTYPE *GetMediaType )( - IMediaSample * This, - AM_MEDIA_TYPE **ppMediaType); - - HRESULT ( STDMETHODCALLTYPE *SetMediaType )( - IMediaSample * This, - AM_MEDIA_TYPE *pMediaType); - - HRESULT ( STDMETHODCALLTYPE *IsDiscontinuity )( - IMediaSample * This); - - HRESULT ( STDMETHODCALLTYPE *SetDiscontinuity )( - IMediaSample * This, - BOOL bDiscontinuity); - - HRESULT ( STDMETHODCALLTYPE *GetMediaTime )( - IMediaSample * This, - /* [out] */ LONGLONG *pTimeStart, - /* [out] */ LONGLONG *pTimeEnd); - - HRESULT ( STDMETHODCALLTYPE *SetMediaTime )( - IMediaSample * This, - /* [in] */ LONGLONG *pTimeStart, - /* [in] */ LONGLONG *pTimeEnd); - - END_INTERFACE - } IMediaSampleVtbl; - - interface IMediaSample - { - CONST_VTBL struct IMediaSampleVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaSample_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaSample_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaSample_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaSample_GetPointer(This,ppBuffer) \ - (This)->lpVtbl -> GetPointer(This,ppBuffer) - -#define IMediaSample_GetSize(This) \ - (This)->lpVtbl -> GetSize(This) - -#define IMediaSample_GetTime(This,pTimeStart,pTimeEnd) \ - (This)->lpVtbl -> GetTime(This,pTimeStart,pTimeEnd) - -#define IMediaSample_SetTime(This,pTimeStart,pTimeEnd) \ - (This)->lpVtbl -> SetTime(This,pTimeStart,pTimeEnd) - -#define IMediaSample_IsSyncPoint(This) \ - (This)->lpVtbl -> IsSyncPoint(This) - -#define IMediaSample_SetSyncPoint(This,bIsSyncPoint) \ - (This)->lpVtbl -> SetSyncPoint(This,bIsSyncPoint) - -#define IMediaSample_IsPreroll(This) \ - (This)->lpVtbl -> IsPreroll(This) - -#define IMediaSample_SetPreroll(This,bIsPreroll) \ - (This)->lpVtbl -> SetPreroll(This,bIsPreroll) - -#define IMediaSample_GetActualDataLength(This) \ - (This)->lpVtbl -> GetActualDataLength(This) - -#define IMediaSample_SetActualDataLength(This,__MIDL_0010) \ - (This)->lpVtbl -> SetActualDataLength(This,__MIDL_0010) - -#define IMediaSample_GetMediaType(This,ppMediaType) \ - (This)->lpVtbl -> GetMediaType(This,ppMediaType) - -#define IMediaSample_SetMediaType(This,pMediaType) \ - (This)->lpVtbl -> SetMediaType(This,pMediaType) - -#define IMediaSample_IsDiscontinuity(This) \ - (This)->lpVtbl -> IsDiscontinuity(This) - -#define IMediaSample_SetDiscontinuity(This,bDiscontinuity) \ - (This)->lpVtbl -> SetDiscontinuity(This,bDiscontinuity) - -#define IMediaSample_GetMediaTime(This,pTimeStart,pTimeEnd) \ - (This)->lpVtbl -> GetMediaTime(This,pTimeStart,pTimeEnd) - -#define IMediaSample_SetMediaTime(This,pTimeStart,pTimeEnd) \ - (This)->lpVtbl -> SetMediaTime(This,pTimeStart,pTimeEnd) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaSample_GetPointer_Proxy( - IMediaSample * This, - /* [out] */ BYTE **ppBuffer); - - -void __RPC_STUB IMediaSample_GetPointer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -long STDMETHODCALLTYPE IMediaSample_GetSize_Proxy( - IMediaSample * This); - - -void __RPC_STUB IMediaSample_GetSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_GetTime_Proxy( - IMediaSample * This, - /* [out] */ REFERENCE_TIME *pTimeStart, - /* [out] */ REFERENCE_TIME *pTimeEnd); - - -void __RPC_STUB IMediaSample_GetTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_SetTime_Proxy( - IMediaSample * This, - /* [in] */ REFERENCE_TIME *pTimeStart, - /* [in] */ REFERENCE_TIME *pTimeEnd); - - -void __RPC_STUB IMediaSample_SetTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_IsSyncPoint_Proxy( - IMediaSample * This); - - -void __RPC_STUB IMediaSample_IsSyncPoint_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_SetSyncPoint_Proxy( - IMediaSample * This, - BOOL bIsSyncPoint); - - -void __RPC_STUB IMediaSample_SetSyncPoint_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_IsPreroll_Proxy( - IMediaSample * This); - - -void __RPC_STUB IMediaSample_IsPreroll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_SetPreroll_Proxy( - IMediaSample * This, - BOOL bIsPreroll); - - -void __RPC_STUB IMediaSample_SetPreroll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -long STDMETHODCALLTYPE IMediaSample_GetActualDataLength_Proxy( - IMediaSample * This); - - -void __RPC_STUB IMediaSample_GetActualDataLength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_SetActualDataLength_Proxy( - IMediaSample * This, - long __MIDL_0010); - - -void __RPC_STUB IMediaSample_SetActualDataLength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_GetMediaType_Proxy( - IMediaSample * This, - AM_MEDIA_TYPE **ppMediaType); - - -void __RPC_STUB IMediaSample_GetMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_SetMediaType_Proxy( - IMediaSample * This, - AM_MEDIA_TYPE *pMediaType); - - -void __RPC_STUB IMediaSample_SetMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_IsDiscontinuity_Proxy( - IMediaSample * This); - - -void __RPC_STUB IMediaSample_IsDiscontinuity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_SetDiscontinuity_Proxy( - IMediaSample * This, - BOOL bDiscontinuity); - - -void __RPC_STUB IMediaSample_SetDiscontinuity_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_GetMediaTime_Proxy( - IMediaSample * This, - /* [out] */ LONGLONG *pTimeStart, - /* [out] */ LONGLONG *pTimeEnd); - - -void __RPC_STUB IMediaSample_GetMediaTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample_SetMediaTime_Proxy( - IMediaSample * This, - /* [in] */ LONGLONG *pTimeStart, - /* [in] */ LONGLONG *pTimeEnd); - - -void __RPC_STUB IMediaSample_SetMediaTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaSample_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0123 */ -/* [local] */ - -typedef IMediaSample *PMEDIASAMPLE; - - -enum tagAM_SAMPLE_PROPERTY_FLAGS - { AM_SAMPLE_SPLICEPOINT = 0x1, - AM_SAMPLE_PREROLL = 0x2, - AM_SAMPLE_DATADISCONTINUITY = 0x4, - AM_SAMPLE_TYPECHANGED = 0x8, - AM_SAMPLE_TIMEVALID = 0x10, - AM_SAMPLE_TIMEDISCONTINUITY = 0x40, - AM_SAMPLE_FLUSH_ON_PAUSE = 0x80, - AM_SAMPLE_STOPVALID = 0x100, - AM_SAMPLE_ENDOFSTREAM = 0x200, - AM_STREAM_MEDIA = 0, - AM_STREAM_CONTROL = 1 - } ; -typedef struct tagAM_SAMPLE2_PROPERTIES - { - DWORD cbData; - DWORD dwTypeSpecificFlags; - DWORD dwSampleFlags; - LONG lActual; - REFERENCE_TIME tStart; - REFERENCE_TIME tStop; - DWORD dwStreamId; - AM_MEDIA_TYPE *pMediaType; - BYTE *pbBuffer; - LONG cbBuffer; - } AM_SAMPLE2_PROPERTIES; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0123_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0123_v0_0_s_ifspec; - -#ifndef __IMediaSample2_INTERFACE_DEFINED__ -#define __IMediaSample2_INTERFACE_DEFINED__ - -/* interface IMediaSample2 */ -/* [unique][uuid][object][local] */ - - -EXTERN_C const IID IID_IMediaSample2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("36b73884-c2c8-11cf-8b46-00805f6cef60") - IMediaSample2 : public IMediaSample - { - public: - virtual HRESULT STDMETHODCALLTYPE GetProperties( - /* [in] */ DWORD cbProperties, - /* [size_is][out] */ BYTE *pbProperties) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetProperties( - /* [in] */ DWORD cbProperties, - /* [size_is][in] */ const BYTE *pbProperties) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaSample2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaSample2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaSample2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaSample2 * This); - - HRESULT ( STDMETHODCALLTYPE *GetPointer )( - IMediaSample2 * This, - /* [out] */ BYTE **ppBuffer); - - long ( STDMETHODCALLTYPE *GetSize )( - IMediaSample2 * This); - - HRESULT ( STDMETHODCALLTYPE *GetTime )( - IMediaSample2 * This, - /* [out] */ REFERENCE_TIME *pTimeStart, - /* [out] */ REFERENCE_TIME *pTimeEnd); - - HRESULT ( STDMETHODCALLTYPE *SetTime )( - IMediaSample2 * This, - /* [in] */ REFERENCE_TIME *pTimeStart, - /* [in] */ REFERENCE_TIME *pTimeEnd); - - HRESULT ( STDMETHODCALLTYPE *IsSyncPoint )( - IMediaSample2 * This); - - HRESULT ( STDMETHODCALLTYPE *SetSyncPoint )( - IMediaSample2 * This, - BOOL bIsSyncPoint); - - HRESULT ( STDMETHODCALLTYPE *IsPreroll )( - IMediaSample2 * This); - - HRESULT ( STDMETHODCALLTYPE *SetPreroll )( - IMediaSample2 * This, - BOOL bIsPreroll); - - long ( STDMETHODCALLTYPE *GetActualDataLength )( - IMediaSample2 * This); - - HRESULT ( STDMETHODCALLTYPE *SetActualDataLength )( - IMediaSample2 * This, - long __MIDL_0010); - - HRESULT ( STDMETHODCALLTYPE *GetMediaType )( - IMediaSample2 * This, - AM_MEDIA_TYPE **ppMediaType); - - HRESULT ( STDMETHODCALLTYPE *SetMediaType )( - IMediaSample2 * This, - AM_MEDIA_TYPE *pMediaType); - - HRESULT ( STDMETHODCALLTYPE *IsDiscontinuity )( - IMediaSample2 * This); - - HRESULT ( STDMETHODCALLTYPE *SetDiscontinuity )( - IMediaSample2 * This, - BOOL bDiscontinuity); - - HRESULT ( STDMETHODCALLTYPE *GetMediaTime )( - IMediaSample2 * This, - /* [out] */ LONGLONG *pTimeStart, - /* [out] */ LONGLONG *pTimeEnd); - - HRESULT ( STDMETHODCALLTYPE *SetMediaTime )( - IMediaSample2 * This, - /* [in] */ LONGLONG *pTimeStart, - /* [in] */ LONGLONG *pTimeEnd); - - HRESULT ( STDMETHODCALLTYPE *GetProperties )( - IMediaSample2 * This, - /* [in] */ DWORD cbProperties, - /* [size_is][out] */ BYTE *pbProperties); - - HRESULT ( STDMETHODCALLTYPE *SetProperties )( - IMediaSample2 * This, - /* [in] */ DWORD cbProperties, - /* [size_is][in] */ const BYTE *pbProperties); - - END_INTERFACE - } IMediaSample2Vtbl; - - interface IMediaSample2 - { - CONST_VTBL struct IMediaSample2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaSample2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaSample2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaSample2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaSample2_GetPointer(This,ppBuffer) \ - (This)->lpVtbl -> GetPointer(This,ppBuffer) - -#define IMediaSample2_GetSize(This) \ - (This)->lpVtbl -> GetSize(This) - -#define IMediaSample2_GetTime(This,pTimeStart,pTimeEnd) \ - (This)->lpVtbl -> GetTime(This,pTimeStart,pTimeEnd) - -#define IMediaSample2_SetTime(This,pTimeStart,pTimeEnd) \ - (This)->lpVtbl -> SetTime(This,pTimeStart,pTimeEnd) - -#define IMediaSample2_IsSyncPoint(This) \ - (This)->lpVtbl -> IsSyncPoint(This) - -#define IMediaSample2_SetSyncPoint(This,bIsSyncPoint) \ - (This)->lpVtbl -> SetSyncPoint(This,bIsSyncPoint) - -#define IMediaSample2_IsPreroll(This) \ - (This)->lpVtbl -> IsPreroll(This) - -#define IMediaSample2_SetPreroll(This,bIsPreroll) \ - (This)->lpVtbl -> SetPreroll(This,bIsPreroll) - -#define IMediaSample2_GetActualDataLength(This) \ - (This)->lpVtbl -> GetActualDataLength(This) - -#define IMediaSample2_SetActualDataLength(This,__MIDL_0010) \ - (This)->lpVtbl -> SetActualDataLength(This,__MIDL_0010) - -#define IMediaSample2_GetMediaType(This,ppMediaType) \ - (This)->lpVtbl -> GetMediaType(This,ppMediaType) - -#define IMediaSample2_SetMediaType(This,pMediaType) \ - (This)->lpVtbl -> SetMediaType(This,pMediaType) - -#define IMediaSample2_IsDiscontinuity(This) \ - (This)->lpVtbl -> IsDiscontinuity(This) - -#define IMediaSample2_SetDiscontinuity(This,bDiscontinuity) \ - (This)->lpVtbl -> SetDiscontinuity(This,bDiscontinuity) - -#define IMediaSample2_GetMediaTime(This,pTimeStart,pTimeEnd) \ - (This)->lpVtbl -> GetMediaTime(This,pTimeStart,pTimeEnd) - -#define IMediaSample2_SetMediaTime(This,pTimeStart,pTimeEnd) \ - (This)->lpVtbl -> SetMediaTime(This,pTimeStart,pTimeEnd) - - -#define IMediaSample2_GetProperties(This,cbProperties,pbProperties) \ - (This)->lpVtbl -> GetProperties(This,cbProperties,pbProperties) - -#define IMediaSample2_SetProperties(This,cbProperties,pbProperties) \ - (This)->lpVtbl -> SetProperties(This,cbProperties,pbProperties) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaSample2_GetProperties_Proxy( - IMediaSample2 * This, - /* [in] */ DWORD cbProperties, - /* [size_is][out] */ BYTE *pbProperties); - - -void __RPC_STUB IMediaSample2_GetProperties_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSample2_SetProperties_Proxy( - IMediaSample2 * This, - /* [in] */ DWORD cbProperties, - /* [size_is][in] */ const BYTE *pbProperties); - - -void __RPC_STUB IMediaSample2_SetProperties_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaSample2_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0124 */ -/* [local] */ - -typedef IMediaSample2 *PMEDIASAMPLE2; - -#define AM_GBF_PREVFRAMESKIPPED 1 -#define AM_GBF_NOTASYNCPOINT 2 -#define AM_GBF_NOWAIT 4 -#define AM_GBF_NODDSURFACELOCK 8 - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0124_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0124_v0_0_s_ifspec; - -#ifndef __IMemAllocator_INTERFACE_DEFINED__ -#define __IMemAllocator_INTERFACE_DEFINED__ - -/* interface IMemAllocator */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IMemAllocator; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a8689c-0ad4-11ce-b03a-0020af0ba770") - IMemAllocator : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetProperties( - /* [in] */ ALLOCATOR_PROPERTIES *pRequest, - /* [out] */ ALLOCATOR_PROPERTIES *pActual) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetProperties( - /* [out] */ ALLOCATOR_PROPERTIES *pProps) = 0; - - virtual HRESULT STDMETHODCALLTYPE Commit( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Decommit( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBuffer( - /* [out] */ IMediaSample **ppBuffer, - /* [in] */ REFERENCE_TIME *pStartTime, - /* [in] */ REFERENCE_TIME *pEndTime, - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer( - /* [in] */ IMediaSample *pBuffer) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMemAllocatorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMemAllocator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMemAllocator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMemAllocator * This); - - HRESULT ( STDMETHODCALLTYPE *SetProperties )( - IMemAllocator * This, - /* [in] */ ALLOCATOR_PROPERTIES *pRequest, - /* [out] */ ALLOCATOR_PROPERTIES *pActual); - - HRESULT ( STDMETHODCALLTYPE *GetProperties )( - IMemAllocator * This, - /* [out] */ ALLOCATOR_PROPERTIES *pProps); - - HRESULT ( STDMETHODCALLTYPE *Commit )( - IMemAllocator * This); - - HRESULT ( STDMETHODCALLTYPE *Decommit )( - IMemAllocator * This); - - HRESULT ( STDMETHODCALLTYPE *GetBuffer )( - IMemAllocator * This, - /* [out] */ IMediaSample **ppBuffer, - /* [in] */ REFERENCE_TIME *pStartTime, - /* [in] */ REFERENCE_TIME *pEndTime, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *ReleaseBuffer )( - IMemAllocator * This, - /* [in] */ IMediaSample *pBuffer); - - END_INTERFACE - } IMemAllocatorVtbl; - - interface IMemAllocator - { - CONST_VTBL struct IMemAllocatorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMemAllocator_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMemAllocator_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMemAllocator_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMemAllocator_SetProperties(This,pRequest,pActual) \ - (This)->lpVtbl -> SetProperties(This,pRequest,pActual) - -#define IMemAllocator_GetProperties(This,pProps) \ - (This)->lpVtbl -> GetProperties(This,pProps) - -#define IMemAllocator_Commit(This) \ - (This)->lpVtbl -> Commit(This) - -#define IMemAllocator_Decommit(This) \ - (This)->lpVtbl -> Decommit(This) - -#define IMemAllocator_GetBuffer(This,ppBuffer,pStartTime,pEndTime,dwFlags) \ - (This)->lpVtbl -> GetBuffer(This,ppBuffer,pStartTime,pEndTime,dwFlags) - -#define IMemAllocator_ReleaseBuffer(This,pBuffer) \ - (This)->lpVtbl -> ReleaseBuffer(This,pBuffer) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMemAllocator_SetProperties_Proxy( - IMemAllocator * This, - /* [in] */ ALLOCATOR_PROPERTIES *pRequest, - /* [out] */ ALLOCATOR_PROPERTIES *pActual); - - -void __RPC_STUB IMemAllocator_SetProperties_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemAllocator_GetProperties_Proxy( - IMemAllocator * This, - /* [out] */ ALLOCATOR_PROPERTIES *pProps); - - -void __RPC_STUB IMemAllocator_GetProperties_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemAllocator_Commit_Proxy( - IMemAllocator * This); - - -void __RPC_STUB IMemAllocator_Commit_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemAllocator_Decommit_Proxy( - IMemAllocator * This); - - -void __RPC_STUB IMemAllocator_Decommit_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemAllocator_GetBuffer_Proxy( - IMemAllocator * This, - /* [out] */ IMediaSample **ppBuffer, - /* [in] */ REFERENCE_TIME *pStartTime, - /* [in] */ REFERENCE_TIME *pEndTime, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IMemAllocator_GetBuffer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemAllocator_ReleaseBuffer_Proxy( - IMemAllocator * This, - /* [in] */ IMediaSample *pBuffer); - - -void __RPC_STUB IMemAllocator_ReleaseBuffer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMemAllocator_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0125 */ -/* [local] */ - -typedef IMemAllocator *PMEMALLOCATOR; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0125_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0125_v0_0_s_ifspec; - -#ifndef __IMemAllocatorCallbackTemp_INTERFACE_DEFINED__ -#define __IMemAllocatorCallbackTemp_INTERFACE_DEFINED__ - -/* interface IMemAllocatorCallbackTemp */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IMemAllocatorCallbackTemp; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("379a0cf0-c1de-11d2-abf5-00a0c905f375") - IMemAllocatorCallbackTemp : public IMemAllocator - { - public: - virtual HRESULT STDMETHODCALLTYPE SetNotify( - /* [in] */ IMemAllocatorNotifyCallbackTemp *pNotify) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFreeCount( - /* [out] */ LONG *plBuffersFree) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMemAllocatorCallbackTempVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMemAllocatorCallbackTemp * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMemAllocatorCallbackTemp * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMemAllocatorCallbackTemp * This); - - HRESULT ( STDMETHODCALLTYPE *SetProperties )( - IMemAllocatorCallbackTemp * This, - /* [in] */ ALLOCATOR_PROPERTIES *pRequest, - /* [out] */ ALLOCATOR_PROPERTIES *pActual); - - HRESULT ( STDMETHODCALLTYPE *GetProperties )( - IMemAllocatorCallbackTemp * This, - /* [out] */ ALLOCATOR_PROPERTIES *pProps); - - HRESULT ( STDMETHODCALLTYPE *Commit )( - IMemAllocatorCallbackTemp * This); - - HRESULT ( STDMETHODCALLTYPE *Decommit )( - IMemAllocatorCallbackTemp * This); - - HRESULT ( STDMETHODCALLTYPE *GetBuffer )( - IMemAllocatorCallbackTemp * This, - /* [out] */ IMediaSample **ppBuffer, - /* [in] */ REFERENCE_TIME *pStartTime, - /* [in] */ REFERENCE_TIME *pEndTime, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *ReleaseBuffer )( - IMemAllocatorCallbackTemp * This, - /* [in] */ IMediaSample *pBuffer); - - HRESULT ( STDMETHODCALLTYPE *SetNotify )( - IMemAllocatorCallbackTemp * This, - /* [in] */ IMemAllocatorNotifyCallbackTemp *pNotify); - - HRESULT ( STDMETHODCALLTYPE *GetFreeCount )( - IMemAllocatorCallbackTemp * This, - /* [out] */ LONG *plBuffersFree); - - END_INTERFACE - } IMemAllocatorCallbackTempVtbl; - - interface IMemAllocatorCallbackTemp - { - CONST_VTBL struct IMemAllocatorCallbackTempVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMemAllocatorCallbackTemp_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMemAllocatorCallbackTemp_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMemAllocatorCallbackTemp_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMemAllocatorCallbackTemp_SetProperties(This,pRequest,pActual) \ - (This)->lpVtbl -> SetProperties(This,pRequest,pActual) - -#define IMemAllocatorCallbackTemp_GetProperties(This,pProps) \ - (This)->lpVtbl -> GetProperties(This,pProps) - -#define IMemAllocatorCallbackTemp_Commit(This) \ - (This)->lpVtbl -> Commit(This) - -#define IMemAllocatorCallbackTemp_Decommit(This) \ - (This)->lpVtbl -> Decommit(This) - -#define IMemAllocatorCallbackTemp_GetBuffer(This,ppBuffer,pStartTime,pEndTime,dwFlags) \ - (This)->lpVtbl -> GetBuffer(This,ppBuffer,pStartTime,pEndTime,dwFlags) - -#define IMemAllocatorCallbackTemp_ReleaseBuffer(This,pBuffer) \ - (This)->lpVtbl -> ReleaseBuffer(This,pBuffer) - - -#define IMemAllocatorCallbackTemp_SetNotify(This,pNotify) \ - (This)->lpVtbl -> SetNotify(This,pNotify) - -#define IMemAllocatorCallbackTemp_GetFreeCount(This,plBuffersFree) \ - (This)->lpVtbl -> GetFreeCount(This,plBuffersFree) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMemAllocatorCallbackTemp_SetNotify_Proxy( - IMemAllocatorCallbackTemp * This, - /* [in] */ IMemAllocatorNotifyCallbackTemp *pNotify); - - -void __RPC_STUB IMemAllocatorCallbackTemp_SetNotify_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemAllocatorCallbackTemp_GetFreeCount_Proxy( - IMemAllocatorCallbackTemp * This, - /* [out] */ LONG *plBuffersFree); - - -void __RPC_STUB IMemAllocatorCallbackTemp_GetFreeCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMemAllocatorCallbackTemp_INTERFACE_DEFINED__ */ - - -#ifndef __IMemAllocatorNotifyCallbackTemp_INTERFACE_DEFINED__ -#define __IMemAllocatorNotifyCallbackTemp_INTERFACE_DEFINED__ - -/* interface IMemAllocatorNotifyCallbackTemp */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IMemAllocatorNotifyCallbackTemp; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("92980b30-c1de-11d2-abf5-00a0c905f375") - IMemAllocatorNotifyCallbackTemp : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE NotifyRelease( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMemAllocatorNotifyCallbackTempVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMemAllocatorNotifyCallbackTemp * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMemAllocatorNotifyCallbackTemp * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMemAllocatorNotifyCallbackTemp * This); - - HRESULT ( STDMETHODCALLTYPE *NotifyRelease )( - IMemAllocatorNotifyCallbackTemp * This); - - END_INTERFACE - } IMemAllocatorNotifyCallbackTempVtbl; - - interface IMemAllocatorNotifyCallbackTemp - { - CONST_VTBL struct IMemAllocatorNotifyCallbackTempVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMemAllocatorNotifyCallbackTemp_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMemAllocatorNotifyCallbackTemp_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMemAllocatorNotifyCallbackTemp_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMemAllocatorNotifyCallbackTemp_NotifyRelease(This) \ - (This)->lpVtbl -> NotifyRelease(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMemAllocatorNotifyCallbackTemp_NotifyRelease_Proxy( - IMemAllocatorNotifyCallbackTemp * This); - - -void __RPC_STUB IMemAllocatorNotifyCallbackTemp_NotifyRelease_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMemAllocatorNotifyCallbackTemp_INTERFACE_DEFINED__ */ - - -#ifndef __IMemInputPin_INTERFACE_DEFINED__ -#define __IMemInputPin_INTERFACE_DEFINED__ - -/* interface IMemInputPin */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IMemInputPin; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a8689d-0ad4-11ce-b03a-0020af0ba770") - IMemInputPin : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetAllocator( - /* [out] */ IMemAllocator **ppAllocator) = 0; - - virtual HRESULT STDMETHODCALLTYPE NotifyAllocator( - /* [in] */ IMemAllocator *pAllocator, - /* [in] */ BOOL bReadOnly) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllocatorRequirements( - /* [out] */ ALLOCATOR_PROPERTIES *pProps) = 0; - - virtual HRESULT STDMETHODCALLTYPE Receive( - /* [in] */ IMediaSample *pSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReceiveMultiple( - /* [size_is][in] */ IMediaSample **pSamples, - /* [in] */ long nSamples, - /* [out] */ long *nSamplesProcessed) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReceiveCanBlock( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMemInputPinVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMemInputPin * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMemInputPin * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMemInputPin * This); - - HRESULT ( STDMETHODCALLTYPE *GetAllocator )( - IMemInputPin * This, - /* [out] */ IMemAllocator **ppAllocator); - - HRESULT ( STDMETHODCALLTYPE *NotifyAllocator )( - IMemInputPin * This, - /* [in] */ IMemAllocator *pAllocator, - /* [in] */ BOOL bReadOnly); - - HRESULT ( STDMETHODCALLTYPE *GetAllocatorRequirements )( - IMemInputPin * This, - /* [out] */ ALLOCATOR_PROPERTIES *pProps); - - HRESULT ( STDMETHODCALLTYPE *Receive )( - IMemInputPin * This, - /* [in] */ IMediaSample *pSample); - - HRESULT ( STDMETHODCALLTYPE *ReceiveMultiple )( - IMemInputPin * This, - /* [size_is][in] */ IMediaSample **pSamples, - /* [in] */ long nSamples, - /* [out] */ long *nSamplesProcessed); - - HRESULT ( STDMETHODCALLTYPE *ReceiveCanBlock )( - IMemInputPin * This); - - END_INTERFACE - } IMemInputPinVtbl; - - interface IMemInputPin - { - CONST_VTBL struct IMemInputPinVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMemInputPin_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMemInputPin_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMemInputPin_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMemInputPin_GetAllocator(This,ppAllocator) \ - (This)->lpVtbl -> GetAllocator(This,ppAllocator) - -#define IMemInputPin_NotifyAllocator(This,pAllocator,bReadOnly) \ - (This)->lpVtbl -> NotifyAllocator(This,pAllocator,bReadOnly) - -#define IMemInputPin_GetAllocatorRequirements(This,pProps) \ - (This)->lpVtbl -> GetAllocatorRequirements(This,pProps) - -#define IMemInputPin_Receive(This,pSample) \ - (This)->lpVtbl -> Receive(This,pSample) - -#define IMemInputPin_ReceiveMultiple(This,pSamples,nSamples,nSamplesProcessed) \ - (This)->lpVtbl -> ReceiveMultiple(This,pSamples,nSamples,nSamplesProcessed) - -#define IMemInputPin_ReceiveCanBlock(This) \ - (This)->lpVtbl -> ReceiveCanBlock(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMemInputPin_GetAllocator_Proxy( - IMemInputPin * This, - /* [out] */ IMemAllocator **ppAllocator); - - -void __RPC_STUB IMemInputPin_GetAllocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemInputPin_NotifyAllocator_Proxy( - IMemInputPin * This, - /* [in] */ IMemAllocator *pAllocator, - /* [in] */ BOOL bReadOnly); - - -void __RPC_STUB IMemInputPin_NotifyAllocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemInputPin_GetAllocatorRequirements_Proxy( - IMemInputPin * This, - /* [out] */ ALLOCATOR_PROPERTIES *pProps); - - -void __RPC_STUB IMemInputPin_GetAllocatorRequirements_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemInputPin_Receive_Proxy( - IMemInputPin * This, - /* [in] */ IMediaSample *pSample); - - -void __RPC_STUB IMemInputPin_Receive_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemInputPin_ReceiveMultiple_Proxy( - IMemInputPin * This, - /* [size_is][in] */ IMediaSample **pSamples, - /* [in] */ long nSamples, - /* [out] */ long *nSamplesProcessed); - - -void __RPC_STUB IMemInputPin_ReceiveMultiple_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMemInputPin_ReceiveCanBlock_Proxy( - IMemInputPin * This); - - -void __RPC_STUB IMemInputPin_ReceiveCanBlock_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMemInputPin_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0128 */ -/* [local] */ - -typedef IMemInputPin *PMEMINPUTPIN; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0128_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0128_v0_0_s_ifspec; - -#ifndef __IAMovieSetup_INTERFACE_DEFINED__ -#define __IAMovieSetup_INTERFACE_DEFINED__ - -/* interface IAMovieSetup */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMovieSetup; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("a3d8cec0-7e5a-11cf-bbc5-00805f6cef20") - IAMovieSetup : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Register( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Unregister( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMovieSetupVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMovieSetup * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMovieSetup * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMovieSetup * This); - - HRESULT ( STDMETHODCALLTYPE *Register )( - IAMovieSetup * This); - - HRESULT ( STDMETHODCALLTYPE *Unregister )( - IAMovieSetup * This); - - END_INTERFACE - } IAMovieSetupVtbl; - - interface IAMovieSetup - { - CONST_VTBL struct IAMovieSetupVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMovieSetup_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMovieSetup_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMovieSetup_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMovieSetup_Register(This) \ - (This)->lpVtbl -> Register(This) - -#define IAMovieSetup_Unregister(This) \ - (This)->lpVtbl -> Unregister(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMovieSetup_Register_Proxy( - IAMovieSetup * This); - - -void __RPC_STUB IAMovieSetup_Register_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMovieSetup_Unregister_Proxy( - IAMovieSetup * This); - - -void __RPC_STUB IAMovieSetup_Unregister_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMovieSetup_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0129 */ -/* [local] */ - -typedef IAMovieSetup *PAMOVIESETUP; - -typedef -enum AM_SEEKING_SeekingFlags - { AM_SEEKING_NoPositioning = 0, - AM_SEEKING_AbsolutePositioning = 0x1, - AM_SEEKING_RelativePositioning = 0x2, - AM_SEEKING_IncrementalPositioning = 0x3, - AM_SEEKING_PositioningBitsMask = 0x3, - AM_SEEKING_SeekToKeyFrame = 0x4, - AM_SEEKING_ReturnTime = 0x8, - AM_SEEKING_Segment = 0x10, - AM_SEEKING_NoFlush = 0x20 - } AM_SEEKING_SEEKING_FLAGS; - -typedef -enum AM_SEEKING_SeekingCapabilities - { AM_SEEKING_CanSeekAbsolute = 0x1, - AM_SEEKING_CanSeekForwards = 0x2, - AM_SEEKING_CanSeekBackwards = 0x4, - AM_SEEKING_CanGetCurrentPos = 0x8, - AM_SEEKING_CanGetStopPos = 0x10, - AM_SEEKING_CanGetDuration = 0x20, - AM_SEEKING_CanPlayBackwards = 0x40, - AM_SEEKING_CanDoSegments = 0x80, - AM_SEEKING_Source = 0x100 - } AM_SEEKING_SEEKING_CAPABILITIES; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0129_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0129_v0_0_s_ifspec; - -#ifndef __IMediaSeeking_INTERFACE_DEFINED__ -#define __IMediaSeeking_INTERFACE_DEFINED__ - -/* interface IMediaSeeking */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IMediaSeeking; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("36b73880-c2c8-11cf-8b46-00805f6cef60") - IMediaSeeking : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetCapabilities( - /* [out] */ DWORD *pCapabilities) = 0; - - virtual HRESULT STDMETHODCALLTYPE CheckCapabilities( - /* [out][in] */ DWORD *pCapabilities) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsFormatSupported( - /* [in] */ const GUID *pFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryPreferredFormat( - /* [out] */ GUID *pFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTimeFormat( - /* [out] */ GUID *pFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsUsingTimeFormat( - /* [in] */ const GUID *pFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTimeFormat( - /* [in] */ const GUID *pFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDuration( - /* [out] */ LONGLONG *pDuration) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStopPosition( - /* [out] */ LONGLONG *pStop) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentPosition( - /* [out] */ LONGLONG *pCurrent) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertTimeFormat( - /* [out] */ LONGLONG *pTarget, - /* [in] */ const GUID *pTargetFormat, - /* [in] */ LONGLONG Source, - /* [in] */ const GUID *pSourceFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetPositions( - /* [out][in] */ LONGLONG *pCurrent, - /* [in] */ DWORD dwCurrentFlags, - /* [out][in] */ LONGLONG *pStop, - /* [in] */ DWORD dwStopFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPositions( - /* [out] */ LONGLONG *pCurrent, - /* [out] */ LONGLONG *pStop) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAvailable( - /* [out] */ LONGLONG *pEarliest, - /* [out] */ LONGLONG *pLatest) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRate( - /* [in] */ double dRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRate( - /* [out] */ double *pdRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPreroll( - /* [out] */ LONGLONG *pllPreroll) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaSeekingVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaSeeking * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaSeeking * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaSeeking * This); - - HRESULT ( STDMETHODCALLTYPE *GetCapabilities )( - IMediaSeeking * This, - /* [out] */ DWORD *pCapabilities); - - HRESULT ( STDMETHODCALLTYPE *CheckCapabilities )( - IMediaSeeking * This, - /* [out][in] */ DWORD *pCapabilities); - - HRESULT ( STDMETHODCALLTYPE *IsFormatSupported )( - IMediaSeeking * This, - /* [in] */ const GUID *pFormat); - - HRESULT ( STDMETHODCALLTYPE *QueryPreferredFormat )( - IMediaSeeking * This, - /* [out] */ GUID *pFormat); - - HRESULT ( STDMETHODCALLTYPE *GetTimeFormat )( - IMediaSeeking * This, - /* [out] */ GUID *pFormat); - - HRESULT ( STDMETHODCALLTYPE *IsUsingTimeFormat )( - IMediaSeeking * This, - /* [in] */ const GUID *pFormat); - - HRESULT ( STDMETHODCALLTYPE *SetTimeFormat )( - IMediaSeeking * This, - /* [in] */ const GUID *pFormat); - - HRESULT ( STDMETHODCALLTYPE *GetDuration )( - IMediaSeeking * This, - /* [out] */ LONGLONG *pDuration); - - HRESULT ( STDMETHODCALLTYPE *GetStopPosition )( - IMediaSeeking * This, - /* [out] */ LONGLONG *pStop); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentPosition )( - IMediaSeeking * This, - /* [out] */ LONGLONG *pCurrent); - - HRESULT ( STDMETHODCALLTYPE *ConvertTimeFormat )( - IMediaSeeking * This, - /* [out] */ LONGLONG *pTarget, - /* [in] */ const GUID *pTargetFormat, - /* [in] */ LONGLONG Source, - /* [in] */ const GUID *pSourceFormat); - - HRESULT ( STDMETHODCALLTYPE *SetPositions )( - IMediaSeeking * This, - /* [out][in] */ LONGLONG *pCurrent, - /* [in] */ DWORD dwCurrentFlags, - /* [out][in] */ LONGLONG *pStop, - /* [in] */ DWORD dwStopFlags); - - HRESULT ( STDMETHODCALLTYPE *GetPositions )( - IMediaSeeking * This, - /* [out] */ LONGLONG *pCurrent, - /* [out] */ LONGLONG *pStop); - - HRESULT ( STDMETHODCALLTYPE *GetAvailable )( - IMediaSeeking * This, - /* [out] */ LONGLONG *pEarliest, - /* [out] */ LONGLONG *pLatest); - - HRESULT ( STDMETHODCALLTYPE *SetRate )( - IMediaSeeking * This, - /* [in] */ double dRate); - - HRESULT ( STDMETHODCALLTYPE *GetRate )( - IMediaSeeking * This, - /* [out] */ double *pdRate); - - HRESULT ( STDMETHODCALLTYPE *GetPreroll )( - IMediaSeeking * This, - /* [out] */ LONGLONG *pllPreroll); - - END_INTERFACE - } IMediaSeekingVtbl; - - interface IMediaSeeking - { - CONST_VTBL struct IMediaSeekingVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaSeeking_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaSeeking_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaSeeking_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaSeeking_GetCapabilities(This,pCapabilities) \ - (This)->lpVtbl -> GetCapabilities(This,pCapabilities) - -#define IMediaSeeking_CheckCapabilities(This,pCapabilities) \ - (This)->lpVtbl -> CheckCapabilities(This,pCapabilities) - -#define IMediaSeeking_IsFormatSupported(This,pFormat) \ - (This)->lpVtbl -> IsFormatSupported(This,pFormat) - -#define IMediaSeeking_QueryPreferredFormat(This,pFormat) \ - (This)->lpVtbl -> QueryPreferredFormat(This,pFormat) - -#define IMediaSeeking_GetTimeFormat(This,pFormat) \ - (This)->lpVtbl -> GetTimeFormat(This,pFormat) - -#define IMediaSeeking_IsUsingTimeFormat(This,pFormat) \ - (This)->lpVtbl -> IsUsingTimeFormat(This,pFormat) - -#define IMediaSeeking_SetTimeFormat(This,pFormat) \ - (This)->lpVtbl -> SetTimeFormat(This,pFormat) - -#define IMediaSeeking_GetDuration(This,pDuration) \ - (This)->lpVtbl -> GetDuration(This,pDuration) - -#define IMediaSeeking_GetStopPosition(This,pStop) \ - (This)->lpVtbl -> GetStopPosition(This,pStop) - -#define IMediaSeeking_GetCurrentPosition(This,pCurrent) \ - (This)->lpVtbl -> GetCurrentPosition(This,pCurrent) - -#define IMediaSeeking_ConvertTimeFormat(This,pTarget,pTargetFormat,Source,pSourceFormat) \ - (This)->lpVtbl -> ConvertTimeFormat(This,pTarget,pTargetFormat,Source,pSourceFormat) - -#define IMediaSeeking_SetPositions(This,pCurrent,dwCurrentFlags,pStop,dwStopFlags) \ - (This)->lpVtbl -> SetPositions(This,pCurrent,dwCurrentFlags,pStop,dwStopFlags) - -#define IMediaSeeking_GetPositions(This,pCurrent,pStop) \ - (This)->lpVtbl -> GetPositions(This,pCurrent,pStop) - -#define IMediaSeeking_GetAvailable(This,pEarliest,pLatest) \ - (This)->lpVtbl -> GetAvailable(This,pEarliest,pLatest) - -#define IMediaSeeking_SetRate(This,dRate) \ - (This)->lpVtbl -> SetRate(This,dRate) - -#define IMediaSeeking_GetRate(This,pdRate) \ - (This)->lpVtbl -> GetRate(This,pdRate) - -#define IMediaSeeking_GetPreroll(This,pllPreroll) \ - (This)->lpVtbl -> GetPreroll(This,pllPreroll) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_GetCapabilities_Proxy( - IMediaSeeking * This, - /* [out] */ DWORD *pCapabilities); - - -void __RPC_STUB IMediaSeeking_GetCapabilities_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_CheckCapabilities_Proxy( - IMediaSeeking * This, - /* [out][in] */ DWORD *pCapabilities); - - -void __RPC_STUB IMediaSeeking_CheckCapabilities_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_IsFormatSupported_Proxy( - IMediaSeeking * This, - /* [in] */ const GUID *pFormat); - - -void __RPC_STUB IMediaSeeking_IsFormatSupported_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_QueryPreferredFormat_Proxy( - IMediaSeeking * This, - /* [out] */ GUID *pFormat); - - -void __RPC_STUB IMediaSeeking_QueryPreferredFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_GetTimeFormat_Proxy( - IMediaSeeking * This, - /* [out] */ GUID *pFormat); - - -void __RPC_STUB IMediaSeeking_GetTimeFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_IsUsingTimeFormat_Proxy( - IMediaSeeking * This, - /* [in] */ const GUID *pFormat); - - -void __RPC_STUB IMediaSeeking_IsUsingTimeFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_SetTimeFormat_Proxy( - IMediaSeeking * This, - /* [in] */ const GUID *pFormat); - - -void __RPC_STUB IMediaSeeking_SetTimeFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_GetDuration_Proxy( - IMediaSeeking * This, - /* [out] */ LONGLONG *pDuration); - - -void __RPC_STUB IMediaSeeking_GetDuration_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_GetStopPosition_Proxy( - IMediaSeeking * This, - /* [out] */ LONGLONG *pStop); - - -void __RPC_STUB IMediaSeeking_GetStopPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_GetCurrentPosition_Proxy( - IMediaSeeking * This, - /* [out] */ LONGLONG *pCurrent); - - -void __RPC_STUB IMediaSeeking_GetCurrentPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_ConvertTimeFormat_Proxy( - IMediaSeeking * This, - /* [out] */ LONGLONG *pTarget, - /* [in] */ const GUID *pTargetFormat, - /* [in] */ LONGLONG Source, - /* [in] */ const GUID *pSourceFormat); - - -void __RPC_STUB IMediaSeeking_ConvertTimeFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_SetPositions_Proxy( - IMediaSeeking * This, - /* [out][in] */ LONGLONG *pCurrent, - /* [in] */ DWORD dwCurrentFlags, - /* [out][in] */ LONGLONG *pStop, - /* [in] */ DWORD dwStopFlags); - - -void __RPC_STUB IMediaSeeking_SetPositions_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_GetPositions_Proxy( - IMediaSeeking * This, - /* [out] */ LONGLONG *pCurrent, - /* [out] */ LONGLONG *pStop); - - -void __RPC_STUB IMediaSeeking_GetPositions_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_GetAvailable_Proxy( - IMediaSeeking * This, - /* [out] */ LONGLONG *pEarliest, - /* [out] */ LONGLONG *pLatest); - - -void __RPC_STUB IMediaSeeking_GetAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_SetRate_Proxy( - IMediaSeeking * This, - /* [in] */ double dRate); - - -void __RPC_STUB IMediaSeeking_SetRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_GetRate_Proxy( - IMediaSeeking * This, - /* [out] */ double *pdRate); - - -void __RPC_STUB IMediaSeeking_GetRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMediaSeeking_GetPreroll_Proxy( - IMediaSeeking * This, - /* [out] */ LONGLONG *pllPreroll); - - -void __RPC_STUB IMediaSeeking_GetPreroll_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaSeeking_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0130 */ -/* [local] */ - -typedef IMediaSeeking *PMEDIASEEKING; - -enum tagAM_MEDIAEVENT_FLAGS -{ - AM_MEDIAEVENT_NONOTIFY = 0x01 -}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -typedef /* [public][public] */ struct __MIDL___MIDL_itf_strmif_0130_0001 - { - CLSID Clsid; - LPWSTR Name; - } REGFILTER; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0130_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0130_v0_0_s_ifspec; - -#ifndef __IEnumRegFilters_INTERFACE_DEFINED__ -#define __IEnumRegFilters_INTERFACE_DEFINED__ - -/* interface IEnumRegFilters */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IEnumRegFilters; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868a4-0ad4-11ce-b03a-0020af0ba770") - IEnumRegFilters : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Next( - /* [in] */ ULONG cFilters, - /* [out] */ REGFILTER **apRegFilter, - /* [out] */ ULONG *pcFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - /* [in] */ ULONG cFilters) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IEnumRegFilters **ppEnum) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumRegFiltersVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumRegFilters * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumRegFilters * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumRegFilters * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumRegFilters * This, - /* [in] */ ULONG cFilters, - /* [out] */ REGFILTER **apRegFilter, - /* [out] */ ULONG *pcFetched); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumRegFilters * This, - /* [in] */ ULONG cFilters); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumRegFilters * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumRegFilters * This, - /* [out] */ IEnumRegFilters **ppEnum); - - END_INTERFACE - } IEnumRegFiltersVtbl; - - interface IEnumRegFilters - { - CONST_VTBL struct IEnumRegFiltersVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEnumRegFilters_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEnumRegFilters_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEnumRegFilters_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEnumRegFilters_Next(This,cFilters,apRegFilter,pcFetched) \ - (This)->lpVtbl -> Next(This,cFilters,apRegFilter,pcFetched) - -#define IEnumRegFilters_Skip(This,cFilters) \ - (This)->lpVtbl -> Skip(This,cFilters) - -#define IEnumRegFilters_Reset(This) \ - (This)->lpVtbl -> Reset(This) - -#define IEnumRegFilters_Clone(This,ppEnum) \ - (This)->lpVtbl -> Clone(This,ppEnum) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IEnumRegFilters_Next_Proxy( - IEnumRegFilters * This, - /* [in] */ ULONG cFilters, - /* [out] */ REGFILTER **apRegFilter, - /* [out] */ ULONG *pcFetched); - - -void __RPC_STUB IEnumRegFilters_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumRegFilters_Skip_Proxy( - IEnumRegFilters * This, - /* [in] */ ULONG cFilters); - - -void __RPC_STUB IEnumRegFilters_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumRegFilters_Reset_Proxy( - IEnumRegFilters * This); - - -void __RPC_STUB IEnumRegFilters_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumRegFilters_Clone_Proxy( - IEnumRegFilters * This, - /* [out] */ IEnumRegFilters **ppEnum); - - -void __RPC_STUB IEnumRegFilters_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEnumRegFilters_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0132 */ -/* [local] */ - -typedef IEnumRegFilters *PENUMREGFILTERS; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0132_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0132_v0_0_s_ifspec; - -#ifndef __IFilterMapper_INTERFACE_DEFINED__ -#define __IFilterMapper_INTERFACE_DEFINED__ - -/* interface IFilterMapper */ -/* [unique][uuid][object] */ - - -enum __MIDL_IFilterMapper_0001 - { MERIT_PREFERRED = 0x800000, - MERIT_NORMAL = 0x600000, - MERIT_UNLIKELY = 0x400000, - MERIT_DO_NOT_USE = 0x200000, - MERIT_SW_COMPRESSOR = 0x100000, - MERIT_HW_COMPRESSOR = 0x100050 - } ; - -EXTERN_C const IID IID_IFilterMapper; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868a3-0ad4-11ce-b03a-0020af0ba770") - IFilterMapper : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE RegisterFilter( - /* [in] */ CLSID clsid, - /* [in] */ LPCWSTR Name, - /* [in] */ DWORD dwMerit) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterFilterInstance( - /* [in] */ CLSID clsid, - /* [in] */ LPCWSTR Name, - /* [out] */ CLSID *MRId) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterPin( - /* [in] */ CLSID Filter, - /* [in] */ LPCWSTR Name, - /* [in] */ BOOL bRendered, - /* [in] */ BOOL bOutput, - /* [in] */ BOOL bZero, - /* [in] */ BOOL bMany, - /* [in] */ CLSID ConnectsToFilter, - /* [in] */ LPCWSTR ConnectsToPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterPinType( - /* [in] */ CLSID clsFilter, - /* [in] */ LPCWSTR strName, - /* [in] */ CLSID clsMajorType, - /* [in] */ CLSID clsSubType) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnregisterFilter( - /* [in] */ CLSID Filter) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnregisterFilterInstance( - /* [in] */ CLSID MRId) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnregisterPin( - /* [in] */ CLSID Filter, - /* [in] */ LPCWSTR Name) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumMatchingFilters( - /* [out] */ IEnumRegFilters **ppEnum, - /* [in] */ DWORD dwMerit, - /* [in] */ BOOL bInputNeeded, - /* [in] */ CLSID clsInMaj, - /* [in] */ CLSID clsInSub, - /* [in] */ BOOL bRender, - /* [in] */ BOOL bOututNeeded, - /* [in] */ CLSID clsOutMaj, - /* [in] */ CLSID clsOutSub) = 0; - - }; - -#else /* C style interface */ - - typedef struct IFilterMapperVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IFilterMapper * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IFilterMapper * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IFilterMapper * This); - - HRESULT ( STDMETHODCALLTYPE *RegisterFilter )( - IFilterMapper * This, - /* [in] */ CLSID clsid, - /* [in] */ LPCWSTR Name, - /* [in] */ DWORD dwMerit); - - HRESULT ( STDMETHODCALLTYPE *RegisterFilterInstance )( - IFilterMapper * This, - /* [in] */ CLSID clsid, - /* [in] */ LPCWSTR Name, - /* [out] */ CLSID *MRId); - - HRESULT ( STDMETHODCALLTYPE *RegisterPin )( - IFilterMapper * This, - /* [in] */ CLSID Filter, - /* [in] */ LPCWSTR Name, - /* [in] */ BOOL bRendered, - /* [in] */ BOOL bOutput, - /* [in] */ BOOL bZero, - /* [in] */ BOOL bMany, - /* [in] */ CLSID ConnectsToFilter, - /* [in] */ LPCWSTR ConnectsToPin); - - HRESULT ( STDMETHODCALLTYPE *RegisterPinType )( - IFilterMapper * This, - /* [in] */ CLSID clsFilter, - /* [in] */ LPCWSTR strName, - /* [in] */ CLSID clsMajorType, - /* [in] */ CLSID clsSubType); - - HRESULT ( STDMETHODCALLTYPE *UnregisterFilter )( - IFilterMapper * This, - /* [in] */ CLSID Filter); - - HRESULT ( STDMETHODCALLTYPE *UnregisterFilterInstance )( - IFilterMapper * This, - /* [in] */ CLSID MRId); - - HRESULT ( STDMETHODCALLTYPE *UnregisterPin )( - IFilterMapper * This, - /* [in] */ CLSID Filter, - /* [in] */ LPCWSTR Name); - - HRESULT ( STDMETHODCALLTYPE *EnumMatchingFilters )( - IFilterMapper * This, - /* [out] */ IEnumRegFilters **ppEnum, - /* [in] */ DWORD dwMerit, - /* [in] */ BOOL bInputNeeded, - /* [in] */ CLSID clsInMaj, - /* [in] */ CLSID clsInSub, - /* [in] */ BOOL bRender, - /* [in] */ BOOL bOututNeeded, - /* [in] */ CLSID clsOutMaj, - /* [in] */ CLSID clsOutSub); - - END_INTERFACE - } IFilterMapperVtbl; - - interface IFilterMapper - { - CONST_VTBL struct IFilterMapperVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IFilterMapper_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IFilterMapper_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IFilterMapper_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IFilterMapper_RegisterFilter(This,clsid,Name,dwMerit) \ - (This)->lpVtbl -> RegisterFilter(This,clsid,Name,dwMerit) - -#define IFilterMapper_RegisterFilterInstance(This,clsid,Name,MRId) \ - (This)->lpVtbl -> RegisterFilterInstance(This,clsid,Name,MRId) - -#define IFilterMapper_RegisterPin(This,Filter,Name,bRendered,bOutput,bZero,bMany,ConnectsToFilter,ConnectsToPin) \ - (This)->lpVtbl -> RegisterPin(This,Filter,Name,bRendered,bOutput,bZero,bMany,ConnectsToFilter,ConnectsToPin) - -#define IFilterMapper_RegisterPinType(This,clsFilter,strName,clsMajorType,clsSubType) \ - (This)->lpVtbl -> RegisterPinType(This,clsFilter,strName,clsMajorType,clsSubType) - -#define IFilterMapper_UnregisterFilter(This,Filter) \ - (This)->lpVtbl -> UnregisterFilter(This,Filter) - -#define IFilterMapper_UnregisterFilterInstance(This,MRId) \ - (This)->lpVtbl -> UnregisterFilterInstance(This,MRId) - -#define IFilterMapper_UnregisterPin(This,Filter,Name) \ - (This)->lpVtbl -> UnregisterPin(This,Filter,Name) - -#define IFilterMapper_EnumMatchingFilters(This,ppEnum,dwMerit,bInputNeeded,clsInMaj,clsInSub,bRender,bOututNeeded,clsOutMaj,clsOutSub) \ - (This)->lpVtbl -> EnumMatchingFilters(This,ppEnum,dwMerit,bInputNeeded,clsInMaj,clsInSub,bRender,bOututNeeded,clsOutMaj,clsOutSub) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IFilterMapper_RegisterFilter_Proxy( - IFilterMapper * This, - /* [in] */ CLSID clsid, - /* [in] */ LPCWSTR Name, - /* [in] */ DWORD dwMerit); - - -void __RPC_STUB IFilterMapper_RegisterFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterMapper_RegisterFilterInstance_Proxy( - IFilterMapper * This, - /* [in] */ CLSID clsid, - /* [in] */ LPCWSTR Name, - /* [out] */ CLSID *MRId); - - -void __RPC_STUB IFilterMapper_RegisterFilterInstance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterMapper_RegisterPin_Proxy( - IFilterMapper * This, - /* [in] */ CLSID Filter, - /* [in] */ LPCWSTR Name, - /* [in] */ BOOL bRendered, - /* [in] */ BOOL bOutput, - /* [in] */ BOOL bZero, - /* [in] */ BOOL bMany, - /* [in] */ CLSID ConnectsToFilter, - /* [in] */ LPCWSTR ConnectsToPin); - - -void __RPC_STUB IFilterMapper_RegisterPin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterMapper_RegisterPinType_Proxy( - IFilterMapper * This, - /* [in] */ CLSID clsFilter, - /* [in] */ LPCWSTR strName, - /* [in] */ CLSID clsMajorType, - /* [in] */ CLSID clsSubType); - - -void __RPC_STUB IFilterMapper_RegisterPinType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterMapper_UnregisterFilter_Proxy( - IFilterMapper * This, - /* [in] */ CLSID Filter); - - -void __RPC_STUB IFilterMapper_UnregisterFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterMapper_UnregisterFilterInstance_Proxy( - IFilterMapper * This, - /* [in] */ CLSID MRId); - - -void __RPC_STUB IFilterMapper_UnregisterFilterInstance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterMapper_UnregisterPin_Proxy( - IFilterMapper * This, - /* [in] */ CLSID Filter, - /* [in] */ LPCWSTR Name); - - -void __RPC_STUB IFilterMapper_UnregisterPin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterMapper_EnumMatchingFilters_Proxy( - IFilterMapper * This, - /* [out] */ IEnumRegFilters **ppEnum, - /* [in] */ DWORD dwMerit, - /* [in] */ BOOL bInputNeeded, - /* [in] */ CLSID clsInMaj, - /* [in] */ CLSID clsInSub, - /* [in] */ BOOL bRender, - /* [in] */ BOOL bOututNeeded, - /* [in] */ CLSID clsOutMaj, - /* [in] */ CLSID clsOutSub); - - -void __RPC_STUB IFilterMapper_EnumMatchingFilters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IFilterMapper_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0134 */ -/* [local] */ - -typedef /* [public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_strmif_0134_0001 - { - const CLSID *clsMajorType; - const CLSID *clsMinorType; - } REGPINTYPES; - -typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_strmif_0134_0002 - { - LPWSTR strName; - BOOL bRendered; - BOOL bOutput; - BOOL bZero; - BOOL bMany; - const CLSID *clsConnectsToFilter; - const WCHAR *strConnectsToPin; - UINT nMediaTypes; - const REGPINTYPES *lpMediaType; - } REGFILTERPINS; - -typedef /* [public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_strmif_0134_0003 - { - CLSID clsMedium; - DWORD dw1; - DWORD dw2; - } REGPINMEDIUM; - - -enum __MIDL___MIDL_itf_strmif_0134_0004 - { REG_PINFLAG_B_ZERO = 0x1, - REG_PINFLAG_B_RENDERER = 0x2, - REG_PINFLAG_B_MANY = 0x4, - REG_PINFLAG_B_OUTPUT = 0x8 - } ; -typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_strmif_0134_0005 - { - DWORD dwFlags; - UINT cInstances; - UINT nMediaTypes; - /* [size_is] */ const REGPINTYPES *lpMediaType; - UINT nMediums; - /* [size_is] */ const REGPINMEDIUM *lpMedium; - const CLSID *clsPinCategory; - } REGFILTERPINS2; - -typedef /* [public][public] */ struct __MIDL___MIDL_itf_strmif_0134_0006 - { - DWORD dwVersion; - DWORD dwMerit; - /* [switch_type][switch_is] */ union - { - /* [case()] */ struct - { - ULONG cPins; - /* [size_is] */ const REGFILTERPINS *rgPins; - } ; - /* [case()] */ struct - { - ULONG cPins2; - /* [size_is] */ const REGFILTERPINS2 *rgPins2; - } ; - /* [default] */ /* Empty union arm */ - } ; - } REGFILTER2; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0134_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0134_v0_0_s_ifspec; - -#ifndef __IFilterMapper2_INTERFACE_DEFINED__ -#define __IFilterMapper2_INTERFACE_DEFINED__ - -/* interface IFilterMapper2 */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IFilterMapper2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("b79bb0b0-33c1-11d1-abe1-00a0c905f375") - IFilterMapper2 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE CreateCategory( - /* [in] */ REFCLSID clsidCategory, - /* [in] */ DWORD dwCategoryMerit, - /* [in] */ LPCWSTR Description) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnregisterFilter( - /* [in] */ const CLSID *pclsidCategory, - /* [in] */ const OLECHAR *szInstance, - /* [in] */ REFCLSID Filter) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterFilter( - /* [in] */ REFCLSID clsidFilter, - /* [in] */ LPCWSTR Name, - /* [out][in] */ IMoniker **ppMoniker, - /* [in] */ const CLSID *pclsidCategory, - /* [in] */ const OLECHAR *szInstance, - /* [in] */ const REGFILTER2 *prf2) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumMatchingFilters( - /* [out] */ IEnumMoniker **ppEnum, - /* [in] */ DWORD dwFlags, - /* [in] */ BOOL bExactMatch, - /* [in] */ DWORD dwMerit, - /* [in] */ BOOL bInputNeeded, - /* [in] */ DWORD cInputTypes, - /* [size_is] */ const GUID *pInputTypes, - /* [in] */ const REGPINMEDIUM *pMedIn, - /* [in] */ const CLSID *pPinCategoryIn, - /* [in] */ BOOL bRender, - /* [in] */ BOOL bOutputNeeded, - /* [in] */ DWORD cOutputTypes, - /* [size_is] */ const GUID *pOutputTypes, - /* [in] */ const REGPINMEDIUM *pMedOut, - /* [in] */ const CLSID *pPinCategoryOut) = 0; - - }; - -#else /* C style interface */ - - typedef struct IFilterMapper2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IFilterMapper2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IFilterMapper2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IFilterMapper2 * This); - - HRESULT ( STDMETHODCALLTYPE *CreateCategory )( - IFilterMapper2 * This, - /* [in] */ REFCLSID clsidCategory, - /* [in] */ DWORD dwCategoryMerit, - /* [in] */ LPCWSTR Description); - - HRESULT ( STDMETHODCALLTYPE *UnregisterFilter )( - IFilterMapper2 * This, - /* [in] */ const CLSID *pclsidCategory, - /* [in] */ const OLECHAR *szInstance, - /* [in] */ REFCLSID Filter); - - HRESULT ( STDMETHODCALLTYPE *RegisterFilter )( - IFilterMapper2 * This, - /* [in] */ REFCLSID clsidFilter, - /* [in] */ LPCWSTR Name, - /* [out][in] */ IMoniker **ppMoniker, - /* [in] */ const CLSID *pclsidCategory, - /* [in] */ const OLECHAR *szInstance, - /* [in] */ const REGFILTER2 *prf2); - - HRESULT ( STDMETHODCALLTYPE *EnumMatchingFilters )( - IFilterMapper2 * This, - /* [out] */ IEnumMoniker **ppEnum, - /* [in] */ DWORD dwFlags, - /* [in] */ BOOL bExactMatch, - /* [in] */ DWORD dwMerit, - /* [in] */ BOOL bInputNeeded, - /* [in] */ DWORD cInputTypes, - /* [size_is] */ const GUID *pInputTypes, - /* [in] */ const REGPINMEDIUM *pMedIn, - /* [in] */ const CLSID *pPinCategoryIn, - /* [in] */ BOOL bRender, - /* [in] */ BOOL bOutputNeeded, - /* [in] */ DWORD cOutputTypes, - /* [size_is] */ const GUID *pOutputTypes, - /* [in] */ const REGPINMEDIUM *pMedOut, - /* [in] */ const CLSID *pPinCategoryOut); - - END_INTERFACE - } IFilterMapper2Vtbl; - - interface IFilterMapper2 - { - CONST_VTBL struct IFilterMapper2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IFilterMapper2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IFilterMapper2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IFilterMapper2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IFilterMapper2_CreateCategory(This,clsidCategory,dwCategoryMerit,Description) \ - (This)->lpVtbl -> CreateCategory(This,clsidCategory,dwCategoryMerit,Description) - -#define IFilterMapper2_UnregisterFilter(This,pclsidCategory,szInstance,Filter) \ - (This)->lpVtbl -> UnregisterFilter(This,pclsidCategory,szInstance,Filter) - -#define IFilterMapper2_RegisterFilter(This,clsidFilter,Name,ppMoniker,pclsidCategory,szInstance,prf2) \ - (This)->lpVtbl -> RegisterFilter(This,clsidFilter,Name,ppMoniker,pclsidCategory,szInstance,prf2) - -#define IFilterMapper2_EnumMatchingFilters(This,ppEnum,dwFlags,bExactMatch,dwMerit,bInputNeeded,cInputTypes,pInputTypes,pMedIn,pPinCategoryIn,bRender,bOutputNeeded,cOutputTypes,pOutputTypes,pMedOut,pPinCategoryOut) \ - (This)->lpVtbl -> EnumMatchingFilters(This,ppEnum,dwFlags,bExactMatch,dwMerit,bInputNeeded,cInputTypes,pInputTypes,pMedIn,pPinCategoryIn,bRender,bOutputNeeded,cOutputTypes,pOutputTypes,pMedOut,pPinCategoryOut) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IFilterMapper2_CreateCategory_Proxy( - IFilterMapper2 * This, - /* [in] */ REFCLSID clsidCategory, - /* [in] */ DWORD dwCategoryMerit, - /* [in] */ LPCWSTR Description); - - -void __RPC_STUB IFilterMapper2_CreateCategory_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterMapper2_UnregisterFilter_Proxy( - IFilterMapper2 * This, - /* [in] */ const CLSID *pclsidCategory, - /* [in] */ const OLECHAR *szInstance, - /* [in] */ REFCLSID Filter); - - -void __RPC_STUB IFilterMapper2_UnregisterFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterMapper2_RegisterFilter_Proxy( - IFilterMapper2 * This, - /* [in] */ REFCLSID clsidFilter, - /* [in] */ LPCWSTR Name, - /* [out][in] */ IMoniker **ppMoniker, - /* [in] */ const CLSID *pclsidCategory, - /* [in] */ const OLECHAR *szInstance, - /* [in] */ const REGFILTER2 *prf2); - - -void __RPC_STUB IFilterMapper2_RegisterFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterMapper2_EnumMatchingFilters_Proxy( - IFilterMapper2 * This, - /* [out] */ IEnumMoniker **ppEnum, - /* [in] */ DWORD dwFlags, - /* [in] */ BOOL bExactMatch, - /* [in] */ DWORD dwMerit, - /* [in] */ BOOL bInputNeeded, - /* [in] */ DWORD cInputTypes, - /* [size_is] */ const GUID *pInputTypes, - /* [in] */ const REGPINMEDIUM *pMedIn, - /* [in] */ const CLSID *pPinCategoryIn, - /* [in] */ BOOL bRender, - /* [in] */ BOOL bOutputNeeded, - /* [in] */ DWORD cOutputTypes, - /* [size_is] */ const GUID *pOutputTypes, - /* [in] */ const REGPINMEDIUM *pMedOut, - /* [in] */ const CLSID *pPinCategoryOut); - - -void __RPC_STUB IFilterMapper2_EnumMatchingFilters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IFilterMapper2_INTERFACE_DEFINED__ */ - - -#ifndef __IFilterMapper3_INTERFACE_DEFINED__ -#define __IFilterMapper3_INTERFACE_DEFINED__ - -/* interface IFilterMapper3 */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IFilterMapper3; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("b79bb0b1-33c1-11d1-abe1-00a0c905f375") - IFilterMapper3 : public IFilterMapper2 - { - public: - virtual HRESULT STDMETHODCALLTYPE GetICreateDevEnum( - /* [out] */ ICreateDevEnum **ppEnum) = 0; - - }; - -#else /* C style interface */ - - typedef struct IFilterMapper3Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IFilterMapper3 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IFilterMapper3 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IFilterMapper3 * This); - - HRESULT ( STDMETHODCALLTYPE *CreateCategory )( - IFilterMapper3 * This, - /* [in] */ REFCLSID clsidCategory, - /* [in] */ DWORD dwCategoryMerit, - /* [in] */ LPCWSTR Description); - - HRESULT ( STDMETHODCALLTYPE *UnregisterFilter )( - IFilterMapper3 * This, - /* [in] */ const CLSID *pclsidCategory, - /* [in] */ const OLECHAR *szInstance, - /* [in] */ REFCLSID Filter); - - HRESULT ( STDMETHODCALLTYPE *RegisterFilter )( - IFilterMapper3 * This, - /* [in] */ REFCLSID clsidFilter, - /* [in] */ LPCWSTR Name, - /* [out][in] */ IMoniker **ppMoniker, - /* [in] */ const CLSID *pclsidCategory, - /* [in] */ const OLECHAR *szInstance, - /* [in] */ const REGFILTER2 *prf2); - - HRESULT ( STDMETHODCALLTYPE *EnumMatchingFilters )( - IFilterMapper3 * This, - /* [out] */ IEnumMoniker **ppEnum, - /* [in] */ DWORD dwFlags, - /* [in] */ BOOL bExactMatch, - /* [in] */ DWORD dwMerit, - /* [in] */ BOOL bInputNeeded, - /* [in] */ DWORD cInputTypes, - /* [size_is] */ const GUID *pInputTypes, - /* [in] */ const REGPINMEDIUM *pMedIn, - /* [in] */ const CLSID *pPinCategoryIn, - /* [in] */ BOOL bRender, - /* [in] */ BOOL bOutputNeeded, - /* [in] */ DWORD cOutputTypes, - /* [size_is] */ const GUID *pOutputTypes, - /* [in] */ const REGPINMEDIUM *pMedOut, - /* [in] */ const CLSID *pPinCategoryOut); - - HRESULT ( STDMETHODCALLTYPE *GetICreateDevEnum )( - IFilterMapper3 * This, - /* [out] */ ICreateDevEnum **ppEnum); - - END_INTERFACE - } IFilterMapper3Vtbl; - - interface IFilterMapper3 - { - CONST_VTBL struct IFilterMapper3Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IFilterMapper3_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IFilterMapper3_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IFilterMapper3_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IFilterMapper3_CreateCategory(This,clsidCategory,dwCategoryMerit,Description) \ - (This)->lpVtbl -> CreateCategory(This,clsidCategory,dwCategoryMerit,Description) - -#define IFilterMapper3_UnregisterFilter(This,pclsidCategory,szInstance,Filter) \ - (This)->lpVtbl -> UnregisterFilter(This,pclsidCategory,szInstance,Filter) - -#define IFilterMapper3_RegisterFilter(This,clsidFilter,Name,ppMoniker,pclsidCategory,szInstance,prf2) \ - (This)->lpVtbl -> RegisterFilter(This,clsidFilter,Name,ppMoniker,pclsidCategory,szInstance,prf2) - -#define IFilterMapper3_EnumMatchingFilters(This,ppEnum,dwFlags,bExactMatch,dwMerit,bInputNeeded,cInputTypes,pInputTypes,pMedIn,pPinCategoryIn,bRender,bOutputNeeded,cOutputTypes,pOutputTypes,pMedOut,pPinCategoryOut) \ - (This)->lpVtbl -> EnumMatchingFilters(This,ppEnum,dwFlags,bExactMatch,dwMerit,bInputNeeded,cInputTypes,pInputTypes,pMedIn,pPinCategoryIn,bRender,bOutputNeeded,cOutputTypes,pOutputTypes,pMedOut,pPinCategoryOut) - - -#define IFilterMapper3_GetICreateDevEnum(This,ppEnum) \ - (This)->lpVtbl -> GetICreateDevEnum(This,ppEnum) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IFilterMapper3_GetICreateDevEnum_Proxy( - IFilterMapper3 * This, - /* [out] */ ICreateDevEnum **ppEnum); - - -void __RPC_STUB IFilterMapper3_GetICreateDevEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IFilterMapper3_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0137 */ -/* [local] */ - -typedef -enum tagQualityMessageType - { Famine = 0, - Flood = Famine + 1 - } QualityMessageType; - -typedef struct tagQuality - { - QualityMessageType Type; - long Proportion; - REFERENCE_TIME Late; - REFERENCE_TIME TimeStamp; - } Quality; - -typedef IQualityControl *PQUALITYCONTROL; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0137_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0137_v0_0_s_ifspec; - -#ifndef __IQualityControl_INTERFACE_DEFINED__ -#define __IQualityControl_INTERFACE_DEFINED__ - -/* interface IQualityControl */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IQualityControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868a5-0ad4-11ce-b03a-0020af0ba770") - IQualityControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Notify( - /* [in] */ IBaseFilter *pSelf, - /* [in] */ Quality q) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSink( - /* [in] */ IQualityControl *piqc) = 0; - - }; - -#else /* C style interface */ - - typedef struct IQualityControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IQualityControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IQualityControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IQualityControl * This); - - HRESULT ( STDMETHODCALLTYPE *Notify )( - IQualityControl * This, - /* [in] */ IBaseFilter *pSelf, - /* [in] */ Quality q); - - HRESULT ( STDMETHODCALLTYPE *SetSink )( - IQualityControl * This, - /* [in] */ IQualityControl *piqc); - - END_INTERFACE - } IQualityControlVtbl; - - interface IQualityControl - { - CONST_VTBL struct IQualityControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IQualityControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IQualityControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IQualityControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IQualityControl_Notify(This,pSelf,q) \ - (This)->lpVtbl -> Notify(This,pSelf,q) - -#define IQualityControl_SetSink(This,piqc) \ - (This)->lpVtbl -> SetSink(This,piqc) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IQualityControl_Notify_Proxy( - IQualityControl * This, - /* [in] */ IBaseFilter *pSelf, - /* [in] */ Quality q); - - -void __RPC_STUB IQualityControl_Notify_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IQualityControl_SetSink_Proxy( - IQualityControl * This, - /* [in] */ IQualityControl *piqc); - - -void __RPC_STUB IQualityControl_SetSink_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IQualityControl_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0138 */ -/* [local] */ - - -enum __MIDL___MIDL_itf_strmif_0138_0001 - { CK_NOCOLORKEY = 0, - CK_INDEX = 0x1, - CK_RGB = 0x2 - } ; -typedef struct tagCOLORKEY - { - DWORD KeyType; - DWORD PaletteIndex; - COLORREF LowColorValue; - COLORREF HighColorValue; - } COLORKEY; - - -enum __MIDL___MIDL_itf_strmif_0138_0002 - { ADVISE_NONE = 0, - ADVISE_CLIPPING = 0x1, - ADVISE_PALETTE = 0x2, - ADVISE_COLORKEY = 0x4, - ADVISE_POSITION = 0x8, - ADVISE_DISPLAY_CHANGE = 0x10 - } ; -#define ADVISE_ALL ( ADVISE_CLIPPING | ADVISE_PALETTE | ADVISE_COLORKEY | ADVISE_POSITION ) - -#define ADVISE_ALL2 ( ADVISE_ALL | ADVISE_DISPLAY_CHANGE ) - -#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; - -#endif - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0138_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0138_v0_0_s_ifspec; - -#ifndef __IOverlayNotify_INTERFACE_DEFINED__ -#define __IOverlayNotify_INTERFACE_DEFINED__ - -/* interface IOverlayNotify */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IOverlayNotify; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868a0-0ad4-11ce-b03a-0020af0ba770") - IOverlayNotify : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE OnPaletteChange( - /* [in] */ DWORD dwColors, - /* [in] */ const PALETTEENTRY *pPalette) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnClipChange( - /* [in] */ const RECT *pSourceRect, - /* [in] */ const RECT *pDestinationRect, - /* [in] */ const RGNDATA *pRgnData) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnColorKeyChange( - /* [in] */ const COLORKEY *pColorKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnPositionChange( - /* [in] */ const RECT *pSourceRect, - /* [in] */ const RECT *pDestinationRect) = 0; - - }; - -#else /* C style interface */ - - typedef struct IOverlayNotifyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IOverlayNotify * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IOverlayNotify * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IOverlayNotify * This); - - HRESULT ( STDMETHODCALLTYPE *OnPaletteChange )( - IOverlayNotify * This, - /* [in] */ DWORD dwColors, - /* [in] */ const PALETTEENTRY *pPalette); - - HRESULT ( STDMETHODCALLTYPE *OnClipChange )( - IOverlayNotify * This, - /* [in] */ const RECT *pSourceRect, - /* [in] */ const RECT *pDestinationRect, - /* [in] */ const RGNDATA *pRgnData); - - HRESULT ( STDMETHODCALLTYPE *OnColorKeyChange )( - IOverlayNotify * This, - /* [in] */ const COLORKEY *pColorKey); - - HRESULT ( STDMETHODCALLTYPE *OnPositionChange )( - IOverlayNotify * This, - /* [in] */ const RECT *pSourceRect, - /* [in] */ const RECT *pDestinationRect); - - END_INTERFACE - } IOverlayNotifyVtbl; - - interface IOverlayNotify - { - CONST_VTBL struct IOverlayNotifyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IOverlayNotify_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IOverlayNotify_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IOverlayNotify_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IOverlayNotify_OnPaletteChange(This,dwColors,pPalette) \ - (This)->lpVtbl -> OnPaletteChange(This,dwColors,pPalette) - -#define IOverlayNotify_OnClipChange(This,pSourceRect,pDestinationRect,pRgnData) \ - (This)->lpVtbl -> OnClipChange(This,pSourceRect,pDestinationRect,pRgnData) - -#define IOverlayNotify_OnColorKeyChange(This,pColorKey) \ - (This)->lpVtbl -> OnColorKeyChange(This,pColorKey) - -#define IOverlayNotify_OnPositionChange(This,pSourceRect,pDestinationRect) \ - (This)->lpVtbl -> OnPositionChange(This,pSourceRect,pDestinationRect) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IOverlayNotify_OnPaletteChange_Proxy( - IOverlayNotify * This, - /* [in] */ DWORD dwColors, - /* [in] */ const PALETTEENTRY *pPalette); - - -void __RPC_STUB IOverlayNotify_OnPaletteChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IOverlayNotify_OnClipChange_Proxy( - IOverlayNotify * This, - /* [in] */ const RECT *pSourceRect, - /* [in] */ const RECT *pDestinationRect, - /* [in] */ const RGNDATA *pRgnData); - - -void __RPC_STUB IOverlayNotify_OnClipChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IOverlayNotify_OnColorKeyChange_Proxy( - IOverlayNotify * This, - /* [in] */ const COLORKEY *pColorKey); - - -void __RPC_STUB IOverlayNotify_OnColorKeyChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IOverlayNotify_OnPositionChange_Proxy( - IOverlayNotify * This, - /* [in] */ const RECT *pSourceRect, - /* [in] */ const RECT *pDestinationRect); - - -void __RPC_STUB IOverlayNotify_OnPositionChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IOverlayNotify_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0139 */ -/* [local] */ - -typedef IOverlayNotify *POVERLAYNOTIFY; - -#if !defined(HMONITOR_DECLARED) && !defined(HMONITOR) && (WINVER < 0x0500) -#define HMONITOR_DECLARED -#if 0 -typedef HANDLE HMONITOR; - -#endif -DECLARE_HANDLE(HMONITOR); -#endif - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0139_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0139_v0_0_s_ifspec; - -#ifndef __IOverlayNotify2_INTERFACE_DEFINED__ -#define __IOverlayNotify2_INTERFACE_DEFINED__ - -/* interface IOverlayNotify2 */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IOverlayNotify2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("680EFA10-D535-11D1-87C8-00A0C9223196") - IOverlayNotify2 : public IOverlayNotify - { - public: - virtual HRESULT STDMETHODCALLTYPE OnDisplayChange( - HMONITOR hMonitor) = 0; - - }; - -#else /* C style interface */ - - typedef struct IOverlayNotify2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IOverlayNotify2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IOverlayNotify2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IOverlayNotify2 * This); - - HRESULT ( STDMETHODCALLTYPE *OnPaletteChange )( - IOverlayNotify2 * This, - /* [in] */ DWORD dwColors, - /* [in] */ const PALETTEENTRY *pPalette); - - HRESULT ( STDMETHODCALLTYPE *OnClipChange )( - IOverlayNotify2 * This, - /* [in] */ const RECT *pSourceRect, - /* [in] */ const RECT *pDestinationRect, - /* [in] */ const RGNDATA *pRgnData); - - HRESULT ( STDMETHODCALLTYPE *OnColorKeyChange )( - IOverlayNotify2 * This, - /* [in] */ const COLORKEY *pColorKey); - - HRESULT ( STDMETHODCALLTYPE *OnPositionChange )( - IOverlayNotify2 * This, - /* [in] */ const RECT *pSourceRect, - /* [in] */ const RECT *pDestinationRect); - - HRESULT ( STDMETHODCALLTYPE *OnDisplayChange )( - IOverlayNotify2 * This, - HMONITOR hMonitor); - - END_INTERFACE - } IOverlayNotify2Vtbl; - - interface IOverlayNotify2 - { - CONST_VTBL struct IOverlayNotify2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IOverlayNotify2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IOverlayNotify2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IOverlayNotify2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IOverlayNotify2_OnPaletteChange(This,dwColors,pPalette) \ - (This)->lpVtbl -> OnPaletteChange(This,dwColors,pPalette) - -#define IOverlayNotify2_OnClipChange(This,pSourceRect,pDestinationRect,pRgnData) \ - (This)->lpVtbl -> OnClipChange(This,pSourceRect,pDestinationRect,pRgnData) - -#define IOverlayNotify2_OnColorKeyChange(This,pColorKey) \ - (This)->lpVtbl -> OnColorKeyChange(This,pColorKey) - -#define IOverlayNotify2_OnPositionChange(This,pSourceRect,pDestinationRect) \ - (This)->lpVtbl -> OnPositionChange(This,pSourceRect,pDestinationRect) - - -#define IOverlayNotify2_OnDisplayChange(This,hMonitor) \ - (This)->lpVtbl -> OnDisplayChange(This,hMonitor) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IOverlayNotify2_OnDisplayChange_Proxy( - IOverlayNotify2 * This, - HMONITOR hMonitor); - - -void __RPC_STUB IOverlayNotify2_OnDisplayChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IOverlayNotify2_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0140 */ -/* [local] */ - -typedef IOverlayNotify2 *POVERLAYNOTIFY2; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0140_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0140_v0_0_s_ifspec; - -#ifndef __IOverlay_INTERFACE_DEFINED__ -#define __IOverlay_INTERFACE_DEFINED__ - -/* interface IOverlay */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IOverlay; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868a1-0ad4-11ce-b03a-0020af0ba770") - IOverlay : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetPalette( - /* [out] */ DWORD *pdwColors, - /* [out] */ PALETTEENTRY **ppPalette) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetPalette( - /* [in] */ DWORD dwColors, - /* [in] */ PALETTEENTRY *pPalette) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultColorKey( - /* [out] */ COLORKEY *pColorKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetColorKey( - /* [out] */ COLORKEY *pColorKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetColorKey( - /* [out][in] */ COLORKEY *pColorKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetWindowHandle( - /* [out] */ HWND *pHwnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetClipList( - /* [out] */ RECT *pSourceRect, - /* [out] */ RECT *pDestinationRect, - /* [out] */ RGNDATA **ppRgnData) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVideoPosition( - /* [out] */ RECT *pSourceRect, - /* [out] */ RECT *pDestinationRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE Advise( - /* [in] */ IOverlayNotify *pOverlayNotify, - /* [in] */ DWORD dwInterests) = 0; - - virtual HRESULT STDMETHODCALLTYPE Unadvise( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IOverlayVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IOverlay * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IOverlay * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IOverlay * This); - - HRESULT ( STDMETHODCALLTYPE *GetPalette )( - IOverlay * This, - /* [out] */ DWORD *pdwColors, - /* [out] */ PALETTEENTRY **ppPalette); - - HRESULT ( STDMETHODCALLTYPE *SetPalette )( - IOverlay * This, - /* [in] */ DWORD dwColors, - /* [in] */ PALETTEENTRY *pPalette); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultColorKey )( - IOverlay * This, - /* [out] */ COLORKEY *pColorKey); - - HRESULT ( STDMETHODCALLTYPE *GetColorKey )( - IOverlay * This, - /* [out] */ COLORKEY *pColorKey); - - HRESULT ( STDMETHODCALLTYPE *SetColorKey )( - IOverlay * This, - /* [out][in] */ COLORKEY *pColorKey); - - HRESULT ( STDMETHODCALLTYPE *GetWindowHandle )( - IOverlay * This, - /* [out] */ HWND *pHwnd); - - HRESULT ( STDMETHODCALLTYPE *GetClipList )( - IOverlay * This, - /* [out] */ RECT *pSourceRect, - /* [out] */ RECT *pDestinationRect, - /* [out] */ RGNDATA **ppRgnData); - - HRESULT ( STDMETHODCALLTYPE *GetVideoPosition )( - IOverlay * This, - /* [out] */ RECT *pSourceRect, - /* [out] */ RECT *pDestinationRect); - - HRESULT ( STDMETHODCALLTYPE *Advise )( - IOverlay * This, - /* [in] */ IOverlayNotify *pOverlayNotify, - /* [in] */ DWORD dwInterests); - - HRESULT ( STDMETHODCALLTYPE *Unadvise )( - IOverlay * This); - - END_INTERFACE - } IOverlayVtbl; - - interface IOverlay - { - CONST_VTBL struct IOverlayVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IOverlay_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IOverlay_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IOverlay_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IOverlay_GetPalette(This,pdwColors,ppPalette) \ - (This)->lpVtbl -> GetPalette(This,pdwColors,ppPalette) - -#define IOverlay_SetPalette(This,dwColors,pPalette) \ - (This)->lpVtbl -> SetPalette(This,dwColors,pPalette) - -#define IOverlay_GetDefaultColorKey(This,pColorKey) \ - (This)->lpVtbl -> GetDefaultColorKey(This,pColorKey) - -#define IOverlay_GetColorKey(This,pColorKey) \ - (This)->lpVtbl -> GetColorKey(This,pColorKey) - -#define IOverlay_SetColorKey(This,pColorKey) \ - (This)->lpVtbl -> SetColorKey(This,pColorKey) - -#define IOverlay_GetWindowHandle(This,pHwnd) \ - (This)->lpVtbl -> GetWindowHandle(This,pHwnd) - -#define IOverlay_GetClipList(This,pSourceRect,pDestinationRect,ppRgnData) \ - (This)->lpVtbl -> GetClipList(This,pSourceRect,pDestinationRect,ppRgnData) - -#define IOverlay_GetVideoPosition(This,pSourceRect,pDestinationRect) \ - (This)->lpVtbl -> GetVideoPosition(This,pSourceRect,pDestinationRect) - -#define IOverlay_Advise(This,pOverlayNotify,dwInterests) \ - (This)->lpVtbl -> Advise(This,pOverlayNotify,dwInterests) - -#define IOverlay_Unadvise(This) \ - (This)->lpVtbl -> Unadvise(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IOverlay_GetPalette_Proxy( - IOverlay * This, - /* [out] */ DWORD *pdwColors, - /* [out] */ PALETTEENTRY **ppPalette); - - -void __RPC_STUB IOverlay_GetPalette_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IOverlay_SetPalette_Proxy( - IOverlay * This, - /* [in] */ DWORD dwColors, - /* [in] */ PALETTEENTRY *pPalette); - - -void __RPC_STUB IOverlay_SetPalette_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IOverlay_GetDefaultColorKey_Proxy( - IOverlay * This, - /* [out] */ COLORKEY *pColorKey); - - -void __RPC_STUB IOverlay_GetDefaultColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IOverlay_GetColorKey_Proxy( - IOverlay * This, - /* [out] */ COLORKEY *pColorKey); - - -void __RPC_STUB IOverlay_GetColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IOverlay_SetColorKey_Proxy( - IOverlay * This, - /* [out][in] */ COLORKEY *pColorKey); - - -void __RPC_STUB IOverlay_SetColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IOverlay_GetWindowHandle_Proxy( - IOverlay * This, - /* [out] */ HWND *pHwnd); - - -void __RPC_STUB IOverlay_GetWindowHandle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IOverlay_GetClipList_Proxy( - IOverlay * This, - /* [out] */ RECT *pSourceRect, - /* [out] */ RECT *pDestinationRect, - /* [out] */ RGNDATA **ppRgnData); - - -void __RPC_STUB IOverlay_GetClipList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IOverlay_GetVideoPosition_Proxy( - IOverlay * This, - /* [out] */ RECT *pSourceRect, - /* [out] */ RECT *pDestinationRect); - - -void __RPC_STUB IOverlay_GetVideoPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IOverlay_Advise_Proxy( - IOverlay * This, - /* [in] */ IOverlayNotify *pOverlayNotify, - /* [in] */ DWORD dwInterests); - - -void __RPC_STUB IOverlay_Advise_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IOverlay_Unadvise_Proxy( - IOverlay * This); - - -void __RPC_STUB IOverlay_Unadvise_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IOverlay_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0141 */ -/* [local] */ - -typedef IOverlay *POVERLAY; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0141_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0141_v0_0_s_ifspec; - -#ifndef __IMediaEventSink_INTERFACE_DEFINED__ -#define __IMediaEventSink_INTERFACE_DEFINED__ - -/* interface IMediaEventSink */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IMediaEventSink; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868a2-0ad4-11ce-b03a-0020af0ba770") - IMediaEventSink : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Notify( - /* [in] */ long EventCode, - /* [in] */ LONG_PTR EventParam1, - /* [in] */ LONG_PTR EventParam2) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaEventSinkVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaEventSink * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaEventSink * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaEventSink * This); - - HRESULT ( STDMETHODCALLTYPE *Notify )( - IMediaEventSink * This, - /* [in] */ long EventCode, - /* [in] */ LONG_PTR EventParam1, - /* [in] */ LONG_PTR EventParam2); - - END_INTERFACE - } IMediaEventSinkVtbl; - - interface IMediaEventSink - { - CONST_VTBL struct IMediaEventSinkVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaEventSink_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaEventSink_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaEventSink_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaEventSink_Notify(This,EventCode,EventParam1,EventParam2) \ - (This)->lpVtbl -> Notify(This,EventCode,EventParam1,EventParam2) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaEventSink_Notify_Proxy( - IMediaEventSink * This, - /* [in] */ long EventCode, - /* [in] */ LONG_PTR EventParam1, - /* [in] */ LONG_PTR EventParam2); - - -void __RPC_STUB IMediaEventSink_Notify_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaEventSink_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0142 */ -/* [local] */ - -typedef IMediaEventSink *PMEDIAEVENTSINK; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0142_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0142_v0_0_s_ifspec; - -#ifndef __IFileSourceFilter_INTERFACE_DEFINED__ -#define __IFileSourceFilter_INTERFACE_DEFINED__ - -/* interface IFileSourceFilter */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IFileSourceFilter; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868a6-0ad4-11ce-b03a-0020af0ba770") - IFileSourceFilter : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Load( - /* [in] */ LPCOLESTR pszFileName, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurFile( - /* [out] */ LPOLESTR *ppszFileName, - /* [out] */ AM_MEDIA_TYPE *pmt) = 0; - - }; - -#else /* C style interface */ - - typedef struct IFileSourceFilterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IFileSourceFilter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IFileSourceFilter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IFileSourceFilter * This); - - HRESULT ( STDMETHODCALLTYPE *Load )( - IFileSourceFilter * This, - /* [in] */ LPCOLESTR pszFileName, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *GetCurFile )( - IFileSourceFilter * This, - /* [out] */ LPOLESTR *ppszFileName, - /* [out] */ AM_MEDIA_TYPE *pmt); - - END_INTERFACE - } IFileSourceFilterVtbl; - - interface IFileSourceFilter - { - CONST_VTBL struct IFileSourceFilterVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IFileSourceFilter_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IFileSourceFilter_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IFileSourceFilter_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IFileSourceFilter_Load(This,pszFileName,pmt) \ - (This)->lpVtbl -> Load(This,pszFileName,pmt) - -#define IFileSourceFilter_GetCurFile(This,ppszFileName,pmt) \ - (This)->lpVtbl -> GetCurFile(This,ppszFileName,pmt) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IFileSourceFilter_Load_Proxy( - IFileSourceFilter * This, - /* [in] */ LPCOLESTR pszFileName, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IFileSourceFilter_Load_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFileSourceFilter_GetCurFile_Proxy( - IFileSourceFilter * This, - /* [out] */ LPOLESTR *ppszFileName, - /* [out] */ AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IFileSourceFilter_GetCurFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IFileSourceFilter_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0143 */ -/* [local] */ - -typedef IFileSourceFilter *PFILTERFILESOURCE; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0143_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0143_v0_0_s_ifspec; - -#ifndef __IFileSinkFilter_INTERFACE_DEFINED__ -#define __IFileSinkFilter_INTERFACE_DEFINED__ - -/* interface IFileSinkFilter */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IFileSinkFilter; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("a2104830-7c70-11cf-8bce-00aa00a3f1a6") - IFileSinkFilter : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetFileName( - /* [in] */ LPCOLESTR pszFileName, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurFile( - /* [out] */ LPOLESTR *ppszFileName, - /* [out] */ AM_MEDIA_TYPE *pmt) = 0; - - }; - -#else /* C style interface */ - - typedef struct IFileSinkFilterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IFileSinkFilter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IFileSinkFilter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IFileSinkFilter * This); - - HRESULT ( STDMETHODCALLTYPE *SetFileName )( - IFileSinkFilter * This, - /* [in] */ LPCOLESTR pszFileName, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *GetCurFile )( - IFileSinkFilter * This, - /* [out] */ LPOLESTR *ppszFileName, - /* [out] */ AM_MEDIA_TYPE *pmt); - - END_INTERFACE - } IFileSinkFilterVtbl; - - interface IFileSinkFilter - { - CONST_VTBL struct IFileSinkFilterVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IFileSinkFilter_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IFileSinkFilter_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IFileSinkFilter_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IFileSinkFilter_SetFileName(This,pszFileName,pmt) \ - (This)->lpVtbl -> SetFileName(This,pszFileName,pmt) - -#define IFileSinkFilter_GetCurFile(This,ppszFileName,pmt) \ - (This)->lpVtbl -> GetCurFile(This,ppszFileName,pmt) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IFileSinkFilter_SetFileName_Proxy( - IFileSinkFilter * This, - /* [in] */ LPCOLESTR pszFileName, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IFileSinkFilter_SetFileName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFileSinkFilter_GetCurFile_Proxy( - IFileSinkFilter * This, - /* [out] */ LPOLESTR *ppszFileName, - /* [out] */ AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IFileSinkFilter_GetCurFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IFileSinkFilter_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0144 */ -/* [local] */ - -typedef IFileSinkFilter *PFILTERFILESINK; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0144_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0144_v0_0_s_ifspec; - -#ifndef __IFileSinkFilter2_INTERFACE_DEFINED__ -#define __IFileSinkFilter2_INTERFACE_DEFINED__ - -/* interface IFileSinkFilter2 */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IFileSinkFilter2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("00855B90-CE1B-11d0-BD4F-00A0C911CE86") - IFileSinkFilter2 : public IFileSinkFilter - { - public: - virtual HRESULT STDMETHODCALLTYPE SetMode( - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMode( - /* [out] */ DWORD *pdwFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IFileSinkFilter2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IFileSinkFilter2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IFileSinkFilter2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IFileSinkFilter2 * This); - - HRESULT ( STDMETHODCALLTYPE *SetFileName )( - IFileSinkFilter2 * This, - /* [in] */ LPCOLESTR pszFileName, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *GetCurFile )( - IFileSinkFilter2 * This, - /* [out] */ LPOLESTR *ppszFileName, - /* [out] */ AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *SetMode )( - IFileSinkFilter2 * This, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *GetMode )( - IFileSinkFilter2 * This, - /* [out] */ DWORD *pdwFlags); - - END_INTERFACE - } IFileSinkFilter2Vtbl; - - interface IFileSinkFilter2 - { - CONST_VTBL struct IFileSinkFilter2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IFileSinkFilter2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IFileSinkFilter2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IFileSinkFilter2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IFileSinkFilter2_SetFileName(This,pszFileName,pmt) \ - (This)->lpVtbl -> SetFileName(This,pszFileName,pmt) - -#define IFileSinkFilter2_GetCurFile(This,ppszFileName,pmt) \ - (This)->lpVtbl -> GetCurFile(This,ppszFileName,pmt) - - -#define IFileSinkFilter2_SetMode(This,dwFlags) \ - (This)->lpVtbl -> SetMode(This,dwFlags) - -#define IFileSinkFilter2_GetMode(This,pdwFlags) \ - (This)->lpVtbl -> GetMode(This,pdwFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IFileSinkFilter2_SetMode_Proxy( - IFileSinkFilter2 * This, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IFileSinkFilter2_SetMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFileSinkFilter2_GetMode_Proxy( - IFileSinkFilter2 * This, - /* [out] */ DWORD *pdwFlags); - - -void __RPC_STUB IFileSinkFilter2_GetMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IFileSinkFilter2_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0145 */ -/* [local] */ - -typedef IFileSinkFilter2 *PFILESINKFILTER2; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0145_0001 - { AM_FILE_OVERWRITE = 0x1 - } AM_FILESINK_FLAGS; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0145_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0145_v0_0_s_ifspec; - -#ifndef __IGraphBuilder_INTERFACE_DEFINED__ -#define __IGraphBuilder_INTERFACE_DEFINED__ - -/* interface IGraphBuilder */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IGraphBuilder; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868a9-0ad4-11ce-b03a-0020af0ba770") - IGraphBuilder : public IFilterGraph - { - public: - virtual HRESULT STDMETHODCALLTYPE Connect( - /* [in] */ IPin *ppinOut, - /* [in] */ IPin *ppinIn) = 0; - - virtual HRESULT STDMETHODCALLTYPE Render( - /* [in] */ IPin *ppinOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE RenderFile( - /* [in] */ LPCWSTR lpcwstrFile, - /* [unique][in] */ LPCWSTR lpcwstrPlayList) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddSourceFilter( - /* [in] */ LPCWSTR lpcwstrFileName, - /* [unique][in] */ LPCWSTR lpcwstrFilterName, - /* [out] */ IBaseFilter **ppFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetLogFile( - /* [in] */ DWORD_PTR hFile) = 0; - - virtual HRESULT STDMETHODCALLTYPE Abort( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE ShouldOperationContinue( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IGraphBuilderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IGraphBuilder * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IGraphBuilder * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IGraphBuilder * This); - - HRESULT ( STDMETHODCALLTYPE *AddFilter )( - IGraphBuilder * This, - /* [in] */ IBaseFilter *pFilter, - /* [string][in] */ LPCWSTR pName); - - HRESULT ( STDMETHODCALLTYPE *RemoveFilter )( - IGraphBuilder * This, - /* [in] */ IBaseFilter *pFilter); - - HRESULT ( STDMETHODCALLTYPE *EnumFilters )( - IGraphBuilder * This, - /* [out] */ IEnumFilters **ppEnum); - - HRESULT ( STDMETHODCALLTYPE *FindFilterByName )( - IGraphBuilder * This, - /* [string][in] */ LPCWSTR pName, - /* [out] */ IBaseFilter **ppFilter); - - HRESULT ( STDMETHODCALLTYPE *ConnectDirect )( - IGraphBuilder * This, - /* [in] */ IPin *ppinOut, - /* [in] */ IPin *ppinIn, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *Reconnect )( - IGraphBuilder * This, - /* [in] */ IPin *ppin); - - HRESULT ( STDMETHODCALLTYPE *Disconnect )( - IGraphBuilder * This, - /* [in] */ IPin *ppin); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultSyncSource )( - IGraphBuilder * This); - - HRESULT ( STDMETHODCALLTYPE *Connect )( - IGraphBuilder * This, - /* [in] */ IPin *ppinOut, - /* [in] */ IPin *ppinIn); - - HRESULT ( STDMETHODCALLTYPE *Render )( - IGraphBuilder * This, - /* [in] */ IPin *ppinOut); - - HRESULT ( STDMETHODCALLTYPE *RenderFile )( - IGraphBuilder * This, - /* [in] */ LPCWSTR lpcwstrFile, - /* [unique][in] */ LPCWSTR lpcwstrPlayList); - - HRESULT ( STDMETHODCALLTYPE *AddSourceFilter )( - IGraphBuilder * This, - /* [in] */ LPCWSTR lpcwstrFileName, - /* [unique][in] */ LPCWSTR lpcwstrFilterName, - /* [out] */ IBaseFilter **ppFilter); - - HRESULT ( STDMETHODCALLTYPE *SetLogFile )( - IGraphBuilder * This, - /* [in] */ DWORD_PTR hFile); - - HRESULT ( STDMETHODCALLTYPE *Abort )( - IGraphBuilder * This); - - HRESULT ( STDMETHODCALLTYPE *ShouldOperationContinue )( - IGraphBuilder * This); - - END_INTERFACE - } IGraphBuilderVtbl; - - interface IGraphBuilder - { - CONST_VTBL struct IGraphBuilderVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IGraphBuilder_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IGraphBuilder_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IGraphBuilder_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IGraphBuilder_AddFilter(This,pFilter,pName) \ - (This)->lpVtbl -> AddFilter(This,pFilter,pName) - -#define IGraphBuilder_RemoveFilter(This,pFilter) \ - (This)->lpVtbl -> RemoveFilter(This,pFilter) - -#define IGraphBuilder_EnumFilters(This,ppEnum) \ - (This)->lpVtbl -> EnumFilters(This,ppEnum) - -#define IGraphBuilder_FindFilterByName(This,pName,ppFilter) \ - (This)->lpVtbl -> FindFilterByName(This,pName,ppFilter) - -#define IGraphBuilder_ConnectDirect(This,ppinOut,ppinIn,pmt) \ - (This)->lpVtbl -> ConnectDirect(This,ppinOut,ppinIn,pmt) - -#define IGraphBuilder_Reconnect(This,ppin) \ - (This)->lpVtbl -> Reconnect(This,ppin) - -#define IGraphBuilder_Disconnect(This,ppin) \ - (This)->lpVtbl -> Disconnect(This,ppin) - -#define IGraphBuilder_SetDefaultSyncSource(This) \ - (This)->lpVtbl -> SetDefaultSyncSource(This) - - -#define IGraphBuilder_Connect(This,ppinOut,ppinIn) \ - (This)->lpVtbl -> Connect(This,ppinOut,ppinIn) - -#define IGraphBuilder_Render(This,ppinOut) \ - (This)->lpVtbl -> Render(This,ppinOut) - -#define IGraphBuilder_RenderFile(This,lpcwstrFile,lpcwstrPlayList) \ - (This)->lpVtbl -> RenderFile(This,lpcwstrFile,lpcwstrPlayList) - -#define IGraphBuilder_AddSourceFilter(This,lpcwstrFileName,lpcwstrFilterName,ppFilter) \ - (This)->lpVtbl -> AddSourceFilter(This,lpcwstrFileName,lpcwstrFilterName,ppFilter) - -#define IGraphBuilder_SetLogFile(This,hFile) \ - (This)->lpVtbl -> SetLogFile(This,hFile) - -#define IGraphBuilder_Abort(This) \ - (This)->lpVtbl -> Abort(This) - -#define IGraphBuilder_ShouldOperationContinue(This) \ - (This)->lpVtbl -> ShouldOperationContinue(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IGraphBuilder_Connect_Proxy( - IGraphBuilder * This, - /* [in] */ IPin *ppinOut, - /* [in] */ IPin *ppinIn); - - -void __RPC_STUB IGraphBuilder_Connect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphBuilder_Render_Proxy( - IGraphBuilder * This, - /* [in] */ IPin *ppinOut); - - -void __RPC_STUB IGraphBuilder_Render_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphBuilder_RenderFile_Proxy( - IGraphBuilder * This, - /* [in] */ LPCWSTR lpcwstrFile, - /* [unique][in] */ LPCWSTR lpcwstrPlayList); - - -void __RPC_STUB IGraphBuilder_RenderFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphBuilder_AddSourceFilter_Proxy( - IGraphBuilder * This, - /* [in] */ LPCWSTR lpcwstrFileName, - /* [unique][in] */ LPCWSTR lpcwstrFilterName, - /* [out] */ IBaseFilter **ppFilter); - - -void __RPC_STUB IGraphBuilder_AddSourceFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphBuilder_SetLogFile_Proxy( - IGraphBuilder * This, - /* [in] */ DWORD_PTR hFile); - - -void __RPC_STUB IGraphBuilder_SetLogFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphBuilder_Abort_Proxy( - IGraphBuilder * This); - - -void __RPC_STUB IGraphBuilder_Abort_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphBuilder_ShouldOperationContinue_Proxy( - IGraphBuilder * This); - - -void __RPC_STUB IGraphBuilder_ShouldOperationContinue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IGraphBuilder_INTERFACE_DEFINED__ */ - - -#ifndef __ICaptureGraphBuilder_INTERFACE_DEFINED__ -#define __ICaptureGraphBuilder_INTERFACE_DEFINED__ - -/* interface ICaptureGraphBuilder */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_ICaptureGraphBuilder; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("bf87b6e0-8c27-11d0-b3f0-00aa003761c5") - ICaptureGraphBuilder : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetFiltergraph( - /* [in] */ IGraphBuilder *pfg) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFiltergraph( - /* [out] */ IGraphBuilder **ppfg) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOutputFileName( - /* [in] */ const GUID *pType, - /* [in] */ LPCOLESTR lpstrFile, - /* [out] */ IBaseFilter **ppf, - /* [out] */ IFileSinkFilter **ppSink) = 0; - - virtual /* [local] */ HRESULT STDMETHODCALLTYPE FindInterface( - /* [unique][in] */ const GUID *pCategory, - /* [in] */ IBaseFilter *pf, - /* [in] */ REFIID riid, - /* [out] */ void **ppint) = 0; - - virtual HRESULT STDMETHODCALLTYPE RenderStream( - /* [in] */ const GUID *pCategory, - /* [in] */ IUnknown *pSource, - /* [in] */ IBaseFilter *pfCompressor, - /* [in] */ IBaseFilter *pfRenderer) = 0; - - virtual HRESULT STDMETHODCALLTYPE ControlStream( - /* [in] */ const GUID *pCategory, - /* [in] */ IBaseFilter *pFilter, - /* [in] */ REFERENCE_TIME *pstart, - /* [in] */ REFERENCE_TIME *pstop, - /* [in] */ WORD wStartCookie, - /* [in] */ WORD wStopCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE AllocCapFile( - /* [in] */ LPCOLESTR lpstr, - /* [in] */ DWORDLONG dwlSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE CopyCaptureFile( - /* [in] */ LPOLESTR lpwstrOld, - /* [in] */ LPOLESTR lpwstrNew, - /* [in] */ int fAllowEscAbort, - /* [in] */ IAMCopyCaptureFileProgress *pCallback) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICaptureGraphBuilderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICaptureGraphBuilder * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICaptureGraphBuilder * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICaptureGraphBuilder * This); - - HRESULT ( STDMETHODCALLTYPE *SetFiltergraph )( - ICaptureGraphBuilder * This, - /* [in] */ IGraphBuilder *pfg); - - HRESULT ( STDMETHODCALLTYPE *GetFiltergraph )( - ICaptureGraphBuilder * This, - /* [out] */ IGraphBuilder **ppfg); - - HRESULT ( STDMETHODCALLTYPE *SetOutputFileName )( - ICaptureGraphBuilder * This, - /* [in] */ const GUID *pType, - /* [in] */ LPCOLESTR lpstrFile, - /* [out] */ IBaseFilter **ppf, - /* [out] */ IFileSinkFilter **ppSink); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *FindInterface )( - ICaptureGraphBuilder * This, - /* [unique][in] */ const GUID *pCategory, - /* [in] */ IBaseFilter *pf, - /* [in] */ REFIID riid, - /* [out] */ void **ppint); - - HRESULT ( STDMETHODCALLTYPE *RenderStream )( - ICaptureGraphBuilder * This, - /* [in] */ const GUID *pCategory, - /* [in] */ IUnknown *pSource, - /* [in] */ IBaseFilter *pfCompressor, - /* [in] */ IBaseFilter *pfRenderer); - - HRESULT ( STDMETHODCALLTYPE *ControlStream )( - ICaptureGraphBuilder * This, - /* [in] */ const GUID *pCategory, - /* [in] */ IBaseFilter *pFilter, - /* [in] */ REFERENCE_TIME *pstart, - /* [in] */ REFERENCE_TIME *pstop, - /* [in] */ WORD wStartCookie, - /* [in] */ WORD wStopCookie); - - HRESULT ( STDMETHODCALLTYPE *AllocCapFile )( - ICaptureGraphBuilder * This, - /* [in] */ LPCOLESTR lpstr, - /* [in] */ DWORDLONG dwlSize); - - HRESULT ( STDMETHODCALLTYPE *CopyCaptureFile )( - ICaptureGraphBuilder * This, - /* [in] */ LPOLESTR lpwstrOld, - /* [in] */ LPOLESTR lpwstrNew, - /* [in] */ int fAllowEscAbort, - /* [in] */ IAMCopyCaptureFileProgress *pCallback); - - END_INTERFACE - } ICaptureGraphBuilderVtbl; - - interface ICaptureGraphBuilder - { - CONST_VTBL struct ICaptureGraphBuilderVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICaptureGraphBuilder_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICaptureGraphBuilder_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICaptureGraphBuilder_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICaptureGraphBuilder_SetFiltergraph(This,pfg) \ - (This)->lpVtbl -> SetFiltergraph(This,pfg) - -#define ICaptureGraphBuilder_GetFiltergraph(This,ppfg) \ - (This)->lpVtbl -> GetFiltergraph(This,ppfg) - -#define ICaptureGraphBuilder_SetOutputFileName(This,pType,lpstrFile,ppf,ppSink) \ - (This)->lpVtbl -> SetOutputFileName(This,pType,lpstrFile,ppf,ppSink) - -#define ICaptureGraphBuilder_FindInterface(This,pCategory,pf,riid,ppint) \ - (This)->lpVtbl -> FindInterface(This,pCategory,pf,riid,ppint) - -#define ICaptureGraphBuilder_RenderStream(This,pCategory,pSource,pfCompressor,pfRenderer) \ - (This)->lpVtbl -> RenderStream(This,pCategory,pSource,pfCompressor,pfRenderer) - -#define ICaptureGraphBuilder_ControlStream(This,pCategory,pFilter,pstart,pstop,wStartCookie,wStopCookie) \ - (This)->lpVtbl -> ControlStream(This,pCategory,pFilter,pstart,pstop,wStartCookie,wStopCookie) - -#define ICaptureGraphBuilder_AllocCapFile(This,lpstr,dwlSize) \ - (This)->lpVtbl -> AllocCapFile(This,lpstr,dwlSize) - -#define ICaptureGraphBuilder_CopyCaptureFile(This,lpwstrOld,lpwstrNew,fAllowEscAbort,pCallback) \ - (This)->lpVtbl -> CopyCaptureFile(This,lpwstrOld,lpwstrNew,fAllowEscAbort,pCallback) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder_SetFiltergraph_Proxy( - ICaptureGraphBuilder * This, - /* [in] */ IGraphBuilder *pfg); - - -void __RPC_STUB ICaptureGraphBuilder_SetFiltergraph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder_GetFiltergraph_Proxy( - ICaptureGraphBuilder * This, - /* [out] */ IGraphBuilder **ppfg); - - -void __RPC_STUB ICaptureGraphBuilder_GetFiltergraph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder_SetOutputFileName_Proxy( - ICaptureGraphBuilder * This, - /* [in] */ const GUID *pType, - /* [in] */ LPCOLESTR lpstrFile, - /* [out] */ IBaseFilter **ppf, - /* [out] */ IFileSinkFilter **ppSink); - - -void __RPC_STUB ICaptureGraphBuilder_SetOutputFileName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [call_as] */ HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder_RemoteFindInterface_Proxy( - ICaptureGraphBuilder * This, - /* [unique][in] */ const GUID *pCategory, - /* [in] */ IBaseFilter *pf, - /* [in] */ REFIID riid, - /* [out] */ IUnknown **ppint); - - -void __RPC_STUB ICaptureGraphBuilder_RemoteFindInterface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder_RenderStream_Proxy( - ICaptureGraphBuilder * This, - /* [in] */ const GUID *pCategory, - /* [in] */ IUnknown *pSource, - /* [in] */ IBaseFilter *pfCompressor, - /* [in] */ IBaseFilter *pfRenderer); - - -void __RPC_STUB ICaptureGraphBuilder_RenderStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder_ControlStream_Proxy( - ICaptureGraphBuilder * This, - /* [in] */ const GUID *pCategory, - /* [in] */ IBaseFilter *pFilter, - /* [in] */ REFERENCE_TIME *pstart, - /* [in] */ REFERENCE_TIME *pstop, - /* [in] */ WORD wStartCookie, - /* [in] */ WORD wStopCookie); - - -void __RPC_STUB ICaptureGraphBuilder_ControlStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder_AllocCapFile_Proxy( - ICaptureGraphBuilder * This, - /* [in] */ LPCOLESTR lpstr, - /* [in] */ DWORDLONG dwlSize); - - -void __RPC_STUB ICaptureGraphBuilder_AllocCapFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder_CopyCaptureFile_Proxy( - ICaptureGraphBuilder * This, - /* [in] */ LPOLESTR lpwstrOld, - /* [in] */ LPOLESTR lpwstrNew, - /* [in] */ int fAllowEscAbort, - /* [in] */ IAMCopyCaptureFileProgress *pCallback); - - -void __RPC_STUB ICaptureGraphBuilder_CopyCaptureFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICaptureGraphBuilder_INTERFACE_DEFINED__ */ - - -#ifndef __IAMCopyCaptureFileProgress_INTERFACE_DEFINED__ -#define __IAMCopyCaptureFileProgress_INTERFACE_DEFINED__ - -/* interface IAMCopyCaptureFileProgress */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMCopyCaptureFileProgress; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("670d1d20-a068-11d0-b3f0-00aa003761c5") - IAMCopyCaptureFileProgress : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Progress( - /* [in] */ int iProgress) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMCopyCaptureFileProgressVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMCopyCaptureFileProgress * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMCopyCaptureFileProgress * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMCopyCaptureFileProgress * This); - - HRESULT ( STDMETHODCALLTYPE *Progress )( - IAMCopyCaptureFileProgress * This, - /* [in] */ int iProgress); - - END_INTERFACE - } IAMCopyCaptureFileProgressVtbl; - - interface IAMCopyCaptureFileProgress - { - CONST_VTBL struct IAMCopyCaptureFileProgressVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMCopyCaptureFileProgress_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMCopyCaptureFileProgress_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMCopyCaptureFileProgress_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMCopyCaptureFileProgress_Progress(This,iProgress) \ - (This)->lpVtbl -> Progress(This,iProgress) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMCopyCaptureFileProgress_Progress_Proxy( - IAMCopyCaptureFileProgress * This, - /* [in] */ int iProgress); - - -void __RPC_STUB IAMCopyCaptureFileProgress_Progress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMCopyCaptureFileProgress_INTERFACE_DEFINED__ */ - - -#ifndef __ICaptureGraphBuilder2_INTERFACE_DEFINED__ -#define __ICaptureGraphBuilder2_INTERFACE_DEFINED__ - -/* interface ICaptureGraphBuilder2 */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_ICaptureGraphBuilder2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("93E5A4E0-2D50-11d2-ABFA-00A0C9C6E38D") - ICaptureGraphBuilder2 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetFiltergraph( - /* [in] */ IGraphBuilder *pfg) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFiltergraph( - /* [out] */ IGraphBuilder **ppfg) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOutputFileName( - /* [in] */ const GUID *pType, - /* [in] */ LPCOLESTR lpstrFile, - /* [out] */ IBaseFilter **ppf, - /* [out] */ IFileSinkFilter **ppSink) = 0; - - virtual /* [local] */ HRESULT STDMETHODCALLTYPE FindInterface( - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ IBaseFilter *pf, - /* [in] */ REFIID riid, - /* [out] */ void **ppint) = 0; - - virtual HRESULT STDMETHODCALLTYPE RenderStream( - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ IUnknown *pSource, - /* [in] */ IBaseFilter *pfCompressor, - /* [in] */ IBaseFilter *pfRenderer) = 0; - - virtual HRESULT STDMETHODCALLTYPE ControlStream( - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ IBaseFilter *pFilter, - /* [in] */ REFERENCE_TIME *pstart, - /* [in] */ REFERENCE_TIME *pstop, - /* [in] */ WORD wStartCookie, - /* [in] */ WORD wStopCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE AllocCapFile( - /* [in] */ LPCOLESTR lpstr, - /* [in] */ DWORDLONG dwlSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE CopyCaptureFile( - /* [in] */ LPOLESTR lpwstrOld, - /* [in] */ LPOLESTR lpwstrNew, - /* [in] */ int fAllowEscAbort, - /* [in] */ IAMCopyCaptureFileProgress *pCallback) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindPin( - /* [in] */ IUnknown *pSource, - /* [in] */ PIN_DIRECTION pindir, - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ BOOL fUnconnected, - /* [in] */ int num, - /* [out] */ IPin **ppPin) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICaptureGraphBuilder2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICaptureGraphBuilder2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICaptureGraphBuilder2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICaptureGraphBuilder2 * This); - - HRESULT ( STDMETHODCALLTYPE *SetFiltergraph )( - ICaptureGraphBuilder2 * This, - /* [in] */ IGraphBuilder *pfg); - - HRESULT ( STDMETHODCALLTYPE *GetFiltergraph )( - ICaptureGraphBuilder2 * This, - /* [out] */ IGraphBuilder **ppfg); - - HRESULT ( STDMETHODCALLTYPE *SetOutputFileName )( - ICaptureGraphBuilder2 * This, - /* [in] */ const GUID *pType, - /* [in] */ LPCOLESTR lpstrFile, - /* [out] */ IBaseFilter **ppf, - /* [out] */ IFileSinkFilter **ppSink); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *FindInterface )( - ICaptureGraphBuilder2 * This, - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ IBaseFilter *pf, - /* [in] */ REFIID riid, - /* [out] */ void **ppint); - - HRESULT ( STDMETHODCALLTYPE *RenderStream )( - ICaptureGraphBuilder2 * This, - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ IUnknown *pSource, - /* [in] */ IBaseFilter *pfCompressor, - /* [in] */ IBaseFilter *pfRenderer); - - HRESULT ( STDMETHODCALLTYPE *ControlStream )( - ICaptureGraphBuilder2 * This, - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ IBaseFilter *pFilter, - /* [in] */ REFERENCE_TIME *pstart, - /* [in] */ REFERENCE_TIME *pstop, - /* [in] */ WORD wStartCookie, - /* [in] */ WORD wStopCookie); - - HRESULT ( STDMETHODCALLTYPE *AllocCapFile )( - ICaptureGraphBuilder2 * This, - /* [in] */ LPCOLESTR lpstr, - /* [in] */ DWORDLONG dwlSize); - - HRESULT ( STDMETHODCALLTYPE *CopyCaptureFile )( - ICaptureGraphBuilder2 * This, - /* [in] */ LPOLESTR lpwstrOld, - /* [in] */ LPOLESTR lpwstrNew, - /* [in] */ int fAllowEscAbort, - /* [in] */ IAMCopyCaptureFileProgress *pCallback); - - HRESULT ( STDMETHODCALLTYPE *FindPin )( - ICaptureGraphBuilder2 * This, - /* [in] */ IUnknown *pSource, - /* [in] */ PIN_DIRECTION pindir, - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ BOOL fUnconnected, - /* [in] */ int num, - /* [out] */ IPin **ppPin); - - END_INTERFACE - } ICaptureGraphBuilder2Vtbl; - - interface ICaptureGraphBuilder2 - { - CONST_VTBL struct ICaptureGraphBuilder2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ICaptureGraphBuilder2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ICaptureGraphBuilder2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ICaptureGraphBuilder2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ICaptureGraphBuilder2_SetFiltergraph(This,pfg) \ - (This)->lpVtbl -> SetFiltergraph(This,pfg) - -#define ICaptureGraphBuilder2_GetFiltergraph(This,ppfg) \ - (This)->lpVtbl -> GetFiltergraph(This,ppfg) - -#define ICaptureGraphBuilder2_SetOutputFileName(This,pType,lpstrFile,ppf,ppSink) \ - (This)->lpVtbl -> SetOutputFileName(This,pType,lpstrFile,ppf,ppSink) - -#define ICaptureGraphBuilder2_FindInterface(This,pCategory,pType,pf,riid,ppint) \ - (This)->lpVtbl -> FindInterface(This,pCategory,pType,pf,riid,ppint) - -#define ICaptureGraphBuilder2_RenderStream(This,pCategory,pType,pSource,pfCompressor,pfRenderer) \ - (This)->lpVtbl -> RenderStream(This,pCategory,pType,pSource,pfCompressor,pfRenderer) - -#define ICaptureGraphBuilder2_ControlStream(This,pCategory,pType,pFilter,pstart,pstop,wStartCookie,wStopCookie) \ - (This)->lpVtbl -> ControlStream(This,pCategory,pType,pFilter,pstart,pstop,wStartCookie,wStopCookie) - -#define ICaptureGraphBuilder2_AllocCapFile(This,lpstr,dwlSize) \ - (This)->lpVtbl -> AllocCapFile(This,lpstr,dwlSize) - -#define ICaptureGraphBuilder2_CopyCaptureFile(This,lpwstrOld,lpwstrNew,fAllowEscAbort,pCallback) \ - (This)->lpVtbl -> CopyCaptureFile(This,lpwstrOld,lpwstrNew,fAllowEscAbort,pCallback) - -#define ICaptureGraphBuilder2_FindPin(This,pSource,pindir,pCategory,pType,fUnconnected,num,ppPin) \ - (This)->lpVtbl -> FindPin(This,pSource,pindir,pCategory,pType,fUnconnected,num,ppPin) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder2_SetFiltergraph_Proxy( - ICaptureGraphBuilder2 * This, - /* [in] */ IGraphBuilder *pfg); - - -void __RPC_STUB ICaptureGraphBuilder2_SetFiltergraph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder2_GetFiltergraph_Proxy( - ICaptureGraphBuilder2 * This, - /* [out] */ IGraphBuilder **ppfg); - - -void __RPC_STUB ICaptureGraphBuilder2_GetFiltergraph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder2_SetOutputFileName_Proxy( - ICaptureGraphBuilder2 * This, - /* [in] */ const GUID *pType, - /* [in] */ LPCOLESTR lpstrFile, - /* [out] */ IBaseFilter **ppf, - /* [out] */ IFileSinkFilter **ppSink); - - -void __RPC_STUB ICaptureGraphBuilder2_SetOutputFileName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [call_as] */ HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder2_RemoteFindInterface_Proxy( - ICaptureGraphBuilder2 * This, - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ IBaseFilter *pf, - /* [in] */ REFIID riid, - /* [out] */ IUnknown **ppint); - - -void __RPC_STUB ICaptureGraphBuilder2_RemoteFindInterface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder2_RenderStream_Proxy( - ICaptureGraphBuilder2 * This, - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ IUnknown *pSource, - /* [in] */ IBaseFilter *pfCompressor, - /* [in] */ IBaseFilter *pfRenderer); - - -void __RPC_STUB ICaptureGraphBuilder2_RenderStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder2_ControlStream_Proxy( - ICaptureGraphBuilder2 * This, - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ IBaseFilter *pFilter, - /* [in] */ REFERENCE_TIME *pstart, - /* [in] */ REFERENCE_TIME *pstop, - /* [in] */ WORD wStartCookie, - /* [in] */ WORD wStopCookie); - - -void __RPC_STUB ICaptureGraphBuilder2_ControlStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder2_AllocCapFile_Proxy( - ICaptureGraphBuilder2 * This, - /* [in] */ LPCOLESTR lpstr, - /* [in] */ DWORDLONG dwlSize); - - -void __RPC_STUB ICaptureGraphBuilder2_AllocCapFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder2_CopyCaptureFile_Proxy( - ICaptureGraphBuilder2 * This, - /* [in] */ LPOLESTR lpwstrOld, - /* [in] */ LPOLESTR lpwstrNew, - /* [in] */ int fAllowEscAbort, - /* [in] */ IAMCopyCaptureFileProgress *pCallback); - - -void __RPC_STUB ICaptureGraphBuilder2_CopyCaptureFile_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder2_FindPin_Proxy( - ICaptureGraphBuilder2 * This, - /* [in] */ IUnknown *pSource, - /* [in] */ PIN_DIRECTION pindir, - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ BOOL fUnconnected, - /* [in] */ int num, - /* [out] */ IPin **ppPin); - - -void __RPC_STUB ICaptureGraphBuilder2_FindPin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICaptureGraphBuilder2_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0149 */ -/* [local] */ - - -enum _AM_RENSDEREXFLAGS - { AM_RENDEREX_RENDERTOEXISTINGRENDERERS = 0x1 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0149_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0149_v0_0_s_ifspec; - -#ifndef __IFilterGraph2_INTERFACE_DEFINED__ -#define __IFilterGraph2_INTERFACE_DEFINED__ - -/* interface IFilterGraph2 */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IFilterGraph2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("36b73882-c2c8-11cf-8b46-00805f6cef60") - IFilterGraph2 : public IGraphBuilder - { - public: - virtual HRESULT STDMETHODCALLTYPE AddSourceFilterForMoniker( - /* [in] */ IMoniker *pMoniker, - /* [in] */ IBindCtx *pCtx, - /* [unique][in] */ LPCWSTR lpcwstrFilterName, - /* [out] */ IBaseFilter **ppFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReconnectEx( - /* [in] */ IPin *ppin, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE RenderEx( - /* [in] */ IPin *pPinOut, - /* [in] */ DWORD dwFlags, - /* [out][in] */ DWORD *pvContext) = 0; - - }; - -#else /* C style interface */ - - typedef struct IFilterGraph2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IFilterGraph2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IFilterGraph2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IFilterGraph2 * This); - - HRESULT ( STDMETHODCALLTYPE *AddFilter )( - IFilterGraph2 * This, - /* [in] */ IBaseFilter *pFilter, - /* [string][in] */ LPCWSTR pName); - - HRESULT ( STDMETHODCALLTYPE *RemoveFilter )( - IFilterGraph2 * This, - /* [in] */ IBaseFilter *pFilter); - - HRESULT ( STDMETHODCALLTYPE *EnumFilters )( - IFilterGraph2 * This, - /* [out] */ IEnumFilters **ppEnum); - - HRESULT ( STDMETHODCALLTYPE *FindFilterByName )( - IFilterGraph2 * This, - /* [string][in] */ LPCWSTR pName, - /* [out] */ IBaseFilter **ppFilter); - - HRESULT ( STDMETHODCALLTYPE *ConnectDirect )( - IFilterGraph2 * This, - /* [in] */ IPin *ppinOut, - /* [in] */ IPin *ppinIn, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *Reconnect )( - IFilterGraph2 * This, - /* [in] */ IPin *ppin); - - HRESULT ( STDMETHODCALLTYPE *Disconnect )( - IFilterGraph2 * This, - /* [in] */ IPin *ppin); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultSyncSource )( - IFilterGraph2 * This); - - HRESULT ( STDMETHODCALLTYPE *Connect )( - IFilterGraph2 * This, - /* [in] */ IPin *ppinOut, - /* [in] */ IPin *ppinIn); - - HRESULT ( STDMETHODCALLTYPE *Render )( - IFilterGraph2 * This, - /* [in] */ IPin *ppinOut); - - HRESULT ( STDMETHODCALLTYPE *RenderFile )( - IFilterGraph2 * This, - /* [in] */ LPCWSTR lpcwstrFile, - /* [unique][in] */ LPCWSTR lpcwstrPlayList); - - HRESULT ( STDMETHODCALLTYPE *AddSourceFilter )( - IFilterGraph2 * This, - /* [in] */ LPCWSTR lpcwstrFileName, - /* [unique][in] */ LPCWSTR lpcwstrFilterName, - /* [out] */ IBaseFilter **ppFilter); - - HRESULT ( STDMETHODCALLTYPE *SetLogFile )( - IFilterGraph2 * This, - /* [in] */ DWORD_PTR hFile); - - HRESULT ( STDMETHODCALLTYPE *Abort )( - IFilterGraph2 * This); - - HRESULT ( STDMETHODCALLTYPE *ShouldOperationContinue )( - IFilterGraph2 * This); - - HRESULT ( STDMETHODCALLTYPE *AddSourceFilterForMoniker )( - IFilterGraph2 * This, - /* [in] */ IMoniker *pMoniker, - /* [in] */ IBindCtx *pCtx, - /* [unique][in] */ LPCWSTR lpcwstrFilterName, - /* [out] */ IBaseFilter **ppFilter); - - HRESULT ( STDMETHODCALLTYPE *ReconnectEx )( - IFilterGraph2 * This, - /* [in] */ IPin *ppin, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *RenderEx )( - IFilterGraph2 * This, - /* [in] */ IPin *pPinOut, - /* [in] */ DWORD dwFlags, - /* [out][in] */ DWORD *pvContext); - - END_INTERFACE - } IFilterGraph2Vtbl; - - interface IFilterGraph2 - { - CONST_VTBL struct IFilterGraph2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IFilterGraph2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IFilterGraph2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IFilterGraph2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IFilterGraph2_AddFilter(This,pFilter,pName) \ - (This)->lpVtbl -> AddFilter(This,pFilter,pName) - -#define IFilterGraph2_RemoveFilter(This,pFilter) \ - (This)->lpVtbl -> RemoveFilter(This,pFilter) - -#define IFilterGraph2_EnumFilters(This,ppEnum) \ - (This)->lpVtbl -> EnumFilters(This,ppEnum) - -#define IFilterGraph2_FindFilterByName(This,pName,ppFilter) \ - (This)->lpVtbl -> FindFilterByName(This,pName,ppFilter) - -#define IFilterGraph2_ConnectDirect(This,ppinOut,ppinIn,pmt) \ - (This)->lpVtbl -> ConnectDirect(This,ppinOut,ppinIn,pmt) - -#define IFilterGraph2_Reconnect(This,ppin) \ - (This)->lpVtbl -> Reconnect(This,ppin) - -#define IFilterGraph2_Disconnect(This,ppin) \ - (This)->lpVtbl -> Disconnect(This,ppin) - -#define IFilterGraph2_SetDefaultSyncSource(This) \ - (This)->lpVtbl -> SetDefaultSyncSource(This) - - -#define IFilterGraph2_Connect(This,ppinOut,ppinIn) \ - (This)->lpVtbl -> Connect(This,ppinOut,ppinIn) - -#define IFilterGraph2_Render(This,ppinOut) \ - (This)->lpVtbl -> Render(This,ppinOut) - -#define IFilterGraph2_RenderFile(This,lpcwstrFile,lpcwstrPlayList) \ - (This)->lpVtbl -> RenderFile(This,lpcwstrFile,lpcwstrPlayList) - -#define IFilterGraph2_AddSourceFilter(This,lpcwstrFileName,lpcwstrFilterName,ppFilter) \ - (This)->lpVtbl -> AddSourceFilter(This,lpcwstrFileName,lpcwstrFilterName,ppFilter) - -#define IFilterGraph2_SetLogFile(This,hFile) \ - (This)->lpVtbl -> SetLogFile(This,hFile) - -#define IFilterGraph2_Abort(This) \ - (This)->lpVtbl -> Abort(This) - -#define IFilterGraph2_ShouldOperationContinue(This) \ - (This)->lpVtbl -> ShouldOperationContinue(This) - - -#define IFilterGraph2_AddSourceFilterForMoniker(This,pMoniker,pCtx,lpcwstrFilterName,ppFilter) \ - (This)->lpVtbl -> AddSourceFilterForMoniker(This,pMoniker,pCtx,lpcwstrFilterName,ppFilter) - -#define IFilterGraph2_ReconnectEx(This,ppin,pmt) \ - (This)->lpVtbl -> ReconnectEx(This,ppin,pmt) - -#define IFilterGraph2_RenderEx(This,pPinOut,dwFlags,pvContext) \ - (This)->lpVtbl -> RenderEx(This,pPinOut,dwFlags,pvContext) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IFilterGraph2_AddSourceFilterForMoniker_Proxy( - IFilterGraph2 * This, - /* [in] */ IMoniker *pMoniker, - /* [in] */ IBindCtx *pCtx, - /* [unique][in] */ LPCWSTR lpcwstrFilterName, - /* [out] */ IBaseFilter **ppFilter); - - -void __RPC_STUB IFilterGraph2_AddSourceFilterForMoniker_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterGraph2_ReconnectEx_Proxy( - IFilterGraph2 * This, - /* [in] */ IPin *ppin, - /* [unique][in] */ const AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IFilterGraph2_ReconnectEx_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterGraph2_RenderEx_Proxy( - IFilterGraph2 * This, - /* [in] */ IPin *pPinOut, - /* [in] */ DWORD dwFlags, - /* [out][in] */ DWORD *pvContext); - - -void __RPC_STUB IFilterGraph2_RenderEx_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IFilterGraph2_INTERFACE_DEFINED__ */ - - -#ifndef __IStreamBuilder_INTERFACE_DEFINED__ -#define __IStreamBuilder_INTERFACE_DEFINED__ - -/* interface IStreamBuilder */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IStreamBuilder; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868bf-0ad4-11ce-b03a-0020af0ba770") - IStreamBuilder : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Render( - /* [in] */ IPin *ppinOut, - /* [in] */ IGraphBuilder *pGraph) = 0; - - virtual HRESULT STDMETHODCALLTYPE Backout( - /* [in] */ IPin *ppinOut, - /* [in] */ IGraphBuilder *pGraph) = 0; - - }; - -#else /* C style interface */ - - typedef struct IStreamBuilderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IStreamBuilder * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IStreamBuilder * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IStreamBuilder * This); - - HRESULT ( STDMETHODCALLTYPE *Render )( - IStreamBuilder * This, - /* [in] */ IPin *ppinOut, - /* [in] */ IGraphBuilder *pGraph); - - HRESULT ( STDMETHODCALLTYPE *Backout )( - IStreamBuilder * This, - /* [in] */ IPin *ppinOut, - /* [in] */ IGraphBuilder *pGraph); - - END_INTERFACE - } IStreamBuilderVtbl; - - interface IStreamBuilder - { - CONST_VTBL struct IStreamBuilderVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IStreamBuilder_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IStreamBuilder_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IStreamBuilder_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IStreamBuilder_Render(This,ppinOut,pGraph) \ - (This)->lpVtbl -> Render(This,ppinOut,pGraph) - -#define IStreamBuilder_Backout(This,ppinOut,pGraph) \ - (This)->lpVtbl -> Backout(This,ppinOut,pGraph) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IStreamBuilder_Render_Proxy( - IStreamBuilder * This, - /* [in] */ IPin *ppinOut, - /* [in] */ IGraphBuilder *pGraph); - - -void __RPC_STUB IStreamBuilder_Render_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IStreamBuilder_Backout_Proxy( - IStreamBuilder * This, - /* [in] */ IPin *ppinOut, - /* [in] */ IGraphBuilder *pGraph); - - -void __RPC_STUB IStreamBuilder_Backout_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IStreamBuilder_INTERFACE_DEFINED__ */ - - -#ifndef __IAsyncReader_INTERFACE_DEFINED__ -#define __IAsyncReader_INTERFACE_DEFINED__ - -/* interface IAsyncReader */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAsyncReader; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868aa-0ad4-11ce-b03a-0020af0ba770") - IAsyncReader : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE RequestAllocator( - /* [in] */ IMemAllocator *pPreferred, - /* [in] */ ALLOCATOR_PROPERTIES *pProps, - /* [out] */ IMemAllocator **ppActual) = 0; - - virtual HRESULT STDMETHODCALLTYPE Request( - /* [in] */ IMediaSample *pSample, - /* [in] */ DWORD_PTR dwUser) = 0; - - virtual HRESULT STDMETHODCALLTYPE WaitForNext( - /* [in] */ DWORD dwTimeout, - /* [out] */ IMediaSample **ppSample, - /* [out] */ DWORD_PTR *pdwUser) = 0; - - virtual HRESULT STDMETHODCALLTYPE SyncReadAligned( - /* [in] */ IMediaSample *pSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE SyncRead( - /* [in] */ LONGLONG llPosition, - /* [in] */ LONG lLength, - /* [size_is][out] */ BYTE *pBuffer) = 0; - - virtual HRESULT STDMETHODCALLTYPE Length( - /* [out] */ LONGLONG *pTotal, - /* [out] */ LONGLONG *pAvailable) = 0; - - virtual HRESULT STDMETHODCALLTYPE BeginFlush( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE EndFlush( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAsyncReaderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAsyncReader * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAsyncReader * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAsyncReader * This); - - HRESULT ( STDMETHODCALLTYPE *RequestAllocator )( - IAsyncReader * This, - /* [in] */ IMemAllocator *pPreferred, - /* [in] */ ALLOCATOR_PROPERTIES *pProps, - /* [out] */ IMemAllocator **ppActual); - - HRESULT ( STDMETHODCALLTYPE *Request )( - IAsyncReader * This, - /* [in] */ IMediaSample *pSample, - /* [in] */ DWORD_PTR dwUser); - - HRESULT ( STDMETHODCALLTYPE *WaitForNext )( - IAsyncReader * This, - /* [in] */ DWORD dwTimeout, - /* [out] */ IMediaSample **ppSample, - /* [out] */ DWORD_PTR *pdwUser); - - HRESULT ( STDMETHODCALLTYPE *SyncReadAligned )( - IAsyncReader * This, - /* [in] */ IMediaSample *pSample); - - HRESULT ( STDMETHODCALLTYPE *SyncRead )( - IAsyncReader * This, - /* [in] */ LONGLONG llPosition, - /* [in] */ LONG lLength, - /* [size_is][out] */ BYTE *pBuffer); - - HRESULT ( STDMETHODCALLTYPE *Length )( - IAsyncReader * This, - /* [out] */ LONGLONG *pTotal, - /* [out] */ LONGLONG *pAvailable); - - HRESULT ( STDMETHODCALLTYPE *BeginFlush )( - IAsyncReader * This); - - HRESULT ( STDMETHODCALLTYPE *EndFlush )( - IAsyncReader * This); - - END_INTERFACE - } IAsyncReaderVtbl; - - interface IAsyncReader - { - CONST_VTBL struct IAsyncReaderVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAsyncReader_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAsyncReader_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAsyncReader_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAsyncReader_RequestAllocator(This,pPreferred,pProps,ppActual) \ - (This)->lpVtbl -> RequestAllocator(This,pPreferred,pProps,ppActual) - -#define IAsyncReader_Request(This,pSample,dwUser) \ - (This)->lpVtbl -> Request(This,pSample,dwUser) - -#define IAsyncReader_WaitForNext(This,dwTimeout,ppSample,pdwUser) \ - (This)->lpVtbl -> WaitForNext(This,dwTimeout,ppSample,pdwUser) - -#define IAsyncReader_SyncReadAligned(This,pSample) \ - (This)->lpVtbl -> SyncReadAligned(This,pSample) - -#define IAsyncReader_SyncRead(This,llPosition,lLength,pBuffer) \ - (This)->lpVtbl -> SyncRead(This,llPosition,lLength,pBuffer) - -#define IAsyncReader_Length(This,pTotal,pAvailable) \ - (This)->lpVtbl -> Length(This,pTotal,pAvailable) - -#define IAsyncReader_BeginFlush(This) \ - (This)->lpVtbl -> BeginFlush(This) - -#define IAsyncReader_EndFlush(This) \ - (This)->lpVtbl -> EndFlush(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAsyncReader_RequestAllocator_Proxy( - IAsyncReader * This, - /* [in] */ IMemAllocator *pPreferred, - /* [in] */ ALLOCATOR_PROPERTIES *pProps, - /* [out] */ IMemAllocator **ppActual); - - -void __RPC_STUB IAsyncReader_RequestAllocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAsyncReader_Request_Proxy( - IAsyncReader * This, - /* [in] */ IMediaSample *pSample, - /* [in] */ DWORD_PTR dwUser); - - -void __RPC_STUB IAsyncReader_Request_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAsyncReader_WaitForNext_Proxy( - IAsyncReader * This, - /* [in] */ DWORD dwTimeout, - /* [out] */ IMediaSample **ppSample, - /* [out] */ DWORD_PTR *pdwUser); - - -void __RPC_STUB IAsyncReader_WaitForNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAsyncReader_SyncReadAligned_Proxy( - IAsyncReader * This, - /* [in] */ IMediaSample *pSample); - - -void __RPC_STUB IAsyncReader_SyncReadAligned_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAsyncReader_SyncRead_Proxy( - IAsyncReader * This, - /* [in] */ LONGLONG llPosition, - /* [in] */ LONG lLength, - /* [size_is][out] */ BYTE *pBuffer); - - -void __RPC_STUB IAsyncReader_SyncRead_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAsyncReader_Length_Proxy( - IAsyncReader * This, - /* [out] */ LONGLONG *pTotal, - /* [out] */ LONGLONG *pAvailable); - - -void __RPC_STUB IAsyncReader_Length_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAsyncReader_BeginFlush_Proxy( - IAsyncReader * This); - - -void __RPC_STUB IAsyncReader_BeginFlush_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAsyncReader_EndFlush_Proxy( - IAsyncReader * This); - - -void __RPC_STUB IAsyncReader_EndFlush_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAsyncReader_INTERFACE_DEFINED__ */ - - -#ifndef __IGraphVersion_INTERFACE_DEFINED__ -#define __IGraphVersion_INTERFACE_DEFINED__ - -/* interface IGraphVersion */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IGraphVersion; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868ab-0ad4-11ce-b03a-0020af0ba770") - IGraphVersion : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE QueryVersion( - LONG *pVersion) = 0; - - }; - -#else /* C style interface */ - - typedef struct IGraphVersionVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IGraphVersion * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IGraphVersion * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IGraphVersion * This); - - HRESULT ( STDMETHODCALLTYPE *QueryVersion )( - IGraphVersion * This, - LONG *pVersion); - - END_INTERFACE - } IGraphVersionVtbl; - - interface IGraphVersion - { - CONST_VTBL struct IGraphVersionVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IGraphVersion_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IGraphVersion_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IGraphVersion_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IGraphVersion_QueryVersion(This,pVersion) \ - (This)->lpVtbl -> QueryVersion(This,pVersion) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IGraphVersion_QueryVersion_Proxy( - IGraphVersion * This, - LONG *pVersion); - - -void __RPC_STUB IGraphVersion_QueryVersion_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IGraphVersion_INTERFACE_DEFINED__ */ - - -#ifndef __IResourceConsumer_INTERFACE_DEFINED__ -#define __IResourceConsumer_INTERFACE_DEFINED__ - -/* interface IResourceConsumer */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IResourceConsumer; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868ad-0ad4-11ce-b03a-0020af0ba770") - IResourceConsumer : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE AcquireResource( - /* [in] */ LONG idResource) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReleaseResource( - /* [in] */ LONG idResource) = 0; - - }; - -#else /* C style interface */ - - typedef struct IResourceConsumerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IResourceConsumer * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IResourceConsumer * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IResourceConsumer * This); - - HRESULT ( STDMETHODCALLTYPE *AcquireResource )( - IResourceConsumer * This, - /* [in] */ LONG idResource); - - HRESULT ( STDMETHODCALLTYPE *ReleaseResource )( - IResourceConsumer * This, - /* [in] */ LONG idResource); - - END_INTERFACE - } IResourceConsumerVtbl; - - interface IResourceConsumer - { - CONST_VTBL struct IResourceConsumerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IResourceConsumer_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IResourceConsumer_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IResourceConsumer_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IResourceConsumer_AcquireResource(This,idResource) \ - (This)->lpVtbl -> AcquireResource(This,idResource) - -#define IResourceConsumer_ReleaseResource(This,idResource) \ - (This)->lpVtbl -> ReleaseResource(This,idResource) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IResourceConsumer_AcquireResource_Proxy( - IResourceConsumer * This, - /* [in] */ LONG idResource); - - -void __RPC_STUB IResourceConsumer_AcquireResource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IResourceConsumer_ReleaseResource_Proxy( - IResourceConsumer * This, - /* [in] */ LONG idResource); - - -void __RPC_STUB IResourceConsumer_ReleaseResource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IResourceConsumer_INTERFACE_DEFINED__ */ - - -#ifndef __IResourceManager_INTERFACE_DEFINED__ -#define __IResourceManager_INTERFACE_DEFINED__ - -/* interface IResourceManager */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IResourceManager; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868ac-0ad4-11ce-b03a-0020af0ba770") - IResourceManager : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Register( - /* [in] */ LPCWSTR pName, - /* [in] */ LONG cResource, - /* [out] */ LONG *plToken) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterGroup( - /* [in] */ LPCWSTR pName, - /* [in] */ LONG cResource, - /* [size_is][in] */ LONG *palTokens, - /* [out] */ LONG *plToken) = 0; - - virtual HRESULT STDMETHODCALLTYPE RequestResource( - /* [in] */ LONG idResource, - /* [in] */ IUnknown *pFocusObject, - /* [in] */ IResourceConsumer *pConsumer) = 0; - - virtual HRESULT STDMETHODCALLTYPE NotifyAcquire( - /* [in] */ LONG idResource, - /* [in] */ IResourceConsumer *pConsumer, - /* [in] */ HRESULT hr) = 0; - - virtual HRESULT STDMETHODCALLTYPE NotifyRelease( - /* [in] */ LONG idResource, - /* [in] */ IResourceConsumer *pConsumer, - /* [in] */ BOOL bStillWant) = 0; - - virtual HRESULT STDMETHODCALLTYPE CancelRequest( - /* [in] */ LONG idResource, - /* [in] */ IResourceConsumer *pConsumer) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFocus( - /* [in] */ IUnknown *pFocusObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReleaseFocus( - /* [in] */ IUnknown *pFocusObject) = 0; - - }; - -#else /* C style interface */ - - typedef struct IResourceManagerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IResourceManager * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IResourceManager * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IResourceManager * This); - - HRESULT ( STDMETHODCALLTYPE *Register )( - IResourceManager * This, - /* [in] */ LPCWSTR pName, - /* [in] */ LONG cResource, - /* [out] */ LONG *plToken); - - HRESULT ( STDMETHODCALLTYPE *RegisterGroup )( - IResourceManager * This, - /* [in] */ LPCWSTR pName, - /* [in] */ LONG cResource, - /* [size_is][in] */ LONG *palTokens, - /* [out] */ LONG *plToken); - - HRESULT ( STDMETHODCALLTYPE *RequestResource )( - IResourceManager * This, - /* [in] */ LONG idResource, - /* [in] */ IUnknown *pFocusObject, - /* [in] */ IResourceConsumer *pConsumer); - - HRESULT ( STDMETHODCALLTYPE *NotifyAcquire )( - IResourceManager * This, - /* [in] */ LONG idResource, - /* [in] */ IResourceConsumer *pConsumer, - /* [in] */ HRESULT hr); - - HRESULT ( STDMETHODCALLTYPE *NotifyRelease )( - IResourceManager * This, - /* [in] */ LONG idResource, - /* [in] */ IResourceConsumer *pConsumer, - /* [in] */ BOOL bStillWant); - - HRESULT ( STDMETHODCALLTYPE *CancelRequest )( - IResourceManager * This, - /* [in] */ LONG idResource, - /* [in] */ IResourceConsumer *pConsumer); - - HRESULT ( STDMETHODCALLTYPE *SetFocus )( - IResourceManager * This, - /* [in] */ IUnknown *pFocusObject); - - HRESULT ( STDMETHODCALLTYPE *ReleaseFocus )( - IResourceManager * This, - /* [in] */ IUnknown *pFocusObject); - - END_INTERFACE - } IResourceManagerVtbl; - - interface IResourceManager - { - CONST_VTBL struct IResourceManagerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IResourceManager_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IResourceManager_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IResourceManager_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IResourceManager_Register(This,pName,cResource,plToken) \ - (This)->lpVtbl -> Register(This,pName,cResource,plToken) - -#define IResourceManager_RegisterGroup(This,pName,cResource,palTokens,plToken) \ - (This)->lpVtbl -> RegisterGroup(This,pName,cResource,palTokens,plToken) - -#define IResourceManager_RequestResource(This,idResource,pFocusObject,pConsumer) \ - (This)->lpVtbl -> RequestResource(This,idResource,pFocusObject,pConsumer) - -#define IResourceManager_NotifyAcquire(This,idResource,pConsumer,hr) \ - (This)->lpVtbl -> NotifyAcquire(This,idResource,pConsumer,hr) - -#define IResourceManager_NotifyRelease(This,idResource,pConsumer,bStillWant) \ - (This)->lpVtbl -> NotifyRelease(This,idResource,pConsumer,bStillWant) - -#define IResourceManager_CancelRequest(This,idResource,pConsumer) \ - (This)->lpVtbl -> CancelRequest(This,idResource,pConsumer) - -#define IResourceManager_SetFocus(This,pFocusObject) \ - (This)->lpVtbl -> SetFocus(This,pFocusObject) - -#define IResourceManager_ReleaseFocus(This,pFocusObject) \ - (This)->lpVtbl -> ReleaseFocus(This,pFocusObject) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IResourceManager_Register_Proxy( - IResourceManager * This, - /* [in] */ LPCWSTR pName, - /* [in] */ LONG cResource, - /* [out] */ LONG *plToken); - - -void __RPC_STUB IResourceManager_Register_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IResourceManager_RegisterGroup_Proxy( - IResourceManager * This, - /* [in] */ LPCWSTR pName, - /* [in] */ LONG cResource, - /* [size_is][in] */ LONG *palTokens, - /* [out] */ LONG *plToken); - - -void __RPC_STUB IResourceManager_RegisterGroup_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IResourceManager_RequestResource_Proxy( - IResourceManager * This, - /* [in] */ LONG idResource, - /* [in] */ IUnknown *pFocusObject, - /* [in] */ IResourceConsumer *pConsumer); - - -void __RPC_STUB IResourceManager_RequestResource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IResourceManager_NotifyAcquire_Proxy( - IResourceManager * This, - /* [in] */ LONG idResource, - /* [in] */ IResourceConsumer *pConsumer, - /* [in] */ HRESULT hr); - - -void __RPC_STUB IResourceManager_NotifyAcquire_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IResourceManager_NotifyRelease_Proxy( - IResourceManager * This, - /* [in] */ LONG idResource, - /* [in] */ IResourceConsumer *pConsumer, - /* [in] */ BOOL bStillWant); - - -void __RPC_STUB IResourceManager_NotifyRelease_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IResourceManager_CancelRequest_Proxy( - IResourceManager * This, - /* [in] */ LONG idResource, - /* [in] */ IResourceConsumer *pConsumer); - - -void __RPC_STUB IResourceManager_CancelRequest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IResourceManager_SetFocus_Proxy( - IResourceManager * This, - /* [in] */ IUnknown *pFocusObject); - - -void __RPC_STUB IResourceManager_SetFocus_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IResourceManager_ReleaseFocus_Proxy( - IResourceManager * This, - /* [in] */ IUnknown *pFocusObject); - - -void __RPC_STUB IResourceManager_ReleaseFocus_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IResourceManager_INTERFACE_DEFINED__ */ - - -#ifndef __IDistributorNotify_INTERFACE_DEFINED__ -#define __IDistributorNotify_INTERFACE_DEFINED__ - -/* interface IDistributorNotify */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IDistributorNotify; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56a868af-0ad4-11ce-b03a-0020af0ba770") - IDistributorNotify : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Stop( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Pause( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Run( - REFERENCE_TIME tStart) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSyncSource( - /* [in] */ IReferenceClock *pClock) = 0; - - virtual HRESULT STDMETHODCALLTYPE NotifyGraphChange( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDistributorNotifyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDistributorNotify * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDistributorNotify * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDistributorNotify * This); - - HRESULT ( STDMETHODCALLTYPE *Stop )( - IDistributorNotify * This); - - HRESULT ( STDMETHODCALLTYPE *Pause )( - IDistributorNotify * This); - - HRESULT ( STDMETHODCALLTYPE *Run )( - IDistributorNotify * This, - REFERENCE_TIME tStart); - - HRESULT ( STDMETHODCALLTYPE *SetSyncSource )( - IDistributorNotify * This, - /* [in] */ IReferenceClock *pClock); - - HRESULT ( STDMETHODCALLTYPE *NotifyGraphChange )( - IDistributorNotify * This); - - END_INTERFACE - } IDistributorNotifyVtbl; - - interface IDistributorNotify - { - CONST_VTBL struct IDistributorNotifyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDistributorNotify_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDistributorNotify_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDistributorNotify_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDistributorNotify_Stop(This) \ - (This)->lpVtbl -> Stop(This) - -#define IDistributorNotify_Pause(This) \ - (This)->lpVtbl -> Pause(This) - -#define IDistributorNotify_Run(This,tStart) \ - (This)->lpVtbl -> Run(This,tStart) - -#define IDistributorNotify_SetSyncSource(This,pClock) \ - (This)->lpVtbl -> SetSyncSource(This,pClock) - -#define IDistributorNotify_NotifyGraphChange(This) \ - (This)->lpVtbl -> NotifyGraphChange(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDistributorNotify_Stop_Proxy( - IDistributorNotify * This); - - -void __RPC_STUB IDistributorNotify_Stop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDistributorNotify_Pause_Proxy( - IDistributorNotify * This); - - -void __RPC_STUB IDistributorNotify_Pause_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDistributorNotify_Run_Proxy( - IDistributorNotify * This, - REFERENCE_TIME tStart); - - -void __RPC_STUB IDistributorNotify_Run_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDistributorNotify_SetSyncSource_Proxy( - IDistributorNotify * This, - /* [in] */ IReferenceClock *pClock); - - -void __RPC_STUB IDistributorNotify_SetSyncSource_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDistributorNotify_NotifyGraphChange_Proxy( - IDistributorNotify * This); - - -void __RPC_STUB IDistributorNotify_NotifyGraphChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDistributorNotify_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0156 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0156_0001 - { AM_STREAM_INFO_START_DEFINED = 0x1, - AM_STREAM_INFO_STOP_DEFINED = 0x2, - AM_STREAM_INFO_DISCARDING = 0x4, - AM_STREAM_INFO_STOP_SEND_EXTRA = 0x10 - } AM_STREAM_INFO_FLAGS; - -typedef /* [public][public] */ struct __MIDL___MIDL_itf_strmif_0156_0002 - { - REFERENCE_TIME tStart; - REFERENCE_TIME tStop; - DWORD dwStartCookie; - DWORD dwStopCookie; - DWORD dwFlags; - } AM_STREAM_INFO; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0156_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0156_v0_0_s_ifspec; - -#ifndef __IAMStreamControl_INTERFACE_DEFINED__ -#define __IAMStreamControl_INTERFACE_DEFINED__ - -/* interface IAMStreamControl */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMStreamControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("36b73881-c2c8-11cf-8b46-00805f6cef60") - IAMStreamControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE StartAt( - /* [in] */ const REFERENCE_TIME *ptStart, - /* [in] */ DWORD dwCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE StopAt( - /* [in] */ const REFERENCE_TIME *ptStop, - /* [in] */ BOOL bSendExtra, - /* [in] */ DWORD dwCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInfo( - /* [out] */ AM_STREAM_INFO *pInfo) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMStreamControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMStreamControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMStreamControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMStreamControl * This); - - HRESULT ( STDMETHODCALLTYPE *StartAt )( - IAMStreamControl * This, - /* [in] */ const REFERENCE_TIME *ptStart, - /* [in] */ DWORD dwCookie); - - HRESULT ( STDMETHODCALLTYPE *StopAt )( - IAMStreamControl * This, - /* [in] */ const REFERENCE_TIME *ptStop, - /* [in] */ BOOL bSendExtra, - /* [in] */ DWORD dwCookie); - - HRESULT ( STDMETHODCALLTYPE *GetInfo )( - IAMStreamControl * This, - /* [out] */ AM_STREAM_INFO *pInfo); - - END_INTERFACE - } IAMStreamControlVtbl; - - interface IAMStreamControl - { - CONST_VTBL struct IAMStreamControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMStreamControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMStreamControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMStreamControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMStreamControl_StartAt(This,ptStart,dwCookie) \ - (This)->lpVtbl -> StartAt(This,ptStart,dwCookie) - -#define IAMStreamControl_StopAt(This,ptStop,bSendExtra,dwCookie) \ - (This)->lpVtbl -> StopAt(This,ptStop,bSendExtra,dwCookie) - -#define IAMStreamControl_GetInfo(This,pInfo) \ - (This)->lpVtbl -> GetInfo(This,pInfo) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMStreamControl_StartAt_Proxy( - IAMStreamControl * This, - /* [in] */ const REFERENCE_TIME *ptStart, - /* [in] */ DWORD dwCookie); - - -void __RPC_STUB IAMStreamControl_StartAt_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMStreamControl_StopAt_Proxy( - IAMStreamControl * This, - /* [in] */ const REFERENCE_TIME *ptStop, - /* [in] */ BOOL bSendExtra, - /* [in] */ DWORD dwCookie); - - -void __RPC_STUB IAMStreamControl_StopAt_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMStreamControl_GetInfo_Proxy( - IAMStreamControl * This, - /* [out] */ AM_STREAM_INFO *pInfo); - - -void __RPC_STUB IAMStreamControl_GetInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMStreamControl_INTERFACE_DEFINED__ */ - - -#ifndef __ISeekingPassThru_INTERFACE_DEFINED__ -#define __ISeekingPassThru_INTERFACE_DEFINED__ - -/* interface ISeekingPassThru */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_ISeekingPassThru; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("36b73883-c2c8-11cf-8b46-00805f6cef60") - ISeekingPassThru : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Init( - /* [in] */ BOOL bSupportRendering, - /* [in] */ IPin *pPin) = 0; - - }; - -#else /* C style interface */ - - typedef struct ISeekingPassThruVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ISeekingPassThru * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ISeekingPassThru * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ISeekingPassThru * This); - - HRESULT ( STDMETHODCALLTYPE *Init )( - ISeekingPassThru * This, - /* [in] */ BOOL bSupportRendering, - /* [in] */ IPin *pPin); - - END_INTERFACE - } ISeekingPassThruVtbl; - - interface ISeekingPassThru - { - CONST_VTBL struct ISeekingPassThruVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ISeekingPassThru_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ISeekingPassThru_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ISeekingPassThru_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ISeekingPassThru_Init(This,bSupportRendering,pPin) \ - (This)->lpVtbl -> Init(This,bSupportRendering,pPin) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE ISeekingPassThru_Init_Proxy( - ISeekingPassThru * This, - /* [in] */ BOOL bSupportRendering, - /* [in] */ IPin *pPin); - - -void __RPC_STUB ISeekingPassThru_Init_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ISeekingPassThru_INTERFACE_DEFINED__ */ - - -#ifndef __IAMStreamConfig_INTERFACE_DEFINED__ -#define __IAMStreamConfig_INTERFACE_DEFINED__ - -/* interface IAMStreamConfig */ -/* [unique][uuid][object] */ - -typedef struct _VIDEO_STREAM_CONFIG_CAPS - { - GUID guid; - ULONG VideoStandard; - SIZE InputSize; - SIZE MinCroppingSize; - SIZE MaxCroppingSize; - int CropGranularityX; - int CropGranularityY; - int CropAlignX; - int CropAlignY; - SIZE MinOutputSize; - SIZE MaxOutputSize; - int OutputGranularityX; - int OutputGranularityY; - int StretchTapsX; - int StretchTapsY; - int ShrinkTapsX; - int ShrinkTapsY; - LONGLONG MinFrameInterval; - LONGLONG MaxFrameInterval; - LONG MinBitsPerSecond; - LONG MaxBitsPerSecond; - } VIDEO_STREAM_CONFIG_CAPS; - -typedef struct _AUDIO_STREAM_CONFIG_CAPS - { - GUID guid; - ULONG MinimumChannels; - ULONG MaximumChannels; - ULONG ChannelsGranularity; - ULONG MinimumBitsPerSample; - ULONG MaximumBitsPerSample; - ULONG BitsPerSampleGranularity; - ULONG MinimumSampleFrequency; - ULONG MaximumSampleFrequency; - ULONG SampleFrequencyGranularity; - } AUDIO_STREAM_CONFIG_CAPS; - - -EXTERN_C const IID IID_IAMStreamConfig; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C6E13340-30AC-11d0-A18C-00A0C9118956") - IAMStreamConfig : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetFormat( - /* [in] */ AM_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFormat( - /* [out] */ AM_MEDIA_TYPE **ppmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNumberOfCapabilities( - /* [out] */ int *piCount, - /* [out] */ int *piSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStreamCaps( - /* [in] */ int iIndex, - /* [out] */ AM_MEDIA_TYPE **ppmt, - /* [out] */ BYTE *pSCC) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMStreamConfigVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMStreamConfig * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMStreamConfig * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMStreamConfig * This); - - HRESULT ( STDMETHODCALLTYPE *SetFormat )( - IAMStreamConfig * This, - /* [in] */ AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *GetFormat )( - IAMStreamConfig * This, - /* [out] */ AM_MEDIA_TYPE **ppmt); - - HRESULT ( STDMETHODCALLTYPE *GetNumberOfCapabilities )( - IAMStreamConfig * This, - /* [out] */ int *piCount, - /* [out] */ int *piSize); - - HRESULT ( STDMETHODCALLTYPE *GetStreamCaps )( - IAMStreamConfig * This, - /* [in] */ int iIndex, - /* [out] */ AM_MEDIA_TYPE **ppmt, - /* [out] */ BYTE *pSCC); - - END_INTERFACE - } IAMStreamConfigVtbl; - - interface IAMStreamConfig - { - CONST_VTBL struct IAMStreamConfigVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMStreamConfig_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMStreamConfig_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMStreamConfig_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMStreamConfig_SetFormat(This,pmt) \ - (This)->lpVtbl -> SetFormat(This,pmt) - -#define IAMStreamConfig_GetFormat(This,ppmt) \ - (This)->lpVtbl -> GetFormat(This,ppmt) - -#define IAMStreamConfig_GetNumberOfCapabilities(This,piCount,piSize) \ - (This)->lpVtbl -> GetNumberOfCapabilities(This,piCount,piSize) - -#define IAMStreamConfig_GetStreamCaps(This,iIndex,ppmt,pSCC) \ - (This)->lpVtbl -> GetStreamCaps(This,iIndex,ppmt,pSCC) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMStreamConfig_SetFormat_Proxy( - IAMStreamConfig * This, - /* [in] */ AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IAMStreamConfig_SetFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMStreamConfig_GetFormat_Proxy( - IAMStreamConfig * This, - /* [out] */ AM_MEDIA_TYPE **ppmt); - - -void __RPC_STUB IAMStreamConfig_GetFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMStreamConfig_GetNumberOfCapabilities_Proxy( - IAMStreamConfig * This, - /* [out] */ int *piCount, - /* [out] */ int *piSize); - - -void __RPC_STUB IAMStreamConfig_GetNumberOfCapabilities_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMStreamConfig_GetStreamCaps_Proxy( - IAMStreamConfig * This, - /* [in] */ int iIndex, - /* [out] */ AM_MEDIA_TYPE **ppmt, - /* [out] */ BYTE *pSCC); - - -void __RPC_STUB IAMStreamConfig_GetStreamCaps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMStreamConfig_INTERFACE_DEFINED__ */ - - -#ifndef __IConfigInterleaving_INTERFACE_DEFINED__ -#define __IConfigInterleaving_INTERFACE_DEFINED__ - -/* interface IConfigInterleaving */ -/* [unique][uuid][object] */ - -typedef /* [public][public][public] */ -enum __MIDL_IConfigInterleaving_0001 - { INTERLEAVE_NONE = 0, - INTERLEAVE_CAPTURE = INTERLEAVE_NONE + 1, - INTERLEAVE_FULL = INTERLEAVE_CAPTURE + 1, - INTERLEAVE_NONE_BUFFERED = INTERLEAVE_FULL + 1 - } InterleavingMode; - - -EXTERN_C const IID IID_IConfigInterleaving; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("BEE3D220-157B-11d0-BD23-00A0C911CE86") - IConfigInterleaving : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE put_Mode( - /* [in] */ InterleavingMode mode) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Mode( - /* [out] */ InterleavingMode *pMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Interleaving( - /* [in] */ const REFERENCE_TIME *prtInterleave, - /* [in] */ const REFERENCE_TIME *prtPreroll) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Interleaving( - /* [out] */ REFERENCE_TIME *prtInterleave, - /* [out] */ REFERENCE_TIME *prtPreroll) = 0; - - }; - -#else /* C style interface */ - - typedef struct IConfigInterleavingVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IConfigInterleaving * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IConfigInterleaving * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IConfigInterleaving * This); - - HRESULT ( STDMETHODCALLTYPE *put_Mode )( - IConfigInterleaving * This, - /* [in] */ InterleavingMode mode); - - HRESULT ( STDMETHODCALLTYPE *get_Mode )( - IConfigInterleaving * This, - /* [out] */ InterleavingMode *pMode); - - HRESULT ( STDMETHODCALLTYPE *put_Interleaving )( - IConfigInterleaving * This, - /* [in] */ const REFERENCE_TIME *prtInterleave, - /* [in] */ const REFERENCE_TIME *prtPreroll); - - HRESULT ( STDMETHODCALLTYPE *get_Interleaving )( - IConfigInterleaving * This, - /* [out] */ REFERENCE_TIME *prtInterleave, - /* [out] */ REFERENCE_TIME *prtPreroll); - - END_INTERFACE - } IConfigInterleavingVtbl; - - interface IConfigInterleaving - { - CONST_VTBL struct IConfigInterleavingVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IConfigInterleaving_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IConfigInterleaving_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IConfigInterleaving_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IConfigInterleaving_put_Mode(This,mode) \ - (This)->lpVtbl -> put_Mode(This,mode) - -#define IConfigInterleaving_get_Mode(This,pMode) \ - (This)->lpVtbl -> get_Mode(This,pMode) - -#define IConfigInterleaving_put_Interleaving(This,prtInterleave,prtPreroll) \ - (This)->lpVtbl -> put_Interleaving(This,prtInterleave,prtPreroll) - -#define IConfigInterleaving_get_Interleaving(This,prtInterleave,prtPreroll) \ - (This)->lpVtbl -> get_Interleaving(This,prtInterleave,prtPreroll) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IConfigInterleaving_put_Mode_Proxy( - IConfigInterleaving * This, - /* [in] */ InterleavingMode mode); - - -void __RPC_STUB IConfigInterleaving_put_Mode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigInterleaving_get_Mode_Proxy( - IConfigInterleaving * This, - /* [out] */ InterleavingMode *pMode); - - -void __RPC_STUB IConfigInterleaving_get_Mode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigInterleaving_put_Interleaving_Proxy( - IConfigInterleaving * This, - /* [in] */ const REFERENCE_TIME *prtInterleave, - /* [in] */ const REFERENCE_TIME *prtPreroll); - - -void __RPC_STUB IConfigInterleaving_put_Interleaving_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigInterleaving_get_Interleaving_Proxy( - IConfigInterleaving * This, - /* [out] */ REFERENCE_TIME *prtInterleave, - /* [out] */ REFERENCE_TIME *prtPreroll); - - -void __RPC_STUB IConfigInterleaving_get_Interleaving_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IConfigInterleaving_INTERFACE_DEFINED__ */ - - -#ifndef __IConfigAviMux_INTERFACE_DEFINED__ -#define __IConfigAviMux_INTERFACE_DEFINED__ - -/* interface IConfigAviMux */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IConfigAviMux; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("5ACD6AA0-F482-11ce-8B67-00AA00A3F1A6") - IConfigAviMux : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetMasterStream( - /* [in] */ LONG iStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMasterStream( - /* [out] */ LONG *pStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOutputCompatibilityIndex( - /* [in] */ BOOL fOldIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetOutputCompatibilityIndex( - /* [out] */ BOOL *pfOldIndex) = 0; - - }; - -#else /* C style interface */ - - typedef struct IConfigAviMuxVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IConfigAviMux * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IConfigAviMux * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IConfigAviMux * This); - - HRESULT ( STDMETHODCALLTYPE *SetMasterStream )( - IConfigAviMux * This, - /* [in] */ LONG iStream); - - HRESULT ( STDMETHODCALLTYPE *GetMasterStream )( - IConfigAviMux * This, - /* [out] */ LONG *pStream); - - HRESULT ( STDMETHODCALLTYPE *SetOutputCompatibilityIndex )( - IConfigAviMux * This, - /* [in] */ BOOL fOldIndex); - - HRESULT ( STDMETHODCALLTYPE *GetOutputCompatibilityIndex )( - IConfigAviMux * This, - /* [out] */ BOOL *pfOldIndex); - - END_INTERFACE - } IConfigAviMuxVtbl; - - interface IConfigAviMux - { - CONST_VTBL struct IConfigAviMuxVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IConfigAviMux_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IConfigAviMux_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IConfigAviMux_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IConfigAviMux_SetMasterStream(This,iStream) \ - (This)->lpVtbl -> SetMasterStream(This,iStream) - -#define IConfigAviMux_GetMasterStream(This,pStream) \ - (This)->lpVtbl -> GetMasterStream(This,pStream) - -#define IConfigAviMux_SetOutputCompatibilityIndex(This,fOldIndex) \ - (This)->lpVtbl -> SetOutputCompatibilityIndex(This,fOldIndex) - -#define IConfigAviMux_GetOutputCompatibilityIndex(This,pfOldIndex) \ - (This)->lpVtbl -> GetOutputCompatibilityIndex(This,pfOldIndex) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IConfigAviMux_SetMasterStream_Proxy( - IConfigAviMux * This, - /* [in] */ LONG iStream); - - -void __RPC_STUB IConfigAviMux_SetMasterStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigAviMux_GetMasterStream_Proxy( - IConfigAviMux * This, - /* [out] */ LONG *pStream); - - -void __RPC_STUB IConfigAviMux_GetMasterStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigAviMux_SetOutputCompatibilityIndex_Proxy( - IConfigAviMux * This, - /* [in] */ BOOL fOldIndex); - - -void __RPC_STUB IConfigAviMux_SetOutputCompatibilityIndex_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IConfigAviMux_GetOutputCompatibilityIndex_Proxy( - IConfigAviMux * This, - /* [out] */ BOOL *pfOldIndex); - - -void __RPC_STUB IConfigAviMux_GetOutputCompatibilityIndex_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IConfigAviMux_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0163 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0163_0001 - { CompressionCaps_CanQuality = 0x1, - CompressionCaps_CanCrunch = 0x2, - CompressionCaps_CanKeyFrame = 0x4, - CompressionCaps_CanBFrame = 0x8, - CompressionCaps_CanWindow = 0x10 - } CompressionCaps; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0163_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0163_v0_0_s_ifspec; - -#ifndef __IAMVideoCompression_INTERFACE_DEFINED__ -#define __IAMVideoCompression_INTERFACE_DEFINED__ - -/* interface IAMVideoCompression */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMVideoCompression; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C6E13343-30AC-11d0-A18C-00A0C9118956") - IAMVideoCompression : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE put_KeyFrameRate( - /* [in] */ long KeyFrameRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_KeyFrameRate( - /* [out] */ long *pKeyFrameRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_PFramesPerKeyFrame( - /* [in] */ long PFramesPerKeyFrame) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_PFramesPerKeyFrame( - /* [out] */ long *pPFramesPerKeyFrame) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Quality( - /* [in] */ double Quality) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Quality( - /* [out] */ double *pQuality) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_WindowSize( - /* [in] */ DWORDLONG WindowSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_WindowSize( - /* [out] */ DWORDLONG *pWindowSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInfo( - /* [size_is][out] */ WCHAR *pszVersion, - /* [out][in] */ int *pcbVersion, - /* [size_is][out] */ LPWSTR pszDescription, - /* [out][in] */ int *pcbDescription, - /* [out] */ long *pDefaultKeyFrameRate, - /* [out] */ long *pDefaultPFramesPerKey, - /* [out] */ double *pDefaultQuality, - /* [out] */ long *pCapabilities) = 0; - - virtual HRESULT STDMETHODCALLTYPE OverrideKeyFrame( - /* [in] */ long FrameNumber) = 0; - - virtual HRESULT STDMETHODCALLTYPE OverrideFrameSize( - /* [in] */ long FrameNumber, - /* [in] */ long Size) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMVideoCompressionVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMVideoCompression * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMVideoCompression * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMVideoCompression * This); - - HRESULT ( STDMETHODCALLTYPE *put_KeyFrameRate )( - IAMVideoCompression * This, - /* [in] */ long KeyFrameRate); - - HRESULT ( STDMETHODCALLTYPE *get_KeyFrameRate )( - IAMVideoCompression * This, - /* [out] */ long *pKeyFrameRate); - - HRESULT ( STDMETHODCALLTYPE *put_PFramesPerKeyFrame )( - IAMVideoCompression * This, - /* [in] */ long PFramesPerKeyFrame); - - HRESULT ( STDMETHODCALLTYPE *get_PFramesPerKeyFrame )( - IAMVideoCompression * This, - /* [out] */ long *pPFramesPerKeyFrame); - - HRESULT ( STDMETHODCALLTYPE *put_Quality )( - IAMVideoCompression * This, - /* [in] */ double Quality); - - HRESULT ( STDMETHODCALLTYPE *get_Quality )( - IAMVideoCompression * This, - /* [out] */ double *pQuality); - - HRESULT ( STDMETHODCALLTYPE *put_WindowSize )( - IAMVideoCompression * This, - /* [in] */ DWORDLONG WindowSize); - - HRESULT ( STDMETHODCALLTYPE *get_WindowSize )( - IAMVideoCompression * This, - /* [out] */ DWORDLONG *pWindowSize); - - HRESULT ( STDMETHODCALLTYPE *GetInfo )( - IAMVideoCompression * This, - /* [size_is][out] */ WCHAR *pszVersion, - /* [out][in] */ int *pcbVersion, - /* [size_is][out] */ LPWSTR pszDescription, - /* [out][in] */ int *pcbDescription, - /* [out] */ long *pDefaultKeyFrameRate, - /* [out] */ long *pDefaultPFramesPerKey, - /* [out] */ double *pDefaultQuality, - /* [out] */ long *pCapabilities); - - HRESULT ( STDMETHODCALLTYPE *OverrideKeyFrame )( - IAMVideoCompression * This, - /* [in] */ long FrameNumber); - - HRESULT ( STDMETHODCALLTYPE *OverrideFrameSize )( - IAMVideoCompression * This, - /* [in] */ long FrameNumber, - /* [in] */ long Size); - - END_INTERFACE - } IAMVideoCompressionVtbl; - - interface IAMVideoCompression - { - CONST_VTBL struct IAMVideoCompressionVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMVideoCompression_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMVideoCompression_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMVideoCompression_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMVideoCompression_put_KeyFrameRate(This,KeyFrameRate) \ - (This)->lpVtbl -> put_KeyFrameRate(This,KeyFrameRate) - -#define IAMVideoCompression_get_KeyFrameRate(This,pKeyFrameRate) \ - (This)->lpVtbl -> get_KeyFrameRate(This,pKeyFrameRate) - -#define IAMVideoCompression_put_PFramesPerKeyFrame(This,PFramesPerKeyFrame) \ - (This)->lpVtbl -> put_PFramesPerKeyFrame(This,PFramesPerKeyFrame) - -#define IAMVideoCompression_get_PFramesPerKeyFrame(This,pPFramesPerKeyFrame) \ - (This)->lpVtbl -> get_PFramesPerKeyFrame(This,pPFramesPerKeyFrame) - -#define IAMVideoCompression_put_Quality(This,Quality) \ - (This)->lpVtbl -> put_Quality(This,Quality) - -#define IAMVideoCompression_get_Quality(This,pQuality) \ - (This)->lpVtbl -> get_Quality(This,pQuality) - -#define IAMVideoCompression_put_WindowSize(This,WindowSize) \ - (This)->lpVtbl -> put_WindowSize(This,WindowSize) - -#define IAMVideoCompression_get_WindowSize(This,pWindowSize) \ - (This)->lpVtbl -> get_WindowSize(This,pWindowSize) - -#define IAMVideoCompression_GetInfo(This,pszVersion,pcbVersion,pszDescription,pcbDescription,pDefaultKeyFrameRate,pDefaultPFramesPerKey,pDefaultQuality,pCapabilities) \ - (This)->lpVtbl -> GetInfo(This,pszVersion,pcbVersion,pszDescription,pcbDescription,pDefaultKeyFrameRate,pDefaultPFramesPerKey,pDefaultQuality,pCapabilities) - -#define IAMVideoCompression_OverrideKeyFrame(This,FrameNumber) \ - (This)->lpVtbl -> OverrideKeyFrame(This,FrameNumber) - -#define IAMVideoCompression_OverrideFrameSize(This,FrameNumber,Size) \ - (This)->lpVtbl -> OverrideFrameSize(This,FrameNumber,Size) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMVideoCompression_put_KeyFrameRate_Proxy( - IAMVideoCompression * This, - /* [in] */ long KeyFrameRate); - - -void __RPC_STUB IAMVideoCompression_put_KeyFrameRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoCompression_get_KeyFrameRate_Proxy( - IAMVideoCompression * This, - /* [out] */ long *pKeyFrameRate); - - -void __RPC_STUB IAMVideoCompression_get_KeyFrameRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoCompression_put_PFramesPerKeyFrame_Proxy( - IAMVideoCompression * This, - /* [in] */ long PFramesPerKeyFrame); - - -void __RPC_STUB IAMVideoCompression_put_PFramesPerKeyFrame_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoCompression_get_PFramesPerKeyFrame_Proxy( - IAMVideoCompression * This, - /* [out] */ long *pPFramesPerKeyFrame); - - -void __RPC_STUB IAMVideoCompression_get_PFramesPerKeyFrame_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoCompression_put_Quality_Proxy( - IAMVideoCompression * This, - /* [in] */ double Quality); - - -void __RPC_STUB IAMVideoCompression_put_Quality_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoCompression_get_Quality_Proxy( - IAMVideoCompression * This, - /* [out] */ double *pQuality); - - -void __RPC_STUB IAMVideoCompression_get_Quality_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoCompression_put_WindowSize_Proxy( - IAMVideoCompression * This, - /* [in] */ DWORDLONG WindowSize); - - -void __RPC_STUB IAMVideoCompression_put_WindowSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoCompression_get_WindowSize_Proxy( - IAMVideoCompression * This, - /* [out] */ DWORDLONG *pWindowSize); - - -void __RPC_STUB IAMVideoCompression_get_WindowSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoCompression_GetInfo_Proxy( - IAMVideoCompression * This, - /* [size_is][out] */ WCHAR *pszVersion, - /* [out][in] */ int *pcbVersion, - /* [size_is][out] */ LPWSTR pszDescription, - /* [out][in] */ int *pcbDescription, - /* [out] */ long *pDefaultKeyFrameRate, - /* [out] */ long *pDefaultPFramesPerKey, - /* [out] */ double *pDefaultQuality, - /* [out] */ long *pCapabilities); - - -void __RPC_STUB IAMVideoCompression_GetInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoCompression_OverrideKeyFrame_Proxy( - IAMVideoCompression * This, - /* [in] */ long FrameNumber); - - -void __RPC_STUB IAMVideoCompression_OverrideKeyFrame_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoCompression_OverrideFrameSize_Proxy( - IAMVideoCompression * This, - /* [in] */ long FrameNumber, - /* [in] */ long Size); - - -void __RPC_STUB IAMVideoCompression_OverrideFrameSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMVideoCompression_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0164 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0164_0001 - { VfwCaptureDialog_Source = 0x1, - VfwCaptureDialog_Format = 0x2, - VfwCaptureDialog_Display = 0x4 - } VfwCaptureDialogs; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0164_0002 - { VfwCompressDialog_Config = 0x1, - VfwCompressDialog_About = 0x2, - VfwCompressDialog_QueryConfig = 0x4, - VfwCompressDialog_QueryAbout = 0x8 - } VfwCompressDialogs; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0164_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0164_v0_0_s_ifspec; - -#ifndef __IAMVfwCaptureDialogs_INTERFACE_DEFINED__ -#define __IAMVfwCaptureDialogs_INTERFACE_DEFINED__ - -/* interface IAMVfwCaptureDialogs */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IAMVfwCaptureDialogs; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("D8D715A0-6E5E-11D0-B3F0-00AA003761C5") - IAMVfwCaptureDialogs : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE HasDialog( - /* [in] */ int iDialog) = 0; - - virtual HRESULT STDMETHODCALLTYPE ShowDialog( - /* [in] */ int iDialog, - /* [in] */ HWND hwnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SendDriverMessage( - /* [in] */ int iDialog, - /* [in] */ int uMsg, - /* [in] */ long dw1, - /* [in] */ long dw2) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMVfwCaptureDialogsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMVfwCaptureDialogs * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMVfwCaptureDialogs * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMVfwCaptureDialogs * This); - - HRESULT ( STDMETHODCALLTYPE *HasDialog )( - IAMVfwCaptureDialogs * This, - /* [in] */ int iDialog); - - HRESULT ( STDMETHODCALLTYPE *ShowDialog )( - IAMVfwCaptureDialogs * This, - /* [in] */ int iDialog, - /* [in] */ HWND hwnd); - - HRESULT ( STDMETHODCALLTYPE *SendDriverMessage )( - IAMVfwCaptureDialogs * This, - /* [in] */ int iDialog, - /* [in] */ int uMsg, - /* [in] */ long dw1, - /* [in] */ long dw2); - - END_INTERFACE - } IAMVfwCaptureDialogsVtbl; - - interface IAMVfwCaptureDialogs - { - CONST_VTBL struct IAMVfwCaptureDialogsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMVfwCaptureDialogs_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMVfwCaptureDialogs_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMVfwCaptureDialogs_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMVfwCaptureDialogs_HasDialog(This,iDialog) \ - (This)->lpVtbl -> HasDialog(This,iDialog) - -#define IAMVfwCaptureDialogs_ShowDialog(This,iDialog,hwnd) \ - (This)->lpVtbl -> ShowDialog(This,iDialog,hwnd) - -#define IAMVfwCaptureDialogs_SendDriverMessage(This,iDialog,uMsg,dw1,dw2) \ - (This)->lpVtbl -> SendDriverMessage(This,iDialog,uMsg,dw1,dw2) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMVfwCaptureDialogs_HasDialog_Proxy( - IAMVfwCaptureDialogs * This, - /* [in] */ int iDialog); - - -void __RPC_STUB IAMVfwCaptureDialogs_HasDialog_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVfwCaptureDialogs_ShowDialog_Proxy( - IAMVfwCaptureDialogs * This, - /* [in] */ int iDialog, - /* [in] */ HWND hwnd); - - -void __RPC_STUB IAMVfwCaptureDialogs_ShowDialog_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVfwCaptureDialogs_SendDriverMessage_Proxy( - IAMVfwCaptureDialogs * This, - /* [in] */ int iDialog, - /* [in] */ int uMsg, - /* [in] */ long dw1, - /* [in] */ long dw2); - - -void __RPC_STUB IAMVfwCaptureDialogs_SendDriverMessage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMVfwCaptureDialogs_INTERFACE_DEFINED__ */ - - -#ifndef __IAMVfwCompressDialogs_INTERFACE_DEFINED__ -#define __IAMVfwCompressDialogs_INTERFACE_DEFINED__ - -/* interface IAMVfwCompressDialogs */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IAMVfwCompressDialogs; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("D8D715A3-6E5E-11D0-B3F0-00AA003761C5") - IAMVfwCompressDialogs : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE ShowDialog( - /* [in] */ int iDialog, - /* [in] */ HWND hwnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetState( - /* [size_is][out] */ LPVOID pState, - /* [out][in] */ int *pcbState) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetState( - /* [size_is][in] */ LPVOID pState, - /* [in] */ int cbState) = 0; - - virtual HRESULT STDMETHODCALLTYPE SendDriverMessage( - /* [in] */ int uMsg, - /* [in] */ long dw1, - /* [in] */ long dw2) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMVfwCompressDialogsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMVfwCompressDialogs * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMVfwCompressDialogs * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMVfwCompressDialogs * This); - - HRESULT ( STDMETHODCALLTYPE *ShowDialog )( - IAMVfwCompressDialogs * This, - /* [in] */ int iDialog, - /* [in] */ HWND hwnd); - - HRESULT ( STDMETHODCALLTYPE *GetState )( - IAMVfwCompressDialogs * This, - /* [size_is][out] */ LPVOID pState, - /* [out][in] */ int *pcbState); - - HRESULT ( STDMETHODCALLTYPE *SetState )( - IAMVfwCompressDialogs * This, - /* [size_is][in] */ LPVOID pState, - /* [in] */ int cbState); - - HRESULT ( STDMETHODCALLTYPE *SendDriverMessage )( - IAMVfwCompressDialogs * This, - /* [in] */ int uMsg, - /* [in] */ long dw1, - /* [in] */ long dw2); - - END_INTERFACE - } IAMVfwCompressDialogsVtbl; - - interface IAMVfwCompressDialogs - { - CONST_VTBL struct IAMVfwCompressDialogsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMVfwCompressDialogs_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMVfwCompressDialogs_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMVfwCompressDialogs_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMVfwCompressDialogs_ShowDialog(This,iDialog,hwnd) \ - (This)->lpVtbl -> ShowDialog(This,iDialog,hwnd) - -#define IAMVfwCompressDialogs_GetState(This,pState,pcbState) \ - (This)->lpVtbl -> GetState(This,pState,pcbState) - -#define IAMVfwCompressDialogs_SetState(This,pState,cbState) \ - (This)->lpVtbl -> SetState(This,pState,cbState) - -#define IAMVfwCompressDialogs_SendDriverMessage(This,uMsg,dw1,dw2) \ - (This)->lpVtbl -> SendDriverMessage(This,uMsg,dw1,dw2) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMVfwCompressDialogs_ShowDialog_Proxy( - IAMVfwCompressDialogs * This, - /* [in] */ int iDialog, - /* [in] */ HWND hwnd); - - -void __RPC_STUB IAMVfwCompressDialogs_ShowDialog_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVfwCompressDialogs_GetState_Proxy( - IAMVfwCompressDialogs * This, - /* [size_is][out] */ LPVOID pState, - /* [out][in] */ int *pcbState); - - -void __RPC_STUB IAMVfwCompressDialogs_GetState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVfwCompressDialogs_SetState_Proxy( - IAMVfwCompressDialogs * This, - /* [size_is][in] */ LPVOID pState, - /* [in] */ int cbState); - - -void __RPC_STUB IAMVfwCompressDialogs_SetState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVfwCompressDialogs_SendDriverMessage_Proxy( - IAMVfwCompressDialogs * This, - /* [in] */ int uMsg, - /* [in] */ long dw1, - /* [in] */ long dw2); - - -void __RPC_STUB IAMVfwCompressDialogs_SendDriverMessage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMVfwCompressDialogs_INTERFACE_DEFINED__ */ - - -#ifndef __IAMDroppedFrames_INTERFACE_DEFINED__ -#define __IAMDroppedFrames_INTERFACE_DEFINED__ - -/* interface IAMDroppedFrames */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMDroppedFrames; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C6E13344-30AC-11d0-A18C-00A0C9118956") - IAMDroppedFrames : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetNumDropped( - /* [out] */ long *plDropped) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNumNotDropped( - /* [out] */ long *plNotDropped) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDroppedInfo( - /* [in] */ long lSize, - /* [out] */ long *plArray, - /* [out] */ long *plNumCopied) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAverageFrameSize( - /* [out] */ long *plAverageSize) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMDroppedFramesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMDroppedFrames * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMDroppedFrames * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMDroppedFrames * This); - - HRESULT ( STDMETHODCALLTYPE *GetNumDropped )( - IAMDroppedFrames * This, - /* [out] */ long *plDropped); - - HRESULT ( STDMETHODCALLTYPE *GetNumNotDropped )( - IAMDroppedFrames * This, - /* [out] */ long *plNotDropped); - - HRESULT ( STDMETHODCALLTYPE *GetDroppedInfo )( - IAMDroppedFrames * This, - /* [in] */ long lSize, - /* [out] */ long *plArray, - /* [out] */ long *plNumCopied); - - HRESULT ( STDMETHODCALLTYPE *GetAverageFrameSize )( - IAMDroppedFrames * This, - /* [out] */ long *plAverageSize); - - END_INTERFACE - } IAMDroppedFramesVtbl; - - interface IAMDroppedFrames - { - CONST_VTBL struct IAMDroppedFramesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMDroppedFrames_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMDroppedFrames_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMDroppedFrames_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMDroppedFrames_GetNumDropped(This,plDropped) \ - (This)->lpVtbl -> GetNumDropped(This,plDropped) - -#define IAMDroppedFrames_GetNumNotDropped(This,plNotDropped) \ - (This)->lpVtbl -> GetNumNotDropped(This,plNotDropped) - -#define IAMDroppedFrames_GetDroppedInfo(This,lSize,plArray,plNumCopied) \ - (This)->lpVtbl -> GetDroppedInfo(This,lSize,plArray,plNumCopied) - -#define IAMDroppedFrames_GetAverageFrameSize(This,plAverageSize) \ - (This)->lpVtbl -> GetAverageFrameSize(This,plAverageSize) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMDroppedFrames_GetNumDropped_Proxy( - IAMDroppedFrames * This, - /* [out] */ long *plDropped); - - -void __RPC_STUB IAMDroppedFrames_GetNumDropped_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMDroppedFrames_GetNumNotDropped_Proxy( - IAMDroppedFrames * This, - /* [out] */ long *plNotDropped); - - -void __RPC_STUB IAMDroppedFrames_GetNumNotDropped_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMDroppedFrames_GetDroppedInfo_Proxy( - IAMDroppedFrames * This, - /* [in] */ long lSize, - /* [out] */ long *plArray, - /* [out] */ long *plNumCopied); - - -void __RPC_STUB IAMDroppedFrames_GetDroppedInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMDroppedFrames_GetAverageFrameSize_Proxy( - IAMDroppedFrames * This, - /* [out] */ long *plAverageSize); - - -void __RPC_STUB IAMDroppedFrames_GetAverageFrameSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMDroppedFrames_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0167 */ -/* [local] */ - -#define AMF_AUTOMATICGAIN -1.0 - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0167_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0167_v0_0_s_ifspec; - -#ifndef __IAMAudioInputMixer_INTERFACE_DEFINED__ -#define __IAMAudioInputMixer_INTERFACE_DEFINED__ - -/* interface IAMAudioInputMixer */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMAudioInputMixer; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("54C39221-8380-11d0-B3F0-00AA003761C5") - IAMAudioInputMixer : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE put_Enable( - /* [in] */ BOOL fEnable) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Enable( - /* [out] */ BOOL *pfEnable) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Mono( - /* [in] */ BOOL fMono) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Mono( - /* [out] */ BOOL *pfMono) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_MixLevel( - /* [in] */ double Level) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_MixLevel( - /* [out] */ double *pLevel) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Pan( - /* [in] */ double Pan) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Pan( - /* [out] */ double *pPan) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Loudness( - /* [in] */ BOOL fLoudness) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Loudness( - /* [out] */ BOOL *pfLoudness) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Treble( - /* [in] */ double Treble) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Treble( - /* [out] */ double *pTreble) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_TrebleRange( - /* [out] */ double *pRange) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Bass( - /* [in] */ double Bass) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Bass( - /* [out] */ double *pBass) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_BassRange( - /* [out] */ double *pRange) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMAudioInputMixerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMAudioInputMixer * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMAudioInputMixer * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMAudioInputMixer * This); - - HRESULT ( STDMETHODCALLTYPE *put_Enable )( - IAMAudioInputMixer * This, - /* [in] */ BOOL fEnable); - - HRESULT ( STDMETHODCALLTYPE *get_Enable )( - IAMAudioInputMixer * This, - /* [out] */ BOOL *pfEnable); - - HRESULT ( STDMETHODCALLTYPE *put_Mono )( - IAMAudioInputMixer * This, - /* [in] */ BOOL fMono); - - HRESULT ( STDMETHODCALLTYPE *get_Mono )( - IAMAudioInputMixer * This, - /* [out] */ BOOL *pfMono); - - HRESULT ( STDMETHODCALLTYPE *put_MixLevel )( - IAMAudioInputMixer * This, - /* [in] */ double Level); - - HRESULT ( STDMETHODCALLTYPE *get_MixLevel )( - IAMAudioInputMixer * This, - /* [out] */ double *pLevel); - - HRESULT ( STDMETHODCALLTYPE *put_Pan )( - IAMAudioInputMixer * This, - /* [in] */ double Pan); - - HRESULT ( STDMETHODCALLTYPE *get_Pan )( - IAMAudioInputMixer * This, - /* [out] */ double *pPan); - - HRESULT ( STDMETHODCALLTYPE *put_Loudness )( - IAMAudioInputMixer * This, - /* [in] */ BOOL fLoudness); - - HRESULT ( STDMETHODCALLTYPE *get_Loudness )( - IAMAudioInputMixer * This, - /* [out] */ BOOL *pfLoudness); - - HRESULT ( STDMETHODCALLTYPE *put_Treble )( - IAMAudioInputMixer * This, - /* [in] */ double Treble); - - HRESULT ( STDMETHODCALLTYPE *get_Treble )( - IAMAudioInputMixer * This, - /* [out] */ double *pTreble); - - HRESULT ( STDMETHODCALLTYPE *get_TrebleRange )( - IAMAudioInputMixer * This, - /* [out] */ double *pRange); - - HRESULT ( STDMETHODCALLTYPE *put_Bass )( - IAMAudioInputMixer * This, - /* [in] */ double Bass); - - HRESULT ( STDMETHODCALLTYPE *get_Bass )( - IAMAudioInputMixer * This, - /* [out] */ double *pBass); - - HRESULT ( STDMETHODCALLTYPE *get_BassRange )( - IAMAudioInputMixer * This, - /* [out] */ double *pRange); - - END_INTERFACE - } IAMAudioInputMixerVtbl; - - interface IAMAudioInputMixer - { - CONST_VTBL struct IAMAudioInputMixerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMAudioInputMixer_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMAudioInputMixer_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMAudioInputMixer_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMAudioInputMixer_put_Enable(This,fEnable) \ - (This)->lpVtbl -> put_Enable(This,fEnable) - -#define IAMAudioInputMixer_get_Enable(This,pfEnable) \ - (This)->lpVtbl -> get_Enable(This,pfEnable) - -#define IAMAudioInputMixer_put_Mono(This,fMono) \ - (This)->lpVtbl -> put_Mono(This,fMono) - -#define IAMAudioInputMixer_get_Mono(This,pfMono) \ - (This)->lpVtbl -> get_Mono(This,pfMono) - -#define IAMAudioInputMixer_put_MixLevel(This,Level) \ - (This)->lpVtbl -> put_MixLevel(This,Level) - -#define IAMAudioInputMixer_get_MixLevel(This,pLevel) \ - (This)->lpVtbl -> get_MixLevel(This,pLevel) - -#define IAMAudioInputMixer_put_Pan(This,Pan) \ - (This)->lpVtbl -> put_Pan(This,Pan) - -#define IAMAudioInputMixer_get_Pan(This,pPan) \ - (This)->lpVtbl -> get_Pan(This,pPan) - -#define IAMAudioInputMixer_put_Loudness(This,fLoudness) \ - (This)->lpVtbl -> put_Loudness(This,fLoudness) - -#define IAMAudioInputMixer_get_Loudness(This,pfLoudness) \ - (This)->lpVtbl -> get_Loudness(This,pfLoudness) - -#define IAMAudioInputMixer_put_Treble(This,Treble) \ - (This)->lpVtbl -> put_Treble(This,Treble) - -#define IAMAudioInputMixer_get_Treble(This,pTreble) \ - (This)->lpVtbl -> get_Treble(This,pTreble) - -#define IAMAudioInputMixer_get_TrebleRange(This,pRange) \ - (This)->lpVtbl -> get_TrebleRange(This,pRange) - -#define IAMAudioInputMixer_put_Bass(This,Bass) \ - (This)->lpVtbl -> put_Bass(This,Bass) - -#define IAMAudioInputMixer_get_Bass(This,pBass) \ - (This)->lpVtbl -> get_Bass(This,pBass) - -#define IAMAudioInputMixer_get_BassRange(This,pRange) \ - (This)->lpVtbl -> get_BassRange(This,pRange) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_put_Enable_Proxy( - IAMAudioInputMixer * This, - /* [in] */ BOOL fEnable); - - -void __RPC_STUB IAMAudioInputMixer_put_Enable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_get_Enable_Proxy( - IAMAudioInputMixer * This, - /* [out] */ BOOL *pfEnable); - - -void __RPC_STUB IAMAudioInputMixer_get_Enable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_put_Mono_Proxy( - IAMAudioInputMixer * This, - /* [in] */ BOOL fMono); - - -void __RPC_STUB IAMAudioInputMixer_put_Mono_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_get_Mono_Proxy( - IAMAudioInputMixer * This, - /* [out] */ BOOL *pfMono); - - -void __RPC_STUB IAMAudioInputMixer_get_Mono_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_put_MixLevel_Proxy( - IAMAudioInputMixer * This, - /* [in] */ double Level); - - -void __RPC_STUB IAMAudioInputMixer_put_MixLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_get_MixLevel_Proxy( - IAMAudioInputMixer * This, - /* [out] */ double *pLevel); - - -void __RPC_STUB IAMAudioInputMixer_get_MixLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_put_Pan_Proxy( - IAMAudioInputMixer * This, - /* [in] */ double Pan); - - -void __RPC_STUB IAMAudioInputMixer_put_Pan_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_get_Pan_Proxy( - IAMAudioInputMixer * This, - /* [out] */ double *pPan); - - -void __RPC_STUB IAMAudioInputMixer_get_Pan_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_put_Loudness_Proxy( - IAMAudioInputMixer * This, - /* [in] */ BOOL fLoudness); - - -void __RPC_STUB IAMAudioInputMixer_put_Loudness_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_get_Loudness_Proxy( - IAMAudioInputMixer * This, - /* [out] */ BOOL *pfLoudness); - - -void __RPC_STUB IAMAudioInputMixer_get_Loudness_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_put_Treble_Proxy( - IAMAudioInputMixer * This, - /* [in] */ double Treble); - - -void __RPC_STUB IAMAudioInputMixer_put_Treble_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_get_Treble_Proxy( - IAMAudioInputMixer * This, - /* [out] */ double *pTreble); - - -void __RPC_STUB IAMAudioInputMixer_get_Treble_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_get_TrebleRange_Proxy( - IAMAudioInputMixer * This, - /* [out] */ double *pRange); - - -void __RPC_STUB IAMAudioInputMixer_get_TrebleRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_put_Bass_Proxy( - IAMAudioInputMixer * This, - /* [in] */ double Bass); - - -void __RPC_STUB IAMAudioInputMixer_put_Bass_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_get_Bass_Proxy( - IAMAudioInputMixer * This, - /* [out] */ double *pBass); - - -void __RPC_STUB IAMAudioInputMixer_get_Bass_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAudioInputMixer_get_BassRange_Proxy( - IAMAudioInputMixer * This, - /* [out] */ double *pRange); - - -void __RPC_STUB IAMAudioInputMixer_get_BassRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMAudioInputMixer_INTERFACE_DEFINED__ */ - - -#ifndef __IAMBufferNegotiation_INTERFACE_DEFINED__ -#define __IAMBufferNegotiation_INTERFACE_DEFINED__ - -/* interface IAMBufferNegotiation */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMBufferNegotiation; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("56ED71A0-AF5F-11D0-B3F0-00AA003761C5") - IAMBufferNegotiation : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SuggestAllocatorProperties( - /* [in] */ const ALLOCATOR_PROPERTIES *pprop) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllocatorProperties( - /* [out] */ ALLOCATOR_PROPERTIES *pprop) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMBufferNegotiationVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMBufferNegotiation * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMBufferNegotiation * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMBufferNegotiation * This); - - HRESULT ( STDMETHODCALLTYPE *SuggestAllocatorProperties )( - IAMBufferNegotiation * This, - /* [in] */ const ALLOCATOR_PROPERTIES *pprop); - - HRESULT ( STDMETHODCALLTYPE *GetAllocatorProperties )( - IAMBufferNegotiation * This, - /* [out] */ ALLOCATOR_PROPERTIES *pprop); - - END_INTERFACE - } IAMBufferNegotiationVtbl; - - interface IAMBufferNegotiation - { - CONST_VTBL struct IAMBufferNegotiationVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMBufferNegotiation_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMBufferNegotiation_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMBufferNegotiation_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMBufferNegotiation_SuggestAllocatorProperties(This,pprop) \ - (This)->lpVtbl -> SuggestAllocatorProperties(This,pprop) - -#define IAMBufferNegotiation_GetAllocatorProperties(This,pprop) \ - (This)->lpVtbl -> GetAllocatorProperties(This,pprop) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMBufferNegotiation_SuggestAllocatorProperties_Proxy( - IAMBufferNegotiation * This, - /* [in] */ const ALLOCATOR_PROPERTIES *pprop); - - -void __RPC_STUB IAMBufferNegotiation_SuggestAllocatorProperties_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMBufferNegotiation_GetAllocatorProperties_Proxy( - IAMBufferNegotiation * This, - /* [out] */ ALLOCATOR_PROPERTIES *pprop); - - -void __RPC_STUB IAMBufferNegotiation_GetAllocatorProperties_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMBufferNegotiation_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0169 */ -/* [local] */ - -typedef -enum tagAnalogVideoStandard - { AnalogVideo_None = 0, - AnalogVideo_NTSC_M = 0x1, - AnalogVideo_NTSC_M_J = 0x2, - AnalogVideo_NTSC_433 = 0x4, - AnalogVideo_PAL_B = 0x10, - AnalogVideo_PAL_D = 0x20, - AnalogVideo_PAL_G = 0x40, - AnalogVideo_PAL_H = 0x80, - AnalogVideo_PAL_I = 0x100, - AnalogVideo_PAL_M = 0x200, - AnalogVideo_PAL_N = 0x400, - AnalogVideo_PAL_60 = 0x800, - AnalogVideo_SECAM_B = 0x1000, - AnalogVideo_SECAM_D = 0x2000, - AnalogVideo_SECAM_G = 0x4000, - AnalogVideo_SECAM_H = 0x8000, - AnalogVideo_SECAM_K = 0x10000, - AnalogVideo_SECAM_K1 = 0x20000, - AnalogVideo_SECAM_L = 0x40000, - AnalogVideo_SECAM_L1 = 0x80000, - AnalogVideo_PAL_N_COMBO = 0x100000 - } AnalogVideoStandard; - -#define AnalogVideo_NTSC_Mask 0x00000007 -#define AnalogVideo_PAL_Mask 0x00100FF0 -#define AnalogVideo_SECAM_Mask 0x000FF000 -typedef -enum tagTunerInputType - { TunerInputCable = 0, - TunerInputAntenna = TunerInputCable + 1 - } TunerInputType; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0169_0001 - { VideoCopyProtectionMacrovisionBasic = 0, - VideoCopyProtectionMacrovisionCBI = VideoCopyProtectionMacrovisionBasic + 1 - } VideoCopyProtectionType; - -typedef -enum tagPhysicalConnectorType - { PhysConn_Video_Tuner = 1, - PhysConn_Video_Composite = PhysConn_Video_Tuner + 1, - PhysConn_Video_SVideo = PhysConn_Video_Composite + 1, - PhysConn_Video_RGB = PhysConn_Video_SVideo + 1, - PhysConn_Video_YRYBY = PhysConn_Video_RGB + 1, - PhysConn_Video_SerialDigital = PhysConn_Video_YRYBY + 1, - PhysConn_Video_ParallelDigital = PhysConn_Video_SerialDigital + 1, - PhysConn_Video_SCSI = PhysConn_Video_ParallelDigital + 1, - PhysConn_Video_AUX = PhysConn_Video_SCSI + 1, - PhysConn_Video_1394 = PhysConn_Video_AUX + 1, - PhysConn_Video_USB = PhysConn_Video_1394 + 1, - PhysConn_Video_VideoDecoder = PhysConn_Video_USB + 1, - PhysConn_Video_VideoEncoder = PhysConn_Video_VideoDecoder + 1, - PhysConn_Video_SCART = PhysConn_Video_VideoEncoder + 1, - PhysConn_Video_Black = PhysConn_Video_SCART + 1, - PhysConn_Audio_Tuner = 0x1000, - PhysConn_Audio_Line = PhysConn_Audio_Tuner + 1, - PhysConn_Audio_Mic = PhysConn_Audio_Line + 1, - PhysConn_Audio_AESDigital = PhysConn_Audio_Mic + 1, - PhysConn_Audio_SPDIFDigital = PhysConn_Audio_AESDigital + 1, - PhysConn_Audio_SCSI = PhysConn_Audio_SPDIFDigital + 1, - PhysConn_Audio_AUX = PhysConn_Audio_SCSI + 1, - PhysConn_Audio_1394 = PhysConn_Audio_AUX + 1, - PhysConn_Audio_USB = PhysConn_Audio_1394 + 1, - PhysConn_Audio_AudioDecoder = PhysConn_Audio_USB + 1 - } PhysicalConnectorType; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0169_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0169_v0_0_s_ifspec; - -#ifndef __IAMAnalogVideoDecoder_INTERFACE_DEFINED__ -#define __IAMAnalogVideoDecoder_INTERFACE_DEFINED__ - -/* interface IAMAnalogVideoDecoder */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMAnalogVideoDecoder; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C6E13350-30AC-11d0-A18C-00A0C9118956") - IAMAnalogVideoDecoder : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE get_AvailableTVFormats( - /* [out] */ long *lAnalogVideoStandard) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_TVFormat( - /* [in] */ long lAnalogVideoStandard) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_TVFormat( - /* [out] */ long *plAnalogVideoStandard) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_HorizontalLocked( - /* [out] */ long *plLocked) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_VCRHorizontalLocking( - /* [in] */ long lVCRHorizontalLocking) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_VCRHorizontalLocking( - /* [out] */ long *plVCRHorizontalLocking) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_NumberOfLines( - /* [out] */ long *plNumberOfLines) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_OutputEnable( - /* [in] */ long lOutputEnable) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_OutputEnable( - /* [out] */ long *plOutputEnable) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMAnalogVideoDecoderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMAnalogVideoDecoder * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMAnalogVideoDecoder * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMAnalogVideoDecoder * This); - - HRESULT ( STDMETHODCALLTYPE *get_AvailableTVFormats )( - IAMAnalogVideoDecoder * This, - /* [out] */ long *lAnalogVideoStandard); - - HRESULT ( STDMETHODCALLTYPE *put_TVFormat )( - IAMAnalogVideoDecoder * This, - /* [in] */ long lAnalogVideoStandard); - - HRESULT ( STDMETHODCALLTYPE *get_TVFormat )( - IAMAnalogVideoDecoder * This, - /* [out] */ long *plAnalogVideoStandard); - - HRESULT ( STDMETHODCALLTYPE *get_HorizontalLocked )( - IAMAnalogVideoDecoder * This, - /* [out] */ long *plLocked); - - HRESULT ( STDMETHODCALLTYPE *put_VCRHorizontalLocking )( - IAMAnalogVideoDecoder * This, - /* [in] */ long lVCRHorizontalLocking); - - HRESULT ( STDMETHODCALLTYPE *get_VCRHorizontalLocking )( - IAMAnalogVideoDecoder * This, - /* [out] */ long *plVCRHorizontalLocking); - - HRESULT ( STDMETHODCALLTYPE *get_NumberOfLines )( - IAMAnalogVideoDecoder * This, - /* [out] */ long *plNumberOfLines); - - HRESULT ( STDMETHODCALLTYPE *put_OutputEnable )( - IAMAnalogVideoDecoder * This, - /* [in] */ long lOutputEnable); - - HRESULT ( STDMETHODCALLTYPE *get_OutputEnable )( - IAMAnalogVideoDecoder * This, - /* [out] */ long *plOutputEnable); - - END_INTERFACE - } IAMAnalogVideoDecoderVtbl; - - interface IAMAnalogVideoDecoder - { - CONST_VTBL struct IAMAnalogVideoDecoderVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMAnalogVideoDecoder_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMAnalogVideoDecoder_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMAnalogVideoDecoder_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMAnalogVideoDecoder_get_AvailableTVFormats(This,lAnalogVideoStandard) \ - (This)->lpVtbl -> get_AvailableTVFormats(This,lAnalogVideoStandard) - -#define IAMAnalogVideoDecoder_put_TVFormat(This,lAnalogVideoStandard) \ - (This)->lpVtbl -> put_TVFormat(This,lAnalogVideoStandard) - -#define IAMAnalogVideoDecoder_get_TVFormat(This,plAnalogVideoStandard) \ - (This)->lpVtbl -> get_TVFormat(This,plAnalogVideoStandard) - -#define IAMAnalogVideoDecoder_get_HorizontalLocked(This,plLocked) \ - (This)->lpVtbl -> get_HorizontalLocked(This,plLocked) - -#define IAMAnalogVideoDecoder_put_VCRHorizontalLocking(This,lVCRHorizontalLocking) \ - (This)->lpVtbl -> put_VCRHorizontalLocking(This,lVCRHorizontalLocking) - -#define IAMAnalogVideoDecoder_get_VCRHorizontalLocking(This,plVCRHorizontalLocking) \ - (This)->lpVtbl -> get_VCRHorizontalLocking(This,plVCRHorizontalLocking) - -#define IAMAnalogVideoDecoder_get_NumberOfLines(This,plNumberOfLines) \ - (This)->lpVtbl -> get_NumberOfLines(This,plNumberOfLines) - -#define IAMAnalogVideoDecoder_put_OutputEnable(This,lOutputEnable) \ - (This)->lpVtbl -> put_OutputEnable(This,lOutputEnable) - -#define IAMAnalogVideoDecoder_get_OutputEnable(This,plOutputEnable) \ - (This)->lpVtbl -> get_OutputEnable(This,plOutputEnable) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoDecoder_get_AvailableTVFormats_Proxy( - IAMAnalogVideoDecoder * This, - /* [out] */ long *lAnalogVideoStandard); - - -void __RPC_STUB IAMAnalogVideoDecoder_get_AvailableTVFormats_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoDecoder_put_TVFormat_Proxy( - IAMAnalogVideoDecoder * This, - /* [in] */ long lAnalogVideoStandard); - - -void __RPC_STUB IAMAnalogVideoDecoder_put_TVFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoDecoder_get_TVFormat_Proxy( - IAMAnalogVideoDecoder * This, - /* [out] */ long *plAnalogVideoStandard); - - -void __RPC_STUB IAMAnalogVideoDecoder_get_TVFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoDecoder_get_HorizontalLocked_Proxy( - IAMAnalogVideoDecoder * This, - /* [out] */ long *plLocked); - - -void __RPC_STUB IAMAnalogVideoDecoder_get_HorizontalLocked_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoDecoder_put_VCRHorizontalLocking_Proxy( - IAMAnalogVideoDecoder * This, - /* [in] */ long lVCRHorizontalLocking); - - -void __RPC_STUB IAMAnalogVideoDecoder_put_VCRHorizontalLocking_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoDecoder_get_VCRHorizontalLocking_Proxy( - IAMAnalogVideoDecoder * This, - /* [out] */ long *plVCRHorizontalLocking); - - -void __RPC_STUB IAMAnalogVideoDecoder_get_VCRHorizontalLocking_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoDecoder_get_NumberOfLines_Proxy( - IAMAnalogVideoDecoder * This, - /* [out] */ long *plNumberOfLines); - - -void __RPC_STUB IAMAnalogVideoDecoder_get_NumberOfLines_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoDecoder_put_OutputEnable_Proxy( - IAMAnalogVideoDecoder * This, - /* [in] */ long lOutputEnable); - - -void __RPC_STUB IAMAnalogVideoDecoder_put_OutputEnable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoDecoder_get_OutputEnable_Proxy( - IAMAnalogVideoDecoder * This, - /* [out] */ long *plOutputEnable); - - -void __RPC_STUB IAMAnalogVideoDecoder_get_OutputEnable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMAnalogVideoDecoder_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0170 */ -/* [local] */ - -typedef -enum tagVideoProcAmpProperty - { VideoProcAmp_Brightness = 0, - VideoProcAmp_Contrast = VideoProcAmp_Brightness + 1, - VideoProcAmp_Hue = VideoProcAmp_Contrast + 1, - VideoProcAmp_Saturation = VideoProcAmp_Hue + 1, - VideoProcAmp_Sharpness = VideoProcAmp_Saturation + 1, - VideoProcAmp_Gamma = VideoProcAmp_Sharpness + 1, - VideoProcAmp_ColorEnable = VideoProcAmp_Gamma + 1, - VideoProcAmp_WhiteBalance = VideoProcAmp_ColorEnable + 1, - VideoProcAmp_BacklightCompensation = VideoProcAmp_WhiteBalance + 1, - VideoProcAmp_Gain = VideoProcAmp_BacklightCompensation + 1 - } VideoProcAmpProperty; - -typedef -enum tagVideoProcAmpFlags - { VideoProcAmp_Flags_Auto = 0x1, - VideoProcAmp_Flags_Manual = 0x2 - } VideoProcAmpFlags; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0170_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0170_v0_0_s_ifspec; - -#ifndef __IAMVideoProcAmp_INTERFACE_DEFINED__ -#define __IAMVideoProcAmp_INTERFACE_DEFINED__ - -/* interface IAMVideoProcAmp */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMVideoProcAmp; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C6E13360-30AC-11d0-A18C-00A0C9118956") - IAMVideoProcAmp : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetRange( - /* [in] */ long Property, - /* [out] */ long *pMin, - /* [out] */ long *pMax, - /* [out] */ long *pSteppingDelta, - /* [out] */ long *pDefault, - /* [out] */ long *pCapsFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Set( - /* [in] */ long Property, - /* [in] */ long lValue, - /* [in] */ long Flags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Get( - /* [in] */ long Property, - /* [out] */ long *lValue, - /* [out] */ long *Flags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMVideoProcAmpVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMVideoProcAmp * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMVideoProcAmp * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMVideoProcAmp * This); - - HRESULT ( STDMETHODCALLTYPE *GetRange )( - IAMVideoProcAmp * This, - /* [in] */ long Property, - /* [out] */ long *pMin, - /* [out] */ long *pMax, - /* [out] */ long *pSteppingDelta, - /* [out] */ long *pDefault, - /* [out] */ long *pCapsFlags); - - HRESULT ( STDMETHODCALLTYPE *Set )( - IAMVideoProcAmp * This, - /* [in] */ long Property, - /* [in] */ long lValue, - /* [in] */ long Flags); - - HRESULT ( STDMETHODCALLTYPE *Get )( - IAMVideoProcAmp * This, - /* [in] */ long Property, - /* [out] */ long *lValue, - /* [out] */ long *Flags); - - END_INTERFACE - } IAMVideoProcAmpVtbl; - - interface IAMVideoProcAmp - { - CONST_VTBL struct IAMVideoProcAmpVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMVideoProcAmp_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMVideoProcAmp_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMVideoProcAmp_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMVideoProcAmp_GetRange(This,Property,pMin,pMax,pSteppingDelta,pDefault,pCapsFlags) \ - (This)->lpVtbl -> GetRange(This,Property,pMin,pMax,pSteppingDelta,pDefault,pCapsFlags) - -#define IAMVideoProcAmp_Set(This,Property,lValue,Flags) \ - (This)->lpVtbl -> Set(This,Property,lValue,Flags) - -#define IAMVideoProcAmp_Get(This,Property,lValue,Flags) \ - (This)->lpVtbl -> Get(This,Property,lValue,Flags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMVideoProcAmp_GetRange_Proxy( - IAMVideoProcAmp * This, - /* [in] */ long Property, - /* [out] */ long *pMin, - /* [out] */ long *pMax, - /* [out] */ long *pSteppingDelta, - /* [out] */ long *pDefault, - /* [out] */ long *pCapsFlags); - - -void __RPC_STUB IAMVideoProcAmp_GetRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoProcAmp_Set_Proxy( - IAMVideoProcAmp * This, - /* [in] */ long Property, - /* [in] */ long lValue, - /* [in] */ long Flags); - - -void __RPC_STUB IAMVideoProcAmp_Set_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoProcAmp_Get_Proxy( - IAMVideoProcAmp * This, - /* [in] */ long Property, - /* [out] */ long *lValue, - /* [out] */ long *Flags); - - -void __RPC_STUB IAMVideoProcAmp_Get_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMVideoProcAmp_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0171 */ -/* [local] */ - -typedef -enum tagCameraControlProperty - { CameraControl_Pan = 0, - CameraControl_Tilt = CameraControl_Pan + 1, - CameraControl_Roll = CameraControl_Tilt + 1, - CameraControl_Zoom = CameraControl_Roll + 1, - CameraControl_Exposure = CameraControl_Zoom + 1, - CameraControl_Iris = CameraControl_Exposure + 1, - CameraControl_Focus = CameraControl_Iris + 1 - } CameraControlProperty; - -typedef -enum tagCameraControlFlags - { CameraControl_Flags_Auto = 0x1, - CameraControl_Flags_Manual = 0x2 - } CameraControlFlags; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0171_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0171_v0_0_s_ifspec; - -#ifndef __IAMCameraControl_INTERFACE_DEFINED__ -#define __IAMCameraControl_INTERFACE_DEFINED__ - -/* interface IAMCameraControl */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMCameraControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C6E13370-30AC-11d0-A18C-00A0C9118956") - IAMCameraControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetRange( - /* [in] */ long Property, - /* [out] */ long *pMin, - /* [out] */ long *pMax, - /* [out] */ long *pSteppingDelta, - /* [out] */ long *pDefault, - /* [out] */ long *pCapsFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Set( - /* [in] */ long Property, - /* [in] */ long lValue, - /* [in] */ long Flags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Get( - /* [in] */ long Property, - /* [out] */ long *lValue, - /* [out] */ long *Flags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMCameraControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMCameraControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMCameraControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMCameraControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetRange )( - IAMCameraControl * This, - /* [in] */ long Property, - /* [out] */ long *pMin, - /* [out] */ long *pMax, - /* [out] */ long *pSteppingDelta, - /* [out] */ long *pDefault, - /* [out] */ long *pCapsFlags); - - HRESULT ( STDMETHODCALLTYPE *Set )( - IAMCameraControl * This, - /* [in] */ long Property, - /* [in] */ long lValue, - /* [in] */ long Flags); - - HRESULT ( STDMETHODCALLTYPE *Get )( - IAMCameraControl * This, - /* [in] */ long Property, - /* [out] */ long *lValue, - /* [out] */ long *Flags); - - END_INTERFACE - } IAMCameraControlVtbl; - - interface IAMCameraControl - { - CONST_VTBL struct IAMCameraControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMCameraControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMCameraControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMCameraControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMCameraControl_GetRange(This,Property,pMin,pMax,pSteppingDelta,pDefault,pCapsFlags) \ - (This)->lpVtbl -> GetRange(This,Property,pMin,pMax,pSteppingDelta,pDefault,pCapsFlags) - -#define IAMCameraControl_Set(This,Property,lValue,Flags) \ - (This)->lpVtbl -> Set(This,Property,lValue,Flags) - -#define IAMCameraControl_Get(This,Property,lValue,Flags) \ - (This)->lpVtbl -> Get(This,Property,lValue,Flags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMCameraControl_GetRange_Proxy( - IAMCameraControl * This, - /* [in] */ long Property, - /* [out] */ long *pMin, - /* [out] */ long *pMax, - /* [out] */ long *pSteppingDelta, - /* [out] */ long *pDefault, - /* [out] */ long *pCapsFlags); - - -void __RPC_STUB IAMCameraControl_GetRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMCameraControl_Set_Proxy( - IAMCameraControl * This, - /* [in] */ long Property, - /* [in] */ long lValue, - /* [in] */ long Flags); - - -void __RPC_STUB IAMCameraControl_Set_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMCameraControl_Get_Proxy( - IAMCameraControl * This, - /* [in] */ long Property, - /* [out] */ long *lValue, - /* [out] */ long *Flags); - - -void __RPC_STUB IAMCameraControl_Get_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMCameraControl_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0172 */ -/* [local] */ - -typedef -enum tagVideoControlFlags - { VideoControlFlag_FlipHorizontal = 0x1, - VideoControlFlag_FlipVertical = 0x2, - VideoControlFlag_ExternalTriggerEnable = 0x4, - VideoControlFlag_Trigger = 0x8 - } VideoControlFlags; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0172_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0172_v0_0_s_ifspec; - -#ifndef __IAMVideoControl_INTERFACE_DEFINED__ -#define __IAMVideoControl_INTERFACE_DEFINED__ - -/* interface IAMVideoControl */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMVideoControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("6a2e0670-28e4-11d0-a18c-00a0c9118956") - IAMVideoControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetCaps( - /* [in] */ IPin *pPin, - /* [out] */ long *pCapsFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMode( - /* [in] */ IPin *pPin, - /* [in] */ long Mode) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMode( - /* [in] */ IPin *pPin, - /* [out] */ long *Mode) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentActualFrameRate( - /* [in] */ IPin *pPin, - /* [out] */ LONGLONG *ActualFrameRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMaxAvailableFrameRate( - /* [in] */ IPin *pPin, - /* [in] */ long iIndex, - /* [in] */ SIZE Dimensions, - /* [out] */ LONGLONG *MaxAvailableFrameRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFrameRateList( - /* [in] */ IPin *pPin, - /* [in] */ long iIndex, - /* [in] */ SIZE Dimensions, - /* [out] */ long *ListSize, - /* [out] */ LONGLONG **FrameRates) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMVideoControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMVideoControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMVideoControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMVideoControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetCaps )( - IAMVideoControl * This, - /* [in] */ IPin *pPin, - /* [out] */ long *pCapsFlags); - - HRESULT ( STDMETHODCALLTYPE *SetMode )( - IAMVideoControl * This, - /* [in] */ IPin *pPin, - /* [in] */ long Mode); - - HRESULT ( STDMETHODCALLTYPE *GetMode )( - IAMVideoControl * This, - /* [in] */ IPin *pPin, - /* [out] */ long *Mode); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentActualFrameRate )( - IAMVideoControl * This, - /* [in] */ IPin *pPin, - /* [out] */ LONGLONG *ActualFrameRate); - - HRESULT ( STDMETHODCALLTYPE *GetMaxAvailableFrameRate )( - IAMVideoControl * This, - /* [in] */ IPin *pPin, - /* [in] */ long iIndex, - /* [in] */ SIZE Dimensions, - /* [out] */ LONGLONG *MaxAvailableFrameRate); - - HRESULT ( STDMETHODCALLTYPE *GetFrameRateList )( - IAMVideoControl * This, - /* [in] */ IPin *pPin, - /* [in] */ long iIndex, - /* [in] */ SIZE Dimensions, - /* [out] */ long *ListSize, - /* [out] */ LONGLONG **FrameRates); - - END_INTERFACE - } IAMVideoControlVtbl; - - interface IAMVideoControl - { - CONST_VTBL struct IAMVideoControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMVideoControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMVideoControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMVideoControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMVideoControl_GetCaps(This,pPin,pCapsFlags) \ - (This)->lpVtbl -> GetCaps(This,pPin,pCapsFlags) - -#define IAMVideoControl_SetMode(This,pPin,Mode) \ - (This)->lpVtbl -> SetMode(This,pPin,Mode) - -#define IAMVideoControl_GetMode(This,pPin,Mode) \ - (This)->lpVtbl -> GetMode(This,pPin,Mode) - -#define IAMVideoControl_GetCurrentActualFrameRate(This,pPin,ActualFrameRate) \ - (This)->lpVtbl -> GetCurrentActualFrameRate(This,pPin,ActualFrameRate) - -#define IAMVideoControl_GetMaxAvailableFrameRate(This,pPin,iIndex,Dimensions,MaxAvailableFrameRate) \ - (This)->lpVtbl -> GetMaxAvailableFrameRate(This,pPin,iIndex,Dimensions,MaxAvailableFrameRate) - -#define IAMVideoControl_GetFrameRateList(This,pPin,iIndex,Dimensions,ListSize,FrameRates) \ - (This)->lpVtbl -> GetFrameRateList(This,pPin,iIndex,Dimensions,ListSize,FrameRates) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMVideoControl_GetCaps_Proxy( - IAMVideoControl * This, - /* [in] */ IPin *pPin, - /* [out] */ long *pCapsFlags); - - -void __RPC_STUB IAMVideoControl_GetCaps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoControl_SetMode_Proxy( - IAMVideoControl * This, - /* [in] */ IPin *pPin, - /* [in] */ long Mode); - - -void __RPC_STUB IAMVideoControl_SetMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoControl_GetMode_Proxy( - IAMVideoControl * This, - /* [in] */ IPin *pPin, - /* [out] */ long *Mode); - - -void __RPC_STUB IAMVideoControl_GetMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoControl_GetCurrentActualFrameRate_Proxy( - IAMVideoControl * This, - /* [in] */ IPin *pPin, - /* [out] */ LONGLONG *ActualFrameRate); - - -void __RPC_STUB IAMVideoControl_GetCurrentActualFrameRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoControl_GetMaxAvailableFrameRate_Proxy( - IAMVideoControl * This, - /* [in] */ IPin *pPin, - /* [in] */ long iIndex, - /* [in] */ SIZE Dimensions, - /* [out] */ LONGLONG *MaxAvailableFrameRate); - - -void __RPC_STUB IAMVideoControl_GetMaxAvailableFrameRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoControl_GetFrameRateList_Proxy( - IAMVideoControl * This, - /* [in] */ IPin *pPin, - /* [in] */ long iIndex, - /* [in] */ SIZE Dimensions, - /* [out] */ long *ListSize, - /* [out] */ LONGLONG **FrameRates); - - -void __RPC_STUB IAMVideoControl_GetFrameRateList_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMVideoControl_INTERFACE_DEFINED__ */ - - -#ifndef __IAMCrossbar_INTERFACE_DEFINED__ -#define __IAMCrossbar_INTERFACE_DEFINED__ - -/* interface IAMCrossbar */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMCrossbar; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C6E13380-30AC-11d0-A18C-00A0C9118956") - IAMCrossbar : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE get_PinCounts( - /* [out] */ long *OutputPinCount, - /* [out] */ long *InputPinCount) = 0; - - virtual HRESULT STDMETHODCALLTYPE CanRoute( - /* [in] */ long OutputPinIndex, - /* [in] */ long InputPinIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE Route( - /* [in] */ long OutputPinIndex, - /* [in] */ long InputPinIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_IsRoutedTo( - /* [in] */ long OutputPinIndex, - /* [out] */ long *InputPinIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_CrossbarPinInfo( - /* [in] */ BOOL IsInputPin, - /* [in] */ long PinIndex, - /* [out] */ long *PinIndexRelated, - /* [out] */ long *PhysicalType) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMCrossbarVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMCrossbar * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMCrossbar * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMCrossbar * This); - - HRESULT ( STDMETHODCALLTYPE *get_PinCounts )( - IAMCrossbar * This, - /* [out] */ long *OutputPinCount, - /* [out] */ long *InputPinCount); - - HRESULT ( STDMETHODCALLTYPE *CanRoute )( - IAMCrossbar * This, - /* [in] */ long OutputPinIndex, - /* [in] */ long InputPinIndex); - - HRESULT ( STDMETHODCALLTYPE *Route )( - IAMCrossbar * This, - /* [in] */ long OutputPinIndex, - /* [in] */ long InputPinIndex); - - HRESULT ( STDMETHODCALLTYPE *get_IsRoutedTo )( - IAMCrossbar * This, - /* [in] */ long OutputPinIndex, - /* [out] */ long *InputPinIndex); - - HRESULT ( STDMETHODCALLTYPE *get_CrossbarPinInfo )( - IAMCrossbar * This, - /* [in] */ BOOL IsInputPin, - /* [in] */ long PinIndex, - /* [out] */ long *PinIndexRelated, - /* [out] */ long *PhysicalType); - - END_INTERFACE - } IAMCrossbarVtbl; - - interface IAMCrossbar - { - CONST_VTBL struct IAMCrossbarVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMCrossbar_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMCrossbar_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMCrossbar_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMCrossbar_get_PinCounts(This,OutputPinCount,InputPinCount) \ - (This)->lpVtbl -> get_PinCounts(This,OutputPinCount,InputPinCount) - -#define IAMCrossbar_CanRoute(This,OutputPinIndex,InputPinIndex) \ - (This)->lpVtbl -> CanRoute(This,OutputPinIndex,InputPinIndex) - -#define IAMCrossbar_Route(This,OutputPinIndex,InputPinIndex) \ - (This)->lpVtbl -> Route(This,OutputPinIndex,InputPinIndex) - -#define IAMCrossbar_get_IsRoutedTo(This,OutputPinIndex,InputPinIndex) \ - (This)->lpVtbl -> get_IsRoutedTo(This,OutputPinIndex,InputPinIndex) - -#define IAMCrossbar_get_CrossbarPinInfo(This,IsInputPin,PinIndex,PinIndexRelated,PhysicalType) \ - (This)->lpVtbl -> get_CrossbarPinInfo(This,IsInputPin,PinIndex,PinIndexRelated,PhysicalType) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMCrossbar_get_PinCounts_Proxy( - IAMCrossbar * This, - /* [out] */ long *OutputPinCount, - /* [out] */ long *InputPinCount); - - -void __RPC_STUB IAMCrossbar_get_PinCounts_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMCrossbar_CanRoute_Proxy( - IAMCrossbar * This, - /* [in] */ long OutputPinIndex, - /* [in] */ long InputPinIndex); - - -void __RPC_STUB IAMCrossbar_CanRoute_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMCrossbar_Route_Proxy( - IAMCrossbar * This, - /* [in] */ long OutputPinIndex, - /* [in] */ long InputPinIndex); - - -void __RPC_STUB IAMCrossbar_Route_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMCrossbar_get_IsRoutedTo_Proxy( - IAMCrossbar * This, - /* [in] */ long OutputPinIndex, - /* [out] */ long *InputPinIndex); - - -void __RPC_STUB IAMCrossbar_get_IsRoutedTo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMCrossbar_get_CrossbarPinInfo_Proxy( - IAMCrossbar * This, - /* [in] */ BOOL IsInputPin, - /* [in] */ long PinIndex, - /* [out] */ long *PinIndexRelated, - /* [out] */ long *PhysicalType); - - -void __RPC_STUB IAMCrossbar_get_CrossbarPinInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMCrossbar_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0174 */ -/* [local] */ - -typedef -enum tagAMTunerSubChannel - { AMTUNER_SUBCHAN_NO_TUNE = -2, - AMTUNER_SUBCHAN_DEFAULT = -1 - } AMTunerSubChannel; - -typedef -enum tagAMTunerSignalStrength - { AMTUNER_HASNOSIGNALSTRENGTH = -1, - AMTUNER_NOSIGNAL = 0, - AMTUNER_SIGNALPRESENT = 1 - } AMTunerSignalStrength; - -typedef -enum tagAMTunerModeType - { AMTUNER_MODE_DEFAULT = 0, - AMTUNER_MODE_TV = 0x1, - AMTUNER_MODE_FM_RADIO = 0x2, - AMTUNER_MODE_AM_RADIO = 0x4, - AMTUNER_MODE_DSS = 0x8 - } AMTunerModeType; - -typedef -enum tagAMTunerEventType - { AMTUNER_EVENT_CHANGED = 0x1 - } AMTunerEventType; - - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0174_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0174_v0_0_s_ifspec; - -#ifndef __IAMTuner_INTERFACE_DEFINED__ -#define __IAMTuner_INTERFACE_DEFINED__ - -/* interface IAMTuner */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMTuner; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("211A8761-03AC-11d1-8D13-00AA00BD8339") - IAMTuner : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE put_Channel( - /* [in] */ long lChannel, - /* [in] */ long lVideoSubChannel, - /* [in] */ long lAudioSubChannel) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Channel( - /* [out] */ long *plChannel, - /* [out] */ long *plVideoSubChannel, - /* [out] */ long *plAudioSubChannel) = 0; - - virtual HRESULT STDMETHODCALLTYPE ChannelMinMax( - /* [out] */ long *lChannelMin, - /* [out] */ long *lChannelMax) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_CountryCode( - /* [in] */ long lCountryCode) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_CountryCode( - /* [out] */ long *plCountryCode) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_TuningSpace( - /* [in] */ long lTuningSpace) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_TuningSpace( - /* [out] */ long *plTuningSpace) = 0; - - virtual /* [local] */ HRESULT STDMETHODCALLTYPE Logon( - /* [in] */ HANDLE hCurrentUser) = 0; - - virtual HRESULT STDMETHODCALLTYPE Logout( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE SignalPresent( - /* [out] */ long *plSignalStrength) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Mode( - /* [in] */ AMTunerModeType lMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Mode( - /* [out] */ AMTunerModeType *plMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAvailableModes( - /* [out] */ long *plModes) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterNotificationCallBack( - /* [in] */ IAMTunerNotification *pNotify, - /* [in] */ long lEvents) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnRegisterNotificationCallBack( - /* [in] */ IAMTunerNotification *pNotify) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTunerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTuner * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTuner * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTuner * This); - - HRESULT ( STDMETHODCALLTYPE *put_Channel )( - IAMTuner * This, - /* [in] */ long lChannel, - /* [in] */ long lVideoSubChannel, - /* [in] */ long lAudioSubChannel); - - HRESULT ( STDMETHODCALLTYPE *get_Channel )( - IAMTuner * This, - /* [out] */ long *plChannel, - /* [out] */ long *plVideoSubChannel, - /* [out] */ long *plAudioSubChannel); - - HRESULT ( STDMETHODCALLTYPE *ChannelMinMax )( - IAMTuner * This, - /* [out] */ long *lChannelMin, - /* [out] */ long *lChannelMax); - - HRESULT ( STDMETHODCALLTYPE *put_CountryCode )( - IAMTuner * This, - /* [in] */ long lCountryCode); - - HRESULT ( STDMETHODCALLTYPE *get_CountryCode )( - IAMTuner * This, - /* [out] */ long *plCountryCode); - - HRESULT ( STDMETHODCALLTYPE *put_TuningSpace )( - IAMTuner * This, - /* [in] */ long lTuningSpace); - - HRESULT ( STDMETHODCALLTYPE *get_TuningSpace )( - IAMTuner * This, - /* [out] */ long *plTuningSpace); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Logon )( - IAMTuner * This, - /* [in] */ HANDLE hCurrentUser); - - HRESULT ( STDMETHODCALLTYPE *Logout )( - IAMTuner * This); - - HRESULT ( STDMETHODCALLTYPE *SignalPresent )( - IAMTuner * This, - /* [out] */ long *plSignalStrength); - - HRESULT ( STDMETHODCALLTYPE *put_Mode )( - IAMTuner * This, - /* [in] */ AMTunerModeType lMode); - - HRESULT ( STDMETHODCALLTYPE *get_Mode )( - IAMTuner * This, - /* [out] */ AMTunerModeType *plMode); - - HRESULT ( STDMETHODCALLTYPE *GetAvailableModes )( - IAMTuner * This, - /* [out] */ long *plModes); - - HRESULT ( STDMETHODCALLTYPE *RegisterNotificationCallBack )( - IAMTuner * This, - /* [in] */ IAMTunerNotification *pNotify, - /* [in] */ long lEvents); - - HRESULT ( STDMETHODCALLTYPE *UnRegisterNotificationCallBack )( - IAMTuner * This, - /* [in] */ IAMTunerNotification *pNotify); - - END_INTERFACE - } IAMTunerVtbl; - - interface IAMTuner - { - CONST_VTBL struct IAMTunerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTuner_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTuner_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTuner_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTuner_put_Channel(This,lChannel,lVideoSubChannel,lAudioSubChannel) \ - (This)->lpVtbl -> put_Channel(This,lChannel,lVideoSubChannel,lAudioSubChannel) - -#define IAMTuner_get_Channel(This,plChannel,plVideoSubChannel,plAudioSubChannel) \ - (This)->lpVtbl -> get_Channel(This,plChannel,plVideoSubChannel,plAudioSubChannel) - -#define IAMTuner_ChannelMinMax(This,lChannelMin,lChannelMax) \ - (This)->lpVtbl -> ChannelMinMax(This,lChannelMin,lChannelMax) - -#define IAMTuner_put_CountryCode(This,lCountryCode) \ - (This)->lpVtbl -> put_CountryCode(This,lCountryCode) - -#define IAMTuner_get_CountryCode(This,plCountryCode) \ - (This)->lpVtbl -> get_CountryCode(This,plCountryCode) - -#define IAMTuner_put_TuningSpace(This,lTuningSpace) \ - (This)->lpVtbl -> put_TuningSpace(This,lTuningSpace) - -#define IAMTuner_get_TuningSpace(This,plTuningSpace) \ - (This)->lpVtbl -> get_TuningSpace(This,plTuningSpace) - -#define IAMTuner_Logon(This,hCurrentUser) \ - (This)->lpVtbl -> Logon(This,hCurrentUser) - -#define IAMTuner_Logout(This) \ - (This)->lpVtbl -> Logout(This) - -#define IAMTuner_SignalPresent(This,plSignalStrength) \ - (This)->lpVtbl -> SignalPresent(This,plSignalStrength) - -#define IAMTuner_put_Mode(This,lMode) \ - (This)->lpVtbl -> put_Mode(This,lMode) - -#define IAMTuner_get_Mode(This,plMode) \ - (This)->lpVtbl -> get_Mode(This,plMode) - -#define IAMTuner_GetAvailableModes(This,plModes) \ - (This)->lpVtbl -> GetAvailableModes(This,plModes) - -#define IAMTuner_RegisterNotificationCallBack(This,pNotify,lEvents) \ - (This)->lpVtbl -> RegisterNotificationCallBack(This,pNotify,lEvents) - -#define IAMTuner_UnRegisterNotificationCallBack(This,pNotify) \ - (This)->lpVtbl -> UnRegisterNotificationCallBack(This,pNotify) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMTuner_put_Channel_Proxy( - IAMTuner * This, - /* [in] */ long lChannel, - /* [in] */ long lVideoSubChannel, - /* [in] */ long lAudioSubChannel); - - -void __RPC_STUB IAMTuner_put_Channel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_get_Channel_Proxy( - IAMTuner * This, - /* [out] */ long *plChannel, - /* [out] */ long *plVideoSubChannel, - /* [out] */ long *plAudioSubChannel); - - -void __RPC_STUB IAMTuner_get_Channel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_ChannelMinMax_Proxy( - IAMTuner * This, - /* [out] */ long *lChannelMin, - /* [out] */ long *lChannelMax); - - -void __RPC_STUB IAMTuner_ChannelMinMax_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_put_CountryCode_Proxy( - IAMTuner * This, - /* [in] */ long lCountryCode); - - -void __RPC_STUB IAMTuner_put_CountryCode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_get_CountryCode_Proxy( - IAMTuner * This, - /* [out] */ long *plCountryCode); - - -void __RPC_STUB IAMTuner_get_CountryCode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_put_TuningSpace_Proxy( - IAMTuner * This, - /* [in] */ long lTuningSpace); - - -void __RPC_STUB IAMTuner_put_TuningSpace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_get_TuningSpace_Proxy( - IAMTuner * This, - /* [out] */ long *plTuningSpace); - - -void __RPC_STUB IAMTuner_get_TuningSpace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [local] */ HRESULT STDMETHODCALLTYPE IAMTuner_Logon_Proxy( - IAMTuner * This, - /* [in] */ HANDLE hCurrentUser); - - -void __RPC_STUB IAMTuner_Logon_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_Logout_Proxy( - IAMTuner * This); - - -void __RPC_STUB IAMTuner_Logout_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_SignalPresent_Proxy( - IAMTuner * This, - /* [out] */ long *plSignalStrength); - - -void __RPC_STUB IAMTuner_SignalPresent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_put_Mode_Proxy( - IAMTuner * This, - /* [in] */ AMTunerModeType lMode); - - -void __RPC_STUB IAMTuner_put_Mode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_get_Mode_Proxy( - IAMTuner * This, - /* [out] */ AMTunerModeType *plMode); - - -void __RPC_STUB IAMTuner_get_Mode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_GetAvailableModes_Proxy( - IAMTuner * This, - /* [out] */ long *plModes); - - -void __RPC_STUB IAMTuner_GetAvailableModes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_RegisterNotificationCallBack_Proxy( - IAMTuner * This, - /* [in] */ IAMTunerNotification *pNotify, - /* [in] */ long lEvents); - - -void __RPC_STUB IAMTuner_RegisterNotificationCallBack_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTuner_UnRegisterNotificationCallBack_Proxy( - IAMTuner * This, - /* [in] */ IAMTunerNotification *pNotify); - - -void __RPC_STUB IAMTuner_UnRegisterNotificationCallBack_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTuner_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTunerNotification_INTERFACE_DEFINED__ -#define __IAMTunerNotification_INTERFACE_DEFINED__ - -/* interface IAMTunerNotification */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMTunerNotification; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("211A8760-03AC-11d1-8D13-00AA00BD8339") - IAMTunerNotification : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE OnEvent( - /* [in] */ AMTunerEventType Event) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTunerNotificationVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTunerNotification * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTunerNotification * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTunerNotification * This); - - HRESULT ( STDMETHODCALLTYPE *OnEvent )( - IAMTunerNotification * This, - /* [in] */ AMTunerEventType Event); - - END_INTERFACE - } IAMTunerNotificationVtbl; - - interface IAMTunerNotification - { - CONST_VTBL struct IAMTunerNotificationVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTunerNotification_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTunerNotification_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTunerNotification_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTunerNotification_OnEvent(This,Event) \ - (This)->lpVtbl -> OnEvent(This,Event) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMTunerNotification_OnEvent_Proxy( - IAMTunerNotification * This, - /* [in] */ AMTunerEventType Event); - - -void __RPC_STUB IAMTunerNotification_OnEvent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTunerNotification_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTVTuner_INTERFACE_DEFINED__ -#define __IAMTVTuner_INTERFACE_DEFINED__ - -/* interface IAMTVTuner */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMTVTuner; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("211A8766-03AC-11d1-8D13-00AA00BD8339") - IAMTVTuner : public IAMTuner - { - public: - virtual HRESULT STDMETHODCALLTYPE get_AvailableTVFormats( - /* [out] */ long *lAnalogVideoStandard) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_TVFormat( - /* [out] */ long *plAnalogVideoStandard) = 0; - - virtual HRESULT STDMETHODCALLTYPE AutoTune( - /* [in] */ long lChannel, - /* [out] */ long *plFoundSignal) = 0; - - virtual HRESULT STDMETHODCALLTYPE StoreAutoTune( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_NumInputConnections( - /* [out] */ long *plNumInputConnections) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_InputType( - /* [in] */ long lIndex, - /* [in] */ TunerInputType InputType) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_InputType( - /* [in] */ long lIndex, - /* [out] */ TunerInputType *pInputType) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_ConnectInput( - /* [in] */ long lIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_ConnectInput( - /* [out] */ long *plIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_VideoFrequency( - /* [out] */ long *lFreq) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_AudioFrequency( - /* [out] */ long *lFreq) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTVTunerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTVTuner * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTVTuner * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTVTuner * This); - - HRESULT ( STDMETHODCALLTYPE *put_Channel )( - IAMTVTuner * This, - /* [in] */ long lChannel, - /* [in] */ long lVideoSubChannel, - /* [in] */ long lAudioSubChannel); - - HRESULT ( STDMETHODCALLTYPE *get_Channel )( - IAMTVTuner * This, - /* [out] */ long *plChannel, - /* [out] */ long *plVideoSubChannel, - /* [out] */ long *plAudioSubChannel); - - HRESULT ( STDMETHODCALLTYPE *ChannelMinMax )( - IAMTVTuner * This, - /* [out] */ long *lChannelMin, - /* [out] */ long *lChannelMax); - - HRESULT ( STDMETHODCALLTYPE *put_CountryCode )( - IAMTVTuner * This, - /* [in] */ long lCountryCode); - - HRESULT ( STDMETHODCALLTYPE *get_CountryCode )( - IAMTVTuner * This, - /* [out] */ long *plCountryCode); - - HRESULT ( STDMETHODCALLTYPE *put_TuningSpace )( - IAMTVTuner * This, - /* [in] */ long lTuningSpace); - - HRESULT ( STDMETHODCALLTYPE *get_TuningSpace )( - IAMTVTuner * This, - /* [out] */ long *plTuningSpace); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Logon )( - IAMTVTuner * This, - /* [in] */ HANDLE hCurrentUser); - - HRESULT ( STDMETHODCALLTYPE *Logout )( - IAMTVTuner * This); - - HRESULT ( STDMETHODCALLTYPE *SignalPresent )( - IAMTVTuner * This, - /* [out] */ long *plSignalStrength); - - HRESULT ( STDMETHODCALLTYPE *put_Mode )( - IAMTVTuner * This, - /* [in] */ AMTunerModeType lMode); - - HRESULT ( STDMETHODCALLTYPE *get_Mode )( - IAMTVTuner * This, - /* [out] */ AMTunerModeType *plMode); - - HRESULT ( STDMETHODCALLTYPE *GetAvailableModes )( - IAMTVTuner * This, - /* [out] */ long *plModes); - - HRESULT ( STDMETHODCALLTYPE *RegisterNotificationCallBack )( - IAMTVTuner * This, - /* [in] */ IAMTunerNotification *pNotify, - /* [in] */ long lEvents); - - HRESULT ( STDMETHODCALLTYPE *UnRegisterNotificationCallBack )( - IAMTVTuner * This, - /* [in] */ IAMTunerNotification *pNotify); - - HRESULT ( STDMETHODCALLTYPE *get_AvailableTVFormats )( - IAMTVTuner * This, - /* [out] */ long *lAnalogVideoStandard); - - HRESULT ( STDMETHODCALLTYPE *get_TVFormat )( - IAMTVTuner * This, - /* [out] */ long *plAnalogVideoStandard); - - HRESULT ( STDMETHODCALLTYPE *AutoTune )( - IAMTVTuner * This, - /* [in] */ long lChannel, - /* [out] */ long *plFoundSignal); - - HRESULT ( STDMETHODCALLTYPE *StoreAutoTune )( - IAMTVTuner * This); - - HRESULT ( STDMETHODCALLTYPE *get_NumInputConnections )( - IAMTVTuner * This, - /* [out] */ long *plNumInputConnections); - - HRESULT ( STDMETHODCALLTYPE *put_InputType )( - IAMTVTuner * This, - /* [in] */ long lIndex, - /* [in] */ TunerInputType InputType); - - HRESULT ( STDMETHODCALLTYPE *get_InputType )( - IAMTVTuner * This, - /* [in] */ long lIndex, - /* [out] */ TunerInputType *pInputType); - - HRESULT ( STDMETHODCALLTYPE *put_ConnectInput )( - IAMTVTuner * This, - /* [in] */ long lIndex); - - HRESULT ( STDMETHODCALLTYPE *get_ConnectInput )( - IAMTVTuner * This, - /* [out] */ long *plIndex); - - HRESULT ( STDMETHODCALLTYPE *get_VideoFrequency )( - IAMTVTuner * This, - /* [out] */ long *lFreq); - - HRESULT ( STDMETHODCALLTYPE *get_AudioFrequency )( - IAMTVTuner * This, - /* [out] */ long *lFreq); - - END_INTERFACE - } IAMTVTunerVtbl; - - interface IAMTVTuner - { - CONST_VTBL struct IAMTVTunerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTVTuner_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTVTuner_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTVTuner_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTVTuner_put_Channel(This,lChannel,lVideoSubChannel,lAudioSubChannel) \ - (This)->lpVtbl -> put_Channel(This,lChannel,lVideoSubChannel,lAudioSubChannel) - -#define IAMTVTuner_get_Channel(This,plChannel,plVideoSubChannel,plAudioSubChannel) \ - (This)->lpVtbl -> get_Channel(This,plChannel,plVideoSubChannel,plAudioSubChannel) - -#define IAMTVTuner_ChannelMinMax(This,lChannelMin,lChannelMax) \ - (This)->lpVtbl -> ChannelMinMax(This,lChannelMin,lChannelMax) - -#define IAMTVTuner_put_CountryCode(This,lCountryCode) \ - (This)->lpVtbl -> put_CountryCode(This,lCountryCode) - -#define IAMTVTuner_get_CountryCode(This,plCountryCode) \ - (This)->lpVtbl -> get_CountryCode(This,plCountryCode) - -#define IAMTVTuner_put_TuningSpace(This,lTuningSpace) \ - (This)->lpVtbl -> put_TuningSpace(This,lTuningSpace) - -#define IAMTVTuner_get_TuningSpace(This,plTuningSpace) \ - (This)->lpVtbl -> get_TuningSpace(This,plTuningSpace) - -#define IAMTVTuner_Logon(This,hCurrentUser) \ - (This)->lpVtbl -> Logon(This,hCurrentUser) - -#define IAMTVTuner_Logout(This) \ - (This)->lpVtbl -> Logout(This) - -#define IAMTVTuner_SignalPresent(This,plSignalStrength) \ - (This)->lpVtbl -> SignalPresent(This,plSignalStrength) - -#define IAMTVTuner_put_Mode(This,lMode) \ - (This)->lpVtbl -> put_Mode(This,lMode) - -#define IAMTVTuner_get_Mode(This,plMode) \ - (This)->lpVtbl -> get_Mode(This,plMode) - -#define IAMTVTuner_GetAvailableModes(This,plModes) \ - (This)->lpVtbl -> GetAvailableModes(This,plModes) - -#define IAMTVTuner_RegisterNotificationCallBack(This,pNotify,lEvents) \ - (This)->lpVtbl -> RegisterNotificationCallBack(This,pNotify,lEvents) - -#define IAMTVTuner_UnRegisterNotificationCallBack(This,pNotify) \ - (This)->lpVtbl -> UnRegisterNotificationCallBack(This,pNotify) - - -#define IAMTVTuner_get_AvailableTVFormats(This,lAnalogVideoStandard) \ - (This)->lpVtbl -> get_AvailableTVFormats(This,lAnalogVideoStandard) - -#define IAMTVTuner_get_TVFormat(This,plAnalogVideoStandard) \ - (This)->lpVtbl -> get_TVFormat(This,plAnalogVideoStandard) - -#define IAMTVTuner_AutoTune(This,lChannel,plFoundSignal) \ - (This)->lpVtbl -> AutoTune(This,lChannel,plFoundSignal) - -#define IAMTVTuner_StoreAutoTune(This) \ - (This)->lpVtbl -> StoreAutoTune(This) - -#define IAMTVTuner_get_NumInputConnections(This,plNumInputConnections) \ - (This)->lpVtbl -> get_NumInputConnections(This,plNumInputConnections) - -#define IAMTVTuner_put_InputType(This,lIndex,InputType) \ - (This)->lpVtbl -> put_InputType(This,lIndex,InputType) - -#define IAMTVTuner_get_InputType(This,lIndex,pInputType) \ - (This)->lpVtbl -> get_InputType(This,lIndex,pInputType) - -#define IAMTVTuner_put_ConnectInput(This,lIndex) \ - (This)->lpVtbl -> put_ConnectInput(This,lIndex) - -#define IAMTVTuner_get_ConnectInput(This,plIndex) \ - (This)->lpVtbl -> get_ConnectInput(This,plIndex) - -#define IAMTVTuner_get_VideoFrequency(This,lFreq) \ - (This)->lpVtbl -> get_VideoFrequency(This,lFreq) - -#define IAMTVTuner_get_AudioFrequency(This,lFreq) \ - (This)->lpVtbl -> get_AudioFrequency(This,lFreq) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMTVTuner_get_AvailableTVFormats_Proxy( - IAMTVTuner * This, - /* [out] */ long *lAnalogVideoStandard); - - -void __RPC_STUB IAMTVTuner_get_AvailableTVFormats_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVTuner_get_TVFormat_Proxy( - IAMTVTuner * This, - /* [out] */ long *plAnalogVideoStandard); - - -void __RPC_STUB IAMTVTuner_get_TVFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVTuner_AutoTune_Proxy( - IAMTVTuner * This, - /* [in] */ long lChannel, - /* [out] */ long *plFoundSignal); - - -void __RPC_STUB IAMTVTuner_AutoTune_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVTuner_StoreAutoTune_Proxy( - IAMTVTuner * This); - - -void __RPC_STUB IAMTVTuner_StoreAutoTune_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVTuner_get_NumInputConnections_Proxy( - IAMTVTuner * This, - /* [out] */ long *plNumInputConnections); - - -void __RPC_STUB IAMTVTuner_get_NumInputConnections_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVTuner_put_InputType_Proxy( - IAMTVTuner * This, - /* [in] */ long lIndex, - /* [in] */ TunerInputType InputType); - - -void __RPC_STUB IAMTVTuner_put_InputType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVTuner_get_InputType_Proxy( - IAMTVTuner * This, - /* [in] */ long lIndex, - /* [out] */ TunerInputType *pInputType); - - -void __RPC_STUB IAMTVTuner_get_InputType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVTuner_put_ConnectInput_Proxy( - IAMTVTuner * This, - /* [in] */ long lIndex); - - -void __RPC_STUB IAMTVTuner_put_ConnectInput_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVTuner_get_ConnectInput_Proxy( - IAMTVTuner * This, - /* [out] */ long *plIndex); - - -void __RPC_STUB IAMTVTuner_get_ConnectInput_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVTuner_get_VideoFrequency_Proxy( - IAMTVTuner * This, - /* [out] */ long *lFreq); - - -void __RPC_STUB IAMTVTuner_get_VideoFrequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVTuner_get_AudioFrequency_Proxy( - IAMTVTuner * This, - /* [out] */ long *lFreq); - - -void __RPC_STUB IAMTVTuner_get_AudioFrequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTVTuner_INTERFACE_DEFINED__ */ - - -#ifndef __IBPCSatelliteTuner_INTERFACE_DEFINED__ -#define __IBPCSatelliteTuner_INTERFACE_DEFINED__ - -/* interface IBPCSatelliteTuner */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IBPCSatelliteTuner; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("211A8765-03AC-11d1-8D13-00AA00BD8339") - IBPCSatelliteTuner : public IAMTuner - { - public: - virtual HRESULT STDMETHODCALLTYPE get_DefaultSubChannelTypes( - /* [out] */ long *plDefaultVideoType, - /* [out] */ long *plDefaultAudioType) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_DefaultSubChannelTypes( - /* [in] */ long lDefaultVideoType, - /* [in] */ long lDefaultAudioType) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsTapingPermitted( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBPCSatelliteTunerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBPCSatelliteTuner * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBPCSatelliteTuner * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBPCSatelliteTuner * This); - - HRESULT ( STDMETHODCALLTYPE *put_Channel )( - IBPCSatelliteTuner * This, - /* [in] */ long lChannel, - /* [in] */ long lVideoSubChannel, - /* [in] */ long lAudioSubChannel); - - HRESULT ( STDMETHODCALLTYPE *get_Channel )( - IBPCSatelliteTuner * This, - /* [out] */ long *plChannel, - /* [out] */ long *plVideoSubChannel, - /* [out] */ long *plAudioSubChannel); - - HRESULT ( STDMETHODCALLTYPE *ChannelMinMax )( - IBPCSatelliteTuner * This, - /* [out] */ long *lChannelMin, - /* [out] */ long *lChannelMax); - - HRESULT ( STDMETHODCALLTYPE *put_CountryCode )( - IBPCSatelliteTuner * This, - /* [in] */ long lCountryCode); - - HRESULT ( STDMETHODCALLTYPE *get_CountryCode )( - IBPCSatelliteTuner * This, - /* [out] */ long *plCountryCode); - - HRESULT ( STDMETHODCALLTYPE *put_TuningSpace )( - IBPCSatelliteTuner * This, - /* [in] */ long lTuningSpace); - - HRESULT ( STDMETHODCALLTYPE *get_TuningSpace )( - IBPCSatelliteTuner * This, - /* [out] */ long *plTuningSpace); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Logon )( - IBPCSatelliteTuner * This, - /* [in] */ HANDLE hCurrentUser); - - HRESULT ( STDMETHODCALLTYPE *Logout )( - IBPCSatelliteTuner * This); - - HRESULT ( STDMETHODCALLTYPE *SignalPresent )( - IBPCSatelliteTuner * This, - /* [out] */ long *plSignalStrength); - - HRESULT ( STDMETHODCALLTYPE *put_Mode )( - IBPCSatelliteTuner * This, - /* [in] */ AMTunerModeType lMode); - - HRESULT ( STDMETHODCALLTYPE *get_Mode )( - IBPCSatelliteTuner * This, - /* [out] */ AMTunerModeType *plMode); - - HRESULT ( STDMETHODCALLTYPE *GetAvailableModes )( - IBPCSatelliteTuner * This, - /* [out] */ long *plModes); - - HRESULT ( STDMETHODCALLTYPE *RegisterNotificationCallBack )( - IBPCSatelliteTuner * This, - /* [in] */ IAMTunerNotification *pNotify, - /* [in] */ long lEvents); - - HRESULT ( STDMETHODCALLTYPE *UnRegisterNotificationCallBack )( - IBPCSatelliteTuner * This, - /* [in] */ IAMTunerNotification *pNotify); - - HRESULT ( STDMETHODCALLTYPE *get_DefaultSubChannelTypes )( - IBPCSatelliteTuner * This, - /* [out] */ long *plDefaultVideoType, - /* [out] */ long *plDefaultAudioType); - - HRESULT ( STDMETHODCALLTYPE *put_DefaultSubChannelTypes )( - IBPCSatelliteTuner * This, - /* [in] */ long lDefaultVideoType, - /* [in] */ long lDefaultAudioType); - - HRESULT ( STDMETHODCALLTYPE *IsTapingPermitted )( - IBPCSatelliteTuner * This); - - END_INTERFACE - } IBPCSatelliteTunerVtbl; - - interface IBPCSatelliteTuner - { - CONST_VTBL struct IBPCSatelliteTunerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IBPCSatelliteTuner_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IBPCSatelliteTuner_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IBPCSatelliteTuner_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IBPCSatelliteTuner_put_Channel(This,lChannel,lVideoSubChannel,lAudioSubChannel) \ - (This)->lpVtbl -> put_Channel(This,lChannel,lVideoSubChannel,lAudioSubChannel) - -#define IBPCSatelliteTuner_get_Channel(This,plChannel,plVideoSubChannel,plAudioSubChannel) \ - (This)->lpVtbl -> get_Channel(This,plChannel,plVideoSubChannel,plAudioSubChannel) - -#define IBPCSatelliteTuner_ChannelMinMax(This,lChannelMin,lChannelMax) \ - (This)->lpVtbl -> ChannelMinMax(This,lChannelMin,lChannelMax) - -#define IBPCSatelliteTuner_put_CountryCode(This,lCountryCode) \ - (This)->lpVtbl -> put_CountryCode(This,lCountryCode) - -#define IBPCSatelliteTuner_get_CountryCode(This,plCountryCode) \ - (This)->lpVtbl -> get_CountryCode(This,plCountryCode) - -#define IBPCSatelliteTuner_put_TuningSpace(This,lTuningSpace) \ - (This)->lpVtbl -> put_TuningSpace(This,lTuningSpace) - -#define IBPCSatelliteTuner_get_TuningSpace(This,plTuningSpace) \ - (This)->lpVtbl -> get_TuningSpace(This,plTuningSpace) - -#define IBPCSatelliteTuner_Logon(This,hCurrentUser) \ - (This)->lpVtbl -> Logon(This,hCurrentUser) - -#define IBPCSatelliteTuner_Logout(This) \ - (This)->lpVtbl -> Logout(This) - -#define IBPCSatelliteTuner_SignalPresent(This,plSignalStrength) \ - (This)->lpVtbl -> SignalPresent(This,plSignalStrength) - -#define IBPCSatelliteTuner_put_Mode(This,lMode) \ - (This)->lpVtbl -> put_Mode(This,lMode) - -#define IBPCSatelliteTuner_get_Mode(This,plMode) \ - (This)->lpVtbl -> get_Mode(This,plMode) - -#define IBPCSatelliteTuner_GetAvailableModes(This,plModes) \ - (This)->lpVtbl -> GetAvailableModes(This,plModes) - -#define IBPCSatelliteTuner_RegisterNotificationCallBack(This,pNotify,lEvents) \ - (This)->lpVtbl -> RegisterNotificationCallBack(This,pNotify,lEvents) - -#define IBPCSatelliteTuner_UnRegisterNotificationCallBack(This,pNotify) \ - (This)->lpVtbl -> UnRegisterNotificationCallBack(This,pNotify) - - -#define IBPCSatelliteTuner_get_DefaultSubChannelTypes(This,plDefaultVideoType,plDefaultAudioType) \ - (This)->lpVtbl -> get_DefaultSubChannelTypes(This,plDefaultVideoType,plDefaultAudioType) - -#define IBPCSatelliteTuner_put_DefaultSubChannelTypes(This,lDefaultVideoType,lDefaultAudioType) \ - (This)->lpVtbl -> put_DefaultSubChannelTypes(This,lDefaultVideoType,lDefaultAudioType) - -#define IBPCSatelliteTuner_IsTapingPermitted(This) \ - (This)->lpVtbl -> IsTapingPermitted(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IBPCSatelliteTuner_get_DefaultSubChannelTypes_Proxy( - IBPCSatelliteTuner * This, - /* [out] */ long *plDefaultVideoType, - /* [out] */ long *plDefaultAudioType); - - -void __RPC_STUB IBPCSatelliteTuner_get_DefaultSubChannelTypes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBPCSatelliteTuner_put_DefaultSubChannelTypes_Proxy( - IBPCSatelliteTuner * This, - /* [in] */ long lDefaultVideoType, - /* [in] */ long lDefaultAudioType); - - -void __RPC_STUB IBPCSatelliteTuner_put_DefaultSubChannelTypes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IBPCSatelliteTuner_IsTapingPermitted_Proxy( - IBPCSatelliteTuner * This); - - -void __RPC_STUB IBPCSatelliteTuner_IsTapingPermitted_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IBPCSatelliteTuner_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0178 */ -/* [local] */ - -typedef -enum tagTVAudioMode - { AMTVAUDIO_MODE_MONO = 0x1, - AMTVAUDIO_MODE_STEREO = 0x2, - AMTVAUDIO_MODE_LANG_A = 0x10, - AMTVAUDIO_MODE_LANG_B = 0x20, - AMTVAUDIO_MODE_LANG_C = 0x40 - } TVAudioMode; - -typedef -enum tagAMTVAudioEventType - { AMTVAUDIO_EVENT_CHANGED = 0x1 - } AMTVAudioEventType; - - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0178_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0178_v0_0_s_ifspec; - -#ifndef __IAMTVAudio_INTERFACE_DEFINED__ -#define __IAMTVAudio_INTERFACE_DEFINED__ - -/* interface IAMTVAudio */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IAMTVAudio; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("83EC1C30-23D1-11d1-99E6-00A0C9560266") - IAMTVAudio : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetHardwareSupportedTVAudioModes( - /* [out] */ long *plModes) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAvailableTVAudioModes( - /* [out] */ long *plModes) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_TVAudioMode( - /* [out] */ long *plMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_TVAudioMode( - /* [in] */ long lMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterNotificationCallBack( - /* [in] */ IAMTunerNotification *pNotify, - /* [in] */ long lEvents) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnRegisterNotificationCallBack( - IAMTunerNotification *pNotify) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTVAudioVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTVAudio * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTVAudio * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTVAudio * This); - - HRESULT ( STDMETHODCALLTYPE *GetHardwareSupportedTVAudioModes )( - IAMTVAudio * This, - /* [out] */ long *plModes); - - HRESULT ( STDMETHODCALLTYPE *GetAvailableTVAudioModes )( - IAMTVAudio * This, - /* [out] */ long *plModes); - - HRESULT ( STDMETHODCALLTYPE *get_TVAudioMode )( - IAMTVAudio * This, - /* [out] */ long *plMode); - - HRESULT ( STDMETHODCALLTYPE *put_TVAudioMode )( - IAMTVAudio * This, - /* [in] */ long lMode); - - HRESULT ( STDMETHODCALLTYPE *RegisterNotificationCallBack )( - IAMTVAudio * This, - /* [in] */ IAMTunerNotification *pNotify, - /* [in] */ long lEvents); - - HRESULT ( STDMETHODCALLTYPE *UnRegisterNotificationCallBack )( - IAMTVAudio * This, - IAMTunerNotification *pNotify); - - END_INTERFACE - } IAMTVAudioVtbl; - - interface IAMTVAudio - { - CONST_VTBL struct IAMTVAudioVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTVAudio_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTVAudio_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTVAudio_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTVAudio_GetHardwareSupportedTVAudioModes(This,plModes) \ - (This)->lpVtbl -> GetHardwareSupportedTVAudioModes(This,plModes) - -#define IAMTVAudio_GetAvailableTVAudioModes(This,plModes) \ - (This)->lpVtbl -> GetAvailableTVAudioModes(This,plModes) - -#define IAMTVAudio_get_TVAudioMode(This,plMode) \ - (This)->lpVtbl -> get_TVAudioMode(This,plMode) - -#define IAMTVAudio_put_TVAudioMode(This,lMode) \ - (This)->lpVtbl -> put_TVAudioMode(This,lMode) - -#define IAMTVAudio_RegisterNotificationCallBack(This,pNotify,lEvents) \ - (This)->lpVtbl -> RegisterNotificationCallBack(This,pNotify,lEvents) - -#define IAMTVAudio_UnRegisterNotificationCallBack(This,pNotify) \ - (This)->lpVtbl -> UnRegisterNotificationCallBack(This,pNotify) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMTVAudio_GetHardwareSupportedTVAudioModes_Proxy( - IAMTVAudio * This, - /* [out] */ long *plModes); - - -void __RPC_STUB IAMTVAudio_GetHardwareSupportedTVAudioModes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVAudio_GetAvailableTVAudioModes_Proxy( - IAMTVAudio * This, - /* [out] */ long *plModes); - - -void __RPC_STUB IAMTVAudio_GetAvailableTVAudioModes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVAudio_get_TVAudioMode_Proxy( - IAMTVAudio * This, - /* [out] */ long *plMode); - - -void __RPC_STUB IAMTVAudio_get_TVAudioMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVAudio_put_TVAudioMode_Proxy( - IAMTVAudio * This, - /* [in] */ long lMode); - - -void __RPC_STUB IAMTVAudio_put_TVAudioMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVAudio_RegisterNotificationCallBack_Proxy( - IAMTVAudio * This, - /* [in] */ IAMTunerNotification *pNotify, - /* [in] */ long lEvents); - - -void __RPC_STUB IAMTVAudio_RegisterNotificationCallBack_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTVAudio_UnRegisterNotificationCallBack_Proxy( - IAMTVAudio * This, - IAMTunerNotification *pNotify); - - -void __RPC_STUB IAMTVAudio_UnRegisterNotificationCallBack_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTVAudio_INTERFACE_DEFINED__ */ - - -#ifndef __IAMTVAudioNotification_INTERFACE_DEFINED__ -#define __IAMTVAudioNotification_INTERFACE_DEFINED__ - -/* interface IAMTVAudioNotification */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IAMTVAudioNotification; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("83EC1C33-23D1-11d1-99E6-00A0C9560266") - IAMTVAudioNotification : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE OnEvent( - /* [in] */ AMTVAudioEventType Event) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTVAudioNotificationVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTVAudioNotification * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTVAudioNotification * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTVAudioNotification * This); - - HRESULT ( STDMETHODCALLTYPE *OnEvent )( - IAMTVAudioNotification * This, - /* [in] */ AMTVAudioEventType Event); - - END_INTERFACE - } IAMTVAudioNotificationVtbl; - - interface IAMTVAudioNotification - { - CONST_VTBL struct IAMTVAudioNotificationVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTVAudioNotification_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTVAudioNotification_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTVAudioNotification_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTVAudioNotification_OnEvent(This,Event) \ - (This)->lpVtbl -> OnEvent(This,Event) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMTVAudioNotification_OnEvent_Proxy( - IAMTVAudioNotification * This, - /* [in] */ AMTVAudioEventType Event); - - -void __RPC_STUB IAMTVAudioNotification_OnEvent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTVAudioNotification_INTERFACE_DEFINED__ */ - - -#ifndef __IAMAnalogVideoEncoder_INTERFACE_DEFINED__ -#define __IAMAnalogVideoEncoder_INTERFACE_DEFINED__ - -/* interface IAMAnalogVideoEncoder */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMAnalogVideoEncoder; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C6E133B0-30AC-11d0-A18C-00A0C9118956") - IAMAnalogVideoEncoder : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE get_AvailableTVFormats( - /* [out] */ long *lAnalogVideoStandard) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_TVFormat( - /* [in] */ long lAnalogVideoStandard) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_TVFormat( - /* [out] */ long *plAnalogVideoStandard) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_CopyProtection( - /* [in] */ long lVideoCopyProtection) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_CopyProtection( - /* [out] */ long *lVideoCopyProtection) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_CCEnable( - /* [in] */ long lCCEnable) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_CCEnable( - /* [out] */ long *lCCEnable) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMAnalogVideoEncoderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMAnalogVideoEncoder * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMAnalogVideoEncoder * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMAnalogVideoEncoder * This); - - HRESULT ( STDMETHODCALLTYPE *get_AvailableTVFormats )( - IAMAnalogVideoEncoder * This, - /* [out] */ long *lAnalogVideoStandard); - - HRESULT ( STDMETHODCALLTYPE *put_TVFormat )( - IAMAnalogVideoEncoder * This, - /* [in] */ long lAnalogVideoStandard); - - HRESULT ( STDMETHODCALLTYPE *get_TVFormat )( - IAMAnalogVideoEncoder * This, - /* [out] */ long *plAnalogVideoStandard); - - HRESULT ( STDMETHODCALLTYPE *put_CopyProtection )( - IAMAnalogVideoEncoder * This, - /* [in] */ long lVideoCopyProtection); - - HRESULT ( STDMETHODCALLTYPE *get_CopyProtection )( - IAMAnalogVideoEncoder * This, - /* [out] */ long *lVideoCopyProtection); - - HRESULT ( STDMETHODCALLTYPE *put_CCEnable )( - IAMAnalogVideoEncoder * This, - /* [in] */ long lCCEnable); - - HRESULT ( STDMETHODCALLTYPE *get_CCEnable )( - IAMAnalogVideoEncoder * This, - /* [out] */ long *lCCEnable); - - END_INTERFACE - } IAMAnalogVideoEncoderVtbl; - - interface IAMAnalogVideoEncoder - { - CONST_VTBL struct IAMAnalogVideoEncoderVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMAnalogVideoEncoder_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMAnalogVideoEncoder_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMAnalogVideoEncoder_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMAnalogVideoEncoder_get_AvailableTVFormats(This,lAnalogVideoStandard) \ - (This)->lpVtbl -> get_AvailableTVFormats(This,lAnalogVideoStandard) - -#define IAMAnalogVideoEncoder_put_TVFormat(This,lAnalogVideoStandard) \ - (This)->lpVtbl -> put_TVFormat(This,lAnalogVideoStandard) - -#define IAMAnalogVideoEncoder_get_TVFormat(This,plAnalogVideoStandard) \ - (This)->lpVtbl -> get_TVFormat(This,plAnalogVideoStandard) - -#define IAMAnalogVideoEncoder_put_CopyProtection(This,lVideoCopyProtection) \ - (This)->lpVtbl -> put_CopyProtection(This,lVideoCopyProtection) - -#define IAMAnalogVideoEncoder_get_CopyProtection(This,lVideoCopyProtection) \ - (This)->lpVtbl -> get_CopyProtection(This,lVideoCopyProtection) - -#define IAMAnalogVideoEncoder_put_CCEnable(This,lCCEnable) \ - (This)->lpVtbl -> put_CCEnable(This,lCCEnable) - -#define IAMAnalogVideoEncoder_get_CCEnable(This,lCCEnable) \ - (This)->lpVtbl -> get_CCEnable(This,lCCEnable) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoEncoder_get_AvailableTVFormats_Proxy( - IAMAnalogVideoEncoder * This, - /* [out] */ long *lAnalogVideoStandard); - - -void __RPC_STUB IAMAnalogVideoEncoder_get_AvailableTVFormats_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoEncoder_put_TVFormat_Proxy( - IAMAnalogVideoEncoder * This, - /* [in] */ long lAnalogVideoStandard); - - -void __RPC_STUB IAMAnalogVideoEncoder_put_TVFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoEncoder_get_TVFormat_Proxy( - IAMAnalogVideoEncoder * This, - /* [out] */ long *plAnalogVideoStandard); - - -void __RPC_STUB IAMAnalogVideoEncoder_get_TVFormat_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoEncoder_put_CopyProtection_Proxy( - IAMAnalogVideoEncoder * This, - /* [in] */ long lVideoCopyProtection); - - -void __RPC_STUB IAMAnalogVideoEncoder_put_CopyProtection_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoEncoder_get_CopyProtection_Proxy( - IAMAnalogVideoEncoder * This, - /* [out] */ long *lVideoCopyProtection); - - -void __RPC_STUB IAMAnalogVideoEncoder_get_CopyProtection_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoEncoder_put_CCEnable_Proxy( - IAMAnalogVideoEncoder * This, - /* [in] */ long lCCEnable); - - -void __RPC_STUB IAMAnalogVideoEncoder_put_CCEnable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMAnalogVideoEncoder_get_CCEnable_Proxy( - IAMAnalogVideoEncoder * This, - /* [out] */ long *lCCEnable); - - -void __RPC_STUB IAMAnalogVideoEncoder_get_CCEnable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMAnalogVideoEncoder_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0181 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0181_0001 - { AMPROPERTY_PIN_CATEGORY = 0, - AMPROPERTY_PIN_MEDIUM = AMPROPERTY_PIN_CATEGORY + 1 - } AMPROPERTY_PIN; - -#ifndef _IKsPropertySet_ -#define _IKsPropertySet_ -#define KSPROPERTY_SUPPORT_GET 1 -#define KSPROPERTY_SUPPORT_SET 2 - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0181_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0181_v0_0_s_ifspec; - -#ifndef __IKsPropertySet_INTERFACE_DEFINED__ -#define __IKsPropertySet_INTERFACE_DEFINED__ - -/* interface IKsPropertySet */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IKsPropertySet; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("31EFAC30-515C-11d0-A9AA-00AA0061BE93") - IKsPropertySet : public IUnknown - { - public: - virtual /* [local] */ HRESULT STDMETHODCALLTYPE Set( - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [size_is][in] */ LPVOID pInstanceData, - /* [in] */ DWORD cbInstanceData, - /* [size_is][in] */ LPVOID pPropData, - /* [in] */ DWORD cbPropData) = 0; - - virtual /* [local] */ HRESULT STDMETHODCALLTYPE Get( - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [size_is][in] */ LPVOID pInstanceData, - /* [in] */ DWORD cbInstanceData, - /* [size_is][out] */ LPVOID pPropData, - /* [in] */ DWORD cbPropData, - /* [out] */ DWORD *pcbReturned) = 0; - - virtual HRESULT STDMETHODCALLTYPE QuerySupported( - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [out] */ DWORD *pTypeSupport) = 0; - - }; - -#else /* C style interface */ - - typedef struct IKsPropertySetVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IKsPropertySet * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IKsPropertySet * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IKsPropertySet * This); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Set )( - IKsPropertySet * This, - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [size_is][in] */ LPVOID pInstanceData, - /* [in] */ DWORD cbInstanceData, - /* [size_is][in] */ LPVOID pPropData, - /* [in] */ DWORD cbPropData); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Get )( - IKsPropertySet * This, - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [size_is][in] */ LPVOID pInstanceData, - /* [in] */ DWORD cbInstanceData, - /* [size_is][out] */ LPVOID pPropData, - /* [in] */ DWORD cbPropData, - /* [out] */ DWORD *pcbReturned); - - HRESULT ( STDMETHODCALLTYPE *QuerySupported )( - IKsPropertySet * This, - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [out] */ DWORD *pTypeSupport); - - END_INTERFACE - } IKsPropertySetVtbl; - - interface IKsPropertySet - { - CONST_VTBL struct IKsPropertySetVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IKsPropertySet_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IKsPropertySet_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IKsPropertySet_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IKsPropertySet_Set(This,guidPropSet,dwPropID,pInstanceData,cbInstanceData,pPropData,cbPropData) \ - (This)->lpVtbl -> Set(This,guidPropSet,dwPropID,pInstanceData,cbInstanceData,pPropData,cbPropData) - -#define IKsPropertySet_Get(This,guidPropSet,dwPropID,pInstanceData,cbInstanceData,pPropData,cbPropData,pcbReturned) \ - (This)->lpVtbl -> Get(This,guidPropSet,dwPropID,pInstanceData,cbInstanceData,pPropData,cbPropData,pcbReturned) - -#define IKsPropertySet_QuerySupported(This,guidPropSet,dwPropID,pTypeSupport) \ - (This)->lpVtbl -> QuerySupported(This,guidPropSet,dwPropID,pTypeSupport) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [call_as] */ HRESULT STDMETHODCALLTYPE IKsPropertySet_RemoteSet_Proxy( - IKsPropertySet * This, - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [size_is][in] */ byte *pInstanceData, - /* [in] */ DWORD cbInstanceData, - /* [size_is][in] */ byte *pPropData, - /* [in] */ DWORD cbPropData); - - -void __RPC_STUB IKsPropertySet_RemoteSet_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [call_as] */ HRESULT STDMETHODCALLTYPE IKsPropertySet_RemoteGet_Proxy( - IKsPropertySet * This, - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [size_is][in] */ byte *pInstanceData, - /* [in] */ DWORD cbInstanceData, - /* [size_is][out] */ byte *pPropData, - /* [in] */ DWORD cbPropData, - /* [out] */ DWORD *pcbReturned); - - -void __RPC_STUB IKsPropertySet_RemoteGet_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IKsPropertySet_QuerySupported_Proxy( - IKsPropertySet * This, - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [out] */ DWORD *pTypeSupport); - - -void __RPC_STUB IKsPropertySet_QuerySupported_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IKsPropertySet_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0182 */ -/* [local] */ - -#endif // _IKsPropertySet_ - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0182_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0182_v0_0_s_ifspec; - -#ifndef __IMediaPropertyBag_INTERFACE_DEFINED__ -#define __IMediaPropertyBag_INTERFACE_DEFINED__ - -/* interface IMediaPropertyBag */ -/* [unique][uuid][object] */ - -typedef IMediaPropertyBag *LPMEDIAPROPERTYBAG; - - -EXTERN_C const IID IID_IMediaPropertyBag; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("6025A880-C0D5-11d0-BD4E-00A0C911CE86") - IMediaPropertyBag : public IPropertyBag - { - public: - virtual HRESULT STDMETHODCALLTYPE EnumProperty( - /* [in] */ ULONG iProperty, - /* [out][in] */ VARIANT *pvarPropertyName, - /* [out][in] */ VARIANT *pvarPropertyValue) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMediaPropertyBagVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMediaPropertyBag * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMediaPropertyBag * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMediaPropertyBag * This); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )( - IMediaPropertyBag * This, - /* [in] */ LPCOLESTR pszPropName, - /* [out][in] */ VARIANT *pVar, - /* [in] */ IErrorLog *pErrorLog); - - HRESULT ( STDMETHODCALLTYPE *Write )( - IMediaPropertyBag * This, - /* [in] */ LPCOLESTR pszPropName, - /* [in] */ VARIANT *pVar); - - HRESULT ( STDMETHODCALLTYPE *EnumProperty )( - IMediaPropertyBag * This, - /* [in] */ ULONG iProperty, - /* [out][in] */ VARIANT *pvarPropertyName, - /* [out][in] */ VARIANT *pvarPropertyValue); - - END_INTERFACE - } IMediaPropertyBagVtbl; - - interface IMediaPropertyBag - { - CONST_VTBL struct IMediaPropertyBagVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMediaPropertyBag_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMediaPropertyBag_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMediaPropertyBag_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMediaPropertyBag_Read(This,pszPropName,pVar,pErrorLog) \ - (This)->lpVtbl -> Read(This,pszPropName,pVar,pErrorLog) - -#define IMediaPropertyBag_Write(This,pszPropName,pVar) \ - (This)->lpVtbl -> Write(This,pszPropName,pVar) - - -#define IMediaPropertyBag_EnumProperty(This,iProperty,pvarPropertyName,pvarPropertyValue) \ - (This)->lpVtbl -> EnumProperty(This,iProperty,pvarPropertyName,pvarPropertyValue) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMediaPropertyBag_EnumProperty_Proxy( - IMediaPropertyBag * This, - /* [in] */ ULONG iProperty, - /* [out][in] */ VARIANT *pvarPropertyName, - /* [out][in] */ VARIANT *pvarPropertyValue); - - -void __RPC_STUB IMediaPropertyBag_EnumProperty_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMediaPropertyBag_INTERFACE_DEFINED__ */ - - -#ifndef __IPersistMediaPropertyBag_INTERFACE_DEFINED__ -#define __IPersistMediaPropertyBag_INTERFACE_DEFINED__ - -/* interface IPersistMediaPropertyBag */ -/* [unique][uuid][object] */ - -typedef IPersistMediaPropertyBag *LPPERSISTMEDIAPROPERTYBAG; - - -EXTERN_C const IID IID_IPersistMediaPropertyBag; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("5738E040-B67F-11d0-BD4D-00A0C911CE86") - IPersistMediaPropertyBag : public IPersist - { - public: - virtual HRESULT STDMETHODCALLTYPE InitNew( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Load( - /* [in] */ IMediaPropertyBag *pPropBag, - /* [in] */ IErrorLog *pErrorLog) = 0; - - virtual HRESULT STDMETHODCALLTYPE Save( - /* [in] */ IMediaPropertyBag *pPropBag, - /* [in] */ BOOL fClearDirty, - /* [in] */ BOOL fSaveAllProperties) = 0; - - }; - -#else /* C style interface */ - - typedef struct IPersistMediaPropertyBagVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IPersistMediaPropertyBag * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IPersistMediaPropertyBag * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IPersistMediaPropertyBag * This); - - HRESULT ( STDMETHODCALLTYPE *GetClassID )( - IPersistMediaPropertyBag * This, - /* [out] */ CLSID *pClassID); - - HRESULT ( STDMETHODCALLTYPE *InitNew )( - IPersistMediaPropertyBag * This); - - HRESULT ( STDMETHODCALLTYPE *Load )( - IPersistMediaPropertyBag * This, - /* [in] */ IMediaPropertyBag *pPropBag, - /* [in] */ IErrorLog *pErrorLog); - - HRESULT ( STDMETHODCALLTYPE *Save )( - IPersistMediaPropertyBag * This, - /* [in] */ IMediaPropertyBag *pPropBag, - /* [in] */ BOOL fClearDirty, - /* [in] */ BOOL fSaveAllProperties); - - END_INTERFACE - } IPersistMediaPropertyBagVtbl; - - interface IPersistMediaPropertyBag - { - CONST_VTBL struct IPersistMediaPropertyBagVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IPersistMediaPropertyBag_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IPersistMediaPropertyBag_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IPersistMediaPropertyBag_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IPersistMediaPropertyBag_GetClassID(This,pClassID) \ - (This)->lpVtbl -> GetClassID(This,pClassID) - - -#define IPersistMediaPropertyBag_InitNew(This) \ - (This)->lpVtbl -> InitNew(This) - -#define IPersistMediaPropertyBag_Load(This,pPropBag,pErrorLog) \ - (This)->lpVtbl -> Load(This,pPropBag,pErrorLog) - -#define IPersistMediaPropertyBag_Save(This,pPropBag,fClearDirty,fSaveAllProperties) \ - (This)->lpVtbl -> Save(This,pPropBag,fClearDirty,fSaveAllProperties) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IPersistMediaPropertyBag_InitNew_Proxy( - IPersistMediaPropertyBag * This); - - -void __RPC_STUB IPersistMediaPropertyBag_InitNew_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPersistMediaPropertyBag_Load_Proxy( - IPersistMediaPropertyBag * This, - /* [in] */ IMediaPropertyBag *pPropBag, - /* [in] */ IErrorLog *pErrorLog); - - -void __RPC_STUB IPersistMediaPropertyBag_Load_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPersistMediaPropertyBag_Save_Proxy( - IPersistMediaPropertyBag * This, - /* [in] */ IMediaPropertyBag *pPropBag, - /* [in] */ BOOL fClearDirty, - /* [in] */ BOOL fSaveAllProperties); - - -void __RPC_STUB IPersistMediaPropertyBag_Save_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IPersistMediaPropertyBag_INTERFACE_DEFINED__ */ - - -#ifndef __IAMPhysicalPinInfo_INTERFACE_DEFINED__ -#define __IAMPhysicalPinInfo_INTERFACE_DEFINED__ - -/* interface IAMPhysicalPinInfo */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMPhysicalPinInfo; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("F938C991-3029-11cf-8C44-00AA006B6814") - IAMPhysicalPinInfo : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetPhysicalType( - /* [out] */ long *pType, - /* [out] */ LPOLESTR *ppszType) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMPhysicalPinInfoVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMPhysicalPinInfo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMPhysicalPinInfo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMPhysicalPinInfo * This); - - HRESULT ( STDMETHODCALLTYPE *GetPhysicalType )( - IAMPhysicalPinInfo * This, - /* [out] */ long *pType, - /* [out] */ LPOLESTR *ppszType); - - END_INTERFACE - } IAMPhysicalPinInfoVtbl; - - interface IAMPhysicalPinInfo - { - CONST_VTBL struct IAMPhysicalPinInfoVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMPhysicalPinInfo_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMPhysicalPinInfo_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMPhysicalPinInfo_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMPhysicalPinInfo_GetPhysicalType(This,pType,ppszType) \ - (This)->lpVtbl -> GetPhysicalType(This,pType,ppszType) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMPhysicalPinInfo_GetPhysicalType_Proxy( - IAMPhysicalPinInfo * This, - /* [out] */ long *pType, - /* [out] */ LPOLESTR *ppszType); - - -void __RPC_STUB IAMPhysicalPinInfo_GetPhysicalType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMPhysicalPinInfo_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0329 */ -/* [local] */ - -typedef IAMPhysicalPinInfo *PAMPHYSICALPININFO; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0329_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0329_v0_0_s_ifspec; - -#ifndef __IAMExtDevice_INTERFACE_DEFINED__ -#define __IAMExtDevice_INTERFACE_DEFINED__ - -/* interface IAMExtDevice */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMExtDevice; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B5730A90-1A2C-11cf-8C23-00AA006B6814") - IAMExtDevice : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetCapability( - /* [in] */ long Capability, - /* [out] */ long *pValue, - /* [out] */ double *pdblValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_ExternalDeviceID( - /* [out] */ LPOLESTR *ppszData) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_ExternalDeviceVersion( - /* [out] */ LPOLESTR *ppszData) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_DevicePower( - /* [in] */ long PowerMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_DevicePower( - /* [out] */ long *pPowerMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE Calibrate( - /* [in] */ HEVENT hEvent, - /* [in] */ long Mode, - /* [out] */ long *pStatus) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_DevicePort( - /* [in] */ long DevicePort) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_DevicePort( - /* [out] */ long *pDevicePort) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMExtDeviceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMExtDevice * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMExtDevice * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMExtDevice * This); - - HRESULT ( STDMETHODCALLTYPE *GetCapability )( - IAMExtDevice * This, - /* [in] */ long Capability, - /* [out] */ long *pValue, - /* [out] */ double *pdblValue); - - HRESULT ( STDMETHODCALLTYPE *get_ExternalDeviceID )( - IAMExtDevice * This, - /* [out] */ LPOLESTR *ppszData); - - HRESULT ( STDMETHODCALLTYPE *get_ExternalDeviceVersion )( - IAMExtDevice * This, - /* [out] */ LPOLESTR *ppszData); - - HRESULT ( STDMETHODCALLTYPE *put_DevicePower )( - IAMExtDevice * This, - /* [in] */ long PowerMode); - - HRESULT ( STDMETHODCALLTYPE *get_DevicePower )( - IAMExtDevice * This, - /* [out] */ long *pPowerMode); - - HRESULT ( STDMETHODCALLTYPE *Calibrate )( - IAMExtDevice * This, - /* [in] */ HEVENT hEvent, - /* [in] */ long Mode, - /* [out] */ long *pStatus); - - HRESULT ( STDMETHODCALLTYPE *put_DevicePort )( - IAMExtDevice * This, - /* [in] */ long DevicePort); - - HRESULT ( STDMETHODCALLTYPE *get_DevicePort )( - IAMExtDevice * This, - /* [out] */ long *pDevicePort); - - END_INTERFACE - } IAMExtDeviceVtbl; - - interface IAMExtDevice - { - CONST_VTBL struct IAMExtDeviceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMExtDevice_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMExtDevice_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMExtDevice_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMExtDevice_GetCapability(This,Capability,pValue,pdblValue) \ - (This)->lpVtbl -> GetCapability(This,Capability,pValue,pdblValue) - -#define IAMExtDevice_get_ExternalDeviceID(This,ppszData) \ - (This)->lpVtbl -> get_ExternalDeviceID(This,ppszData) - -#define IAMExtDevice_get_ExternalDeviceVersion(This,ppszData) \ - (This)->lpVtbl -> get_ExternalDeviceVersion(This,ppszData) - -#define IAMExtDevice_put_DevicePower(This,PowerMode) \ - (This)->lpVtbl -> put_DevicePower(This,PowerMode) - -#define IAMExtDevice_get_DevicePower(This,pPowerMode) \ - (This)->lpVtbl -> get_DevicePower(This,pPowerMode) - -#define IAMExtDevice_Calibrate(This,hEvent,Mode,pStatus) \ - (This)->lpVtbl -> Calibrate(This,hEvent,Mode,pStatus) - -#define IAMExtDevice_put_DevicePort(This,DevicePort) \ - (This)->lpVtbl -> put_DevicePort(This,DevicePort) - -#define IAMExtDevice_get_DevicePort(This,pDevicePort) \ - (This)->lpVtbl -> get_DevicePort(This,pDevicePort) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMExtDevice_GetCapability_Proxy( - IAMExtDevice * This, - /* [in] */ long Capability, - /* [out] */ long *pValue, - /* [out] */ double *pdblValue); - - -void __RPC_STUB IAMExtDevice_GetCapability_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtDevice_get_ExternalDeviceID_Proxy( - IAMExtDevice * This, - /* [out] */ LPOLESTR *ppszData); - - -void __RPC_STUB IAMExtDevice_get_ExternalDeviceID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtDevice_get_ExternalDeviceVersion_Proxy( - IAMExtDevice * This, - /* [out] */ LPOLESTR *ppszData); - - -void __RPC_STUB IAMExtDevice_get_ExternalDeviceVersion_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtDevice_put_DevicePower_Proxy( - IAMExtDevice * This, - /* [in] */ long PowerMode); - - -void __RPC_STUB IAMExtDevice_put_DevicePower_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtDevice_get_DevicePower_Proxy( - IAMExtDevice * This, - /* [out] */ long *pPowerMode); - - -void __RPC_STUB IAMExtDevice_get_DevicePower_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtDevice_Calibrate_Proxy( - IAMExtDevice * This, - /* [in] */ HEVENT hEvent, - /* [in] */ long Mode, - /* [out] */ long *pStatus); - - -void __RPC_STUB IAMExtDevice_Calibrate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtDevice_put_DevicePort_Proxy( - IAMExtDevice * This, - /* [in] */ long DevicePort); - - -void __RPC_STUB IAMExtDevice_put_DevicePort_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtDevice_get_DevicePort_Proxy( - IAMExtDevice * This, - /* [out] */ long *pDevicePort); - - -void __RPC_STUB IAMExtDevice_get_DevicePort_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMExtDevice_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0330 */ -/* [local] */ - -typedef IAMExtDevice *PEXTDEVICE; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0330_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0330_v0_0_s_ifspec; - -#ifndef __IAMExtTransport_INTERFACE_DEFINED__ -#define __IAMExtTransport_INTERFACE_DEFINED__ - -/* interface IAMExtTransport */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMExtTransport; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("A03CD5F0-3045-11cf-8C44-00AA006B6814") - IAMExtTransport : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetCapability( - /* [in] */ long Capability, - /* [out] */ long *pValue, - /* [out] */ double *pdblValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_MediaState( - /* [in] */ long State) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_MediaState( - /* [out] */ long *pState) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_LocalControl( - /* [in] */ long State) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_LocalControl( - /* [out] */ long *pState) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStatus( - /* [in] */ long StatusItem, - /* [out] */ long *pValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTransportBasicParameters( - /* [in] */ long Param, - /* [out] */ long *pValue, - /* [out] */ LPOLESTR *ppszData) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTransportBasicParameters( - /* [in] */ long Param, - /* [in] */ long Value, - /* [in] */ LPCOLESTR pszData) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTransportVideoParameters( - /* [in] */ long Param, - /* [out] */ long *pValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTransportVideoParameters( - /* [in] */ long Param, - /* [in] */ long Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTransportAudioParameters( - /* [in] */ long Param, - /* [out] */ long *pValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTransportAudioParameters( - /* [in] */ long Param, - /* [in] */ long Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Mode( - /* [in] */ long Mode) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Mode( - /* [out] */ long *pMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Rate( - /* [in] */ double dblRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Rate( - /* [out] */ double *pdblRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetChase( - /* [out] */ long *pEnabled, - /* [out] */ long *pOffset, - /* [out] */ HEVENT *phEvent) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetChase( - /* [in] */ long Enable, - /* [in] */ long Offset, - /* [in] */ HEVENT hEvent) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBump( - /* [out] */ long *pSpeed, - /* [out] */ long *pDuration) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBump( - /* [in] */ long Speed, - /* [in] */ long Duration) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_AntiClogControl( - /* [out] */ long *pEnabled) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_AntiClogControl( - /* [in] */ long Enable) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetEditPropertySet( - /* [in] */ long EditID, - /* [out] */ long *pState) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetEditPropertySet( - /* [out][in] */ long *pEditID, - /* [in] */ long State) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetEditProperty( - /* [in] */ long EditID, - /* [in] */ long Param, - /* [out] */ long *pValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetEditProperty( - /* [in] */ long EditID, - /* [in] */ long Param, - /* [in] */ long Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_EditStart( - /* [out] */ long *pValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_EditStart( - /* [in] */ long Value) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMExtTransportVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMExtTransport * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMExtTransport * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMExtTransport * This); - - HRESULT ( STDMETHODCALLTYPE *GetCapability )( - IAMExtTransport * This, - /* [in] */ long Capability, - /* [out] */ long *pValue, - /* [out] */ double *pdblValue); - - HRESULT ( STDMETHODCALLTYPE *put_MediaState )( - IAMExtTransport * This, - /* [in] */ long State); - - HRESULT ( STDMETHODCALLTYPE *get_MediaState )( - IAMExtTransport * This, - /* [out] */ long *pState); - - HRESULT ( STDMETHODCALLTYPE *put_LocalControl )( - IAMExtTransport * This, - /* [in] */ long State); - - HRESULT ( STDMETHODCALLTYPE *get_LocalControl )( - IAMExtTransport * This, - /* [out] */ long *pState); - - HRESULT ( STDMETHODCALLTYPE *GetStatus )( - IAMExtTransport * This, - /* [in] */ long StatusItem, - /* [out] */ long *pValue); - - HRESULT ( STDMETHODCALLTYPE *GetTransportBasicParameters )( - IAMExtTransport * This, - /* [in] */ long Param, - /* [out] */ long *pValue, - /* [out] */ LPOLESTR *ppszData); - - HRESULT ( STDMETHODCALLTYPE *SetTransportBasicParameters )( - IAMExtTransport * This, - /* [in] */ long Param, - /* [in] */ long Value, - /* [in] */ LPCOLESTR pszData); - - HRESULT ( STDMETHODCALLTYPE *GetTransportVideoParameters )( - IAMExtTransport * This, - /* [in] */ long Param, - /* [out] */ long *pValue); - - HRESULT ( STDMETHODCALLTYPE *SetTransportVideoParameters )( - IAMExtTransport * This, - /* [in] */ long Param, - /* [in] */ long Value); - - HRESULT ( STDMETHODCALLTYPE *GetTransportAudioParameters )( - IAMExtTransport * This, - /* [in] */ long Param, - /* [out] */ long *pValue); - - HRESULT ( STDMETHODCALLTYPE *SetTransportAudioParameters )( - IAMExtTransport * This, - /* [in] */ long Param, - /* [in] */ long Value); - - HRESULT ( STDMETHODCALLTYPE *put_Mode )( - IAMExtTransport * This, - /* [in] */ long Mode); - - HRESULT ( STDMETHODCALLTYPE *get_Mode )( - IAMExtTransport * This, - /* [out] */ long *pMode); - - HRESULT ( STDMETHODCALLTYPE *put_Rate )( - IAMExtTransport * This, - /* [in] */ double dblRate); - - HRESULT ( STDMETHODCALLTYPE *get_Rate )( - IAMExtTransport * This, - /* [out] */ double *pdblRate); - - HRESULT ( STDMETHODCALLTYPE *GetChase )( - IAMExtTransport * This, - /* [out] */ long *pEnabled, - /* [out] */ long *pOffset, - /* [out] */ HEVENT *phEvent); - - HRESULT ( STDMETHODCALLTYPE *SetChase )( - IAMExtTransport * This, - /* [in] */ long Enable, - /* [in] */ long Offset, - /* [in] */ HEVENT hEvent); - - HRESULT ( STDMETHODCALLTYPE *GetBump )( - IAMExtTransport * This, - /* [out] */ long *pSpeed, - /* [out] */ long *pDuration); - - HRESULT ( STDMETHODCALLTYPE *SetBump )( - IAMExtTransport * This, - /* [in] */ long Speed, - /* [in] */ long Duration); - - HRESULT ( STDMETHODCALLTYPE *get_AntiClogControl )( - IAMExtTransport * This, - /* [out] */ long *pEnabled); - - HRESULT ( STDMETHODCALLTYPE *put_AntiClogControl )( - IAMExtTransport * This, - /* [in] */ long Enable); - - HRESULT ( STDMETHODCALLTYPE *GetEditPropertySet )( - IAMExtTransport * This, - /* [in] */ long EditID, - /* [out] */ long *pState); - - HRESULT ( STDMETHODCALLTYPE *SetEditPropertySet )( - IAMExtTransport * This, - /* [out][in] */ long *pEditID, - /* [in] */ long State); - - HRESULT ( STDMETHODCALLTYPE *GetEditProperty )( - IAMExtTransport * This, - /* [in] */ long EditID, - /* [in] */ long Param, - /* [out] */ long *pValue); - - HRESULT ( STDMETHODCALLTYPE *SetEditProperty )( - IAMExtTransport * This, - /* [in] */ long EditID, - /* [in] */ long Param, - /* [in] */ long Value); - - HRESULT ( STDMETHODCALLTYPE *get_EditStart )( - IAMExtTransport * This, - /* [out] */ long *pValue); - - HRESULT ( STDMETHODCALLTYPE *put_EditStart )( - IAMExtTransport * This, - /* [in] */ long Value); - - END_INTERFACE - } IAMExtTransportVtbl; - - interface IAMExtTransport - { - CONST_VTBL struct IAMExtTransportVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMExtTransport_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMExtTransport_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMExtTransport_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMExtTransport_GetCapability(This,Capability,pValue,pdblValue) \ - (This)->lpVtbl -> GetCapability(This,Capability,pValue,pdblValue) - -#define IAMExtTransport_put_MediaState(This,State) \ - (This)->lpVtbl -> put_MediaState(This,State) - -#define IAMExtTransport_get_MediaState(This,pState) \ - (This)->lpVtbl -> get_MediaState(This,pState) - -#define IAMExtTransport_put_LocalControl(This,State) \ - (This)->lpVtbl -> put_LocalControl(This,State) - -#define IAMExtTransport_get_LocalControl(This,pState) \ - (This)->lpVtbl -> get_LocalControl(This,pState) - -#define IAMExtTransport_GetStatus(This,StatusItem,pValue) \ - (This)->lpVtbl -> GetStatus(This,StatusItem,pValue) - -#define IAMExtTransport_GetTransportBasicParameters(This,Param,pValue,ppszData) \ - (This)->lpVtbl -> GetTransportBasicParameters(This,Param,pValue,ppszData) - -#define IAMExtTransport_SetTransportBasicParameters(This,Param,Value,pszData) \ - (This)->lpVtbl -> SetTransportBasicParameters(This,Param,Value,pszData) - -#define IAMExtTransport_GetTransportVideoParameters(This,Param,pValue) \ - (This)->lpVtbl -> GetTransportVideoParameters(This,Param,pValue) - -#define IAMExtTransport_SetTransportVideoParameters(This,Param,Value) \ - (This)->lpVtbl -> SetTransportVideoParameters(This,Param,Value) - -#define IAMExtTransport_GetTransportAudioParameters(This,Param,pValue) \ - (This)->lpVtbl -> GetTransportAudioParameters(This,Param,pValue) - -#define IAMExtTransport_SetTransportAudioParameters(This,Param,Value) \ - (This)->lpVtbl -> SetTransportAudioParameters(This,Param,Value) - -#define IAMExtTransport_put_Mode(This,Mode) \ - (This)->lpVtbl -> put_Mode(This,Mode) - -#define IAMExtTransport_get_Mode(This,pMode) \ - (This)->lpVtbl -> get_Mode(This,pMode) - -#define IAMExtTransport_put_Rate(This,dblRate) \ - (This)->lpVtbl -> put_Rate(This,dblRate) - -#define IAMExtTransport_get_Rate(This,pdblRate) \ - (This)->lpVtbl -> get_Rate(This,pdblRate) - -#define IAMExtTransport_GetChase(This,pEnabled,pOffset,phEvent) \ - (This)->lpVtbl -> GetChase(This,pEnabled,pOffset,phEvent) - -#define IAMExtTransport_SetChase(This,Enable,Offset,hEvent) \ - (This)->lpVtbl -> SetChase(This,Enable,Offset,hEvent) - -#define IAMExtTransport_GetBump(This,pSpeed,pDuration) \ - (This)->lpVtbl -> GetBump(This,pSpeed,pDuration) - -#define IAMExtTransport_SetBump(This,Speed,Duration) \ - (This)->lpVtbl -> SetBump(This,Speed,Duration) - -#define IAMExtTransport_get_AntiClogControl(This,pEnabled) \ - (This)->lpVtbl -> get_AntiClogControl(This,pEnabled) - -#define IAMExtTransport_put_AntiClogControl(This,Enable) \ - (This)->lpVtbl -> put_AntiClogControl(This,Enable) - -#define IAMExtTransport_GetEditPropertySet(This,EditID,pState) \ - (This)->lpVtbl -> GetEditPropertySet(This,EditID,pState) - -#define IAMExtTransport_SetEditPropertySet(This,pEditID,State) \ - (This)->lpVtbl -> SetEditPropertySet(This,pEditID,State) - -#define IAMExtTransport_GetEditProperty(This,EditID,Param,pValue) \ - (This)->lpVtbl -> GetEditProperty(This,EditID,Param,pValue) - -#define IAMExtTransport_SetEditProperty(This,EditID,Param,Value) \ - (This)->lpVtbl -> SetEditProperty(This,EditID,Param,Value) - -#define IAMExtTransport_get_EditStart(This,pValue) \ - (This)->lpVtbl -> get_EditStart(This,pValue) - -#define IAMExtTransport_put_EditStart(This,Value) \ - (This)->lpVtbl -> put_EditStart(This,Value) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_GetCapability_Proxy( - IAMExtTransport * This, - /* [in] */ long Capability, - /* [out] */ long *pValue, - /* [out] */ double *pdblValue); - - -void __RPC_STUB IAMExtTransport_GetCapability_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_put_MediaState_Proxy( - IAMExtTransport * This, - /* [in] */ long State); - - -void __RPC_STUB IAMExtTransport_put_MediaState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_get_MediaState_Proxy( - IAMExtTransport * This, - /* [out] */ long *pState); - - -void __RPC_STUB IAMExtTransport_get_MediaState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_put_LocalControl_Proxy( - IAMExtTransport * This, - /* [in] */ long State); - - -void __RPC_STUB IAMExtTransport_put_LocalControl_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_get_LocalControl_Proxy( - IAMExtTransport * This, - /* [out] */ long *pState); - - -void __RPC_STUB IAMExtTransport_get_LocalControl_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_GetStatus_Proxy( - IAMExtTransport * This, - /* [in] */ long StatusItem, - /* [out] */ long *pValue); - - -void __RPC_STUB IAMExtTransport_GetStatus_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_GetTransportBasicParameters_Proxy( - IAMExtTransport * This, - /* [in] */ long Param, - /* [out] */ long *pValue, - /* [out] */ LPOLESTR *ppszData); - - -void __RPC_STUB IAMExtTransport_GetTransportBasicParameters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_SetTransportBasicParameters_Proxy( - IAMExtTransport * This, - /* [in] */ long Param, - /* [in] */ long Value, - /* [in] */ LPCOLESTR pszData); - - -void __RPC_STUB IAMExtTransport_SetTransportBasicParameters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_GetTransportVideoParameters_Proxy( - IAMExtTransport * This, - /* [in] */ long Param, - /* [out] */ long *pValue); - - -void __RPC_STUB IAMExtTransport_GetTransportVideoParameters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_SetTransportVideoParameters_Proxy( - IAMExtTransport * This, - /* [in] */ long Param, - /* [in] */ long Value); - - -void __RPC_STUB IAMExtTransport_SetTransportVideoParameters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_GetTransportAudioParameters_Proxy( - IAMExtTransport * This, - /* [in] */ long Param, - /* [out] */ long *pValue); - - -void __RPC_STUB IAMExtTransport_GetTransportAudioParameters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_SetTransportAudioParameters_Proxy( - IAMExtTransport * This, - /* [in] */ long Param, - /* [in] */ long Value); - - -void __RPC_STUB IAMExtTransport_SetTransportAudioParameters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_put_Mode_Proxy( - IAMExtTransport * This, - /* [in] */ long Mode); - - -void __RPC_STUB IAMExtTransport_put_Mode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_get_Mode_Proxy( - IAMExtTransport * This, - /* [out] */ long *pMode); - - -void __RPC_STUB IAMExtTransport_get_Mode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_put_Rate_Proxy( - IAMExtTransport * This, - /* [in] */ double dblRate); - - -void __RPC_STUB IAMExtTransport_put_Rate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_get_Rate_Proxy( - IAMExtTransport * This, - /* [out] */ double *pdblRate); - - -void __RPC_STUB IAMExtTransport_get_Rate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_GetChase_Proxy( - IAMExtTransport * This, - /* [out] */ long *pEnabled, - /* [out] */ long *pOffset, - /* [out] */ HEVENT *phEvent); - - -void __RPC_STUB IAMExtTransport_GetChase_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_SetChase_Proxy( - IAMExtTransport * This, - /* [in] */ long Enable, - /* [in] */ long Offset, - /* [in] */ HEVENT hEvent); - - -void __RPC_STUB IAMExtTransport_SetChase_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_GetBump_Proxy( - IAMExtTransport * This, - /* [out] */ long *pSpeed, - /* [out] */ long *pDuration); - - -void __RPC_STUB IAMExtTransport_GetBump_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_SetBump_Proxy( - IAMExtTransport * This, - /* [in] */ long Speed, - /* [in] */ long Duration); - - -void __RPC_STUB IAMExtTransport_SetBump_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_get_AntiClogControl_Proxy( - IAMExtTransport * This, - /* [out] */ long *pEnabled); - - -void __RPC_STUB IAMExtTransport_get_AntiClogControl_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_put_AntiClogControl_Proxy( - IAMExtTransport * This, - /* [in] */ long Enable); - - -void __RPC_STUB IAMExtTransport_put_AntiClogControl_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_GetEditPropertySet_Proxy( - IAMExtTransport * This, - /* [in] */ long EditID, - /* [out] */ long *pState); - - -void __RPC_STUB IAMExtTransport_GetEditPropertySet_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_SetEditPropertySet_Proxy( - IAMExtTransport * This, - /* [out][in] */ long *pEditID, - /* [in] */ long State); - - -void __RPC_STUB IAMExtTransport_SetEditPropertySet_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_GetEditProperty_Proxy( - IAMExtTransport * This, - /* [in] */ long EditID, - /* [in] */ long Param, - /* [out] */ long *pValue); - - -void __RPC_STUB IAMExtTransport_GetEditProperty_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_SetEditProperty_Proxy( - IAMExtTransport * This, - /* [in] */ long EditID, - /* [in] */ long Param, - /* [in] */ long Value); - - -void __RPC_STUB IAMExtTransport_SetEditProperty_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_get_EditStart_Proxy( - IAMExtTransport * This, - /* [out] */ long *pValue); - - -void __RPC_STUB IAMExtTransport_get_EditStart_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMExtTransport_put_EditStart_Proxy( - IAMExtTransport * This, - /* [in] */ long Value); - - -void __RPC_STUB IAMExtTransport_put_EditStart_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMExtTransport_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0331 */ -/* [local] */ - -typedef IAMExtTransport *PIAMEXTTRANSPORT; - -#if 0 -/* the following is what MIDL knows how to remote */ -typedef struct tagTIMECODE - { - WORD wFrameRate; - WORD wFrameFract; - DWORD dwFrames; - } TIMECODE; - -#else /* 0 */ -#ifndef TIMECODE_DEFINED -#define TIMECODE_DEFINED -typedef union _timecode { - struct { - WORD wFrameRate; - WORD wFrameFract; - DWORD dwFrames; - }; - DWORDLONG qw; - } TIMECODE; - -#endif /* TIMECODE_DEFINED */ -#endif /* 0 */ -typedef TIMECODE *PTIMECODE; - -typedef struct tagTIMECODE_SAMPLE - { - LONGLONG qwTick; - TIMECODE timecode; - DWORD dwUser; - DWORD dwFlags; - } TIMECODE_SAMPLE; - -typedef TIMECODE_SAMPLE *PTIMECODE_SAMPLE; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0331_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0331_v0_0_s_ifspec; - -#ifndef __IAMTimecodeReader_INTERFACE_DEFINED__ -#define __IAMTimecodeReader_INTERFACE_DEFINED__ - -/* interface IAMTimecodeReader */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimecodeReader; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9B496CE1-811B-11cf-8C77-00AA006B6814") - IAMTimecodeReader : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetTCRMode( - /* [in] */ long Param, - /* [out] */ long *pValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTCRMode( - /* [in] */ long Param, - /* [in] */ long Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_VITCLine( - /* [in] */ long Line) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_VITCLine( - /* [out] */ long *pLine) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTimecode( - /* [out] */ PTIMECODE_SAMPLE pTimecodeSample) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimecodeReaderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimecodeReader * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimecodeReader * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimecodeReader * This); - - HRESULT ( STDMETHODCALLTYPE *GetTCRMode )( - IAMTimecodeReader * This, - /* [in] */ long Param, - /* [out] */ long *pValue); - - HRESULT ( STDMETHODCALLTYPE *SetTCRMode )( - IAMTimecodeReader * This, - /* [in] */ long Param, - /* [in] */ long Value); - - HRESULT ( STDMETHODCALLTYPE *put_VITCLine )( - IAMTimecodeReader * This, - /* [in] */ long Line); - - HRESULT ( STDMETHODCALLTYPE *get_VITCLine )( - IAMTimecodeReader * This, - /* [out] */ long *pLine); - - HRESULT ( STDMETHODCALLTYPE *GetTimecode )( - IAMTimecodeReader * This, - /* [out] */ PTIMECODE_SAMPLE pTimecodeSample); - - END_INTERFACE - } IAMTimecodeReaderVtbl; - - interface IAMTimecodeReader - { - CONST_VTBL struct IAMTimecodeReaderVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimecodeReader_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimecodeReader_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimecodeReader_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimecodeReader_GetTCRMode(This,Param,pValue) \ - (This)->lpVtbl -> GetTCRMode(This,Param,pValue) - -#define IAMTimecodeReader_SetTCRMode(This,Param,Value) \ - (This)->lpVtbl -> SetTCRMode(This,Param,Value) - -#define IAMTimecodeReader_put_VITCLine(This,Line) \ - (This)->lpVtbl -> put_VITCLine(This,Line) - -#define IAMTimecodeReader_get_VITCLine(This,pLine) \ - (This)->lpVtbl -> get_VITCLine(This,pLine) - -#define IAMTimecodeReader_GetTimecode(This,pTimecodeSample) \ - (This)->lpVtbl -> GetTimecode(This,pTimecodeSample) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMTimecodeReader_GetTCRMode_Proxy( - IAMTimecodeReader * This, - /* [in] */ long Param, - /* [out] */ long *pValue); - - -void __RPC_STUB IAMTimecodeReader_GetTCRMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimecodeReader_SetTCRMode_Proxy( - IAMTimecodeReader * This, - /* [in] */ long Param, - /* [in] */ long Value); - - -void __RPC_STUB IAMTimecodeReader_SetTCRMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimecodeReader_put_VITCLine_Proxy( - IAMTimecodeReader * This, - /* [in] */ long Line); - - -void __RPC_STUB IAMTimecodeReader_put_VITCLine_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimecodeReader_get_VITCLine_Proxy( - IAMTimecodeReader * This, - /* [out] */ long *pLine); - - -void __RPC_STUB IAMTimecodeReader_get_VITCLine_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimecodeReader_GetTimecode_Proxy( - IAMTimecodeReader * This, - /* [out] */ PTIMECODE_SAMPLE pTimecodeSample); - - -void __RPC_STUB IAMTimecodeReader_GetTimecode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimecodeReader_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0332 */ -/* [local] */ - -typedef IAMTimecodeReader *PIAMTIMECODEREADER; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0332_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0332_v0_0_s_ifspec; - -#ifndef __IAMTimecodeGenerator_INTERFACE_DEFINED__ -#define __IAMTimecodeGenerator_INTERFACE_DEFINED__ - -/* interface IAMTimecodeGenerator */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimecodeGenerator; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9B496CE0-811B-11cf-8C77-00AA006B6814") - IAMTimecodeGenerator : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetTCGMode( - /* [in] */ long Param, - /* [out] */ long *pValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTCGMode( - /* [in] */ long Param, - /* [in] */ long Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_VITCLine( - /* [in] */ long Line) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_VITCLine( - /* [out] */ long *pLine) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTimecode( - /* [in] */ PTIMECODE_SAMPLE pTimecodeSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTimecode( - /* [out] */ PTIMECODE_SAMPLE pTimecodeSample) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimecodeGeneratorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimecodeGenerator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimecodeGenerator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimecodeGenerator * This); - - HRESULT ( STDMETHODCALLTYPE *GetTCGMode )( - IAMTimecodeGenerator * This, - /* [in] */ long Param, - /* [out] */ long *pValue); - - HRESULT ( STDMETHODCALLTYPE *SetTCGMode )( - IAMTimecodeGenerator * This, - /* [in] */ long Param, - /* [in] */ long Value); - - HRESULT ( STDMETHODCALLTYPE *put_VITCLine )( - IAMTimecodeGenerator * This, - /* [in] */ long Line); - - HRESULT ( STDMETHODCALLTYPE *get_VITCLine )( - IAMTimecodeGenerator * This, - /* [out] */ long *pLine); - - HRESULT ( STDMETHODCALLTYPE *SetTimecode )( - IAMTimecodeGenerator * This, - /* [in] */ PTIMECODE_SAMPLE pTimecodeSample); - - HRESULT ( STDMETHODCALLTYPE *GetTimecode )( - IAMTimecodeGenerator * This, - /* [out] */ PTIMECODE_SAMPLE pTimecodeSample); - - END_INTERFACE - } IAMTimecodeGeneratorVtbl; - - interface IAMTimecodeGenerator - { - CONST_VTBL struct IAMTimecodeGeneratorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimecodeGenerator_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimecodeGenerator_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimecodeGenerator_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimecodeGenerator_GetTCGMode(This,Param,pValue) \ - (This)->lpVtbl -> GetTCGMode(This,Param,pValue) - -#define IAMTimecodeGenerator_SetTCGMode(This,Param,Value) \ - (This)->lpVtbl -> SetTCGMode(This,Param,Value) - -#define IAMTimecodeGenerator_put_VITCLine(This,Line) \ - (This)->lpVtbl -> put_VITCLine(This,Line) - -#define IAMTimecodeGenerator_get_VITCLine(This,pLine) \ - (This)->lpVtbl -> get_VITCLine(This,pLine) - -#define IAMTimecodeGenerator_SetTimecode(This,pTimecodeSample) \ - (This)->lpVtbl -> SetTimecode(This,pTimecodeSample) - -#define IAMTimecodeGenerator_GetTimecode(This,pTimecodeSample) \ - (This)->lpVtbl -> GetTimecode(This,pTimecodeSample) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMTimecodeGenerator_GetTCGMode_Proxy( - IAMTimecodeGenerator * This, - /* [in] */ long Param, - /* [out] */ long *pValue); - - -void __RPC_STUB IAMTimecodeGenerator_GetTCGMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimecodeGenerator_SetTCGMode_Proxy( - IAMTimecodeGenerator * This, - /* [in] */ long Param, - /* [in] */ long Value); - - -void __RPC_STUB IAMTimecodeGenerator_SetTCGMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimecodeGenerator_put_VITCLine_Proxy( - IAMTimecodeGenerator * This, - /* [in] */ long Line); - - -void __RPC_STUB IAMTimecodeGenerator_put_VITCLine_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimecodeGenerator_get_VITCLine_Proxy( - IAMTimecodeGenerator * This, - /* [out] */ long *pLine); - - -void __RPC_STUB IAMTimecodeGenerator_get_VITCLine_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimecodeGenerator_SetTimecode_Proxy( - IAMTimecodeGenerator * This, - /* [in] */ PTIMECODE_SAMPLE pTimecodeSample); - - -void __RPC_STUB IAMTimecodeGenerator_SetTimecode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimecodeGenerator_GetTimecode_Proxy( - IAMTimecodeGenerator * This, - /* [out] */ PTIMECODE_SAMPLE pTimecodeSample); - - -void __RPC_STUB IAMTimecodeGenerator_GetTimecode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimecodeGenerator_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0333 */ -/* [local] */ - -typedef IAMTimecodeGenerator *PIAMTIMECODEGENERATOR; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0333_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0333_v0_0_s_ifspec; - -#ifndef __IAMTimecodeDisplay_INTERFACE_DEFINED__ -#define __IAMTimecodeDisplay_INTERFACE_DEFINED__ - -/* interface IAMTimecodeDisplay */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMTimecodeDisplay; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9B496CE2-811B-11cf-8C77-00AA006B6814") - IAMTimecodeDisplay : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetTCDisplayEnable( - /* [out] */ long *pState) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTCDisplayEnable( - /* [in] */ long State) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTCDisplay( - /* [in] */ long Param, - /* [out] */ long *pValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTCDisplay( - /* [in] */ long Param, - /* [in] */ long Value) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMTimecodeDisplayVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMTimecodeDisplay * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMTimecodeDisplay * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMTimecodeDisplay * This); - - HRESULT ( STDMETHODCALLTYPE *GetTCDisplayEnable )( - IAMTimecodeDisplay * This, - /* [out] */ long *pState); - - HRESULT ( STDMETHODCALLTYPE *SetTCDisplayEnable )( - IAMTimecodeDisplay * This, - /* [in] */ long State); - - HRESULT ( STDMETHODCALLTYPE *GetTCDisplay )( - IAMTimecodeDisplay * This, - /* [in] */ long Param, - /* [out] */ long *pValue); - - HRESULT ( STDMETHODCALLTYPE *SetTCDisplay )( - IAMTimecodeDisplay * This, - /* [in] */ long Param, - /* [in] */ long Value); - - END_INTERFACE - } IAMTimecodeDisplayVtbl; - - interface IAMTimecodeDisplay - { - CONST_VTBL struct IAMTimecodeDisplayVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMTimecodeDisplay_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMTimecodeDisplay_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMTimecodeDisplay_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMTimecodeDisplay_GetTCDisplayEnable(This,pState) \ - (This)->lpVtbl -> GetTCDisplayEnable(This,pState) - -#define IAMTimecodeDisplay_SetTCDisplayEnable(This,State) \ - (This)->lpVtbl -> SetTCDisplayEnable(This,State) - -#define IAMTimecodeDisplay_GetTCDisplay(This,Param,pValue) \ - (This)->lpVtbl -> GetTCDisplay(This,Param,pValue) - -#define IAMTimecodeDisplay_SetTCDisplay(This,Param,Value) \ - (This)->lpVtbl -> SetTCDisplay(This,Param,Value) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMTimecodeDisplay_GetTCDisplayEnable_Proxy( - IAMTimecodeDisplay * This, - /* [out] */ long *pState); - - -void __RPC_STUB IAMTimecodeDisplay_GetTCDisplayEnable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimecodeDisplay_SetTCDisplayEnable_Proxy( - IAMTimecodeDisplay * This, - /* [in] */ long State); - - -void __RPC_STUB IAMTimecodeDisplay_SetTCDisplayEnable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimecodeDisplay_GetTCDisplay_Proxy( - IAMTimecodeDisplay * This, - /* [in] */ long Param, - /* [out] */ long *pValue); - - -void __RPC_STUB IAMTimecodeDisplay_GetTCDisplay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMTimecodeDisplay_SetTCDisplay_Proxy( - IAMTimecodeDisplay * This, - /* [in] */ long Param, - /* [in] */ long Value); - - -void __RPC_STUB IAMTimecodeDisplay_SetTCDisplay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMTimecodeDisplay_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0334 */ -/* [local] */ - -typedef IAMTimecodeDisplay *PIAMTIMECODEDISPLAY; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0334_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0334_v0_0_s_ifspec; - -#ifndef __IAMDevMemoryAllocator_INTERFACE_DEFINED__ -#define __IAMDevMemoryAllocator_INTERFACE_DEFINED__ - -/* interface IAMDevMemoryAllocator */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMDevMemoryAllocator; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("c6545bf0-e76b-11d0-bd52-00a0c911ce86") - IAMDevMemoryAllocator : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetInfo( - /* [out] */ DWORD *pdwcbTotalFree, - /* [out] */ DWORD *pdwcbLargestFree, - /* [out] */ DWORD *pdwcbTotalMemory, - /* [out] */ DWORD *pdwcbMinimumChunk) = 0; - - virtual HRESULT STDMETHODCALLTYPE CheckMemory( - /* [in] */ const BYTE *pBuffer) = 0; - - virtual HRESULT STDMETHODCALLTYPE Alloc( - /* [out] */ BYTE **ppBuffer, - /* [out][in] */ DWORD *pdwcbBuffer) = 0; - - virtual HRESULT STDMETHODCALLTYPE Free( - /* [in] */ BYTE *pBuffer) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDevMemoryObject( - /* [out] */ IUnknown **ppUnkInnner, - /* [in] */ IUnknown *pUnkOuter) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMDevMemoryAllocatorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMDevMemoryAllocator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMDevMemoryAllocator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMDevMemoryAllocator * This); - - HRESULT ( STDMETHODCALLTYPE *GetInfo )( - IAMDevMemoryAllocator * This, - /* [out] */ DWORD *pdwcbTotalFree, - /* [out] */ DWORD *pdwcbLargestFree, - /* [out] */ DWORD *pdwcbTotalMemory, - /* [out] */ DWORD *pdwcbMinimumChunk); - - HRESULT ( STDMETHODCALLTYPE *CheckMemory )( - IAMDevMemoryAllocator * This, - /* [in] */ const BYTE *pBuffer); - - HRESULT ( STDMETHODCALLTYPE *Alloc )( - IAMDevMemoryAllocator * This, - /* [out] */ BYTE **ppBuffer, - /* [out][in] */ DWORD *pdwcbBuffer); - - HRESULT ( STDMETHODCALLTYPE *Free )( - IAMDevMemoryAllocator * This, - /* [in] */ BYTE *pBuffer); - - HRESULT ( STDMETHODCALLTYPE *GetDevMemoryObject )( - IAMDevMemoryAllocator * This, - /* [out] */ IUnknown **ppUnkInnner, - /* [in] */ IUnknown *pUnkOuter); - - END_INTERFACE - } IAMDevMemoryAllocatorVtbl; - - interface IAMDevMemoryAllocator - { - CONST_VTBL struct IAMDevMemoryAllocatorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMDevMemoryAllocator_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMDevMemoryAllocator_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMDevMemoryAllocator_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMDevMemoryAllocator_GetInfo(This,pdwcbTotalFree,pdwcbLargestFree,pdwcbTotalMemory,pdwcbMinimumChunk) \ - (This)->lpVtbl -> GetInfo(This,pdwcbTotalFree,pdwcbLargestFree,pdwcbTotalMemory,pdwcbMinimumChunk) - -#define IAMDevMemoryAllocator_CheckMemory(This,pBuffer) \ - (This)->lpVtbl -> CheckMemory(This,pBuffer) - -#define IAMDevMemoryAllocator_Alloc(This,ppBuffer,pdwcbBuffer) \ - (This)->lpVtbl -> Alloc(This,ppBuffer,pdwcbBuffer) - -#define IAMDevMemoryAllocator_Free(This,pBuffer) \ - (This)->lpVtbl -> Free(This,pBuffer) - -#define IAMDevMemoryAllocator_GetDevMemoryObject(This,ppUnkInnner,pUnkOuter) \ - (This)->lpVtbl -> GetDevMemoryObject(This,ppUnkInnner,pUnkOuter) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMDevMemoryAllocator_GetInfo_Proxy( - IAMDevMemoryAllocator * This, - /* [out] */ DWORD *pdwcbTotalFree, - /* [out] */ DWORD *pdwcbLargestFree, - /* [out] */ DWORD *pdwcbTotalMemory, - /* [out] */ DWORD *pdwcbMinimumChunk); - - -void __RPC_STUB IAMDevMemoryAllocator_GetInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMDevMemoryAllocator_CheckMemory_Proxy( - IAMDevMemoryAllocator * This, - /* [in] */ const BYTE *pBuffer); - - -void __RPC_STUB IAMDevMemoryAllocator_CheckMemory_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMDevMemoryAllocator_Alloc_Proxy( - IAMDevMemoryAllocator * This, - /* [out] */ BYTE **ppBuffer, - /* [out][in] */ DWORD *pdwcbBuffer); - - -void __RPC_STUB IAMDevMemoryAllocator_Alloc_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMDevMemoryAllocator_Free_Proxy( - IAMDevMemoryAllocator * This, - /* [in] */ BYTE *pBuffer); - - -void __RPC_STUB IAMDevMemoryAllocator_Free_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMDevMemoryAllocator_GetDevMemoryObject_Proxy( - IAMDevMemoryAllocator * This, - /* [out] */ IUnknown **ppUnkInnner, - /* [in] */ IUnknown *pUnkOuter); - - -void __RPC_STUB IAMDevMemoryAllocator_GetDevMemoryObject_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMDevMemoryAllocator_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0335 */ -/* [local] */ - -typedef IAMDevMemoryAllocator *PAMDEVMEMORYALLOCATOR; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0335_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0335_v0_0_s_ifspec; - -#ifndef __IAMDevMemoryControl_INTERFACE_DEFINED__ -#define __IAMDevMemoryControl_INTERFACE_DEFINED__ - -/* interface IAMDevMemoryControl */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMDevMemoryControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("c6545bf1-e76b-11d0-bd52-00a0c911ce86") - IAMDevMemoryControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE QueryWriteSync( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE WriteSync( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDevId( - /* [out] */ DWORD *pdwDevId) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMDevMemoryControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMDevMemoryControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMDevMemoryControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMDevMemoryControl * This); - - HRESULT ( STDMETHODCALLTYPE *QueryWriteSync )( - IAMDevMemoryControl * This); - - HRESULT ( STDMETHODCALLTYPE *WriteSync )( - IAMDevMemoryControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetDevId )( - IAMDevMemoryControl * This, - /* [out] */ DWORD *pdwDevId); - - END_INTERFACE - } IAMDevMemoryControlVtbl; - - interface IAMDevMemoryControl - { - CONST_VTBL struct IAMDevMemoryControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMDevMemoryControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMDevMemoryControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMDevMemoryControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMDevMemoryControl_QueryWriteSync(This) \ - (This)->lpVtbl -> QueryWriteSync(This) - -#define IAMDevMemoryControl_WriteSync(This) \ - (This)->lpVtbl -> WriteSync(This) - -#define IAMDevMemoryControl_GetDevId(This,pdwDevId) \ - (This)->lpVtbl -> GetDevId(This,pdwDevId) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMDevMemoryControl_QueryWriteSync_Proxy( - IAMDevMemoryControl * This); - - -void __RPC_STUB IAMDevMemoryControl_QueryWriteSync_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMDevMemoryControl_WriteSync_Proxy( - IAMDevMemoryControl * This); - - -void __RPC_STUB IAMDevMemoryControl_WriteSync_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMDevMemoryControl_GetDevId_Proxy( - IAMDevMemoryControl * This, - /* [out] */ DWORD *pdwDevId); - - -void __RPC_STUB IAMDevMemoryControl_GetDevId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMDevMemoryControl_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0336 */ -/* [local] */ - -typedef IAMDevMemoryControl *PAMDEVMEMORYCONTROL; - - -enum _AMSTREAMSELECTINFOFLAGS - { AMSTREAMSELECTINFO_ENABLED = 0x1, - AMSTREAMSELECTINFO_EXCLUSIVE = 0x2 - } ; - -enum _AMSTREAMSELECTENABLEFLAGS - { AMSTREAMSELECTENABLE_ENABLE = 0x1, - AMSTREAMSELECTENABLE_ENABLEALL = 0x2 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0336_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0336_v0_0_s_ifspec; - -#ifndef __IAMStreamSelect_INTERFACE_DEFINED__ -#define __IAMStreamSelect_INTERFACE_DEFINED__ - -/* interface IAMStreamSelect */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMStreamSelect; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("c1960960-17f5-11d1-abe1-00a0c905f375") - IAMStreamSelect : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Count( - /* [out] */ DWORD *pcStreams) = 0; - - virtual HRESULT STDMETHODCALLTYPE Info( - /* [in] */ long lIndex, - /* [out] */ AM_MEDIA_TYPE **ppmt, - /* [out] */ DWORD *pdwFlags, - /* [out] */ LCID *plcid, - /* [out] */ DWORD *pdwGroup, - /* [out] */ WCHAR **ppszName, - /* [out] */ IUnknown **ppObject, - /* [out] */ IUnknown **ppUnk) = 0; - - virtual HRESULT STDMETHODCALLTYPE Enable( - /* [in] */ long lIndex, - /* [in] */ DWORD dwFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMStreamSelectVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMStreamSelect * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMStreamSelect * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMStreamSelect * This); - - HRESULT ( STDMETHODCALLTYPE *Count )( - IAMStreamSelect * This, - /* [out] */ DWORD *pcStreams); - - HRESULT ( STDMETHODCALLTYPE *Info )( - IAMStreamSelect * This, - /* [in] */ long lIndex, - /* [out] */ AM_MEDIA_TYPE **ppmt, - /* [out] */ DWORD *pdwFlags, - /* [out] */ LCID *plcid, - /* [out] */ DWORD *pdwGroup, - /* [out] */ WCHAR **ppszName, - /* [out] */ IUnknown **ppObject, - /* [out] */ IUnknown **ppUnk); - - HRESULT ( STDMETHODCALLTYPE *Enable )( - IAMStreamSelect * This, - /* [in] */ long lIndex, - /* [in] */ DWORD dwFlags); - - END_INTERFACE - } IAMStreamSelectVtbl; - - interface IAMStreamSelect - { - CONST_VTBL struct IAMStreamSelectVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMStreamSelect_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMStreamSelect_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMStreamSelect_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMStreamSelect_Count(This,pcStreams) \ - (This)->lpVtbl -> Count(This,pcStreams) - -#define IAMStreamSelect_Info(This,lIndex,ppmt,pdwFlags,plcid,pdwGroup,ppszName,ppObject,ppUnk) \ - (This)->lpVtbl -> Info(This,lIndex,ppmt,pdwFlags,plcid,pdwGroup,ppszName,ppObject,ppUnk) - -#define IAMStreamSelect_Enable(This,lIndex,dwFlags) \ - (This)->lpVtbl -> Enable(This,lIndex,dwFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMStreamSelect_Count_Proxy( - IAMStreamSelect * This, - /* [out] */ DWORD *pcStreams); - - -void __RPC_STUB IAMStreamSelect_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMStreamSelect_Info_Proxy( - IAMStreamSelect * This, - /* [in] */ long lIndex, - /* [out] */ AM_MEDIA_TYPE **ppmt, - /* [out] */ DWORD *pdwFlags, - /* [out] */ LCID *plcid, - /* [out] */ DWORD *pdwGroup, - /* [out] */ WCHAR **ppszName, - /* [out] */ IUnknown **ppObject, - /* [out] */ IUnknown **ppUnk); - - -void __RPC_STUB IAMStreamSelect_Info_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMStreamSelect_Enable_Proxy( - IAMStreamSelect * This, - /* [in] */ long lIndex, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IAMStreamSelect_Enable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMStreamSelect_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0337 */ -/* [local] */ - -typedef IAMStreamSelect *PAMSTREAMSELECT; - - -enum _AMRESCTL_RESERVEFLAGS - { AMRESCTL_RESERVEFLAGS_RESERVE = 0, - AMRESCTL_RESERVEFLAGS_UNRESERVE = 0x1 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0337_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0337_v0_0_s_ifspec; - -#ifndef __IAMResourceControl_INTERFACE_DEFINED__ -#define __IAMResourceControl_INTERFACE_DEFINED__ - -/* interface IAMResourceControl */ -/* [local][unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMResourceControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("8389d2d0-77d7-11d1-abe6-00a0c905f375") - IAMResourceControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Reserve( - /* [in] */ DWORD dwFlags, - /* [in] */ PVOID pvReserved) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMResourceControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMResourceControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMResourceControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMResourceControl * This); - - HRESULT ( STDMETHODCALLTYPE *Reserve )( - IAMResourceControl * This, - /* [in] */ DWORD dwFlags, - /* [in] */ PVOID pvReserved); - - END_INTERFACE - } IAMResourceControlVtbl; - - interface IAMResourceControl - { - CONST_VTBL struct IAMResourceControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMResourceControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMResourceControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMResourceControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMResourceControl_Reserve(This,dwFlags,pvReserved) \ - (This)->lpVtbl -> Reserve(This,dwFlags,pvReserved) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMResourceControl_Reserve_Proxy( - IAMResourceControl * This, - /* [in] */ DWORD dwFlags, - /* [in] */ PVOID pvReserved); - - -void __RPC_STUB IAMResourceControl_Reserve_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMResourceControl_INTERFACE_DEFINED__ */ - - -#ifndef __IAMClockAdjust_INTERFACE_DEFINED__ -#define __IAMClockAdjust_INTERFACE_DEFINED__ - -/* interface IAMClockAdjust */ -/* [local][unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMClockAdjust; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("4d5466b0-a49c-11d1-abe8-00a0c905f375") - IAMClockAdjust : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetClockDelta( - /* [in] */ REFERENCE_TIME rtDelta) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMClockAdjustVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMClockAdjust * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMClockAdjust * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMClockAdjust * This); - - HRESULT ( STDMETHODCALLTYPE *SetClockDelta )( - IAMClockAdjust * This, - /* [in] */ REFERENCE_TIME rtDelta); - - END_INTERFACE - } IAMClockAdjustVtbl; - - interface IAMClockAdjust - { - CONST_VTBL struct IAMClockAdjustVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMClockAdjust_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMClockAdjust_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMClockAdjust_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMClockAdjust_SetClockDelta(This,rtDelta) \ - (This)->lpVtbl -> SetClockDelta(This,rtDelta) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMClockAdjust_SetClockDelta_Proxy( - IAMClockAdjust * This, - /* [in] */ REFERENCE_TIME rtDelta); - - -void __RPC_STUB IAMClockAdjust_SetClockDelta_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMClockAdjust_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0339 */ -/* [local] */ - - -enum _AM_FILTER_MISC_FLAGS - { AM_FILTER_MISC_FLAGS_IS_RENDERER = 0x1, - AM_FILTER_MISC_FLAGS_IS_SOURCE = 0x2 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0339_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0339_v0_0_s_ifspec; - -#ifndef __IAMFilterMiscFlags_INTERFACE_DEFINED__ -#define __IAMFilterMiscFlags_INTERFACE_DEFINED__ - -/* interface IAMFilterMiscFlags */ -/* [local][unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMFilterMiscFlags; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("2dd74950-a890-11d1-abe8-00a0c905f375") - IAMFilterMiscFlags : public IUnknown - { - public: - virtual ULONG STDMETHODCALLTYPE GetMiscFlags( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMFilterMiscFlagsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMFilterMiscFlags * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMFilterMiscFlags * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMFilterMiscFlags * This); - - ULONG ( STDMETHODCALLTYPE *GetMiscFlags )( - IAMFilterMiscFlags * This); - - END_INTERFACE - } IAMFilterMiscFlagsVtbl; - - interface IAMFilterMiscFlags - { - CONST_VTBL struct IAMFilterMiscFlagsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMFilterMiscFlags_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMFilterMiscFlags_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMFilterMiscFlags_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMFilterMiscFlags_GetMiscFlags(This) \ - (This)->lpVtbl -> GetMiscFlags(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -ULONG STDMETHODCALLTYPE IAMFilterMiscFlags_GetMiscFlags_Proxy( - IAMFilterMiscFlags * This); - - -void __RPC_STUB IAMFilterMiscFlags_GetMiscFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMFilterMiscFlags_INTERFACE_DEFINED__ */ - - -#ifndef __IDrawVideoImage_INTERFACE_DEFINED__ -#define __IDrawVideoImage_INTERFACE_DEFINED__ - -/* interface IDrawVideoImage */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IDrawVideoImage; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("48efb120-ab49-11d2-aed2-00a0c995e8d5") - IDrawVideoImage : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE DrawVideoImageBegin( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE DrawVideoImageEnd( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE DrawVideoImageDraw( - /* [in] */ HDC hdc, - /* [in] */ LPRECT lprcSrc, - /* [in] */ LPRECT lprcDst) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDrawVideoImageVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDrawVideoImage * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDrawVideoImage * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDrawVideoImage * This); - - HRESULT ( STDMETHODCALLTYPE *DrawVideoImageBegin )( - IDrawVideoImage * This); - - HRESULT ( STDMETHODCALLTYPE *DrawVideoImageEnd )( - IDrawVideoImage * This); - - HRESULT ( STDMETHODCALLTYPE *DrawVideoImageDraw )( - IDrawVideoImage * This, - /* [in] */ HDC hdc, - /* [in] */ LPRECT lprcSrc, - /* [in] */ LPRECT lprcDst); - - END_INTERFACE - } IDrawVideoImageVtbl; - - interface IDrawVideoImage - { - CONST_VTBL struct IDrawVideoImageVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDrawVideoImage_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDrawVideoImage_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDrawVideoImage_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDrawVideoImage_DrawVideoImageBegin(This) \ - (This)->lpVtbl -> DrawVideoImageBegin(This) - -#define IDrawVideoImage_DrawVideoImageEnd(This) \ - (This)->lpVtbl -> DrawVideoImageEnd(This) - -#define IDrawVideoImage_DrawVideoImageDraw(This,hdc,lprcSrc,lprcDst) \ - (This)->lpVtbl -> DrawVideoImageDraw(This,hdc,lprcSrc,lprcDst) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDrawVideoImage_DrawVideoImageBegin_Proxy( - IDrawVideoImage * This); - - -void __RPC_STUB IDrawVideoImage_DrawVideoImageBegin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDrawVideoImage_DrawVideoImageEnd_Proxy( - IDrawVideoImage * This); - - -void __RPC_STUB IDrawVideoImage_DrawVideoImageEnd_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDrawVideoImage_DrawVideoImageDraw_Proxy( - IDrawVideoImage * This, - /* [in] */ HDC hdc, - /* [in] */ LPRECT lprcSrc, - /* [in] */ LPRECT lprcDst); - - -void __RPC_STUB IDrawVideoImage_DrawVideoImageDraw_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDrawVideoImage_INTERFACE_DEFINED__ */ - - -#ifndef __IDecimateVideoImage_INTERFACE_DEFINED__ -#define __IDecimateVideoImage_INTERFACE_DEFINED__ - -/* interface IDecimateVideoImage */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IDecimateVideoImage; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("2e5ea3e0-e924-11d2-b6da-00a0c995e8df") - IDecimateVideoImage : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetDecimationImageSize( - /* [in] */ long lWidth, - /* [in] */ long lHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE ResetDecimationImageSize( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDecimateVideoImageVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDecimateVideoImage * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDecimateVideoImage * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDecimateVideoImage * This); - - HRESULT ( STDMETHODCALLTYPE *SetDecimationImageSize )( - IDecimateVideoImage * This, - /* [in] */ long lWidth, - /* [in] */ long lHeight); - - HRESULT ( STDMETHODCALLTYPE *ResetDecimationImageSize )( - IDecimateVideoImage * This); - - END_INTERFACE - } IDecimateVideoImageVtbl; - - interface IDecimateVideoImage - { - CONST_VTBL struct IDecimateVideoImageVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDecimateVideoImage_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDecimateVideoImage_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDecimateVideoImage_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDecimateVideoImage_SetDecimationImageSize(This,lWidth,lHeight) \ - (This)->lpVtbl -> SetDecimationImageSize(This,lWidth,lHeight) - -#define IDecimateVideoImage_ResetDecimationImageSize(This) \ - (This)->lpVtbl -> ResetDecimationImageSize(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDecimateVideoImage_SetDecimationImageSize_Proxy( - IDecimateVideoImage * This, - /* [in] */ long lWidth, - /* [in] */ long lHeight); - - -void __RPC_STUB IDecimateVideoImage_SetDecimationImageSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDecimateVideoImage_ResetDecimationImageSize_Proxy( - IDecimateVideoImage * This); - - -void __RPC_STUB IDecimateVideoImage_ResetDecimationImageSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDecimateVideoImage_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0342 */ -/* [local] */ - -typedef -enum _DECIMATION_USAGE - { DECIMATION_LEGACY = 0, - DECIMATION_USE_DECODER_ONLY = DECIMATION_LEGACY + 1, - DECIMATION_USE_VIDEOPORT_ONLY = DECIMATION_USE_DECODER_ONLY + 1, - DECIMATION_USE_OVERLAY_ONLY = DECIMATION_USE_VIDEOPORT_ONLY + 1, - DECIMATION_DEFAULT = DECIMATION_USE_OVERLAY_ONLY + 1 - } DECIMATION_USAGE; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0342_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0342_v0_0_s_ifspec; - -#ifndef __IAMVideoDecimationProperties_INTERFACE_DEFINED__ -#define __IAMVideoDecimationProperties_INTERFACE_DEFINED__ - -/* interface IAMVideoDecimationProperties */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IAMVideoDecimationProperties; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("60d32930-13da-11d3-9ec6-c4fcaef5c7be") - IAMVideoDecimationProperties : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE QueryDecimationUsage( - /* [out] */ DECIMATION_USAGE *lpUsage) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDecimationUsage( - /* [in] */ DECIMATION_USAGE Usage) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMVideoDecimationPropertiesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMVideoDecimationProperties * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMVideoDecimationProperties * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMVideoDecimationProperties * This); - - HRESULT ( STDMETHODCALLTYPE *QueryDecimationUsage )( - IAMVideoDecimationProperties * This, - /* [out] */ DECIMATION_USAGE *lpUsage); - - HRESULT ( STDMETHODCALLTYPE *SetDecimationUsage )( - IAMVideoDecimationProperties * This, - /* [in] */ DECIMATION_USAGE Usage); - - END_INTERFACE - } IAMVideoDecimationPropertiesVtbl; - - interface IAMVideoDecimationProperties - { - CONST_VTBL struct IAMVideoDecimationPropertiesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMVideoDecimationProperties_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMVideoDecimationProperties_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMVideoDecimationProperties_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMVideoDecimationProperties_QueryDecimationUsage(This,lpUsage) \ - (This)->lpVtbl -> QueryDecimationUsage(This,lpUsage) - -#define IAMVideoDecimationProperties_SetDecimationUsage(This,Usage) \ - (This)->lpVtbl -> SetDecimationUsage(This,Usage) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMVideoDecimationProperties_QueryDecimationUsage_Proxy( - IAMVideoDecimationProperties * This, - /* [out] */ DECIMATION_USAGE *lpUsage); - - -void __RPC_STUB IAMVideoDecimationProperties_QueryDecimationUsage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoDecimationProperties_SetDecimationUsage_Proxy( - IAMVideoDecimationProperties * This, - /* [in] */ DECIMATION_USAGE Usage); - - -void __RPC_STUB IAMVideoDecimationProperties_SetDecimationUsage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMVideoDecimationProperties_INTERFACE_DEFINED__ */ - - -#ifndef __IVideoFrameStep_INTERFACE_DEFINED__ -#define __IVideoFrameStep_INTERFACE_DEFINED__ - -/* interface IVideoFrameStep */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IVideoFrameStep; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("e46a9787-2b71-444d-a4b5-1fab7b708d6a") - IVideoFrameStep : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Step( - DWORD dwFrames, - /* [unique] */ IUnknown *pStepObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE CanStep( - long bMultiple, - /* [unique] */ IUnknown *pStepObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE CancelStep( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVideoFrameStepVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVideoFrameStep * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVideoFrameStep * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVideoFrameStep * This); - - HRESULT ( STDMETHODCALLTYPE *Step )( - IVideoFrameStep * This, - DWORD dwFrames, - /* [unique] */ IUnknown *pStepObject); - - HRESULT ( STDMETHODCALLTYPE *CanStep )( - IVideoFrameStep * This, - long bMultiple, - /* [unique] */ IUnknown *pStepObject); - - HRESULT ( STDMETHODCALLTYPE *CancelStep )( - IVideoFrameStep * This); - - END_INTERFACE - } IVideoFrameStepVtbl; - - interface IVideoFrameStep - { - CONST_VTBL struct IVideoFrameStepVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVideoFrameStep_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVideoFrameStep_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVideoFrameStep_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVideoFrameStep_Step(This,dwFrames,pStepObject) \ - (This)->lpVtbl -> Step(This,dwFrames,pStepObject) - -#define IVideoFrameStep_CanStep(This,bMultiple,pStepObject) \ - (This)->lpVtbl -> CanStep(This,bMultiple,pStepObject) - -#define IVideoFrameStep_CancelStep(This) \ - (This)->lpVtbl -> CancelStep(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVideoFrameStep_Step_Proxy( - IVideoFrameStep * This, - DWORD dwFrames, - /* [unique] */ IUnknown *pStepObject); - - -void __RPC_STUB IVideoFrameStep_Step_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVideoFrameStep_CanStep_Proxy( - IVideoFrameStep * This, - long bMultiple, - /* [unique] */ IUnknown *pStepObject); - - -void __RPC_STUB IVideoFrameStep_CanStep_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVideoFrameStep_CancelStep_Proxy( - IVideoFrameStep * This); - - -void __RPC_STUB IVideoFrameStep_CancelStep_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVideoFrameStep_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0344 */ -/* [local] */ - - -enum _AM_PUSHSOURCE_FLAGS - { AM_PUSHSOURCECAPS_INTERNAL_RM = 0x1, - AM_PUSHSOURCECAPS_NOT_LIVE = 0x2, - AM_PUSHSOURCECAPS_PRIVATE_CLOCK = 0x4, - AM_PUSHSOURCEREQS_USE_STREAM_CLOCK = 0x10000 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0344_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0344_v0_0_s_ifspec; - -#ifndef __IAMLatency_INTERFACE_DEFINED__ -#define __IAMLatency_INTERFACE_DEFINED__ - -/* interface IAMLatency */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMLatency; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("62EA93BA-EC62-11d2-B770-00C04FB6BD3D") - IAMLatency : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetLatency( - /* [in] */ REFERENCE_TIME *prtLatency) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMLatencyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMLatency * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMLatency * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMLatency * This); - - HRESULT ( STDMETHODCALLTYPE *GetLatency )( - IAMLatency * This, - /* [in] */ REFERENCE_TIME *prtLatency); - - END_INTERFACE - } IAMLatencyVtbl; - - interface IAMLatency - { - CONST_VTBL struct IAMLatencyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMLatency_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMLatency_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMLatency_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMLatency_GetLatency(This,prtLatency) \ - (This)->lpVtbl -> GetLatency(This,prtLatency) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMLatency_GetLatency_Proxy( - IAMLatency * This, - /* [in] */ REFERENCE_TIME *prtLatency); - - -void __RPC_STUB IAMLatency_GetLatency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMLatency_INTERFACE_DEFINED__ */ - - -#ifndef __IAMPushSource_INTERFACE_DEFINED__ -#define __IAMPushSource_INTERFACE_DEFINED__ - -/* interface IAMPushSource */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMPushSource; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("F185FE76-E64E-11d2-B76E-00C04FB6BD3D") - IAMPushSource : public IAMLatency - { - public: - virtual HRESULT STDMETHODCALLTYPE GetPushSourceFlags( - /* [out] */ ULONG *pFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetPushSourceFlags( - /* [in] */ ULONG Flags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetStreamOffset( - /* [in] */ REFERENCE_TIME rtOffset) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStreamOffset( - /* [out] */ REFERENCE_TIME *prtOffset) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMaxStreamOffset( - /* [out] */ REFERENCE_TIME *prtMaxOffset) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMaxStreamOffset( - /* [in] */ REFERENCE_TIME rtMaxOffset) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMPushSourceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMPushSource * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMPushSource * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMPushSource * This); - - HRESULT ( STDMETHODCALLTYPE *GetLatency )( - IAMPushSource * This, - /* [in] */ REFERENCE_TIME *prtLatency); - - HRESULT ( STDMETHODCALLTYPE *GetPushSourceFlags )( - IAMPushSource * This, - /* [out] */ ULONG *pFlags); - - HRESULT ( STDMETHODCALLTYPE *SetPushSourceFlags )( - IAMPushSource * This, - /* [in] */ ULONG Flags); - - HRESULT ( STDMETHODCALLTYPE *SetStreamOffset )( - IAMPushSource * This, - /* [in] */ REFERENCE_TIME rtOffset); - - HRESULT ( STDMETHODCALLTYPE *GetStreamOffset )( - IAMPushSource * This, - /* [out] */ REFERENCE_TIME *prtOffset); - - HRESULT ( STDMETHODCALLTYPE *GetMaxStreamOffset )( - IAMPushSource * This, - /* [out] */ REFERENCE_TIME *prtMaxOffset); - - HRESULT ( STDMETHODCALLTYPE *SetMaxStreamOffset )( - IAMPushSource * This, - /* [in] */ REFERENCE_TIME rtMaxOffset); - - END_INTERFACE - } IAMPushSourceVtbl; - - interface IAMPushSource - { - CONST_VTBL struct IAMPushSourceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMPushSource_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMPushSource_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMPushSource_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMPushSource_GetLatency(This,prtLatency) \ - (This)->lpVtbl -> GetLatency(This,prtLatency) - - -#define IAMPushSource_GetPushSourceFlags(This,pFlags) \ - (This)->lpVtbl -> GetPushSourceFlags(This,pFlags) - -#define IAMPushSource_SetPushSourceFlags(This,Flags) \ - (This)->lpVtbl -> SetPushSourceFlags(This,Flags) - -#define IAMPushSource_SetStreamOffset(This,rtOffset) \ - (This)->lpVtbl -> SetStreamOffset(This,rtOffset) - -#define IAMPushSource_GetStreamOffset(This,prtOffset) \ - (This)->lpVtbl -> GetStreamOffset(This,prtOffset) - -#define IAMPushSource_GetMaxStreamOffset(This,prtMaxOffset) \ - (This)->lpVtbl -> GetMaxStreamOffset(This,prtMaxOffset) - -#define IAMPushSource_SetMaxStreamOffset(This,rtMaxOffset) \ - (This)->lpVtbl -> SetMaxStreamOffset(This,rtMaxOffset) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMPushSource_GetPushSourceFlags_Proxy( - IAMPushSource * This, - /* [out] */ ULONG *pFlags); - - -void __RPC_STUB IAMPushSource_GetPushSourceFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPushSource_SetPushSourceFlags_Proxy( - IAMPushSource * This, - /* [in] */ ULONG Flags); - - -void __RPC_STUB IAMPushSource_SetPushSourceFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPushSource_SetStreamOffset_Proxy( - IAMPushSource * This, - /* [in] */ REFERENCE_TIME rtOffset); - - -void __RPC_STUB IAMPushSource_SetStreamOffset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPushSource_GetStreamOffset_Proxy( - IAMPushSource * This, - /* [out] */ REFERENCE_TIME *prtOffset); - - -void __RPC_STUB IAMPushSource_GetStreamOffset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPushSource_GetMaxStreamOffset_Proxy( - IAMPushSource * This, - /* [out] */ REFERENCE_TIME *prtMaxOffset); - - -void __RPC_STUB IAMPushSource_GetMaxStreamOffset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMPushSource_SetMaxStreamOffset_Proxy( - IAMPushSource * This, - /* [in] */ REFERENCE_TIME rtMaxOffset); - - -void __RPC_STUB IAMPushSource_SetMaxStreamOffset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMPushSource_INTERFACE_DEFINED__ */ - - -#ifndef __IAMDeviceRemoval_INTERFACE_DEFINED__ -#define __IAMDeviceRemoval_INTERFACE_DEFINED__ - -/* interface IAMDeviceRemoval */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMDeviceRemoval; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("f90a6130-b658-11d2-ae49-0000f8754b99") - IAMDeviceRemoval : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE DeviceInfo( - /* [out] */ CLSID *pclsidInterfaceClass, - /* [out] */ WCHAR **pwszSymbolicLink) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reassociate( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Disassociate( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMDeviceRemovalVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMDeviceRemoval * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMDeviceRemoval * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMDeviceRemoval * This); - - HRESULT ( STDMETHODCALLTYPE *DeviceInfo )( - IAMDeviceRemoval * This, - /* [out] */ CLSID *pclsidInterfaceClass, - /* [out] */ WCHAR **pwszSymbolicLink); - - HRESULT ( STDMETHODCALLTYPE *Reassociate )( - IAMDeviceRemoval * This); - - HRESULT ( STDMETHODCALLTYPE *Disassociate )( - IAMDeviceRemoval * This); - - END_INTERFACE - } IAMDeviceRemovalVtbl; - - interface IAMDeviceRemoval - { - CONST_VTBL struct IAMDeviceRemovalVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMDeviceRemoval_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMDeviceRemoval_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMDeviceRemoval_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMDeviceRemoval_DeviceInfo(This,pclsidInterfaceClass,pwszSymbolicLink) \ - (This)->lpVtbl -> DeviceInfo(This,pclsidInterfaceClass,pwszSymbolicLink) - -#define IAMDeviceRemoval_Reassociate(This) \ - (This)->lpVtbl -> Reassociate(This) - -#define IAMDeviceRemoval_Disassociate(This) \ - (This)->lpVtbl -> Disassociate(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMDeviceRemoval_DeviceInfo_Proxy( - IAMDeviceRemoval * This, - /* [out] */ CLSID *pclsidInterfaceClass, - /* [out] */ WCHAR **pwszSymbolicLink); - - -void __RPC_STUB IAMDeviceRemoval_DeviceInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMDeviceRemoval_Reassociate_Proxy( - IAMDeviceRemoval * This); - - -void __RPC_STUB IAMDeviceRemoval_Reassociate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMDeviceRemoval_Disassociate_Proxy( - IAMDeviceRemoval * This); - - -void __RPC_STUB IAMDeviceRemoval_Disassociate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMDeviceRemoval_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0346 */ -/* [local] */ - -typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_strmif_0346_0001 - { - DWORD dwDVAAuxSrc; - DWORD dwDVAAuxCtl; - DWORD dwDVAAuxSrc1; - DWORD dwDVAAuxCtl1; - DWORD dwDVVAuxSrc; - DWORD dwDVVAuxCtl; - DWORD dwDVReserved[ 2 ]; - } DVINFO; - -typedef struct __MIDL___MIDL_itf_strmif_0346_0001 *PDVINFO; - - -enum _DVENCODERRESOLUTION - { DVENCODERRESOLUTION_720x480 = 2012, - DVENCODERRESOLUTION_360x240 = 2013, - DVENCODERRESOLUTION_180x120 = 2014, - DVENCODERRESOLUTION_88x60 = 2015 - } ; - -enum _DVENCODERVIDEOFORMAT - { DVENCODERVIDEOFORMAT_NTSC = 2000, - DVENCODERVIDEOFORMAT_PAL = 2001 - } ; - -enum _DVENCODERFORMAT - { DVENCODERFORMAT_DVSD = 2007, - DVENCODERFORMAT_DVHD = 2008, - DVENCODERFORMAT_DVSL = 2009 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0346_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0346_v0_0_s_ifspec; - -#ifndef __IDVEnc_INTERFACE_DEFINED__ -#define __IDVEnc_INTERFACE_DEFINED__ - -/* interface IDVEnc */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IDVEnc; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("d18e17a0-aacb-11d0-afb0-00aa00b67a42") - IDVEnc : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE get_IFormatResolution( - /* [out] */ int *VideoFormat, - /* [out] */ int *DVFormat, - /* [out] */ int *Resolution, - /* [in] */ BYTE fDVInfo, - /* [out] */ DVINFO *sDVInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_IFormatResolution( - /* [in] */ int VideoFormat, - /* [in] */ int DVFormat, - /* [in] */ int Resolution, - /* [in] */ BYTE fDVInfo, - /* [in] */ DVINFO *sDVInfo) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDVEncVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDVEnc * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDVEnc * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDVEnc * This); - - HRESULT ( STDMETHODCALLTYPE *get_IFormatResolution )( - IDVEnc * This, - /* [out] */ int *VideoFormat, - /* [out] */ int *DVFormat, - /* [out] */ int *Resolution, - /* [in] */ BYTE fDVInfo, - /* [out] */ DVINFO *sDVInfo); - - HRESULT ( STDMETHODCALLTYPE *put_IFormatResolution )( - IDVEnc * This, - /* [in] */ int VideoFormat, - /* [in] */ int DVFormat, - /* [in] */ int Resolution, - /* [in] */ BYTE fDVInfo, - /* [in] */ DVINFO *sDVInfo); - - END_INTERFACE - } IDVEncVtbl; - - interface IDVEnc - { - CONST_VTBL struct IDVEncVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDVEnc_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDVEnc_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDVEnc_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDVEnc_get_IFormatResolution(This,VideoFormat,DVFormat,Resolution,fDVInfo,sDVInfo) \ - (This)->lpVtbl -> get_IFormatResolution(This,VideoFormat,DVFormat,Resolution,fDVInfo,sDVInfo) - -#define IDVEnc_put_IFormatResolution(This,VideoFormat,DVFormat,Resolution,fDVInfo,sDVInfo) \ - (This)->lpVtbl -> put_IFormatResolution(This,VideoFormat,DVFormat,Resolution,fDVInfo,sDVInfo) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDVEnc_get_IFormatResolution_Proxy( - IDVEnc * This, - /* [out] */ int *VideoFormat, - /* [out] */ int *DVFormat, - /* [out] */ int *Resolution, - /* [in] */ BYTE fDVInfo, - /* [out] */ DVINFO *sDVInfo); - - -void __RPC_STUB IDVEnc_get_IFormatResolution_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDVEnc_put_IFormatResolution_Proxy( - IDVEnc * This, - /* [in] */ int VideoFormat, - /* [in] */ int DVFormat, - /* [in] */ int Resolution, - /* [in] */ BYTE fDVInfo, - /* [in] */ DVINFO *sDVInfo); - - -void __RPC_STUB IDVEnc_put_IFormatResolution_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDVEnc_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0347 */ -/* [local] */ - - -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 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0347_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0347_v0_0_s_ifspec; - -#ifndef __IIPDVDec_INTERFACE_DEFINED__ -#define __IIPDVDec_INTERFACE_DEFINED__ - -/* interface IIPDVDec */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IIPDVDec; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("b8e8bd60-0bfe-11d0-af91-00aa00b67a42") - IIPDVDec : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE get_IPDisplay( - /* [out] */ int *displayPix) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_IPDisplay( - /* [in] */ int displayPix) = 0; - - }; - -#else /* C style interface */ - - typedef struct IIPDVDecVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IIPDVDec * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IIPDVDec * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IIPDVDec * This); - - HRESULT ( STDMETHODCALLTYPE *get_IPDisplay )( - IIPDVDec * This, - /* [out] */ int *displayPix); - - HRESULT ( STDMETHODCALLTYPE *put_IPDisplay )( - IIPDVDec * This, - /* [in] */ int displayPix); - - END_INTERFACE - } IIPDVDecVtbl; - - interface IIPDVDec - { - CONST_VTBL struct IIPDVDecVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IIPDVDec_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IIPDVDec_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IIPDVDec_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IIPDVDec_get_IPDisplay(This,displayPix) \ - (This)->lpVtbl -> get_IPDisplay(This,displayPix) - -#define IIPDVDec_put_IPDisplay(This,displayPix) \ - (This)->lpVtbl -> put_IPDisplay(This,displayPix) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IIPDVDec_get_IPDisplay_Proxy( - IIPDVDec * This, - /* [out] */ int *displayPix); - - -void __RPC_STUB IIPDVDec_get_IPDisplay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IIPDVDec_put_IPDisplay_Proxy( - IIPDVDec * This, - /* [in] */ int displayPix); - - -void __RPC_STUB IIPDVDec_put_IPDisplay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IIPDVDec_INTERFACE_DEFINED__ */ - - -#ifndef __IDVRGB219_INTERFACE_DEFINED__ -#define __IDVRGB219_INTERFACE_DEFINED__ - -/* interface IDVRGB219 */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IDVRGB219; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("58473A19-2BC8-4663-8012-25F81BABDDD1") - IDVRGB219 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetRGB219( - /* [in] */ BOOL bState) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDVRGB219Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDVRGB219 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDVRGB219 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDVRGB219 * This); - - HRESULT ( STDMETHODCALLTYPE *SetRGB219 )( - IDVRGB219 * This, - /* [in] */ BOOL bState); - - END_INTERFACE - } IDVRGB219Vtbl; - - interface IDVRGB219 - { - CONST_VTBL struct IDVRGB219Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDVRGB219_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDVRGB219_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDVRGB219_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDVRGB219_SetRGB219(This,bState) \ - (This)->lpVtbl -> SetRGB219(This,bState) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDVRGB219_SetRGB219_Proxy( - IDVRGB219 * This, - /* [in] */ BOOL bState); - - -void __RPC_STUB IDVRGB219_SetRGB219_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDVRGB219_INTERFACE_DEFINED__ */ - - -#ifndef __IDVSplitter_INTERFACE_DEFINED__ -#define __IDVSplitter_INTERFACE_DEFINED__ - -/* interface IDVSplitter */ -/* [uuid][object] */ - - -EXTERN_C const IID IID_IDVSplitter; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("92a3a302-da7c-4a1f-ba7e-1802bb5d2d02") - IDVSplitter : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE DiscardAlternateVideoFrames( - /* [in] */ int nDiscard) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDVSplitterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDVSplitter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDVSplitter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDVSplitter * This); - - HRESULT ( STDMETHODCALLTYPE *DiscardAlternateVideoFrames )( - IDVSplitter * This, - /* [in] */ int nDiscard); - - END_INTERFACE - } IDVSplitterVtbl; - - interface IDVSplitter - { - CONST_VTBL struct IDVSplitterVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDVSplitter_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDVSplitter_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDVSplitter_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDVSplitter_DiscardAlternateVideoFrames(This,nDiscard) \ - (This)->lpVtbl -> DiscardAlternateVideoFrames(This,nDiscard) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDVSplitter_DiscardAlternateVideoFrames_Proxy( - IDVSplitter * This, - /* [in] */ int nDiscard); - - -void __RPC_STUB IDVSplitter_DiscardAlternateVideoFrames_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDVSplitter_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0350 */ -/* [local] */ - - -enum _AM_AUDIO_RENDERER_STAT_PARAM - { AM_AUDREND_STAT_PARAM_BREAK_COUNT = 1, - AM_AUDREND_STAT_PARAM_SLAVE_MODE = AM_AUDREND_STAT_PARAM_BREAK_COUNT + 1, - AM_AUDREND_STAT_PARAM_SILENCE_DUR = AM_AUDREND_STAT_PARAM_SLAVE_MODE + 1, - AM_AUDREND_STAT_PARAM_LAST_BUFFER_DUR = AM_AUDREND_STAT_PARAM_SILENCE_DUR + 1, - AM_AUDREND_STAT_PARAM_DISCONTINUITIES = AM_AUDREND_STAT_PARAM_LAST_BUFFER_DUR + 1, - AM_AUDREND_STAT_PARAM_SLAVE_RATE = AM_AUDREND_STAT_PARAM_DISCONTINUITIES + 1, - AM_AUDREND_STAT_PARAM_SLAVE_DROPWRITE_DUR = AM_AUDREND_STAT_PARAM_SLAVE_RATE + 1, - AM_AUDREND_STAT_PARAM_SLAVE_HIGHLOWERROR = AM_AUDREND_STAT_PARAM_SLAVE_DROPWRITE_DUR + 1, - AM_AUDREND_STAT_PARAM_SLAVE_LASTHIGHLOWERROR = AM_AUDREND_STAT_PARAM_SLAVE_HIGHLOWERROR + 1, - AM_AUDREND_STAT_PARAM_SLAVE_ACCUMERROR = AM_AUDREND_STAT_PARAM_SLAVE_LASTHIGHLOWERROR + 1, - AM_AUDREND_STAT_PARAM_BUFFERFULLNESS = AM_AUDREND_STAT_PARAM_SLAVE_ACCUMERROR + 1, - AM_AUDREND_STAT_PARAM_JITTER = AM_AUDREND_STAT_PARAM_BUFFERFULLNESS + 1 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0350_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0350_v0_0_s_ifspec; - -#ifndef __IAMAudioRendererStats_INTERFACE_DEFINED__ -#define __IAMAudioRendererStats_INTERFACE_DEFINED__ - -/* interface IAMAudioRendererStats */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMAudioRendererStats; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("22320CB2-D41A-11d2-BF7C-D7CB9DF0BF93") - IAMAudioRendererStats : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetStatParam( - /* [in] */ DWORD dwParam, - /* [out] */ DWORD *pdwParam1, - /* [out] */ DWORD *pdwParam2) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMAudioRendererStatsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMAudioRendererStats * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMAudioRendererStats * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMAudioRendererStats * This); - - HRESULT ( STDMETHODCALLTYPE *GetStatParam )( - IAMAudioRendererStats * This, - /* [in] */ DWORD dwParam, - /* [out] */ DWORD *pdwParam1, - /* [out] */ DWORD *pdwParam2); - - END_INTERFACE - } IAMAudioRendererStatsVtbl; - - interface IAMAudioRendererStats - { - CONST_VTBL struct IAMAudioRendererStatsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMAudioRendererStats_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMAudioRendererStats_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMAudioRendererStats_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMAudioRendererStats_GetStatParam(This,dwParam,pdwParam1,pdwParam2) \ - (This)->lpVtbl -> GetStatParam(This,dwParam,pdwParam1,pdwParam2) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMAudioRendererStats_GetStatParam_Proxy( - IAMAudioRendererStats * This, - /* [in] */ DWORD dwParam, - /* [out] */ DWORD *pdwParam1, - /* [out] */ DWORD *pdwParam2); - - -void __RPC_STUB IAMAudioRendererStats_GetStatParam_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMAudioRendererStats_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0352 */ -/* [local] */ - - -enum _AM_INTF_SEARCH_FLAGS - { AM_INTF_SEARCH_INPUT_PIN = 0x1, - AM_INTF_SEARCH_OUTPUT_PIN = 0x2, - AM_INTF_SEARCH_FILTER = 0x4 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0352_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0352_v0_0_s_ifspec; - -#ifndef __IAMGraphStreams_INTERFACE_DEFINED__ -#define __IAMGraphStreams_INTERFACE_DEFINED__ - -/* interface IAMGraphStreams */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMGraphStreams; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("632105FA-072E-11d3-8AF9-00C04FB6BD3D") - IAMGraphStreams : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE FindUpstreamInterface( - /* [in] */ IPin *pPin, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvInterface, - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SyncUsingStreamOffset( - /* [in] */ BOOL bUseStreamOffset) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMaxGraphLatency( - /* [in] */ REFERENCE_TIME rtMaxGraphLatency) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMGraphStreamsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMGraphStreams * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMGraphStreams * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMGraphStreams * This); - - HRESULT ( STDMETHODCALLTYPE *FindUpstreamInterface )( - IAMGraphStreams * This, - /* [in] */ IPin *pPin, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvInterface, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *SyncUsingStreamOffset )( - IAMGraphStreams * This, - /* [in] */ BOOL bUseStreamOffset); - - HRESULT ( STDMETHODCALLTYPE *SetMaxGraphLatency )( - IAMGraphStreams * This, - /* [in] */ REFERENCE_TIME rtMaxGraphLatency); - - END_INTERFACE - } IAMGraphStreamsVtbl; - - interface IAMGraphStreams - { - CONST_VTBL struct IAMGraphStreamsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMGraphStreams_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMGraphStreams_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMGraphStreams_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMGraphStreams_FindUpstreamInterface(This,pPin,riid,ppvInterface,dwFlags) \ - (This)->lpVtbl -> FindUpstreamInterface(This,pPin,riid,ppvInterface,dwFlags) - -#define IAMGraphStreams_SyncUsingStreamOffset(This,bUseStreamOffset) \ - (This)->lpVtbl -> SyncUsingStreamOffset(This,bUseStreamOffset) - -#define IAMGraphStreams_SetMaxGraphLatency(This,rtMaxGraphLatency) \ - (This)->lpVtbl -> SetMaxGraphLatency(This,rtMaxGraphLatency) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMGraphStreams_FindUpstreamInterface_Proxy( - IAMGraphStreams * This, - /* [in] */ IPin *pPin, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvInterface, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IAMGraphStreams_FindUpstreamInterface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMGraphStreams_SyncUsingStreamOffset_Proxy( - IAMGraphStreams * This, - /* [in] */ BOOL bUseStreamOffset); - - -void __RPC_STUB IAMGraphStreams_SyncUsingStreamOffset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMGraphStreams_SetMaxGraphLatency_Proxy( - IAMGraphStreams * This, - /* [in] */ REFERENCE_TIME rtMaxGraphLatency); - - -void __RPC_STUB IAMGraphStreams_SetMaxGraphLatency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMGraphStreams_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0353 */ -/* [local] */ - - -enum AMOVERLAYFX - { AMOVERFX_NOFX = 0, - AMOVERFX_MIRRORLEFTRIGHT = 0x2, - AMOVERFX_MIRRORUPDOWN = 0x4, - AMOVERFX_DEINTERLACE = 0x8 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0353_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0353_v0_0_s_ifspec; - -#ifndef __IAMOverlayFX_INTERFACE_DEFINED__ -#define __IAMOverlayFX_INTERFACE_DEFINED__ - -/* interface IAMOverlayFX */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMOverlayFX; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("62fae250-7e65-4460-bfc9-6398b322073c") - IAMOverlayFX : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE QueryOverlayFXCaps( - /* [out] */ DWORD *lpdwOverlayFXCaps) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOverlayFX( - /* [in] */ DWORD dwOverlayFX) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetOverlayFX( - /* [out] */ DWORD *lpdwOverlayFX) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMOverlayFXVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMOverlayFX * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMOverlayFX * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMOverlayFX * This); - - HRESULT ( STDMETHODCALLTYPE *QueryOverlayFXCaps )( - IAMOverlayFX * This, - /* [out] */ DWORD *lpdwOverlayFXCaps); - - HRESULT ( STDMETHODCALLTYPE *SetOverlayFX )( - IAMOverlayFX * This, - /* [in] */ DWORD dwOverlayFX); - - HRESULT ( STDMETHODCALLTYPE *GetOverlayFX )( - IAMOverlayFX * This, - /* [out] */ DWORD *lpdwOverlayFX); - - END_INTERFACE - } IAMOverlayFXVtbl; - - interface IAMOverlayFX - { - CONST_VTBL struct IAMOverlayFXVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMOverlayFX_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMOverlayFX_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMOverlayFX_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMOverlayFX_QueryOverlayFXCaps(This,lpdwOverlayFXCaps) \ - (This)->lpVtbl -> QueryOverlayFXCaps(This,lpdwOverlayFXCaps) - -#define IAMOverlayFX_SetOverlayFX(This,dwOverlayFX) \ - (This)->lpVtbl -> SetOverlayFX(This,dwOverlayFX) - -#define IAMOverlayFX_GetOverlayFX(This,lpdwOverlayFX) \ - (This)->lpVtbl -> GetOverlayFX(This,lpdwOverlayFX) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMOverlayFX_QueryOverlayFXCaps_Proxy( - IAMOverlayFX * This, - /* [out] */ DWORD *lpdwOverlayFXCaps); - - -void __RPC_STUB IAMOverlayFX_QueryOverlayFXCaps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMOverlayFX_SetOverlayFX_Proxy( - IAMOverlayFX * This, - /* [in] */ DWORD dwOverlayFX); - - -void __RPC_STUB IAMOverlayFX_SetOverlayFX_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMOverlayFX_GetOverlayFX_Proxy( - IAMOverlayFX * This, - /* [out] */ DWORD *lpdwOverlayFX); - - -void __RPC_STUB IAMOverlayFX_GetOverlayFX_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMOverlayFX_INTERFACE_DEFINED__ */ - - -#ifndef __IAMOpenProgress_INTERFACE_DEFINED__ -#define __IAMOpenProgress_INTERFACE_DEFINED__ - -/* interface IAMOpenProgress */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMOpenProgress; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("8E1C39A1-DE53-11cf-AA63-0080C744528D") - IAMOpenProgress : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE QueryProgress( - /* [out] */ LONGLONG *pllTotal, - /* [out] */ LONGLONG *pllCurrent) = 0; - - virtual HRESULT STDMETHODCALLTYPE AbortOperation( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMOpenProgressVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMOpenProgress * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMOpenProgress * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMOpenProgress * This); - - HRESULT ( STDMETHODCALLTYPE *QueryProgress )( - IAMOpenProgress * This, - /* [out] */ LONGLONG *pllTotal, - /* [out] */ LONGLONG *pllCurrent); - - HRESULT ( STDMETHODCALLTYPE *AbortOperation )( - IAMOpenProgress * This); - - END_INTERFACE - } IAMOpenProgressVtbl; - - interface IAMOpenProgress - { - CONST_VTBL struct IAMOpenProgressVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMOpenProgress_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMOpenProgress_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMOpenProgress_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMOpenProgress_QueryProgress(This,pllTotal,pllCurrent) \ - (This)->lpVtbl -> QueryProgress(This,pllTotal,pllCurrent) - -#define IAMOpenProgress_AbortOperation(This) \ - (This)->lpVtbl -> AbortOperation(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMOpenProgress_QueryProgress_Proxy( - IAMOpenProgress * This, - /* [out] */ LONGLONG *pllTotal, - /* [out] */ LONGLONG *pllCurrent); - - -void __RPC_STUB IAMOpenProgress_QueryProgress_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMOpenProgress_AbortOperation_Proxy( - IAMOpenProgress * This); - - -void __RPC_STUB IAMOpenProgress_AbortOperation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMOpenProgress_INTERFACE_DEFINED__ */ - - -#ifndef __IMpeg2Demultiplexer_INTERFACE_DEFINED__ -#define __IMpeg2Demultiplexer_INTERFACE_DEFINED__ - -/* interface IMpeg2Demultiplexer */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IMpeg2Demultiplexer; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("436eee9c-264f-4242-90e1-4e330c107512") - IMpeg2Demultiplexer : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE CreateOutputPin( - /* [in] */ AM_MEDIA_TYPE *pMediaType, - /* [in] */ LPWSTR pszPinName, - /* [out] */ IPin **ppIPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOutputPinMediaType( - /* [in] */ LPWSTR pszPinName, - /* [in] */ AM_MEDIA_TYPE *pMediaType) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeleteOutputPin( - /* [in] */ LPWSTR pszPinName) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMpeg2DemultiplexerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMpeg2Demultiplexer * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMpeg2Demultiplexer * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMpeg2Demultiplexer * This); - - HRESULT ( STDMETHODCALLTYPE *CreateOutputPin )( - IMpeg2Demultiplexer * This, - /* [in] */ AM_MEDIA_TYPE *pMediaType, - /* [in] */ LPWSTR pszPinName, - /* [out] */ IPin **ppIPin); - - HRESULT ( STDMETHODCALLTYPE *SetOutputPinMediaType )( - IMpeg2Demultiplexer * This, - /* [in] */ LPWSTR pszPinName, - /* [in] */ AM_MEDIA_TYPE *pMediaType); - - HRESULT ( STDMETHODCALLTYPE *DeleteOutputPin )( - IMpeg2Demultiplexer * This, - /* [in] */ LPWSTR pszPinName); - - END_INTERFACE - } IMpeg2DemultiplexerVtbl; - - interface IMpeg2Demultiplexer - { - CONST_VTBL struct IMpeg2DemultiplexerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMpeg2Demultiplexer_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMpeg2Demultiplexer_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMpeg2Demultiplexer_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMpeg2Demultiplexer_CreateOutputPin(This,pMediaType,pszPinName,ppIPin) \ - (This)->lpVtbl -> CreateOutputPin(This,pMediaType,pszPinName,ppIPin) - -#define IMpeg2Demultiplexer_SetOutputPinMediaType(This,pszPinName,pMediaType) \ - (This)->lpVtbl -> SetOutputPinMediaType(This,pszPinName,pMediaType) - -#define IMpeg2Demultiplexer_DeleteOutputPin(This,pszPinName) \ - (This)->lpVtbl -> DeleteOutputPin(This,pszPinName) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMpeg2Demultiplexer_CreateOutputPin_Proxy( - IMpeg2Demultiplexer * This, - /* [in] */ AM_MEDIA_TYPE *pMediaType, - /* [in] */ LPWSTR pszPinName, - /* [out] */ IPin **ppIPin); - - -void __RPC_STUB IMpeg2Demultiplexer_CreateOutputPin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMpeg2Demultiplexer_SetOutputPinMediaType_Proxy( - IMpeg2Demultiplexer * This, - /* [in] */ LPWSTR pszPinName, - /* [in] */ AM_MEDIA_TYPE *pMediaType); - - -void __RPC_STUB IMpeg2Demultiplexer_SetOutputPinMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMpeg2Demultiplexer_DeleteOutputPin_Proxy( - IMpeg2Demultiplexer * This, - /* [in] */ LPWSTR pszPinName); - - -void __RPC_STUB IMpeg2Demultiplexer_DeleteOutputPin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMpeg2Demultiplexer_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0356 */ -/* [local] */ - -#define MPEG2_PROGRAM_STREAM_MAP 0x00000000 -#define MPEG2_PROGRAM_ELEMENTARY_STREAM 0x00000001 -#define MPEG2_PROGRAM_DIRECTORY_PES_PACKET 0x00000002 -#define MPEG2_PROGRAM_PACK_HEADER 0x00000003 -#define MPEG2_PROGRAM_PES_STREAM 0x00000004 -#define MPEG2_PROGRAM_SYSTEM_HEADER 0x00000005 -#define SUBSTREAM_FILTER_VAL_NONE 0x10000000 -typedef /* [public][public] */ struct __MIDL___MIDL_itf_strmif_0356_0001 - { - ULONG stream_id; - DWORD dwMediaSampleContent; - ULONG ulSubstreamFilterValue; - int iDataOffset; - } STREAM_ID_MAP; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0356_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0356_v0_0_s_ifspec; - -#ifndef __IEnumStreamIdMap_INTERFACE_DEFINED__ -#define __IEnumStreamIdMap_INTERFACE_DEFINED__ - -/* interface IEnumStreamIdMap */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IEnumStreamIdMap; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("945C1566-6202-46fc-96C7-D87F289C6534") - IEnumStreamIdMap : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Next( - /* [in] */ ULONG cRequest, - /* [size_is][out][in] */ STREAM_ID_MAP *pStreamIdMap, - /* [out] */ ULONG *pcReceived) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - /* [in] */ ULONG cRecords) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IEnumStreamIdMap **ppIEnumStreamIdMap) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumStreamIdMapVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumStreamIdMap * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumStreamIdMap * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumStreamIdMap * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumStreamIdMap * This, - /* [in] */ ULONG cRequest, - /* [size_is][out][in] */ STREAM_ID_MAP *pStreamIdMap, - /* [out] */ ULONG *pcReceived); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumStreamIdMap * This, - /* [in] */ ULONG cRecords); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumStreamIdMap * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumStreamIdMap * This, - /* [out] */ IEnumStreamIdMap **ppIEnumStreamIdMap); - - END_INTERFACE - } IEnumStreamIdMapVtbl; - - interface IEnumStreamIdMap - { - CONST_VTBL struct IEnumStreamIdMapVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEnumStreamIdMap_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEnumStreamIdMap_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEnumStreamIdMap_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEnumStreamIdMap_Next(This,cRequest,pStreamIdMap,pcReceived) \ - (This)->lpVtbl -> Next(This,cRequest,pStreamIdMap,pcReceived) - -#define IEnumStreamIdMap_Skip(This,cRecords) \ - (This)->lpVtbl -> Skip(This,cRecords) - -#define IEnumStreamIdMap_Reset(This) \ - (This)->lpVtbl -> Reset(This) - -#define IEnumStreamIdMap_Clone(This,ppIEnumStreamIdMap) \ - (This)->lpVtbl -> Clone(This,ppIEnumStreamIdMap) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IEnumStreamIdMap_Next_Proxy( - IEnumStreamIdMap * This, - /* [in] */ ULONG cRequest, - /* [size_is][out][in] */ STREAM_ID_MAP *pStreamIdMap, - /* [out] */ ULONG *pcReceived); - - -void __RPC_STUB IEnumStreamIdMap_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumStreamIdMap_Skip_Proxy( - IEnumStreamIdMap * This, - /* [in] */ ULONG cRecords); - - -void __RPC_STUB IEnumStreamIdMap_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumStreamIdMap_Reset_Proxy( - IEnumStreamIdMap * This); - - -void __RPC_STUB IEnumStreamIdMap_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumStreamIdMap_Clone_Proxy( - IEnumStreamIdMap * This, - /* [out] */ IEnumStreamIdMap **ppIEnumStreamIdMap); - - -void __RPC_STUB IEnumStreamIdMap_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEnumStreamIdMap_INTERFACE_DEFINED__ */ - - -#ifndef __IMPEG2StreamIdMap_INTERFACE_DEFINED__ -#define __IMPEG2StreamIdMap_INTERFACE_DEFINED__ - -/* interface IMPEG2StreamIdMap */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IMPEG2StreamIdMap; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("D0E04C47-25B8-4369-925A-362A01D95444") - IMPEG2StreamIdMap : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE MapStreamId( - /* [in] */ ULONG ulStreamId, - /* [in] */ DWORD MediaSampleContent, - /* [in] */ ULONG ulSubstreamFilterValue, - /* [in] */ int iDataOffset) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnmapStreamId( - /* [in] */ ULONG culStreamId, - /* [in] */ ULONG *pulStreamId) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumStreamIdMap( - /* [out] */ IEnumStreamIdMap **ppIEnumStreamIdMap) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMPEG2StreamIdMapVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMPEG2StreamIdMap * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMPEG2StreamIdMap * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMPEG2StreamIdMap * This); - - HRESULT ( STDMETHODCALLTYPE *MapStreamId )( - IMPEG2StreamIdMap * This, - /* [in] */ ULONG ulStreamId, - /* [in] */ DWORD MediaSampleContent, - /* [in] */ ULONG ulSubstreamFilterValue, - /* [in] */ int iDataOffset); - - HRESULT ( STDMETHODCALLTYPE *UnmapStreamId )( - IMPEG2StreamIdMap * This, - /* [in] */ ULONG culStreamId, - /* [in] */ ULONG *pulStreamId); - - HRESULT ( STDMETHODCALLTYPE *EnumStreamIdMap )( - IMPEG2StreamIdMap * This, - /* [out] */ IEnumStreamIdMap **ppIEnumStreamIdMap); - - END_INTERFACE - } IMPEG2StreamIdMapVtbl; - - interface IMPEG2StreamIdMap - { - CONST_VTBL struct IMPEG2StreamIdMapVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMPEG2StreamIdMap_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMPEG2StreamIdMap_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMPEG2StreamIdMap_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMPEG2StreamIdMap_MapStreamId(This,ulStreamId,MediaSampleContent,ulSubstreamFilterValue,iDataOffset) \ - (This)->lpVtbl -> MapStreamId(This,ulStreamId,MediaSampleContent,ulSubstreamFilterValue,iDataOffset) - -#define IMPEG2StreamIdMap_UnmapStreamId(This,culStreamId,pulStreamId) \ - (This)->lpVtbl -> UnmapStreamId(This,culStreamId,pulStreamId) - -#define IMPEG2StreamIdMap_EnumStreamIdMap(This,ppIEnumStreamIdMap) \ - (This)->lpVtbl -> EnumStreamIdMap(This,ppIEnumStreamIdMap) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IMPEG2StreamIdMap_MapStreamId_Proxy( - IMPEG2StreamIdMap * This, - /* [in] */ ULONG ulStreamId, - /* [in] */ DWORD MediaSampleContent, - /* [in] */ ULONG ulSubstreamFilterValue, - /* [in] */ int iDataOffset); - - -void __RPC_STUB IMPEG2StreamIdMap_MapStreamId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMPEG2StreamIdMap_UnmapStreamId_Proxy( - IMPEG2StreamIdMap * This, - /* [in] */ ULONG culStreamId, - /* [in] */ ULONG *pulStreamId); - - -void __RPC_STUB IMPEG2StreamIdMap_UnmapStreamId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IMPEG2StreamIdMap_EnumStreamIdMap_Proxy( - IMPEG2StreamIdMap * This, - /* [out] */ IEnumStreamIdMap **ppIEnumStreamIdMap); - - -void __RPC_STUB IMPEG2StreamIdMap_EnumStreamIdMap_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMPEG2StreamIdMap_INTERFACE_DEFINED__ */ - - -#ifndef __IRegisterServiceProvider_INTERFACE_DEFINED__ -#define __IRegisterServiceProvider_INTERFACE_DEFINED__ - -/* interface IRegisterServiceProvider */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IRegisterServiceProvider; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("7B3A2F01-0751-48DD-B556-004785171C54") - IRegisterServiceProvider : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE RegisterService( - /* [in] */ REFGUID guidService, - /* [in] */ IUnknown *pUnkObject) = 0; - - }; - -#else /* C style interface */ - - typedef struct IRegisterServiceProviderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IRegisterServiceProvider * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IRegisterServiceProvider * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IRegisterServiceProvider * This); - - HRESULT ( STDMETHODCALLTYPE *RegisterService )( - IRegisterServiceProvider * This, - /* [in] */ REFGUID guidService, - /* [in] */ IUnknown *pUnkObject); - - END_INTERFACE - } IRegisterServiceProviderVtbl; - - interface IRegisterServiceProvider - { - CONST_VTBL struct IRegisterServiceProviderVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IRegisterServiceProvider_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IRegisterServiceProvider_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IRegisterServiceProvider_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IRegisterServiceProvider_RegisterService(This,guidService,pUnkObject) \ - (This)->lpVtbl -> RegisterService(This,guidService,pUnkObject) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IRegisterServiceProvider_RegisterService_Proxy( - IRegisterServiceProvider * This, - /* [in] */ REFGUID guidService, - /* [in] */ IUnknown *pUnkObject); - - -void __RPC_STUB IRegisterServiceProvider_RegisterService_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IRegisterServiceProvider_INTERFACE_DEFINED__ */ - - -#ifndef __IAMClockSlave_INTERFACE_DEFINED__ -#define __IAMClockSlave_INTERFACE_DEFINED__ - -/* interface IAMClockSlave */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IAMClockSlave; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9FD52741-176D-4b36-8F51-CA8F933223BE") - IAMClockSlave : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetErrorTolerance( - /* [in] */ DWORD dwTolerance) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetErrorTolerance( - /* [out] */ DWORD *pdwTolerance) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMClockSlaveVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMClockSlave * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMClockSlave * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMClockSlave * This); - - HRESULT ( STDMETHODCALLTYPE *SetErrorTolerance )( - IAMClockSlave * This, - /* [in] */ DWORD dwTolerance); - - HRESULT ( STDMETHODCALLTYPE *GetErrorTolerance )( - IAMClockSlave * This, - /* [out] */ DWORD *pdwTolerance); - - END_INTERFACE - } IAMClockSlaveVtbl; - - interface IAMClockSlave - { - CONST_VTBL struct IAMClockSlaveVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMClockSlave_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMClockSlave_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMClockSlave_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMClockSlave_SetErrorTolerance(This,dwTolerance) \ - (This)->lpVtbl -> SetErrorTolerance(This,dwTolerance) - -#define IAMClockSlave_GetErrorTolerance(This,pdwTolerance) \ - (This)->lpVtbl -> GetErrorTolerance(This,pdwTolerance) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMClockSlave_SetErrorTolerance_Proxy( - IAMClockSlave * This, - /* [in] */ DWORD dwTolerance); - - -void __RPC_STUB IAMClockSlave_SetErrorTolerance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMClockSlave_GetErrorTolerance_Proxy( - IAMClockSlave * This, - /* [out] */ DWORD *pdwTolerance); - - -void __RPC_STUB IAMClockSlave_GetErrorTolerance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMClockSlave_INTERFACE_DEFINED__ */ - - -#ifndef __IAMGraphBuilderCallback_INTERFACE_DEFINED__ -#define __IAMGraphBuilderCallback_INTERFACE_DEFINED__ - -/* interface IAMGraphBuilderCallback */ -/* [unique][local][uuid][object] */ - - -EXTERN_C const IID IID_IAMGraphBuilderCallback; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("4995f511-9ddb-4f12-bd3b-f04611807b79") - IAMGraphBuilderCallback : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SelectedFilter( - /* [in] */ IMoniker *pMon) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreatedFilter( - /* [in] */ IBaseFilter *pFil) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMGraphBuilderCallbackVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMGraphBuilderCallback * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMGraphBuilderCallback * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMGraphBuilderCallback * This); - - HRESULT ( STDMETHODCALLTYPE *SelectedFilter )( - IAMGraphBuilderCallback * This, - /* [in] */ IMoniker *pMon); - - HRESULT ( STDMETHODCALLTYPE *CreatedFilter )( - IAMGraphBuilderCallback * This, - /* [in] */ IBaseFilter *pFil); - - END_INTERFACE - } IAMGraphBuilderCallbackVtbl; - - interface IAMGraphBuilderCallback - { - CONST_VTBL struct IAMGraphBuilderCallbackVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMGraphBuilderCallback_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMGraphBuilderCallback_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMGraphBuilderCallback_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMGraphBuilderCallback_SelectedFilter(This,pMon) \ - (This)->lpVtbl -> SelectedFilter(This,pMon) - -#define IAMGraphBuilderCallback_CreatedFilter(This,pFil) \ - (This)->lpVtbl -> CreatedFilter(This,pFil) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMGraphBuilderCallback_SelectedFilter_Proxy( - IAMGraphBuilderCallback * This, - /* [in] */ IMoniker *pMon); - - -void __RPC_STUB IAMGraphBuilderCallback_SelectedFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMGraphBuilderCallback_CreatedFilter_Proxy( - IAMGraphBuilderCallback * This, - /* [in] */ IBaseFilter *pFil); - - -void __RPC_STUB IAMGraphBuilderCallback_CreatedFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMGraphBuilderCallback_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0361 */ -/* [local] */ - -#ifdef __cplusplus -#ifndef _IAMFilterGraphCallback_ -#define _IAMFilterGraphCallback_ -// Note: Because this interface was not defined as a proper interface it is -// supported under C++ only. Methods aren't stdcall. -EXTERN_GUID(IID_IAMFilterGraphCallback,0x56a868fd,0x0ad4,0x11ce,0xb0,0xa3,0x0,0x20,0xaf,0x0b,0xa7,0x70); -interface IAMFilterGraphCallback : public IUnknown -{ - // S_OK means rendering complete, S_FALSE means retry now. - virtual HRESULT UnableToRender(IPin *pPin) = 0; - -}; -#endif // _IAMFilterGraphCallback_ -#endif -struct CodecAPIEventData - { - GUID guid; - DWORD dataLength; - DWORD reserved[ 3 ]; - } ; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0361_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0361_v0_0_s_ifspec; - -#ifndef __ICodecAPI_INTERFACE_DEFINED__ -#define __ICodecAPI_INTERFACE_DEFINED__ - -/* interface ICodecAPI */ -/* [unique][uuid][object] */ - - -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, - /* [out] */ VARIANT *ValueMin, - /* [out] */ VARIANT *ValueMax, - /* [out] */ VARIANT *SteppingDelta) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetParameterValues( - /* [in] */ const GUID *Api, - /* [size_is][size_is][out] */ VARIANT **Values, - /* [out] */ ULONG *ValuesCount) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultValue( - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetValue( - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetValue( - /* [in] */ const GUID *Api, - /* [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, - /* [size_is][size_is][out] */ GUID **ChangedParam, - /* [out] */ ULONG *ChangedParamCount) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetAllDefaultsWithNotify( - /* [size_is][size_is][out] */ GUID **ChangedParam, - /* [out] */ ULONG *ChangedParamCount) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllSettings( - /* [in] */ IStream *__MIDL_0016) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetAllSettings( - /* [in] */ IStream *__MIDL_0017) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetAllSettingsWithNotify( - IStream *__MIDL_0018, - /* [size_is][size_is][out] */ GUID **ChangedParam, - /* [out] */ ULONG *ChangedParamCount) = 0; - - }; - -#else /* C style interface */ - - typedef struct ICodecAPIVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ICodecAPI * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ICodecAPI * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ICodecAPI * This); - - HRESULT ( STDMETHODCALLTYPE *IsSupported )( - ICodecAPI * This, - /* [in] */ const GUID *Api); - - HRESULT ( STDMETHODCALLTYPE *IsModifiable )( - ICodecAPI * This, - /* [in] */ const GUID *Api); - - HRESULT ( STDMETHODCALLTYPE *GetParameterRange )( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *ValueMin, - /* [out] */ VARIANT *ValueMax, - /* [out] */ VARIANT *SteppingDelta); - - HRESULT ( STDMETHODCALLTYPE *GetParameterValues )( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [size_is][size_is][out] */ VARIANT **Values, - /* [out] */ ULONG *ValuesCount); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultValue )( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value); - - HRESULT ( STDMETHODCALLTYPE *GetValue )( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value); - - HRESULT ( STDMETHODCALLTYPE *SetValue )( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [in] */ VARIANT *Value); - - HRESULT ( STDMETHODCALLTYPE *RegisterForEvent )( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [in] */ LONG_PTR userData); - - HRESULT ( STDMETHODCALLTYPE *UnregisterForEvent )( - ICodecAPI * This, - /* [in] */ const GUID *Api); - - HRESULT ( STDMETHODCALLTYPE *SetAllDefaults )( - ICodecAPI * This); - - HRESULT ( STDMETHODCALLTYPE *SetValueWithNotify )( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [in] */ VARIANT *Value, - /* [size_is][size_is][out] */ GUID **ChangedParam, - /* [out] */ ULONG *ChangedParamCount); - - HRESULT ( STDMETHODCALLTYPE *SetAllDefaultsWithNotify )( - ICodecAPI * This, - /* [size_is][size_is][out] */ GUID **ChangedParam, - /* [out] */ ULONG *ChangedParamCount); - - HRESULT ( STDMETHODCALLTYPE *GetAllSettings )( - ICodecAPI * This, - /* [in] */ IStream *__MIDL_0016); - - HRESULT ( STDMETHODCALLTYPE *SetAllSettings )( - ICodecAPI * This, - /* [in] */ IStream *__MIDL_0017); - - HRESULT ( STDMETHODCALLTYPE *SetAllSettingsWithNotify )( - ICodecAPI * This, - IStream *__MIDL_0018, - /* [size_is][size_is][out] */ GUID **ChangedParam, - /* [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_0016) \ - (This)->lpVtbl -> GetAllSettings(This,__MIDL_0016) - -#define ICodecAPI_SetAllSettings(This,__MIDL_0017) \ - (This)->lpVtbl -> SetAllSettings(This,__MIDL_0017) - -#define ICodecAPI_SetAllSettingsWithNotify(This,__MIDL_0018,ChangedParam,ChangedParamCount) \ - (This)->lpVtbl -> SetAllSettingsWithNotify(This,__MIDL_0018,ChangedParam,ChangedParamCount) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE ICodecAPI_IsSupported_Proxy( - ICodecAPI * This, - /* [in] */ const GUID *Api); - - -void __RPC_STUB ICodecAPI_IsSupported_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_IsModifiable_Proxy( - ICodecAPI * This, - /* [in] */ const GUID *Api); - - -void __RPC_STUB ICodecAPI_IsModifiable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_GetParameterRange_Proxy( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *ValueMin, - /* [out] */ VARIANT *ValueMax, - /* [out] */ VARIANT *SteppingDelta); - - -void __RPC_STUB ICodecAPI_GetParameterRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_GetParameterValues_Proxy( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [size_is][size_is][out] */ VARIANT **Values, - /* [out] */ ULONG *ValuesCount); - - -void __RPC_STUB ICodecAPI_GetParameterValues_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_GetDefaultValue_Proxy( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value); - - -void __RPC_STUB ICodecAPI_GetDefaultValue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_GetValue_Proxy( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value); - - -void __RPC_STUB ICodecAPI_GetValue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_SetValue_Proxy( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [in] */ VARIANT *Value); - - -void __RPC_STUB ICodecAPI_SetValue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_RegisterForEvent_Proxy( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [in] */ LONG_PTR userData); - - -void __RPC_STUB ICodecAPI_RegisterForEvent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_UnregisterForEvent_Proxy( - ICodecAPI * This, - /* [in] */ const GUID *Api); - - -void __RPC_STUB ICodecAPI_UnregisterForEvent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_SetAllDefaults_Proxy( - ICodecAPI * This); - - -void __RPC_STUB ICodecAPI_SetAllDefaults_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_SetValueWithNotify_Proxy( - ICodecAPI * This, - /* [in] */ const GUID *Api, - /* [in] */ VARIANT *Value, - /* [size_is][size_is][out] */ GUID **ChangedParam, - /* [out] */ ULONG *ChangedParamCount); - - -void __RPC_STUB ICodecAPI_SetValueWithNotify_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_SetAllDefaultsWithNotify_Proxy( - ICodecAPI * This, - /* [size_is][size_is][out] */ GUID **ChangedParam, - /* [out] */ ULONG *ChangedParamCount); - - -void __RPC_STUB ICodecAPI_SetAllDefaultsWithNotify_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_GetAllSettings_Proxy( - ICodecAPI * This, - /* [in] */ IStream *__MIDL_0016); - - -void __RPC_STUB ICodecAPI_GetAllSettings_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_SetAllSettings_Proxy( - ICodecAPI * This, - /* [in] */ IStream *__MIDL_0017); - - -void __RPC_STUB ICodecAPI_SetAllSettings_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ICodecAPI_SetAllSettingsWithNotify_Proxy( - ICodecAPI * This, - IStream *__MIDL_0018, - /* [size_is][size_is][out] */ GUID **ChangedParam, - /* [out] */ ULONG *ChangedParamCount); - - -void __RPC_STUB ICodecAPI_SetAllSettingsWithNotify_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ICodecAPI_INTERFACE_DEFINED__ */ - - -#ifndef __IGetCapabilitiesKey_INTERFACE_DEFINED__ -#define __IGetCapabilitiesKey_INTERFACE_DEFINED__ - -/* interface IGetCapabilitiesKey */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IGetCapabilitiesKey; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("a8809222-07bb-48ea-951c-33158100625b") - IGetCapabilitiesKey : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetCapabilitiesKey( - /* [out] */ HKEY *pHKey) = 0; - - }; - -#else /* C style interface */ - - typedef struct IGetCapabilitiesKeyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IGetCapabilitiesKey * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IGetCapabilitiesKey * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IGetCapabilitiesKey * This); - - HRESULT ( STDMETHODCALLTYPE *GetCapabilitiesKey )( - IGetCapabilitiesKey * This, - /* [out] */ HKEY *pHKey); - - END_INTERFACE - } IGetCapabilitiesKeyVtbl; - - interface IGetCapabilitiesKey - { - CONST_VTBL struct IGetCapabilitiesKeyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IGetCapabilitiesKey_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IGetCapabilitiesKey_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IGetCapabilitiesKey_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IGetCapabilitiesKey_GetCapabilitiesKey(This,pHKey) \ - (This)->lpVtbl -> GetCapabilitiesKey(This,pHKey) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IGetCapabilitiesKey_GetCapabilitiesKey_Proxy( - IGetCapabilitiesKey * This, - /* [out] */ HKEY *pHKey); - - -void __RPC_STUB IGetCapabilitiesKey_GetCapabilitiesKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IGetCapabilitiesKey_INTERFACE_DEFINED__ */ - - -#ifndef __IEncoderAPI_INTERFACE_DEFINED__ -#define __IEncoderAPI_INTERFACE_DEFINED__ - -/* interface IEncoderAPI */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IEncoderAPI; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("70423839-6ACC-4b23-B079-21DBF08156A5") - IEncoderAPI : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE IsSupported( - /* [in] */ const GUID *Api) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsAvailable( - /* [in] */ const GUID *Api) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetParameterRange( - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *ValueMin, - /* [out] */ VARIANT *ValueMax, - /* [out] */ VARIANT *SteppingDelta) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetParameterValues( - /* [in] */ const GUID *Api, - /* [size_is][size_is][out] */ VARIANT **Values, - /* [out] */ ULONG *ValuesCount) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultValue( - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetValue( - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetValue( - /* [in] */ const GUID *Api, - /* [in] */ VARIANT *Value) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEncoderAPIVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEncoderAPI * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEncoderAPI * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEncoderAPI * This); - - HRESULT ( STDMETHODCALLTYPE *IsSupported )( - IEncoderAPI * This, - /* [in] */ const GUID *Api); - - HRESULT ( STDMETHODCALLTYPE *IsAvailable )( - IEncoderAPI * This, - /* [in] */ const GUID *Api); - - HRESULT ( STDMETHODCALLTYPE *GetParameterRange )( - IEncoderAPI * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *ValueMin, - /* [out] */ VARIANT *ValueMax, - /* [out] */ VARIANT *SteppingDelta); - - HRESULT ( STDMETHODCALLTYPE *GetParameterValues )( - IEncoderAPI * This, - /* [in] */ const GUID *Api, - /* [size_is][size_is][out] */ VARIANT **Values, - /* [out] */ ULONG *ValuesCount); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultValue )( - IEncoderAPI * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value); - - HRESULT ( STDMETHODCALLTYPE *GetValue )( - IEncoderAPI * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value); - - HRESULT ( STDMETHODCALLTYPE *SetValue )( - IEncoderAPI * This, - /* [in] */ const GUID *Api, - /* [in] */ VARIANT *Value); - - END_INTERFACE - } IEncoderAPIVtbl; - - interface IEncoderAPI - { - CONST_VTBL struct IEncoderAPIVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEncoderAPI_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEncoderAPI_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEncoderAPI_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEncoderAPI_IsSupported(This,Api) \ - (This)->lpVtbl -> IsSupported(This,Api) - -#define IEncoderAPI_IsAvailable(This,Api) \ - (This)->lpVtbl -> IsAvailable(This,Api) - -#define IEncoderAPI_GetParameterRange(This,Api,ValueMin,ValueMax,SteppingDelta) \ - (This)->lpVtbl -> GetParameterRange(This,Api,ValueMin,ValueMax,SteppingDelta) - -#define IEncoderAPI_GetParameterValues(This,Api,Values,ValuesCount) \ - (This)->lpVtbl -> GetParameterValues(This,Api,Values,ValuesCount) - -#define IEncoderAPI_GetDefaultValue(This,Api,Value) \ - (This)->lpVtbl -> GetDefaultValue(This,Api,Value) - -#define IEncoderAPI_GetValue(This,Api,Value) \ - (This)->lpVtbl -> GetValue(This,Api,Value) - -#define IEncoderAPI_SetValue(This,Api,Value) \ - (This)->lpVtbl -> SetValue(This,Api,Value) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IEncoderAPI_IsSupported_Proxy( - IEncoderAPI * This, - /* [in] */ const GUID *Api); - - -void __RPC_STUB IEncoderAPI_IsSupported_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEncoderAPI_IsAvailable_Proxy( - IEncoderAPI * This, - /* [in] */ const GUID *Api); - - -void __RPC_STUB IEncoderAPI_IsAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEncoderAPI_GetParameterRange_Proxy( - IEncoderAPI * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *ValueMin, - /* [out] */ VARIANT *ValueMax, - /* [out] */ VARIANT *SteppingDelta); - - -void __RPC_STUB IEncoderAPI_GetParameterRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEncoderAPI_GetParameterValues_Proxy( - IEncoderAPI * This, - /* [in] */ const GUID *Api, - /* [size_is][size_is][out] */ VARIANT **Values, - /* [out] */ ULONG *ValuesCount); - - -void __RPC_STUB IEncoderAPI_GetParameterValues_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEncoderAPI_GetDefaultValue_Proxy( - IEncoderAPI * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value); - - -void __RPC_STUB IEncoderAPI_GetDefaultValue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEncoderAPI_GetValue_Proxy( - IEncoderAPI * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value); - - -void __RPC_STUB IEncoderAPI_GetValue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEncoderAPI_SetValue_Proxy( - IEncoderAPI * This, - /* [in] */ const GUID *Api, - /* [in] */ VARIANT *Value); - - -void __RPC_STUB IEncoderAPI_SetValue_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEncoderAPI_INTERFACE_DEFINED__ */ - - -#ifndef __IVideoEncoder_INTERFACE_DEFINED__ -#define __IVideoEncoder_INTERFACE_DEFINED__ - -/* interface IVideoEncoder */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IVideoEncoder; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("02997C3B-8E1B-460e-9270-545E0DE9563E") - IVideoEncoder : public IEncoderAPI - { - public: - }; - -#else /* C style interface */ - - typedef struct IVideoEncoderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVideoEncoder * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVideoEncoder * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVideoEncoder * This); - - HRESULT ( STDMETHODCALLTYPE *IsSupported )( - IVideoEncoder * This, - /* [in] */ const GUID *Api); - - HRESULT ( STDMETHODCALLTYPE *IsAvailable )( - IVideoEncoder * This, - /* [in] */ const GUID *Api); - - HRESULT ( STDMETHODCALLTYPE *GetParameterRange )( - IVideoEncoder * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *ValueMin, - /* [out] */ VARIANT *ValueMax, - /* [out] */ VARIANT *SteppingDelta); - - HRESULT ( STDMETHODCALLTYPE *GetParameterValues )( - IVideoEncoder * This, - /* [in] */ const GUID *Api, - /* [size_is][size_is][out] */ VARIANT **Values, - /* [out] */ ULONG *ValuesCount); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultValue )( - IVideoEncoder * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value); - - HRESULT ( STDMETHODCALLTYPE *GetValue )( - IVideoEncoder * This, - /* [in] */ const GUID *Api, - /* [out] */ VARIANT *Value); - - HRESULT ( STDMETHODCALLTYPE *SetValue )( - IVideoEncoder * This, - /* [in] */ const GUID *Api, - /* [in] */ VARIANT *Value); - - END_INTERFACE - } IVideoEncoderVtbl; - - interface IVideoEncoder - { - CONST_VTBL struct IVideoEncoderVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVideoEncoder_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVideoEncoder_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVideoEncoder_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVideoEncoder_IsSupported(This,Api) \ - (This)->lpVtbl -> IsSupported(This,Api) - -#define IVideoEncoder_IsAvailable(This,Api) \ - (This)->lpVtbl -> IsAvailable(This,Api) - -#define IVideoEncoder_GetParameterRange(This,Api,ValueMin,ValueMax,SteppingDelta) \ - (This)->lpVtbl -> GetParameterRange(This,Api,ValueMin,ValueMax,SteppingDelta) - -#define IVideoEncoder_GetParameterValues(This,Api,Values,ValuesCount) \ - (This)->lpVtbl -> GetParameterValues(This,Api,Values,ValuesCount) - -#define IVideoEncoder_GetDefaultValue(This,Api,Value) \ - (This)->lpVtbl -> GetDefaultValue(This,Api,Value) - -#define IVideoEncoder_GetValue(This,Api,Value) \ - (This)->lpVtbl -> GetValue(This,Api,Value) - -#define IVideoEncoder_SetValue(This,Api,Value) \ - (This)->lpVtbl -> SetValue(This,Api,Value) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IVideoEncoder_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0365 */ -/* [local] */ - -#ifndef __ENCODER_API_DEFINES__ -#define __ENCODER_API_DEFINES__ -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0365_0001 - { ConstantBitRate = 0, - VariableBitRateAverage = ConstantBitRate + 1, - VariableBitRatePeak = VariableBitRateAverage + 1 - } VIDEOENCODER_BITRATE_MODE; - -#endif // __ENCODER_API_DEFINES__ -#define AM_GETDECODERCAP_QUERY_VMR_SUPPORT 0x00000001 -#define VMR_NOTSUPPORTED 0x00000000 -#define VMR_SUPPORTED 0x00000001 -#define AM_QUERY_DECODER_VMR_SUPPORT 0x00000001 -#define AM_QUERY_DECODER_DXVA_1_SUPPORT 0x00000002 -#define AM_QUERY_DECODER_DVD_SUPPORT 0x00000003 -#define AM_QUERY_DECODER_ATSC_SD_SUPPORT 0x00000004 -#define AM_QUERY_DECODER_ATSC_HD_SUPPORT 0x00000005 -#define AM_GETDECODERCAP_QUERY_VMR9_SUPPORT 0x00000006 -#define DECODER_CAP_NOTSUPPORTED 0x00000000 -#define DECODER_CAP_SUPPORTED 0x00000001 - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0365_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0365_v0_0_s_ifspec; - -#ifndef __IAMDecoderCaps_INTERFACE_DEFINED__ -#define __IAMDecoderCaps_INTERFACE_DEFINED__ - -/* interface IAMDecoderCaps */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IAMDecoderCaps; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("c0dff467-d499-4986-972b-e1d9090fa941") - IAMDecoderCaps : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetDecoderCaps( - /* [in] */ DWORD dwCapIndex, - /* [out] */ DWORD *lpdwCap) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMDecoderCapsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMDecoderCaps * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMDecoderCaps * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMDecoderCaps * This); - - HRESULT ( STDMETHODCALLTYPE *GetDecoderCaps )( - IAMDecoderCaps * This, - /* [in] */ DWORD dwCapIndex, - /* [out] */ DWORD *lpdwCap); - - END_INTERFACE - } IAMDecoderCapsVtbl; - - interface IAMDecoderCaps - { - CONST_VTBL struct IAMDecoderCapsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMDecoderCaps_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMDecoderCaps_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMDecoderCaps_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMDecoderCaps_GetDecoderCaps(This,dwCapIndex,lpdwCap) \ - (This)->lpVtbl -> GetDecoderCaps(This,dwCapIndex,lpdwCap) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMDecoderCaps_GetDecoderCaps_Proxy( - IAMDecoderCaps * This, - /* [in] */ DWORD dwCapIndex, - /* [out] */ DWORD *lpdwCap); - - -void __RPC_STUB IAMDecoderCaps_GetDecoderCaps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMDecoderCaps_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0366 */ -/* [local] */ - -#include - - - - - - - - - -typedef -enum tagDVD_DOMAIN - { DVD_DOMAIN_FirstPlay = 1, - DVD_DOMAIN_VideoManagerMenu = DVD_DOMAIN_FirstPlay + 1, - DVD_DOMAIN_VideoTitleSetMenu = DVD_DOMAIN_VideoManagerMenu + 1, - DVD_DOMAIN_Title = DVD_DOMAIN_VideoTitleSetMenu + 1, - DVD_DOMAIN_Stop = DVD_DOMAIN_Title + 1 - } DVD_DOMAIN; - -typedef -enum tagDVD_MENU_ID - { DVD_MENU_Title = 2, - DVD_MENU_Root = 3, - DVD_MENU_Subpicture = 4, - DVD_MENU_Audio = 5, - DVD_MENU_Angle = 6, - DVD_MENU_Chapter = 7 - } 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 - { DISPLAY_CONTENT_DEFAULT = 0, - DISPLAY_16x9 = 1, - DISPLAY_4x3_PANSCAN_PREFERRED = 2, - DISPLAY_4x3_LETTERBOX_PREFERRED = 3 - } DVD_PREFERRED_DISPLAY_MODE; - -typedef WORD DVD_REGISTER; - -typedef DVD_REGISTER GPRMARRAY[ 16 ]; - -typedef DVD_REGISTER SPRMARRAY[ 24 ]; - -typedef struct tagDVD_ATR - { - ULONG ulCAT; - BYTE pbATRI[ 768 ]; - } DVD_ATR; - -typedef BYTE DVD_VideoATR[ 2 ]; - -typedef BYTE DVD_AudioATR[ 8 ]; - -typedef BYTE DVD_SubpictureATR[ 6 ]; - -typedef -enum tagDVD_FRAMERATE - { DVD_FPS_25 = 1, - DVD_FPS_30NonDrop = 3 - } DVD_FRAMERATE; - -typedef struct tagDVD_TIMECODE -{ - ULONG Hours1 :4; // Hours - ULONG Hours10 :4; // Tens of Hours - - ULONG Minutes1 :4; // Minutes - ULONG Minutes10:4; // Tens of Minutes - - ULONG Seconds1 :4; // Seconds - ULONG Seconds10:4; // Tens of Seconds - - ULONG Frames1 :4; // Frames - ULONG Frames10 :2; // Tens of Frames - - ULONG FrameRateCode: 2; // use DVD_FRAMERATE to indicate frames/sec and drop/non-drop -} DVD_TIMECODE; -typedef -enum tagDVD_TIMECODE_FLAGS - { DVD_TC_FLAG_25fps = 0x1, - DVD_TC_FLAG_30fps = 0x2, - DVD_TC_FLAG_DropFrame = 0x4, - DVD_TC_FLAG_Interpolated = 0x8 - } DVD_TIMECODE_FLAGS; - -typedef struct tagDVD_HMSF_TIMECODE - { - BYTE bHours; - BYTE bMinutes; - BYTE bSeconds; - BYTE bFrames; - } DVD_HMSF_TIMECODE; - -typedef struct tagDVD_PLAYBACK_LOCATION2 - { - ULONG TitleNum; - ULONG ChapterNum; - DVD_HMSF_TIMECODE TimeCode; - ULONG TimeCodeFlags; - } DVD_PLAYBACK_LOCATION2; - -typedef struct tagDVD_PLAYBACK_LOCATION - { - ULONG TitleNum; - ULONG ChapterNum; - ULONG TimeCode; - } DVD_PLAYBACK_LOCATION; - -typedef DWORD VALID_UOP_SOMTHING_OR_OTHER; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0366_0001 - { UOP_FLAG_Play_Title_Or_AtTime = 0x1, - UOP_FLAG_Play_Chapter = 0x2, - UOP_FLAG_Play_Title = 0x4, - UOP_FLAG_Stop = 0x8, - UOP_FLAG_ReturnFromSubMenu = 0x10, - UOP_FLAG_Play_Chapter_Or_AtTime = 0x20, - UOP_FLAG_PlayPrev_Or_Replay_Chapter = 0x40, - UOP_FLAG_PlayNext_Chapter = 0x80, - UOP_FLAG_Play_Forwards = 0x100, - UOP_FLAG_Play_Backwards = 0x200, - UOP_FLAG_ShowMenu_Title = 0x400, - UOP_FLAG_ShowMenu_Root = 0x800, - UOP_FLAG_ShowMenu_SubPic = 0x1000, - UOP_FLAG_ShowMenu_Audio = 0x2000, - UOP_FLAG_ShowMenu_Angle = 0x4000, - UOP_FLAG_ShowMenu_Chapter = 0x8000, - UOP_FLAG_Resume = 0x10000, - UOP_FLAG_Select_Or_Activate_Button = 0x20000, - UOP_FLAG_Still_Off = 0x40000, - UOP_FLAG_Pause_On = 0x80000, - UOP_FLAG_Select_Audio_Stream = 0x100000, - UOP_FLAG_Select_SubPic_Stream = 0x200000, - UOP_FLAG_Select_Angle = 0x400000, - UOP_FLAG_Select_Karaoke_Audio_Presentation_Mode = 0x800000, - UOP_FLAG_Select_Video_Mode_Preference = 0x1000000 - } VALID_UOP_FLAG; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0366_0002 - { DVD_CMD_FLAG_None = 0, - DVD_CMD_FLAG_Flush = 0x1, - DVD_CMD_FLAG_SendEvents = 0x2, - DVD_CMD_FLAG_Block = 0x4, - DVD_CMD_FLAG_StartWhenRendered = 0x8, - DVD_CMD_FLAG_EndAfterRendered = 0x10 - } DVD_CMD_FLAGS; - -typedef /* [public][public] */ -enum __MIDL___MIDL_itf_strmif_0366_0003 - { DVD_ResetOnStop = 1, - DVD_NotifyParentalLevelChange = 2, - DVD_HMSF_TimeCodeEvents = 3, - DVD_AudioDuringFFwdRew = 4 - } DVD_OPTION_FLAG; - -typedef /* [public][public] */ -enum __MIDL___MIDL_itf_strmif_0366_0004 - { DVD_Relative_Upper = 1, - DVD_Relative_Lower = 2, - DVD_Relative_Left = 3, - DVD_Relative_Right = 4 - } DVD_RELATIVE_BUTTON; - -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 = 0x800, - DVD_PARENTAL_LEVEL_3 = 0x400, - DVD_PARENTAL_LEVEL_2 = 0x200, - DVD_PARENTAL_LEVEL_1 = 0x100 - } 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, - 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, - DVD_AudioFormat_MPEG2 = 3, - DVD_AudioFormat_MPEG2_DRC = 4, - DVD_AudioFormat_LPCM = 5, - DVD_AudioFormat_DTS = 6, - DVD_AudioFormat_SDDS = 7, - DVD_AudioFormat_Other = 8 - } DVD_AUDIO_FORMAT; - -typedef -enum tagDVD_KARAOKE_DOWNMIX - { DVD_Mix_0to0 = 0x1, - DVD_Mix_1to0 = 0x2, - DVD_Mix_2to0 = 0x4, - DVD_Mix_3to0 = 0x8, - DVD_Mix_4to0 = 0x10, - DVD_Mix_Lto0 = 0x20, - DVD_Mix_Rto0 = 0x40, - DVD_Mix_0to1 = 0x100, - DVD_Mix_1to1 = 0x200, - DVD_Mix_2to1 = 0x400, - DVD_Mix_3to1 = 0x800, - DVD_Mix_4to1 = 0x1000, - DVD_Mix_Lto1 = 0x2000, - DVD_Mix_Rto1 = 0x4000 - } DVD_KARAOKE_DOWNMIX; - -typedef struct tagDVD_AudioAttributes - { - DVD_AUDIO_APPMODE AppMode; - BYTE AppModeData; - DVD_AUDIO_FORMAT AudioFormat; - LCID Language; - DVD_AUDIO_LANG_EXT LanguageExtension; - BOOL fHasMultichannelInfo; - DWORD dwFrequency; - BYTE bQuantization; - BYTE bNumberOfChannels; - DWORD dwReserved[ 2 ]; - } DVD_AudioAttributes; - -typedef struct tagDVD_MUA_MixingInfo - { - BOOL fMixTo0; - BOOL fMixTo1; - BOOL fMix0InPhase; - BOOL fMix1InPhase; - DWORD dwSpeakerPosition; - } DVD_MUA_MixingInfo; - -typedef struct tagDVD_MUA_Coeff - { - double log2_alpha; - double log2_beta; - } DVD_MUA_Coeff; - -typedef struct tagDVD_MultichannelAudioAttributes - { - DVD_MUA_MixingInfo Info[ 8 ]; - DVD_MUA_Coeff Coeff[ 8 ]; - } DVD_MultichannelAudioAttributes; - -typedef -enum tagDVD_KARAOKE_CONTENTS - { DVD_Karaoke_GuideVocal1 = 0x1, - DVD_Karaoke_GuideVocal2 = 0x2, - DVD_Karaoke_GuideMelody1 = 0x4, - DVD_Karaoke_GuideMelody2 = 0x8, - DVD_Karaoke_GuideMelodyA = 0x10, - DVD_Karaoke_GuideMelodyB = 0x20, - DVD_Karaoke_SoundEffectA = 0x40, - DVD_Karaoke_SoundEffectB = 0x80 - } DVD_KARAOKE_CONTENTS; - -typedef -enum tagDVD_KARAOKE_ASSIGNMENT - { DVD_Assignment_reserved0 = 0, - DVD_Assignment_reserved1 = 1, - DVD_Assignment_LR = 2, - DVD_Assignment_LRM = 3, - DVD_Assignment_LR1 = 4, - DVD_Assignment_LRM1 = 5, - DVD_Assignment_LR12 = 6, - DVD_Assignment_LRM12 = 7 - } DVD_KARAOKE_ASSIGNMENT; - -typedef struct tagDVD_KaraokeAttributes - { - BYTE bVersion; - BOOL fMasterOfCeremoniesInGuideVocal1; - BOOL fDuet; - DVD_KARAOKE_ASSIGNMENT ChannelAssignment; - WORD wChannelContents[ 8 ]; - } DVD_KaraokeAttributes; - -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; - BOOL fLetterboxPermitted; - ULONG ulAspectX; - ULONG ulAspectY; - ULONG ulFrameRate; - ULONG ulFrameHeight; - DVD_VIDEO_COMPRESSION Compression; - BOOL fLine21Field1InGOP; - BOOL fLine21Field2InGOP; - ULONG ulSourceResolutionX; - ULONG ulSourceResolutionY; - BOOL fIsSourceLetterboxed; - BOOL fIsFilmMode; - } 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, - DVD_AppMode_Karaoke = 1, - DVD_AppMode_Other = 3 - } DVD_TITLE_APPMODE; - -typedef struct tagDVD_TitleMainAttributes - { - DVD_TITLE_APPMODE AppMode; - DVD_VideoAttributes VideoAttributes; - ULONG ulNumberOfAudioStreams; - DVD_AudioAttributes AudioAttributes[ 8 ]; - DVD_MultichannelAudioAttributes MultichannelAudioAttributes[ 8 ]; - ULONG ulNumberOfSubpictureStreams; - DVD_SubpictureAttributes SubpictureAttributes[ 32 ]; - } DVD_TitleAttributes; - -typedef struct tagDVD_MenuAttributes - { - BOOL fCompatibleRegion[ 8 ]; - DVD_VideoAttributes VideoAttributes; - BOOL fAudioPresent; - DVD_AudioAttributes AudioAttributes; - BOOL fSubpicturePresent; - DVD_SubpictureAttributes SubpictureAttributes; - } DVD_MenuAttributes; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0366_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0366_v0_0_s_ifspec; - -#ifndef __IDvdControl_INTERFACE_DEFINED__ -#define __IDvdControl_INTERFACE_DEFINED__ - -/* interface IDvdControl */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IDvdControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("A70EFE61-E2A3-11d0-A9BE-00AA0061BE93") - IDvdControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE TitlePlay( - /* [in] */ ULONG ulTitle) = 0; - - virtual HRESULT STDMETHODCALLTYPE ChapterPlay( - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG ulChapter) = 0; - - virtual HRESULT STDMETHODCALLTYPE TimePlay( - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG bcdTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE StopForResume( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GoUp( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE TimeSearch( - /* [in] */ ULONG bcdTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE ChapterSearch( - /* [in] */ ULONG ulChapter) = 0; - - virtual HRESULT STDMETHODCALLTYPE PrevPGSearch( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE TopPGSearch( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE NextPGSearch( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE ForwardScan( - /* [in] */ double dwSpeed) = 0; - - virtual HRESULT STDMETHODCALLTYPE BackwardScan( - /* [in] */ double dwSpeed) = 0; - - virtual HRESULT STDMETHODCALLTYPE MenuCall( - /* [in] */ DVD_MENU_ID MenuID) = 0; - - virtual HRESULT STDMETHODCALLTYPE Resume( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE UpperButtonSelect( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE LowerButtonSelect( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE LeftButtonSelect( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE RightButtonSelect( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE ButtonActivate( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE ButtonSelectAndActivate( - /* [in] */ ULONG ulButton) = 0; - - virtual HRESULT STDMETHODCALLTYPE StillOff( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE PauseOn( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE PauseOff( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE MenuLanguageSelect( - /* [in] */ LCID Language) = 0; - - virtual HRESULT STDMETHODCALLTYPE AudioStreamChange( - /* [in] */ ULONG ulAudio) = 0; - - virtual HRESULT STDMETHODCALLTYPE SubpictureStreamChange( - /* [in] */ ULONG ulSubPicture, - /* [in] */ BOOL bDisplay) = 0; - - virtual HRESULT STDMETHODCALLTYPE AngleChange( - /* [in] */ ULONG ulAngle) = 0; - - virtual HRESULT STDMETHODCALLTYPE ParentalLevelSelect( - /* [in] */ ULONG ulParentalLevel) = 0; - - virtual HRESULT STDMETHODCALLTYPE ParentalCountrySelect( - /* [in] */ WORD wCountry) = 0; - - virtual HRESULT STDMETHODCALLTYPE KaraokeAudioPresentationModeChange( - /* [in] */ ULONG ulMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE VideoModePreferrence( - /* [in] */ ULONG ulPreferredDisplayMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRoot( - /* [in] */ LPCWSTR pszPath) = 0; - - virtual HRESULT STDMETHODCALLTYPE MouseActivate( - /* [in] */ POINT point) = 0; - - virtual HRESULT STDMETHODCALLTYPE MouseSelect( - /* [in] */ POINT point) = 0; - - virtual HRESULT STDMETHODCALLTYPE ChapterPlayAutoStop( - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG ulChapter, - /* [in] */ ULONG ulChaptersToPlay) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDvdControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDvdControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDvdControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *TitlePlay )( - IDvdControl * This, - /* [in] */ ULONG ulTitle); - - HRESULT ( STDMETHODCALLTYPE *ChapterPlay )( - IDvdControl * This, - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG ulChapter); - - HRESULT ( STDMETHODCALLTYPE *TimePlay )( - IDvdControl * This, - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG bcdTime); - - HRESULT ( STDMETHODCALLTYPE *StopForResume )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *GoUp )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *TimeSearch )( - IDvdControl * This, - /* [in] */ ULONG bcdTime); - - HRESULT ( STDMETHODCALLTYPE *ChapterSearch )( - IDvdControl * This, - /* [in] */ ULONG ulChapter); - - HRESULT ( STDMETHODCALLTYPE *PrevPGSearch )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *TopPGSearch )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *NextPGSearch )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *ForwardScan )( - IDvdControl * This, - /* [in] */ double dwSpeed); - - HRESULT ( STDMETHODCALLTYPE *BackwardScan )( - IDvdControl * This, - /* [in] */ double dwSpeed); - - HRESULT ( STDMETHODCALLTYPE *MenuCall )( - IDvdControl * This, - /* [in] */ DVD_MENU_ID MenuID); - - HRESULT ( STDMETHODCALLTYPE *Resume )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *UpperButtonSelect )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *LowerButtonSelect )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *LeftButtonSelect )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *RightButtonSelect )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *ButtonActivate )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *ButtonSelectAndActivate )( - IDvdControl * This, - /* [in] */ ULONG ulButton); - - HRESULT ( STDMETHODCALLTYPE *StillOff )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *PauseOn )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *PauseOff )( - IDvdControl * This); - - HRESULT ( STDMETHODCALLTYPE *MenuLanguageSelect )( - IDvdControl * This, - /* [in] */ LCID Language); - - HRESULT ( STDMETHODCALLTYPE *AudioStreamChange )( - IDvdControl * This, - /* [in] */ ULONG ulAudio); - - HRESULT ( STDMETHODCALLTYPE *SubpictureStreamChange )( - IDvdControl * This, - /* [in] */ ULONG ulSubPicture, - /* [in] */ BOOL bDisplay); - - HRESULT ( STDMETHODCALLTYPE *AngleChange )( - IDvdControl * This, - /* [in] */ ULONG ulAngle); - - HRESULT ( STDMETHODCALLTYPE *ParentalLevelSelect )( - IDvdControl * This, - /* [in] */ ULONG ulParentalLevel); - - HRESULT ( STDMETHODCALLTYPE *ParentalCountrySelect )( - IDvdControl * This, - /* [in] */ WORD wCountry); - - HRESULT ( STDMETHODCALLTYPE *KaraokeAudioPresentationModeChange )( - IDvdControl * This, - /* [in] */ ULONG ulMode); - - HRESULT ( STDMETHODCALLTYPE *VideoModePreferrence )( - IDvdControl * This, - /* [in] */ ULONG ulPreferredDisplayMode); - - HRESULT ( STDMETHODCALLTYPE *SetRoot )( - IDvdControl * This, - /* [in] */ LPCWSTR pszPath); - - HRESULT ( STDMETHODCALLTYPE *MouseActivate )( - IDvdControl * This, - /* [in] */ POINT point); - - HRESULT ( STDMETHODCALLTYPE *MouseSelect )( - IDvdControl * This, - /* [in] */ POINT point); - - HRESULT ( STDMETHODCALLTYPE *ChapterPlayAutoStop )( - IDvdControl * This, - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG ulChapter, - /* [in] */ ULONG ulChaptersToPlay); - - END_INTERFACE - } IDvdControlVtbl; - - interface IDvdControl - { - CONST_VTBL struct IDvdControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDvdControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDvdControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDvdControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDvdControl_TitlePlay(This,ulTitle) \ - (This)->lpVtbl -> TitlePlay(This,ulTitle) - -#define IDvdControl_ChapterPlay(This,ulTitle,ulChapter) \ - (This)->lpVtbl -> ChapterPlay(This,ulTitle,ulChapter) - -#define IDvdControl_TimePlay(This,ulTitle,bcdTime) \ - (This)->lpVtbl -> TimePlay(This,ulTitle,bcdTime) - -#define IDvdControl_StopForResume(This) \ - (This)->lpVtbl -> StopForResume(This) - -#define IDvdControl_GoUp(This) \ - (This)->lpVtbl -> GoUp(This) - -#define IDvdControl_TimeSearch(This,bcdTime) \ - (This)->lpVtbl -> TimeSearch(This,bcdTime) - -#define IDvdControl_ChapterSearch(This,ulChapter) \ - (This)->lpVtbl -> ChapterSearch(This,ulChapter) - -#define IDvdControl_PrevPGSearch(This) \ - (This)->lpVtbl -> PrevPGSearch(This) - -#define IDvdControl_TopPGSearch(This) \ - (This)->lpVtbl -> TopPGSearch(This) - -#define IDvdControl_NextPGSearch(This) \ - (This)->lpVtbl -> NextPGSearch(This) - -#define IDvdControl_ForwardScan(This,dwSpeed) \ - (This)->lpVtbl -> ForwardScan(This,dwSpeed) - -#define IDvdControl_BackwardScan(This,dwSpeed) \ - (This)->lpVtbl -> BackwardScan(This,dwSpeed) - -#define IDvdControl_MenuCall(This,MenuID) \ - (This)->lpVtbl -> MenuCall(This,MenuID) - -#define IDvdControl_Resume(This) \ - (This)->lpVtbl -> Resume(This) - -#define IDvdControl_UpperButtonSelect(This) \ - (This)->lpVtbl -> UpperButtonSelect(This) - -#define IDvdControl_LowerButtonSelect(This) \ - (This)->lpVtbl -> LowerButtonSelect(This) - -#define IDvdControl_LeftButtonSelect(This) \ - (This)->lpVtbl -> LeftButtonSelect(This) - -#define IDvdControl_RightButtonSelect(This) \ - (This)->lpVtbl -> RightButtonSelect(This) - -#define IDvdControl_ButtonActivate(This) \ - (This)->lpVtbl -> ButtonActivate(This) - -#define IDvdControl_ButtonSelectAndActivate(This,ulButton) \ - (This)->lpVtbl -> ButtonSelectAndActivate(This,ulButton) - -#define IDvdControl_StillOff(This) \ - (This)->lpVtbl -> StillOff(This) - -#define IDvdControl_PauseOn(This) \ - (This)->lpVtbl -> PauseOn(This) - -#define IDvdControl_PauseOff(This) \ - (This)->lpVtbl -> PauseOff(This) - -#define IDvdControl_MenuLanguageSelect(This,Language) \ - (This)->lpVtbl -> MenuLanguageSelect(This,Language) - -#define IDvdControl_AudioStreamChange(This,ulAudio) \ - (This)->lpVtbl -> AudioStreamChange(This,ulAudio) - -#define IDvdControl_SubpictureStreamChange(This,ulSubPicture,bDisplay) \ - (This)->lpVtbl -> SubpictureStreamChange(This,ulSubPicture,bDisplay) - -#define IDvdControl_AngleChange(This,ulAngle) \ - (This)->lpVtbl -> AngleChange(This,ulAngle) - -#define IDvdControl_ParentalLevelSelect(This,ulParentalLevel) \ - (This)->lpVtbl -> ParentalLevelSelect(This,ulParentalLevel) - -#define IDvdControl_ParentalCountrySelect(This,wCountry) \ - (This)->lpVtbl -> ParentalCountrySelect(This,wCountry) - -#define IDvdControl_KaraokeAudioPresentationModeChange(This,ulMode) \ - (This)->lpVtbl -> KaraokeAudioPresentationModeChange(This,ulMode) - -#define IDvdControl_VideoModePreferrence(This,ulPreferredDisplayMode) \ - (This)->lpVtbl -> VideoModePreferrence(This,ulPreferredDisplayMode) - -#define IDvdControl_SetRoot(This,pszPath) \ - (This)->lpVtbl -> SetRoot(This,pszPath) - -#define IDvdControl_MouseActivate(This,point) \ - (This)->lpVtbl -> MouseActivate(This,point) - -#define IDvdControl_MouseSelect(This,point) \ - (This)->lpVtbl -> MouseSelect(This,point) - -#define IDvdControl_ChapterPlayAutoStop(This,ulTitle,ulChapter,ulChaptersToPlay) \ - (This)->lpVtbl -> ChapterPlayAutoStop(This,ulTitle,ulChapter,ulChaptersToPlay) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDvdControl_TitlePlay_Proxy( - IDvdControl * This, - /* [in] */ ULONG ulTitle); - - -void __RPC_STUB IDvdControl_TitlePlay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_ChapterPlay_Proxy( - IDvdControl * This, - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG ulChapter); - - -void __RPC_STUB IDvdControl_ChapterPlay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_TimePlay_Proxy( - IDvdControl * This, - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG bcdTime); - - -void __RPC_STUB IDvdControl_TimePlay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_StopForResume_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_StopForResume_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_GoUp_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_GoUp_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_TimeSearch_Proxy( - IDvdControl * This, - /* [in] */ ULONG bcdTime); - - -void __RPC_STUB IDvdControl_TimeSearch_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_ChapterSearch_Proxy( - IDvdControl * This, - /* [in] */ ULONG ulChapter); - - -void __RPC_STUB IDvdControl_ChapterSearch_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_PrevPGSearch_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_PrevPGSearch_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_TopPGSearch_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_TopPGSearch_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_NextPGSearch_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_NextPGSearch_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_ForwardScan_Proxy( - IDvdControl * This, - /* [in] */ double dwSpeed); - - -void __RPC_STUB IDvdControl_ForwardScan_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_BackwardScan_Proxy( - IDvdControl * This, - /* [in] */ double dwSpeed); - - -void __RPC_STUB IDvdControl_BackwardScan_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_MenuCall_Proxy( - IDvdControl * This, - /* [in] */ DVD_MENU_ID MenuID); - - -void __RPC_STUB IDvdControl_MenuCall_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_Resume_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_Resume_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_UpperButtonSelect_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_UpperButtonSelect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_LowerButtonSelect_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_LowerButtonSelect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_LeftButtonSelect_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_LeftButtonSelect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_RightButtonSelect_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_RightButtonSelect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_ButtonActivate_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_ButtonActivate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_ButtonSelectAndActivate_Proxy( - IDvdControl * This, - /* [in] */ ULONG ulButton); - - -void __RPC_STUB IDvdControl_ButtonSelectAndActivate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_StillOff_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_StillOff_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_PauseOn_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_PauseOn_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_PauseOff_Proxy( - IDvdControl * This); - - -void __RPC_STUB IDvdControl_PauseOff_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_MenuLanguageSelect_Proxy( - IDvdControl * This, - /* [in] */ LCID Language); - - -void __RPC_STUB IDvdControl_MenuLanguageSelect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_AudioStreamChange_Proxy( - IDvdControl * This, - /* [in] */ ULONG ulAudio); - - -void __RPC_STUB IDvdControl_AudioStreamChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_SubpictureStreamChange_Proxy( - IDvdControl * This, - /* [in] */ ULONG ulSubPicture, - /* [in] */ BOOL bDisplay); - - -void __RPC_STUB IDvdControl_SubpictureStreamChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_AngleChange_Proxy( - IDvdControl * This, - /* [in] */ ULONG ulAngle); - - -void __RPC_STUB IDvdControl_AngleChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_ParentalLevelSelect_Proxy( - IDvdControl * This, - /* [in] */ ULONG ulParentalLevel); - - -void __RPC_STUB IDvdControl_ParentalLevelSelect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_ParentalCountrySelect_Proxy( - IDvdControl * This, - /* [in] */ WORD wCountry); - - -void __RPC_STUB IDvdControl_ParentalCountrySelect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_KaraokeAudioPresentationModeChange_Proxy( - IDvdControl * This, - /* [in] */ ULONG ulMode); - - -void __RPC_STUB IDvdControl_KaraokeAudioPresentationModeChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_VideoModePreferrence_Proxy( - IDvdControl * This, - /* [in] */ ULONG ulPreferredDisplayMode); - - -void __RPC_STUB IDvdControl_VideoModePreferrence_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_SetRoot_Proxy( - IDvdControl * This, - /* [in] */ LPCWSTR pszPath); - - -void __RPC_STUB IDvdControl_SetRoot_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_MouseActivate_Proxy( - IDvdControl * This, - /* [in] */ POINT point); - - -void __RPC_STUB IDvdControl_MouseActivate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_MouseSelect_Proxy( - IDvdControl * This, - /* [in] */ POINT point); - - -void __RPC_STUB IDvdControl_MouseSelect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl_ChapterPlayAutoStop_Proxy( - IDvdControl * This, - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG ulChapter, - /* [in] */ ULONG ulChaptersToPlay); - - -void __RPC_STUB IDvdControl_ChapterPlayAutoStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDvdControl_INTERFACE_DEFINED__ */ - - -#ifndef __IDvdInfo_INTERFACE_DEFINED__ -#define __IDvdInfo_INTERFACE_DEFINED__ - -/* interface IDvdInfo */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IDvdInfo; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("A70EFE60-E2A3-11d0-A9BE-00AA0061BE93") - IDvdInfo : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetCurrentDomain( - /* [out] */ DVD_DOMAIN *pDomain) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentLocation( - /* [out] */ DVD_PLAYBACK_LOCATION *pLocation) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTotalTitleTime( - /* [out] */ ULONG *pulTotalTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentButton( - /* [out] */ ULONG *pulButtonsAvailable, - /* [out] */ ULONG *pulCurrentButton) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentAngle( - /* [out] */ ULONG *pulAnglesAvailable, - /* [out] */ ULONG *pulCurrentAngle) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentAudio( - /* [out] */ ULONG *pulStreamsAvailable, - /* [out] */ ULONG *pulCurrentStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentSubpicture( - /* [out] */ ULONG *pulStreamsAvailable, - /* [out] */ ULONG *pulCurrentStream, - /* [out] */ BOOL *pIsDisabled) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentUOPS( - /* [out] */ VALID_UOP_SOMTHING_OR_OTHER *pUOP) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllSPRMs( - /* [out] */ SPRMARRAY *pRegisterArray) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllGPRMs( - /* [out] */ GPRMARRAY *pRegisterArray) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAudioLanguage( - /* [in] */ ULONG ulStream, - /* [out] */ LCID *pLanguage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSubpictureLanguage( - /* [in] */ ULONG ulStream, - /* [out] */ LCID *pLanguage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTitleAttributes( - /* [in] */ ULONG ulTitle, - /* [out] */ DVD_ATR *pATR) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVMGAttributes( - /* [out] */ DVD_ATR *pATR) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentVideoAttributes( - /* [out] */ DVD_VideoATR *pATR) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentAudioAttributes( - /* [out] */ DVD_AudioATR *pATR) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentSubpictureAttributes( - /* [out] */ DVD_SubpictureATR *pATR) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentVolumeInfo( - /* [out] */ ULONG *pulNumOfVol, - /* [out] */ ULONG *pulThisVolNum, - /* [out] */ DVD_DISC_SIDE *pSide, - /* [out] */ ULONG *pulNumOfTitles) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDVDTextInfo( - /* [size_is][out] */ BYTE *pTextManager, - /* [in] */ ULONG ulBufSize, - /* [out] */ ULONG *pulActualSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPlayerParentalLevel( - /* [out] */ ULONG *pulParentalLevel, - /* [out] */ ULONG *pulCountryCode) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNumberOfChapters( - /* [in] */ ULONG ulTitle, - /* [out] */ ULONG *pulNumberOfChapters) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTitleParentalLevels( - /* [in] */ ULONG ulTitle, - /* [out] */ ULONG *pulParentalLevels) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRoot( - /* [size_is][out] */ LPSTR pRoot, - /* [in] */ ULONG ulBufSize, - /* [out] */ ULONG *pulActualSize) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDvdInfoVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDvdInfo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDvdInfo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDvdInfo * This); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentDomain )( - IDvdInfo * This, - /* [out] */ DVD_DOMAIN *pDomain); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentLocation )( - IDvdInfo * This, - /* [out] */ DVD_PLAYBACK_LOCATION *pLocation); - - HRESULT ( STDMETHODCALLTYPE *GetTotalTitleTime )( - IDvdInfo * This, - /* [out] */ ULONG *pulTotalTime); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentButton )( - IDvdInfo * This, - /* [out] */ ULONG *pulButtonsAvailable, - /* [out] */ ULONG *pulCurrentButton); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentAngle )( - IDvdInfo * This, - /* [out] */ ULONG *pulAnglesAvailable, - /* [out] */ ULONG *pulCurrentAngle); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentAudio )( - IDvdInfo * This, - /* [out] */ ULONG *pulStreamsAvailable, - /* [out] */ ULONG *pulCurrentStream); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentSubpicture )( - IDvdInfo * This, - /* [out] */ ULONG *pulStreamsAvailable, - /* [out] */ ULONG *pulCurrentStream, - /* [out] */ BOOL *pIsDisabled); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentUOPS )( - IDvdInfo * This, - /* [out] */ VALID_UOP_SOMTHING_OR_OTHER *pUOP); - - HRESULT ( STDMETHODCALLTYPE *GetAllSPRMs )( - IDvdInfo * This, - /* [out] */ SPRMARRAY *pRegisterArray); - - HRESULT ( STDMETHODCALLTYPE *GetAllGPRMs )( - IDvdInfo * This, - /* [out] */ GPRMARRAY *pRegisterArray); - - HRESULT ( STDMETHODCALLTYPE *GetAudioLanguage )( - IDvdInfo * This, - /* [in] */ ULONG ulStream, - /* [out] */ LCID *pLanguage); - - HRESULT ( STDMETHODCALLTYPE *GetSubpictureLanguage )( - IDvdInfo * This, - /* [in] */ ULONG ulStream, - /* [out] */ LCID *pLanguage); - - HRESULT ( STDMETHODCALLTYPE *GetTitleAttributes )( - IDvdInfo * This, - /* [in] */ ULONG ulTitle, - /* [out] */ DVD_ATR *pATR); - - HRESULT ( STDMETHODCALLTYPE *GetVMGAttributes )( - IDvdInfo * This, - /* [out] */ DVD_ATR *pATR); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentVideoAttributes )( - IDvdInfo * This, - /* [out] */ DVD_VideoATR *pATR); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentAudioAttributes )( - IDvdInfo * This, - /* [out] */ DVD_AudioATR *pATR); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentSubpictureAttributes )( - IDvdInfo * This, - /* [out] */ DVD_SubpictureATR *pATR); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentVolumeInfo )( - IDvdInfo * This, - /* [out] */ ULONG *pulNumOfVol, - /* [out] */ ULONG *pulThisVolNum, - /* [out] */ DVD_DISC_SIDE *pSide, - /* [out] */ ULONG *pulNumOfTitles); - - HRESULT ( STDMETHODCALLTYPE *GetDVDTextInfo )( - IDvdInfo * This, - /* [size_is][out] */ BYTE *pTextManager, - /* [in] */ ULONG ulBufSize, - /* [out] */ ULONG *pulActualSize); - - HRESULT ( STDMETHODCALLTYPE *GetPlayerParentalLevel )( - IDvdInfo * This, - /* [out] */ ULONG *pulParentalLevel, - /* [out] */ ULONG *pulCountryCode); - - HRESULT ( STDMETHODCALLTYPE *GetNumberOfChapters )( - IDvdInfo * This, - /* [in] */ ULONG ulTitle, - /* [out] */ ULONG *pulNumberOfChapters); - - HRESULT ( STDMETHODCALLTYPE *GetTitleParentalLevels )( - IDvdInfo * This, - /* [in] */ ULONG ulTitle, - /* [out] */ ULONG *pulParentalLevels); - - HRESULT ( STDMETHODCALLTYPE *GetRoot )( - IDvdInfo * This, - /* [size_is][out] */ LPSTR pRoot, - /* [in] */ ULONG ulBufSize, - /* [out] */ ULONG *pulActualSize); - - END_INTERFACE - } IDvdInfoVtbl; - - interface IDvdInfo - { - CONST_VTBL struct IDvdInfoVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDvdInfo_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDvdInfo_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDvdInfo_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDvdInfo_GetCurrentDomain(This,pDomain) \ - (This)->lpVtbl -> GetCurrentDomain(This,pDomain) - -#define IDvdInfo_GetCurrentLocation(This,pLocation) \ - (This)->lpVtbl -> GetCurrentLocation(This,pLocation) - -#define IDvdInfo_GetTotalTitleTime(This,pulTotalTime) \ - (This)->lpVtbl -> GetTotalTitleTime(This,pulTotalTime) - -#define IDvdInfo_GetCurrentButton(This,pulButtonsAvailable,pulCurrentButton) \ - (This)->lpVtbl -> GetCurrentButton(This,pulButtonsAvailable,pulCurrentButton) - -#define IDvdInfo_GetCurrentAngle(This,pulAnglesAvailable,pulCurrentAngle) \ - (This)->lpVtbl -> GetCurrentAngle(This,pulAnglesAvailable,pulCurrentAngle) - -#define IDvdInfo_GetCurrentAudio(This,pulStreamsAvailable,pulCurrentStream) \ - (This)->lpVtbl -> GetCurrentAudio(This,pulStreamsAvailable,pulCurrentStream) - -#define IDvdInfo_GetCurrentSubpicture(This,pulStreamsAvailable,pulCurrentStream,pIsDisabled) \ - (This)->lpVtbl -> GetCurrentSubpicture(This,pulStreamsAvailable,pulCurrentStream,pIsDisabled) - -#define IDvdInfo_GetCurrentUOPS(This,pUOP) \ - (This)->lpVtbl -> GetCurrentUOPS(This,pUOP) - -#define IDvdInfo_GetAllSPRMs(This,pRegisterArray) \ - (This)->lpVtbl -> GetAllSPRMs(This,pRegisterArray) - -#define IDvdInfo_GetAllGPRMs(This,pRegisterArray) \ - (This)->lpVtbl -> GetAllGPRMs(This,pRegisterArray) - -#define IDvdInfo_GetAudioLanguage(This,ulStream,pLanguage) \ - (This)->lpVtbl -> GetAudioLanguage(This,ulStream,pLanguage) - -#define IDvdInfo_GetSubpictureLanguage(This,ulStream,pLanguage) \ - (This)->lpVtbl -> GetSubpictureLanguage(This,ulStream,pLanguage) - -#define IDvdInfo_GetTitleAttributes(This,ulTitle,pATR) \ - (This)->lpVtbl -> GetTitleAttributes(This,ulTitle,pATR) - -#define IDvdInfo_GetVMGAttributes(This,pATR) \ - (This)->lpVtbl -> GetVMGAttributes(This,pATR) - -#define IDvdInfo_GetCurrentVideoAttributes(This,pATR) \ - (This)->lpVtbl -> GetCurrentVideoAttributes(This,pATR) - -#define IDvdInfo_GetCurrentAudioAttributes(This,pATR) \ - (This)->lpVtbl -> GetCurrentAudioAttributes(This,pATR) - -#define IDvdInfo_GetCurrentSubpictureAttributes(This,pATR) \ - (This)->lpVtbl -> GetCurrentSubpictureAttributes(This,pATR) - -#define IDvdInfo_GetCurrentVolumeInfo(This,pulNumOfVol,pulThisVolNum,pSide,pulNumOfTitles) \ - (This)->lpVtbl -> GetCurrentVolumeInfo(This,pulNumOfVol,pulThisVolNum,pSide,pulNumOfTitles) - -#define IDvdInfo_GetDVDTextInfo(This,pTextManager,ulBufSize,pulActualSize) \ - (This)->lpVtbl -> GetDVDTextInfo(This,pTextManager,ulBufSize,pulActualSize) - -#define IDvdInfo_GetPlayerParentalLevel(This,pulParentalLevel,pulCountryCode) \ - (This)->lpVtbl -> GetPlayerParentalLevel(This,pulParentalLevel,pulCountryCode) - -#define IDvdInfo_GetNumberOfChapters(This,ulTitle,pulNumberOfChapters) \ - (This)->lpVtbl -> GetNumberOfChapters(This,ulTitle,pulNumberOfChapters) - -#define IDvdInfo_GetTitleParentalLevels(This,ulTitle,pulParentalLevels) \ - (This)->lpVtbl -> GetTitleParentalLevels(This,ulTitle,pulParentalLevels) - -#define IDvdInfo_GetRoot(This,pRoot,ulBufSize,pulActualSize) \ - (This)->lpVtbl -> GetRoot(This,pRoot,ulBufSize,pulActualSize) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetCurrentDomain_Proxy( - IDvdInfo * This, - /* [out] */ DVD_DOMAIN *pDomain); - - -void __RPC_STUB IDvdInfo_GetCurrentDomain_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetCurrentLocation_Proxy( - IDvdInfo * This, - /* [out] */ DVD_PLAYBACK_LOCATION *pLocation); - - -void __RPC_STUB IDvdInfo_GetCurrentLocation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetTotalTitleTime_Proxy( - IDvdInfo * This, - /* [out] */ ULONG *pulTotalTime); - - -void __RPC_STUB IDvdInfo_GetTotalTitleTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetCurrentButton_Proxy( - IDvdInfo * This, - /* [out] */ ULONG *pulButtonsAvailable, - /* [out] */ ULONG *pulCurrentButton); - - -void __RPC_STUB IDvdInfo_GetCurrentButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetCurrentAngle_Proxy( - IDvdInfo * This, - /* [out] */ ULONG *pulAnglesAvailable, - /* [out] */ ULONG *pulCurrentAngle); - - -void __RPC_STUB IDvdInfo_GetCurrentAngle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetCurrentAudio_Proxy( - IDvdInfo * This, - /* [out] */ ULONG *pulStreamsAvailable, - /* [out] */ ULONG *pulCurrentStream); - - -void __RPC_STUB IDvdInfo_GetCurrentAudio_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetCurrentSubpicture_Proxy( - IDvdInfo * This, - /* [out] */ ULONG *pulStreamsAvailable, - /* [out] */ ULONG *pulCurrentStream, - /* [out] */ BOOL *pIsDisabled); - - -void __RPC_STUB IDvdInfo_GetCurrentSubpicture_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetCurrentUOPS_Proxy( - IDvdInfo * This, - /* [out] */ VALID_UOP_SOMTHING_OR_OTHER *pUOP); - - -void __RPC_STUB IDvdInfo_GetCurrentUOPS_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetAllSPRMs_Proxy( - IDvdInfo * This, - /* [out] */ SPRMARRAY *pRegisterArray); - - -void __RPC_STUB IDvdInfo_GetAllSPRMs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetAllGPRMs_Proxy( - IDvdInfo * This, - /* [out] */ GPRMARRAY *pRegisterArray); - - -void __RPC_STUB IDvdInfo_GetAllGPRMs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetAudioLanguage_Proxy( - IDvdInfo * This, - /* [in] */ ULONG ulStream, - /* [out] */ LCID *pLanguage); - - -void __RPC_STUB IDvdInfo_GetAudioLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetSubpictureLanguage_Proxy( - IDvdInfo * This, - /* [in] */ ULONG ulStream, - /* [out] */ LCID *pLanguage); - - -void __RPC_STUB IDvdInfo_GetSubpictureLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetTitleAttributes_Proxy( - IDvdInfo * This, - /* [in] */ ULONG ulTitle, - /* [out] */ DVD_ATR *pATR); - - -void __RPC_STUB IDvdInfo_GetTitleAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetVMGAttributes_Proxy( - IDvdInfo * This, - /* [out] */ DVD_ATR *pATR); - - -void __RPC_STUB IDvdInfo_GetVMGAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetCurrentVideoAttributes_Proxy( - IDvdInfo * This, - /* [out] */ DVD_VideoATR *pATR); - - -void __RPC_STUB IDvdInfo_GetCurrentVideoAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetCurrentAudioAttributes_Proxy( - IDvdInfo * This, - /* [out] */ DVD_AudioATR *pATR); - - -void __RPC_STUB IDvdInfo_GetCurrentAudioAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetCurrentSubpictureAttributes_Proxy( - IDvdInfo * This, - /* [out] */ DVD_SubpictureATR *pATR); - - -void __RPC_STUB IDvdInfo_GetCurrentSubpictureAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetCurrentVolumeInfo_Proxy( - IDvdInfo * This, - /* [out] */ ULONG *pulNumOfVol, - /* [out] */ ULONG *pulThisVolNum, - /* [out] */ DVD_DISC_SIDE *pSide, - /* [out] */ ULONG *pulNumOfTitles); - - -void __RPC_STUB IDvdInfo_GetCurrentVolumeInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetDVDTextInfo_Proxy( - IDvdInfo * This, - /* [size_is][out] */ BYTE *pTextManager, - /* [in] */ ULONG ulBufSize, - /* [out] */ ULONG *pulActualSize); - - -void __RPC_STUB IDvdInfo_GetDVDTextInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetPlayerParentalLevel_Proxy( - IDvdInfo * This, - /* [out] */ ULONG *pulParentalLevel, - /* [out] */ ULONG *pulCountryCode); - - -void __RPC_STUB IDvdInfo_GetPlayerParentalLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetNumberOfChapters_Proxy( - IDvdInfo * This, - /* [in] */ ULONG ulTitle, - /* [out] */ ULONG *pulNumberOfChapters); - - -void __RPC_STUB IDvdInfo_GetNumberOfChapters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetTitleParentalLevels_Proxy( - IDvdInfo * This, - /* [in] */ ULONG ulTitle, - /* [out] */ ULONG *pulParentalLevels); - - -void __RPC_STUB IDvdInfo_GetTitleParentalLevels_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo_GetRoot_Proxy( - IDvdInfo * This, - /* [size_is][out] */ LPSTR pRoot, - /* [in] */ ULONG ulBufSize, - /* [out] */ ULONG *pulActualSize); - - -void __RPC_STUB IDvdInfo_GetRoot_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDvdInfo_INTERFACE_DEFINED__ */ - - -#ifndef __IDvdCmd_INTERFACE_DEFINED__ -#define __IDvdCmd_INTERFACE_DEFINED__ - -/* interface IDvdCmd */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IDvdCmd; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("5a4a97e4-94ee-4a55-9751-74b5643aa27d") - IDvdCmd : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE WaitForStart( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE WaitForEnd( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDvdCmdVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDvdCmd * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDvdCmd * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDvdCmd * This); - - HRESULT ( STDMETHODCALLTYPE *WaitForStart )( - IDvdCmd * This); - - HRESULT ( STDMETHODCALLTYPE *WaitForEnd )( - IDvdCmd * This); - - END_INTERFACE - } IDvdCmdVtbl; - - interface IDvdCmd - { - CONST_VTBL struct IDvdCmdVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDvdCmd_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDvdCmd_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDvdCmd_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDvdCmd_WaitForStart(This) \ - (This)->lpVtbl -> WaitForStart(This) - -#define IDvdCmd_WaitForEnd(This) \ - (This)->lpVtbl -> WaitForEnd(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDvdCmd_WaitForStart_Proxy( - IDvdCmd * This); - - -void __RPC_STUB IDvdCmd_WaitForStart_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdCmd_WaitForEnd_Proxy( - IDvdCmd * This); - - -void __RPC_STUB IDvdCmd_WaitForEnd_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDvdCmd_INTERFACE_DEFINED__ */ - - -#ifndef __IDvdState_INTERFACE_DEFINED__ -#define __IDvdState_INTERFACE_DEFINED__ - -/* interface IDvdState */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IDvdState; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("86303d6d-1c4a-4087-ab42-f711167048ef") - IDvdState : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetDiscID( - /* [out] */ ULONGLONG *pullUniqueID) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetParentalLevel( - /* [out] */ ULONG *pulParentalLevel) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDvdStateVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDvdState * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDvdState * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDvdState * This); - - HRESULT ( STDMETHODCALLTYPE *GetDiscID )( - IDvdState * This, - /* [out] */ ULONGLONG *pullUniqueID); - - HRESULT ( STDMETHODCALLTYPE *GetParentalLevel )( - IDvdState * This, - /* [out] */ ULONG *pulParentalLevel); - - END_INTERFACE - } IDvdStateVtbl; - - interface IDvdState - { - CONST_VTBL struct IDvdStateVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDvdState_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDvdState_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDvdState_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDvdState_GetDiscID(This,pullUniqueID) \ - (This)->lpVtbl -> GetDiscID(This,pullUniqueID) - -#define IDvdState_GetParentalLevel(This,pulParentalLevel) \ - (This)->lpVtbl -> GetParentalLevel(This,pulParentalLevel) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDvdState_GetDiscID_Proxy( - IDvdState * This, - /* [out] */ ULONGLONG *pullUniqueID); - - -void __RPC_STUB IDvdState_GetDiscID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdState_GetParentalLevel_Proxy( - IDvdState * This, - /* [out] */ ULONG *pulParentalLevel); - - -void __RPC_STUB IDvdState_GetParentalLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDvdState_INTERFACE_DEFINED__ */ - - -#ifndef __IDvdControl2_INTERFACE_DEFINED__ -#define __IDvdControl2_INTERFACE_DEFINED__ - -/* interface IDvdControl2 */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IDvdControl2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("33BC7430-EEC0-11D2-8201-00A0C9D74842") - IDvdControl2 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE PlayTitle( - /* [in] */ ULONG ulTitle, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE PlayChapterInTitle( - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG ulChapter, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE PlayAtTimeInTitle( - /* [in] */ ULONG ulTitle, - /* [in] */ DVD_HMSF_TIMECODE *pStartTime, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE Stop( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReturnFromSubmenu( - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE PlayAtTime( - /* [in] */ DVD_HMSF_TIMECODE *pTime, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE PlayChapter( - /* [in] */ ULONG ulChapter, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE PlayPrevChapter( - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReplayChapter( - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE PlayNextChapter( - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE PlayForwards( - /* [in] */ double dSpeed, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE PlayBackwards( - /* [in] */ double dSpeed, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE ShowMenu( - /* [in] */ DVD_MENU_ID MenuID, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE Resume( - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectRelativeButton( - DVD_RELATIVE_BUTTON buttonDir) = 0; - - virtual HRESULT STDMETHODCALLTYPE ActivateButton( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectButton( - /* [in] */ ULONG ulButton) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectAndActivateButton( - /* [in] */ ULONG ulButton) = 0; - - virtual HRESULT STDMETHODCALLTYPE StillOff( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Pause( - /* [in] */ BOOL bState) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectAudioStream( - /* [in] */ ULONG ulAudio, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectSubpictureStream( - /* [in] */ ULONG ulSubPicture, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSubpictureState( - /* [in] */ BOOL bState, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectAngle( - /* [in] */ ULONG ulAngle, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectParentalLevel( - /* [in] */ ULONG ulParentalLevel) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectParentalCountry( - /* [in] */ BYTE bCountry[ 2 ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectKaraokeAudioPresentationMode( - /* [in] */ ULONG ulMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectVideoModePreference( - /* [in] */ ULONG ulPreferredDisplayMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDVDDirectory( - /* [in] */ LPCWSTR pszwPath) = 0; - - virtual HRESULT STDMETHODCALLTYPE ActivateAtPosition( - /* [in] */ POINT point) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectAtPosition( - /* [in] */ POINT point) = 0; - - virtual HRESULT STDMETHODCALLTYPE PlayChaptersAutoStop( - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG ulChapter, - /* [in] */ ULONG ulChaptersToPlay, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE AcceptParentalLevelChange( - /* [in] */ BOOL bAccept) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOption( - /* [in] */ DVD_OPTION_FLAG flag, - /* [in] */ BOOL fState) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetState( - /* [in] */ IDvdState *pState, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE PlayPeriodInTitleAutoStop( - /* [in] */ ULONG ulTitle, - /* [in] */ DVD_HMSF_TIMECODE *pStartTime, - /* [in] */ DVD_HMSF_TIMECODE *pEndTime, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetGPRM( - /* [in] */ ULONG ulIndex, - /* [in] */ WORD wValue, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectDefaultMenuLanguage( - /* [in] */ LCID Language) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectDefaultAudioLanguage( - /* [in] */ LCID Language, - /* [in] */ DVD_AUDIO_LANG_EXT audioExtension) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectDefaultSubpictureLanguage( - /* [in] */ LCID Language, - /* [in] */ DVD_SUBPICTURE_LANG_EXT subpictureExtension) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDvdControl2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDvdControl2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDvdControl2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDvdControl2 * This); - - HRESULT ( STDMETHODCALLTYPE *PlayTitle )( - IDvdControl2 * This, - /* [in] */ ULONG ulTitle, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *PlayChapterInTitle )( - IDvdControl2 * This, - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG ulChapter, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *PlayAtTimeInTitle )( - IDvdControl2 * This, - /* [in] */ ULONG ulTitle, - /* [in] */ DVD_HMSF_TIMECODE *pStartTime, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *Stop )( - IDvdControl2 * This); - - HRESULT ( STDMETHODCALLTYPE *ReturnFromSubmenu )( - IDvdControl2 * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *PlayAtTime )( - IDvdControl2 * This, - /* [in] */ DVD_HMSF_TIMECODE *pTime, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *PlayChapter )( - IDvdControl2 * This, - /* [in] */ ULONG ulChapter, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *PlayPrevChapter )( - IDvdControl2 * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *ReplayChapter )( - IDvdControl2 * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *PlayNextChapter )( - IDvdControl2 * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *PlayForwards )( - IDvdControl2 * This, - /* [in] */ double dSpeed, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *PlayBackwards )( - IDvdControl2 * This, - /* [in] */ double dSpeed, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *ShowMenu )( - IDvdControl2 * This, - /* [in] */ DVD_MENU_ID MenuID, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *Resume )( - IDvdControl2 * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *SelectRelativeButton )( - IDvdControl2 * This, - DVD_RELATIVE_BUTTON buttonDir); - - HRESULT ( STDMETHODCALLTYPE *ActivateButton )( - IDvdControl2 * This); - - HRESULT ( STDMETHODCALLTYPE *SelectButton )( - IDvdControl2 * This, - /* [in] */ ULONG ulButton); - - HRESULT ( STDMETHODCALLTYPE *SelectAndActivateButton )( - IDvdControl2 * This, - /* [in] */ ULONG ulButton); - - HRESULT ( STDMETHODCALLTYPE *StillOff )( - IDvdControl2 * This); - - HRESULT ( STDMETHODCALLTYPE *Pause )( - IDvdControl2 * This, - /* [in] */ BOOL bState); - - HRESULT ( STDMETHODCALLTYPE *SelectAudioStream )( - IDvdControl2 * This, - /* [in] */ ULONG ulAudio, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *SelectSubpictureStream )( - IDvdControl2 * This, - /* [in] */ ULONG ulSubPicture, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *SetSubpictureState )( - IDvdControl2 * This, - /* [in] */ BOOL bState, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *SelectAngle )( - IDvdControl2 * This, - /* [in] */ ULONG ulAngle, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *SelectParentalLevel )( - IDvdControl2 * This, - /* [in] */ ULONG ulParentalLevel); - - HRESULT ( STDMETHODCALLTYPE *SelectParentalCountry )( - IDvdControl2 * This, - /* [in] */ BYTE bCountry[ 2 ]); - - HRESULT ( STDMETHODCALLTYPE *SelectKaraokeAudioPresentationMode )( - IDvdControl2 * This, - /* [in] */ ULONG ulMode); - - HRESULT ( STDMETHODCALLTYPE *SelectVideoModePreference )( - IDvdControl2 * This, - /* [in] */ ULONG ulPreferredDisplayMode); - - HRESULT ( STDMETHODCALLTYPE *SetDVDDirectory )( - IDvdControl2 * This, - /* [in] */ LPCWSTR pszwPath); - - HRESULT ( STDMETHODCALLTYPE *ActivateAtPosition )( - IDvdControl2 * This, - /* [in] */ POINT point); - - HRESULT ( STDMETHODCALLTYPE *SelectAtPosition )( - IDvdControl2 * This, - /* [in] */ POINT point); - - HRESULT ( STDMETHODCALLTYPE *PlayChaptersAutoStop )( - IDvdControl2 * This, - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG ulChapter, - /* [in] */ ULONG ulChaptersToPlay, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *AcceptParentalLevelChange )( - IDvdControl2 * This, - /* [in] */ BOOL bAccept); - - HRESULT ( STDMETHODCALLTYPE *SetOption )( - IDvdControl2 * This, - /* [in] */ DVD_OPTION_FLAG flag, - /* [in] */ BOOL fState); - - HRESULT ( STDMETHODCALLTYPE *SetState )( - IDvdControl2 * This, - /* [in] */ IDvdState *pState, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *PlayPeriodInTitleAutoStop )( - IDvdControl2 * This, - /* [in] */ ULONG ulTitle, - /* [in] */ DVD_HMSF_TIMECODE *pStartTime, - /* [in] */ DVD_HMSF_TIMECODE *pEndTime, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *SetGPRM )( - IDvdControl2 * This, - /* [in] */ ULONG ulIndex, - /* [in] */ WORD wValue, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - HRESULT ( STDMETHODCALLTYPE *SelectDefaultMenuLanguage )( - IDvdControl2 * This, - /* [in] */ LCID Language); - - HRESULT ( STDMETHODCALLTYPE *SelectDefaultAudioLanguage )( - IDvdControl2 * This, - /* [in] */ LCID Language, - /* [in] */ DVD_AUDIO_LANG_EXT audioExtension); - - HRESULT ( STDMETHODCALLTYPE *SelectDefaultSubpictureLanguage )( - IDvdControl2 * This, - /* [in] */ LCID Language, - /* [in] */ DVD_SUBPICTURE_LANG_EXT subpictureExtension); - - END_INTERFACE - } IDvdControl2Vtbl; - - interface IDvdControl2 - { - CONST_VTBL struct IDvdControl2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDvdControl2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDvdControl2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDvdControl2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDvdControl2_PlayTitle(This,ulTitle,dwFlags,ppCmd) \ - (This)->lpVtbl -> PlayTitle(This,ulTitle,dwFlags,ppCmd) - -#define IDvdControl2_PlayChapterInTitle(This,ulTitle,ulChapter,dwFlags,ppCmd) \ - (This)->lpVtbl -> PlayChapterInTitle(This,ulTitle,ulChapter,dwFlags,ppCmd) - -#define IDvdControl2_PlayAtTimeInTitle(This,ulTitle,pStartTime,dwFlags,ppCmd) \ - (This)->lpVtbl -> PlayAtTimeInTitle(This,ulTitle,pStartTime,dwFlags,ppCmd) - -#define IDvdControl2_Stop(This) \ - (This)->lpVtbl -> Stop(This) - -#define IDvdControl2_ReturnFromSubmenu(This,dwFlags,ppCmd) \ - (This)->lpVtbl -> ReturnFromSubmenu(This,dwFlags,ppCmd) - -#define IDvdControl2_PlayAtTime(This,pTime,dwFlags,ppCmd) \ - (This)->lpVtbl -> PlayAtTime(This,pTime,dwFlags,ppCmd) - -#define IDvdControl2_PlayChapter(This,ulChapter,dwFlags,ppCmd) \ - (This)->lpVtbl -> PlayChapter(This,ulChapter,dwFlags,ppCmd) - -#define IDvdControl2_PlayPrevChapter(This,dwFlags,ppCmd) \ - (This)->lpVtbl -> PlayPrevChapter(This,dwFlags,ppCmd) - -#define IDvdControl2_ReplayChapter(This,dwFlags,ppCmd) \ - (This)->lpVtbl -> ReplayChapter(This,dwFlags,ppCmd) - -#define IDvdControl2_PlayNextChapter(This,dwFlags,ppCmd) \ - (This)->lpVtbl -> PlayNextChapter(This,dwFlags,ppCmd) - -#define IDvdControl2_PlayForwards(This,dSpeed,dwFlags,ppCmd) \ - (This)->lpVtbl -> PlayForwards(This,dSpeed,dwFlags,ppCmd) - -#define IDvdControl2_PlayBackwards(This,dSpeed,dwFlags,ppCmd) \ - (This)->lpVtbl -> PlayBackwards(This,dSpeed,dwFlags,ppCmd) - -#define IDvdControl2_ShowMenu(This,MenuID,dwFlags,ppCmd) \ - (This)->lpVtbl -> ShowMenu(This,MenuID,dwFlags,ppCmd) - -#define IDvdControl2_Resume(This,dwFlags,ppCmd) \ - (This)->lpVtbl -> Resume(This,dwFlags,ppCmd) - -#define IDvdControl2_SelectRelativeButton(This,buttonDir) \ - (This)->lpVtbl -> SelectRelativeButton(This,buttonDir) - -#define IDvdControl2_ActivateButton(This) \ - (This)->lpVtbl -> ActivateButton(This) - -#define IDvdControl2_SelectButton(This,ulButton) \ - (This)->lpVtbl -> SelectButton(This,ulButton) - -#define IDvdControl2_SelectAndActivateButton(This,ulButton) \ - (This)->lpVtbl -> SelectAndActivateButton(This,ulButton) - -#define IDvdControl2_StillOff(This) \ - (This)->lpVtbl -> StillOff(This) - -#define IDvdControl2_Pause(This,bState) \ - (This)->lpVtbl -> Pause(This,bState) - -#define IDvdControl2_SelectAudioStream(This,ulAudio,dwFlags,ppCmd) \ - (This)->lpVtbl -> SelectAudioStream(This,ulAudio,dwFlags,ppCmd) - -#define IDvdControl2_SelectSubpictureStream(This,ulSubPicture,dwFlags,ppCmd) \ - (This)->lpVtbl -> SelectSubpictureStream(This,ulSubPicture,dwFlags,ppCmd) - -#define IDvdControl2_SetSubpictureState(This,bState,dwFlags,ppCmd) \ - (This)->lpVtbl -> SetSubpictureState(This,bState,dwFlags,ppCmd) - -#define IDvdControl2_SelectAngle(This,ulAngle,dwFlags,ppCmd) \ - (This)->lpVtbl -> SelectAngle(This,ulAngle,dwFlags,ppCmd) - -#define IDvdControl2_SelectParentalLevel(This,ulParentalLevel) \ - (This)->lpVtbl -> SelectParentalLevel(This,ulParentalLevel) - -#define IDvdControl2_SelectParentalCountry(This,bCountry) \ - (This)->lpVtbl -> SelectParentalCountry(This,bCountry) - -#define IDvdControl2_SelectKaraokeAudioPresentationMode(This,ulMode) \ - (This)->lpVtbl -> SelectKaraokeAudioPresentationMode(This,ulMode) - -#define IDvdControl2_SelectVideoModePreference(This,ulPreferredDisplayMode) \ - (This)->lpVtbl -> SelectVideoModePreference(This,ulPreferredDisplayMode) - -#define IDvdControl2_SetDVDDirectory(This,pszwPath) \ - (This)->lpVtbl -> SetDVDDirectory(This,pszwPath) - -#define IDvdControl2_ActivateAtPosition(This,point) \ - (This)->lpVtbl -> ActivateAtPosition(This,point) - -#define IDvdControl2_SelectAtPosition(This,point) \ - (This)->lpVtbl -> SelectAtPosition(This,point) - -#define IDvdControl2_PlayChaptersAutoStop(This,ulTitle,ulChapter,ulChaptersToPlay,dwFlags,ppCmd) \ - (This)->lpVtbl -> PlayChaptersAutoStop(This,ulTitle,ulChapter,ulChaptersToPlay,dwFlags,ppCmd) - -#define IDvdControl2_AcceptParentalLevelChange(This,bAccept) \ - (This)->lpVtbl -> AcceptParentalLevelChange(This,bAccept) - -#define IDvdControl2_SetOption(This,flag,fState) \ - (This)->lpVtbl -> SetOption(This,flag,fState) - -#define IDvdControl2_SetState(This,pState,dwFlags,ppCmd) \ - (This)->lpVtbl -> SetState(This,pState,dwFlags,ppCmd) - -#define IDvdControl2_PlayPeriodInTitleAutoStop(This,ulTitle,pStartTime,pEndTime,dwFlags,ppCmd) \ - (This)->lpVtbl -> PlayPeriodInTitleAutoStop(This,ulTitle,pStartTime,pEndTime,dwFlags,ppCmd) - -#define IDvdControl2_SetGPRM(This,ulIndex,wValue,dwFlags,ppCmd) \ - (This)->lpVtbl -> SetGPRM(This,ulIndex,wValue,dwFlags,ppCmd) - -#define IDvdControl2_SelectDefaultMenuLanguage(This,Language) \ - (This)->lpVtbl -> SelectDefaultMenuLanguage(This,Language) - -#define IDvdControl2_SelectDefaultAudioLanguage(This,Language,audioExtension) \ - (This)->lpVtbl -> SelectDefaultAudioLanguage(This,Language,audioExtension) - -#define IDvdControl2_SelectDefaultSubpictureLanguage(This,Language,subpictureExtension) \ - (This)->lpVtbl -> SelectDefaultSubpictureLanguage(This,Language,subpictureExtension) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDvdControl2_PlayTitle_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulTitle, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_PlayTitle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_PlayChapterInTitle_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG ulChapter, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_PlayChapterInTitle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_PlayAtTimeInTitle_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulTitle, - /* [in] */ DVD_HMSF_TIMECODE *pStartTime, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_PlayAtTimeInTitle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_Stop_Proxy( - IDvdControl2 * This); - - -void __RPC_STUB IDvdControl2_Stop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_ReturnFromSubmenu_Proxy( - IDvdControl2 * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_ReturnFromSubmenu_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_PlayAtTime_Proxy( - IDvdControl2 * This, - /* [in] */ DVD_HMSF_TIMECODE *pTime, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_PlayAtTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_PlayChapter_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulChapter, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_PlayChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_PlayPrevChapter_Proxy( - IDvdControl2 * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_PlayPrevChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_ReplayChapter_Proxy( - IDvdControl2 * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_ReplayChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_PlayNextChapter_Proxy( - IDvdControl2 * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_PlayNextChapter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_PlayForwards_Proxy( - IDvdControl2 * This, - /* [in] */ double dSpeed, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_PlayForwards_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_PlayBackwards_Proxy( - IDvdControl2 * This, - /* [in] */ double dSpeed, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_PlayBackwards_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_ShowMenu_Proxy( - IDvdControl2 * This, - /* [in] */ DVD_MENU_ID MenuID, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_ShowMenu_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_Resume_Proxy( - IDvdControl2 * This, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_Resume_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectRelativeButton_Proxy( - IDvdControl2 * This, - DVD_RELATIVE_BUTTON buttonDir); - - -void __RPC_STUB IDvdControl2_SelectRelativeButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_ActivateButton_Proxy( - IDvdControl2 * This); - - -void __RPC_STUB IDvdControl2_ActivateButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectButton_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulButton); - - -void __RPC_STUB IDvdControl2_SelectButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectAndActivateButton_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulButton); - - -void __RPC_STUB IDvdControl2_SelectAndActivateButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_StillOff_Proxy( - IDvdControl2 * This); - - -void __RPC_STUB IDvdControl2_StillOff_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_Pause_Proxy( - IDvdControl2 * This, - /* [in] */ BOOL bState); - - -void __RPC_STUB IDvdControl2_Pause_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectAudioStream_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulAudio, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_SelectAudioStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectSubpictureStream_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulSubPicture, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_SelectSubpictureStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SetSubpictureState_Proxy( - IDvdControl2 * This, - /* [in] */ BOOL bState, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_SetSubpictureState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectAngle_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulAngle, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_SelectAngle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectParentalLevel_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulParentalLevel); - - -void __RPC_STUB IDvdControl2_SelectParentalLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectParentalCountry_Proxy( - IDvdControl2 * This, - /* [in] */ BYTE bCountry[ 2 ]); - - -void __RPC_STUB IDvdControl2_SelectParentalCountry_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectKaraokeAudioPresentationMode_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulMode); - - -void __RPC_STUB IDvdControl2_SelectKaraokeAudioPresentationMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectVideoModePreference_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulPreferredDisplayMode); - - -void __RPC_STUB IDvdControl2_SelectVideoModePreference_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SetDVDDirectory_Proxy( - IDvdControl2 * This, - /* [in] */ LPCWSTR pszwPath); - - -void __RPC_STUB IDvdControl2_SetDVDDirectory_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_ActivateAtPosition_Proxy( - IDvdControl2 * This, - /* [in] */ POINT point); - - -void __RPC_STUB IDvdControl2_ActivateAtPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectAtPosition_Proxy( - IDvdControl2 * This, - /* [in] */ POINT point); - - -void __RPC_STUB IDvdControl2_SelectAtPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_PlayChaptersAutoStop_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulTitle, - /* [in] */ ULONG ulChapter, - /* [in] */ ULONG ulChaptersToPlay, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_PlayChaptersAutoStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_AcceptParentalLevelChange_Proxy( - IDvdControl2 * This, - /* [in] */ BOOL bAccept); - - -void __RPC_STUB IDvdControl2_AcceptParentalLevelChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SetOption_Proxy( - IDvdControl2 * This, - /* [in] */ DVD_OPTION_FLAG flag, - /* [in] */ BOOL fState); - - -void __RPC_STUB IDvdControl2_SetOption_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SetState_Proxy( - IDvdControl2 * This, - /* [in] */ IDvdState *pState, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_SetState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_PlayPeriodInTitleAutoStop_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulTitle, - /* [in] */ DVD_HMSF_TIMECODE *pStartTime, - /* [in] */ DVD_HMSF_TIMECODE *pEndTime, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_PlayPeriodInTitleAutoStop_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SetGPRM_Proxy( - IDvdControl2 * This, - /* [in] */ ULONG ulIndex, - /* [in] */ WORD wValue, - /* [in] */ DWORD dwFlags, - /* [out] */ IDvdCmd **ppCmd); - - -void __RPC_STUB IDvdControl2_SetGPRM_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectDefaultMenuLanguage_Proxy( - IDvdControl2 * This, - /* [in] */ LCID Language); - - -void __RPC_STUB IDvdControl2_SelectDefaultMenuLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectDefaultAudioLanguage_Proxy( - IDvdControl2 * This, - /* [in] */ LCID Language, - /* [in] */ DVD_AUDIO_LANG_EXT audioExtension); - - -void __RPC_STUB IDvdControl2_SelectDefaultAudioLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdControl2_SelectDefaultSubpictureLanguage_Proxy( - IDvdControl2 * This, - /* [in] */ LCID Language, - /* [in] */ DVD_SUBPICTURE_LANG_EXT subpictureExtension); - - -void __RPC_STUB IDvdControl2_SelectDefaultSubpictureLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDvdControl2_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0377 */ -/* [local] */ - - -enum DVD_TextStringType - { DVD_Struct_Volume = 0x1, - DVD_Struct_Title = 0x2, - DVD_Struct_ParentalID = 0x3, - DVD_Struct_PartOfTitle = 0x4, - DVD_Struct_Cell = 0x5, - DVD_Stream_Audio = 0x10, - DVD_Stream_Subpicture = 0x11, - DVD_Stream_Angle = 0x12, - DVD_Channel_Audio = 0x20, - DVD_General_Name = 0x30, - DVD_General_Comments = 0x31, - DVD_Title_Series = 0x38, - DVD_Title_Movie = 0x39, - DVD_Title_Video = 0x3a, - DVD_Title_Album = 0x3b, - DVD_Title_Song = 0x3c, - DVD_Title_Other = 0x3f, - 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, - 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, - DVD_Other_Scene = 0x50, - DVD_Other_Cut = 0x51, - DVD_Other_Take = 0x52 - } ; - -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 - } ; -#define DVD_TITLE_MENU 0x000 -#define DVD_STREAM_DATA_CURRENT 0x800 -#define DVD_STREAM_DATA_VMGM 0x400 -#define DVD_STREAM_DATA_VTSM 0x401 -#define DVD_DEFAULT_AUDIO_STREAM 0x0f -typedef struct tagDVD_DECODER_CAPS - { - DWORD dwSize; - DWORD dwAudioCaps; - double dFwdMaxRateVideo; - double dFwdMaxRateAudio; - double dFwdMaxRateSP; - double dBwdMaxRateVideo; - double dBwdMaxRateAudio; - double dBwdMaxRateSP; - DWORD dwRes1; - DWORD dwRes2; - DWORD dwRes3; - DWORD dwRes4; - } DVD_DECODER_CAPS; - -#define DVD_AUDIO_CAPS_AC3 0x00000001 -#define DVD_AUDIO_CAPS_MPEG2 0x00000002 -#define DVD_AUDIO_CAPS_LPCM 0x00000004 -#define DVD_AUDIO_CAPS_DTS 0x00000008 -#define DVD_AUDIO_CAPS_SDDS 0x00000010 - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0377_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0377_v0_0_s_ifspec; - -#ifndef __IDvdInfo2_INTERFACE_DEFINED__ -#define __IDvdInfo2_INTERFACE_DEFINED__ - -/* interface IDvdInfo2 */ -/* [unique][uuid][object] */ - - -EXTERN_C const IID IID_IDvdInfo2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("34151510-EEC0-11D2-8201-00A0C9D74842") - IDvdInfo2 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetCurrentDomain( - /* [out] */ DVD_DOMAIN *pDomain) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentLocation( - /* [out] */ DVD_PLAYBACK_LOCATION2 *pLocation) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTotalTitleTime( - /* [out] */ DVD_HMSF_TIMECODE *pTotalTime, - /* [out] */ ULONG *ulTimeCodeFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentButton( - /* [out] */ ULONG *pulButtonsAvailable, - /* [out] */ ULONG *pulCurrentButton) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentAngle( - /* [out] */ ULONG *pulAnglesAvailable, - /* [out] */ ULONG *pulCurrentAngle) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentAudio( - /* [out] */ ULONG *pulStreamsAvailable, - /* [out] */ ULONG *pulCurrentStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentSubpicture( - /* [out] */ ULONG *pulStreamsAvailable, - /* [out] */ ULONG *pulCurrentStream, - /* [out] */ BOOL *pbIsDisabled) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentUOPS( - /* [out] */ ULONG *pulUOPs) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllSPRMs( - /* [out] */ SPRMARRAY *pRegisterArray) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllGPRMs( - /* [out] */ GPRMARRAY *pRegisterArray) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAudioLanguage( - /* [in] */ ULONG ulStream, - /* [out] */ LCID *pLanguage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSubpictureLanguage( - /* [in] */ ULONG ulStream, - /* [out] */ LCID *pLanguage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTitleAttributes( - /* [in] */ ULONG ulTitle, - /* [out] */ DVD_MenuAttributes *pMenu, - /* [out] */ DVD_TitleAttributes *pTitle) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVMGAttributes( - /* [out] */ DVD_MenuAttributes *pATR) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentVideoAttributes( - /* [out] */ DVD_VideoAttributes *pATR) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAudioAttributes( - /* [in] */ ULONG ulStream, - /* [out] */ DVD_AudioAttributes *pATR) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetKaraokeAttributes( - /* [in] */ ULONG ulStream, - /* [out] */ DVD_KaraokeAttributes *pAttributes) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSubpictureAttributes( - /* [in] */ ULONG ulStream, - /* [out] */ DVD_SubpictureAttributes *pATR) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDVDVolumeInfo( - /* [out] */ ULONG *pulNumOfVolumes, - /* [out] */ ULONG *pulVolume, - /* [out] */ DVD_DISC_SIDE *pSide, - /* [out] */ ULONG *pulNumOfTitles) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDVDTextNumberOfLanguages( - /* [out] */ ULONG *pulNumOfLangs) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDVDTextLanguageInfo( - /* [in] */ ULONG ulLangIndex, - /* [out] */ ULONG *pulNumOfStrings, - /* [out] */ LCID *pLangCode, - /* [out] */ enum DVD_TextCharSet *pbCharacterSet) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDVDTextStringAsNative( - /* [in] */ ULONG ulLangIndex, - /* [in] */ ULONG ulStringIndex, - /* [out] */ BYTE *pbBuffer, - /* [in] */ ULONG ulMaxBufferSize, - /* [out] */ ULONG *pulActualSize, - /* [out] */ enum DVD_TextStringType *pType) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDVDTextStringAsUnicode( - /* [in] */ ULONG ulLangIndex, - /* [in] */ ULONG ulStringIndex, - /* [out] */ WCHAR *pchwBuffer, - /* [in] */ ULONG ulMaxBufferSize, - /* [out] */ ULONG *pulActualSize, - /* [out] */ enum DVD_TextStringType *pType) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPlayerParentalLevel( - /* [out] */ ULONG *pulParentalLevel, - /* [out] */ BYTE pbCountryCode[ 2 ]) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNumberOfChapters( - /* [in] */ ULONG ulTitle, - /* [out] */ ULONG *pulNumOfChapters) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTitleParentalLevels( - /* [in] */ ULONG ulTitle, - /* [out] */ ULONG *pulParentalLevels) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDVDDirectory( - /* [size_is][out] */ LPWSTR pszwPath, - /* [in] */ ULONG ulMaxSize, - /* [out] */ ULONG *pulActualSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsAudioStreamEnabled( - /* [in] */ ULONG ulStreamNum, - /* [out] */ BOOL *pbEnabled) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDiscID( - /* [in] */ LPCWSTR pszwPath, - /* [out] */ ULONGLONG *pullDiscID) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetState( - /* [out] */ IDvdState **pStateData) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMenuLanguages( - /* [out] */ LCID *pLanguages, - /* [in] */ ULONG ulMaxLanguages, - /* [out] */ ULONG *pulActualLanguages) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetButtonAtPosition( - /* [in] */ POINT point, - /* [out] */ ULONG *pulButtonIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCmdFromEvent( - /* [in] */ LONG_PTR lParam1, - /* [out] */ IDvdCmd **pCmdObj) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultMenuLanguage( - /* [out] */ LCID *pLanguage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultAudioLanguage( - /* [out] */ LCID *pLanguage, - /* [out] */ DVD_AUDIO_LANG_EXT *pAudioExtension) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultSubpictureLanguage( - /* [out] */ LCID *pLanguage, - /* [out] */ DVD_SUBPICTURE_LANG_EXT *pSubpictureExtension) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDecoderCaps( - /* [out] */ DVD_DECODER_CAPS *pCaps) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetButtonRect( - /* [in] */ ULONG ulButton, - /* [out] */ RECT *pRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsSubpictureStreamEnabled( - /* [in] */ ULONG ulStreamNum, - /* [out] */ BOOL *pbEnabled) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDvdInfo2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDvdInfo2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDvdInfo2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDvdInfo2 * This); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentDomain )( - IDvdInfo2 * This, - /* [out] */ DVD_DOMAIN *pDomain); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentLocation )( - IDvdInfo2 * This, - /* [out] */ DVD_PLAYBACK_LOCATION2 *pLocation); - - HRESULT ( STDMETHODCALLTYPE *GetTotalTitleTime )( - IDvdInfo2 * This, - /* [out] */ DVD_HMSF_TIMECODE *pTotalTime, - /* [out] */ ULONG *ulTimeCodeFlags); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentButton )( - IDvdInfo2 * This, - /* [out] */ ULONG *pulButtonsAvailable, - /* [out] */ ULONG *pulCurrentButton); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentAngle )( - IDvdInfo2 * This, - /* [out] */ ULONG *pulAnglesAvailable, - /* [out] */ ULONG *pulCurrentAngle); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentAudio )( - IDvdInfo2 * This, - /* [out] */ ULONG *pulStreamsAvailable, - /* [out] */ ULONG *pulCurrentStream); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentSubpicture )( - IDvdInfo2 * This, - /* [out] */ ULONG *pulStreamsAvailable, - /* [out] */ ULONG *pulCurrentStream, - /* [out] */ BOOL *pbIsDisabled); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentUOPS )( - IDvdInfo2 * This, - /* [out] */ ULONG *pulUOPs); - - HRESULT ( STDMETHODCALLTYPE *GetAllSPRMs )( - IDvdInfo2 * This, - /* [out] */ SPRMARRAY *pRegisterArray); - - HRESULT ( STDMETHODCALLTYPE *GetAllGPRMs )( - IDvdInfo2 * This, - /* [out] */ GPRMARRAY *pRegisterArray); - - HRESULT ( STDMETHODCALLTYPE *GetAudioLanguage )( - IDvdInfo2 * This, - /* [in] */ ULONG ulStream, - /* [out] */ LCID *pLanguage); - - HRESULT ( STDMETHODCALLTYPE *GetSubpictureLanguage )( - IDvdInfo2 * This, - /* [in] */ ULONG ulStream, - /* [out] */ LCID *pLanguage); - - HRESULT ( STDMETHODCALLTYPE *GetTitleAttributes )( - IDvdInfo2 * This, - /* [in] */ ULONG ulTitle, - /* [out] */ DVD_MenuAttributes *pMenu, - /* [out] */ DVD_TitleAttributes *pTitle); - - HRESULT ( STDMETHODCALLTYPE *GetVMGAttributes )( - IDvdInfo2 * This, - /* [out] */ DVD_MenuAttributes *pATR); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentVideoAttributes )( - IDvdInfo2 * This, - /* [out] */ DVD_VideoAttributes *pATR); - - HRESULT ( STDMETHODCALLTYPE *GetAudioAttributes )( - IDvdInfo2 * This, - /* [in] */ ULONG ulStream, - /* [out] */ DVD_AudioAttributes *pATR); - - HRESULT ( STDMETHODCALLTYPE *GetKaraokeAttributes )( - IDvdInfo2 * This, - /* [in] */ ULONG ulStream, - /* [out] */ DVD_KaraokeAttributes *pAttributes); - - HRESULT ( STDMETHODCALLTYPE *GetSubpictureAttributes )( - IDvdInfo2 * This, - /* [in] */ ULONG ulStream, - /* [out] */ DVD_SubpictureAttributes *pATR); - - HRESULT ( STDMETHODCALLTYPE *GetDVDVolumeInfo )( - IDvdInfo2 * This, - /* [out] */ ULONG *pulNumOfVolumes, - /* [out] */ ULONG *pulVolume, - /* [out] */ DVD_DISC_SIDE *pSide, - /* [out] */ ULONG *pulNumOfTitles); - - HRESULT ( STDMETHODCALLTYPE *GetDVDTextNumberOfLanguages )( - IDvdInfo2 * This, - /* [out] */ ULONG *pulNumOfLangs); - - HRESULT ( STDMETHODCALLTYPE *GetDVDTextLanguageInfo )( - IDvdInfo2 * This, - /* [in] */ ULONG ulLangIndex, - /* [out] */ ULONG *pulNumOfStrings, - /* [out] */ LCID *pLangCode, - /* [out] */ enum DVD_TextCharSet *pbCharacterSet); - - HRESULT ( STDMETHODCALLTYPE *GetDVDTextStringAsNative )( - IDvdInfo2 * This, - /* [in] */ ULONG ulLangIndex, - /* [in] */ ULONG ulStringIndex, - /* [out] */ BYTE *pbBuffer, - /* [in] */ ULONG ulMaxBufferSize, - /* [out] */ ULONG *pulActualSize, - /* [out] */ enum DVD_TextStringType *pType); - - HRESULT ( STDMETHODCALLTYPE *GetDVDTextStringAsUnicode )( - IDvdInfo2 * This, - /* [in] */ ULONG ulLangIndex, - /* [in] */ ULONG ulStringIndex, - /* [out] */ WCHAR *pchwBuffer, - /* [in] */ ULONG ulMaxBufferSize, - /* [out] */ ULONG *pulActualSize, - /* [out] */ enum DVD_TextStringType *pType); - - HRESULT ( STDMETHODCALLTYPE *GetPlayerParentalLevel )( - IDvdInfo2 * This, - /* [out] */ ULONG *pulParentalLevel, - /* [out] */ BYTE pbCountryCode[ 2 ]); - - HRESULT ( STDMETHODCALLTYPE *GetNumberOfChapters )( - IDvdInfo2 * This, - /* [in] */ ULONG ulTitle, - /* [out] */ ULONG *pulNumOfChapters); - - HRESULT ( STDMETHODCALLTYPE *GetTitleParentalLevels )( - IDvdInfo2 * This, - /* [in] */ ULONG ulTitle, - /* [out] */ ULONG *pulParentalLevels); - - HRESULT ( STDMETHODCALLTYPE *GetDVDDirectory )( - IDvdInfo2 * This, - /* [size_is][out] */ LPWSTR pszwPath, - /* [in] */ ULONG ulMaxSize, - /* [out] */ ULONG *pulActualSize); - - HRESULT ( STDMETHODCALLTYPE *IsAudioStreamEnabled )( - IDvdInfo2 * This, - /* [in] */ ULONG ulStreamNum, - /* [out] */ BOOL *pbEnabled); - - HRESULT ( STDMETHODCALLTYPE *GetDiscID )( - IDvdInfo2 * This, - /* [in] */ LPCWSTR pszwPath, - /* [out] */ ULONGLONG *pullDiscID); - - HRESULT ( STDMETHODCALLTYPE *GetState )( - IDvdInfo2 * This, - /* [out] */ IDvdState **pStateData); - - HRESULT ( STDMETHODCALLTYPE *GetMenuLanguages )( - IDvdInfo2 * This, - /* [out] */ LCID *pLanguages, - /* [in] */ ULONG ulMaxLanguages, - /* [out] */ ULONG *pulActualLanguages); - - HRESULT ( STDMETHODCALLTYPE *GetButtonAtPosition )( - IDvdInfo2 * This, - /* [in] */ POINT point, - /* [out] */ ULONG *pulButtonIndex); - - HRESULT ( STDMETHODCALLTYPE *GetCmdFromEvent )( - IDvdInfo2 * This, - /* [in] */ LONG_PTR lParam1, - /* [out] */ IDvdCmd **pCmdObj); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultMenuLanguage )( - IDvdInfo2 * This, - /* [out] */ LCID *pLanguage); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultAudioLanguage )( - IDvdInfo2 * This, - /* [out] */ LCID *pLanguage, - /* [out] */ DVD_AUDIO_LANG_EXT *pAudioExtension); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultSubpictureLanguage )( - IDvdInfo2 * This, - /* [out] */ LCID *pLanguage, - /* [out] */ DVD_SUBPICTURE_LANG_EXT *pSubpictureExtension); - - HRESULT ( STDMETHODCALLTYPE *GetDecoderCaps )( - IDvdInfo2 * This, - /* [out] */ DVD_DECODER_CAPS *pCaps); - - HRESULT ( STDMETHODCALLTYPE *GetButtonRect )( - IDvdInfo2 * This, - /* [in] */ ULONG ulButton, - /* [out] */ RECT *pRect); - - HRESULT ( STDMETHODCALLTYPE *IsSubpictureStreamEnabled )( - IDvdInfo2 * This, - /* [in] */ ULONG ulStreamNum, - /* [out] */ BOOL *pbEnabled); - - END_INTERFACE - } IDvdInfo2Vtbl; - - interface IDvdInfo2 - { - CONST_VTBL struct IDvdInfo2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDvdInfo2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDvdInfo2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDvdInfo2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDvdInfo2_GetCurrentDomain(This,pDomain) \ - (This)->lpVtbl -> GetCurrentDomain(This,pDomain) - -#define IDvdInfo2_GetCurrentLocation(This,pLocation) \ - (This)->lpVtbl -> GetCurrentLocation(This,pLocation) - -#define IDvdInfo2_GetTotalTitleTime(This,pTotalTime,ulTimeCodeFlags) \ - (This)->lpVtbl -> GetTotalTitleTime(This,pTotalTime,ulTimeCodeFlags) - -#define IDvdInfo2_GetCurrentButton(This,pulButtonsAvailable,pulCurrentButton) \ - (This)->lpVtbl -> GetCurrentButton(This,pulButtonsAvailable,pulCurrentButton) - -#define IDvdInfo2_GetCurrentAngle(This,pulAnglesAvailable,pulCurrentAngle) \ - (This)->lpVtbl -> GetCurrentAngle(This,pulAnglesAvailable,pulCurrentAngle) - -#define IDvdInfo2_GetCurrentAudio(This,pulStreamsAvailable,pulCurrentStream) \ - (This)->lpVtbl -> GetCurrentAudio(This,pulStreamsAvailable,pulCurrentStream) - -#define IDvdInfo2_GetCurrentSubpicture(This,pulStreamsAvailable,pulCurrentStream,pbIsDisabled) \ - (This)->lpVtbl -> GetCurrentSubpicture(This,pulStreamsAvailable,pulCurrentStream,pbIsDisabled) - -#define IDvdInfo2_GetCurrentUOPS(This,pulUOPs) \ - (This)->lpVtbl -> GetCurrentUOPS(This,pulUOPs) - -#define IDvdInfo2_GetAllSPRMs(This,pRegisterArray) \ - (This)->lpVtbl -> GetAllSPRMs(This,pRegisterArray) - -#define IDvdInfo2_GetAllGPRMs(This,pRegisterArray) \ - (This)->lpVtbl -> GetAllGPRMs(This,pRegisterArray) - -#define IDvdInfo2_GetAudioLanguage(This,ulStream,pLanguage) \ - (This)->lpVtbl -> GetAudioLanguage(This,ulStream,pLanguage) - -#define IDvdInfo2_GetSubpictureLanguage(This,ulStream,pLanguage) \ - (This)->lpVtbl -> GetSubpictureLanguage(This,ulStream,pLanguage) - -#define IDvdInfo2_GetTitleAttributes(This,ulTitle,pMenu,pTitle) \ - (This)->lpVtbl -> GetTitleAttributes(This,ulTitle,pMenu,pTitle) - -#define IDvdInfo2_GetVMGAttributes(This,pATR) \ - (This)->lpVtbl -> GetVMGAttributes(This,pATR) - -#define IDvdInfo2_GetCurrentVideoAttributes(This,pATR) \ - (This)->lpVtbl -> GetCurrentVideoAttributes(This,pATR) - -#define IDvdInfo2_GetAudioAttributes(This,ulStream,pATR) \ - (This)->lpVtbl -> GetAudioAttributes(This,ulStream,pATR) - -#define IDvdInfo2_GetKaraokeAttributes(This,ulStream,pAttributes) \ - (This)->lpVtbl -> GetKaraokeAttributes(This,ulStream,pAttributes) - -#define IDvdInfo2_GetSubpictureAttributes(This,ulStream,pATR) \ - (This)->lpVtbl -> GetSubpictureAttributes(This,ulStream,pATR) - -#define IDvdInfo2_GetDVDVolumeInfo(This,pulNumOfVolumes,pulVolume,pSide,pulNumOfTitles) \ - (This)->lpVtbl -> GetDVDVolumeInfo(This,pulNumOfVolumes,pulVolume,pSide,pulNumOfTitles) - -#define IDvdInfo2_GetDVDTextNumberOfLanguages(This,pulNumOfLangs) \ - (This)->lpVtbl -> GetDVDTextNumberOfLanguages(This,pulNumOfLangs) - -#define IDvdInfo2_GetDVDTextLanguageInfo(This,ulLangIndex,pulNumOfStrings,pLangCode,pbCharacterSet) \ - (This)->lpVtbl -> GetDVDTextLanguageInfo(This,ulLangIndex,pulNumOfStrings,pLangCode,pbCharacterSet) - -#define IDvdInfo2_GetDVDTextStringAsNative(This,ulLangIndex,ulStringIndex,pbBuffer,ulMaxBufferSize,pulActualSize,pType) \ - (This)->lpVtbl -> GetDVDTextStringAsNative(This,ulLangIndex,ulStringIndex,pbBuffer,ulMaxBufferSize,pulActualSize,pType) - -#define IDvdInfo2_GetDVDTextStringAsUnicode(This,ulLangIndex,ulStringIndex,pchwBuffer,ulMaxBufferSize,pulActualSize,pType) \ - (This)->lpVtbl -> GetDVDTextStringAsUnicode(This,ulLangIndex,ulStringIndex,pchwBuffer,ulMaxBufferSize,pulActualSize,pType) - -#define IDvdInfo2_GetPlayerParentalLevel(This,pulParentalLevel,pbCountryCode) \ - (This)->lpVtbl -> GetPlayerParentalLevel(This,pulParentalLevel,pbCountryCode) - -#define IDvdInfo2_GetNumberOfChapters(This,ulTitle,pulNumOfChapters) \ - (This)->lpVtbl -> GetNumberOfChapters(This,ulTitle,pulNumOfChapters) - -#define IDvdInfo2_GetTitleParentalLevels(This,ulTitle,pulParentalLevels) \ - (This)->lpVtbl -> GetTitleParentalLevels(This,ulTitle,pulParentalLevels) - -#define IDvdInfo2_GetDVDDirectory(This,pszwPath,ulMaxSize,pulActualSize) \ - (This)->lpVtbl -> GetDVDDirectory(This,pszwPath,ulMaxSize,pulActualSize) - -#define IDvdInfo2_IsAudioStreamEnabled(This,ulStreamNum,pbEnabled) \ - (This)->lpVtbl -> IsAudioStreamEnabled(This,ulStreamNum,pbEnabled) - -#define IDvdInfo2_GetDiscID(This,pszwPath,pullDiscID) \ - (This)->lpVtbl -> GetDiscID(This,pszwPath,pullDiscID) - -#define IDvdInfo2_GetState(This,pStateData) \ - (This)->lpVtbl -> GetState(This,pStateData) - -#define IDvdInfo2_GetMenuLanguages(This,pLanguages,ulMaxLanguages,pulActualLanguages) \ - (This)->lpVtbl -> GetMenuLanguages(This,pLanguages,ulMaxLanguages,pulActualLanguages) - -#define IDvdInfo2_GetButtonAtPosition(This,point,pulButtonIndex) \ - (This)->lpVtbl -> GetButtonAtPosition(This,point,pulButtonIndex) - -#define IDvdInfo2_GetCmdFromEvent(This,lParam1,pCmdObj) \ - (This)->lpVtbl -> GetCmdFromEvent(This,lParam1,pCmdObj) - -#define IDvdInfo2_GetDefaultMenuLanguage(This,pLanguage) \ - (This)->lpVtbl -> GetDefaultMenuLanguage(This,pLanguage) - -#define IDvdInfo2_GetDefaultAudioLanguage(This,pLanguage,pAudioExtension) \ - (This)->lpVtbl -> GetDefaultAudioLanguage(This,pLanguage,pAudioExtension) - -#define IDvdInfo2_GetDefaultSubpictureLanguage(This,pLanguage,pSubpictureExtension) \ - (This)->lpVtbl -> GetDefaultSubpictureLanguage(This,pLanguage,pSubpictureExtension) - -#define IDvdInfo2_GetDecoderCaps(This,pCaps) \ - (This)->lpVtbl -> GetDecoderCaps(This,pCaps) - -#define IDvdInfo2_GetButtonRect(This,ulButton,pRect) \ - (This)->lpVtbl -> GetButtonRect(This,ulButton,pRect) - -#define IDvdInfo2_IsSubpictureStreamEnabled(This,ulStreamNum,pbEnabled) \ - (This)->lpVtbl -> IsSubpictureStreamEnabled(This,ulStreamNum,pbEnabled) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetCurrentDomain_Proxy( - IDvdInfo2 * This, - /* [out] */ DVD_DOMAIN *pDomain); - - -void __RPC_STUB IDvdInfo2_GetCurrentDomain_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetCurrentLocation_Proxy( - IDvdInfo2 * This, - /* [out] */ DVD_PLAYBACK_LOCATION2 *pLocation); - - -void __RPC_STUB IDvdInfo2_GetCurrentLocation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetTotalTitleTime_Proxy( - IDvdInfo2 * This, - /* [out] */ DVD_HMSF_TIMECODE *pTotalTime, - /* [out] */ ULONG *ulTimeCodeFlags); - - -void __RPC_STUB IDvdInfo2_GetTotalTitleTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetCurrentButton_Proxy( - IDvdInfo2 * This, - /* [out] */ ULONG *pulButtonsAvailable, - /* [out] */ ULONG *pulCurrentButton); - - -void __RPC_STUB IDvdInfo2_GetCurrentButton_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetCurrentAngle_Proxy( - IDvdInfo2 * This, - /* [out] */ ULONG *pulAnglesAvailable, - /* [out] */ ULONG *pulCurrentAngle); - - -void __RPC_STUB IDvdInfo2_GetCurrentAngle_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetCurrentAudio_Proxy( - IDvdInfo2 * This, - /* [out] */ ULONG *pulStreamsAvailable, - /* [out] */ ULONG *pulCurrentStream); - - -void __RPC_STUB IDvdInfo2_GetCurrentAudio_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetCurrentSubpicture_Proxy( - IDvdInfo2 * This, - /* [out] */ ULONG *pulStreamsAvailable, - /* [out] */ ULONG *pulCurrentStream, - /* [out] */ BOOL *pbIsDisabled); - - -void __RPC_STUB IDvdInfo2_GetCurrentSubpicture_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetCurrentUOPS_Proxy( - IDvdInfo2 * This, - /* [out] */ ULONG *pulUOPs); - - -void __RPC_STUB IDvdInfo2_GetCurrentUOPS_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetAllSPRMs_Proxy( - IDvdInfo2 * This, - /* [out] */ SPRMARRAY *pRegisterArray); - - -void __RPC_STUB IDvdInfo2_GetAllSPRMs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetAllGPRMs_Proxy( - IDvdInfo2 * This, - /* [out] */ GPRMARRAY *pRegisterArray); - - -void __RPC_STUB IDvdInfo2_GetAllGPRMs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetAudioLanguage_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulStream, - /* [out] */ LCID *pLanguage); - - -void __RPC_STUB IDvdInfo2_GetAudioLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetSubpictureLanguage_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulStream, - /* [out] */ LCID *pLanguage); - - -void __RPC_STUB IDvdInfo2_GetSubpictureLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetTitleAttributes_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulTitle, - /* [out] */ DVD_MenuAttributes *pMenu, - /* [out] */ DVD_TitleAttributes *pTitle); - - -void __RPC_STUB IDvdInfo2_GetTitleAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetVMGAttributes_Proxy( - IDvdInfo2 * This, - /* [out] */ DVD_MenuAttributes *pATR); - - -void __RPC_STUB IDvdInfo2_GetVMGAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetCurrentVideoAttributes_Proxy( - IDvdInfo2 * This, - /* [out] */ DVD_VideoAttributes *pATR); - - -void __RPC_STUB IDvdInfo2_GetCurrentVideoAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetAudioAttributes_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulStream, - /* [out] */ DVD_AudioAttributes *pATR); - - -void __RPC_STUB IDvdInfo2_GetAudioAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetKaraokeAttributes_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulStream, - /* [out] */ DVD_KaraokeAttributes *pAttributes); - - -void __RPC_STUB IDvdInfo2_GetKaraokeAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetSubpictureAttributes_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulStream, - /* [out] */ DVD_SubpictureAttributes *pATR); - - -void __RPC_STUB IDvdInfo2_GetSubpictureAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetDVDVolumeInfo_Proxy( - IDvdInfo2 * This, - /* [out] */ ULONG *pulNumOfVolumes, - /* [out] */ ULONG *pulVolume, - /* [out] */ DVD_DISC_SIDE *pSide, - /* [out] */ ULONG *pulNumOfTitles); - - -void __RPC_STUB IDvdInfo2_GetDVDVolumeInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetDVDTextNumberOfLanguages_Proxy( - IDvdInfo2 * This, - /* [out] */ ULONG *pulNumOfLangs); - - -void __RPC_STUB IDvdInfo2_GetDVDTextNumberOfLanguages_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetDVDTextLanguageInfo_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulLangIndex, - /* [out] */ ULONG *pulNumOfStrings, - /* [out] */ LCID *pLangCode, - /* [out] */ enum DVD_TextCharSet *pbCharacterSet); - - -void __RPC_STUB IDvdInfo2_GetDVDTextLanguageInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetDVDTextStringAsNative_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulLangIndex, - /* [in] */ ULONG ulStringIndex, - /* [out] */ BYTE *pbBuffer, - /* [in] */ ULONG ulMaxBufferSize, - /* [out] */ ULONG *pulActualSize, - /* [out] */ enum DVD_TextStringType *pType); - - -void __RPC_STUB IDvdInfo2_GetDVDTextStringAsNative_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetDVDTextStringAsUnicode_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulLangIndex, - /* [in] */ ULONG ulStringIndex, - /* [out] */ WCHAR *pchwBuffer, - /* [in] */ ULONG ulMaxBufferSize, - /* [out] */ ULONG *pulActualSize, - /* [out] */ enum DVD_TextStringType *pType); - - -void __RPC_STUB IDvdInfo2_GetDVDTextStringAsUnicode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetPlayerParentalLevel_Proxy( - IDvdInfo2 * This, - /* [out] */ ULONG *pulParentalLevel, - /* [out] */ BYTE pbCountryCode[ 2 ]); - - -void __RPC_STUB IDvdInfo2_GetPlayerParentalLevel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetNumberOfChapters_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulTitle, - /* [out] */ ULONG *pulNumOfChapters); - - -void __RPC_STUB IDvdInfo2_GetNumberOfChapters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetTitleParentalLevels_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulTitle, - /* [out] */ ULONG *pulParentalLevels); - - -void __RPC_STUB IDvdInfo2_GetTitleParentalLevels_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetDVDDirectory_Proxy( - IDvdInfo2 * This, - /* [size_is][out] */ LPWSTR pszwPath, - /* [in] */ ULONG ulMaxSize, - /* [out] */ ULONG *pulActualSize); - - -void __RPC_STUB IDvdInfo2_GetDVDDirectory_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_IsAudioStreamEnabled_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulStreamNum, - /* [out] */ BOOL *pbEnabled); - - -void __RPC_STUB IDvdInfo2_IsAudioStreamEnabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetDiscID_Proxy( - IDvdInfo2 * This, - /* [in] */ LPCWSTR pszwPath, - /* [out] */ ULONGLONG *pullDiscID); - - -void __RPC_STUB IDvdInfo2_GetDiscID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetState_Proxy( - IDvdInfo2 * This, - /* [out] */ IDvdState **pStateData); - - -void __RPC_STUB IDvdInfo2_GetState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetMenuLanguages_Proxy( - IDvdInfo2 * This, - /* [out] */ LCID *pLanguages, - /* [in] */ ULONG ulMaxLanguages, - /* [out] */ ULONG *pulActualLanguages); - - -void __RPC_STUB IDvdInfo2_GetMenuLanguages_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetButtonAtPosition_Proxy( - IDvdInfo2 * This, - /* [in] */ POINT point, - /* [out] */ ULONG *pulButtonIndex); - - -void __RPC_STUB IDvdInfo2_GetButtonAtPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetCmdFromEvent_Proxy( - IDvdInfo2 * This, - /* [in] */ LONG_PTR lParam1, - /* [out] */ IDvdCmd **pCmdObj); - - -void __RPC_STUB IDvdInfo2_GetCmdFromEvent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetDefaultMenuLanguage_Proxy( - IDvdInfo2 * This, - /* [out] */ LCID *pLanguage); - - -void __RPC_STUB IDvdInfo2_GetDefaultMenuLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetDefaultAudioLanguage_Proxy( - IDvdInfo2 * This, - /* [out] */ LCID *pLanguage, - /* [out] */ DVD_AUDIO_LANG_EXT *pAudioExtension); - - -void __RPC_STUB IDvdInfo2_GetDefaultAudioLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetDefaultSubpictureLanguage_Proxy( - IDvdInfo2 * This, - /* [out] */ LCID *pLanguage, - /* [out] */ DVD_SUBPICTURE_LANG_EXT *pSubpictureExtension); - - -void __RPC_STUB IDvdInfo2_GetDefaultSubpictureLanguage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetDecoderCaps_Proxy( - IDvdInfo2 * This, - /* [out] */ DVD_DECODER_CAPS *pCaps); - - -void __RPC_STUB IDvdInfo2_GetDecoderCaps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_GetButtonRect_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulButton, - /* [out] */ RECT *pRect); - - -void __RPC_STUB IDvdInfo2_GetButtonRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdInfo2_IsSubpictureStreamEnabled_Proxy( - IDvdInfo2 * This, - /* [in] */ ULONG ulStreamNum, - /* [out] */ BOOL *pbEnabled); - - -void __RPC_STUB IDvdInfo2_IsSubpictureStreamEnabled_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDvdInfo2_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0379 */ -/* [local] */ - -typedef -enum _AM_DVD_GRAPH_FLAGS - { AM_DVD_HWDEC_PREFER = 0x1, - AM_DVD_HWDEC_ONLY = 0x2, - AM_DVD_SWDEC_PREFER = 0x4, - AM_DVD_SWDEC_ONLY = 0x8, - AM_DVD_NOVPE = 0x100, - AM_DVD_VMR9_ONLY = 0x800 - } AM_DVD_GRAPH_FLAGS; - -typedef -enum _AM_DVD_STREAM_FLAGS - { AM_DVD_STREAM_VIDEO = 0x1, - AM_DVD_STREAM_AUDIO = 0x2, - AM_DVD_STREAM_SUBPIC = 0x4 - } AM_DVD_STREAM_FLAGS; - -typedef /* [public][public] */ struct __MIDL___MIDL_itf_strmif_0379_0001 - { - HRESULT hrVPEStatus; - BOOL bDvdVolInvalid; - BOOL bDvdVolUnknown; - BOOL bNoLine21In; - BOOL bNoLine21Out; - int iNumStreams; - int iNumStreamsFailed; - DWORD dwFailedStreamsFlag; - } AM_DVD_RENDERSTATUS; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0379_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0379_v0_0_s_ifspec; - -#ifndef __IDvdGraphBuilder_INTERFACE_DEFINED__ -#define __IDvdGraphBuilder_INTERFACE_DEFINED__ - -/* interface IDvdGraphBuilder */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IDvdGraphBuilder; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("FCC152B6-F372-11d0-8E00-00C04FD7C08B") - IDvdGraphBuilder : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetFiltergraph( - /* [out] */ IGraphBuilder **ppGB) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDvdInterface( - /* [in] */ REFIID riid, - /* [out] */ void **ppvIF) = 0; - - virtual HRESULT STDMETHODCALLTYPE RenderDvdVideoVolume( - /* [in] */ LPCWSTR lpcwszPathName, - /* [in] */ DWORD dwFlags, - /* [out] */ AM_DVD_RENDERSTATUS *pStatus) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDvdGraphBuilderVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDvdGraphBuilder * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDvdGraphBuilder * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDvdGraphBuilder * This); - - HRESULT ( STDMETHODCALLTYPE *GetFiltergraph )( - IDvdGraphBuilder * This, - /* [out] */ IGraphBuilder **ppGB); - - HRESULT ( STDMETHODCALLTYPE *GetDvdInterface )( - IDvdGraphBuilder * This, - /* [in] */ REFIID riid, - /* [out] */ void **ppvIF); - - HRESULT ( STDMETHODCALLTYPE *RenderDvdVideoVolume )( - IDvdGraphBuilder * This, - /* [in] */ LPCWSTR lpcwszPathName, - /* [in] */ DWORD dwFlags, - /* [out] */ AM_DVD_RENDERSTATUS *pStatus); - - END_INTERFACE - } IDvdGraphBuilderVtbl; - - interface IDvdGraphBuilder - { - CONST_VTBL struct IDvdGraphBuilderVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDvdGraphBuilder_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDvdGraphBuilder_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDvdGraphBuilder_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDvdGraphBuilder_GetFiltergraph(This,ppGB) \ - (This)->lpVtbl -> GetFiltergraph(This,ppGB) - -#define IDvdGraphBuilder_GetDvdInterface(This,riid,ppvIF) \ - (This)->lpVtbl -> GetDvdInterface(This,riid,ppvIF) - -#define IDvdGraphBuilder_RenderDvdVideoVolume(This,lpcwszPathName,dwFlags,pStatus) \ - (This)->lpVtbl -> RenderDvdVideoVolume(This,lpcwszPathName,dwFlags,pStatus) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDvdGraphBuilder_GetFiltergraph_Proxy( - IDvdGraphBuilder * This, - /* [out] */ IGraphBuilder **ppGB); - - -void __RPC_STUB IDvdGraphBuilder_GetFiltergraph_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdGraphBuilder_GetDvdInterface_Proxy( - IDvdGraphBuilder * This, - /* [in] */ REFIID riid, - /* [out] */ void **ppvIF); - - -void __RPC_STUB IDvdGraphBuilder_GetDvdInterface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDvdGraphBuilder_RenderDvdVideoVolume_Proxy( - IDvdGraphBuilder * This, - /* [in] */ LPCWSTR lpcwszPathName, - /* [in] */ DWORD dwFlags, - /* [out] */ AM_DVD_RENDERSTATUS *pStatus); - - -void __RPC_STUB IDvdGraphBuilder_RenderDvdVideoVolume_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDvdGraphBuilder_INTERFACE_DEFINED__ */ - - -#ifndef __IDDrawExclModeVideo_INTERFACE_DEFINED__ -#define __IDDrawExclModeVideo_INTERFACE_DEFINED__ - -/* interface IDDrawExclModeVideo */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IDDrawExclModeVideo; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("153ACC21-D83B-11d1-82BF-00A0C9696C8F") - IDDrawExclModeVideo : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetDDrawObject( - /* [in] */ IDirectDraw *pDDrawObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDDrawObject( - /* [out] */ IDirectDraw **ppDDrawObject, - /* [out] */ BOOL *pbUsingExternal) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDDrawSurface( - /* [in] */ IDirectDrawSurface *pDDrawSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDDrawSurface( - /* [out] */ IDirectDrawSurface **ppDDrawSurface, - /* [out] */ BOOL *pbUsingExternal) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDrawParameters( - /* [in] */ const RECT *prcSource, - /* [in] */ const RECT *prcTarget) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNativeVideoProps( - /* [out] */ DWORD *pdwVideoWidth, - /* [out] */ DWORD *pdwVideoHeight, - /* [out] */ DWORD *pdwPictAspectRatioX, - /* [out] */ DWORD *pdwPictAspectRatioY) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetCallbackInterface( - /* [in] */ IDDrawExclModeVideoCallback *pCallback, - /* [in] */ DWORD dwFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDDrawExclModeVideoVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDDrawExclModeVideo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDDrawExclModeVideo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDDrawExclModeVideo * This); - - HRESULT ( STDMETHODCALLTYPE *SetDDrawObject )( - IDDrawExclModeVideo * This, - /* [in] */ IDirectDraw *pDDrawObject); - - HRESULT ( STDMETHODCALLTYPE *GetDDrawObject )( - IDDrawExclModeVideo * This, - /* [out] */ IDirectDraw **ppDDrawObject, - /* [out] */ BOOL *pbUsingExternal); - - HRESULT ( STDMETHODCALLTYPE *SetDDrawSurface )( - IDDrawExclModeVideo * This, - /* [in] */ IDirectDrawSurface *pDDrawSurface); - - HRESULT ( STDMETHODCALLTYPE *GetDDrawSurface )( - IDDrawExclModeVideo * This, - /* [out] */ IDirectDrawSurface **ppDDrawSurface, - /* [out] */ BOOL *pbUsingExternal); - - HRESULT ( STDMETHODCALLTYPE *SetDrawParameters )( - IDDrawExclModeVideo * This, - /* [in] */ const RECT *prcSource, - /* [in] */ const RECT *prcTarget); - - HRESULT ( STDMETHODCALLTYPE *GetNativeVideoProps )( - IDDrawExclModeVideo * This, - /* [out] */ DWORD *pdwVideoWidth, - /* [out] */ DWORD *pdwVideoHeight, - /* [out] */ DWORD *pdwPictAspectRatioX, - /* [out] */ DWORD *pdwPictAspectRatioY); - - HRESULT ( STDMETHODCALLTYPE *SetCallbackInterface )( - IDDrawExclModeVideo * This, - /* [in] */ IDDrawExclModeVideoCallback *pCallback, - /* [in] */ DWORD dwFlags); - - END_INTERFACE - } IDDrawExclModeVideoVtbl; - - interface IDDrawExclModeVideo - { - CONST_VTBL struct IDDrawExclModeVideoVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDDrawExclModeVideo_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDDrawExclModeVideo_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDDrawExclModeVideo_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDDrawExclModeVideo_SetDDrawObject(This,pDDrawObject) \ - (This)->lpVtbl -> SetDDrawObject(This,pDDrawObject) - -#define IDDrawExclModeVideo_GetDDrawObject(This,ppDDrawObject,pbUsingExternal) \ - (This)->lpVtbl -> GetDDrawObject(This,ppDDrawObject,pbUsingExternal) - -#define IDDrawExclModeVideo_SetDDrawSurface(This,pDDrawSurface) \ - (This)->lpVtbl -> SetDDrawSurface(This,pDDrawSurface) - -#define IDDrawExclModeVideo_GetDDrawSurface(This,ppDDrawSurface,pbUsingExternal) \ - (This)->lpVtbl -> GetDDrawSurface(This,ppDDrawSurface,pbUsingExternal) - -#define IDDrawExclModeVideo_SetDrawParameters(This,prcSource,prcTarget) \ - (This)->lpVtbl -> SetDrawParameters(This,prcSource,prcTarget) - -#define IDDrawExclModeVideo_GetNativeVideoProps(This,pdwVideoWidth,pdwVideoHeight,pdwPictAspectRatioX,pdwPictAspectRatioY) \ - (This)->lpVtbl -> GetNativeVideoProps(This,pdwVideoWidth,pdwVideoHeight,pdwPictAspectRatioX,pdwPictAspectRatioY) - -#define IDDrawExclModeVideo_SetCallbackInterface(This,pCallback,dwFlags) \ - (This)->lpVtbl -> SetCallbackInterface(This,pCallback,dwFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDDrawExclModeVideo_SetDDrawObject_Proxy( - IDDrawExclModeVideo * This, - /* [in] */ IDirectDraw *pDDrawObject); - - -void __RPC_STUB IDDrawExclModeVideo_SetDDrawObject_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDDrawExclModeVideo_GetDDrawObject_Proxy( - IDDrawExclModeVideo * This, - /* [out] */ IDirectDraw **ppDDrawObject, - /* [out] */ BOOL *pbUsingExternal); - - -void __RPC_STUB IDDrawExclModeVideo_GetDDrawObject_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDDrawExclModeVideo_SetDDrawSurface_Proxy( - IDDrawExclModeVideo * This, - /* [in] */ IDirectDrawSurface *pDDrawSurface); - - -void __RPC_STUB IDDrawExclModeVideo_SetDDrawSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDDrawExclModeVideo_GetDDrawSurface_Proxy( - IDDrawExclModeVideo * This, - /* [out] */ IDirectDrawSurface **ppDDrawSurface, - /* [out] */ BOOL *pbUsingExternal); - - -void __RPC_STUB IDDrawExclModeVideo_GetDDrawSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDDrawExclModeVideo_SetDrawParameters_Proxy( - IDDrawExclModeVideo * This, - /* [in] */ const RECT *prcSource, - /* [in] */ const RECT *prcTarget); - - -void __RPC_STUB IDDrawExclModeVideo_SetDrawParameters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDDrawExclModeVideo_GetNativeVideoProps_Proxy( - IDDrawExclModeVideo * This, - /* [out] */ DWORD *pdwVideoWidth, - /* [out] */ DWORD *pdwVideoHeight, - /* [out] */ DWORD *pdwPictAspectRatioX, - /* [out] */ DWORD *pdwPictAspectRatioY); - - -void __RPC_STUB IDDrawExclModeVideo_GetNativeVideoProps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDDrawExclModeVideo_SetCallbackInterface_Proxy( - IDDrawExclModeVideo * This, - /* [in] */ IDDrawExclModeVideoCallback *pCallback, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IDDrawExclModeVideo_SetCallbackInterface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDDrawExclModeVideo_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0381 */ -/* [local] */ - - -enum _AM_OVERLAY_NOTIFY_FLAGS - { AM_OVERLAY_NOTIFY_VISIBLE_CHANGE = 0x1, - AM_OVERLAY_NOTIFY_SOURCE_CHANGE = 0x2, - AM_OVERLAY_NOTIFY_DEST_CHANGE = 0x4 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0381_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0381_v0_0_s_ifspec; - -#ifndef __IDDrawExclModeVideoCallback_INTERFACE_DEFINED__ -#define __IDDrawExclModeVideoCallback_INTERFACE_DEFINED__ - -/* interface IDDrawExclModeVideoCallback */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IDDrawExclModeVideoCallback; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("913c24a0-20ab-11d2-9038-00a0c9697298") - IDDrawExclModeVideoCallback : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE OnUpdateOverlay( - /* [in] */ BOOL bBefore, - /* [in] */ DWORD dwFlags, - /* [in] */ BOOL bOldVisible, - /* [in] */ const RECT *prcOldSrc, - /* [in] */ const RECT *prcOldDest, - /* [in] */ BOOL bNewVisible, - /* [in] */ const RECT *prcNewSrc, - /* [in] */ const RECT *prcNewDest) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnUpdateColorKey( - /* [in] */ const COLORKEY *pKey, - /* [in] */ DWORD dwColor) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnUpdateSize( - /* [in] */ DWORD dwWidth, - /* [in] */ DWORD dwHeight, - /* [in] */ DWORD dwARWidth, - /* [in] */ DWORD dwARHeight) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDDrawExclModeVideoCallbackVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDDrawExclModeVideoCallback * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDDrawExclModeVideoCallback * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDDrawExclModeVideoCallback * This); - - HRESULT ( STDMETHODCALLTYPE *OnUpdateOverlay )( - IDDrawExclModeVideoCallback * This, - /* [in] */ BOOL bBefore, - /* [in] */ DWORD dwFlags, - /* [in] */ BOOL bOldVisible, - /* [in] */ const RECT *prcOldSrc, - /* [in] */ const RECT *prcOldDest, - /* [in] */ BOOL bNewVisible, - /* [in] */ const RECT *prcNewSrc, - /* [in] */ const RECT *prcNewDest); - - HRESULT ( STDMETHODCALLTYPE *OnUpdateColorKey )( - IDDrawExclModeVideoCallback * This, - /* [in] */ const COLORKEY *pKey, - /* [in] */ DWORD dwColor); - - HRESULT ( STDMETHODCALLTYPE *OnUpdateSize )( - IDDrawExclModeVideoCallback * This, - /* [in] */ DWORD dwWidth, - /* [in] */ DWORD dwHeight, - /* [in] */ DWORD dwARWidth, - /* [in] */ DWORD dwARHeight); - - END_INTERFACE - } IDDrawExclModeVideoCallbackVtbl; - - interface IDDrawExclModeVideoCallback - { - CONST_VTBL struct IDDrawExclModeVideoCallbackVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDDrawExclModeVideoCallback_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDDrawExclModeVideoCallback_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDDrawExclModeVideoCallback_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDDrawExclModeVideoCallback_OnUpdateOverlay(This,bBefore,dwFlags,bOldVisible,prcOldSrc,prcOldDest,bNewVisible,prcNewSrc,prcNewDest) \ - (This)->lpVtbl -> OnUpdateOverlay(This,bBefore,dwFlags,bOldVisible,prcOldSrc,prcOldDest,bNewVisible,prcNewSrc,prcNewDest) - -#define IDDrawExclModeVideoCallback_OnUpdateColorKey(This,pKey,dwColor) \ - (This)->lpVtbl -> OnUpdateColorKey(This,pKey,dwColor) - -#define IDDrawExclModeVideoCallback_OnUpdateSize(This,dwWidth,dwHeight,dwARWidth,dwARHeight) \ - (This)->lpVtbl -> OnUpdateSize(This,dwWidth,dwHeight,dwARWidth,dwARHeight) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IDDrawExclModeVideoCallback_OnUpdateOverlay_Proxy( - IDDrawExclModeVideoCallback * This, - /* [in] */ BOOL bBefore, - /* [in] */ DWORD dwFlags, - /* [in] */ BOOL bOldVisible, - /* [in] */ const RECT *prcOldSrc, - /* [in] */ const RECT *prcOldDest, - /* [in] */ BOOL bNewVisible, - /* [in] */ const RECT *prcNewSrc, - /* [in] */ const RECT *prcNewDest); - - -void __RPC_STUB IDDrawExclModeVideoCallback_OnUpdateOverlay_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDDrawExclModeVideoCallback_OnUpdateColorKey_Proxy( - IDDrawExclModeVideoCallback * This, - /* [in] */ const COLORKEY *pKey, - /* [in] */ DWORD dwColor); - - -void __RPC_STUB IDDrawExclModeVideoCallback_OnUpdateColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IDDrawExclModeVideoCallback_OnUpdateSize_Proxy( - IDDrawExclModeVideoCallback * This, - /* [in] */ DWORD dwWidth, - /* [in] */ DWORD dwHeight, - /* [in] */ DWORD dwARWidth, - /* [in] */ DWORD dwARHeight); - - -void __RPC_STUB IDDrawExclModeVideoCallback_OnUpdateSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDDrawExclModeVideoCallback_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0382 */ -/* [local] */ - - - - - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0382_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0382_v0_0_s_ifspec; - -#ifndef __IPinConnection_INTERFACE_DEFINED__ -#define __IPinConnection_INTERFACE_DEFINED__ - -/* interface IPinConnection */ -/* [unique][uuid][object][local] */ - - -EXTERN_C const IID IID_IPinConnection; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("4a9a62d3-27d4-403d-91e9-89f540e55534") - IPinConnection : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE DynamicQueryAccept( - /* [in] */ const AM_MEDIA_TYPE *pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE NotifyEndOfStream( - /* [in] */ HANDLE hNotifyEvent) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsEndPin( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE DynamicDisconnect( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IPinConnectionVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IPinConnection * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IPinConnection * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IPinConnection * This); - - HRESULT ( STDMETHODCALLTYPE *DynamicQueryAccept )( - IPinConnection * This, - /* [in] */ const AM_MEDIA_TYPE *pmt); - - HRESULT ( STDMETHODCALLTYPE *NotifyEndOfStream )( - IPinConnection * This, - /* [in] */ HANDLE hNotifyEvent); - - HRESULT ( STDMETHODCALLTYPE *IsEndPin )( - IPinConnection * This); - - HRESULT ( STDMETHODCALLTYPE *DynamicDisconnect )( - IPinConnection * This); - - END_INTERFACE - } IPinConnectionVtbl; - - interface IPinConnection - { - CONST_VTBL struct IPinConnectionVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IPinConnection_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IPinConnection_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IPinConnection_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IPinConnection_DynamicQueryAccept(This,pmt) \ - (This)->lpVtbl -> DynamicQueryAccept(This,pmt) - -#define IPinConnection_NotifyEndOfStream(This,hNotifyEvent) \ - (This)->lpVtbl -> NotifyEndOfStream(This,hNotifyEvent) - -#define IPinConnection_IsEndPin(This) \ - (This)->lpVtbl -> IsEndPin(This) - -#define IPinConnection_DynamicDisconnect(This) \ - (This)->lpVtbl -> DynamicDisconnect(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IPinConnection_DynamicQueryAccept_Proxy( - IPinConnection * This, - /* [in] */ const AM_MEDIA_TYPE *pmt); - - -void __RPC_STUB IPinConnection_DynamicQueryAccept_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPinConnection_NotifyEndOfStream_Proxy( - IPinConnection * This, - /* [in] */ HANDLE hNotifyEvent); - - -void __RPC_STUB IPinConnection_NotifyEndOfStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPinConnection_IsEndPin_Proxy( - IPinConnection * This); - - -void __RPC_STUB IPinConnection_IsEndPin_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IPinConnection_DynamicDisconnect_Proxy( - IPinConnection * This); - - -void __RPC_STUB IPinConnection_DynamicDisconnect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IPinConnection_INTERFACE_DEFINED__ */ - - -#ifndef __IPinFlowControl_INTERFACE_DEFINED__ -#define __IPinFlowControl_INTERFACE_DEFINED__ - -/* interface IPinFlowControl */ -/* [unique][uuid][object][local] */ - - -EXTERN_C const IID IID_IPinFlowControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("c56e9858-dbf3-4f6b-8119-384af2060deb") - IPinFlowControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Block( - /* [in] */ DWORD dwBlockFlags, - /* [in] */ HANDLE hEvent) = 0; - - }; - -#else /* C style interface */ - - typedef struct IPinFlowControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IPinFlowControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IPinFlowControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IPinFlowControl * This); - - HRESULT ( STDMETHODCALLTYPE *Block )( - IPinFlowControl * This, - /* [in] */ DWORD dwBlockFlags, - /* [in] */ HANDLE hEvent); - - END_INTERFACE - } IPinFlowControlVtbl; - - interface IPinFlowControl - { - CONST_VTBL struct IPinFlowControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IPinFlowControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IPinFlowControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IPinFlowControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IPinFlowControl_Block(This,dwBlockFlags,hEvent) \ - (This)->lpVtbl -> Block(This,dwBlockFlags,hEvent) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IPinFlowControl_Block_Proxy( - IPinFlowControl * This, - /* [in] */ DWORD dwBlockFlags, - /* [in] */ HANDLE hEvent); - - -void __RPC_STUB IPinFlowControl_Block_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IPinFlowControl_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0384 */ -/* [local] */ - - -enum _AM_PIN_FLOW_CONTROL_BLOCK_FLAGS - { AM_PIN_FLOW_CONTROL_BLOCK = 0x1 - } ; -typedef -enum _AM_GRAPH_CONFIG_RECONNECT_FLAGS - { AM_GRAPH_CONFIG_RECONNECT_DIRECTCONNECT = 0x1, - AM_GRAPH_CONFIG_RECONNECT_CACHE_REMOVED_FILTERS = 0x2, - AM_GRAPH_CONFIG_RECONNECT_USE_ONLY_CACHED_FILTERS = 0x4 - } AM_GRAPH_CONFIG_RECONNECT_FLAGS; - - -enum _REM_FILTER_FLAGS - { REMFILTERF_LEAVECONNECTED = 0x1 - } ; -typedef -enum _AM_FILTER_FLAGS - { AM_FILTER_FLAGS_REMOVABLE = 0x1 - } AM_FILTER_FLAGS; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0384_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0384_v0_0_s_ifspec; - -#ifndef __IGraphConfig_INTERFACE_DEFINED__ -#define __IGraphConfig_INTERFACE_DEFINED__ - -/* interface IGraphConfig */ -/* [unique][uuid][object][local] */ - - -EXTERN_C const IID IID_IGraphConfig; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("03A1EB8E-32BF-4245-8502-114D08A9CB88") - IGraphConfig : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Reconnect( - /* [in] */ IPin *pOutputPin, - /* [in] */ IPin *pInputPin, - /* [in] */ const AM_MEDIA_TYPE *pmtFirstConnection, - /* [in] */ IBaseFilter *pUsingFilter, - /* [in] */ HANDLE hAbortEvent, - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reconfigure( - /* [in] */ IGraphConfigCallback *pCallback, - /* [in] */ PVOID pvContext, - /* [in] */ DWORD dwFlags, - /* [in] */ HANDLE hAbortEvent) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddFilterToCache( - /* [in] */ IBaseFilter *pFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumCacheFilter( - /* [out] */ IEnumFilters **pEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemoveFilterFromCache( - /* [in] */ IBaseFilter *pFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStartTime( - /* [out] */ REFERENCE_TIME *prtStart) = 0; - - virtual HRESULT STDMETHODCALLTYPE PushThroughData( - /* [in] */ IPin *pOutputPin, - /* [in] */ IPinConnection *pConnection, - /* [in] */ HANDLE hEventAbort) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFilterFlags( - /* [in] */ IBaseFilter *pFilter, - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFilterFlags( - /* [in] */ IBaseFilter *pFilter, - /* [out] */ DWORD *pdwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemoveFilterEx( - /* [in] */ IBaseFilter *pFilter, - DWORD Flags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IGraphConfigVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IGraphConfig * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IGraphConfig * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IGraphConfig * This); - - HRESULT ( STDMETHODCALLTYPE *Reconnect )( - IGraphConfig * This, - /* [in] */ IPin *pOutputPin, - /* [in] */ IPin *pInputPin, - /* [in] */ const AM_MEDIA_TYPE *pmtFirstConnection, - /* [in] */ IBaseFilter *pUsingFilter, - /* [in] */ HANDLE hAbortEvent, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *Reconfigure )( - IGraphConfig * This, - /* [in] */ IGraphConfigCallback *pCallback, - /* [in] */ PVOID pvContext, - /* [in] */ DWORD dwFlags, - /* [in] */ HANDLE hAbortEvent); - - HRESULT ( STDMETHODCALLTYPE *AddFilterToCache )( - IGraphConfig * This, - /* [in] */ IBaseFilter *pFilter); - - HRESULT ( STDMETHODCALLTYPE *EnumCacheFilter )( - IGraphConfig * This, - /* [out] */ IEnumFilters **pEnum); - - HRESULT ( STDMETHODCALLTYPE *RemoveFilterFromCache )( - IGraphConfig * This, - /* [in] */ IBaseFilter *pFilter); - - HRESULT ( STDMETHODCALLTYPE *GetStartTime )( - IGraphConfig * This, - /* [out] */ REFERENCE_TIME *prtStart); - - HRESULT ( STDMETHODCALLTYPE *PushThroughData )( - IGraphConfig * This, - /* [in] */ IPin *pOutputPin, - /* [in] */ IPinConnection *pConnection, - /* [in] */ HANDLE hEventAbort); - - HRESULT ( STDMETHODCALLTYPE *SetFilterFlags )( - IGraphConfig * This, - /* [in] */ IBaseFilter *pFilter, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *GetFilterFlags )( - IGraphConfig * This, - /* [in] */ IBaseFilter *pFilter, - /* [out] */ DWORD *pdwFlags); - - HRESULT ( STDMETHODCALLTYPE *RemoveFilterEx )( - IGraphConfig * This, - /* [in] */ IBaseFilter *pFilter, - DWORD Flags); - - END_INTERFACE - } IGraphConfigVtbl; - - interface IGraphConfig - { - CONST_VTBL struct IGraphConfigVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IGraphConfig_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IGraphConfig_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IGraphConfig_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IGraphConfig_Reconnect(This,pOutputPin,pInputPin,pmtFirstConnection,pUsingFilter,hAbortEvent,dwFlags) \ - (This)->lpVtbl -> Reconnect(This,pOutputPin,pInputPin,pmtFirstConnection,pUsingFilter,hAbortEvent,dwFlags) - -#define IGraphConfig_Reconfigure(This,pCallback,pvContext,dwFlags,hAbortEvent) \ - (This)->lpVtbl -> Reconfigure(This,pCallback,pvContext,dwFlags,hAbortEvent) - -#define IGraphConfig_AddFilterToCache(This,pFilter) \ - (This)->lpVtbl -> AddFilterToCache(This,pFilter) - -#define IGraphConfig_EnumCacheFilter(This,pEnum) \ - (This)->lpVtbl -> EnumCacheFilter(This,pEnum) - -#define IGraphConfig_RemoveFilterFromCache(This,pFilter) \ - (This)->lpVtbl -> RemoveFilterFromCache(This,pFilter) - -#define IGraphConfig_GetStartTime(This,prtStart) \ - (This)->lpVtbl -> GetStartTime(This,prtStart) - -#define IGraphConfig_PushThroughData(This,pOutputPin,pConnection,hEventAbort) \ - (This)->lpVtbl -> PushThroughData(This,pOutputPin,pConnection,hEventAbort) - -#define IGraphConfig_SetFilterFlags(This,pFilter,dwFlags) \ - (This)->lpVtbl -> SetFilterFlags(This,pFilter,dwFlags) - -#define IGraphConfig_GetFilterFlags(This,pFilter,pdwFlags) \ - (This)->lpVtbl -> GetFilterFlags(This,pFilter,pdwFlags) - -#define IGraphConfig_RemoveFilterEx(This,pFilter,Flags) \ - (This)->lpVtbl -> RemoveFilterEx(This,pFilter,Flags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IGraphConfig_Reconnect_Proxy( - IGraphConfig * This, - /* [in] */ IPin *pOutputPin, - /* [in] */ IPin *pInputPin, - /* [in] */ const AM_MEDIA_TYPE *pmtFirstConnection, - /* [in] */ IBaseFilter *pUsingFilter, - /* [in] */ HANDLE hAbortEvent, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IGraphConfig_Reconnect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphConfig_Reconfigure_Proxy( - IGraphConfig * This, - /* [in] */ IGraphConfigCallback *pCallback, - /* [in] */ PVOID pvContext, - /* [in] */ DWORD dwFlags, - /* [in] */ HANDLE hAbortEvent); - - -void __RPC_STUB IGraphConfig_Reconfigure_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphConfig_AddFilterToCache_Proxy( - IGraphConfig * This, - /* [in] */ IBaseFilter *pFilter); - - -void __RPC_STUB IGraphConfig_AddFilterToCache_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphConfig_EnumCacheFilter_Proxy( - IGraphConfig * This, - /* [out] */ IEnumFilters **pEnum); - - -void __RPC_STUB IGraphConfig_EnumCacheFilter_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphConfig_RemoveFilterFromCache_Proxy( - IGraphConfig * This, - /* [in] */ IBaseFilter *pFilter); - - -void __RPC_STUB IGraphConfig_RemoveFilterFromCache_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphConfig_GetStartTime_Proxy( - IGraphConfig * This, - /* [out] */ REFERENCE_TIME *prtStart); - - -void __RPC_STUB IGraphConfig_GetStartTime_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphConfig_PushThroughData_Proxy( - IGraphConfig * This, - /* [in] */ IPin *pOutputPin, - /* [in] */ IPinConnection *pConnection, - /* [in] */ HANDLE hEventAbort); - - -void __RPC_STUB IGraphConfig_PushThroughData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphConfig_SetFilterFlags_Proxy( - IGraphConfig * This, - /* [in] */ IBaseFilter *pFilter, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IGraphConfig_SetFilterFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphConfig_GetFilterFlags_Proxy( - IGraphConfig * This, - /* [in] */ IBaseFilter *pFilter, - /* [out] */ DWORD *pdwFlags); - - -void __RPC_STUB IGraphConfig_GetFilterFlags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IGraphConfig_RemoveFilterEx_Proxy( - IGraphConfig * This, - /* [in] */ IBaseFilter *pFilter, - DWORD Flags); - - -void __RPC_STUB IGraphConfig_RemoveFilterEx_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IGraphConfig_INTERFACE_DEFINED__ */ - - -#ifndef __IGraphConfigCallback_INTERFACE_DEFINED__ -#define __IGraphConfigCallback_INTERFACE_DEFINED__ - -/* interface IGraphConfigCallback */ -/* [unique][uuid][object][local] */ - - -EXTERN_C const IID IID_IGraphConfigCallback; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("ade0fd60-d19d-11d2-abf6-00a0c905f375") - IGraphConfigCallback : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Reconfigure( - PVOID pvContext, - DWORD dwFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IGraphConfigCallbackVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IGraphConfigCallback * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IGraphConfigCallback * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IGraphConfigCallback * This); - - HRESULT ( STDMETHODCALLTYPE *Reconfigure )( - IGraphConfigCallback * This, - PVOID pvContext, - DWORD dwFlags); - - END_INTERFACE - } IGraphConfigCallbackVtbl; - - interface IGraphConfigCallback - { - CONST_VTBL struct IGraphConfigCallbackVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IGraphConfigCallback_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IGraphConfigCallback_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IGraphConfigCallback_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IGraphConfigCallback_Reconfigure(This,pvContext,dwFlags) \ - (This)->lpVtbl -> Reconfigure(This,pvContext,dwFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IGraphConfigCallback_Reconfigure_Proxy( - IGraphConfigCallback * This, - PVOID pvContext, - DWORD dwFlags); - - -void __RPC_STUB IGraphConfigCallback_Reconfigure_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IGraphConfigCallback_INTERFACE_DEFINED__ */ - - -#ifndef __IFilterChain_INTERFACE_DEFINED__ -#define __IFilterChain_INTERFACE_DEFINED__ - -/* interface IFilterChain */ -/* [unique][uuid][object][local] */ - - -EXTERN_C const IID IID_IFilterChain; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("DCFBDCF6-0DC2-45f5-9AB2-7C330EA09C29") - IFilterChain : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE StartChain( - /* [in] */ IBaseFilter *pStartFilter, - /* [in] */ IBaseFilter *pEndFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE PauseChain( - /* [in] */ IBaseFilter *pStartFilter, - /* [in] */ IBaseFilter *pEndFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE StopChain( - /* [in] */ IBaseFilter *pStartFilter, - /* [in] */ IBaseFilter *pEndFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemoveChain( - /* [in] */ IBaseFilter *pStartFilter, - /* [in] */ IBaseFilter *pEndFilter) = 0; - - }; - -#else /* C style interface */ - - typedef struct IFilterChainVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IFilterChain * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IFilterChain * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IFilterChain * This); - - HRESULT ( STDMETHODCALLTYPE *StartChain )( - IFilterChain * This, - /* [in] */ IBaseFilter *pStartFilter, - /* [in] */ IBaseFilter *pEndFilter); - - HRESULT ( STDMETHODCALLTYPE *PauseChain )( - IFilterChain * This, - /* [in] */ IBaseFilter *pStartFilter, - /* [in] */ IBaseFilter *pEndFilter); - - HRESULT ( STDMETHODCALLTYPE *StopChain )( - IFilterChain * This, - /* [in] */ IBaseFilter *pStartFilter, - /* [in] */ IBaseFilter *pEndFilter); - - HRESULT ( STDMETHODCALLTYPE *RemoveChain )( - IFilterChain * This, - /* [in] */ IBaseFilter *pStartFilter, - /* [in] */ IBaseFilter *pEndFilter); - - END_INTERFACE - } IFilterChainVtbl; - - interface IFilterChain - { - CONST_VTBL struct IFilterChainVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IFilterChain_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IFilterChain_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IFilterChain_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IFilterChain_StartChain(This,pStartFilter,pEndFilter) \ - (This)->lpVtbl -> StartChain(This,pStartFilter,pEndFilter) - -#define IFilterChain_PauseChain(This,pStartFilter,pEndFilter) \ - (This)->lpVtbl -> PauseChain(This,pStartFilter,pEndFilter) - -#define IFilterChain_StopChain(This,pStartFilter,pEndFilter) \ - (This)->lpVtbl -> StopChain(This,pStartFilter,pEndFilter) - -#define IFilterChain_RemoveChain(This,pStartFilter,pEndFilter) \ - (This)->lpVtbl -> RemoveChain(This,pStartFilter,pEndFilter) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IFilterChain_StartChain_Proxy( - IFilterChain * This, - /* [in] */ IBaseFilter *pStartFilter, - /* [in] */ IBaseFilter *pEndFilter); - - -void __RPC_STUB IFilterChain_StartChain_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterChain_PauseChain_Proxy( - IFilterChain * This, - /* [in] */ IBaseFilter *pStartFilter, - /* [in] */ IBaseFilter *pEndFilter); - - -void __RPC_STUB IFilterChain_PauseChain_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterChain_StopChain_Proxy( - IFilterChain * This, - /* [in] */ IBaseFilter *pStartFilter, - /* [in] */ IBaseFilter *pEndFilter); - - -void __RPC_STUB IFilterChain_StopChain_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IFilterChain_RemoveChain_Proxy( - IFilterChain * This, - /* [in] */ IBaseFilter *pStartFilter, - /* [in] */ IBaseFilter *pEndFilter); - - -void __RPC_STUB IFilterChain_RemoveChain_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IFilterChain_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0387 */ -/* [local] */ - -#if 0 -typedef DWORD *LPDIRECTDRAW7; - -typedef DWORD *LPDIRECTDRAWSURFACE7; - -typedef DWORD *LPDDPIXELFORMAT; - -typedef DWORD *LPBITMAPINFOHEADER; - -typedef /* [public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_strmif_0387_0001 - { - DWORD dw1; - DWORD dw2; - } DDCOLORKEY; - -typedef DDCOLORKEY *LPDDCOLORKEY; - -#endif -#include - - - - - - - - - - - - - - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0387_0002 - { VMRSample_SyncPoint = 0x1, - VMRSample_Preroll = 0x2, - VMRSample_Discontinuity = 0x4, - VMRSample_TimeValid = 0x8 - } VMRPresentationFlags; - -typedef struct tagVMRPRESENTATIONINFO - { - DWORD dwFlags; - LPDIRECTDRAWSURFACE7 lpSurf; - REFERENCE_TIME rtStart; - REFERENCE_TIME rtEnd; - SIZE szAspectRatio; - RECT rcSrc; - RECT rcDst; - DWORD dwTypeSpecificFlags; - DWORD dwInterlaceFlags; - } VMRPRESENTATIONINFO; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0387_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0387_v0_0_s_ifspec; - -#ifndef __IVMRImagePresenter_INTERFACE_DEFINED__ -#define __IVMRImagePresenter_INTERFACE_DEFINED__ - -/* interface IVMRImagePresenter */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRImagePresenter; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("CE704FE7-E71E-41fb-BAA2-C4403E1182F5") - IVMRImagePresenter : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE StartPresenting( - /* [in] */ DWORD_PTR dwUserID) = 0; - - virtual HRESULT STDMETHODCALLTYPE StopPresenting( - /* [in] */ DWORD_PTR dwUserID) = 0; - - virtual HRESULT STDMETHODCALLTYPE PresentImage( - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ VMRPRESENTATIONINFO *lpPresInfo) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRImagePresenterVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRImagePresenter * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRImagePresenter * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRImagePresenter * This); - - HRESULT ( STDMETHODCALLTYPE *StartPresenting )( - IVMRImagePresenter * This, - /* [in] */ DWORD_PTR dwUserID); - - HRESULT ( STDMETHODCALLTYPE *StopPresenting )( - IVMRImagePresenter * This, - /* [in] */ DWORD_PTR dwUserID); - - HRESULT ( STDMETHODCALLTYPE *PresentImage )( - IVMRImagePresenter * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ VMRPRESENTATIONINFO *lpPresInfo); - - END_INTERFACE - } IVMRImagePresenterVtbl; - - interface IVMRImagePresenter - { - CONST_VTBL struct IVMRImagePresenterVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRImagePresenter_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRImagePresenter_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRImagePresenter_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRImagePresenter_StartPresenting(This,dwUserID) \ - (This)->lpVtbl -> StartPresenting(This,dwUserID) - -#define IVMRImagePresenter_StopPresenting(This,dwUserID) \ - (This)->lpVtbl -> StopPresenting(This,dwUserID) - -#define IVMRImagePresenter_PresentImage(This,dwUserID,lpPresInfo) \ - (This)->lpVtbl -> PresentImage(This,dwUserID,lpPresInfo) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRImagePresenter_StartPresenting_Proxy( - IVMRImagePresenter * This, - /* [in] */ DWORD_PTR dwUserID); - - -void __RPC_STUB IVMRImagePresenter_StartPresenting_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImagePresenter_StopPresenting_Proxy( - IVMRImagePresenter * This, - /* [in] */ DWORD_PTR dwUserID); - - -void __RPC_STUB IVMRImagePresenter_StopPresenting_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImagePresenter_PresentImage_Proxy( - IVMRImagePresenter * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ VMRPRESENTATIONINFO *lpPresInfo); - - -void __RPC_STUB IVMRImagePresenter_PresentImage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRImagePresenter_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0388 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0388_0001 - { AMAP_PIXELFORMAT_VALID = 0x1, - AMAP_3D_TARGET = 0x2, - AMAP_ALLOW_SYSMEM = 0x4, - AMAP_FORCE_SYSMEM = 0x8, - AMAP_DIRECTED_FLIP = 0x10, - AMAP_DXVA_TARGET = 0x20 - } VMRSurfaceAllocationFlags; - -typedef struct tagVMRALLOCATIONINFO - { - DWORD dwFlags; - LPBITMAPINFOHEADER lpHdr; - LPDDPIXELFORMAT lpPixFmt; - SIZE szAspectRatio; - DWORD dwMinBuffers; - DWORD dwMaxBuffers; - DWORD dwInterlaceFlags; - SIZE szNativeSize; - } VMRALLOCATIONINFO; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0388_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0388_v0_0_s_ifspec; - -#ifndef __IVMRSurfaceAllocator_INTERFACE_DEFINED__ -#define __IVMRSurfaceAllocator_INTERFACE_DEFINED__ - -/* interface IVMRSurfaceAllocator */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRSurfaceAllocator; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("31ce832e-4484-458b-8cca-f4d7e3db0b52") - IVMRSurfaceAllocator : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE AllocateSurface( - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ VMRALLOCATIONINFO *lpAllocInfo, - /* [out][in] */ DWORD *lpdwActualBuffers, - /* [out] */ LPDIRECTDRAWSURFACE7 *lplpSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE FreeSurface( - /* [in] */ DWORD_PTR dwID) = 0; - - virtual HRESULT STDMETHODCALLTYPE PrepareSurface( - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ LPDIRECTDRAWSURFACE7 lpSurface, - /* [in] */ DWORD dwSurfaceFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE AdviseNotify( - /* [in] */ IVMRSurfaceAllocatorNotify *lpIVMRSurfAllocNotify) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRSurfaceAllocatorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRSurfaceAllocator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRSurfaceAllocator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRSurfaceAllocator * This); - - HRESULT ( STDMETHODCALLTYPE *AllocateSurface )( - IVMRSurfaceAllocator * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ VMRALLOCATIONINFO *lpAllocInfo, - /* [out][in] */ DWORD *lpdwActualBuffers, - /* [out] */ LPDIRECTDRAWSURFACE7 *lplpSurface); - - HRESULT ( STDMETHODCALLTYPE *FreeSurface )( - IVMRSurfaceAllocator * This, - /* [in] */ DWORD_PTR dwID); - - HRESULT ( STDMETHODCALLTYPE *PrepareSurface )( - IVMRSurfaceAllocator * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ LPDIRECTDRAWSURFACE7 lpSurface, - /* [in] */ DWORD dwSurfaceFlags); - - HRESULT ( STDMETHODCALLTYPE *AdviseNotify )( - IVMRSurfaceAllocator * This, - /* [in] */ IVMRSurfaceAllocatorNotify *lpIVMRSurfAllocNotify); - - END_INTERFACE - } IVMRSurfaceAllocatorVtbl; - - interface IVMRSurfaceAllocator - { - CONST_VTBL struct IVMRSurfaceAllocatorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRSurfaceAllocator_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRSurfaceAllocator_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRSurfaceAllocator_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRSurfaceAllocator_AllocateSurface(This,dwUserID,lpAllocInfo,lpdwActualBuffers,lplpSurface) \ - (This)->lpVtbl -> AllocateSurface(This,dwUserID,lpAllocInfo,lpdwActualBuffers,lplpSurface) - -#define IVMRSurfaceAllocator_FreeSurface(This,dwID) \ - (This)->lpVtbl -> FreeSurface(This,dwID) - -#define IVMRSurfaceAllocator_PrepareSurface(This,dwUserID,lpSurface,dwSurfaceFlags) \ - (This)->lpVtbl -> PrepareSurface(This,dwUserID,lpSurface,dwSurfaceFlags) - -#define IVMRSurfaceAllocator_AdviseNotify(This,lpIVMRSurfAllocNotify) \ - (This)->lpVtbl -> AdviseNotify(This,lpIVMRSurfAllocNotify) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocator_AllocateSurface_Proxy( - IVMRSurfaceAllocator * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ VMRALLOCATIONINFO *lpAllocInfo, - /* [out][in] */ DWORD *lpdwActualBuffers, - /* [out] */ LPDIRECTDRAWSURFACE7 *lplpSurface); - - -void __RPC_STUB IVMRSurfaceAllocator_AllocateSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocator_FreeSurface_Proxy( - IVMRSurfaceAllocator * This, - /* [in] */ DWORD_PTR dwID); - - -void __RPC_STUB IVMRSurfaceAllocator_FreeSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocator_PrepareSurface_Proxy( - IVMRSurfaceAllocator * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ LPDIRECTDRAWSURFACE7 lpSurface, - /* [in] */ DWORD dwSurfaceFlags); - - -void __RPC_STUB IVMRSurfaceAllocator_PrepareSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocator_AdviseNotify_Proxy( - IVMRSurfaceAllocator * This, - /* [in] */ IVMRSurfaceAllocatorNotify *lpIVMRSurfAllocNotify); - - -void __RPC_STUB IVMRSurfaceAllocator_AdviseNotify_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRSurfaceAllocator_INTERFACE_DEFINED__ */ - - -#ifndef __IVMRSurfaceAllocatorNotify_INTERFACE_DEFINED__ -#define __IVMRSurfaceAllocatorNotify_INTERFACE_DEFINED__ - -/* interface IVMRSurfaceAllocatorNotify */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRSurfaceAllocatorNotify; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("aada05a8-5a4e-4729-af0b-cea27aed51e2") - IVMRSurfaceAllocatorNotify : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE AdviseSurfaceAllocator( - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ IVMRSurfaceAllocator *lpIVRMSurfaceAllocator) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDDrawDevice( - /* [in] */ LPDIRECTDRAW7 lpDDrawDevice, - /* [in] */ HMONITOR hMonitor) = 0; - - virtual HRESULT STDMETHODCALLTYPE ChangeDDrawDevice( - /* [in] */ LPDIRECTDRAW7 lpDDrawDevice, - /* [in] */ HMONITOR hMonitor) = 0; - - virtual HRESULT STDMETHODCALLTYPE RestoreDDrawSurfaces( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE NotifyEvent( - /* [in] */ LONG EventCode, - /* [in] */ LONG_PTR Param1, - /* [in] */ LONG_PTR Param2) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBorderColor( - /* [in] */ COLORREF clrBorder) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRSurfaceAllocatorNotifyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRSurfaceAllocatorNotify * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRSurfaceAllocatorNotify * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRSurfaceAllocatorNotify * This); - - HRESULT ( STDMETHODCALLTYPE *AdviseSurfaceAllocator )( - IVMRSurfaceAllocatorNotify * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ IVMRSurfaceAllocator *lpIVRMSurfaceAllocator); - - HRESULT ( STDMETHODCALLTYPE *SetDDrawDevice )( - IVMRSurfaceAllocatorNotify * This, - /* [in] */ LPDIRECTDRAW7 lpDDrawDevice, - /* [in] */ HMONITOR hMonitor); - - HRESULT ( STDMETHODCALLTYPE *ChangeDDrawDevice )( - IVMRSurfaceAllocatorNotify * This, - /* [in] */ LPDIRECTDRAW7 lpDDrawDevice, - /* [in] */ HMONITOR hMonitor); - - HRESULT ( STDMETHODCALLTYPE *RestoreDDrawSurfaces )( - IVMRSurfaceAllocatorNotify * This); - - HRESULT ( STDMETHODCALLTYPE *NotifyEvent )( - IVMRSurfaceAllocatorNotify * This, - /* [in] */ LONG EventCode, - /* [in] */ LONG_PTR Param1, - /* [in] */ LONG_PTR Param2); - - HRESULT ( STDMETHODCALLTYPE *SetBorderColor )( - IVMRSurfaceAllocatorNotify * This, - /* [in] */ COLORREF clrBorder); - - END_INTERFACE - } IVMRSurfaceAllocatorNotifyVtbl; - - interface IVMRSurfaceAllocatorNotify - { - CONST_VTBL struct IVMRSurfaceAllocatorNotifyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRSurfaceAllocatorNotify_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRSurfaceAllocatorNotify_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRSurfaceAllocatorNotify_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRSurfaceAllocatorNotify_AdviseSurfaceAllocator(This,dwUserID,lpIVRMSurfaceAllocator) \ - (This)->lpVtbl -> AdviseSurfaceAllocator(This,dwUserID,lpIVRMSurfaceAllocator) - -#define IVMRSurfaceAllocatorNotify_SetDDrawDevice(This,lpDDrawDevice,hMonitor) \ - (This)->lpVtbl -> SetDDrawDevice(This,lpDDrawDevice,hMonitor) - -#define IVMRSurfaceAllocatorNotify_ChangeDDrawDevice(This,lpDDrawDevice,hMonitor) \ - (This)->lpVtbl -> ChangeDDrawDevice(This,lpDDrawDevice,hMonitor) - -#define IVMRSurfaceAllocatorNotify_RestoreDDrawSurfaces(This) \ - (This)->lpVtbl -> RestoreDDrawSurfaces(This) - -#define IVMRSurfaceAllocatorNotify_NotifyEvent(This,EventCode,Param1,Param2) \ - (This)->lpVtbl -> NotifyEvent(This,EventCode,Param1,Param2) - -#define IVMRSurfaceAllocatorNotify_SetBorderColor(This,clrBorder) \ - (This)->lpVtbl -> SetBorderColor(This,clrBorder) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify_AdviseSurfaceAllocator_Proxy( - IVMRSurfaceAllocatorNotify * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ IVMRSurfaceAllocator *lpIVRMSurfaceAllocator); - - -void __RPC_STUB IVMRSurfaceAllocatorNotify_AdviseSurfaceAllocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify_SetDDrawDevice_Proxy( - IVMRSurfaceAllocatorNotify * This, - /* [in] */ LPDIRECTDRAW7 lpDDrawDevice, - /* [in] */ HMONITOR hMonitor); - - -void __RPC_STUB IVMRSurfaceAllocatorNotify_SetDDrawDevice_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify_ChangeDDrawDevice_Proxy( - IVMRSurfaceAllocatorNotify * This, - /* [in] */ LPDIRECTDRAW7 lpDDrawDevice, - /* [in] */ HMONITOR hMonitor); - - -void __RPC_STUB IVMRSurfaceAllocatorNotify_ChangeDDrawDevice_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify_RestoreDDrawSurfaces_Proxy( - IVMRSurfaceAllocatorNotify * This); - - -void __RPC_STUB IVMRSurfaceAllocatorNotify_RestoreDDrawSurfaces_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify_NotifyEvent_Proxy( - IVMRSurfaceAllocatorNotify * This, - /* [in] */ LONG EventCode, - /* [in] */ LONG_PTR Param1, - /* [in] */ LONG_PTR Param2); - - -void __RPC_STUB IVMRSurfaceAllocatorNotify_NotifyEvent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify_SetBorderColor_Proxy( - IVMRSurfaceAllocatorNotify * This, - /* [in] */ COLORREF clrBorder); - - -void __RPC_STUB IVMRSurfaceAllocatorNotify_SetBorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRSurfaceAllocatorNotify_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0390 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0390_0001 - { VMR_ARMODE_NONE = 0, - VMR_ARMODE_LETTER_BOX = VMR_ARMODE_NONE + 1 - } VMR_ASPECT_RATIO_MODE; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0390_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0390_v0_0_s_ifspec; - -#ifndef __IVMRWindowlessControl_INTERFACE_DEFINED__ -#define __IVMRWindowlessControl_INTERFACE_DEFINED__ - -/* interface IVMRWindowlessControl */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRWindowlessControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("0eb1088c-4dcd-46f0-878f-39dae86a51b7") - IVMRWindowlessControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetNativeVideoSize( - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight, - /* [out] */ LONG *lpARWidth, - /* [out] */ LONG *lpARHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMinIdealVideoSize( - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMaxIdealVideoSize( - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetVideoPosition( - /* [in] */ const LPRECT lpSRCRect, - /* [in] */ const LPRECT lpDSTRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVideoPosition( - /* [out] */ LPRECT lpSRCRect, - /* [out] */ LPRECT lpDSTRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAspectRatioMode( - /* [out] */ DWORD *lpAspectRatioMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetAspectRatioMode( - /* [in] */ DWORD AspectRatioMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetVideoClippingWindow( - /* [in] */ HWND hwnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE RepaintVideo( - /* [in] */ HWND hwnd, - /* [in] */ HDC hdc) = 0; - - virtual HRESULT STDMETHODCALLTYPE DisplayModeChanged( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentImage( - /* [out] */ BYTE **lpDib) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBorderColor( - /* [in] */ COLORREF Clr) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBorderColor( - /* [out] */ COLORREF *lpClr) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetColorKey( - /* [in] */ COLORREF Clr) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetColorKey( - /* [out] */ COLORREF *lpClr) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRWindowlessControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRWindowlessControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRWindowlessControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRWindowlessControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetNativeVideoSize )( - IVMRWindowlessControl * This, - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight, - /* [out] */ LONG *lpARWidth, - /* [out] */ LONG *lpARHeight); - - HRESULT ( STDMETHODCALLTYPE *GetMinIdealVideoSize )( - IVMRWindowlessControl * This, - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight); - - HRESULT ( STDMETHODCALLTYPE *GetMaxIdealVideoSize )( - IVMRWindowlessControl * This, - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight); - - HRESULT ( STDMETHODCALLTYPE *SetVideoPosition )( - IVMRWindowlessControl * This, - /* [in] */ const LPRECT lpSRCRect, - /* [in] */ const LPRECT lpDSTRect); - - HRESULT ( STDMETHODCALLTYPE *GetVideoPosition )( - IVMRWindowlessControl * This, - /* [out] */ LPRECT lpSRCRect, - /* [out] */ LPRECT lpDSTRect); - - HRESULT ( STDMETHODCALLTYPE *GetAspectRatioMode )( - IVMRWindowlessControl * This, - /* [out] */ DWORD *lpAspectRatioMode); - - HRESULT ( STDMETHODCALLTYPE *SetAspectRatioMode )( - IVMRWindowlessControl * This, - /* [in] */ DWORD AspectRatioMode); - - HRESULT ( STDMETHODCALLTYPE *SetVideoClippingWindow )( - IVMRWindowlessControl * This, - /* [in] */ HWND hwnd); - - HRESULT ( STDMETHODCALLTYPE *RepaintVideo )( - IVMRWindowlessControl * This, - /* [in] */ HWND hwnd, - /* [in] */ HDC hdc); - - HRESULT ( STDMETHODCALLTYPE *DisplayModeChanged )( - IVMRWindowlessControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentImage )( - IVMRWindowlessControl * This, - /* [out] */ BYTE **lpDib); - - HRESULT ( STDMETHODCALLTYPE *SetBorderColor )( - IVMRWindowlessControl * This, - /* [in] */ COLORREF Clr); - - HRESULT ( STDMETHODCALLTYPE *GetBorderColor )( - IVMRWindowlessControl * This, - /* [out] */ COLORREF *lpClr); - - HRESULT ( STDMETHODCALLTYPE *SetColorKey )( - IVMRWindowlessControl * This, - /* [in] */ COLORREF Clr); - - HRESULT ( STDMETHODCALLTYPE *GetColorKey )( - IVMRWindowlessControl * This, - /* [out] */ COLORREF *lpClr); - - END_INTERFACE - } IVMRWindowlessControlVtbl; - - interface IVMRWindowlessControl - { - CONST_VTBL struct IVMRWindowlessControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRWindowlessControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRWindowlessControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRWindowlessControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRWindowlessControl_GetNativeVideoSize(This,lpWidth,lpHeight,lpARWidth,lpARHeight) \ - (This)->lpVtbl -> GetNativeVideoSize(This,lpWidth,lpHeight,lpARWidth,lpARHeight) - -#define IVMRWindowlessControl_GetMinIdealVideoSize(This,lpWidth,lpHeight) \ - (This)->lpVtbl -> GetMinIdealVideoSize(This,lpWidth,lpHeight) - -#define IVMRWindowlessControl_GetMaxIdealVideoSize(This,lpWidth,lpHeight) \ - (This)->lpVtbl -> GetMaxIdealVideoSize(This,lpWidth,lpHeight) - -#define IVMRWindowlessControl_SetVideoPosition(This,lpSRCRect,lpDSTRect) \ - (This)->lpVtbl -> SetVideoPosition(This,lpSRCRect,lpDSTRect) - -#define IVMRWindowlessControl_GetVideoPosition(This,lpSRCRect,lpDSTRect) \ - (This)->lpVtbl -> GetVideoPosition(This,lpSRCRect,lpDSTRect) - -#define IVMRWindowlessControl_GetAspectRatioMode(This,lpAspectRatioMode) \ - (This)->lpVtbl -> GetAspectRatioMode(This,lpAspectRatioMode) - -#define IVMRWindowlessControl_SetAspectRatioMode(This,AspectRatioMode) \ - (This)->lpVtbl -> SetAspectRatioMode(This,AspectRatioMode) - -#define IVMRWindowlessControl_SetVideoClippingWindow(This,hwnd) \ - (This)->lpVtbl -> SetVideoClippingWindow(This,hwnd) - -#define IVMRWindowlessControl_RepaintVideo(This,hwnd,hdc) \ - (This)->lpVtbl -> RepaintVideo(This,hwnd,hdc) - -#define IVMRWindowlessControl_DisplayModeChanged(This) \ - (This)->lpVtbl -> DisplayModeChanged(This) - -#define IVMRWindowlessControl_GetCurrentImage(This,lpDib) \ - (This)->lpVtbl -> GetCurrentImage(This,lpDib) - -#define IVMRWindowlessControl_SetBorderColor(This,Clr) \ - (This)->lpVtbl -> SetBorderColor(This,Clr) - -#define IVMRWindowlessControl_GetBorderColor(This,lpClr) \ - (This)->lpVtbl -> GetBorderColor(This,lpClr) - -#define IVMRWindowlessControl_SetColorKey(This,Clr) \ - (This)->lpVtbl -> SetColorKey(This,Clr) - -#define IVMRWindowlessControl_GetColorKey(This,lpClr) \ - (This)->lpVtbl -> GetColorKey(This,lpClr) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_GetNativeVideoSize_Proxy( - IVMRWindowlessControl * This, - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight, - /* [out] */ LONG *lpARWidth, - /* [out] */ LONG *lpARHeight); - - -void __RPC_STUB IVMRWindowlessControl_GetNativeVideoSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_GetMinIdealVideoSize_Proxy( - IVMRWindowlessControl * This, - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight); - - -void __RPC_STUB IVMRWindowlessControl_GetMinIdealVideoSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_GetMaxIdealVideoSize_Proxy( - IVMRWindowlessControl * This, - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight); - - -void __RPC_STUB IVMRWindowlessControl_GetMaxIdealVideoSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_SetVideoPosition_Proxy( - IVMRWindowlessControl * This, - /* [in] */ const LPRECT lpSRCRect, - /* [in] */ const LPRECT lpDSTRect); - - -void __RPC_STUB IVMRWindowlessControl_SetVideoPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_GetVideoPosition_Proxy( - IVMRWindowlessControl * This, - /* [out] */ LPRECT lpSRCRect, - /* [out] */ LPRECT lpDSTRect); - - -void __RPC_STUB IVMRWindowlessControl_GetVideoPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_GetAspectRatioMode_Proxy( - IVMRWindowlessControl * This, - /* [out] */ DWORD *lpAspectRatioMode); - - -void __RPC_STUB IVMRWindowlessControl_GetAspectRatioMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_SetAspectRatioMode_Proxy( - IVMRWindowlessControl * This, - /* [in] */ DWORD AspectRatioMode); - - -void __RPC_STUB IVMRWindowlessControl_SetAspectRatioMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_SetVideoClippingWindow_Proxy( - IVMRWindowlessControl * This, - /* [in] */ HWND hwnd); - - -void __RPC_STUB IVMRWindowlessControl_SetVideoClippingWindow_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_RepaintVideo_Proxy( - IVMRWindowlessControl * This, - /* [in] */ HWND hwnd, - /* [in] */ HDC hdc); - - -void __RPC_STUB IVMRWindowlessControl_RepaintVideo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_DisplayModeChanged_Proxy( - IVMRWindowlessControl * This); - - -void __RPC_STUB IVMRWindowlessControl_DisplayModeChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_GetCurrentImage_Proxy( - IVMRWindowlessControl * This, - /* [out] */ BYTE **lpDib); - - -void __RPC_STUB IVMRWindowlessControl_GetCurrentImage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_SetBorderColor_Proxy( - IVMRWindowlessControl * This, - /* [in] */ COLORREF Clr); - - -void __RPC_STUB IVMRWindowlessControl_SetBorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_GetBorderColor_Proxy( - IVMRWindowlessControl * This, - /* [out] */ COLORREF *lpClr); - - -void __RPC_STUB IVMRWindowlessControl_GetBorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_SetColorKey_Proxy( - IVMRWindowlessControl * This, - /* [in] */ COLORREF Clr); - - -void __RPC_STUB IVMRWindowlessControl_SetColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl_GetColorKey_Proxy( - IVMRWindowlessControl * This, - /* [out] */ COLORREF *lpClr); - - -void __RPC_STUB IVMRWindowlessControl_GetColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRWindowlessControl_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0391 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0391_0001 - { MixerPref_NoDecimation = 0x1, - MixerPref_DecimateOutput = 0x2, - MixerPref_DecimateMask = 0xf, - MixerPref_BiLinearFiltering = 0x10, - MixerPref_PointFiltering = 0x20, - MixerPref_FilteringMask = 0xf0, - MixerPref_RenderTargetRGB = 0x100, - MixerPref_RenderTargetYUV420 = 0x200, - MixerPref_RenderTargetYUV422 = 0x400, - MixerPref_RenderTargetYUV444 = 0x800, - MixerPref_RenderTargetReserved = 0xf000, - MixerPref_RenderTargetMask = 0xff00 - } VMRMixerPrefs; - -typedef struct _NORMALIZEDRECT - { - float left; - float top; - float right; - float bottom; - } NORMALIZEDRECT; - -typedef struct _NORMALIZEDRECT *PNORMALIZEDRECT; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0391_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0391_v0_0_s_ifspec; - -#ifndef __IVMRMixerControl_INTERFACE_DEFINED__ -#define __IVMRMixerControl_INTERFACE_DEFINED__ - -/* interface IVMRMixerControl */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRMixerControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1c1a17b0-bed0-415d-974b-dc6696131599") - IVMRMixerControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetAlpha( - /* [in] */ DWORD dwStreamID, - /* [in] */ float Alpha) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAlpha( - /* [in] */ DWORD dwStreamID, - /* [out] */ float *pAlpha) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetZOrder( - /* [in] */ DWORD dwStreamID, - /* [in] */ DWORD dwZ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetZOrder( - /* [in] */ DWORD dwStreamID, - /* [out] */ DWORD *pZ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOutputRect( - /* [in] */ DWORD dwStreamID, - /* [in] */ const NORMALIZEDRECT *pRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetOutputRect( - /* [in] */ DWORD dwStreamID, - /* [out] */ NORMALIZEDRECT *pRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBackgroundClr( - /* [in] */ COLORREF ClrBkg) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBackgroundClr( - /* [in] */ COLORREF *lpClrBkg) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMixingPrefs( - /* [in] */ DWORD dwMixerPrefs) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMixingPrefs( - /* [out] */ DWORD *pdwMixerPrefs) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRMixerControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRMixerControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRMixerControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRMixerControl * This); - - HRESULT ( STDMETHODCALLTYPE *SetAlpha )( - IVMRMixerControl * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ float Alpha); - - HRESULT ( STDMETHODCALLTYPE *GetAlpha )( - IVMRMixerControl * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ float *pAlpha); - - HRESULT ( STDMETHODCALLTYPE *SetZOrder )( - IVMRMixerControl * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ DWORD dwZ); - - HRESULT ( STDMETHODCALLTYPE *GetZOrder )( - IVMRMixerControl * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ DWORD *pZ); - - HRESULT ( STDMETHODCALLTYPE *SetOutputRect )( - IVMRMixerControl * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ const NORMALIZEDRECT *pRect); - - HRESULT ( STDMETHODCALLTYPE *GetOutputRect )( - IVMRMixerControl * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ NORMALIZEDRECT *pRect); - - HRESULT ( STDMETHODCALLTYPE *SetBackgroundClr )( - IVMRMixerControl * This, - /* [in] */ COLORREF ClrBkg); - - HRESULT ( STDMETHODCALLTYPE *GetBackgroundClr )( - IVMRMixerControl * This, - /* [in] */ COLORREF *lpClrBkg); - - HRESULT ( STDMETHODCALLTYPE *SetMixingPrefs )( - IVMRMixerControl * This, - /* [in] */ DWORD dwMixerPrefs); - - HRESULT ( STDMETHODCALLTYPE *GetMixingPrefs )( - IVMRMixerControl * This, - /* [out] */ DWORD *pdwMixerPrefs); - - END_INTERFACE - } IVMRMixerControlVtbl; - - interface IVMRMixerControl - { - CONST_VTBL struct IVMRMixerControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRMixerControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRMixerControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRMixerControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRMixerControl_SetAlpha(This,dwStreamID,Alpha) \ - (This)->lpVtbl -> SetAlpha(This,dwStreamID,Alpha) - -#define IVMRMixerControl_GetAlpha(This,dwStreamID,pAlpha) \ - (This)->lpVtbl -> GetAlpha(This,dwStreamID,pAlpha) - -#define IVMRMixerControl_SetZOrder(This,dwStreamID,dwZ) \ - (This)->lpVtbl -> SetZOrder(This,dwStreamID,dwZ) - -#define IVMRMixerControl_GetZOrder(This,dwStreamID,pZ) \ - (This)->lpVtbl -> GetZOrder(This,dwStreamID,pZ) - -#define IVMRMixerControl_SetOutputRect(This,dwStreamID,pRect) \ - (This)->lpVtbl -> SetOutputRect(This,dwStreamID,pRect) - -#define IVMRMixerControl_GetOutputRect(This,dwStreamID,pRect) \ - (This)->lpVtbl -> GetOutputRect(This,dwStreamID,pRect) - -#define IVMRMixerControl_SetBackgroundClr(This,ClrBkg) \ - (This)->lpVtbl -> SetBackgroundClr(This,ClrBkg) - -#define IVMRMixerControl_GetBackgroundClr(This,lpClrBkg) \ - (This)->lpVtbl -> GetBackgroundClr(This,lpClrBkg) - -#define IVMRMixerControl_SetMixingPrefs(This,dwMixerPrefs) \ - (This)->lpVtbl -> SetMixingPrefs(This,dwMixerPrefs) - -#define IVMRMixerControl_GetMixingPrefs(This,pdwMixerPrefs) \ - (This)->lpVtbl -> GetMixingPrefs(This,pdwMixerPrefs) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl_SetAlpha_Proxy( - IVMRMixerControl * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ float Alpha); - - -void __RPC_STUB IVMRMixerControl_SetAlpha_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl_GetAlpha_Proxy( - IVMRMixerControl * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ float *pAlpha); - - -void __RPC_STUB IVMRMixerControl_GetAlpha_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl_SetZOrder_Proxy( - IVMRMixerControl * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ DWORD dwZ); - - -void __RPC_STUB IVMRMixerControl_SetZOrder_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl_GetZOrder_Proxy( - IVMRMixerControl * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ DWORD *pZ); - - -void __RPC_STUB IVMRMixerControl_GetZOrder_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl_SetOutputRect_Proxy( - IVMRMixerControl * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ const NORMALIZEDRECT *pRect); - - -void __RPC_STUB IVMRMixerControl_SetOutputRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl_GetOutputRect_Proxy( - IVMRMixerControl * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ NORMALIZEDRECT *pRect); - - -void __RPC_STUB IVMRMixerControl_GetOutputRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl_SetBackgroundClr_Proxy( - IVMRMixerControl * This, - /* [in] */ COLORREF ClrBkg); - - -void __RPC_STUB IVMRMixerControl_SetBackgroundClr_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl_GetBackgroundClr_Proxy( - IVMRMixerControl * This, - /* [in] */ COLORREF *lpClrBkg); - - -void __RPC_STUB IVMRMixerControl_GetBackgroundClr_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl_SetMixingPrefs_Proxy( - IVMRMixerControl * This, - /* [in] */ DWORD dwMixerPrefs); - - -void __RPC_STUB IVMRMixerControl_SetMixingPrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl_GetMixingPrefs_Proxy( - IVMRMixerControl * This, - /* [out] */ DWORD *pdwMixerPrefs); - - -void __RPC_STUB IVMRMixerControl_GetMixingPrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRMixerControl_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0392 */ -/* [local] */ - -typedef struct tagVMRGUID - { - GUID *pGUID; - GUID GUID; - } VMRGUID; - -typedef struct tagVMRMONITORINFO - { - VMRGUID guid; - RECT rcMonitor; - HMONITOR hMon; - DWORD dwFlags; - wchar_t szDevice[ 32 ]; - wchar_t szDescription[ 256 ]; - LARGE_INTEGER liDriverVersion; - DWORD dwVendorId; - DWORD dwDeviceId; - DWORD dwSubSysId; - DWORD dwRevision; - } VMRMONITORINFO; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0392_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0392_v0_0_s_ifspec; - -#ifndef __IVMRMonitorConfig_INTERFACE_DEFINED__ -#define __IVMRMonitorConfig_INTERFACE_DEFINED__ - -/* interface IVMRMonitorConfig */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IVMRMonitorConfig; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9cf0b1b6-fbaa-4b7f-88cf-cf1f130a0dce") - IVMRMonitorConfig : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetMonitor( - /* [in] */ const VMRGUID *pGUID) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMonitor( - /* [out] */ VMRGUID *pGUID) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDefaultMonitor( - /* [in] */ const VMRGUID *pGUID) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultMonitor( - /* [out] */ VMRGUID *pGUID) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAvailableMonitors( - /* [size_is][out] */ VMRMONITORINFO *pInfo, - /* [in] */ DWORD dwMaxInfoArraySize, - /* [out] */ DWORD *pdwNumDevices) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRMonitorConfigVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRMonitorConfig * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRMonitorConfig * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRMonitorConfig * This); - - HRESULT ( STDMETHODCALLTYPE *SetMonitor )( - IVMRMonitorConfig * This, - /* [in] */ const VMRGUID *pGUID); - - HRESULT ( STDMETHODCALLTYPE *GetMonitor )( - IVMRMonitorConfig * This, - /* [out] */ VMRGUID *pGUID); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultMonitor )( - IVMRMonitorConfig * This, - /* [in] */ const VMRGUID *pGUID); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultMonitor )( - IVMRMonitorConfig * This, - /* [out] */ VMRGUID *pGUID); - - HRESULT ( STDMETHODCALLTYPE *GetAvailableMonitors )( - IVMRMonitorConfig * This, - /* [size_is][out] */ VMRMONITORINFO *pInfo, - /* [in] */ DWORD dwMaxInfoArraySize, - /* [out] */ DWORD *pdwNumDevices); - - END_INTERFACE - } IVMRMonitorConfigVtbl; - - interface IVMRMonitorConfig - { - CONST_VTBL struct IVMRMonitorConfigVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRMonitorConfig_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRMonitorConfig_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRMonitorConfig_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRMonitorConfig_SetMonitor(This,pGUID) \ - (This)->lpVtbl -> SetMonitor(This,pGUID) - -#define IVMRMonitorConfig_GetMonitor(This,pGUID) \ - (This)->lpVtbl -> GetMonitor(This,pGUID) - -#define IVMRMonitorConfig_SetDefaultMonitor(This,pGUID) \ - (This)->lpVtbl -> SetDefaultMonitor(This,pGUID) - -#define IVMRMonitorConfig_GetDefaultMonitor(This,pGUID) \ - (This)->lpVtbl -> GetDefaultMonitor(This,pGUID) - -#define IVMRMonitorConfig_GetAvailableMonitors(This,pInfo,dwMaxInfoArraySize,pdwNumDevices) \ - (This)->lpVtbl -> GetAvailableMonitors(This,pInfo,dwMaxInfoArraySize,pdwNumDevices) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRMonitorConfig_SetMonitor_Proxy( - IVMRMonitorConfig * This, - /* [in] */ const VMRGUID *pGUID); - - -void __RPC_STUB IVMRMonitorConfig_SetMonitor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMonitorConfig_GetMonitor_Proxy( - IVMRMonitorConfig * This, - /* [out] */ VMRGUID *pGUID); - - -void __RPC_STUB IVMRMonitorConfig_GetMonitor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMonitorConfig_SetDefaultMonitor_Proxy( - IVMRMonitorConfig * This, - /* [in] */ const VMRGUID *pGUID); - - -void __RPC_STUB IVMRMonitorConfig_SetDefaultMonitor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMonitorConfig_GetDefaultMonitor_Proxy( - IVMRMonitorConfig * This, - /* [out] */ VMRGUID *pGUID); - - -void __RPC_STUB IVMRMonitorConfig_GetDefaultMonitor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMonitorConfig_GetAvailableMonitors_Proxy( - IVMRMonitorConfig * This, - /* [size_is][out] */ VMRMONITORINFO *pInfo, - /* [in] */ DWORD dwMaxInfoArraySize, - /* [out] */ DWORD *pdwNumDevices); - - -void __RPC_STUB IVMRMonitorConfig_GetAvailableMonitors_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRMonitorConfig_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0393 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0393_0001 - { RenderPrefs_RestrictToInitialMonitor = 0, - RenderPrefs_ForceOffscreen = 0x1, - RenderPrefs_ForceOverlays = 0x2, - RenderPrefs_AllowOverlays = 0, - RenderPrefs_AllowOffscreen = 0, - RenderPrefs_DoNotRenderColorKeyAndBorder = 0x8, - RenderPrefs_Reserved = 0x10, - RenderPrefs_PreferAGPMemWhenMixing = 0x20, - RenderPrefs_Mask = 0x3f - } VMRRenderPrefs; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0393_0002 - { VMRMode_Windowed = 0x1, - VMRMode_Windowless = 0x2, - VMRMode_Renderless = 0x4, - VMRMode_Mask = 0x7 - } VMRMode; - - -enum __MIDL___MIDL_itf_strmif_0393_0003 - { MAX_NUMBER_OF_STREAMS = 16 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0393_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0393_v0_0_s_ifspec; - -#ifndef __IVMRFilterConfig_INTERFACE_DEFINED__ -#define __IVMRFilterConfig_INTERFACE_DEFINED__ - -/* interface IVMRFilterConfig */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IVMRFilterConfig; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9e5530c5-7034-48b4-bb46-0b8a6efc8e36") - IVMRFilterConfig : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetImageCompositor( - /* [in] */ IVMRImageCompositor *lpVMRImgCompositor) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetNumberOfStreams( - /* [in] */ DWORD dwMaxStreams) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNumberOfStreams( - /* [out] */ DWORD *pdwMaxStreams) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRenderingPrefs( - /* [in] */ DWORD dwRenderFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRenderingPrefs( - /* [out] */ DWORD *pdwRenderFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRenderingMode( - /* [in] */ DWORD Mode) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRenderingMode( - /* [out] */ DWORD *pMode) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRFilterConfigVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRFilterConfig * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRFilterConfig * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRFilterConfig * This); - - HRESULT ( STDMETHODCALLTYPE *SetImageCompositor )( - IVMRFilterConfig * This, - /* [in] */ IVMRImageCompositor *lpVMRImgCompositor); - - HRESULT ( STDMETHODCALLTYPE *SetNumberOfStreams )( - IVMRFilterConfig * This, - /* [in] */ DWORD dwMaxStreams); - - HRESULT ( STDMETHODCALLTYPE *GetNumberOfStreams )( - IVMRFilterConfig * This, - /* [out] */ DWORD *pdwMaxStreams); - - HRESULT ( STDMETHODCALLTYPE *SetRenderingPrefs )( - IVMRFilterConfig * This, - /* [in] */ DWORD dwRenderFlags); - - HRESULT ( STDMETHODCALLTYPE *GetRenderingPrefs )( - IVMRFilterConfig * This, - /* [out] */ DWORD *pdwRenderFlags); - - HRESULT ( STDMETHODCALLTYPE *SetRenderingMode )( - IVMRFilterConfig * This, - /* [in] */ DWORD Mode); - - HRESULT ( STDMETHODCALLTYPE *GetRenderingMode )( - IVMRFilterConfig * This, - /* [out] */ DWORD *pMode); - - END_INTERFACE - } IVMRFilterConfigVtbl; - - interface IVMRFilterConfig - { - CONST_VTBL struct IVMRFilterConfigVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRFilterConfig_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRFilterConfig_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRFilterConfig_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRFilterConfig_SetImageCompositor(This,lpVMRImgCompositor) \ - (This)->lpVtbl -> SetImageCompositor(This,lpVMRImgCompositor) - -#define IVMRFilterConfig_SetNumberOfStreams(This,dwMaxStreams) \ - (This)->lpVtbl -> SetNumberOfStreams(This,dwMaxStreams) - -#define IVMRFilterConfig_GetNumberOfStreams(This,pdwMaxStreams) \ - (This)->lpVtbl -> GetNumberOfStreams(This,pdwMaxStreams) - -#define IVMRFilterConfig_SetRenderingPrefs(This,dwRenderFlags) \ - (This)->lpVtbl -> SetRenderingPrefs(This,dwRenderFlags) - -#define IVMRFilterConfig_GetRenderingPrefs(This,pdwRenderFlags) \ - (This)->lpVtbl -> GetRenderingPrefs(This,pdwRenderFlags) - -#define IVMRFilterConfig_SetRenderingMode(This,Mode) \ - (This)->lpVtbl -> SetRenderingMode(This,Mode) - -#define IVMRFilterConfig_GetRenderingMode(This,pMode) \ - (This)->lpVtbl -> GetRenderingMode(This,pMode) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig_SetImageCompositor_Proxy( - IVMRFilterConfig * This, - /* [in] */ IVMRImageCompositor *lpVMRImgCompositor); - - -void __RPC_STUB IVMRFilterConfig_SetImageCompositor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig_SetNumberOfStreams_Proxy( - IVMRFilterConfig * This, - /* [in] */ DWORD dwMaxStreams); - - -void __RPC_STUB IVMRFilterConfig_SetNumberOfStreams_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig_GetNumberOfStreams_Proxy( - IVMRFilterConfig * This, - /* [out] */ DWORD *pdwMaxStreams); - - -void __RPC_STUB IVMRFilterConfig_GetNumberOfStreams_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig_SetRenderingPrefs_Proxy( - IVMRFilterConfig * This, - /* [in] */ DWORD dwRenderFlags); - - -void __RPC_STUB IVMRFilterConfig_SetRenderingPrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig_GetRenderingPrefs_Proxy( - IVMRFilterConfig * This, - /* [out] */ DWORD *pdwRenderFlags); - - -void __RPC_STUB IVMRFilterConfig_GetRenderingPrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig_SetRenderingMode_Proxy( - IVMRFilterConfig * This, - /* [in] */ DWORD Mode); - - -void __RPC_STUB IVMRFilterConfig_SetRenderingMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig_GetRenderingMode_Proxy( - IVMRFilterConfig * This, - /* [out] */ DWORD *pMode); - - -void __RPC_STUB IVMRFilterConfig_GetRenderingMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRFilterConfig_INTERFACE_DEFINED__ */ - - -#ifndef __IVMRAspectRatioControl_INTERFACE_DEFINED__ -#define __IVMRAspectRatioControl_INTERFACE_DEFINED__ - -/* interface IVMRAspectRatioControl */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IVMRAspectRatioControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("ede80b5c-bad6-4623-b537-65586c9f8dfd") - IVMRAspectRatioControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetAspectRatioMode( - /* [out] */ LPDWORD lpdwARMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetAspectRatioMode( - /* [in] */ DWORD dwARMode) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRAspectRatioControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRAspectRatioControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRAspectRatioControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRAspectRatioControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetAspectRatioMode )( - IVMRAspectRatioControl * This, - /* [out] */ LPDWORD lpdwARMode); - - HRESULT ( STDMETHODCALLTYPE *SetAspectRatioMode )( - IVMRAspectRatioControl * This, - /* [in] */ DWORD dwARMode); - - END_INTERFACE - } IVMRAspectRatioControlVtbl; - - interface IVMRAspectRatioControl - { - CONST_VTBL struct IVMRAspectRatioControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRAspectRatioControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRAspectRatioControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRAspectRatioControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRAspectRatioControl_GetAspectRatioMode(This,lpdwARMode) \ - (This)->lpVtbl -> GetAspectRatioMode(This,lpdwARMode) - -#define IVMRAspectRatioControl_SetAspectRatioMode(This,dwARMode) \ - (This)->lpVtbl -> SetAspectRatioMode(This,dwARMode) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRAspectRatioControl_GetAspectRatioMode_Proxy( - IVMRAspectRatioControl * This, - /* [out] */ LPDWORD lpdwARMode); - - -void __RPC_STUB IVMRAspectRatioControl_GetAspectRatioMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRAspectRatioControl_SetAspectRatioMode_Proxy( - IVMRAspectRatioControl * This, - /* [in] */ DWORD dwARMode); - - -void __RPC_STUB IVMRAspectRatioControl_SetAspectRatioMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRAspectRatioControl_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0395 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_strmif_0395_0001 - { DeinterlacePref_NextBest = 0x1, - DeinterlacePref_BOB = 0x2, - DeinterlacePref_Weave = 0x4, - DeinterlacePref_Mask = 0x7 - } VMRDeinterlacePrefs; - -typedef /* [public][public][public] */ -enum __MIDL___MIDL_itf_strmif_0395_0002 - { DeinterlaceTech_Unknown = 0, - DeinterlaceTech_BOBLineReplicate = 0x1, - DeinterlaceTech_BOBVerticalStretch = 0x2, - DeinterlaceTech_MedianFiltering = 0x4, - DeinterlaceTech_EdgeFiltering = 0x10, - DeinterlaceTech_FieldAdaptive = 0x20, - DeinterlaceTech_PixelAdaptive = 0x40, - DeinterlaceTech_MotionVectorSteered = 0x80 - } VMRDeinterlaceTech; - -typedef struct _VMRFrequency - { - DWORD dwNumerator; - DWORD dwDenominator; - } VMRFrequency; - -typedef struct _VMRVideoDesc - { - DWORD dwSize; - DWORD dwSampleWidth; - DWORD dwSampleHeight; - BOOL SingleFieldPerSample; - DWORD dwFourCC; - VMRFrequency InputSampleFreq; - VMRFrequency OutputFrameFreq; - } VMRVideoDesc; - -typedef struct _VMRDeinterlaceCaps - { - DWORD dwSize; - DWORD dwNumPreviousOutputFrames; - DWORD dwNumForwardRefSamples; - DWORD dwNumBackwardRefSamples; - VMRDeinterlaceTech DeinterlaceTechnology; - } VMRDeinterlaceCaps; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0395_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0395_v0_0_s_ifspec; - -#ifndef __IVMRDeinterlaceControl_INTERFACE_DEFINED__ -#define __IVMRDeinterlaceControl_INTERFACE_DEFINED__ - -/* interface IVMRDeinterlaceControl */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IVMRDeinterlaceControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("bb057577-0db8-4e6a-87a7-1a8c9a505a0f") - IVMRDeinterlaceControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetNumberOfDeinterlaceModes( - /* [in] */ VMRVideoDesc *lpVideoDescription, - /* [out][in] */ LPDWORD lpdwNumDeinterlaceModes, - /* [out] */ LPGUID lpDeinterlaceModes) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDeinterlaceModeCaps( - /* [in] */ LPGUID lpDeinterlaceMode, - /* [in] */ VMRVideoDesc *lpVideoDescription, - /* [out][in] */ VMRDeinterlaceCaps *lpDeinterlaceCaps) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDeinterlaceMode( - /* [in] */ DWORD dwStreamID, - /* [out] */ LPGUID lpDeinterlaceMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDeinterlaceMode( - /* [in] */ DWORD dwStreamID, - /* [in] */ LPGUID lpDeinterlaceMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDeinterlacePrefs( - /* [out] */ LPDWORD lpdwDeinterlacePrefs) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDeinterlacePrefs( - /* [in] */ DWORD dwDeinterlacePrefs) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetActualDeinterlaceMode( - /* [in] */ DWORD dwStreamID, - /* [out] */ LPGUID lpDeinterlaceMode) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRDeinterlaceControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRDeinterlaceControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRDeinterlaceControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRDeinterlaceControl * This); - - HRESULT ( STDMETHODCALLTYPE *GetNumberOfDeinterlaceModes )( - IVMRDeinterlaceControl * This, - /* [in] */ VMRVideoDesc *lpVideoDescription, - /* [out][in] */ LPDWORD lpdwNumDeinterlaceModes, - /* [out] */ LPGUID lpDeinterlaceModes); - - HRESULT ( STDMETHODCALLTYPE *GetDeinterlaceModeCaps )( - IVMRDeinterlaceControl * This, - /* [in] */ LPGUID lpDeinterlaceMode, - /* [in] */ VMRVideoDesc *lpVideoDescription, - /* [out][in] */ VMRDeinterlaceCaps *lpDeinterlaceCaps); - - HRESULT ( STDMETHODCALLTYPE *GetDeinterlaceMode )( - IVMRDeinterlaceControl * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ LPGUID lpDeinterlaceMode); - - HRESULT ( STDMETHODCALLTYPE *SetDeinterlaceMode )( - IVMRDeinterlaceControl * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ LPGUID lpDeinterlaceMode); - - HRESULT ( STDMETHODCALLTYPE *GetDeinterlacePrefs )( - IVMRDeinterlaceControl * This, - /* [out] */ LPDWORD lpdwDeinterlacePrefs); - - HRESULT ( STDMETHODCALLTYPE *SetDeinterlacePrefs )( - IVMRDeinterlaceControl * This, - /* [in] */ DWORD dwDeinterlacePrefs); - - HRESULT ( STDMETHODCALLTYPE *GetActualDeinterlaceMode )( - IVMRDeinterlaceControl * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ LPGUID lpDeinterlaceMode); - - END_INTERFACE - } IVMRDeinterlaceControlVtbl; - - interface IVMRDeinterlaceControl - { - CONST_VTBL struct IVMRDeinterlaceControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRDeinterlaceControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRDeinterlaceControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRDeinterlaceControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRDeinterlaceControl_GetNumberOfDeinterlaceModes(This,lpVideoDescription,lpdwNumDeinterlaceModes,lpDeinterlaceModes) \ - (This)->lpVtbl -> GetNumberOfDeinterlaceModes(This,lpVideoDescription,lpdwNumDeinterlaceModes,lpDeinterlaceModes) - -#define IVMRDeinterlaceControl_GetDeinterlaceModeCaps(This,lpDeinterlaceMode,lpVideoDescription,lpDeinterlaceCaps) \ - (This)->lpVtbl -> GetDeinterlaceModeCaps(This,lpDeinterlaceMode,lpVideoDescription,lpDeinterlaceCaps) - -#define IVMRDeinterlaceControl_GetDeinterlaceMode(This,dwStreamID,lpDeinterlaceMode) \ - (This)->lpVtbl -> GetDeinterlaceMode(This,dwStreamID,lpDeinterlaceMode) - -#define IVMRDeinterlaceControl_SetDeinterlaceMode(This,dwStreamID,lpDeinterlaceMode) \ - (This)->lpVtbl -> SetDeinterlaceMode(This,dwStreamID,lpDeinterlaceMode) - -#define IVMRDeinterlaceControl_GetDeinterlacePrefs(This,lpdwDeinterlacePrefs) \ - (This)->lpVtbl -> GetDeinterlacePrefs(This,lpdwDeinterlacePrefs) - -#define IVMRDeinterlaceControl_SetDeinterlacePrefs(This,dwDeinterlacePrefs) \ - (This)->lpVtbl -> SetDeinterlacePrefs(This,dwDeinterlacePrefs) - -#define IVMRDeinterlaceControl_GetActualDeinterlaceMode(This,dwStreamID,lpDeinterlaceMode) \ - (This)->lpVtbl -> GetActualDeinterlaceMode(This,dwStreamID,lpDeinterlaceMode) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl_GetNumberOfDeinterlaceModes_Proxy( - IVMRDeinterlaceControl * This, - /* [in] */ VMRVideoDesc *lpVideoDescription, - /* [out][in] */ LPDWORD lpdwNumDeinterlaceModes, - /* [out] */ LPGUID lpDeinterlaceModes); - - -void __RPC_STUB IVMRDeinterlaceControl_GetNumberOfDeinterlaceModes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl_GetDeinterlaceModeCaps_Proxy( - IVMRDeinterlaceControl * This, - /* [in] */ LPGUID lpDeinterlaceMode, - /* [in] */ VMRVideoDesc *lpVideoDescription, - /* [out][in] */ VMRDeinterlaceCaps *lpDeinterlaceCaps); - - -void __RPC_STUB IVMRDeinterlaceControl_GetDeinterlaceModeCaps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl_GetDeinterlaceMode_Proxy( - IVMRDeinterlaceControl * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ LPGUID lpDeinterlaceMode); - - -void __RPC_STUB IVMRDeinterlaceControl_GetDeinterlaceMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl_SetDeinterlaceMode_Proxy( - IVMRDeinterlaceControl * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ LPGUID lpDeinterlaceMode); - - -void __RPC_STUB IVMRDeinterlaceControl_SetDeinterlaceMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl_GetDeinterlacePrefs_Proxy( - IVMRDeinterlaceControl * This, - /* [out] */ LPDWORD lpdwDeinterlacePrefs); - - -void __RPC_STUB IVMRDeinterlaceControl_GetDeinterlacePrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl_SetDeinterlacePrefs_Proxy( - IVMRDeinterlaceControl * This, - /* [in] */ DWORD dwDeinterlacePrefs); - - -void __RPC_STUB IVMRDeinterlaceControl_SetDeinterlacePrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl_GetActualDeinterlaceMode_Proxy( - IVMRDeinterlaceControl * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ LPGUID lpDeinterlaceMode); - - -void __RPC_STUB IVMRDeinterlaceControl_GetActualDeinterlaceMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRDeinterlaceControl_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0396 */ -/* [local] */ - -typedef struct _VMRALPHABITMAP - { - DWORD dwFlags; - HDC hdc; - LPDIRECTDRAWSURFACE7 pDDS; - RECT rSrc; - NORMALIZEDRECT rDest; - FLOAT fAlpha; - COLORREF clrSrcKey; - } VMRALPHABITMAP; - -typedef struct _VMRALPHABITMAP *PVMRALPHABITMAP; - -#define VMRBITMAP_DISABLE 0x00000001 -#define VMRBITMAP_HDC 0x00000002 -#define VMRBITMAP_ENTIREDDS 0x00000004 -#define VMRBITMAP_SRCCOLORKEY 0x00000008 -#define VMRBITMAP_SRCRECT 0x00000010 - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0396_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0396_v0_0_s_ifspec; - -#ifndef __IVMRMixerBitmap_INTERFACE_DEFINED__ -#define __IVMRMixerBitmap_INTERFACE_DEFINED__ - -/* interface IVMRMixerBitmap */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IVMRMixerBitmap; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1E673275-0257-40aa-AF20-7C608D4A0428") - IVMRMixerBitmap : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetAlphaBitmap( - /* [in] */ const VMRALPHABITMAP *pBmpParms) = 0; - - virtual HRESULT STDMETHODCALLTYPE UpdateAlphaBitmapParameters( - /* [in] */ PVMRALPHABITMAP pBmpParms) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAlphaBitmapParameters( - /* [out] */ PVMRALPHABITMAP pBmpParms) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRMixerBitmapVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRMixerBitmap * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRMixerBitmap * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRMixerBitmap * This); - - HRESULT ( STDMETHODCALLTYPE *SetAlphaBitmap )( - IVMRMixerBitmap * This, - /* [in] */ const VMRALPHABITMAP *pBmpParms); - - HRESULT ( STDMETHODCALLTYPE *UpdateAlphaBitmapParameters )( - IVMRMixerBitmap * This, - /* [in] */ PVMRALPHABITMAP pBmpParms); - - HRESULT ( STDMETHODCALLTYPE *GetAlphaBitmapParameters )( - IVMRMixerBitmap * This, - /* [out] */ PVMRALPHABITMAP pBmpParms); - - END_INTERFACE - } IVMRMixerBitmapVtbl; - - interface IVMRMixerBitmap - { - CONST_VTBL struct IVMRMixerBitmapVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRMixerBitmap_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRMixerBitmap_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRMixerBitmap_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRMixerBitmap_SetAlphaBitmap(This,pBmpParms) \ - (This)->lpVtbl -> SetAlphaBitmap(This,pBmpParms) - -#define IVMRMixerBitmap_UpdateAlphaBitmapParameters(This,pBmpParms) \ - (This)->lpVtbl -> UpdateAlphaBitmapParameters(This,pBmpParms) - -#define IVMRMixerBitmap_GetAlphaBitmapParameters(This,pBmpParms) \ - (This)->lpVtbl -> GetAlphaBitmapParameters(This,pBmpParms) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRMixerBitmap_SetAlphaBitmap_Proxy( - IVMRMixerBitmap * This, - /* [in] */ const VMRALPHABITMAP *pBmpParms); - - -void __RPC_STUB IVMRMixerBitmap_SetAlphaBitmap_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerBitmap_UpdateAlphaBitmapParameters_Proxy( - IVMRMixerBitmap * This, - /* [in] */ PVMRALPHABITMAP pBmpParms); - - -void __RPC_STUB IVMRMixerBitmap_UpdateAlphaBitmapParameters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerBitmap_GetAlphaBitmapParameters_Proxy( - IVMRMixerBitmap * This, - /* [out] */ PVMRALPHABITMAP pBmpParms); - - -void __RPC_STUB IVMRMixerBitmap_GetAlphaBitmapParameters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRMixerBitmap_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0397 */ -/* [local] */ - -typedef struct _VMRVIDEOSTREAMINFO - { - LPDIRECTDRAWSURFACE7 pddsVideoSurface; - DWORD dwWidth; - DWORD dwHeight; - DWORD dwStrmID; - FLOAT fAlpha; - DDCOLORKEY ddClrKey; - NORMALIZEDRECT rNormal; - } VMRVIDEOSTREAMINFO; - - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0397_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0397_v0_0_s_ifspec; - -#ifndef __IVMRImageCompositor_INTERFACE_DEFINED__ -#define __IVMRImageCompositor_INTERFACE_DEFINED__ - -/* interface IVMRImageCompositor */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRImageCompositor; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("7a4fb5af-479f-4074-bb40-ce6722e43c82") - IVMRImageCompositor : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE InitCompositionTarget( - /* [in] */ IUnknown *pD3DDevice, - /* [in] */ LPDIRECTDRAWSURFACE7 pddsRenderTarget) = 0; - - virtual HRESULT STDMETHODCALLTYPE TermCompositionTarget( - /* [in] */ IUnknown *pD3DDevice, - /* [in] */ LPDIRECTDRAWSURFACE7 pddsRenderTarget) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetStreamMediaType( - /* [in] */ DWORD dwStrmID, - /* [in] */ AM_MEDIA_TYPE *pmt, - /* [in] */ BOOL fTexture) = 0; - - virtual HRESULT STDMETHODCALLTYPE CompositeImage( - /* [in] */ IUnknown *pD3DDevice, - /* [in] */ LPDIRECTDRAWSURFACE7 pddsRenderTarget, - /* [in] */ AM_MEDIA_TYPE *pmtRenderTarget, - /* [in] */ REFERENCE_TIME rtStart, - /* [in] */ REFERENCE_TIME rtEnd, - /* [in] */ DWORD dwClrBkGnd, - /* [in] */ VMRVIDEOSTREAMINFO *pVideoStreamInfo, - /* [in] */ UINT cStreams) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRImageCompositorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRImageCompositor * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRImageCompositor * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRImageCompositor * This); - - HRESULT ( STDMETHODCALLTYPE *InitCompositionTarget )( - IVMRImageCompositor * This, - /* [in] */ IUnknown *pD3DDevice, - /* [in] */ LPDIRECTDRAWSURFACE7 pddsRenderTarget); - - HRESULT ( STDMETHODCALLTYPE *TermCompositionTarget )( - IVMRImageCompositor * This, - /* [in] */ IUnknown *pD3DDevice, - /* [in] */ LPDIRECTDRAWSURFACE7 pddsRenderTarget); - - HRESULT ( STDMETHODCALLTYPE *SetStreamMediaType )( - IVMRImageCompositor * This, - /* [in] */ DWORD dwStrmID, - /* [in] */ AM_MEDIA_TYPE *pmt, - /* [in] */ BOOL fTexture); - - HRESULT ( STDMETHODCALLTYPE *CompositeImage )( - IVMRImageCompositor * This, - /* [in] */ IUnknown *pD3DDevice, - /* [in] */ LPDIRECTDRAWSURFACE7 pddsRenderTarget, - /* [in] */ AM_MEDIA_TYPE *pmtRenderTarget, - /* [in] */ REFERENCE_TIME rtStart, - /* [in] */ REFERENCE_TIME rtEnd, - /* [in] */ DWORD dwClrBkGnd, - /* [in] */ VMRVIDEOSTREAMINFO *pVideoStreamInfo, - /* [in] */ UINT cStreams); - - END_INTERFACE - } IVMRImageCompositorVtbl; - - interface IVMRImageCompositor - { - CONST_VTBL struct IVMRImageCompositorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRImageCompositor_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRImageCompositor_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRImageCompositor_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRImageCompositor_InitCompositionTarget(This,pD3DDevice,pddsRenderTarget) \ - (This)->lpVtbl -> InitCompositionTarget(This,pD3DDevice,pddsRenderTarget) - -#define IVMRImageCompositor_TermCompositionTarget(This,pD3DDevice,pddsRenderTarget) \ - (This)->lpVtbl -> TermCompositionTarget(This,pD3DDevice,pddsRenderTarget) - -#define IVMRImageCompositor_SetStreamMediaType(This,dwStrmID,pmt,fTexture) \ - (This)->lpVtbl -> SetStreamMediaType(This,dwStrmID,pmt,fTexture) - -#define IVMRImageCompositor_CompositeImage(This,pD3DDevice,pddsRenderTarget,pmtRenderTarget,rtStart,rtEnd,dwClrBkGnd,pVideoStreamInfo,cStreams) \ - (This)->lpVtbl -> CompositeImage(This,pD3DDevice,pddsRenderTarget,pmtRenderTarget,rtStart,rtEnd,dwClrBkGnd,pVideoStreamInfo,cStreams) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRImageCompositor_InitCompositionTarget_Proxy( - IVMRImageCompositor * This, - /* [in] */ IUnknown *pD3DDevice, - /* [in] */ LPDIRECTDRAWSURFACE7 pddsRenderTarget); - - -void __RPC_STUB IVMRImageCompositor_InitCompositionTarget_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImageCompositor_TermCompositionTarget_Proxy( - IVMRImageCompositor * This, - /* [in] */ IUnknown *pD3DDevice, - /* [in] */ LPDIRECTDRAWSURFACE7 pddsRenderTarget); - - -void __RPC_STUB IVMRImageCompositor_TermCompositionTarget_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImageCompositor_SetStreamMediaType_Proxy( - IVMRImageCompositor * This, - /* [in] */ DWORD dwStrmID, - /* [in] */ AM_MEDIA_TYPE *pmt, - /* [in] */ BOOL fTexture); - - -void __RPC_STUB IVMRImageCompositor_SetStreamMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImageCompositor_CompositeImage_Proxy( - IVMRImageCompositor * This, - /* [in] */ IUnknown *pD3DDevice, - /* [in] */ LPDIRECTDRAWSURFACE7 pddsRenderTarget, - /* [in] */ AM_MEDIA_TYPE *pmtRenderTarget, - /* [in] */ REFERENCE_TIME rtStart, - /* [in] */ REFERENCE_TIME rtEnd, - /* [in] */ DWORD dwClrBkGnd, - /* [in] */ VMRVIDEOSTREAMINFO *pVideoStreamInfo, - /* [in] */ UINT cStreams); - - -void __RPC_STUB IVMRImageCompositor_CompositeImage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRImageCompositor_INTERFACE_DEFINED__ */ - - -#ifndef __IVMRVideoStreamControl_INTERFACE_DEFINED__ -#define __IVMRVideoStreamControl_INTERFACE_DEFINED__ - -/* interface IVMRVideoStreamControl */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IVMRVideoStreamControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("058d1f11-2a54-4bef-bd54-df706626b727") - IVMRVideoStreamControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetColorKey( - /* [in] */ LPDDCOLORKEY lpClrKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetColorKey( - /* [out] */ LPDDCOLORKEY lpClrKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetStreamActiveState( - /* [in] */ BOOL fActive) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStreamActiveState( - /* [out] */ BOOL *lpfActive) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRVideoStreamControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRVideoStreamControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRVideoStreamControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRVideoStreamControl * This); - - HRESULT ( STDMETHODCALLTYPE *SetColorKey )( - IVMRVideoStreamControl * This, - /* [in] */ LPDDCOLORKEY lpClrKey); - - HRESULT ( STDMETHODCALLTYPE *GetColorKey )( - IVMRVideoStreamControl * This, - /* [out] */ LPDDCOLORKEY lpClrKey); - - HRESULT ( STDMETHODCALLTYPE *SetStreamActiveState )( - IVMRVideoStreamControl * This, - /* [in] */ BOOL fActive); - - HRESULT ( STDMETHODCALLTYPE *GetStreamActiveState )( - IVMRVideoStreamControl * This, - /* [out] */ BOOL *lpfActive); - - END_INTERFACE - } IVMRVideoStreamControlVtbl; - - interface IVMRVideoStreamControl - { - CONST_VTBL struct IVMRVideoStreamControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRVideoStreamControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRVideoStreamControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRVideoStreamControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRVideoStreamControl_SetColorKey(This,lpClrKey) \ - (This)->lpVtbl -> SetColorKey(This,lpClrKey) - -#define IVMRVideoStreamControl_GetColorKey(This,lpClrKey) \ - (This)->lpVtbl -> GetColorKey(This,lpClrKey) - -#define IVMRVideoStreamControl_SetStreamActiveState(This,fActive) \ - (This)->lpVtbl -> SetStreamActiveState(This,fActive) - -#define IVMRVideoStreamControl_GetStreamActiveState(This,lpfActive) \ - (This)->lpVtbl -> GetStreamActiveState(This,lpfActive) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRVideoStreamControl_SetColorKey_Proxy( - IVMRVideoStreamControl * This, - /* [in] */ LPDDCOLORKEY lpClrKey); - - -void __RPC_STUB IVMRVideoStreamControl_SetColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRVideoStreamControl_GetColorKey_Proxy( - IVMRVideoStreamControl * This, - /* [out] */ LPDDCOLORKEY lpClrKey); - - -void __RPC_STUB IVMRVideoStreamControl_GetColorKey_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRVideoStreamControl_SetStreamActiveState_Proxy( - IVMRVideoStreamControl * This, - /* [in] */ BOOL fActive); - - -void __RPC_STUB IVMRVideoStreamControl_SetStreamActiveState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRVideoStreamControl_GetStreamActiveState_Proxy( - IVMRVideoStreamControl * This, - /* [out] */ BOOL *lpfActive); - - -void __RPC_STUB IVMRVideoStreamControl_GetStreamActiveState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRVideoStreamControl_INTERFACE_DEFINED__ */ - - -#ifndef __IVMRSurface_INTERFACE_DEFINED__ -#define __IVMRSurface_INTERFACE_DEFINED__ - -/* interface IVMRSurface */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRSurface; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("a9849bbe-9ec8-4263-b764-62730f0d15d0") - IVMRSurface : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE IsSurfaceLocked( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE LockSurface( - /* [out] */ BYTE **lpSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnlockSurface( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSurface( - /* [out] */ LPDIRECTDRAWSURFACE7 *lplpSurface) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRSurfaceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRSurface * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRSurface * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRSurface * This); - - HRESULT ( STDMETHODCALLTYPE *IsSurfaceLocked )( - IVMRSurface * This); - - HRESULT ( STDMETHODCALLTYPE *LockSurface )( - IVMRSurface * This, - /* [out] */ BYTE **lpSurface); - - HRESULT ( STDMETHODCALLTYPE *UnlockSurface )( - IVMRSurface * This); - - HRESULT ( STDMETHODCALLTYPE *GetSurface )( - IVMRSurface * This, - /* [out] */ LPDIRECTDRAWSURFACE7 *lplpSurface); - - END_INTERFACE - } IVMRSurfaceVtbl; - - interface IVMRSurface - { - CONST_VTBL struct IVMRSurfaceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRSurface_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRSurface_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRSurface_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRSurface_IsSurfaceLocked(This) \ - (This)->lpVtbl -> IsSurfaceLocked(This) - -#define IVMRSurface_LockSurface(This,lpSurface) \ - (This)->lpVtbl -> LockSurface(This,lpSurface) - -#define IVMRSurface_UnlockSurface(This) \ - (This)->lpVtbl -> UnlockSurface(This) - -#define IVMRSurface_GetSurface(This,lplpSurface) \ - (This)->lpVtbl -> GetSurface(This,lplpSurface) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRSurface_IsSurfaceLocked_Proxy( - IVMRSurface * This); - - -void __RPC_STUB IVMRSurface_IsSurfaceLocked_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurface_LockSurface_Proxy( - IVMRSurface * This, - /* [out] */ BYTE **lpSurface); - - -void __RPC_STUB IVMRSurface_LockSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurface_UnlockSurface_Proxy( - IVMRSurface * This); - - -void __RPC_STUB IVMRSurface_UnlockSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurface_GetSurface_Proxy( - IVMRSurface * This, - /* [out] */ LPDIRECTDRAWSURFACE7 *lplpSurface); - - -void __RPC_STUB IVMRSurface_GetSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRSurface_INTERFACE_DEFINED__ */ - - -#ifndef __IVMRImagePresenterConfig_INTERFACE_DEFINED__ -#define __IVMRImagePresenterConfig_INTERFACE_DEFINED__ - -/* interface IVMRImagePresenterConfig */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRImagePresenterConfig; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("9f3a1c85-8555-49ba-935f-be5b5b29d178") - IVMRImagePresenterConfig : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetRenderingPrefs( - /* [in] */ DWORD dwRenderFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRenderingPrefs( - /* [out] */ DWORD *dwRenderFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRImagePresenterConfigVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRImagePresenterConfig * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRImagePresenterConfig * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRImagePresenterConfig * This); - - HRESULT ( STDMETHODCALLTYPE *SetRenderingPrefs )( - IVMRImagePresenterConfig * This, - /* [in] */ DWORD dwRenderFlags); - - HRESULT ( STDMETHODCALLTYPE *GetRenderingPrefs )( - IVMRImagePresenterConfig * This, - /* [out] */ DWORD *dwRenderFlags); - - END_INTERFACE - } IVMRImagePresenterConfigVtbl; - - interface IVMRImagePresenterConfig - { - CONST_VTBL struct IVMRImagePresenterConfigVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRImagePresenterConfig_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRImagePresenterConfig_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRImagePresenterConfig_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRImagePresenterConfig_SetRenderingPrefs(This,dwRenderFlags) \ - (This)->lpVtbl -> SetRenderingPrefs(This,dwRenderFlags) - -#define IVMRImagePresenterConfig_GetRenderingPrefs(This,dwRenderFlags) \ - (This)->lpVtbl -> GetRenderingPrefs(This,dwRenderFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRImagePresenterConfig_SetRenderingPrefs_Proxy( - IVMRImagePresenterConfig * This, - /* [in] */ DWORD dwRenderFlags); - - -void __RPC_STUB IVMRImagePresenterConfig_SetRenderingPrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImagePresenterConfig_GetRenderingPrefs_Proxy( - IVMRImagePresenterConfig * This, - /* [out] */ DWORD *dwRenderFlags); - - -void __RPC_STUB IVMRImagePresenterConfig_GetRenderingPrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRImagePresenterConfig_INTERFACE_DEFINED__ */ - - -#ifndef __IVMRImagePresenterExclModeConfig_INTERFACE_DEFINED__ -#define __IVMRImagePresenterExclModeConfig_INTERFACE_DEFINED__ - -/* interface IVMRImagePresenterExclModeConfig */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRImagePresenterExclModeConfig; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("e6f7ce40-4673-44f1-8f77-5499d68cb4ea") - IVMRImagePresenterExclModeConfig : public IVMRImagePresenterConfig - { - public: - virtual HRESULT STDMETHODCALLTYPE SetXlcModeDDObjAndPrimarySurface( - /* [in] */ LPDIRECTDRAW7 lpDDObj, - /* [in] */ LPDIRECTDRAWSURFACE7 lpPrimarySurf) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetXlcModeDDObjAndPrimarySurface( - /* [out] */ LPDIRECTDRAW7 *lpDDObj, - /* [out] */ LPDIRECTDRAWSURFACE7 *lpPrimarySurf) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRImagePresenterExclModeConfigVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRImagePresenterExclModeConfig * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRImagePresenterExclModeConfig * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRImagePresenterExclModeConfig * This); - - HRESULT ( STDMETHODCALLTYPE *SetRenderingPrefs )( - IVMRImagePresenterExclModeConfig * This, - /* [in] */ DWORD dwRenderFlags); - - HRESULT ( STDMETHODCALLTYPE *GetRenderingPrefs )( - IVMRImagePresenterExclModeConfig * This, - /* [out] */ DWORD *dwRenderFlags); - - HRESULT ( STDMETHODCALLTYPE *SetXlcModeDDObjAndPrimarySurface )( - IVMRImagePresenterExclModeConfig * This, - /* [in] */ LPDIRECTDRAW7 lpDDObj, - /* [in] */ LPDIRECTDRAWSURFACE7 lpPrimarySurf); - - HRESULT ( STDMETHODCALLTYPE *GetXlcModeDDObjAndPrimarySurface )( - IVMRImagePresenterExclModeConfig * This, - /* [out] */ LPDIRECTDRAW7 *lpDDObj, - /* [out] */ LPDIRECTDRAWSURFACE7 *lpPrimarySurf); - - END_INTERFACE - } IVMRImagePresenterExclModeConfigVtbl; - - interface IVMRImagePresenterExclModeConfig - { - CONST_VTBL struct IVMRImagePresenterExclModeConfigVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRImagePresenterExclModeConfig_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRImagePresenterExclModeConfig_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRImagePresenterExclModeConfig_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRImagePresenterExclModeConfig_SetRenderingPrefs(This,dwRenderFlags) \ - (This)->lpVtbl -> SetRenderingPrefs(This,dwRenderFlags) - -#define IVMRImagePresenterExclModeConfig_GetRenderingPrefs(This,dwRenderFlags) \ - (This)->lpVtbl -> GetRenderingPrefs(This,dwRenderFlags) - - -#define IVMRImagePresenterExclModeConfig_SetXlcModeDDObjAndPrimarySurface(This,lpDDObj,lpPrimarySurf) \ - (This)->lpVtbl -> SetXlcModeDDObjAndPrimarySurface(This,lpDDObj,lpPrimarySurf) - -#define IVMRImagePresenterExclModeConfig_GetXlcModeDDObjAndPrimarySurface(This,lpDDObj,lpPrimarySurf) \ - (This)->lpVtbl -> GetXlcModeDDObjAndPrimarySurface(This,lpDDObj,lpPrimarySurf) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRImagePresenterExclModeConfig_SetXlcModeDDObjAndPrimarySurface_Proxy( - IVMRImagePresenterExclModeConfig * This, - /* [in] */ LPDIRECTDRAW7 lpDDObj, - /* [in] */ LPDIRECTDRAWSURFACE7 lpPrimarySurf); - - -void __RPC_STUB IVMRImagePresenterExclModeConfig_SetXlcModeDDObjAndPrimarySurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImagePresenterExclModeConfig_GetXlcModeDDObjAndPrimarySurface_Proxy( - IVMRImagePresenterExclModeConfig * This, - /* [out] */ LPDIRECTDRAW7 *lpDDObj, - /* [out] */ LPDIRECTDRAWSURFACE7 *lpPrimarySurf); - - -void __RPC_STUB IVMRImagePresenterExclModeConfig_GetXlcModeDDObjAndPrimarySurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRImagePresenterExclModeConfig_INTERFACE_DEFINED__ */ - - -#ifndef __IVPManager_INTERFACE_DEFINED__ -#define __IVPManager_INTERFACE_DEFINED__ - -/* interface IVPManager */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVPManager; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("aac18c18-e186-46d2-825d-a1f8dc8e395a") - IVPManager : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetVideoPortIndex( - /* [in] */ DWORD dwVideoPortIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVideoPortIndex( - /* [out] */ DWORD *pdwVideoPortIndex) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVPManagerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVPManager * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVPManager * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVPManager * This); - - HRESULT ( STDMETHODCALLTYPE *SetVideoPortIndex )( - IVPManager * This, - /* [in] */ DWORD dwVideoPortIndex); - - HRESULT ( STDMETHODCALLTYPE *GetVideoPortIndex )( - IVPManager * This, - /* [out] */ DWORD *pdwVideoPortIndex); - - END_INTERFACE - } IVPManagerVtbl; - - interface IVPManager - { - CONST_VTBL struct IVPManagerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVPManager_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVPManager_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVPManager_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVPManager_SetVideoPortIndex(This,dwVideoPortIndex) \ - (This)->lpVtbl -> SetVideoPortIndex(This,dwVideoPortIndex) - -#define IVPManager_GetVideoPortIndex(This,pdwVideoPortIndex) \ - (This)->lpVtbl -> GetVideoPortIndex(This,pdwVideoPortIndex) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVPManager_SetVideoPortIndex_Proxy( - IVPManager * This, - /* [in] */ DWORD dwVideoPortIndex); - - -void __RPC_STUB IVPManager_SetVideoPortIndex_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVPManager_GetVideoPortIndex_Proxy( - IVPManager * This, - /* [out] */ DWORD *pdwVideoPortIndex); - - -void __RPC_STUB IVPManager_GetVideoPortIndex_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVPManager_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_strmif_0403 */ -/* [local] */ - -// Restore the previous setting for C4201 compiler warning -#pragma warning(pop) - - -extern RPC_IF_HANDLE __MIDL_itf_strmif_0403_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_strmif_0403_v0_0_s_ifspec; - -/* Additional Prototypes for ALL interfaces */ - -unsigned long __RPC_USER VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); -void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * ); - -/* [local] */ HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder_FindInterface_Proxy( - ICaptureGraphBuilder * This, - /* [unique][in] */ const GUID *pCategory, - /* [in] */ IBaseFilter *pf, - /* [in] */ REFIID riid, - /* [out] */ void **ppint); - - -/* [call_as] */ HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder_FindInterface_Stub( - ICaptureGraphBuilder * This, - /* [unique][in] */ const GUID *pCategory, - /* [in] */ IBaseFilter *pf, - /* [in] */ REFIID riid, - /* [out] */ IUnknown **ppint); - -/* [local] */ HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder2_FindInterface_Proxy( - ICaptureGraphBuilder2 * This, - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ IBaseFilter *pf, - /* [in] */ REFIID riid, - /* [out] */ void **ppint); - - -/* [call_as] */ HRESULT STDMETHODCALLTYPE ICaptureGraphBuilder2_FindInterface_Stub( - ICaptureGraphBuilder2 * This, - /* [in] */ const GUID *pCategory, - /* [in] */ const GUID *pType, - /* [in] */ IBaseFilter *pf, - /* [in] */ REFIID riid, - /* [out] */ IUnknown **ppint); - -/* [local] */ HRESULT STDMETHODCALLTYPE IKsPropertySet_Set_Proxy( - IKsPropertySet * This, - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [size_is][in] */ LPVOID pInstanceData, - /* [in] */ DWORD cbInstanceData, - /* [size_is][in] */ LPVOID pPropData, - /* [in] */ DWORD cbPropData); - - -/* [call_as] */ HRESULT STDMETHODCALLTYPE IKsPropertySet_Set_Stub( - IKsPropertySet * This, - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [size_is][in] */ byte *pInstanceData, - /* [in] */ DWORD cbInstanceData, - /* [size_is][in] */ byte *pPropData, - /* [in] */ DWORD cbPropData); - -/* [local] */ HRESULT STDMETHODCALLTYPE IKsPropertySet_Get_Proxy( - IKsPropertySet * This, - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [size_is][in] */ LPVOID pInstanceData, - /* [in] */ DWORD cbInstanceData, - /* [size_is][out] */ LPVOID pPropData, - /* [in] */ DWORD cbPropData, - /* [out] */ DWORD *pcbReturned); - - -/* [call_as] */ HRESULT STDMETHODCALLTYPE IKsPropertySet_Get_Stub( - IKsPropertySet * This, - /* [in] */ REFGUID guidPropSet, - /* [in] */ DWORD dwPropID, - /* [size_is][in] */ byte *pInstanceData, - /* [in] */ DWORD cbInstanceData, - /* [size_is][out] */ byte *pPropData, - /* [in] */ DWORD cbPropData, - /* [out] */ DWORD *pcbReturned); - - - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/strsafe.h b/sdk/dx8sdk/Include/strsafe.h deleted file mode 100644 index 061b3c4d..00000000 --- a/sdk/dx8sdk/Include/strsafe.h +++ /dev/null @@ -1,6611 +0,0 @@ -/****************************************************************** -* * -* strsafe.h -- This module defines safer C library string * -* routine replacements. These are meant to make C * -* a bit more safe in reference to security and * -* robustness * -* * -* Copyright (c) Microsoft Corp. All rights reserved. * -* * -******************************************************************/ -#ifndef _STRSAFE_H_INCLUDED_ -#define _STRSAFE_H_INCLUDED_ -#pragma once - -#include // for _vsnprintf, _vsnwprintf, getc, getwc -#include // for memset -#include // for va_start, etc. - - -#ifndef _SIZE_T_DEFINED -#ifdef _WIN64 -typedef unsigned __int64 size_t; -#else -typedef __w64 unsigned int size_t; -#endif // !_WIN64 -#define _SIZE_T_DEFINED -#endif // !_SIZE_T_DEFINED - -#if !defined(_WCHAR_T_DEFINED) && !defined(_NATIVE_WCHAR_T_DEFINED) -typedef unsigned short wchar_t; -#define _WCHAR_T_DEFINED -#endif - -#ifndef _HRESULT_DEFINED -#define _HRESULT_DEFINED -typedef long HRESULT; -#endif // !_HRESULT_DEFINED - -#ifndef SUCCEEDED -#define SUCCEEDED(hr) ((HRESULT)(hr) >= 0) -#endif - -#ifndef FAILED -#define FAILED(hr) ((HRESULT)(hr) < 0) -#endif - -#ifndef S_OK -#define S_OK ((HRESULT)0x00000000L) -#endif - -#ifdef __cplusplus -#define _STRSAFE_EXTERN_C extern "C" -#else -#define _STRSAFE_EXTERN_C extern -#endif - -// If you do not want to use these functions inline (and instead want to link w/ strsafe.lib), then -// #define STRSAFE_LIB before including this header file. -#if defined(STRSAFE_LIB) -#define STRSAFEAPI _STRSAFE_EXTERN_C HRESULT __stdcall -#pragma comment(lib, "strsafe.lib") -#elif defined(STRSAFE_LIB_IMPL) -#define STRSAFEAPI _STRSAFE_EXTERN_C HRESULT __stdcall -#else -#define STRSAFEAPI __inline HRESULT __stdcall -#define STRSAFE_INLINE -#endif - -// Some functions always run inline because they use stdin and we want to avoid building multiple -// versions of strsafe lib depending on if you use msvcrt, libcmt, etc. -#define STRSAFE_INLINE_API __inline HRESULT __stdcall - -// The user can request no "Cb" or no "Cch" fuctions, but not both! -#if defined(STRSAFE_NO_CB_FUNCTIONS) && defined(STRSAFE_NO_CCH_FUNCTIONS) -#error cannot specify both STRSAFE_NO_CB_FUNCTIONS and STRSAFE_NO_CCH_FUNCTIONS !! -#endif - -// This should only be defined when we are building strsafe.lib -#ifdef STRSAFE_LIB_IMPL -#define STRSAFE_INLINE -#endif - - -// If both strsafe.h and ntstrsafe.h are included, only use definitions from one. -#ifndef _NTSTRSAFE_H_INCLUDED_ - -#define STRSAFE_MAX_CCH 2147483647 // max # of characters we support (same as INT_MAX) - -// Flags for controling the Ex functions -// -// STRSAFE_FILL_BYTE(0xFF) 0x000000FF // bottom byte specifies fill pattern -#define STRSAFE_IGNORE_NULLS 0x00000100 // treat null as TEXT("") -- don't fault on NULL buffers -#define STRSAFE_FILL_BEHIND_NULL 0x00000200 // fill in extra space behind the null terminator -#define STRSAFE_FILL_ON_FAILURE 0x00000400 // on failure, overwrite pszDest with fill pattern and null terminate it -#define STRSAFE_NULL_ON_FAILURE 0x00000800 // on failure, set *pszDest = TEXT('\0') -#define STRSAFE_NO_TRUNCATION 0x00001000 // instead of returning a truncated result, copy/append nothing to pszDest and null terminate it - -#define STRSAFE_VALID_FLAGS (0x000000FF | STRSAFE_IGNORE_NULLS | STRSAFE_FILL_BEHIND_NULL | STRSAFE_FILL_ON_FAILURE | STRSAFE_NULL_ON_FAILURE | STRSAFE_NO_TRUNCATION) - -// helper macro to set the fill character and specify buffer filling -#define STRSAFE_FILL_BYTE(x) ((unsigned long)((x & 0x000000FF) | STRSAFE_FILL_BEHIND_NULL)) -#define STRSAFE_FAILURE_BYTE(x) ((unsigned long)((x & 0x000000FF) | STRSAFE_FILL_ON_FAILURE)) - -#define STRSAFE_GET_FILL_PATTERN(dwFlags) ((int)(dwFlags & 0x000000FF)) - -#endif // _NTSTRSAFE_H_INCLUDED_ - -// STRSAFE error return codes -// -#define STRSAFE_E_INSUFFICIENT_BUFFER ((HRESULT)0x8007007AL) // 0x7A = 122L = ERROR_INSUFFICIENT_BUFFER -#define STRSAFE_E_INVALID_PARAMETER ((HRESULT)0x80070057L) // 0x57 = 87L = ERROR_INVALID_PARAMETER -#define STRSAFE_E_END_OF_FILE ((HRESULT)0x80070026L) // 0x26 = 38L = ERROR_HANDLE_EOF - -// prototypes for the worker functions -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCopyWorkerA(char* pszDest, size_t cchDest, const char* pszSrc); -STRSAFEAPI StringCopyWorkerW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc); -STRSAFEAPI StringCopyExWorkerA(char* pszDest, size_t cchDest, size_t cbDest, const char* pszSrc, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFEAPI StringCopyExWorkerW(wchar_t* pszDest, size_t cchDest, size_t cbDest, const wchar_t* pszSrc, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFEAPI StringCopyNWorkerA(char* pszDest, size_t cchDest, const char* pszSrc, size_t cchSrc); -STRSAFEAPI StringCopyNWorkerW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, size_t cchSrc); -STRSAFEAPI StringCopyNExWorkerA(char* pszDest, size_t cchDest, size_t cbDest, const char* pszSrc, size_t cchSrc, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFEAPI StringCopyNExWorkerW(wchar_t* pszDest, size_t cchDest, size_t cbDest, const wchar_t* pszSrc, size_t cchSrc, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFEAPI StringCatWorkerA(char* pszDest, size_t cchDest, const char* pszSrc); -STRSAFEAPI StringCatWorkerW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc); -STRSAFEAPI StringCatExWorkerA(char* pszDest, size_t cchDest, size_t cbDest, const char* pszSrc, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFEAPI StringCatExWorkerW(wchar_t* pszDest, size_t cchDest, size_t cbDest, const wchar_t* pszSrc, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFEAPI StringCatNWorkerA(char* pszDest, size_t cchDest, const char* pszSrc, size_t cchMaxAppend); -STRSAFEAPI StringCatNWorkerW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, size_t cchMaxAppend); -STRSAFEAPI StringCatNExWorkerA(char* pszDest, size_t cchDest, size_t cbDest, const char* pszSrc, size_t cchMaxAppend, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFEAPI StringCatNExWorkerW(wchar_t* pszDest, size_t cchDest, size_t cbDest, const wchar_t* pszSrc, size_t cchMaxAppend, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFEAPI StringVPrintfWorkerA(char* pszDest, size_t cchDest, const char* pszFormat, va_list argList); -STRSAFEAPI StringVPrintfWorkerW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszFormat, va_list argList); -STRSAFEAPI StringVPrintfExWorkerA(char* pszDest, size_t cchDest, size_t cbDest, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags, const char* pszFormat, va_list argList); -STRSAFEAPI StringVPrintfExWorkerW(wchar_t* pszDest, size_t cchDest, size_t cbDest, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags, const wchar_t* pszFormat, va_list argList); -STRSAFEAPI StringLengthWorkerA(const char* psz, size_t cchMax, size_t* pcch); -STRSAFEAPI StringLengthWorkerW(const wchar_t* psz, size_t cchMax, size_t* pcch); -#endif // STRSAFE_INLINE - -#ifndef STRSAFE_LIB_IMPL -// these functions are always inline -STRSAFE_INLINE_API StringGetsExWorkerA(char* pszDest, size_t cchDest, size_t cbDest, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFE_INLINE_API StringGetsExWorkerW(wchar_t* pszDest, size_t cchDest, size_t cbDest, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -#endif - -#ifdef _NTSTRSAFE_H_INCLUDED_ -#pragma warning(push) -#pragma warning(disable : 4995) -#endif // _NTSTRSAFE_H_INCLUDED_ - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchCopy( - OUT LPTSTR pszDest, - IN size_t cchDest, - IN LPCTSTR pszSrc - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strcpy'. - The size of the destination buffer (in characters) is a parameter and - this function will not write past the end of this buffer and it will - ALWAYS null terminate the destination buffer (unless it is zero length). - - This routine is not a replacement for strncpy. That function will pad the - destination string with extra null termination characters if the count is - greater than the length of the source string, and it will fail to null - terminate the destination string if the source string length is greater - than or equal to the count. You can not blindly use this instead of strncpy: - it is common for code to use it to "patch" strings and you would introduce - errors if the code started null terminating in the middle of the string. - - This function returns a hresult, and not a pointer. It returns - S_OK if the string was copied without truncation and null terminated, - otherwise it will return a failure code. In failure cases as much of - pszSrc will be copied to pszDest as possible, and pszDest will be null - terminated. - -Arguments: - - pszDest - destination string - - cchDest - size of destination buffer in characters. - length must be = (_tcslen(src) + 1) to hold all of the - source including the null terminator - - pszSrc - source string which must be null terminated - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL. See StringCchCopyEx if you require - the handling of NULL values. - -Return Value: - - S_OK - if there was source data and it was all copied and the - resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the copy - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function. - ---*/ - -STRSAFEAPI StringCchCopyA(char* pszDest, size_t cchDest, const char* pszSrc); -STRSAFEAPI StringCchCopyW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc); -#ifdef UNICODE -#define StringCchCopy StringCchCopyW -#else -#define StringCchCopy StringCchCopyA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchCopyA(char* pszDest, size_t cchDest, const char* pszSrc) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCopyWorkerA(pszDest, cchDest, pszSrc); - } - - return hr; -} - -STRSAFEAPI StringCchCopyW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCopyWorkerW(pszDest, cchDest, pszSrc); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbCopy( - OUT LPTSTR pszDest, - IN size_t cbDest, - IN LPCTSTR pszSrc - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strcpy'. - The size of the destination buffer (in bytes) is a parameter and this - function will not write past the end of this buffer and it will ALWAYS - null terminate the destination buffer (unless it is zero length). - - This routine is not a replacement for strncpy. That function will pad the - destination string with extra null termination characters if the count is - greater than the length of the source string, and it will fail to null - terminate the destination string if the source string length is greater - than or equal to the count. You can not blindly use this instead of strncpy: - it is common for code to use it to "patch" strings and you would introduce - errors if the code started null terminating in the middle of the string. - - This function returns a hresult, and not a pointer. It returns - S_OK if the string was copied without truncation and null terminated, - otherwise it will return a failure code. In failure cases as much of pszSrc - will be copied to pszDest as possible, and pszDest will be null terminated. - -Arguments: - - pszDest - destination string - - cbDest - size of destination buffer in bytes. - length must be = ((_tcslen(src) + 1) * sizeof(TCHAR)) to - hold all of the source including the null terminator - - pszSrc - source string which must be null terminated - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL. See StringCbCopyEx if you require - the handling of NULL values. - -Return Value: - - S_OK - if there was source data and it was all copied and the - resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the copy - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function. - ---*/ - -STRSAFEAPI StringCbCopyA(char* pszDest, size_t cbDest, const char* pszSrc); -STRSAFEAPI StringCbCopyW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc); -#ifdef UNICODE -#define StringCbCopy StringCbCopyW -#else -#define StringCbCopy StringCbCopyA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbCopyA(char* pszDest, size_t cbDest, const char* pszSrc) -{ - HRESULT hr; - size_t cchDest; - - // convert to count of characters - cchDest = cbDest / sizeof(char); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCopyWorkerA(pszDest, cchDest, pszSrc); - } - - return hr; -} - -STRSAFEAPI StringCbCopyW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc) -{ - HRESULT hr; - size_t cchDest; - - // convert to count of characters - cchDest = cbDest / sizeof(wchar_t); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCopyWorkerW(pszDest, cchDest, pszSrc); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchCopyEx( - OUT LPTSTR pszDest OPTIONAL, - IN size_t cchDest, - IN LPCTSTR pszSrc OPTIONAL, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcchRemaining OPTIONAL, - IN DWORD dwFlags - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strcpy' with - some additional parameters. In addition to functionality provided by - StringCchCopy, this routine also returns a pointer to the end of the - destination string and the number of characters left in the destination string - including the null terminator. The flags parameter allows additional controls. - -Arguments: - - pszDest - destination string - - cchDest - size of destination buffer in characters. - length must be = (_tcslen(pszSrc) + 1) to hold all of - the source including the null terminator - - pszSrc - source string which must be null terminated - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function copied any data, the result will point to the - null termination character - - pcchRemaining - if pcchRemaining is non-null, the function will return the - number of characters left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")). - this flag is useful for emulating functions like lstrcpy - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. This will overwrite any truncated - string returned when the failure is - STRSAFE_E_INSUFFICIENT_BUFFER - - STRSAFE_NO_TRUNCATION / - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. This will overwrite any truncated string - returned when the failure is STRSAFE_E_INSUFFICIENT_BUFFER. - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL unless the STRSAFE_IGNORE_NULLS flag - is specified. If STRSAFE_IGNORE_NULLS is passed, both pszDest and pszSrc - may be NULL. An error may still be returned even though NULLS are ignored - due to insufficient space. - -Return Value: - - S_OK - if there was source data and it was all copied and the - resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the copy - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCchCopyExA(char* pszDest, size_t cchDest, const char* pszSrc, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFEAPI StringCchCopyExW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -#ifdef UNICODE -#define StringCchCopyEx StringCchCopyExW -#else -#define StringCchCopyEx StringCchCopyExA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchCopyExA(char* pszDest, size_t cchDest, const char* pszSrc, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(char) since cchDest < STRSAFE_MAX_CCH and sizeof(char) is 1 - cbDest = cchDest * sizeof(char); - - hr = StringCopyExWorkerA(pszDest, cchDest, cbDest, pszSrc, ppszDestEnd, pcchRemaining, dwFlags); - } - - return hr; -} - -STRSAFEAPI StringCchCopyExW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(wchar_t) since cchDest < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - cbDest = cchDest * sizeof(wchar_t); - - hr = StringCopyExWorkerW(pszDest, cchDest, cbDest, pszSrc, ppszDestEnd, pcchRemaining, dwFlags); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbCopyEx( - OUT LPTSTR pszDest OPTIONAL, - IN size_t cbDest, - IN LPCTSTR pszSrc OPTIONAL, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcbRemaining OPTIONAL, - IN DWORD dwFlags - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strcpy' with - some additional parameters. In addition to functionality provided by - StringCbCopy, this routine also returns a pointer to the end of the - destination string and the number of bytes left in the destination string - including the null terminator. The flags parameter allows additional controls. - -Arguments: - - pszDest - destination string - - cbDest - size of destination buffer in bytes. - length must be ((_tcslen(pszSrc) + 1) * sizeof(TCHAR)) to - hold all of the source including the null terminator - - pszSrc - source string which must be null terminated - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function copied any data, the result will point to the - null termination character - - pcbRemaining - pcbRemaining is non-null,the function will return the - number of bytes left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")). - this flag is useful for emulating functions like lstrcpy - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. This will overwrite any truncated - string returned when the failure is - STRSAFE_E_INSUFFICIENT_BUFFER - - STRSAFE_NO_TRUNCATION / - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. This will overwrite any truncated string - returned when the failure is STRSAFE_E_INSUFFICIENT_BUFFER. - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL unless the STRSAFE_IGNORE_NULLS flag - is specified. If STRSAFE_IGNORE_NULLS is passed, both pszDest and pszSrc - may be NULL. An error may still be returned even though NULLS are ignored - due to insufficient space. - -Return Value: - - S_OK - if there was source data and it was all copied and the - resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the copy - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCbCopyExA(char* pszDest, size_t cbDest, const char* pszSrc, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags); -STRSAFEAPI StringCbCopyExW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags); -#ifdef UNICODE -#define StringCbCopyEx StringCbCopyExW -#else -#define StringCbCopyEx StringCbCopyExA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbCopyExA(char* pszDest, size_t cbDest, const char* pszSrc, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags) -{ - HRESULT hr; - size_t cchDest; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(char); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCopyExWorkerA(pszDest, cchDest, cbDest, pszSrc, ppszDestEnd, &cchRemaining, dwFlags); - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(char) since cchRemaining < STRSAFE_MAX_CCH and sizeof(char) is 1 - *pcbRemaining = (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)); - } - } - - return hr; -} - -STRSAFEAPI StringCbCopyExW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags) -{ - HRESULT hr; - size_t cchDest; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(wchar_t); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCopyExWorkerW(pszDest, cchDest, cbDest, pszSrc, ppszDestEnd, &cchRemaining, dwFlags); - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(wchar_t) since cchRemaining < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - *pcbRemaining = (cchRemaining * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t)); - } - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchCopyN( - OUT LPTSTR pszDest, - IN size_t cchDest, - IN LPCTSTR pszSrc, - IN size_t cchSrc - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strncpy'. - The size of the destination buffer (in characters) is a parameter and - this function will not write past the end of this buffer and it will - ALWAYS null terminate the destination buffer (unless it is zero length). - - This routine is meant as a replacement for strncpy, but it does behave - differently. This function will not pad the destination buffer with extra - null termination characters if cchSrc is greater than the length of pszSrc. - - This function returns a hresult, and not a pointer. It returns - S_OK if the entire string or the first cchSrc characters were copied - without truncation and the resultant destination string was null terminated, - otherwise it will return a failure code. In failure cases as much of pszSrc - will be copied to pszDest as possible, and pszDest will be null terminated. - -Arguments: - - pszDest - destination string - - cchDest - size of destination buffer in characters. - length must be = (_tcslen(src) + 1) to hold all of the - source including the null terminator - - pszSrc - source string - - cchSrc - maximum number of characters to copy from source string, - not including the null terminator. - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL. See StringCchCopyNEx if you require - the handling of NULL values. - -Return Value: - - S_OK - if there was source data and it was all copied and the - resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the copy - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function. - ---*/ - -STRSAFEAPI StringCchCopyNA(char* pszDest, size_t cchDest, const char* pszSrc, size_t cchSrc); -STRSAFEAPI StringCchCopyNW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, size_t cchSrc); -#ifdef UNICODE -#define StringCchCopyN StringCchCopyNW -#else -#define StringCchCopyN StringCchCopyNA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchCopyNA(char* pszDest, size_t cchDest, const char* pszSrc, size_t cchSrc) -{ - HRESULT hr; - - if ((cchDest > STRSAFE_MAX_CCH) || - (cchSrc > STRSAFE_MAX_CCH)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCopyNWorkerA(pszDest, cchDest, pszSrc, cchSrc); - } - - return hr; -} - -STRSAFEAPI StringCchCopyNW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, size_t cchSrc) -{ - HRESULT hr; - - if ((cchDest > STRSAFE_MAX_CCH) || - (cchSrc > STRSAFE_MAX_CCH)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCopyNWorkerW(pszDest, cchDest, pszSrc, cchSrc); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbCopyN( - OUT LPTSTR pszDest, - IN size_t cbDest, - IN LPCTSTR pszSrc, - IN size_t cbSrc - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strncpy'. - The size of the destination buffer (in bytes) is a parameter and this - function will not write past the end of this buffer and it will ALWAYS - null terminate the destination buffer (unless it is zero length). - - This routine is meant as a replacement for strncpy, but it does behave - differently. This function will not pad the destination buffer with extra - null termination characters if cbSrc is greater than the size of pszSrc. - - This function returns a hresult, and not a pointer. It returns - S_OK if the entire string or the first cbSrc characters were - copied without truncation and the resultant destination string was null - terminated, otherwise it will return a failure code. In failure cases as - much of pszSrc will be copied to pszDest as possible, and pszDest will be - null terminated. - -Arguments: - - pszDest - destination string - - cbDest - size of destination buffer in bytes. - length must be = ((_tcslen(src) + 1) * sizeof(TCHAR)) to - hold all of the source including the null terminator - - pszSrc - source string - - cbSrc - maximum number of bytes to copy from source string, - not including the null terminator. - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL. See StringCbCopyEx if you require - the handling of NULL values. - -Return Value: - - S_OK - if there was source data and it was all copied and the - resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the copy - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function. - ---*/ - -STRSAFEAPI StringCbCopyNA(char* pszDest, size_t cbDest, const char* pszSrc, size_t cbSrc); -STRSAFEAPI StringCbCopyNW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc, size_t cbSrc); -#ifdef UNICODE -#define StringCbCopyN StringCbCopyNW -#else -#define StringCbCopyN StringCbCopyNA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbCopyNA(char* pszDest, size_t cbDest, const char* pszSrc, size_t cbSrc) -{ - HRESULT hr; - size_t cchDest; - size_t cchSrc; - - // convert to count of characters - cchDest = cbDest / sizeof(char); - cchSrc = cbSrc / sizeof(char); - - if ((cchDest > STRSAFE_MAX_CCH) || - (cchSrc > STRSAFE_MAX_CCH)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCopyNWorkerA(pszDest, cchDest, pszSrc, cchSrc); - } - - return hr; -} - -STRSAFEAPI StringCbCopyNW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc, size_t cbSrc) -{ - HRESULT hr; - size_t cchDest; - size_t cchSrc; - - // convert to count of characters - cchDest = cbDest / sizeof(wchar_t); - cchSrc = cbSrc / sizeof(wchar_t); - - if ((cchDest > STRSAFE_MAX_CCH) || - (cchSrc > STRSAFE_MAX_CCH)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCopyNWorkerW(pszDest, cchDest, pszSrc, cchSrc); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchCopyNEx( - OUT LPTSTR pszDest OPTIONAL, - IN size_t cchDest, - IN LPCTSTR pszSrc OPTIONAL, - IN size_t cchSrc, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcchRemaining OPTIONAL, - IN DWORD dwFlags - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strncpy' with - some additional parameters. In addition to functionality provided by - StringCchCopyN, this routine also returns a pointer to the end of the - destination string and the number of characters left in the destination - string including the null terminator. The flags parameter allows - additional controls. - - This routine is meant as a replacement for strncpy, but it does behave - differently. This function will not pad the destination buffer with extra - null termination characters if cchSrc is greater than the length of pszSrc. - -Arguments: - - pszDest - destination string - - cchDest - size of destination buffer in characters. - length must be = (_tcslen(pszSrc) + 1) to hold all of - the source including the null terminator - - pszSrc - source string - - cchSrc - maximum number of characters to copy from the source - string - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function copied any data, the result will point to the - null termination character - - pcchRemaining - if pcchRemaining is non-null, the function will return the - number of characters left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")). - this flag is useful for emulating functions like lstrcpy - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. This will overwrite any truncated - string returned when the failure is - STRSAFE_E_INSUFFICIENT_BUFFER - - STRSAFE_NO_TRUNCATION / - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. This will overwrite any truncated string - returned when the failure is STRSAFE_E_INSUFFICIENT_BUFFER. - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL unless the STRSAFE_IGNORE_NULLS flag - is specified. If STRSAFE_IGNORE_NULLS is passed, both pszDest and pszSrc - may be NULL. An error may still be returned even though NULLS are ignored - due to insufficient space. - -Return Value: - - S_OK - if there was source data and it was all copied and the - resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the copy - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCchCopyNExA(char* pszDest, size_t cchDest, const char* pszSrc, size_t cchSrc, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFEAPI StringCchCopyNExW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, size_t cchSrc, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -#ifdef UNICODE -#define StringCchCopyNEx StringCchCopyNExW -#else -#define StringCchCopyNEx StringCchCopyNExA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchCopyNExA(char* pszDest, size_t cchDest, const char* pszSrc, size_t cchSrc, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr; - - if ((cchDest > STRSAFE_MAX_CCH) || - (cchSrc > STRSAFE_MAX_CCH)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(char) since cchDest < STRSAFE_MAX_CCH and sizeof(char) is 1 - cbDest = cchDest * sizeof(char); - - hr = StringCopyNExWorkerA(pszDest, cchDest, cbDest, pszSrc, cchSrc, ppszDestEnd, pcchRemaining, dwFlags); - } - - return hr; -} - -STRSAFEAPI StringCchCopyNExW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, size_t cchSrc, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr; - - if ((cchDest > STRSAFE_MAX_CCH) || - (cchSrc > STRSAFE_MAX_CCH)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(wchar_t) since cchDest < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - cbDest = cchDest * sizeof(wchar_t); - - hr = StringCopyNExWorkerW(pszDest, cchDest, cbDest, pszSrc, cchSrc, ppszDestEnd, pcchRemaining, dwFlags); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbCopyNEx( - OUT LPTSTR pszDest OPTIONAL, - IN size_t cbDest, - IN LPCTSTR pszSrc OPTIONAL, - IN size_t cbSrc, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcbRemaining OPTIONAL, - IN DWORD dwFlags - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strncpy' with - some additional parameters. In addition to functionality provided by - StringCbCopyN, this routine also returns a pointer to the end of the - destination string and the number of bytes left in the destination string - including the null terminator. The flags parameter allows additional controls. - - This routine is meant as a replacement for strncpy, but it does behave - differently. This function will not pad the destination buffer with extra - null termination characters if cbSrc is greater than the size of pszSrc. - -Arguments: - - pszDest - destination string - - cbDest - size of destination buffer in bytes. - length must be ((_tcslen(pszSrc) + 1) * sizeof(TCHAR)) to - hold all of the source including the null terminator - - pszSrc - source string - - cbSrc - maximum number of bytes to copy from source string - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function copied any data, the result will point to the - null termination character - - pcbRemaining - pcbRemaining is non-null,the function will return the - number of bytes left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")). - this flag is useful for emulating functions like lstrcpy - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. This will overwrite any truncated - string returned when the failure is - STRSAFE_E_INSUFFICIENT_BUFFER - - STRSAFE_NO_TRUNCATION / - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. This will overwrite any truncated string - returned when the failure is STRSAFE_E_INSUFFICIENT_BUFFER. - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL unless the STRSAFE_IGNORE_NULLS flag - is specified. If STRSAFE_IGNORE_NULLS is passed, both pszDest and pszSrc - may be NULL. An error may still be returned even though NULLS are ignored - due to insufficient space. - -Return Value: - - S_OK - if there was source data and it was all copied and the - resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the copy - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCbCopyNExA(char* pszDest, size_t cbDest, const char* pszSrc, size_t cbSrc, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags); -STRSAFEAPI StringCbCopyNExW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc, size_t cbSrc, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags); -#ifdef UNICODE -#define StringCbCopyNEx StringCbCopyNExW -#else -#define StringCbCopyNEx StringCbCopyNExA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbCopyNExA(char* pszDest, size_t cbDest, const char* pszSrc, size_t cbSrc, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags) -{ - HRESULT hr; - size_t cchDest; - size_t cchSrc; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(char); - cchSrc = cbSrc / sizeof(char); - - if ((cchDest > STRSAFE_MAX_CCH) || - (cchSrc > STRSAFE_MAX_CCH)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCopyNExWorkerA(pszDest, cchDest, cbDest, pszSrc, cchSrc, ppszDestEnd, &cchRemaining, dwFlags); - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(char) since cchRemaining < STRSAFE_MAX_CCH and sizeof(char) is 1 - *pcbRemaining = (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)); - } - } - - return hr; -} - -STRSAFEAPI StringCbCopyNExW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc, size_t cbSrc, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags) -{ - HRESULT hr; - size_t cchDest; - size_t cchSrc; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(wchar_t); - cchSrc = cbSrc / sizeof(wchar_t); - - if ((cchDest > STRSAFE_MAX_CCH) || - (cchSrc > STRSAFE_MAX_CCH)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCopyNExWorkerW(pszDest, cchDest, cbDest, pszSrc, cchSrc, ppszDestEnd, &cchRemaining, dwFlags); - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(wchar_t) since cchRemaining < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - *pcbRemaining = (cchRemaining * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t)); - } - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchCat( - IN OUT LPTSTR pszDest, - IN size_t cchDest, - IN LPCTSTR pszSrc - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strcat'. - The size of the destination buffer (in characters) is a parameter and this - function will not write past the end of this buffer and it will ALWAYS - null terminate the destination buffer (unless it is zero length). - - This function returns a hresult, and not a pointer. It returns - S_OK if the string was concatenated without truncation and null terminated, - otherwise it will return a failure code. In failure cases as much of pszSrc - will be appended to pszDest as possible, and pszDest will be null - terminated. - -Arguments: - - pszDest - destination string which must be null terminated - - cchDest - size of destination buffer in characters. - length must be = (_tcslen(pszDest) + _tcslen(pszSrc) + 1) - to hold all of the combine string plus the null - terminator - - pszSrc - source string which must be null terminated - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL. See StringCchCatEx if you require - the handling of NULL values. - -Return Value: - - S_OK - if there was source data and it was all concatenated and - the resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the operation - failed due to insufficient space. When this error occurs, - the destination buffer is modified to contain a truncated - version of the ideal result and is null terminated. This - is useful for situations where truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCchCatA(char* pszDest, size_t cchDest, const char* pszSrc); -STRSAFEAPI StringCchCatW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc); -#ifdef UNICODE -#define StringCchCat StringCchCatW -#else -#define StringCchCat StringCchCatA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchCatA(char* pszDest, size_t cchDest, const char* pszSrc) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCatWorkerA(pszDest, cchDest, pszSrc); - } - - return hr; -} - -STRSAFEAPI StringCchCatW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCatWorkerW(pszDest, cchDest, pszSrc); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbCat( - IN OUT LPTSTR pszDest, - IN size_t cbDest, - IN LPCTSTR pszSrc - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strcat'. - The size of the destination buffer (in bytes) is a parameter and this - function will not write past the end of this buffer and it will ALWAYS - null terminate the destination buffer (unless it is zero length). - - This function returns a hresult, and not a pointer. It returns - S_OK if the string was concatenated without truncation and null terminated, - otherwise it will return a failure code. In failure cases as much of pszSrc - will be appended to pszDest as possible, and pszDest will be null - terminated. - -Arguments: - - pszDest - destination string which must be null terminated - - cbDest - size of destination buffer in bytes. - length must be = ((_tcslen(pszDest) + _tcslen(pszSrc) + 1) * sizeof(TCHAR) - to hold all of the combine string plus the null - terminator - - pszSrc - source string which must be null terminated - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL. See StringCbCatEx if you require - the handling of NULL values. - -Return Value: - - S_OK - if there was source data and it was all concatenated and - the resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the operation - failed due to insufficient space. When this error occurs, - the destination buffer is modified to contain a truncated - version of the ideal result and is null terminated. This - is useful for situations where truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCbCatA(char* pszDest, size_t cbDest, const char* pszSrc); -STRSAFEAPI StringCbCatW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc); -#ifdef UNICODE -#define StringCbCat StringCbCatW -#else -#define StringCbCat StringCbCatA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbCatA(char* pszDest, size_t cbDest, const char* pszSrc) -{ - HRESULT hr; - size_t cchDest; - - cchDest = cbDest / sizeof(char); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCatWorkerA(pszDest, cchDest, pszSrc); - } - - return hr; -} - -STRSAFEAPI StringCbCatW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc) -{ - HRESULT hr; - size_t cchDest; - - cchDest = cbDest / sizeof(wchar_t); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCatWorkerW(pszDest, cchDest, pszSrc); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchCatEx( - IN OUT LPTSTR pszDest OPTIONAL, - IN size_t cchDest, - IN LPCTSTR pszSrc OPTIONAL, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcchRemaining OPTIONAL, - IN DWORD dwFlags - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strcat' with - some additional parameters. In addition to functionality provided by - StringCchCat, this routine also returns a pointer to the end of the - destination string and the number of characters left in the destination string - including the null terminator. The flags parameter allows additional controls. - -Arguments: - - pszDest - destination string which must be null terminated - - cchDest - size of destination buffer in characters - length must be (_tcslen(pszDest) + _tcslen(pszSrc) + 1) - to hold all of the combine string plus the null - terminator. - - pszSrc - source string which must be null terminated - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function appended any data, the result will point to the - null termination character - - pcchRemaining - if pcchRemaining is non-null, the function will return the - number of characters left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")). - this flag is useful for emulating functions like lstrcat - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. This will overwrite any pre-existing - or truncated string - - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. This will overwrite any pre-existing or - truncated string - - STRSAFE_NO_TRUNCATION - if the function returns STRSAFE_E_INSUFFICIENT_BUFFER, pszDest - will not contain a truncated string, it will remain unchanged. - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL unless the STRSAFE_IGNORE_NULLS flag - is specified. If STRSAFE_IGNORE_NULLS is passed, both pszDest and pszSrc - may be NULL. An error may still be returned even though NULLS are ignored - due to insufficient space. - -Return Value: - - S_OK - if there was source data and it was all concatenated and - the resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the operation - failed due to insufficient space. When this error - occurs, the destination buffer is modified to contain - a truncated version of the ideal result and is null - terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCchCatExA(char* pszDest, size_t cchDest, const char* pszSrc, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFEAPI StringCchCatExW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -#ifdef UNICODE -#define StringCchCatEx StringCchCatExW -#else -#define StringCchCatEx StringCchCatExA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchCatExA(char* pszDest, size_t cchDest, const char* pszSrc, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(char) since cchDest < STRSAFE_MAX_CCH and sizeof(char) is 1 - cbDest = cchDest * sizeof(char); - - hr = StringCatExWorkerA(pszDest, cchDest, cbDest, pszSrc, ppszDestEnd, pcchRemaining, dwFlags); - } - - return hr; -} - -STRSAFEAPI StringCchCatExW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(wchar_t) since cchDest < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - cbDest = cchDest * sizeof(wchar_t); - - hr = StringCatExWorkerW(pszDest, cchDest, cbDest, pszSrc, ppszDestEnd, pcchRemaining, dwFlags); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbCatEx( - IN OUT LPTSTR pszDest OPTIONAL, - IN size_t cbDest, - IN LPCTSTR pszSrc OPTIONAL, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcbRemaining OPTIONAL, - IN DWORD dwFlags - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strcat' with - some additional parameters. In addition to functionality provided by - StringCbCat, this routine also returns a pointer to the end of the - destination string and the number of bytes left in the destination string - including the null terminator. The flags parameter allows additional controls. - -Arguments: - - pszDest - destination string which must be null terminated - - cbDest - size of destination buffer in bytes. - length must be ((_tcslen(pszDest) + _tcslen(pszSrc) + 1) * sizeof(TCHAR) - to hold all of the combine string plus the null - terminator. - - pszSrc - source string which must be null terminated - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function appended any data, the result will point to the - null termination character - - pcbRemaining - if pcbRemaining is non-null, the function will return - the number of bytes left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")). - this flag is useful for emulating functions like lstrcat - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. This will overwrite any pre-existing - or truncated string - - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. This will overwrite any pre-existing or - truncated string - - STRSAFE_NO_TRUNCATION - if the function returns STRSAFE_E_INSUFFICIENT_BUFFER, pszDest - will not contain a truncated string, it will remain unchanged. - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL unless the STRSAFE_IGNORE_NULLS flag - is specified. If STRSAFE_IGNORE_NULLS is passed, both pszDest and pszSrc - may be NULL. An error may still be returned even though NULLS are ignored - due to insufficient space. - -Return Value: - - S_OK - if there was source data and it was all concatenated - and the resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the operation - failed due to insufficient space. When this error - occurs, the destination buffer is modified to contain - a truncated version of the ideal result and is null - terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCbCatExA(char* pszDest, size_t cbDest, const char* pszSrc, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags); -STRSAFEAPI StringCbCatExW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags); -#ifdef UNICODE -#define StringCbCatEx StringCbCatExW -#else -#define StringCbCatEx StringCbCatExA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbCatExA(char* pszDest, size_t cbDest, const char* pszSrc, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags) -{ - HRESULT hr; - size_t cchDest; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(char); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCatExWorkerA(pszDest, cchDest, cbDest, pszSrc, ppszDestEnd, &cchRemaining, dwFlags); - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(char) since cchRemaining < STRSAFE_MAX_CCH and sizeof(char) is 1 - *pcbRemaining = (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)); - } - } - - return hr; -} - -STRSAFEAPI StringCbCatExW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags) -{ - HRESULT hr; - size_t cchDest; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(wchar_t); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCatExWorkerW(pszDest, cchDest, cbDest, pszSrc, ppszDestEnd, &cchRemaining, dwFlags); - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(wchar_t) since cchRemaining < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - *pcbRemaining = (cchRemaining * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t)); - } - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchCatN( - IN OUT LPTSTR pszDest, - IN size_t cchDest, - IN LPCTSTR pszSrc, - IN size_t cchMaxAppend - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strncat'. - The size of the destination buffer (in characters) is a parameter as well as - the maximum number of characters to append, excluding the null terminator. - This function will not write past the end of the destination buffer and it will - ALWAYS null terminate pszDest (unless it is zero length). - - This function returns a hresult, and not a pointer. It returns - S_OK if all of pszSrc or the first cchMaxAppend characters were appended - to the destination string and it was null terminated, otherwise it will - return a failure code. In failure cases as much of pszSrc will be appended - to pszDest as possible, and pszDest will be null terminated. - -Arguments: - - pszDest - destination string which must be null terminated - - cchDest - size of destination buffer in characters. - length must be (_tcslen(pszDest) + min(cchMaxAppend, _tcslen(pszSrc)) + 1) - to hold all of the combine string plus the null - terminator. - - pszSrc - source string - - cchMaxAppend - maximum number of characters to append - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL. See StringCchCatNEx if you require - the handling of NULL values. - -Return Value: - - S_OK - if all of pszSrc or the first cchMaxAppend characters - were concatenated to pszDest and the resultant dest - string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the operation - failed due to insufficient space. When this error - occurs, the destination buffer is modified to contain - a truncated version of the ideal result and is null - terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCchCatNA(char* pszDest, size_t cchDest, const char* pszSrc, size_t cchMaxAppend); -STRSAFEAPI StringCchCatNW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, size_t cchMaxAppend); -#ifdef UNICODE -#define StringCchCatN StringCchCatNW -#else -#define StringCchCatN StringCchCatNA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchCatNA(char* pszDest, size_t cchDest, const char* pszSrc, size_t cchMaxAppend) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCatNWorkerA(pszDest, cchDest, pszSrc, cchMaxAppend); - } - - return hr; -} - -STRSAFEAPI StringCchCatNW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, size_t cchMaxAppend) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringCatNWorkerW(pszDest, cchDest, pszSrc, cchMaxAppend); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbCatN( - IN OUT LPTSTR pszDest, - IN size_t cbDest, - IN LPCTSTR pszSrc, - IN size_t cbMaxAppend - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strncat'. - The size of the destination buffer (in bytes) is a parameter as well as - the maximum number of bytes to append, excluding the null terminator. - This function will not write past the end of the destination buffer and it will - ALWAYS null terminate pszDest (unless it is zero length). - - This function returns a hresult, and not a pointer. It returns - S_OK if all of pszSrc or the first cbMaxAppend bytes were appended - to the destination string and it was null terminated, otherwise it will - return a failure code. In failure cases as much of pszSrc will be appended - to pszDest as possible, and pszDest will be null terminated. - -Arguments: - - pszDest - destination string which must be null terminated - - cbDest - size of destination buffer in bytes. - length must be ((_tcslen(pszDest) + min(cbMaxAppend / sizeof(TCHAR), _tcslen(pszSrc)) + 1) * sizeof(TCHAR) - to hold all of the combine string plus the null - terminator. - - pszSrc - source string - - cbMaxAppend - maximum number of bytes to append - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL. See StringCbCatNEx if you require - the handling of NULL values. - -Return Value: - - S_OK - if all of pszSrc or the first cbMaxAppend bytes were - concatenated to pszDest and the resultant dest string - was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the operation - failed due to insufficient space. When this error - occurs, the destination buffer is modified to contain - a truncated version of the ideal result and is null - terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCbCatNA(char* pszDest, size_t cbDest, const char* pszSrc, size_t cbMaxAppend); -STRSAFEAPI StringCbCatNW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc, size_t cbMaxAppend); -#ifdef UNICODE -#define StringCbCatN StringCbCatNW -#else -#define StringCbCatN StringCbCatNA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbCatNA(char* pszDest, size_t cbDest, const char* pszSrc, size_t cbMaxAppend) -{ - HRESULT hr; - size_t cchDest; - - cchDest = cbDest / sizeof(char); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cchMaxAppend; - - cchMaxAppend = cbMaxAppend / sizeof(char); - - hr = StringCatNWorkerA(pszDest, cchDest, pszSrc, cchMaxAppend); - } - - return hr; -} - -STRSAFEAPI StringCbCatNW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc, size_t cbMaxAppend) -{ - HRESULT hr; - size_t cchDest; - - cchDest = cbDest / sizeof(wchar_t); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cchMaxAppend; - - cchMaxAppend = cbMaxAppend / sizeof(wchar_t); - - hr = StringCatNWorkerW(pszDest, cchDest, pszSrc, cchMaxAppend); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchCatNEx( - IN OUT LPTSTR pszDest OPTIONAL, - IN size_t cchDest, - IN LPCTSTR pszSrc OPTIONAL, - IN size_t cchMaxAppend, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcchRemaining OPTIONAL, - IN DWORD dwFlags - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strncat', with - some additional parameters. In addition to functionality provided by - StringCchCatN, this routine also returns a pointer to the end of the - destination string and the number of characters left in the destination string - including the null terminator. The flags parameter allows additional controls. - -Arguments: - - pszDest - destination string which must be null terminated - - cchDest - size of destination buffer in characters. - length must be (_tcslen(pszDest) + min(cchMaxAppend, _tcslen(pszSrc)) + 1) - to hold all of the combine string plus the null - terminator. - - pszSrc - source string - - cchMaxAppend - maximum number of characters to append - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function appended any data, the result will point to the - null termination character - - pcchRemaining - if pcchRemaining is non-null, the function will return the - number of characters left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")) - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. This will overwrite any pre-existing - or truncated string - - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. This will overwrite any pre-existing or - truncated string - - STRSAFE_NO_TRUNCATION - if the function returns STRSAFE_E_INSUFFICIENT_BUFFER, pszDest - will not contain a truncated string, it will remain unchanged. - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL unless the STRSAFE_IGNORE_NULLS flag - is specified. If STRSAFE_IGNORE_NULLS is passed, both pszDest and pszSrc - may be NULL. An error may still be returned even though NULLS are ignored - due to insufficient space. - -Return Value: - - S_OK - if all of pszSrc or the first cchMaxAppend characters - were concatenated to pszDest and the resultant dest - string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the operation - failed due to insufficient space. When this error - occurs, the destination buffer is modified to contain - a truncated version of the ideal result and is null - terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCchCatNExA(char* pszDest, size_t cchDest, const char* pszSrc, size_t cchMaxAppend, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFEAPI StringCchCatNExW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, size_t cchMaxAppend, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -#ifdef UNICODE -#define StringCchCatNEx StringCchCatNExW -#else -#define StringCchCatNEx StringCchCatNExA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchCatNExA(char* pszDest, size_t cchDest, const char* pszSrc, size_t cchMaxAppend, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(char) since cchDest < STRSAFE_MAX_CCH and sizeof(char) is 1 - cbDest = cchDest * sizeof(char); - - hr = StringCatNExWorkerA(pszDest, cchDest, cbDest, pszSrc, cchMaxAppend, ppszDestEnd, pcchRemaining, dwFlags); - } - - return hr; -} - -STRSAFEAPI StringCchCatNExW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, size_t cchMaxAppend, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(wchar_t) since cchDest < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - cbDest = cchDest * sizeof(wchar_t); - - hr = StringCatNExWorkerW(pszDest, cchDest, cbDest, pszSrc, cchMaxAppend, ppszDestEnd, pcchRemaining, dwFlags); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbCatNEx( - IN OUT LPTSTR pszDest OPTIONAL, - IN size_t cbDest, - IN LPCTSTR pszSrc OPTIONAL, - IN size_t cbMaxAppend, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcchRemaining OPTIONAL, - IN DWORD dwFlags - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strncat', with - some additional parameters. In addition to functionality provided by - StringCbCatN, this routine also returns a pointer to the end of the - destination string and the number of bytes left in the destination string - including the null terminator. The flags parameter allows additional controls. - -Arguments: - - pszDest - destination string which must be null terminated - - cbDest - size of destination buffer in bytes. - length must be ((_tcslen(pszDest) + min(cbMaxAppend / sizeof(TCHAR), _tcslen(pszSrc)) + 1) * sizeof(TCHAR) - to hold all of the combine string plus the null - terminator. - - pszSrc - source string - - cbMaxAppend - maximum number of bytes to append - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function appended any data, the result will point to the - null termination character - - pcbRemaining - if pcbRemaining is non-null, the function will return the - number of bytes left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")) - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. This will overwrite any pre-existing - or truncated string - - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. This will overwrite any pre-existing or - truncated string - - STRSAFE_NO_TRUNCATION - if the function returns STRSAFE_E_INSUFFICIENT_BUFFER, pszDest - will not contain a truncated string, it will remain unchanged. - -Notes: - Behavior is undefined if source and destination strings overlap. - - pszDest and pszSrc should not be NULL unless the STRSAFE_IGNORE_NULLS flag - is specified. If STRSAFE_IGNORE_NULLS is passed, both pszDest and pszSrc - may be NULL. An error may still be returned even though NULLS are ignored - due to insufficient space. - -Return Value: - - S_OK - if all of pszSrc or the first cbMaxAppend bytes were - concatenated to pszDest and the resultant dest string - was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the operation - failed due to insufficient space. When this error - occurs, the destination buffer is modified to contain - a truncated version of the ideal result and is null - terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCbCatNExA(char* pszDest, size_t cbDest, const char* pszSrc, size_t cbMaxAppend, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags); -STRSAFEAPI StringCbCatNExW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc, size_t cbMaxAppend, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags); -#ifdef UNICODE -#define StringCbCatNEx StringCbCatNExW -#else -#define StringCbCatNEx StringCbCatNExA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbCatNExA(char* pszDest, size_t cbDest, const char* pszSrc, size_t cbMaxAppend, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags) -{ - HRESULT hr; - size_t cchDest; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(char); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cchMaxAppend; - - cchMaxAppend = cbMaxAppend / sizeof(char); - - hr = StringCatNExWorkerA(pszDest, cchDest, cbDest, pszSrc, cchMaxAppend, ppszDestEnd, &cchRemaining, dwFlags); - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(char) since cchRemaining < STRSAFE_MAX_CCH and sizeof(char) is 1 - *pcbRemaining = (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)); - } - } - - return hr; -} - -STRSAFEAPI StringCbCatNExW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszSrc, size_t cbMaxAppend, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags) -{ - HRESULT hr; - size_t cchDest; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(wchar_t); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cchMaxAppend; - - cchMaxAppend = cbMaxAppend / sizeof(wchar_t); - - hr = StringCatNExWorkerW(pszDest, cchDest, cbDest, pszSrc, cchMaxAppend, ppszDestEnd, &cchRemaining, dwFlags); - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(wchar_t) since cchRemaining < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - *pcbRemaining = (cchRemaining * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t)); - } - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchVPrintf( - OUT LPTSTR pszDest, - IN size_t cchDest, - IN LPCTSTR pszFormat, - IN va_list argList - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'vsprintf'. - The size of the destination buffer (in characters) is a parameter and - this function will not write past the end of this buffer and it will - ALWAYS null terminate the destination buffer (unless it is zero length). - - This function returns a hresult, and not a pointer. It returns - S_OK if the string was printed without truncation and null terminated, - otherwise it will return a failure code. In failure cases it will return - a truncated version of the ideal result. - -Arguments: - - pszDest - destination string - - cchDest - size of destination buffer in characters - length must be sufficient to hold the resulting formatted - string, including the null terminator. - - pszFormat - format string which must be null terminated - - argList - va_list from the variable arguments according to the - stdarg.h convention - -Notes: - Behavior is undefined if destination, format strings or any arguments - strings overlap. - - pszDest and pszFormat should not be NULL. See StringCchVPrintfEx if you - require the handling of NULL values. - -Return Value: - - S_OK - if there was sufficient space in the dest buffer for - the resultant string and it was null terminated. - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the print - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCchVPrintfA(char* pszDest, size_t cchDest, const char* pszFormat, va_list argList); -STRSAFEAPI StringCchVPrintfW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszFormat, va_list argList); -#ifdef UNICODE -#define StringCchVPrintf StringCchVPrintfW -#else -#define StringCchVPrintf StringCchVPrintfA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchVPrintfA(char* pszDest, size_t cchDest, const char* pszFormat, va_list argList) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringVPrintfWorkerA(pszDest, cchDest, pszFormat, argList); - } - - return hr; -} - -STRSAFEAPI StringCchVPrintfW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszFormat, va_list argList) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringVPrintfWorkerW(pszDest, cchDest, pszFormat, argList); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbVPrintf( - OUT LPTSTR pszDest, - IN size_t cbDest, - IN LPCTSTR pszFormat, - IN va_list argList - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'vsprintf'. - The size of the destination buffer (in bytes) is a parameter and - this function will not write past the end of this buffer and it will - ALWAYS null terminate the destination buffer (unless it is zero length). - - This function returns a hresult, and not a pointer. It returns - S_OK if the string was printed without truncation and null terminated, - otherwise it will return a failure code. In failure cases it will return - a truncated version of the ideal result. - -Arguments: - - pszDest - destination string - - cbDest - size of destination buffer in bytes - length must be sufficient to hold the resulting formatted - string, including the null terminator. - - pszFormat - format string which must be null terminated - - argList - va_list from the variable arguments according to the - stdarg.h convention - -Notes: - Behavior is undefined if destination, format strings or any arguments - strings overlap. - - pszDest and pszFormat should not be NULL. See StringCbVPrintfEx if you - require the handling of NULL values. - - -Return Value: - - S_OK - if there was sufficient space in the dest buffer for - the resultant string and it was null terminated. - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the print - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCbVPrintfA(char* pszDest, size_t cbDest, const char* pszFormat, va_list argList); -STRSAFEAPI StringCbVPrintfW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszFormat, va_list argList); -#ifdef UNICODE -#define StringCbVPrintf StringCbVPrintfW -#else -#define StringCbVPrintf StringCbVPrintfA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbVPrintfA(char* pszDest, size_t cbDest, const char* pszFormat, va_list argList) -{ - HRESULT hr; - size_t cchDest; - - cchDest = cbDest / sizeof(char); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringVPrintfWorkerA(pszDest, cchDest, pszFormat, argList); - } - - return hr; -} - -STRSAFEAPI StringCbVPrintfW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszFormat, va_list argList) -{ - HRESULT hr; - size_t cchDest; - - cchDest = cbDest / sizeof(wchar_t); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringVPrintfWorkerW(pszDest, cchDest, pszFormat, argList); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchPrintf( - OUT LPTSTR pszDest, - IN size_t cchDest, - IN LPCTSTR pszFormat, - ... - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'sprintf'. - The size of the destination buffer (in characters) is a parameter and - this function will not write past the end of this buffer and it will - ALWAYS null terminate the destination buffer (unless it is zero length). - - This function returns a hresult, and not a pointer. It returns - S_OK if the string was printed without truncation and null terminated, - otherwise it will return a failure code. In failure cases it will return - a truncated version of the ideal result. - -Arguments: - - pszDest - destination string - - cchDest - size of destination buffer in characters - length must be sufficient to hold the resulting formatted - string, including the null terminator. - - pszFormat - format string which must be null terminated - - ... - additional parameters to be formatted according to - the format string - -Notes: - Behavior is undefined if destination, format strings or any arguments - strings overlap. - - pszDest and pszFormat should not be NULL. See StringCchPrintfEx if you - require the handling of NULL values. - -Return Value: - - S_OK - if there was sufficient space in the dest buffer for - the resultant string and it was null terminated. - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the print - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCchPrintfA(char* pszDest, size_t cchDest, const char* pszFormat, ...); -STRSAFEAPI StringCchPrintfW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszFormat, ...); -#ifdef UNICODE -#define StringCchPrintf StringCchPrintfW -#else -#define StringCchPrintf StringCchPrintfA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchPrintfA(char* pszDest, size_t cchDest, const char* pszFormat, ...) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - va_list argList; - - va_start(argList, pszFormat); - - hr = StringVPrintfWorkerA(pszDest, cchDest, pszFormat, argList); - - va_end(argList); - } - - return hr; -} - -STRSAFEAPI StringCchPrintfW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszFormat, ...) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - va_list argList; - - va_start(argList, pszFormat); - - hr = StringVPrintfWorkerW(pszDest, cchDest, pszFormat, argList); - - va_end(argList); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbPrintf( - OUT LPTSTR pszDest, - IN size_t cbDest, - IN LPCTSTR pszFormat, - ... - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'sprintf'. - The size of the destination buffer (in bytes) is a parameter and - this function will not write past the end of this buffer and it will - ALWAYS null terminate the destination buffer (unless it is zero length). - - This function returns a hresult, and not a pointer. It returns - S_OK if the string was printed without truncation and null terminated, - otherwise it will return a failure code. In failure cases it will return - a truncated version of the ideal result. - -Arguments: - - pszDest - destination string - - cbDest - size of destination buffer in bytes - length must be sufficient to hold the resulting formatted - string, including the null terminator. - - pszFormat - format string which must be null terminated - - ... - additional parameters to be formatted according to - the format string - -Notes: - Behavior is undefined if destination, format strings or any arguments - strings overlap. - - pszDest and pszFormat should not be NULL. See StringCbPrintfEx if you - require the handling of NULL values. - - -Return Value: - - S_OK - if there was sufficient space in the dest buffer for - the resultant string and it was null terminated. - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the print - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCbPrintfA(char* pszDest, size_t cbDest, const char* pszFormat, ...); -STRSAFEAPI StringCbPrintfW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszFormat, ...); -#ifdef UNICODE -#define StringCbPrintf StringCbPrintfW -#else -#define StringCbPrintf StringCbPrintfA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbPrintfA(char* pszDest, size_t cbDest, const char* pszFormat, ...) -{ - HRESULT hr; - size_t cchDest; - - cchDest = cbDest / sizeof(char); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - va_list argList; - - va_start(argList, pszFormat); - - hr = StringVPrintfWorkerA(pszDest, cchDest, pszFormat, argList); - - va_end(argList); - } - - return hr; -} - -STRSAFEAPI StringCbPrintfW(wchar_t* pszDest, size_t cbDest, const wchar_t* pszFormat, ...) -{ - HRESULT hr; - size_t cchDest; - - cchDest = cbDest / sizeof(wchar_t); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - va_list argList; - - va_start(argList, pszFormat); - - hr = StringVPrintfWorkerW(pszDest, cchDest, pszFormat, argList); - - va_end(argList); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchPrintfEx( - OUT LPTSTR pszDest OPTIONAL, - IN size_t cchDest, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcchRemaining OPTIONAL, - IN DWORD dwFlags, - IN LPCTSTR pszFormat OPTIONAL, - ... - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'sprintf' with - some additional parameters. In addition to functionality provided by - StringCchPrintf, this routine also returns a pointer to the end of the - destination string and the number of characters left in the destination string - including the null terminator. The flags parameter allows additional controls. - -Arguments: - - pszDest - destination string - - cchDest - size of destination buffer in characters. - length must be sufficient to contain the resulting - formatted string plus the null terminator. - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function printed any data, the result will point to the - null termination character - - pcchRemaining - if pcchRemaining is non-null, the function will return - the number of characters left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")) - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. This will overwrite any truncated - string returned when the failure is - STRSAFE_E_INSUFFICIENT_BUFFER - - STRSAFE_NO_TRUNCATION / - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. This will overwrite any truncated string - returned when the failure is STRSAFE_E_INSUFFICIENT_BUFFER. - - pszFormat - format string which must be null terminated - - ... - additional parameters to be formatted according to - the format string - -Notes: - Behavior is undefined if destination, format strings or any arguments - strings overlap. - - pszDest and pszFormat should not be NULL unless the STRSAFE_IGNORE_NULLS - flag is specified. If STRSAFE_IGNORE_NULLS is passed, both pszDest and - pszFormat may be NULL. An error may still be returned even though NULLS - are ignored due to insufficient space. - -Return Value: - - S_OK - if there was source data and it was all concatenated and - the resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the print - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCchPrintfExA(char* pszDest, size_t cchDest, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags, const char* pszFormat, ...); -STRSAFEAPI StringCchPrintfExW(wchar_t* pszDest, size_t cchDest, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags, const wchar_t* pszFormat, ...); -#ifdef UNICODE -#define StringCchPrintfEx StringCchPrintfExW -#else -#define StringCchPrintfEx StringCchPrintfExA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchPrintfExA(char* pszDest, size_t cchDest, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags, const char* pszFormat, ...) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - va_list argList; - - // safe to multiply cchDest * sizeof(char) since cchDest < STRSAFE_MAX_CCH and sizeof(char) is 1 - cbDest = cchDest * sizeof(char); - va_start(argList, pszFormat); - - hr = StringVPrintfExWorkerA(pszDest, cchDest, cbDest, ppszDestEnd, pcchRemaining, dwFlags, pszFormat, argList); - - va_end(argList); - } - - return hr; -} - -STRSAFEAPI StringCchPrintfExW(wchar_t* pszDest, size_t cchDest, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags, const wchar_t* pszFormat, ...) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - va_list argList; - - // safe to multiply cchDest * sizeof(wchar_t) since cchDest < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - cbDest = cchDest * sizeof(wchar_t); - va_start(argList, pszFormat); - - hr = StringVPrintfExWorkerW(pszDest, cchDest, cbDest, ppszDestEnd, pcchRemaining, dwFlags, pszFormat, argList); - - va_end(argList); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbPrintfEx( - OUT LPTSTR pszDest OPTIONAL, - IN size_t cbDest, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcbRemaining OPTIONAL, - IN DWORD dwFlags, - IN LPCTSTR pszFormat OPTIONAL, - ... - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'sprintf' with - some additional parameters. In addition to functionality provided by - StringCbPrintf, this routine also returns a pointer to the end of the - destination string and the number of bytes left in the destination string - including the null terminator. The flags parameter allows additional controls. - -Arguments: - - pszDest - destination string - - cbDest - size of destination buffer in bytes. - length must be sufficient to contain the resulting - formatted string plus the null terminator. - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function printed any data, the result will point to the - null termination character - - pcbRemaining - if pcbRemaining is non-null, the function will return - the number of bytes left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")) - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. This will overwrite any truncated - string returned when the failure is - STRSAFE_E_INSUFFICIENT_BUFFER - - STRSAFE_NO_TRUNCATION / - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. This will overwrite any truncated string - returned when the failure is STRSAFE_E_INSUFFICIENT_BUFFER. - - pszFormat - format string which must be null terminated - - ... - additional parameters to be formatted according to - the format string - -Notes: - Behavior is undefined if destination, format strings or any arguments - strings overlap. - - pszDest and pszFormat should not be NULL unless the STRSAFE_IGNORE_NULLS - flag is specified. If STRSAFE_IGNORE_NULLS is passed, both pszDest and - pszFormat may be NULL. An error may still be returned even though NULLS - are ignored due to insufficient space. - -Return Value: - - S_OK - if there was source data and it was all concatenated and - the resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the print - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCbPrintfExA(char* pszDest, size_t cbDest, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags, const char* pszFormat, ...); -STRSAFEAPI StringCbPrintfExW(wchar_t* pszDest, size_t cbDest, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags, const wchar_t* pszFormat, ...); -#ifdef UNICODE -#define StringCbPrintfEx StringCbPrintfExW -#else -#define StringCbPrintfEx StringCbPrintfExA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbPrintfExA(char* pszDest, size_t cbDest, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags, const char* pszFormat, ...) -{ - HRESULT hr; - size_t cchDest; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(char); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - va_list argList; - - va_start(argList, pszFormat); - - hr = StringVPrintfExWorkerA(pszDest, cchDest, cbDest, ppszDestEnd, &cchRemaining, dwFlags, pszFormat, argList); - - va_end(argList); - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(char) since cchRemaining < STRSAFE_MAX_CCH and sizeof(char) is 1 - *pcbRemaining = (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)); - } - } - - return hr; -} - -STRSAFEAPI StringCbPrintfExW(wchar_t* pszDest, size_t cbDest, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags, const wchar_t* pszFormat, ...) -{ - HRESULT hr; - size_t cchDest; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(wchar_t); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - va_list argList; - - va_start(argList, pszFormat); - - hr = StringVPrintfExWorkerW(pszDest, cchDest, cbDest, ppszDestEnd, &cchRemaining, dwFlags, pszFormat, argList); - - va_end(argList); - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(wchar_t) since cchRemaining < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - *pcbRemaining = (cchRemaining * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t)); - } - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchVPrintfEx( - OUT LPTSTR pszDest OPTIONAL, - IN size_t cchDest, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcchRemaining OPTIONAL, - IN DWORD dwFlags, - IN LPCTSTR pszFormat OPTIONAL, - IN va_list argList - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'vsprintf' with - some additional parameters. In addition to functionality provided by - StringCchVPrintf, this routine also returns a pointer to the end of the - destination string and the number of characters left in the destination string - including the null terminator. The flags parameter allows additional controls. - -Arguments: - - pszDest - destination string - - cchDest - size of destination buffer in characters. - length must be sufficient to contain the resulting - formatted string plus the null terminator. - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function printed any data, the result will point to the - null termination character - - pcchRemaining - if pcchRemaining is non-null, the function will return - the number of characters left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")) - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. This will overwrite any truncated - string returned when the failure is - STRSAFE_E_INSUFFICIENT_BUFFER - - STRSAFE_NO_TRUNCATION / - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. This will overwrite any truncated string - returned when the failure is STRSAFE_E_INSUFFICIENT_BUFFER. - - pszFormat - format string which must be null terminated - - argList - va_list from the variable arguments according to the - stdarg.h convention - -Notes: - Behavior is undefined if destination, format strings or any arguments - strings overlap. - - pszDest and pszFormat should not be NULL unless the STRSAFE_IGNORE_NULLS - flag is specified. If STRSAFE_IGNORE_NULLS is passed, both pszDest and - pszFormat may be NULL. An error may still be returned even though NULLS - are ignored due to insufficient space. - -Return Value: - - S_OK - if there was source data and it was all concatenated and - the resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the print - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCchVPrintfExA(char* pszDest, size_t cchDest, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags, const char* pszFormat, va_list argList); -STRSAFEAPI StringCchVPrintfExW(wchar_t* pszDest, size_t cchDest, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags, const wchar_t* pszFormat, va_list argList); -#ifdef UNICODE -#define StringCchVPrintfEx StringCchVPrintfExW -#else -#define StringCchVPrintfEx StringCchVPrintfExA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchVPrintfExA(char* pszDest, size_t cchDest, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags, const char* pszFormat, va_list argList) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(char) since cchDest < STRSAFE_MAX_CCH and sizeof(char) is 1 - cbDest = cchDest * sizeof(char); - - hr = StringVPrintfExWorkerA(pszDest, cchDest, cbDest, ppszDestEnd, pcchRemaining, dwFlags, pszFormat, argList); - } - - return hr; -} - -STRSAFEAPI StringCchVPrintfExW(wchar_t* pszDest, size_t cchDest, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags, const wchar_t* pszFormat, va_list argList) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(wchar_t) since cchDest < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - cbDest = cchDest * sizeof(wchar_t); - - hr = StringVPrintfExWorkerW(pszDest, cchDest, cbDest, ppszDestEnd, pcchRemaining, dwFlags, pszFormat, argList); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbVPrintfEx( - OUT LPTSTR pszDest OPTIONAL, - IN size_t cbDest, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcbRemaining OPTIONAL, - IN DWORD dwFlags, - IN LPCTSTR pszFormat OPTIONAL, - IN va_list argList - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'vsprintf' with - some additional parameters. In addition to functionality provided by - StringCbVPrintf, this routine also returns a pointer to the end of the - destination string and the number of characters left in the destination string - including the null terminator. The flags parameter allows additional controls. - -Arguments: - - pszDest - destination string - - cbDest - size of destination buffer in bytes. - length must be sufficient to contain the resulting - formatted string plus the null terminator. - - ppszDestEnd - if ppszDestEnd is non-null, the function will return - a pointer to the end of the destination string. If the - function printed any data, the result will point to the - null termination character - - pcbRemaining - if pcbRemaining is non-null, the function will return - the number of bytes left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")) - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. This will overwrite any truncated - string returned when the failure is - STRSAFE_E_INSUFFICIENT_BUFFER - - STRSAFE_NO_TRUNCATION / - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. This will overwrite any truncated string - returned when the failure is STRSAFE_E_INSUFFICIENT_BUFFER. - - pszFormat - format string which must be null terminated - - argList - va_list from the variable arguments according to the - stdarg.h convention - -Notes: - Behavior is undefined if destination, format strings or any arguments - strings overlap. - - pszDest and pszFormat should not be NULL unless the STRSAFE_IGNORE_NULLS - flag is specified. If STRSAFE_IGNORE_NULLS is passed, both pszDest and - pszFormat may be NULL. An error may still be returned even though NULLS - are ignored due to insufficient space. - -Return Value: - - S_OK - if there was source data and it was all concatenated and - the resultant dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that the print - operation failed due to insufficient space. When this - error occurs, the destination buffer is modified to - contain a truncated version of the ideal result and is - null terminated. This is useful for situations where - truncation is ok. - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function - ---*/ - -STRSAFEAPI StringCbVPrintfExA(char* pszDest, size_t cbDest, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags, const char* pszFormat, va_list argList); -STRSAFEAPI StringCbVPrintfExW(wchar_t* pszDest, size_t cbDest, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags, const wchar_t* pszFormat, va_list argList); -#ifdef UNICODE -#define StringCbVPrintfEx StringCbVPrintfExW -#else -#define StringCbVPrintfEx StringCbVPrintfExA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbVPrintfExA(char* pszDest, size_t cbDest, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags, const char* pszFormat, va_list argList) -{ - HRESULT hr; - size_t cchDest; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(char); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringVPrintfExWorkerA(pszDest, cchDest, cbDest, ppszDestEnd, &cchRemaining, dwFlags, pszFormat, argList); - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(char) since cchRemaining < STRSAFE_MAX_CCH and sizeof(char) is 1 - *pcbRemaining = (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)); - } - } - - return hr; -} - -STRSAFEAPI StringCbVPrintfExW(wchar_t* pszDest, size_t cbDest, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags, const wchar_t* pszFormat, va_list argList) -{ - HRESULT hr; - size_t cchDest; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(wchar_t); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringVPrintfExWorkerW(pszDest, cchDest, cbDest, ppszDestEnd, &cchRemaining, dwFlags, pszFormat, argList); - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(wchar_t) since cchRemaining < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - *pcbRemaining = (cchRemaining * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t)); - } - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchGets( - OUT LPTSTR pszDest, - IN size_t cchDest - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'gets'. - The size of the destination buffer (in characters) is a parameter and - this function will not write past the end of this buffer and it will - ALWAYS null terminate the destination buffer (unless it is zero length). - - This routine is not a replacement for fgets. That function does not replace - newline characters with a null terminator. - - This function returns a hresult, and not a pointer. It returns - S_OK if any characters were read from stdin and copied to pszDest and - pszDest was null terminated, otherwise it will return a failure code. - -Arguments: - - pszDest - destination string - - cchDest - size of destination buffer in characters. - -Notes: - pszDest should not be NULL. See StringCchGetsEx if you require the handling - of NULL values. - - cchDest must be > 1 for this function to succeed. - -Return Value: - - S_OK - data was read from stdin and copied, and the resultant - dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_END_OF_FILE / - HRESULT_CODE(hr) == ERROR_HANDLE_EOF - - this return value indicates an error or end-of-file - condition, use feof or ferror to determine which one has - occured. - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that there was - insufficient space in the destination buffer to copy any - data - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function. - ---*/ - -#ifndef STRSAFE_LIB_IMPL -STRSAFE_INLINE_API StringCchGetsA(char* pszDest, size_t cchDest); -STRSAFE_INLINE_API StringCchGetsW(wchar_t* pszDest, size_t cchDest); -#ifdef UNICODE -#define StringCchGets StringCchGetsW -#else -#define StringCchGets StringCchGetsA -#endif // !UNICODE - -STRSAFE_INLINE_API StringCchGetsA(char* pszDest, size_t cchDest) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(char) since cchDest < STRSAFE_MAX_CCH and sizeof(char) is 1 - cbDest = cchDest * sizeof(char); - - hr = StringGetsExWorkerA(pszDest, cchDest, cbDest, NULL, NULL, 0); - } - - return hr; -} - -STRSAFE_INLINE_API StringCchGetsW(wchar_t* pszDest, size_t cchDest) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(wchar_t) since cchDest < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - cbDest = cchDest * sizeof(wchar_t); - - hr = StringGetsExWorkerW(pszDest, cchDest, cbDest, NULL, NULL, 0); - } - - return hr; -} -#endif // !STRSAFE_NO_CCH_FUNCTIONS -#endif // !STRSAFE_LIB_IMPL - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbGets( - OUT LPTSTR pszDest, - IN size_t cbDest - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'gets'. - The size of the destination buffer (in bytes) is a parameter and - this function will not write past the end of this buffer and it will - ALWAYS null terminate the destination buffer (unless it is zero length). - - This routine is not a replacement for fgets. That function does not replace - newline characters with a null terminator. - - This function returns a hresult, and not a pointer. It returns - S_OK if any characters were read from stdin and copied to pszDest - and pszDest was null terminated, otherwise it will return a failure code. - -Arguments: - - pszDest - destination string - - cbDest - size of destination buffer in bytes. - -Notes: - pszDest should not be NULL. See StringCbGetsEx if you require the handling - of NULL values. - - cbDest must be > sizeof(TCHAR) for this function to succeed. - -Return Value: - - S_OK - data was read from stdin and copied, and the resultant - dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_END_OF_FILE / - HRESULT_CODE(hr) == ERROR_HANDLE_EOF - - this return value indicates an error or end-of-file - condition, use feof or ferror to determine which one has - occured. - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that there was - insufficient space in the destination buffer to copy any - data - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function. - ---*/ - -#ifndef STRSAFE_LIB_IMPL -STRSAFE_INLINE_API StringCbGetsA(char* pszDest, size_t cbDest); -STRSAFE_INLINE_API StringCbGetsW(wchar_t* pszDest, size_t cbDest); -#ifdef UNICODE -#define StringCbGets StringCbGetsW -#else -#define StringCbGets StringCbGetsA -#endif // !UNICODE - -STRSAFE_INLINE_API StringCbGetsA(char* pszDest, size_t cbDest) -{ - HRESULT hr; - size_t cchDest; - - // convert to count of characters - cchDest = cbDest / sizeof(char); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringGetsExWorkerA(pszDest, cchDest, cbDest, NULL, NULL, 0); - } - - return hr; -} - -STRSAFE_INLINE_API StringCbGetsW(wchar_t* pszDest, size_t cbDest) -{ - HRESULT hr; - size_t cchDest; - - // convert to count of characters - cchDest = cbDest / sizeof(wchar_t); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringGetsExWorkerW(pszDest, cchDest, cbDest, NULL, NULL, 0); - } - - return hr; -} -#endif // !STRSAFE_NO_CB_FUNCTIONS -#endif // !STRSAFE_LIB_IMPL - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchGetsEx( - OUT LPTSTR pszDest OPTIONAL, - IN size_t cchDest, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcchRemaining OPTIONAL, - IN DWORD dwFlags - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'gets' with - some additional parameters. In addition to functionality provided by - StringCchGets, this routine also returns a pointer to the end of the - destination string and the number of characters left in the destination string - including the null terminator. The flags parameter allows additional controls. - -Arguments: - - pszDest - destination string - - cchDest - size of destination buffer in characters. - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function copied any data, the result will point to the - null termination character - - pcchRemaining - if pcchRemaining is non-null, the function will return the - number of characters left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")). - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. - - STRSAFE_NO_TRUNCATION / - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. - -Notes: - pszDest should not be NULL unless the STRSAFE_IGNORE_NULLS flag is specified. - If STRSAFE_IGNORE_NULLS is passed and pszDest is NULL, an error may still be - returned even though NULLS are ignored - - cchDest must be > 1 for this function to succeed. - -Return Value: - - S_OK - data was read from stdin and copied, and the resultant - dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_END_OF_FILE / - HRESULT_CODE(hr) == ERROR_HANDLE_EOF - - this return value indicates an error or end-of-file - condition, use feof or ferror to determine which one has - occured. - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that there was - insufficient space in the destination buffer to copy any - data - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function. - ---*/ - -#ifndef STRSAFE_LIB_IMPL -STRSAFE_INLINE_API StringCchGetsExA(char* pszDest, size_t cchDest, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -STRSAFE_INLINE_API StringCchGetsExW(wchar_t* pszDest, size_t cchDest, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags); -#ifdef UNICODE -#define StringCchGetsEx StringCchGetsExW -#else -#define StringCchGetsEx StringCchGetsExA -#endif // !UNICODE - -STRSAFE_INLINE_API StringCchGetsExA(char* pszDest, size_t cchDest, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(char) since cchDest < STRSAFE_MAX_CCH and sizeof(char) is 1 - cbDest = cchDest * sizeof(char); - - hr = StringGetsExWorkerA(pszDest, cchDest, cbDest, ppszDestEnd, pcchRemaining, dwFlags); - } - - return hr; -} - -STRSAFE_INLINE_API StringCchGetsExW(wchar_t* pszDest, size_t cchDest, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr; - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cbDest; - - // safe to multiply cchDest * sizeof(wchar_t) since cchDest < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - cbDest = cchDest * sizeof(wchar_t); - - hr = StringGetsExWorkerW(pszDest, cchDest, cbDest, ppszDestEnd, pcchRemaining, dwFlags); - } - - return hr; -} -#endif // !STRSAFE_NO_CCH_FUNCTIONS -#endif // !STRSAFE_LIB_IMPL - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbGetsEx( - OUT LPTSTR pszDest OPTIONAL, - IN size_t cbDest, - OUT LPTSTR* ppszDestEnd OPTIONAL, - OUT size_t* pcbRemaining OPTIONAL, - IN DWORD dwFlags - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'gets' with - some additional parameters. In addition to functionality provided by - StringCbGets, this routine also returns a pointer to the end of the - destination string and the number of characters left in the destination string - including the null terminator. The flags parameter allows additional controls. - -Arguments: - - pszDest - destination string - - cbDest - size of destination buffer in bytes. - - ppszDestEnd - if ppszDestEnd is non-null, the function will return a - pointer to the end of the destination string. If the - function copied any data, the result will point to the - null termination character - - pcbRemaining - if pbRemaining is non-null, the function will return the - number of bytes left in the destination string, - including the null terminator - - dwFlags - controls some details of the string copy: - - STRSAFE_FILL_BEHIND_NULL - if the function succeeds, the low byte of dwFlags will be - used to fill the uninitialize part of destination buffer - behind the null terminator - - STRSAFE_IGNORE_NULLS - treat NULL string pointers like empty strings (TEXT("")). - - STRSAFE_FILL_ON_FAILURE - if the function fails, the low byte of dwFlags will be - used to fill all of the destination buffer, and it will - be null terminated. - - STRSAFE_NO_TRUNCATION / - STRSAFE_NULL_ON_FAILURE - if the function fails, the destination buffer will be set - to the empty string. - -Notes: - pszDest should not be NULL unless the STRSAFE_IGNORE_NULLS flag is specified. - If STRSAFE_IGNORE_NULLS is passed and pszDest is NULL, an error may still be - returned even though NULLS are ignored - - cbDest must be > sizeof(TCHAR) for this function to succeed - -Return Value: - - S_OK - data was read from stdin and copied, and the resultant - dest string was null terminated - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - STRSAFE_E_END_OF_FILE / - HRESULT_CODE(hr) == ERROR_HANDLE_EOF - - this return value indicates an error or end-of-file - condition, use feof or ferror to determine which one has - occured. - - STRSAFE_E_INSUFFICIENT_BUFFER / - HRESULT_CODE(hr) == ERROR_INSUFFICIENT_BUFFER - - this return value is an indication that there was - insufficient space in the destination buffer to copy any - data - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function. - ---*/ - -#ifndef STRSAFE_LIB_IMPL -STRSAFE_INLINE_API StringCbGetsExA(char* pszDest, size_t cbDest, char** ppszDestEnd, size_t* pbRemaining, unsigned long dwFlags); -STRSAFE_INLINE_API StringCbGetsExW(wchar_t* pszDest, size_t cbDest, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags); -#ifdef UNICODE -#define StringCbGetsEx StringCbGetsExW -#else -#define StringCbGetsEx StringCbGetsExA -#endif // !UNICODE - -STRSAFE_INLINE_API StringCbGetsExA(char* pszDest, size_t cbDest, char** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags) -{ - HRESULT hr; - size_t cchDest; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(char); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringGetsExWorkerA(pszDest, cchDest, cbDest, ppszDestEnd, &cchRemaining, dwFlags); - } - - if (SUCCEEDED(hr) || - (hr == STRSAFE_E_INSUFFICIENT_BUFFER) || - (hr == STRSAFE_E_END_OF_FILE)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(char) since cchRemaining < STRSAFE_MAX_CCH and sizeof(char) is 1 - *pcbRemaining = (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)); - } - } - - return hr; -} - -STRSAFE_INLINE_API StringCbGetsExW(wchar_t* pszDest, size_t cbDest, wchar_t** ppszDestEnd, size_t* pcbRemaining, unsigned long dwFlags) -{ - HRESULT hr; - size_t cchDest; - size_t cchRemaining = 0; - - cchDest = cbDest / sizeof(wchar_t); - - if (cchDest > STRSAFE_MAX_CCH) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringGetsExWorkerW(pszDest, cchDest, cbDest, ppszDestEnd, &cchRemaining, dwFlags); - } - - if (SUCCEEDED(hr) || - (hr == STRSAFE_E_INSUFFICIENT_BUFFER) || - (hr == STRSAFE_E_END_OF_FILE)) - { - if (pcbRemaining) - { - // safe to multiply cchRemaining * sizeof(wchar_t) since cchRemaining < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - *pcbRemaining = (cchRemaining * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t)); - } - } - - return hr; -} -#endif // !STRSAFE_NO_CB_FUNCTIONS -#endif // !STRSAFE_LIB_IMPL - -#ifndef STRSAFE_NO_CCH_FUNCTIONS -/*++ - -STDAPI -StringCchLength( - IN LPCTSTR psz, - IN size_t cchMax, - OUT size_t* pcch OPTIONAL - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strlen'. - It is used to make sure a string is not larger than a given length, and - it optionally returns the current length in characters not including - the null terminator. - - This function returns a hresult, and not a pointer. It returns - S_OK if the string is non-null and the length including the null - terminator is less than or equal to cchMax characters. - -Arguments: - - psz - string to check the length of - - cchMax - maximum number of characters including the null terminator - that psz is allowed to contain - - pcch - if the function succeeds and pcch is non-null, the current length - in characters of psz excluding the null terminator will be returned. - This out parameter is equivalent to the return value of strlen(psz) - -Notes: - psz can be null but the function will fail - - cchMax should be greater than zero or the function will fail - -Return Value: - - S_OK - psz is non-null and the length including the null - terminator is less than or equal to cchMax characters - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function. - ---*/ - -STRSAFEAPI StringCchLengthA(const char* psz, size_t cchMax, size_t* pcch); -STRSAFEAPI StringCchLengthW(const wchar_t* psz, size_t cchMax, size_t* pcch); -#ifdef UNICODE -#define StringCchLength StringCchLengthW -#else -#define StringCchLength StringCchLengthA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCchLengthA(const char* psz, size_t cchMax, size_t* pcch) -{ - HRESULT hr; - - if ((psz == NULL) || (cchMax > STRSAFE_MAX_CCH)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringLengthWorkerA(psz, cchMax, pcch); - } - - return hr; -} - -STRSAFEAPI StringCchLengthW(const wchar_t* psz, size_t cchMax, size_t* pcch) -{ - HRESULT hr; - - if ((psz == NULL) || (cchMax > STRSAFE_MAX_CCH)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringLengthWorkerW(psz, cchMax, pcch); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CCH_FUNCTIONS - - -#ifndef STRSAFE_NO_CB_FUNCTIONS -/*++ - -STDAPI -StringCbLength( - IN LPCTSTR psz, - IN size_t cbMax, - OUT size_t* pcb OPTIONAL - ); - -Routine Description: - - This routine is a safer version of the C built-in function 'strlen'. - It is used to make sure a string is not larger than a given length, and - it optionally returns the current length in bytes not including - the null terminator. - - This function returns a hresult, and not a pointer. It returns - S_OK if the string is non-null and the length including the null - terminator is less than or equal to cbMax bytes. - -Arguments: - - psz - string to check the length of - - cbMax - maximum number of bytes including the null terminator - that psz is allowed to contain - - pcb - if the function succeeds and pcb is non-null, the current length - in bytes of psz excluding the null terminator will be returned. - This out parameter is equivalent to the return value of strlen(psz) * sizeof(TCHAR) - -Notes: - psz can be null but the function will fail - - cbMax should be greater than or equal to sizeof(TCHAR) or the function will fail - -Return Value: - - S_OK - psz is non-null and the length including the null - terminator is less than or equal to cbMax bytes - - failure - you can use the macro HRESULT_CODE() to get a win32 - error code for all hresult failure cases - - It is strongly recommended to use the SUCCEEDED() / FAILED() macros to test the - return value of this function. - ---*/ - -STRSAFEAPI StringCbLengthA(const char* psz, size_t cchMax, size_t* pcch); -STRSAFEAPI StringCbLengthW(const wchar_t* psz, size_t cchMax, size_t* pcch); -#ifdef UNICODE -#define StringCbLength StringCbLengthW -#else -#define StringCbLength StringCbLengthA -#endif // !UNICODE - -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCbLengthA(const char* psz, size_t cbMax, size_t* pcb) -{ - HRESULT hr; - size_t cchMax; - size_t cch = 0; - - cchMax = cbMax / sizeof(char); - - if ((psz == NULL) || (cchMax > STRSAFE_MAX_CCH)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringLengthWorkerA(psz, cchMax, &cch); - } - - if (SUCCEEDED(hr) && pcb) - { - // safe to multiply cch * sizeof(char) since cch < STRSAFE_MAX_CCH and sizeof(char) is 1 - *pcb = cch * sizeof(char); - } - - return hr; -} - -STRSAFEAPI StringCbLengthW(const wchar_t* psz, size_t cbMax, size_t* pcb) -{ - HRESULT hr; - size_t cchMax; - size_t cch = 0; - - cchMax = cbMax / sizeof(wchar_t); - - if ((psz == NULL) || (cchMax > STRSAFE_MAX_CCH)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = StringLengthWorkerW(psz, cchMax, &cch); - } - - if (SUCCEEDED(hr) && pcb) - { - // safe to multiply cch * sizeof(wchar_t) since cch < STRSAFE_MAX_CCH and sizeof(wchar_t) is 2 - *pcb = cch * sizeof(wchar_t); - } - - return hr; -} -#endif // STRSAFE_INLINE -#endif // !STRSAFE_NO_CB_FUNCTIONS - - -// these are the worker functions that actually do the work -#ifdef STRSAFE_INLINE -STRSAFEAPI StringCopyWorkerA(char* pszDest, size_t cchDest, const char* pszSrc) -{ - HRESULT hr = S_OK; - - if (cchDest == 0) - { - // can not null terminate a zero-byte dest buffer - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - while (cchDest && (*pszSrc != '\0')) - { - *pszDest++ = *pszSrc++; - cchDest--; - } - - if (cchDest == 0) - { - // we are going to truncate pszDest - pszDest--; - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - - *pszDest= '\0'; - } - - return hr; -} - -STRSAFEAPI StringCopyWorkerW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc) -{ - HRESULT hr = S_OK; - - if (cchDest == 0) - { - // can not null terminate a zero-byte dest buffer - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - while (cchDest && (*pszSrc != L'\0')) - { - *pszDest++ = *pszSrc++; - cchDest--; - } - - if (cchDest == 0) - { - // we are going to truncate pszDest - pszDest--; - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - - *pszDest= L'\0'; - } - - return hr; -} - -STRSAFEAPI StringCopyExWorkerA(char* pszDest, size_t cchDest, size_t cbDest, const char* pszSrc, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr = S_OK; - char* pszDestEnd = pszDest; - size_t cchRemaining = 0; - - // ASSERT(cbDest == (cchDest * sizeof(char)) || - // cbDest == (cchDest * sizeof(char)) + (cbDest % sizeof(char))); - - // only accept valid flags - if (dwFlags & (~STRSAFE_VALID_FLAGS)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - if (dwFlags & STRSAFE_IGNORE_NULLS) - { - if (pszDest == NULL) - { - if ((cchDest != 0) || (cbDest != 0)) - { - // NULL pszDest and non-zero cchDest/cbDest is invalid - hr = STRSAFE_E_INVALID_PARAMETER; - } - } - - if (pszSrc == NULL) - { - pszSrc = ""; - } - } - - if (SUCCEEDED(hr)) - { - if (cchDest == 0) - { - pszDestEnd = pszDest; - cchRemaining = 0; - - // only fail if there was actually src data to copy - if (*pszSrc != '\0') - { - if (pszDest == NULL) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - } - } - else - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - while (cchRemaining && (*pszSrc != '\0')) - { - *pszDestEnd++= *pszSrc++; - cchRemaining--; - } - - if (cchRemaining > 0) - { - if (dwFlags & STRSAFE_FILL_BEHIND_NULL) - { - memset(pszDestEnd + 1, STRSAFE_GET_FILL_PATTERN(dwFlags), ((cchRemaining - 1) * sizeof(char)) + (cbDest % sizeof(char))); - } - } - else - { - // we are going to truncate pszDest - pszDestEnd--; - cchRemaining++; - - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - - *pszDestEnd = '\0'; - } - } - } - - if (FAILED(hr)) - { - if (pszDest) - { - if (dwFlags & STRSAFE_FILL_ON_FAILURE) - { - memset(pszDest, STRSAFE_GET_FILL_PATTERN(dwFlags), cbDest); - - if (STRSAFE_GET_FILL_PATTERN(dwFlags) == 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - } - else if (cchDest > 0) - { - pszDestEnd = pszDest + cchDest - 1; - cchRemaining = 1; - - // null terminate the end of the string - *pszDestEnd = '\0'; - } - } - - if (dwFlags & (STRSAFE_NULL_ON_FAILURE | STRSAFE_NO_TRUNCATION)) - { - if (cchDest > 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - // null terminate the beginning of the string - *pszDestEnd = '\0'; - } - } - } - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (ppszDestEnd) - { - *ppszDestEnd = pszDestEnd; - } - - if (pcchRemaining) - { - *pcchRemaining = cchRemaining; - } - } - - return hr; -} - -STRSAFEAPI StringCopyExWorkerW(wchar_t* pszDest, size_t cchDest, size_t cbDest, const wchar_t* pszSrc, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr = S_OK; - wchar_t* pszDestEnd = pszDest; - size_t cchRemaining = 0; - - // ASSERT(cbDest == (cchDest * sizeof(wchar_t)) || - // cbDest == (cchDest * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t))); - - // only accept valid flags - if (dwFlags & (~STRSAFE_VALID_FLAGS)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - if (dwFlags & STRSAFE_IGNORE_NULLS) - { - if (pszDest == NULL) - { - if ((cchDest != 0) || (cbDest != 0)) - { - // NULL pszDest and non-zero cchDest/cbDest is invalid - hr = STRSAFE_E_INVALID_PARAMETER; - } - } - - if (pszSrc == NULL) - { - pszSrc = L""; - } - } - - if (SUCCEEDED(hr)) - { - if (cchDest == 0) - { - pszDestEnd = pszDest; - cchRemaining = 0; - - // only fail if there was actually src data to copy - if (*pszSrc != L'\0') - { - if (pszDest == NULL) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - } - } - else - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - while (cchRemaining && (*pszSrc != L'\0')) - { - *pszDestEnd++= *pszSrc++; - cchRemaining--; - } - - if (cchRemaining > 0) - { - if (dwFlags & STRSAFE_FILL_BEHIND_NULL) - { - memset(pszDestEnd + 1, STRSAFE_GET_FILL_PATTERN(dwFlags), ((cchRemaining - 1) * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t))); - } - } - else - { - // we are going to truncate pszDest - pszDestEnd--; - cchRemaining++; - - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - - *pszDestEnd = L'\0'; - } - } - } - - if (FAILED(hr)) - { - if (pszDest) - { - if (dwFlags & STRSAFE_FILL_ON_FAILURE) - { - memset(pszDest, STRSAFE_GET_FILL_PATTERN(dwFlags), cbDest); - - if (STRSAFE_GET_FILL_PATTERN(dwFlags) == 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - } - else if (cchDest > 0) - { - pszDestEnd = pszDest + cchDest - 1; - cchRemaining = 1; - - // null terminate the end of the string - *pszDestEnd = L'\0'; - } - } - - if (dwFlags & (STRSAFE_NULL_ON_FAILURE | STRSAFE_NO_TRUNCATION)) - { - if (cchDest > 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - // null terminate the beginning of the string - *pszDestEnd = L'\0'; - } - } - } - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (ppszDestEnd) - { - *ppszDestEnd = pszDestEnd; - } - - if (pcchRemaining) - { - *pcchRemaining = cchRemaining; - } - } - - return hr; -} - -STRSAFEAPI StringCopyNWorkerA(char* pszDest, size_t cchDest, const char* pszSrc, size_t cchSrc) -{ - HRESULT hr = S_OK; - - if (cchDest == 0) - { - // can not null terminate a zero-byte dest buffer - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - while (cchDest && cchSrc && (*pszSrc != '\0')) - { - *pszDest++= *pszSrc++; - cchDest--; - cchSrc--; - } - - if (cchDest == 0) - { - // we are going to truncate pszDest - pszDest--; - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - - *pszDest= '\0'; - } - - return hr; -} - -STRSAFEAPI StringCopyNWorkerW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, size_t cchSrc) -{ - HRESULT hr = S_OK; - - if (cchDest == 0) - { - // can not null terminate a zero-byte dest buffer - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - while (cchDest && cchSrc && (*pszSrc != L'\0')) - { - *pszDest++= *pszSrc++; - cchDest--; - cchSrc--; - } - - if (cchDest == 0) - { - // we are going to truncate pszDest - pszDest--; - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - - *pszDest= L'\0'; - } - - return hr; -} - -STRSAFEAPI StringCopyNExWorkerA(char* pszDest, size_t cchDest, size_t cbDest, const char* pszSrc, size_t cchSrc, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr = S_OK; - char* pszDestEnd = pszDest; - size_t cchRemaining = 0; - - // ASSERT(cbDest == (cchDest * sizeof(char)) || - // cbDest == (cchDest * sizeof(char)) + (cbDest % sizeof(char))); - - // only accept valid flags - if (dwFlags & (~STRSAFE_VALID_FLAGS)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - if (dwFlags & STRSAFE_IGNORE_NULLS) - { - if (pszDest == NULL) - { - if ((cchDest != 0) || (cbDest != 0)) - { - // NULL pszDest and non-zero cchDest/cbDest is invalid - hr = STRSAFE_E_INVALID_PARAMETER; - } - } - - if (pszSrc == NULL) - { - pszSrc = ""; - } - } - - if (SUCCEEDED(hr)) - { - if (cchDest == 0) - { - pszDestEnd = pszDest; - cchRemaining = 0; - - // only fail if there was actually src data to copy - if (*pszSrc != '\0') - { - if (pszDest == NULL) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - } - } - else - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - while (cchRemaining && cchSrc && (*pszSrc != '\0')) - { - *pszDestEnd++= *pszSrc++; - cchRemaining--; - cchSrc--; - } - - if (cchRemaining > 0) - { - if (dwFlags & STRSAFE_FILL_BEHIND_NULL) - { - memset(pszDestEnd + 1, STRSAFE_GET_FILL_PATTERN(dwFlags), ((cchRemaining - 1) * sizeof(char)) + (cbDest % sizeof(char))); - } - } - else - { - // we are going to truncate pszDest - pszDestEnd--; - cchRemaining++; - - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - - *pszDestEnd = '\0'; - } - } - } - - if (FAILED(hr)) - { - if (pszDest) - { - if (dwFlags & STRSAFE_FILL_ON_FAILURE) - { - memset(pszDest, STRSAFE_GET_FILL_PATTERN(dwFlags), cbDest); - - if (STRSAFE_GET_FILL_PATTERN(dwFlags) == 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - } - else if (cchDest > 0) - { - pszDestEnd = pszDest + cchDest - 1; - cchRemaining = 1; - - // null terminate the end of the string - *pszDestEnd = '\0'; - } - } - - if (dwFlags & (STRSAFE_NULL_ON_FAILURE | STRSAFE_NO_TRUNCATION)) - { - if (cchDest > 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - // null terminate the beginning of the string - *pszDestEnd = '\0'; - } - } - } - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (ppszDestEnd) - { - *ppszDestEnd = pszDestEnd; - } - - if (pcchRemaining) - { - *pcchRemaining = cchRemaining; - } - } - - return hr; -} - -STRSAFEAPI StringCopyNExWorkerW(wchar_t* pszDest, size_t cchDest, size_t cbDest, const wchar_t* pszSrc, size_t cchSrc, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr = S_OK; - wchar_t* pszDestEnd = pszDest; - size_t cchRemaining = 0; - - // ASSERT(cbDest == (cchDest * sizeof(wchar_t)) || - // cbDest == (cchDest * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t))); - - // only accept valid flags - if (dwFlags & (~STRSAFE_VALID_FLAGS)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - if (dwFlags & STRSAFE_IGNORE_NULLS) - { - if (pszDest == NULL) - { - if ((cchDest != 0) || (cbDest != 0)) - { - // NULL pszDest and non-zero cchDest/cbDest is invalid - hr = STRSAFE_E_INVALID_PARAMETER; - } - } - - if (pszSrc == NULL) - { - pszSrc = L""; - } - } - - if (SUCCEEDED(hr)) - { - if (cchDest == 0) - { - pszDestEnd = pszDest; - cchRemaining = 0; - - // only fail if there was actually src data to copy - if (*pszSrc != L'\0') - { - if (pszDest == NULL) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - } - } - else - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - while (cchRemaining && cchSrc && (*pszSrc != L'\0')) - { - *pszDestEnd++= *pszSrc++; - cchRemaining--; - cchSrc--; - } - - if (cchRemaining > 0) - { - if (dwFlags & STRSAFE_FILL_BEHIND_NULL) - { - memset(pszDestEnd + 1, STRSAFE_GET_FILL_PATTERN(dwFlags), ((cchRemaining - 1) * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t))); - } - } - else - { - // we are going to truncate pszDest - pszDestEnd--; - cchRemaining++; - - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - - *pszDestEnd = L'\0'; - } - } - } - - if (FAILED(hr)) - { - if (pszDest) - { - if (dwFlags & STRSAFE_FILL_ON_FAILURE) - { - memset(pszDest, STRSAFE_GET_FILL_PATTERN(dwFlags), cbDest); - - if (STRSAFE_GET_FILL_PATTERN(dwFlags) == 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - } - else if (cchDest > 0) - { - pszDestEnd = pszDest + cchDest - 1; - cchRemaining = 1; - - // null terminate the end of the string - *pszDestEnd = L'\0'; - } - } - - if (dwFlags & (STRSAFE_NULL_ON_FAILURE | STRSAFE_NO_TRUNCATION)) - { - if (cchDest > 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - // null terminate the beginning of the string - *pszDestEnd = L'\0'; - } - } - } - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (ppszDestEnd) - { - *ppszDestEnd = pszDestEnd; - } - - if (pcchRemaining) - { - *pcchRemaining = cchRemaining; - } - } - - return hr; -} - -STRSAFEAPI StringCatWorkerA(char* pszDest, size_t cchDest, const char* pszSrc) -{ - HRESULT hr; - size_t cchDestCurrent; - - hr = StringLengthWorkerA(pszDest, cchDest, &cchDestCurrent); - - if (SUCCEEDED(hr)) - { - hr = StringCopyWorkerA(pszDest + cchDestCurrent, - cchDest - cchDestCurrent, - pszSrc); - } - - return hr; -} - -STRSAFEAPI StringCatWorkerW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc) -{ - HRESULT hr; - size_t cchDestCurrent; - - hr = StringLengthWorkerW(pszDest, cchDest, &cchDestCurrent); - - if (SUCCEEDED(hr)) - { - hr = StringCopyWorkerW(pszDest + cchDestCurrent, - cchDest - cchDestCurrent, - pszSrc); - } - - return hr; -} - -STRSAFEAPI StringCatExWorkerA(char* pszDest, size_t cchDest, size_t cbDest, const char* pszSrc, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr = S_OK; - char* pszDestEnd = pszDest; - size_t cchRemaining = 0; - - // ASSERT(cbDest == (cchDest * sizeof(char)) || - // cbDest == (cchDest * sizeof(char)) + (cbDest % sizeof(char))); - - // only accept valid flags - if (dwFlags & (~STRSAFE_VALID_FLAGS)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cchDestCurrent; - - if (dwFlags & STRSAFE_IGNORE_NULLS) - { - if (pszDest == NULL) - { - if ((cchDest == 0) && (cbDest == 0)) - { - cchDestCurrent = 0; - } - else - { - // NULL pszDest and non-zero cchDest/cbDest is invalid - hr = STRSAFE_E_INVALID_PARAMETER; - } - } - else - { - hr = StringLengthWorkerA(pszDest, cchDest, &cchDestCurrent); - - if (SUCCEEDED(hr)) - { - pszDestEnd = pszDest + cchDestCurrent; - cchRemaining = cchDest - cchDestCurrent; - } - } - - if (pszSrc == NULL) - { - pszSrc = ""; - } - } - else - { - hr = StringLengthWorkerA(pszDest, cchDest, &cchDestCurrent); - - if (SUCCEEDED(hr)) - { - pszDestEnd = pszDest + cchDestCurrent; - cchRemaining = cchDest - cchDestCurrent; - } - } - - if (SUCCEEDED(hr)) - { - if (cchDest == 0) - { - // only fail if there was actually src data to append - if (*pszSrc != '\0') - { - if (pszDest == NULL) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - } - } - else - { - // we handle the STRSAFE_FILL_ON_FAILURE and STRSAFE_NULL_ON_FAILURE cases below, so do not pass - // those flags through - hr = StringCopyExWorkerA(pszDestEnd, - cchRemaining, - (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)), - pszSrc, - &pszDestEnd, - &cchRemaining, - dwFlags & (~(STRSAFE_FILL_ON_FAILURE | STRSAFE_NULL_ON_FAILURE))); - } - } - } - - if (FAILED(hr)) - { - if (pszDest) - { - // STRSAFE_NO_TRUNCATION is taken care of by StringCopyExWorkerA() - - if (dwFlags & STRSAFE_FILL_ON_FAILURE) - { - memset(pszDest, STRSAFE_GET_FILL_PATTERN(dwFlags), cbDest); - - if (STRSAFE_GET_FILL_PATTERN(dwFlags) == 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - } - else - if (cchDest > 0) - { - pszDestEnd = pszDest + cchDest - 1; - cchRemaining = 1; - - // null terminate the end of the string - *pszDestEnd = '\0'; - } - } - - if (dwFlags & STRSAFE_NULL_ON_FAILURE) - { - if (cchDest > 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - // null terminate the beginning of the string - *pszDestEnd = '\0'; - } - } - } - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (ppszDestEnd) - { - *ppszDestEnd = pszDestEnd; - } - - if (pcchRemaining) - { - *pcchRemaining = cchRemaining; - } - } - - return hr; -} - -STRSAFEAPI StringCatExWorkerW(wchar_t* pszDest, size_t cchDest, size_t cbDest, const wchar_t* pszSrc, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr = S_OK; - wchar_t* pszDestEnd = pszDest; - size_t cchRemaining = 0; - - // ASSERT(cbDest == (cchDest * sizeof(wchar_t)) || - // cbDest == (cchDest * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t))); - - // only accept valid flags - if (dwFlags & (~STRSAFE_VALID_FLAGS)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - size_t cchDestCurrent; - - if (dwFlags & STRSAFE_IGNORE_NULLS) - { - if (pszDest == NULL) - { - if ((cchDest == 0) && (cbDest == 0)) - { - cchDestCurrent = 0; - } - else - { - // NULL pszDest and non-zero cchDest/cbDest is invalid - hr = STRSAFE_E_INVALID_PARAMETER; - } - } - else - { - hr = StringLengthWorkerW(pszDest, cchDest, &cchDestCurrent); - - if (SUCCEEDED(hr)) - { - pszDestEnd = pszDest + cchDestCurrent; - cchRemaining = cchDest - cchDestCurrent; - } - } - - if (pszSrc == NULL) - { - pszSrc = L""; - } - } - else - { - hr = StringLengthWorkerW(pszDest, cchDest, &cchDestCurrent); - - if (SUCCEEDED(hr)) - { - pszDestEnd = pszDest + cchDestCurrent; - cchRemaining = cchDest - cchDestCurrent; - } - } - - if (SUCCEEDED(hr)) - { - if (cchDest == 0) - { - // only fail if there was actually src data to append - if (*pszSrc != L'\0') - { - if (pszDest == NULL) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - } - } - else - { - // we handle the STRSAFE_FILL_ON_FAILURE and STRSAFE_NULL_ON_FAILURE cases below, so do not pass - // those flags through - hr = StringCopyExWorkerW(pszDestEnd, - cchRemaining, - (cchRemaining * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t)), - pszSrc, - &pszDestEnd, - &cchRemaining, - dwFlags & (~(STRSAFE_FILL_ON_FAILURE | STRSAFE_NULL_ON_FAILURE))); - } - } - } - - if (FAILED(hr)) - { - if (pszDest) - { - // STRSAFE_NO_TRUNCATION is taken care of by StringCopyExWorkerW() - - if (dwFlags & STRSAFE_FILL_ON_FAILURE) - { - memset(pszDest, STRSAFE_GET_FILL_PATTERN(dwFlags), cbDest); - - if (STRSAFE_GET_FILL_PATTERN(dwFlags) == 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - } - else if (cchDest > 0) - { - pszDestEnd = pszDest + cchDest - 1; - cchRemaining = 1; - - // null terminate the end of the string - *pszDestEnd = L'\0'; - } - } - - if (dwFlags & STRSAFE_NULL_ON_FAILURE) - { - if (cchDest > 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - // null terminate the beginning of the string - *pszDestEnd = L'\0'; - } - } - } - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (ppszDestEnd) - { - *ppszDestEnd = pszDestEnd; - } - - if (pcchRemaining) - { - *pcchRemaining = cchRemaining; - } - } - - return hr; -} - -STRSAFEAPI StringCatNWorkerA(char* pszDest, size_t cchDest, const char* pszSrc, size_t cchMaxAppend) -{ - HRESULT hr; - size_t cchDestCurrent; - - hr = StringLengthWorkerA(pszDest, cchDest, &cchDestCurrent); - - if (SUCCEEDED(hr)) - { - hr = StringCopyNWorkerA(pszDest + cchDestCurrent, - cchDest - cchDestCurrent, - pszSrc, - cchMaxAppend); - } - - return hr; -} - -STRSAFEAPI StringCatNWorkerW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszSrc, size_t cchMaxAppend) -{ - HRESULT hr; - size_t cchDestCurrent; - - hr = StringLengthWorkerW(pszDest, cchDest, &cchDestCurrent); - - if (SUCCEEDED(hr)) - { - hr = StringCopyNWorkerW(pszDest + cchDestCurrent, - cchDest - cchDestCurrent, - pszSrc, - cchMaxAppend); - } - - return hr; -} - -STRSAFEAPI StringCatNExWorkerA(char* pszDest, size_t cchDest, size_t cbDest, const char* pszSrc, size_t cchMaxAppend, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr = S_OK; - char* pszDestEnd = pszDest; - size_t cchRemaining = 0; - size_t cchDestCurrent = 0; - - // ASSERT(cbDest == (cchDest * sizeof(char)) || - // cbDest == (cchDest * sizeof(char)) + (cbDest % sizeof(char))); - - // only accept valid flags - if (dwFlags & (~STRSAFE_VALID_FLAGS)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - if (dwFlags & STRSAFE_IGNORE_NULLS) - { - if (pszDest == NULL) - { - if ((cchDest == 0) && (cbDest == 0)) - { - cchDestCurrent = 0; - } - else - { - // NULL pszDest and non-zero cchDest/cbDest is invalid - hr = STRSAFE_E_INVALID_PARAMETER; - } - } - else - { - hr = StringLengthWorkerA(pszDest, cchDest, &cchDestCurrent); - - if (SUCCEEDED(hr)) - { - pszDestEnd = pszDest + cchDestCurrent; - cchRemaining = cchDest - cchDestCurrent; - } - } - - if (pszSrc == NULL) - { - pszSrc = ""; - } - } - else - { - hr = StringLengthWorkerA(pszDest, cchDest, &cchDestCurrent); - - if (SUCCEEDED(hr)) - { - pszDestEnd = pszDest + cchDestCurrent; - cchRemaining = cchDest - cchDestCurrent; - } - } - - if (SUCCEEDED(hr)) - { - if (cchDest == 0) - { - // only fail if there was actually src data to append - if (*pszSrc != '\0') - { - if (pszDest == NULL) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - } - } - else - { - // we handle the STRSAFE_FILL_ON_FAILURE and STRSAFE_NULL_ON_FAILURE cases below, so do not pass - // those flags through - hr = StringCopyNExWorkerA(pszDestEnd, - cchRemaining, - (cchRemaining * sizeof(char)) + (cbDest % sizeof(char)), - pszSrc, - cchMaxAppend, - &pszDestEnd, - &cchRemaining, - dwFlags & (~(STRSAFE_FILL_ON_FAILURE | STRSAFE_NULL_ON_FAILURE))); - } - } - } - - if (FAILED(hr)) - { - if (pszDest) - { - // STRSAFE_NO_TRUNCATION is taken care of by StringCopyNExWorkerA() - - if (dwFlags & STRSAFE_FILL_ON_FAILURE) - { - memset(pszDest, STRSAFE_GET_FILL_PATTERN(dwFlags), cbDest); - - if (STRSAFE_GET_FILL_PATTERN(dwFlags) == 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - } - else if (cchDest > 0) - { - pszDestEnd = pszDest + cchDest - 1; - cchRemaining = 1; - - // null terminate the end of the string - *pszDestEnd = '\0'; - } - } - - if (dwFlags & (STRSAFE_NULL_ON_FAILURE)) - { - if (cchDest > 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - // null terminate the beginning of the string - *pszDestEnd = '\0'; - } - } - } - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (ppszDestEnd) - { - *ppszDestEnd = pszDestEnd; - } - - if (pcchRemaining) - { - *pcchRemaining = cchRemaining; - } - } - - return hr; -} - -STRSAFEAPI StringCatNExWorkerW(wchar_t* pszDest, size_t cchDest, size_t cbDest, const wchar_t* pszSrc, size_t cchMaxAppend, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr = S_OK; - wchar_t* pszDestEnd = pszDest; - size_t cchRemaining = 0; - size_t cchDestCurrent = 0; - - - // ASSERT(cbDest == (cchDest * sizeof(wchar_t)) || - // cbDest == (cchDest * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t))); - - // only accept valid flags - if (dwFlags & (~STRSAFE_VALID_FLAGS)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - if (dwFlags & STRSAFE_IGNORE_NULLS) - { - if (pszDest == NULL) - { - if ((cchDest == 0) && (cbDest == 0)) - { - cchDestCurrent = 0; - } - else - { - // NULL pszDest and non-zero cchDest/cbDest is invalid - hr = STRSAFE_E_INVALID_PARAMETER; - } - } - else - { - hr = StringLengthWorkerW(pszDest, cchDest, &cchDestCurrent); - - if (SUCCEEDED(hr)) - { - pszDestEnd = pszDest + cchDestCurrent; - cchRemaining = cchDest - cchDestCurrent; - } - } - - if (pszSrc == NULL) - { - pszSrc = L""; - } - } - else - { - hr = StringLengthWorkerW(pszDest, cchDest, &cchDestCurrent); - - if (SUCCEEDED(hr)) - { - pszDestEnd = pszDest + cchDestCurrent; - cchRemaining = cchDest - cchDestCurrent; - } - } - - if (SUCCEEDED(hr)) - { - if (cchDest == 0) - { - // only fail if there was actually src data to append - if (*pszSrc != L'\0') - { - if (pszDest == NULL) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - } - } - else - { - // we handle the STRSAFE_FILL_ON_FAILURE and STRSAFE_NULL_ON_FAILURE cases below, so do not pass - // those flags through - hr = StringCopyNExWorkerW(pszDestEnd, - cchRemaining, - (cchRemaining * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t)), - pszSrc, - cchMaxAppend, - &pszDestEnd, - &cchRemaining, - dwFlags & (~(STRSAFE_FILL_ON_FAILURE | STRSAFE_NULL_ON_FAILURE))); - } - } - } - - if (FAILED(hr)) - { - if (pszDest) - { - // STRSAFE_NO_TRUNCATION is taken care of by StringCopyNExWorkerW() - - if (dwFlags & STRSAFE_FILL_ON_FAILURE) - { - memset(pszDest, STRSAFE_GET_FILL_PATTERN(dwFlags), cbDest); - - if (STRSAFE_GET_FILL_PATTERN(dwFlags) == 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - } - else if (cchDest > 0) - { - pszDestEnd = pszDest + cchDest - 1; - cchRemaining = 1; - - // null terminate the end of the string - *pszDestEnd = L'\0'; - } - } - - if (dwFlags & (STRSAFE_NULL_ON_FAILURE)) - { - if (cchDest > 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - // null terminate the beginning of the string - *pszDestEnd = L'\0'; - } - } - } - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (ppszDestEnd) - { - *ppszDestEnd = pszDestEnd; - } - - if (pcchRemaining) - { - *pcchRemaining = cchRemaining; - } - } - - return hr; -} - -STRSAFEAPI StringVPrintfWorkerA(char* pszDest, size_t cchDest, const char* pszFormat, va_list argList) -{ - HRESULT hr = S_OK; - - if (cchDest == 0) - { - // can not null terminate a zero-byte dest buffer - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - int iRet; - size_t cchMax; - - // leave the last space for the null terminator - cchMax = cchDest - 1; - - iRet = _vsnprintf(pszDest, cchMax, pszFormat, argList); - // ASSERT((iRet < 0) || (((size_t)iRet) <= cchMax)); - - if ((iRet < 0) || (((size_t)iRet) > cchMax)) - { - // need to null terminate the string - pszDest += cchMax; - *pszDest = '\0'; - - // we have truncated pszDest - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - else if (((size_t)iRet) == cchMax) - { - // need to null terminate the string - pszDest += cchMax; - *pszDest = '\0'; - } - } - - return hr; -} - -STRSAFEAPI StringVPrintfWorkerW(wchar_t* pszDest, size_t cchDest, const wchar_t* pszFormat, va_list argList) -{ - HRESULT hr = S_OK; - - if (cchDest == 0) - { - // can not null terminate a zero-byte dest buffer - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - int iRet; - size_t cchMax; - - // leave the last space for the null terminator - cchMax = cchDest - 1; - - iRet = _vsnwprintf(pszDest, cchMax, pszFormat, argList); - // ASSERT((iRet < 0) || (((size_t)iRet) <= cchMax)); - - if ((iRet < 0) || (((size_t)iRet) > cchMax)) - { - // need to null terminate the string - pszDest += cchMax; - *pszDest = L'\0'; - - // we have truncated pszDest - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - else if (((size_t)iRet) == cchMax) - { - // need to null terminate the string - pszDest += cchMax; - *pszDest = L'\0'; - } - } - - return hr; -} - -STRSAFEAPI StringVPrintfExWorkerA(char* pszDest, size_t cchDest, size_t cbDest, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags, const char* pszFormat, va_list argList) -{ - HRESULT hr = S_OK; - char* pszDestEnd = pszDest; - size_t cchRemaining = 0; - - // ASSERT(cbDest == (cchDest * sizeof(char)) || - // cbDest == (cchDest * sizeof(char)) + (cbDest % sizeof(char))); - - // only accept valid flags - if (dwFlags & (~STRSAFE_VALID_FLAGS)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - if (dwFlags & STRSAFE_IGNORE_NULLS) - { - if (pszDest == NULL) - { - if ((cchDest != 0) || (cbDest != 0)) - { - // NULL pszDest and non-zero cchDest/cbDest is invalid - hr = STRSAFE_E_INVALID_PARAMETER; - } - } - - if (pszFormat == NULL) - { - pszFormat = ""; - } - } - - if (SUCCEEDED(hr)) - { - if (cchDest == 0) - { - pszDestEnd = pszDest; - cchRemaining = 0; - - // only fail if there was actually a non-empty format string - if (*pszFormat != '\0') - { - if (pszDest == NULL) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - } - } - else - { - int iRet; - size_t cchMax; - - // leave the last space for the null terminator - cchMax = cchDest - 1; - - iRet = _vsnprintf(pszDest, cchMax, pszFormat, argList); - // ASSERT((iRet < 0) || (((size_t)iRet) <= cchMax)); - - if ((iRet < 0) || (((size_t)iRet) > cchMax)) - { - // we have truncated pszDest - pszDestEnd = pszDest + cchMax; - cchRemaining = 1; - - // need to null terminate the string - *pszDestEnd = '\0'; - - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - else if (((size_t)iRet) == cchMax) - { - // string fit perfectly - pszDestEnd = pszDest + cchMax; - cchRemaining = 1; - - // need to null terminate the string - *pszDestEnd = '\0'; - } - else if (((size_t)iRet) < cchMax) - { - // there is extra room - pszDestEnd = pszDest + iRet; - cchRemaining = cchDest - iRet; - - if (dwFlags & STRSAFE_FILL_BEHIND_NULL) - { - memset(pszDestEnd + 1, STRSAFE_GET_FILL_PATTERN(dwFlags), ((cchRemaining - 1) * sizeof(char)) + (cbDest % sizeof(char))); - } - } - } - } - } - - if (FAILED(hr)) - { - if (pszDest) - { - if (dwFlags & STRSAFE_FILL_ON_FAILURE) - { - memset(pszDest, STRSAFE_GET_FILL_PATTERN(dwFlags), cbDest); - - if (STRSAFE_GET_FILL_PATTERN(dwFlags) == 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - } - else if (cchDest > 0) - { - pszDestEnd = pszDest + cchDest - 1; - cchRemaining = 1; - - // null terminate the end of the string - *pszDestEnd = '\0'; - } - } - - if (dwFlags & (STRSAFE_NULL_ON_FAILURE | STRSAFE_NO_TRUNCATION)) - { - if (cchDest > 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - // null terminate the beginning of the string - *pszDestEnd = '\0'; - } - } - } - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (ppszDestEnd) - { - *ppszDestEnd = pszDestEnd; - } - - if (pcchRemaining) - { - *pcchRemaining = cchRemaining; - } - } - - return hr; -} - -STRSAFEAPI StringVPrintfExWorkerW(wchar_t* pszDest, size_t cchDest, size_t cbDest, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags, const wchar_t* pszFormat, va_list argList) -{ - HRESULT hr = S_OK; - wchar_t* pszDestEnd = pszDest; - size_t cchRemaining = 0; - - // ASSERT(cbDest == (cchDest * sizeof(wchar_t)) || - // cbDest == (cchDest * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t))); - - // only accept valid flags - if (dwFlags & (~STRSAFE_VALID_FLAGS)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - if (dwFlags & STRSAFE_IGNORE_NULLS) - { - if (pszDest == NULL) - { - if ((cchDest != 0) || (cbDest != 0)) - { - // NULL pszDest and non-zero cchDest/cbDest is invalid - hr = STRSAFE_E_INVALID_PARAMETER; - } - } - - if (pszFormat == NULL) - { - pszFormat = L""; - } - } - - if (SUCCEEDED(hr)) - { - if (cchDest == 0) - { - pszDestEnd = pszDest; - cchRemaining = 0; - - // only fail if there was actually a non-empty format string - if (*pszFormat != L'\0') - { - if (pszDest == NULL) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - } - } - else - { - int iRet; - size_t cchMax; - - // leave the last space for the null terminator - cchMax = cchDest - 1; - - iRet = _vsnwprintf(pszDest, cchMax, pszFormat, argList); - // ASSERT((iRet < 0) || (((size_t)iRet) <= cchMax)); - - if ((iRet < 0) || (((size_t)iRet) > cchMax)) - { - // we have truncated pszDest - pszDestEnd = pszDest + cchMax; - cchRemaining = 1; - - // need to null terminate the string - *pszDestEnd = L'\0'; - - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - else if (((size_t)iRet) == cchMax) - { - // string fit perfectly - pszDestEnd = pszDest + cchMax; - cchRemaining = 1; - - // need to null terminate the string - *pszDestEnd = L'\0'; - } - else if (((size_t)iRet) < cchMax) - { - // there is extra room - pszDestEnd = pszDest + iRet; - cchRemaining = cchDest - iRet; - - if (dwFlags & STRSAFE_FILL_BEHIND_NULL) - { - memset(pszDestEnd + 1, STRSAFE_GET_FILL_PATTERN(dwFlags), ((cchRemaining - 1) * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t))); - } - } - } - } - } - - if (FAILED(hr)) - { - if (pszDest) - { - if (dwFlags & STRSAFE_FILL_ON_FAILURE) - { - memset(pszDest, STRSAFE_GET_FILL_PATTERN(dwFlags), cbDest); - - if (STRSAFE_GET_FILL_PATTERN(dwFlags) == 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - } - else if (cchDest > 0) - { - pszDestEnd = pszDest + cchDest - 1; - cchRemaining = 1; - - // null terminate the end of the string - *pszDestEnd = L'\0'; - } - } - - if (dwFlags & (STRSAFE_NULL_ON_FAILURE | STRSAFE_NO_TRUNCATION)) - { - if (cchDest > 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - // null terminate the beginning of the string - *pszDestEnd = L'\0'; - } - } - } - } - - if (SUCCEEDED(hr) || (hr == STRSAFE_E_INSUFFICIENT_BUFFER)) - { - if (ppszDestEnd) - { - *ppszDestEnd = pszDestEnd; - } - - if (pcchRemaining) - { - *pcchRemaining = cchRemaining; - } - } - - return hr; -} - -STRSAFEAPI StringLengthWorkerA(const char* psz, size_t cchMax, size_t* pcch) -{ - HRESULT hr = S_OK; - size_t cchMaxPrev = cchMax; - - while (cchMax && (*psz != '\0')) - { - psz++; - cchMax--; - } - - if (cchMax == 0) - { - // the string is longer than cchMax - hr = STRSAFE_E_INVALID_PARAMETER; - } - - if (SUCCEEDED(hr) && pcch) - { - *pcch = cchMaxPrev - cchMax; - } - - return hr; -} - -STRSAFEAPI StringLengthWorkerW(const wchar_t* psz, size_t cchMax, size_t* pcch) -{ - HRESULT hr = S_OK; - size_t cchMaxPrev = cchMax; - - while (cchMax && (*psz != L'\0')) - { - psz++; - cchMax--; - } - - if (cchMax == 0) - { - // the string is longer than cchMax - hr = STRSAFE_E_INVALID_PARAMETER; - } - - if (SUCCEEDED(hr) && pcch) - { - *pcch = cchMaxPrev - cchMax; - } - - return hr; -} -#endif // STRSAFE_INLINE - -#ifndef STRSAFE_LIB_IMPL -STRSAFE_INLINE_API StringGetsExWorkerA(char* pszDest, size_t cchDest, size_t cbDest, char** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr = S_OK; - char* pszDestEnd = pszDest; - size_t cchRemaining = 0; - - // ASSERT(cbDest == (cchDest * sizeof(char)) || - // cbDest == (cchDest * sizeof(char)) + (cbDest % sizeof(char))); - - // only accept valid flags - if (dwFlags & (~STRSAFE_VALID_FLAGS)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - if (dwFlags & STRSAFE_IGNORE_NULLS) - { - if (pszDest == NULL) - { - if ((cchDest != 0) || (cbDest != 0)) - { - // NULL pszDest and non-zero cchDest/cbDest is invalid - hr = STRSAFE_E_INVALID_PARAMETER; - } - } - } - - if (SUCCEEDED(hr)) - { - if (cchDest <= 1) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - if (cchDest == 1) - { - *pszDestEnd = '\0'; - } - - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - else - { - char ch; - - pszDestEnd = pszDest; - cchRemaining = cchDest; - - while ((cchRemaining > 1) && (ch = (char)getc(stdin)) != '\n') - { - if (ch == EOF) - { - if (pszDestEnd == pszDest) - { - // we failed to read anything from stdin - hr = STRSAFE_E_END_OF_FILE; - } - break; - } - - *pszDestEnd = ch; - - pszDestEnd++; - cchRemaining--; - } - - if (cchRemaining > 0) - { - // there is extra room - if (dwFlags & STRSAFE_FILL_BEHIND_NULL) - { - memset(pszDestEnd + 1, STRSAFE_GET_FILL_PATTERN(dwFlags), ((cchRemaining - 1) * sizeof(char)) + (cbDest % sizeof(char))); - } - } - - *pszDestEnd = '\0'; - } - } - } - - if (FAILED(hr)) - { - if (pszDest) - { - if (dwFlags & STRSAFE_FILL_ON_FAILURE) - { - memset(pszDest, STRSAFE_GET_FILL_PATTERN(dwFlags), cbDest); - - if (STRSAFE_GET_FILL_PATTERN(dwFlags) == 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - } - else if (cchDest > 0) - { - pszDestEnd = pszDest + cchDest - 1; - cchRemaining = 1; - - // null terminate the end of the string - *pszDestEnd = '\0'; - } - } - - if (dwFlags & (STRSAFE_NULL_ON_FAILURE | STRSAFE_NO_TRUNCATION)) - { - if (cchDest > 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - // null terminate the beginning of the string - *pszDestEnd = '\0'; - } - } - } - } - - if (SUCCEEDED(hr) || - (hr == STRSAFE_E_INSUFFICIENT_BUFFER) || - (hr == STRSAFE_E_END_OF_FILE)) - { - if (ppszDestEnd) - { - *ppszDestEnd = pszDestEnd; - } - - if (pcchRemaining) - { - *pcchRemaining = cchRemaining; - } - } - - return hr; -} - -STRSAFE_INLINE_API StringGetsExWorkerW(wchar_t* pszDest, size_t cchDest, size_t cbDest, wchar_t** ppszDestEnd, size_t* pcchRemaining, unsigned long dwFlags) -{ - HRESULT hr = S_OK; - wchar_t* pszDestEnd = pszDest; - size_t cchRemaining = 0; - - // ASSERT(cbDest == (cchDest * sizeof(char)) || - // cbDest == (cchDest * sizeof(char)) + (cbDest % sizeof(char))); - - // only accept valid flags - if (dwFlags & (~STRSAFE_VALID_FLAGS)) - { - hr = STRSAFE_E_INVALID_PARAMETER; - } - else - { - if (dwFlags & STRSAFE_IGNORE_NULLS) - { - if (pszDest == NULL) - { - if ((cchDest != 0) || (cbDest != 0)) - { - // NULL pszDest and non-zero cchDest/cbDest is invalid - hr = STRSAFE_E_INVALID_PARAMETER; - } - } - } - - if (SUCCEEDED(hr)) - { - if (cchDest <= 1) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - if (cchDest == 1) - { - *pszDestEnd = L'\0'; - } - - hr = STRSAFE_E_INSUFFICIENT_BUFFER; - } - else - { - wchar_t ch; - - pszDestEnd = pszDest; - cchRemaining = cchDest; - - while ((cchRemaining > 1) && (ch = (wchar_t)getwc(stdin)) != L'\n') - { - if (ch == EOF) - { - if (pszDestEnd == pszDest) - { - // we failed to read anything from stdin - hr = STRSAFE_E_END_OF_FILE; - } - break; - } - - *pszDestEnd = ch; - - pszDestEnd++; - cchRemaining--; - } - - if (cchRemaining > 0) - { - // there is extra room - if (dwFlags & STRSAFE_FILL_BEHIND_NULL) - { - memset(pszDestEnd + 1, STRSAFE_GET_FILL_PATTERN(dwFlags), ((cchRemaining - 1) * sizeof(wchar_t)) + (cbDest % sizeof(wchar_t))); - } - } - - *pszDestEnd = L'\0'; - } - } - } - - if (FAILED(hr)) - { - if (pszDest) - { - if (dwFlags & STRSAFE_FILL_ON_FAILURE) - { - memset(pszDest, STRSAFE_GET_FILL_PATTERN(dwFlags), cbDest); - - if (STRSAFE_GET_FILL_PATTERN(dwFlags) == 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - } - else if (cchDest > 0) - { - pszDestEnd = pszDest + cchDest - 1; - cchRemaining = 1; - - // null terminate the end of the string - *pszDestEnd = L'\0'; - } - } - - if (dwFlags & (STRSAFE_NULL_ON_FAILURE | STRSAFE_NO_TRUNCATION)) - { - if (cchDest > 0) - { - pszDestEnd = pszDest; - cchRemaining = cchDest; - - // null terminate the beginning of the string - *pszDestEnd = L'\0'; - } - } - } - } - - if (SUCCEEDED(hr) || - (hr == STRSAFE_E_INSUFFICIENT_BUFFER) || - (hr == STRSAFE_E_END_OF_FILE)) - { - if (ppszDestEnd) - { - *ppszDestEnd = pszDestEnd; - } - - if (pcchRemaining) - { - *pcchRemaining = cchRemaining; - } - } - - return hr; -} -#endif // !STRSAFE_LIB_IMPL - - -// Do not call these functions, they are worker functions for internal use within this file -#ifdef DEPRECATE_SUPPORTED -#pragma deprecated(StringCopyWorkerA) -#pragma deprecated(StringCopyWorkerW) -#pragma deprecated(StringCopyExWorkerA) -#pragma deprecated(StringCopyExWorkerW) -#pragma deprecated(StringCatWorkerA) -#pragma deprecated(StringCatWorkerW) -#pragma deprecated(StringCatExWorkerA) -#pragma deprecated(StringCatExWorkerW) -#pragma deprecated(StringCatNWorkerA) -#pragma deprecated(StringCatNWorkerW) -#pragma deprecated(StringCatNExWorkerA) -#pragma deprecated(StringCatNExWorkerW) -#pragma deprecated(StringVPrintfWorkerA) -#pragma deprecated(StringVPrintfWorkerW) -#pragma deprecated(StringVPrintfExWorkerA) -#pragma deprecated(StringVPrintfExWorkerW) -#pragma deprecated(StringLengthWorkerA) -#pragma deprecated(StringLengthWorkerW) -#else -#define StringCopyWorkerA StringCopyWorkerA_instead_use_StringCchCopyA_or_StringCchCopyExA; -#define StringCopyWorkerW StringCopyWorkerW_instead_use_StringCchCopyW_or_StringCchCopyExW; -#define StringCopyExWorkerA StringCopyExWorkerA_instead_use_StringCchCopyA_or_StringCchCopyExA; -#define StringCopyExWorkerW StringCopyExWorkerW_instead_use_StringCchCopyW_or_StringCchCopyExW; -#define StringCatWorkerA StringCatWorkerA_instead_use_StringCchCatA_or_StringCchCatExA; -#define StringCatWorkerW StringCatWorkerW_instead_use_StringCchCatW_or_StringCchCatExW; -#define StringCatExWorkerA StringCatExWorkerA_instead_use_StringCchCatA_or_StringCchCatExA; -#define StringCatExWorkerW StringCatExWorkerW_instead_use_StringCchCatW_or_StringCchCatExW; -#define StringCatNWorkerA StringCatNWorkerA_instead_use_StringCchCatNA_or_StrincCbCatNA; -#define StringCatNWorkerW StringCatNWorkerW_instead_use_StringCchCatNW_or_StringCbCatNW; -#define StringCatNExWorkerA StringCatNExWorkerA_instead_use_StringCchCatNExA_or_StringCbCatNExA; -#define StringCatNExWorkerW StringCatNExWorkerW_instead_use_StringCchCatNExW_or_StringCbCatNExW; -#define StringVPrintfWorkerA StringVPrintfWorkerA_instead_use_StringCchVPrintfA_or_StringCchVPrintfExA; -#define StringVPrintfWorkerW StringVPrintfWorkerW_instead_use_StringCchVPrintfW_or_StringCchVPrintfExW; -#define StringVPrintfExWorkerA StringVPrintfExWorkerA_instead_use_StringCchVPrintfA_or_StringCchVPrintfExA; -#define StringVPrintfExWorkerW StringVPrintfExWorkerW_instead_use_StringCchVPrintfW_or_StringCchVPrintfExW; -#define StringLengthWorkerA StringLengthWorkerA_instead_use_StringCchLengthA_or_StringCbLengthA; -#define StringLengthWorkerW StringLengthWorkerW_instead_use_StringCchLengthW_or_StringCbLengthW; -#endif // !DEPRECATE_SUPPORTED - - -#ifndef STRSAFE_NO_DEPRECATE -// Deprecate all of the unsafe functions to generate compiletime errors. If you do not want -// this then you can #define STRSAFE_NO_DEPRECATE before including this file. -#ifdef DEPRECATE_SUPPORTED - -// First all the names that are a/w variants (or shouldn't be #defined by now anyway). -#pragma deprecated(lstrcpyA) -#pragma deprecated(lstrcpyW) -#pragma deprecated(lstrcatA) -#pragma deprecated(lstrcatW) -#pragma deprecated(wsprintfA) -#pragma deprecated(wsprintfW) - -#pragma deprecated(StrCpyW) -#pragma deprecated(StrCatW) -#pragma deprecated(StrNCatA) -#pragma deprecated(StrNCatW) -#pragma deprecated(StrCatNA) -#pragma deprecated(StrCatNW) -#pragma deprecated(wvsprintfA) -#pragma deprecated(wvsprintfW) - -#pragma deprecated(strcpy) -#pragma deprecated(wcscpy) -#pragma deprecated(strcat) -#pragma deprecated(wcscat) -#pragma deprecated(sprintf) -#pragma deprecated(swprintf) -#pragma deprecated(vsprintf) -#pragma deprecated(vswprintf) -#pragma deprecated(_snprintf) -#pragma deprecated(_snwprintf) -#pragma deprecated(_vsnprintf) -#pragma deprecated(_vsnwprintf) -#pragma deprecated(gets) -#pragma deprecated(_getws) - -// Then all the windows.h names - we need to undef and redef based on UNICODE setting -#undef lstrcpy -#undef lstrcat -#undef wsprintf -#undef wvsprintf -#pragma deprecated(lstrcpy) -#pragma deprecated(lstrcat) -#pragma deprecated(wsprintf) -#pragma deprecated(wvsprintf) -#ifdef UNICODE -#define lstrcpy lstrcpyW -#define lstrcat lstrcatW -#define wsprintf wsprintfW -#define wvsprintf wvsprintfW -#else -#define lstrcpy lstrcpyA -#define lstrcat lstrcatA -#define wsprintf wsprintfA -#define wvsprintf wvsprintfA -#endif - -// Then the shlwapi names - they key off UNICODE also. -#undef StrCpyA -#undef StrCpy -#undef StrCatA -#undef StrCat -#undef StrNCat -#undef StrCatN -#pragma deprecated(StrCpyA) -#pragma deprecated(StrCatA) -#pragma deprecated(StrCatN) -#pragma deprecated(StrCpy) -#pragma deprecated(StrCat) -#pragma deprecated(StrNCat) -#define StrCpyA lstrcpyA -#define StrCatA lstrcatA -#define StrCatN StrNCat -#ifdef UNICODE -#define StrCpy StrCpyW -#define StrCat StrCatW -#define StrNCat StrNCatW -#else -#define StrCpy lstrcpyA -#define StrCat lstrcatA -#define StrNCat StrNCatA -#endif - -// Then all the CRT names - we need to undef/redef based on _UNICODE value. -#undef _tcscpy -#undef _ftcscpy -#undef _tcscat -#undef _ftcscat -#undef _stprintf -#undef _sntprintf -#undef _vstprintf -#undef _vsntprintf -#undef _getts -#pragma deprecated(_tcscpy) -#pragma deprecated(_ftcscpy) -#pragma deprecated(_tcscat) -#pragma deprecated(_ftcscat) -#pragma deprecated(_stprintf) -#pragma deprecated(_sntprintf) -#pragma deprecated(_vstprintf) -#pragma deprecated(_vsntprintf) -#pragma deprecated(_getts) -#ifdef _UNICODE -#define _tcscpy wcscpy -#define _ftcscpy wcscpy -#define _tcscat wcscat -#define _ftcscat wcscat -#define _stprintf swprintf -#define _sntprintf _snwprintf -#define _vstprintf vswprintf -#define _vsntprintf _vsnwprintf -#define _getts _getws -#else -#define _tcscpy strcpy -#define _ftcscpy strcpy -#define _tcscat strcat -#define _ftcscat strcat -#define _stprintf sprintf -#define _sntprintf _snprintf -#define _vstprintf vsprintf -#define _vsntprintf _vsnprintf -#define _getts gets -#endif - -#else // DEPRECATE_SUPPORTED - -#undef strcpy -#define strcpy strcpy_instead_use_StringCbCopyA_or_StringCchCopyA; - -#undef wcscpy -#define wcscpy wcscpy_instead_use_StringCbCopyW_or_StringCchCopyW; - -#undef strcat -#define strcat strcat_instead_use_StringCbCatA_or_StringCchCatA; - -#undef wcscat -#define wcscat wcscat_instead_use_StringCbCatW_or_StringCchCatW; - -#undef sprintf -#define sprintf sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA; - -#undef swprintf -#define swprintf swprintf_instead_use_StringCbPrintfW_or_StringCchPrintfW; - -#undef vsprintf -#define vsprintf vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrintfA; - -#undef vswprintf -#define vswprintf vswprintf_instead_use_StringCbVPrintfW_or_StringCchVPrintfW; - -#undef _snprintf -#define _snprintf _snprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA; - -#undef _snwprintf -#define _snwprintf _snwprintf_instead_use_StringCbPrintfW_or_StringCchPrintfW; - -#undef _vsnprintf -#define _vsnprintf _vsnprintf_instead_use_StringCbVPrintfA_or_StringCchVPrintfA; - -#undef _vsnwprintf -#define _vsnwprintf _vsnwprintf_instead_use_StringCbVPrintfW_or_StringCchVPrintfW; - -#undef strcpyA -#define strcpyA strcpyA_instead_use_StringCbCopyA_or_StringCchCopyA; - -#undef strcpyW -#define strcpyW strcpyW_instead_use_StringCbCopyW_or_StringCchCopyW; - -#undef lstrcpy -#define lstrcpy lstrcpy_instead_use_StringCbCopy_or_StringCchCopy; - -#undef lstrcpyA -#define lstrcpyA lstrcpyA_instead_use_StringCbCopyA_or_StringCchCopyA; - -#undef lstrcpyW -#define lstrcpyW lstrcpyW_instead_use_StringCbCopyW_or_StringCchCopyW; - -#undef StrCpy -#define StrCpy StrCpy_instead_use_StringCbCopy_or_StringCchCopy; - -#undef StrCpyA -#define StrCpyA StrCpyA_instead_use_StringCbCopyA_or_StringCchCopyA; - -#undef StrCpyW -#define StrCpyW StrCpyW_instead_use_StringCbCopyW_or_StringCchCopyW; - -#undef _tcscpy -#define _tcscpy _tcscpy_instead_use_StringCbCopy_or_StringCchCopy; - -#undef _ftcscpy -#define _ftcscpy _ftcscpy_instead_use_StringCbCopy_or_StringCchCopy; - -#undef lstrcat -#define lstrcat lstrcat_instead_use_StringCbCat_or_StringCchCat; - -#undef lstrcatA -#define lstrcatA lstrcatA_instead_use_StringCbCatA_or_StringCchCatA; - -#undef lstrcatW -#define lstrcatW lstrcatW_instead_use_StringCbCatW_or_StringCchCatW; - -#undef StrCat -#define StrCat StrCat_instead_use_StringCbCat_or_StringCchCat; - -#undef StrCatA -#define StrCatA StrCatA_instead_use_StringCbCatA_or_StringCchCatA; - -#undef StrCatW -#define StrCatW StrCatW_instead_use_StringCbCatW_or_StringCchCatW; - -#undef StrNCat -#define StrNCat StrNCat_instead_use_StringCbCatN_or_StringCchCatN; - -#undef StrNCatA -#define StrNCatA StrNCatA_instead_use_StringCbCatNA_or_StringCchCatNA; - -#undef StrNCatW -#define StrNCatW StrNCatW_instead_use_StringCbCatNW_or_StringCchCatNW; - -#undef StrCatN -#define StrCatN StrCatN_instead_use_StringCbCatN_or_StringCchCatN; - -#undef StrCatNA -#define StrCatNA StrCatNA_instead_use_StringCbCatNA_or_StringCchCatNA; - -#undef StrCatNW -#define StrCatNW StrCatNW_instead_use_StringCbCatNW_or_StringCchCatNW; - -#undef _tcscat -#define _tcscat _tcscat_instead_use_StringCbCat_or_StringCchCat; - -#undef _ftcscat -#define _ftcscat _ftcscat_instead_use_StringCbCat_or_StringCchCat; - -#undef wsprintf -#define wsprintf wsprintf_instead_use_StringCbPrintf_or_StringCchPrintf; - -#undef wsprintfA -#define wsprintfA wsprintfA_instead_use_StringCbPrintfA_or_StringCchPrintfA; - -#undef wsprintfW -#define wsprintfW wsprintfW_instead_use_StringCbPrintfW_or_StringCchPrintfW; - -#undef wvsprintf -#define wvsprintf wvsprintf_instead_use_StringCbVPrintf_or_StringCchVPrintf; - -#undef wvsprintfA -#define wvsprintfA wvsprintfA_instead_use_StringCbVPrintfA_or_StringCchVPrintfA; - -#undef wvsprintfW -#define wvsprintfW wvsprintfW_instead_use_StringCbVPrintfW_or_StringCchVPrintfW; - -#undef _vstprintf -#define _vstprintf _vstprintf_instead_use_StringCbVPrintf_or_StringCchVPrintf; - -#undef _vsntprintf -#define _vsntprintf _vsntprintf_instead_use_StringCbVPrintf_or_StringCchVPrintf; - -#undef _stprintf -#define _stprintf _stprintf_instead_use_StringCbPrintf_or_StringCchPrintf; - -#undef _sntprintf -#define _sntprintf _sntprintf_instead_use_StringCbPrintf_or_StringCchPrintf; - -#undef _getts -#define _getts _getts_instead_use_StringCbGets_or_StringCchGets; - -#undef gets -#define gets _gets_instead_use_StringCbGetsA_or_StringCchGetsA; - -#undef _getws -#define _getws _getws_instead_use_StringCbGetsW_or_StringCchGetsW; - -#endif // !DEPRECATE_SUPPORTED -#endif // !STRSAFE_NO_DEPRECATE - -#ifdef _NTSTRSAFE_H_INCLUDED_ -#pragma warning(pop) -#endif // _NTSTRSAFE_H_INCLUDED_ - -#endif // _STRSAFE_H_INCLUDED_ diff --git a/sdk/dx8sdk/Include/tune.h b/sdk/dx8sdk/Include/tune.h deleted file mode 100644 index 63920f90..00000000 --- a/sdk/dx8sdk/Include/tune.h +++ /dev/null @@ -1,1107 +0,0 @@ -//------------------------------------------------------------------------------ -// File: Tune.h -// -// Desc: Additional infrastructure to extend the tuner.idl. Works nicely -// from C++. -// -// Copyright (c) 1999 - 2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#pragma once - -#ifndef TUNE_H -#define TUNE_H - -#include - -namespace BDATuningModel { - -const long DEFAULT_MIN_CHANNEL = 2; -const long DEFAULT_MAX_CHANNEL = 999; -const long DEFAULT_MIN_FREQUENCY = 535; //bottom us am -const long DEFAULT_MAX_FREQUENCY = 108000; // top us fm -const long DEFAULT_ANALOG_TUNER_COUNTRY_CODE = 1; //usa -const TunerInputType DEFAULT_ANALOG_TUNER_INPUT_TYPE = TunerInputCable; //usa - -typedef CComQIPtr PQTuningSpaceContainer; -typedef CComQIPtr PQTuningSpace; -typedef CComQIPtr PQAnalogRadioTuningSpace; -typedef CComQIPtr PQAnalogTVTuningSpace; -typedef CComQIPtr PQATSCTuningSpace; -typedef CComQIPtr PQTuneRequest; -typedef CComQIPtr PQChannelTuneRequest; -typedef CComQIPtr PQATSCChannelTuneRequest; -typedef CComQIPtr PQLocator; -typedef CComQIPtr PQATSCLocator; -typedef CComQIPtr PQDVBTuningSpace; -typedef CComQIPtr PQDVBTuneRequest; -typedef CComQIPtr PQDVBSLocator; -typedef CComQIPtr PQDVBTLocator; -typedef CComQIPtr PQDVBCLocator; -typedef CComQIPtr PQAuxInTuningSpace; - -// tuning space container -class TNTuningSpaceContainer : public PQTuningSpaceContainer { - TNTuningSpaceContainer() {} - TNTuningSpaceContainer(const PQTuningSpaceContainer &a) : PQTuningSpaceContainer(a) {} - TNTuningSpaceContainer(ITuningSpace *p) : PQTuningSpaceContainer(p) {} - TNTuningSpaceContainer(IUnknown *p) : PQTuningSpaceContainer(p) {} - TNTuningSpaceContainer(const TNTuningSpaceContainer &a) : PQTuningSpaceContainer(a) {} - TNTuningSpaceContainer& operator=(TNTuningSpaceContainer& rhs) { - PQTuningSpaceContainer::operator=(rhs); - return *this; - } - -}; - -// tuning spaces -template class TNTuningSpaceHelper : public TUNINGSPACETYPE { -public: - TNTuningSpaceHelper() {} - TNTuningSpaceHelper(const TUNINGSPACETYPE &a) : TUNINGSPACETYPE(a) {} - TNTuningSpaceHelper(ITuningSpace *p) : TUNINGSPACETYPE(p) {} - TNTuningSpaceHelper(IUnknown *p) : TUNINGSPACETYPE(p) {} - TNTuningSpaceHelper(const TNTuningSpaceHelper &a) : TUNINGSPACETYPE(a) {} - TNTuningSpaceHelper& operator=(TNTuningSpaceHelper& rhs) { - TUNINGSPACETYPE::operator=(rhs); - return *this; - } - TNTuningSpaceHelper& operator=(TUNINGSPACETYPE& rhs) { - TUNINGSPACETYPE::operator=(rhs); - return *this; - } - TNTuningSpaceHelper& operator=(IUnknown *rhs) { - TUNINGSPACETYPE::operator=(rhs); - return *this; - } - TNTuningSpaceHelper& operator=(ITuningSpace *rhs) { - TUNINGSPACETYPE::operator=(rhs); - return *this; - } - bool operator==(TUNINGSPACETYPE& rhs) { - CComBSTR rhsname; - HRESULT hr = rhs->get_UniqueName(&rhsname); - if (FAILED(hr)) { - return false; - } - CComBSTR name; - hr = (*this)->get_UniqueName(&name); - if (FAILED(hr)) { - return false; - } - return name == rhsname; - } - bool operator!=(TUNINGSPACETYPE& rhs) { - return !operator==(rhs); - } - PQTuneRequest CreateTuneRequest() { - PQTuneRequest p; - HRESULT hr = (*this)->CreateTuneRequest(&p); - if (FAILED(hr)) { - return PQTuneRequest(); - } - return p; - } - - PQLocator Locator() { - _ASSERT(*this); - PQLocator ts; - HRESULT hr = (*this)->get_DefaultLocator(&ts); - if (FAILED(hr)) { - return PQLocator(); - } - return ts; - } - - HRESULT Locator(PQLocator& l) { - _ASSERT(*this); - return (*this)->put_Locator(l); - } - - void Clone() { - PQTuningSpace t; - HRESULT hr = (*this)->Clone(&t); - if (FAILED(hr) || !t) { - Release(); // clone failed, clear ourselves - return; - } - TUNINGSPACETYPE::operator=(t); - } - -}; - -typedef TNTuningSpaceHelper TNTuningSpace; - -template class TNAnalogRadioTuningSpaceHelper : public TNTuningSpaceHelper { -public: - TNAnalogRadioTuningSpaceHelper() {} - TNAnalogRadioTuningSpaceHelper(const TUNINGSPACETYPE &a) : TNTuningSpaceHelper(a) {} - TNAnalogRadioTuningSpaceHelper(IUnknown *p) : TNTuningSpaceHelper(p) {} - TNAnalogRadioTuningSpaceHelper(const TNAnalogRadioTuningSpaceHelper &a) : TNTuningSpaceHelper(a) {} - TNAnalogRadioTuningSpaceHelper& operator=(TNAnalogRadioTuningSpaceHelper& rhs) { - TNTuningSpaceHelper::operator=(rhs); - return *this; - } - template TNAnalogRadioTuningSpaceHelper& operator=(TNTuningSpaceHelper& rhs) { - TNTuningSpaceHelper::operator=(TUNINGSPACETYPE(rhs)); - return *this; - } - TNAnalogRadioTuningSpaceHelper& operator=(TUNINGSPACETYPE& rhs) { - TNTuningSpaceHelper::operator=(rhs); - return *this; - } - TNAnalogRadioTuningSpaceHelper& operator=(IUnknown* rhs) { - TNTuningSpaceHelper::operator=(rhs); - return *this; - } - long MaxFrequency() { - _ASSERT(*this); - long freq; - HRESULT hr = (*this)->get_MaxFrequency(&freq); - if (FAILED(hr)) { - freq = DEFAULT_MAX_FREQUENCY; - } - return freq; - } - HRESULT MaxFrequency(long freq) { - _ASSERT(*this); - return (*this)->put_MaxFrequency(freq); - } - long MinFrequency() { - _ASSERT(*this); - long freq; - HRESULT hr = (*this)->get_MinFrequency(&freq); - if (FAILED(hr)) { - freq = DEFAULT_MIN_FREQUENCY; - } - return freq; - } - HRESULT MinFrequency(long freq) { - _ASSERT(*this); - return (*this)->put_MinFrequency(freq); - } -}; -typedef TNAnalogRadioTuningSpaceHelper TNAnalogRadioTuningSpace; - -template class TNAnalogTVTuningSpaceHelper : public TNTuningSpaceHelper { -public: - TNAnalogTVTuningSpaceHelper() {} - TNAnalogTVTuningSpaceHelper(const TUNINGSPACETYPE &a) : TNTuningSpaceHelper(a) {} - TNAnalogTVTuningSpaceHelper(IUnknown *p) : TNTuningSpaceHelper(p) {} - TNAnalogTVTuningSpaceHelper(const TNAnalogTVTuningSpaceHelper &a) : TNTuningSpaceHelper(a) {} - TNAnalogTVTuningSpaceHelper& operator=(TNAnalogTVTuningSpaceHelper& rhs) { - TNTuningSpaceHelper::operator=(rhs); - return *this; - } - template TNAnalogTVTuningSpaceHelper& operator=(TNTuningSpaceHelper& rhs) { - TNTuningSpaceHelper::operator=(TUNINGSPACETYPE(rhs)); - return *this; - } - TNAnalogTVTuningSpaceHelper& operator=(TUNINGSPACETYPE& rhs) { - TNTuningSpaceHelper::operator=(rhs); - return *this; - } - TNAnalogTVTuningSpaceHelper& operator=(IUnknown* rhs) { - TNTuningSpaceHelper::operator=(rhs); - return *this; - } - TunerInputType InputType() { - _ASSERT(*this); - TunerInputType ti; - HRESULT hr = (*this)->get_InputType(&ti); - if (FAILED(hr)) { - ti = DEFAULT_ANALOG_TUNER_INPUT_TYPE; - } - return ti; - } - HRESULT InputType(TunerInputType ti) { - _ASSERT(*this); - return (*this)->put_InputType(&ti); - } - long CountryCode() { - _ASSERT(*this); - long cc; - HRESULT hr = (*this)->get_CountryCode(&cc); - if (FAILED(hr)) { - cc = DEFAULT_ANALOG_TUNER_INPUT_TYPE; - } - return cc; - } - HRESULT CountryCode(long cc) { - _ASSERT(*this); - return (*this)->put_CountryCode(cc); - } - long MinChannel() { - _ASSERT(*this); - long chan; - HRESULT hr = (*this)->get_MinChannel(&chan); - if (FAILED(hr)) { - chan = DEFAULT_MIN_CHANNEL; - } - return chan; - } - HRESULT MinChannel(long chan) { - _ASSERT(*this); - return (*this)->put_MinChannel(chan); - } - long MaxChannel() { - _ASSERT(*this); - long chan; - HRESULT hr = (*this)->get_MaxChannel(&chan); - if (FAILED(hr)) { - chan = DEFAULT_MAX_CHANNEL; - } - return chan; - } - HRESULT MaxChannel(long chan) { - _ASSERT(*this); - return (*this)->put_MaxChannel(chan); - } -}; -typedef TNAnalogTVTuningSpaceHelper TNAnalogTVTuningSpace; - -template class TNAuxInTuningSpaceHelper : public TNTuningSpaceHelper { -public: - TNAuxInTuningSpaceHelper() {} - TNAuxInTuningSpaceHelper(const TUNINGSPACETYPE &a) : TNTuningSpaceHelper(a) {} - TNAuxInTuningSpaceHelper(IUnknown *p) : TNTuningSpaceHelper(p) {} - TNAuxInTuningSpaceHelper(const TNAuxInTuningSpaceHelper &a) : TNTuningSpaceHelper(a) {} - TNAuxInTuningSpaceHelper& operator=(TNAuxInTuningSpaceHelper& rhs) { - TNTuningSpaceHelper::operator=(rhs); - return *this; - } - template TNAuxInTuningSpaceHelper& operator=(TNTuningSpaceHelper& rhs) { - TNTuningSpaceHelper::operator=(TUNINGSPACETYPE(rhs)); - return *this; - } - TNAuxInTuningSpaceHelper& operator=(TUNINGSPACETYPE& rhs) { - TNTuningSpaceHelper::operator=(rhs); - return *this; - } - TNAuxInTuningSpaceHelper& operator=(IUnknown* rhs) { - TNTuningSpaceHelper::operator=(rhs); - return *this; - } -}; -typedef TNAuxInTuningSpaceHelper TNAuxInTuningSpace; - -template class TNATSCTuningSpaceHelper : public TNAnalogTVTuningSpaceHelper { -public: - TNATSCTuningSpaceHelper() {} - TNATSCTuningSpaceHelper(const TUNINGSPACETYPE &a) : TNAnalogTVTuningSpaceHelper(a) {} - TNATSCTuningSpaceHelper(IUnknown *p) : TNAnalogTVTuningSpaceHelper(p) {} - TNATSCTuningSpaceHelper(const TNATSCTuningSpaceHelper &a) : TNAnalogTVTuningSpaceHelper(a) {} - - TNATSCTuningSpaceHelper& operator=(TNATSCTuningSpaceHelper& rhs) { - TNAnalogTVTuningSpaceHelper::operator=(rhs); - return *this; - } - template TNATSCTuningSpaceHelper& operator=(TNTuningSpaceHelper& rhs) { - TNAnalogTVTuningSpaceHelper::operator=(TUNINGSPACETYPE(rhs)); - return *this; - } - TNATSCTuningSpaceHelper& operator=(TUNINGSPACETYPE& rhs) { - TNAnalogTVTuningSpaceHelper::operator=(rhs); - return *this; - } - TNATSCTuningSpaceHelper& operator=(IUnknown* rhs) { - TNAnalogTVTuningSpaceHelper::operator=(rhs); - return *this; - } - long MinMinorChannel() { - _ASSERT(*this); - long chan; - HRESULT hr = (*this)->get_MinMinorChannel(&chan); - if (FAILED(hr)) { - chan = DEFAULT_MIN_CHANNEL; - } - return chan; - } - HRESULT MinMinorChannel(long chan) { - _ASSERT(*this); - return (*this)->put_MinMinorChannel(chan); - } - - long MaxMinorChannel() { - _ASSERT(*this); - long chan; - HRESULT hr = (*this)->get_MaxMinorChannel(&chan); - if (FAILED(hr)) { - chan = DEFAULT_MAX_CHANNEL; - } - return chan; - } - HRESULT MaxMinorChannel(long chan) { - _ASSERT(*this); - return (*this)->put_MaxMinorChannel(chan); - } - long MinPhysicalChannel() { - _ASSERT(*this); - long chan; - HRESULT hr = (*this)->get_MinPhysicalChannel(&chan); - if (FAILED(hr)) { - chan = DEFAULT_MIN_CHANNEL; - } - return chan; - } - HRESULT MinPhysicalChannel(long chan) { - _ASSERT(*this); - return (*this)->put_MinPhysicalChannel(chan); - } - - long MaxPhysicalChannel() { - _ASSERT(*this); - long chan; - HRESULT hr = (*this)->get_MaxPhysicalChannel(&chan); - if (FAILED(hr)) { - chan = DEFAULT_MAX_CHANNEL; - } - return chan; - } - - HRESULT MaxPhysicalChannel(long chan) { - _ASSERT(*this); - return (*this)->put_MaxPhysicalChannel(chan); - } -}; -typedef TNATSCTuningSpaceHelper TNATSCTuningSpace; - -// dvb tuning space -template class TNDVBTuningSpaceHelper : public TNTuningSpaceHelper { -public: - TNDVBTuningSpaceHelper() {} - TNDVBTuningSpaceHelper(const TUNINGSPACETYPE &a) : TNTuningSpaceHelper(a) {} - TNDVBTuningSpaceHelper(IUnknown *p) : TNTuningSpaceHelper(p) {} - TNDVBTuningSpaceHelper(const TNDVBTuningSpaceHelper &a) : TNTuningSpaceHelper(a) {} - TNDVBTuningSpaceHelper& operator=(TNDVBTuningSpaceHelper& rhs) { - TNTuningSpaceHelper::operator=(rhs); - return *this; - } - template TNDVBTuningSpaceHelper& operator=(TNTuningSpaceHelper& rhs) { - TNTuningSpaceHelper::operator=(TUNINGSPACETYPE(rhs)); - return *this; - } - TNDVBTuningSpaceHelper& operator=(TUNINGSPACETYPE& rhs) { - TNTuningSpaceHelper::operator=(rhs); - return *this; - } - TNDVBTuningSpaceHelper& operator=(IUnknown* rhs) { - TNTuningSpaceHelper::operator=(rhs); - return *this; - } - DVBSystemType SystemType() const { - DVBSystemType st; - HRESULT hr = (*this)->get_SystemType(&st); - if (FAILED(hr)) { - return DVB_Cable; - } - return st; - } - HRESULT SystemType(DVBSystemType st) { - _ASSERT(*this); - return (*this)->put_SystemType(st); - } -}; -typedef TNDVBTuningSpaceHelper TNDVBTuningSpace; - -// locators -template class TNLocatorHelper : public LOCATORTYPE { -public: - TNLocatorHelper() {} - TNLocatorHelper(const LOCATORTYPE &a) : LOCATORTYPE(a) {} - TNLocatorHelper(IUnknown *p) : LOCATORTYPE(p) {} - TNLocatorHelper(const TNLocatorHelper &a) : LOCATORTYPE(a) {} - TNLocatorHelper(ILocator *p) : LOCATORTYPE(p) {} - TNLocatorHelper& operator=(TNLocatorHelper& rhs) { - LOCATORTYPE::operator=(rhs); - return *this; - } - TNLocatorHelper& operator=(LOCATORTYPE& rhs) { - LOCATORTYPE::operator=(rhs); - return *this; - } - TNLocatorHelper& operator=(ILocator* rhs) { - LOCATORTYPE::operator=(rhs); - return *this; - } - TNLocatorHelper& operator=(IUnknown* rhs) { - LOCATORTYPE::operator=(rhs); - return *this; - } - - void Clone() { - PQLocator t; - HRESULT hr = (*this)->Clone(&t); - if (FAILED(hr) || !t) { - Release(); // clone failed, clear ourselves - return; - } - LOCATORTYPE::operator=(t); - } - - long CarrierFrequency() { - _ASSERT(*this); - long f; - HRESULT hr = (*this)->get_CarrierFrequency(&f); - if (FAILED(hr)) { - return -1; - } - return f; - } - HRESULT CarrierFrequency(long f) { - _ASSERT(*this); - return (*this)->put_CarrierFrequency(f); - } - - FECMethod InnerFEC() { - _ASSERT(*this); - FECMethod f; - HRESULT hr = (*this)->get_InnerFEC(&f); - if (FAILED(hr)) { - return BDA_FEC_METHOD_NOT_SET; - } - return f; - } - HRESULT InnerFEC(FECMethod f) { - _ASSERT(*this); - return (*this)->put_InnerFEC(f); - } - BinaryConvolutionCodeRate InnerFECRate() { - _ASSERT(*this); - BinaryConvolutionCodeRate f; - HRESULT hr = (*this)->get_InnerFECRate(&f); - if (FAILED(hr)) { - return BDA_BCC_RATE_NOT_SET; - } - return f; - } - HRESULT InnerFECRate(BinaryConvolutionCodeRate f) { - _ASSERT(*this); - return (*this)->put_InnerFECRate(f); - } - FECMethod OuterFEC() { - _ASSERT(*this); - FECMethod f; - HRESULT hr = (*this)->get_OuterFEC(&f); - if (FAILED(hr)) { - return BDA_FEC_METHOD_NOT_SET; - } - return f; - } - HRESULT OuterFEC(FECMethod f) { - _ASSERT(*this); - return (*this)->put_OuterFEC(f); - } - BinaryConvolutionCodeRate OuterFECRate() { - _ASSERT(*this); - BinaryConvolutionCodeRate f; - HRESULT hr = (*this)->get_OuterFECRate(&f); - if (FAILED(hr)) { - return BDA_BCC_RATE_NOT_SET; - } - return f; - } - HRESULT OuterFECRate(BinaryConvolutionCodeRate f) { - _ASSERT(*this); - return (*this)->put_OuterFECRate(f); - } - ModulationType Modulation() { - _ASSERT(*this); - ModulationType f; - HRESULT hr = (*this)->get_Modulation(&f); - if (FAILED(hr)) { - return BDA_MOD_NOT_SET; - } - return f; - } - HRESULT Modulation(ModulationType f) { - _ASSERT(*this); - return (*this)->put_Modulation(f); - } - - long SymbolRate() { - _ASSERT(*this); - long f; - HRESULT hr = (*this)->get_SymbolRate(&f); - if (FAILED(hr)) { - return -1; - } - return f; - } - HRESULT SymbolRate(long f) { - _ASSERT(*this); - return (*this)->put_SymbolRate(f); - } - -}; -typedef TNLocatorHelper TNLocator; - -template class TNATSCLocatorHelper : public TNLocatorHelper { -public: - TNATSCLocatorHelper() {} - TNATSCLocatorHelper(const LOCATORTYPE &a) : TNLocatorHelper(a) {} - TNATSCLocatorHelper(IUnknown *p) : TNLocatorHelper(p) {} - TNATSCLocatorHelper(const TNATSCLocatorHelper &a) : TNLocatorHelper(a) {} - TNATSCLocatorHelper(IATSCLocator *p) : TNLocatorHelper(p) {} - TNATSCLocatorHelper(const TNLocatorHelper &a) : TNLocatorHelper(a) {} - TNATSCLocatorHelper& operator=(TNATSCLocatorHelper& rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNATSCLocatorHelper& operator=(TNLocatorHelper& rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNATSCLocatorHelper& operator=(LOCATORTYPE& rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNATSCLocatorHelper& operator=(IATSCLocator* rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNATSCLocatorHelper& operator=(IUnknown* rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - - long PhysicalChannel() { - _ASSERT(*this); - long pc; - HRESULT hr = (*this)->get_PhysicalChannel(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT PhysicalChannel(long pc) { - _ASSERT(*this); - return (*this)->put_PhysicalChannel(pc); - } - - long TSID() { - _ASSERT(*this); - long pc; - HRESULT hr = (*this)->get_TSID(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT TSID(long pc) { - _ASSERT(*this); - return (*this)->put_TSID(pc); - } - - long ProgramNumber() { - _ASSERT(*this); - long pc; - HRESULT hr = (*this)->get_ProgramNumber(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT ProgramNumber(long pc) { - _ASSERT(*this); - return (*this)->put_ProgramNumber(pc); - } -}; -typedef TNATSCLocatorHelper TNATSCLocator; - -template class TNDVBSLocatorHelper : public TNLocatorHelper { -public: - TNDVBSLocatorHelper() {} - TNDVBSLocatorHelper(const LOCATORTYPE &a) : TNLocatorHelper(a) {} - TNDVBSLocatorHelper(IUnknown *p) : TNLocatorHelper(p) {} - TNDVBSLocatorHelper(const TNDVBSLocatorHelper &a) : TNLocatorHelper(a) {} - TNDVBSLocatorHelper(IDVBSLocator *p) : TNLocatorHelper(p) {} - TNDVBSLocatorHelper(const TNLocatorHelper &a) : TNLocatorHelper(a) {} - TNDVBSLocatorHelper& operator=(TNDVBSLocatorHelper& rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNDVBSLocatorHelper& operator=(TNLocatorHelper& rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNDVBSLocatorHelper& operator=(LOCATORTYPE& rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNDVBSLocatorHelper& operator=(IDVBSLocator* rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNDVBSLocatorHelper& operator=(IUnknown* rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - - Polarisation SignalPolarisation() { - _ASSERT(*this); - Polarisation pc; - HRESULT hr = (*this)->get_SignalPolarisation(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT SignalPolarisation(Polarisation pc) { - _ASSERT(*this); - return (*this)->put_SignalPolarisation(pc); - } - - VARIANT_BOOL WestPosition() { - _ASSERT(*this); - VARIANT_BOOL pc; - HRESULT hr = (*this)->get_WestPosition(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT WestPosition(VARIANT_BOOL pc) { - _ASSERT(*this); - return (*this)->put_WestPosition(pc); - } - - long OrbitalPosition() { - _ASSERT(*this); - long pc; - HRESULT hr = (*this)->get_OrbitalPosition(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT OrbitalPosition(long pc) { - _ASSERT(*this); - return (*this)->put_OrbitalPosition(pc); - } - - long Azimuth() { - _ASSERT(*this); - long pc; - HRESULT hr = (*this)->get_Azimuth(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT Azimuth(long pc) { - _ASSERT(*this); - return (*this)->put_Azimuth(pc); - } - - long Elevation() { - _ASSERT(*this); - long pc; - HRESULT hr = (*this)->get_Elevation(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT Elevation(long pc) { - _ASSERT(*this); - return (*this)->put_Elevation(pc); - } - -}; -typedef TNDVBSLocatorHelper TNDVBSLocator; - - - -template class TNDVBTLocatorHelper : public TNLocatorHelper { -public: - TNDVBTLocatorHelper() {} - TNDVBTLocatorHelper(const LOCATORTYPE &a) : TNLocatorHelper(a) {} - TNDVBTLocatorHelper(IUnknown *p) : TNLocatorHelper(p) {} - TNDVBTLocatorHelper(const TNDVBTLocatorHelper &a) : TNLocatorHelper(a) {} - TNDVBTLocatorHelper(IDVBTLocator *p) : TNLocatorHelper(p) {} - TNDVBTLocatorHelper(const TNLocatorHelper &a) : TNLocatorHelper(a) {} - TNDVBTLocatorHelper& operator=(TNDVBTLocatorHelper& rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNDVBTLocatorHelper& operator=(TNLocatorHelper& rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNDVBTLocatorHelper& operator=(LOCATORTYPE& rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNDVBTLocatorHelper& operator=(IDVBTLocator* rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNDVBTLocatorHelper& operator=(IUnknown* rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - - long BandWidth() { - _ASSERT(*this); - long pc; - HRESULT hr = (*this)->get_BandWidth(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT BandWidth(long pc) { - _ASSERT(*this); - return (*this)->put_BandWidth(pc); - } - - FECMethod LPInnerFec() { - _ASSERT(*this); - FECMethod pc; - HRESULT hr = (*this)->get_LPInnerFec(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT LPInnerFec(FECMethod pc) { - _ASSERT(*this); - return (*this)->put_LPInnerFec(pc); - } - - BinaryConvolutionCodeRate LPInnerFecRate() { - _ASSERT(*this); - BinaryConvolutionCodeRate pc; - HRESULT hr = (*this)->get_LPInnerFecRate(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT LPInnerFecRate(BinaryConvolutionCodeRate pc) { - _ASSERT(*this); - return (*this)->put_LPInnerFecRate(pc); - } - - HierarchyAlpha HAlpha() { - _ASSERT(*this); - HierarchyAlpha pc; - HRESULT hr = (*this)->get_HAlpha(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT HAlpha(HierarchyAlpha pc) { - _ASSERT(*this); - return (*this)->put_HAlpha(pc); - } - - GuardInterval Guard() { - _ASSERT(*this); - GuardInterval pc; - HRESULT hr = (*this)->get_Guard(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT Guard(GuardInterval pc) { - _ASSERT(*this); - return (*this)->put_Guard(pc); - } - - TransmissionMode Mode() { - _ASSERT(*this); - TransmissionMode pc; - HRESULT hr = (*this)->get_Mode(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT Mode(TransmissionMode pc) { - _ASSERT(*this); - return (*this)->put_Mode(pc); - } - - VARIANT_BOOL OtherFrequencyInUse() { - _ASSERT(*this); - VARIANT_BOOL pc; - HRESULT hr = (*this)->get_OtherFrequencyInUse(&pc); - if (FAILED(hr)) { - return -1; - } - return pc; - } - HRESULT OtherFrequencyInUse(VARIANT_BOOL pc) { - _ASSERT(*this); - return (*this)->put_OtherFrequencyInUse(pc); - } -}; -typedef TNDVBTLocatorHelper TNDVBTLocator; - -template class TNDVBCLocatorHelper : public TNLocatorHelper { -public: - TNDVBCLocatorHelper() {} - TNDVBCLocatorHelper(const LOCATORTYPE &a) : TNLocatorHelper(a) {} - TNDVBCLocatorHelper(IUnknown *p) : TNLocatorHelper(p) {} - TNDVBCLocatorHelper(const TNDVBCLocatorHelper &a) : TNLocatorHelper(a) {} - TNDVBCLocatorHelper(IDVBCLocator *p) : TNLocatorHelper(p) {} - TNDVBCLocatorHelper(const TNLocatorHelper &a) : TNLocatorHelper(a) {} - TNDVBCLocatorHelper& operator=(TNDVBCLocatorHelper& rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNDVBCLocatorHelper& operator=(TNLocatorHelper& rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNDVBCLocatorHelper& operator=(LOCATORTYPE& rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNDVBCLocatorHelper& operator=(IDVBCLocator* rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - TNDVBCLocatorHelper& operator=(IUnknown* rhs) { - TNLocatorHelper::operator=(rhs); - return *this; - } - -}; -typedef TNDVBCLocatorHelper TNDVBCLocator; - -// tune requests -template class TNTuneRequestHelper : public TUNEREQUESTTYPE { -public: - TNTuneRequestHelper() {} - TNTuneRequestHelper(const TUNEREQUESTTYPE &a) : TUNEREQUESTTYPE(a) {} - TNTuneRequestHelper(IUnknown *p) : TUNEREQUESTTYPE(p) {} - TNTuneRequestHelper(const TNTuneRequestHelper &a) : TUNEREQUESTTYPE(a) {} - TNTuneRequestHelper(ITuneRequest *p) : TUNEREQUESTTYPE(p) {} - TNTuneRequestHelper& operator=(TNTuneRequestHelper& rhs) { - TUNEREQUESTTYPE::operator=(rhs); - return *this; - } - TNTuneRequestHelper& operator=(TUNEREQUESTTYPE& rhs) { - TUNEREQUESTTYPE::operator=(rhs); - return *this; - } - TNTuneRequestHelper& operator=(ITuneRequest* rhs) { - TUNEREQUESTTYPE::operator=(rhs); - return *this; - } - TNTuneRequestHelper& operator=(IUnknown* rhs) { - TUNEREQUESTTYPE::operator=(rhs); - return *this; - } - // this function creates a new instance of the base ITuneRequest* and copies - // all the values of the current ITuneRequest and sets this to the new one - // this provides the value semantics needed by the network providers - void Clone() { - PQTuneRequest t; - HRESULT hr = (*this)->Clone(&t); - if (FAILED(hr) || !t) { - Release(); // clone failed, clear ourselves - return; - } - TUNEREQUESTTYPE::operator=(t); - } - - PQTuningSpace TuningSpace() { - _ASSERT(*this); - PQTuningSpace ts; - HRESULT hr = (*this)->get_TuningSpace(&ts); - if (FAILED(hr)) { - return PQTuningSpace(); - } - return ts; - } - - LOCATORTYPE Locator() { - _ASSERT(*this); - PQLocator pc; - HRESULT hr = (*this)->get_Locator(&pc); - if (FAILED(hr)) { - return PQLocator().p; - } - return pc.p; - } - HRESULT Locator(LOCATORTYPE& pc) { - _ASSERT(*this); - return (*this)->put_Locator(pc); - } -}; - -typedef TNTuneRequestHelper TNTuneRequest; - -template class TNChannelTuneRequestHelper : public TNTuneRequestHelper { -public: - TNChannelTuneRequestHelper() {} - TNChannelTuneRequestHelper(const TNTuneRequest &a) : TNTuneRequestHelper(a) {} - TNChannelTuneRequestHelper(IChannelTuneRequest *p) : TNTuneRequestHelper(p) {} - TNChannelTuneRequestHelper(IUnknown *p) : TNTuneRequestHelper(p) {} - TNChannelTuneRequestHelper(const TNTuneRequestHelper &a) : TNTuneRequestHelper(a) {} - TNChannelTuneRequestHelper(const TNChannelTuneRequestHelper &a) : TNTuneRequestHelper(a) {} - TNChannelTuneRequestHelper& operator=(TNChannelTuneRequestHelper& rhs) { - TNTuneRequestHelper::operator=(rhs); - return *this; - } - template TNChannelTuneRequestHelper& operator=(TNTuneRequestHelper& rhs) { - TNTuneRequestHelper::operator=(TUNEREQUESTTYPE(rhs)); - return *this; - } - TNChannelTuneRequestHelper& operator=(TUNEREQUESTTYPE& rhs) { - TNTuneRequestHelper::operator=(rhs); - return *this; - } - TNChannelTuneRequestHelper& operator=(IChannelTuneRequest* rhs) { - TNTuneRequestHelper::operator=(rhs); - return *this; - } - TNChannelTuneRequestHelper& operator=(IUnknown* rhs) { - TUNEREQUESTTYPE::operator=(rhs); - return *this; - } - long Channel() { - _ASSERT(*this); - long c; - HRESULT hr = (*this)->get_Channel(&c); - if (FAILED(hr)) { - return -1; - } - return c; - } - HRESULT Channel(long c) { - _ASSERT(*this); - return (*this)->put_Channel(c); - } -}; - -typedef TNChannelTuneRequestHelper TNChannelTuneRequest; - -template class TNATSCChannelTuneRequestHelper : public TNChannelTuneRequestHelper { -public: - TNATSCChannelTuneRequestHelper() {} - TNATSCChannelTuneRequestHelper(const TNTuneRequest &a) : TNChannelTuneRequestHelper(a) {} - TNATSCChannelTuneRequestHelper(IATSCChannelTuneRequest *p) : TNChannelTuneRequestHelper(p) {} - TNATSCChannelTuneRequestHelper(IUnknown *p) : TNChannelTuneRequestHelper(p) {} - TNATSCChannelTuneRequestHelper(const TNChannelTuneRequestHelper &a) : TNChannelTuneRequestHelper(a) {} - TNATSCChannelTuneRequestHelper(const TNATSCChannelTuneRequestHelper &a) : TNChannelTuneRequestHelper(a) {} - TNATSCChannelTuneRequestHelper& operator=(TNATSCChannelTuneRequestHelper& rhs) { - TNChannelTuneRequestHelper::operator=(rhs); - return *this; - } - templateTNATSCChannelTuneRequestHelper& operator=(TNTuneRequestHelper& rhs) { - TNChannelTuneRequestHelper::operator=(TR(rhs)); - return *this; - } - TNATSCChannelTuneRequestHelper& operator=(TUNEREQUESTTYPE& rhs) { - TNChannelTuneRequestHelper::operator=(rhs); - return *this; - } - TNATSCChannelTuneRequestHelper& operator=(IATSCChannelTuneRequest *rhs) { - TNChannelTuneRequestHelper::operator=(rhs); - return *this; - } - TNTuneRequestHelper& operator=(IUnknown* rhs) { - TUNEREQUESTTYPE::operator=(rhs); - return *this; - } - long MinorChannel() { - _ASSERT(*this); - long mc; - HRESULT hr = (*this)->get_MinorChannel(&mc); - if (FAILED(hr)) { - return -1; - } - return mc; - } - HRESULT MinorChannel(long mc) { - _ASSERT(*this); - return (*this)->put_MinorChannel(mc); - } -}; -typedef TNATSCChannelTuneRequestHelper TNATSCChannelTuneRequest; - -template class TNDVBTuneRequestHelper : public TNTuneRequestHelper { -public: - TNDVBTuneRequestHelper() {} - TNDVBTuneRequestHelper(const TNTuneRequest &a) : TNTuneRequestHelper(a) {} - TNDVBTuneRequestHelper(IDVBTuneRequest *p) : TNTuneRequestHelper(p) {} - TNDVBTuneRequestHelper(IUnknown *p) : TNTuneRequestHelper(p) {} - TNDVBTuneRequestHelper(const TNTuneRequestHelper &a) : TNTuneRequestHelper(a) {} - TNDVBTuneRequestHelper(const TNDVBTuneRequestHelper &a) : TNTuneRequestHelper(a) {} - TNDVBTuneRequestHelper& operator=(TNDVBTuneRequestHelper& rhs) { - TNTuneRequestHelper::operator=(rhs); - return *this; - } - template TNDVBTuneRequestHelper& operator=(TNTuneRequestHelper& rhs) { - TNTuneRequestHelper::operator=(TUNEREQUESTTYPE(rhs)); - return *this; - } - TNDVBTuneRequestHelper& operator=(TUNEREQUESTTYPE& rhs) { - TNTuneRequestHelper::operator=(rhs); - return *this; - } - TNDVBTuneRequestHelper& operator=(IDVBTuneRequest* rhs) { - TNTuneRequestHelper::operator=(rhs); - return *this; - } - TNDVBTuneRequestHelper& operator=(IUnknown* rhs) { - TUNEREQUESTTYPE::operator=(rhs); - return *this; - } - long ONID() { - _ASSERT(*this); - long c; - HRESULT hr = (*this)->get_ONID(&c); - if (FAILED(hr)) { - return -1; - } - return c; - } - HRESULT ONID(long c) { - _ASSERT(*this); - return (*this)->put_ONID(c); - } - long TSID() { - _ASSERT(*this); - long c; - HRESULT hr = (*this)->get_TSID(&c); - if (FAILED(hr)) { - return -1; - } - return c; - } - HRESULT TSID(long c) { - _ASSERT(*this); - return (*this)->put_TSID(c); - } - long SID() { - _ASSERT(*this); - long c; - HRESULT hr = (*this)->get_SID(&c); - if (FAILED(hr)) { - return -1; - } - return c; - } - HRESULT SID(long c) { - _ASSERT(*this); - return (*this)->put_SID(c); - } -}; -typedef TNDVBTuneRequestHelper TNDVBTuneRequest; -}; // namespace - -#ifndef NO_DEFAULT_BDATUNINGMODEL_NAMESPACE -using namespace BDATuningModel; -#endif - -#endif -// end of file - tune.h diff --git a/sdk/dx8sdk/Include/tuner.h b/sdk/dx8sdk/Include/tuner.h deleted file mode 100644 index cd08a15c..00000000 --- a/sdk/dx8sdk/Include/tuner.h +++ /dev/null @@ -1,11640 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for tuner.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __tuner_h__ -#define __tuner_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __ITuningSpaces_FWD_DEFINED__ -#define __ITuningSpaces_FWD_DEFINED__ -typedef interface ITuningSpaces ITuningSpaces; -#endif /* __ITuningSpaces_FWD_DEFINED__ */ - - -#ifndef __ITuningSpaceContainer_FWD_DEFINED__ -#define __ITuningSpaceContainer_FWD_DEFINED__ -typedef interface ITuningSpaceContainer ITuningSpaceContainer; -#endif /* __ITuningSpaceContainer_FWD_DEFINED__ */ - - -#ifndef __ITuningSpace_FWD_DEFINED__ -#define __ITuningSpace_FWD_DEFINED__ -typedef interface ITuningSpace ITuningSpace; -#endif /* __ITuningSpace_FWD_DEFINED__ */ - - -#ifndef __IEnumTuningSpaces_FWD_DEFINED__ -#define __IEnumTuningSpaces_FWD_DEFINED__ -typedef interface IEnumTuningSpaces IEnumTuningSpaces; -#endif /* __IEnumTuningSpaces_FWD_DEFINED__ */ - - -#ifndef __IDVBTuningSpace_FWD_DEFINED__ -#define __IDVBTuningSpace_FWD_DEFINED__ -typedef interface IDVBTuningSpace IDVBTuningSpace; -#endif /* __IDVBTuningSpace_FWD_DEFINED__ */ - - -#ifndef __IDVBTuningSpace2_FWD_DEFINED__ -#define __IDVBTuningSpace2_FWD_DEFINED__ -typedef interface IDVBTuningSpace2 IDVBTuningSpace2; -#endif /* __IDVBTuningSpace2_FWD_DEFINED__ */ - - -#ifndef __IDVBSTuningSpace_FWD_DEFINED__ -#define __IDVBSTuningSpace_FWD_DEFINED__ -typedef interface IDVBSTuningSpace IDVBSTuningSpace; -#endif /* __IDVBSTuningSpace_FWD_DEFINED__ */ - - -#ifndef __IAuxInTuningSpace_FWD_DEFINED__ -#define __IAuxInTuningSpace_FWD_DEFINED__ -typedef interface IAuxInTuningSpace IAuxInTuningSpace; -#endif /* __IAuxInTuningSpace_FWD_DEFINED__ */ - - -#ifndef __IAnalogTVTuningSpace_FWD_DEFINED__ -#define __IAnalogTVTuningSpace_FWD_DEFINED__ -typedef interface IAnalogTVTuningSpace IAnalogTVTuningSpace; -#endif /* __IAnalogTVTuningSpace_FWD_DEFINED__ */ - - -#ifndef __IATSCTuningSpace_FWD_DEFINED__ -#define __IATSCTuningSpace_FWD_DEFINED__ -typedef interface IATSCTuningSpace IATSCTuningSpace; -#endif /* __IATSCTuningSpace_FWD_DEFINED__ */ - - -#ifndef __IAnalogRadioTuningSpace_FWD_DEFINED__ -#define __IAnalogRadioTuningSpace_FWD_DEFINED__ -typedef interface IAnalogRadioTuningSpace IAnalogRadioTuningSpace; -#endif /* __IAnalogRadioTuningSpace_FWD_DEFINED__ */ - - -#ifndef __ITuneRequest_FWD_DEFINED__ -#define __ITuneRequest_FWD_DEFINED__ -typedef interface ITuneRequest ITuneRequest; -#endif /* __ITuneRequest_FWD_DEFINED__ */ - - -#ifndef __IChannelTuneRequest_FWD_DEFINED__ -#define __IChannelTuneRequest_FWD_DEFINED__ -typedef interface IChannelTuneRequest IChannelTuneRequest; -#endif /* __IChannelTuneRequest_FWD_DEFINED__ */ - - -#ifndef __IATSCChannelTuneRequest_FWD_DEFINED__ -#define __IATSCChannelTuneRequest_FWD_DEFINED__ -typedef interface IATSCChannelTuneRequest IATSCChannelTuneRequest; -#endif /* __IATSCChannelTuneRequest_FWD_DEFINED__ */ - - -#ifndef __IDVBTuneRequest_FWD_DEFINED__ -#define __IDVBTuneRequest_FWD_DEFINED__ -typedef interface IDVBTuneRequest IDVBTuneRequest; -#endif /* __IDVBTuneRequest_FWD_DEFINED__ */ - - -#ifndef __IMPEG2TuneRequest_FWD_DEFINED__ -#define __IMPEG2TuneRequest_FWD_DEFINED__ -typedef interface IMPEG2TuneRequest IMPEG2TuneRequest; -#endif /* __IMPEG2TuneRequest_FWD_DEFINED__ */ - - -#ifndef __IMPEG2TuneRequestFactory_FWD_DEFINED__ -#define __IMPEG2TuneRequestFactory_FWD_DEFINED__ -typedef interface IMPEG2TuneRequestFactory IMPEG2TuneRequestFactory; -#endif /* __IMPEG2TuneRequestFactory_FWD_DEFINED__ */ - - -#ifndef __IMPEG2TuneRequestSupport_FWD_DEFINED__ -#define __IMPEG2TuneRequestSupport_FWD_DEFINED__ -typedef interface IMPEG2TuneRequestSupport IMPEG2TuneRequestSupport; -#endif /* __IMPEG2TuneRequestSupport_FWD_DEFINED__ */ - - -#ifndef __ITuner_FWD_DEFINED__ -#define __ITuner_FWD_DEFINED__ -typedef interface ITuner ITuner; -#endif /* __ITuner_FWD_DEFINED__ */ - - -#ifndef __IScanningTuner_FWD_DEFINED__ -#define __IScanningTuner_FWD_DEFINED__ -typedef interface IScanningTuner IScanningTuner; -#endif /* __IScanningTuner_FWD_DEFINED__ */ - - -#ifndef __IComponentType_FWD_DEFINED__ -#define __IComponentType_FWD_DEFINED__ -typedef interface IComponentType IComponentType; -#endif /* __IComponentType_FWD_DEFINED__ */ - - -#ifndef __ILanguageComponentType_FWD_DEFINED__ -#define __ILanguageComponentType_FWD_DEFINED__ -typedef interface ILanguageComponentType ILanguageComponentType; -#endif /* __ILanguageComponentType_FWD_DEFINED__ */ - - -#ifndef __IMPEG2ComponentType_FWD_DEFINED__ -#define __IMPEG2ComponentType_FWD_DEFINED__ -typedef interface IMPEG2ComponentType IMPEG2ComponentType; -#endif /* __IMPEG2ComponentType_FWD_DEFINED__ */ - - -#ifndef __IATSCComponentType_FWD_DEFINED__ -#define __IATSCComponentType_FWD_DEFINED__ -typedef interface IATSCComponentType IATSCComponentType; -#endif /* __IATSCComponentType_FWD_DEFINED__ */ - - -#ifndef __IEnumComponentTypes_FWD_DEFINED__ -#define __IEnumComponentTypes_FWD_DEFINED__ -typedef interface IEnumComponentTypes IEnumComponentTypes; -#endif /* __IEnumComponentTypes_FWD_DEFINED__ */ - - -#ifndef __IComponentTypes_FWD_DEFINED__ -#define __IComponentTypes_FWD_DEFINED__ -typedef interface IComponentTypes IComponentTypes; -#endif /* __IComponentTypes_FWD_DEFINED__ */ - - -#ifndef __IComponent_FWD_DEFINED__ -#define __IComponent_FWD_DEFINED__ -typedef interface IComponent IComponent; -#endif /* __IComponent_FWD_DEFINED__ */ - - -#ifndef __IMPEG2Component_FWD_DEFINED__ -#define __IMPEG2Component_FWD_DEFINED__ -typedef interface IMPEG2Component IMPEG2Component; -#endif /* __IMPEG2Component_FWD_DEFINED__ */ - - -#ifndef __IEnumComponents_FWD_DEFINED__ -#define __IEnumComponents_FWD_DEFINED__ -typedef interface IEnumComponents IEnumComponents; -#endif /* __IEnumComponents_FWD_DEFINED__ */ - - -#ifndef __IComponents_FWD_DEFINED__ -#define __IComponents_FWD_DEFINED__ -typedef interface IComponents IComponents; -#endif /* __IComponents_FWD_DEFINED__ */ - - -#ifndef __ILocator_FWD_DEFINED__ -#define __ILocator_FWD_DEFINED__ -typedef interface ILocator ILocator; -#endif /* __ILocator_FWD_DEFINED__ */ - - -#ifndef __IATSCLocator_FWD_DEFINED__ -#define __IATSCLocator_FWD_DEFINED__ -typedef interface IATSCLocator IATSCLocator; -#endif /* __IATSCLocator_FWD_DEFINED__ */ - - -#ifndef __IDVBTLocator_FWD_DEFINED__ -#define __IDVBTLocator_FWD_DEFINED__ -typedef interface IDVBTLocator IDVBTLocator; -#endif /* __IDVBTLocator_FWD_DEFINED__ */ - - -#ifndef __IDVBSLocator_FWD_DEFINED__ -#define __IDVBSLocator_FWD_DEFINED__ -typedef interface IDVBSLocator IDVBSLocator; -#endif /* __IDVBSLocator_FWD_DEFINED__ */ - - -#ifndef __IDVBCLocator_FWD_DEFINED__ -#define __IDVBCLocator_FWD_DEFINED__ -typedef interface IDVBCLocator IDVBCLocator; -#endif /* __IDVBCLocator_FWD_DEFINED__ */ - - -#ifndef __IBroadcastEvent_FWD_DEFINED__ -#define __IBroadcastEvent_FWD_DEFINED__ -typedef interface IBroadcastEvent IBroadcastEvent; -#endif /* __IBroadcastEvent_FWD_DEFINED__ */ - - -#ifndef __SystemTuningSpaces_FWD_DEFINED__ -#define __SystemTuningSpaces_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class SystemTuningSpaces SystemTuningSpaces; -#else -typedef struct SystemTuningSpaces SystemTuningSpaces; -#endif /* __cplusplus */ - -#endif /* __SystemTuningSpaces_FWD_DEFINED__ */ - - -#ifndef __TuningSpace_FWD_DEFINED__ -#define __TuningSpace_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TuningSpace TuningSpace; -#else -typedef struct TuningSpace TuningSpace; -#endif /* __cplusplus */ - -#endif /* __TuningSpace_FWD_DEFINED__ */ - - -#ifndef __ATSCTuningSpace_FWD_DEFINED__ -#define __ATSCTuningSpace_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class ATSCTuningSpace ATSCTuningSpace; -#else -typedef struct ATSCTuningSpace ATSCTuningSpace; -#endif /* __cplusplus */ - -#endif /* __ATSCTuningSpace_FWD_DEFINED__ */ - - -#ifndef __AnalogRadioTuningSpace_FWD_DEFINED__ -#define __AnalogRadioTuningSpace_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AnalogRadioTuningSpace AnalogRadioTuningSpace; -#else -typedef struct AnalogRadioTuningSpace AnalogRadioTuningSpace; -#endif /* __cplusplus */ - -#endif /* __AnalogRadioTuningSpace_FWD_DEFINED__ */ - - -#ifndef __AuxInTuningSpace_FWD_DEFINED__ -#define __AuxInTuningSpace_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AuxInTuningSpace AuxInTuningSpace; -#else -typedef struct AuxInTuningSpace AuxInTuningSpace; -#endif /* __cplusplus */ - -#endif /* __AuxInTuningSpace_FWD_DEFINED__ */ - - -#ifndef __AnalogTVTuningSpace_FWD_DEFINED__ -#define __AnalogTVTuningSpace_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class AnalogTVTuningSpace AnalogTVTuningSpace; -#else -typedef struct AnalogTVTuningSpace AnalogTVTuningSpace; -#endif /* __cplusplus */ - -#endif /* __AnalogTVTuningSpace_FWD_DEFINED__ */ - - -#ifndef __DVBTuningSpace_FWD_DEFINED__ -#define __DVBTuningSpace_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DVBTuningSpace DVBTuningSpace; -#else -typedef struct DVBTuningSpace DVBTuningSpace; -#endif /* __cplusplus */ - -#endif /* __DVBTuningSpace_FWD_DEFINED__ */ - - -#ifndef __DVBSTuningSpace_FWD_DEFINED__ -#define __DVBSTuningSpace_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DVBSTuningSpace DVBSTuningSpace; -#else -typedef struct DVBSTuningSpace DVBSTuningSpace; -#endif /* __cplusplus */ - -#endif /* __DVBSTuningSpace_FWD_DEFINED__ */ - - -#ifndef __ComponentTypes_FWD_DEFINED__ -#define __ComponentTypes_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class ComponentTypes ComponentTypes; -#else -typedef struct ComponentTypes ComponentTypes; -#endif /* __cplusplus */ - -#endif /* __ComponentTypes_FWD_DEFINED__ */ - - -#ifndef __ComponentType_FWD_DEFINED__ -#define __ComponentType_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class ComponentType ComponentType; -#else -typedef struct ComponentType ComponentType; -#endif /* __cplusplus */ - -#endif /* __ComponentType_FWD_DEFINED__ */ - - -#ifndef __LanguageComponentType_FWD_DEFINED__ -#define __LanguageComponentType_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class LanguageComponentType LanguageComponentType; -#else -typedef struct LanguageComponentType LanguageComponentType; -#endif /* __cplusplus */ - -#endif /* __LanguageComponentType_FWD_DEFINED__ */ - - -#ifndef __MPEG2ComponentType_FWD_DEFINED__ -#define __MPEG2ComponentType_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MPEG2ComponentType MPEG2ComponentType; -#else -typedef struct MPEG2ComponentType MPEG2ComponentType; -#endif /* __cplusplus */ - -#endif /* __MPEG2ComponentType_FWD_DEFINED__ */ - - -#ifndef __ATSCComponentType_FWD_DEFINED__ -#define __ATSCComponentType_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class ATSCComponentType ATSCComponentType; -#else -typedef struct ATSCComponentType ATSCComponentType; -#endif /* __cplusplus */ - -#endif /* __ATSCComponentType_FWD_DEFINED__ */ - - -#ifndef __Components_FWD_DEFINED__ -#define __Components_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class Components Components; -#else -typedef struct Components Components; -#endif /* __cplusplus */ - -#endif /* __Components_FWD_DEFINED__ */ - - -#ifndef __Component_FWD_DEFINED__ -#define __Component_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class Component Component; -#else -typedef struct Component Component; -#endif /* __cplusplus */ - -#endif /* __Component_FWD_DEFINED__ */ - - -#ifndef __MPEG2Component_FWD_DEFINED__ -#define __MPEG2Component_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MPEG2Component MPEG2Component; -#else -typedef struct MPEG2Component MPEG2Component; -#endif /* __cplusplus */ - -#endif /* __MPEG2Component_FWD_DEFINED__ */ - - -#ifndef __TuneRequest_FWD_DEFINED__ -#define __TuneRequest_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class TuneRequest TuneRequest; -#else -typedef struct TuneRequest TuneRequest; -#endif /* __cplusplus */ - -#endif /* __TuneRequest_FWD_DEFINED__ */ - - -#ifndef __ChannelTuneRequest_FWD_DEFINED__ -#define __ChannelTuneRequest_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class ChannelTuneRequest ChannelTuneRequest; -#else -typedef struct ChannelTuneRequest ChannelTuneRequest; -#endif /* __cplusplus */ - -#endif /* __ChannelTuneRequest_FWD_DEFINED__ */ - - -#ifndef __ATSCChannelTuneRequest_FWD_DEFINED__ -#define __ATSCChannelTuneRequest_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class ATSCChannelTuneRequest ATSCChannelTuneRequest; -#else -typedef struct ATSCChannelTuneRequest ATSCChannelTuneRequest; -#endif /* __cplusplus */ - -#endif /* __ATSCChannelTuneRequest_FWD_DEFINED__ */ - - -#ifndef __MPEG2TuneRequest_FWD_DEFINED__ -#define __MPEG2TuneRequest_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MPEG2TuneRequest MPEG2TuneRequest; -#else -typedef struct MPEG2TuneRequest MPEG2TuneRequest; -#endif /* __cplusplus */ - -#endif /* __MPEG2TuneRequest_FWD_DEFINED__ */ - - -#ifndef __MPEG2TuneRequestFactory_FWD_DEFINED__ -#define __MPEG2TuneRequestFactory_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class MPEG2TuneRequestFactory MPEG2TuneRequestFactory; -#else -typedef struct MPEG2TuneRequestFactory MPEG2TuneRequestFactory; -#endif /* __cplusplus */ - -#endif /* __MPEG2TuneRequestFactory_FWD_DEFINED__ */ - - -#ifndef __Locator_FWD_DEFINED__ -#define __Locator_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class Locator Locator; -#else -typedef struct Locator Locator; -#endif /* __cplusplus */ - -#endif /* __Locator_FWD_DEFINED__ */ - - -#ifndef __ATSCLocator_FWD_DEFINED__ -#define __ATSCLocator_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class ATSCLocator ATSCLocator; -#else -typedef struct ATSCLocator ATSCLocator; -#endif /* __cplusplus */ - -#endif /* __ATSCLocator_FWD_DEFINED__ */ - - -#ifndef __DVBTLocator_FWD_DEFINED__ -#define __DVBTLocator_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DVBTLocator DVBTLocator; -#else -typedef struct DVBTLocator DVBTLocator; -#endif /* __cplusplus */ - -#endif /* __DVBTLocator_FWD_DEFINED__ */ - - -#ifndef __DVBSLocator_FWD_DEFINED__ -#define __DVBSLocator_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DVBSLocator DVBSLocator; -#else -typedef struct DVBSLocator DVBSLocator; -#endif /* __cplusplus */ - -#endif /* __DVBSLocator_FWD_DEFINED__ */ - - -#ifndef __DVBCLocator_FWD_DEFINED__ -#define __DVBCLocator_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DVBCLocator DVBCLocator; -#else -typedef struct DVBCLocator DVBCLocator; -#endif /* __cplusplus */ - -#endif /* __DVBCLocator_FWD_DEFINED__ */ - - -#ifndef __DVBTuneRequest_FWD_DEFINED__ -#define __DVBTuneRequest_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class DVBTuneRequest DVBTuneRequest; -#else -typedef struct DVBTuneRequest DVBTuneRequest; -#endif /* __cplusplus */ - -#endif /* __DVBTuneRequest_FWD_DEFINED__ */ - - -#ifndef __CreatePropBagOnRegKey_FWD_DEFINED__ -#define __CreatePropBagOnRegKey_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class CreatePropBagOnRegKey CreatePropBagOnRegKey; -#else -typedef struct CreatePropBagOnRegKey CreatePropBagOnRegKey; -#endif /* __cplusplus */ - -#endif /* __CreatePropBagOnRegKey_FWD_DEFINED__ */ - - -#ifndef __BroadcastEventService_FWD_DEFINED__ -#define __BroadcastEventService_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class BroadcastEventService BroadcastEventService; -#else -typedef struct BroadcastEventService BroadcastEventService; -#endif /* __cplusplus */ - -#endif /* __BroadcastEventService_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "oaidl.h" -#include "comcat.h" -#include "strmif.h" -#include "bdatypes.h" -#include "regbag.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_tuner_0000 */ -/* [local] */ - -//+------------------------------------------------------------------------- -// -// Microsoft Windows -// Copyright (C) Microsoft Corporation, 1999-2000. -// -//-------------------------------------------------------------------------- -#pragma once -#include - - - - - - - - - - - - - - - - - - - - - -enum __MIDL___MIDL_itf_tuner_0000_0001 - { DISPID_TUNER_TS_UNIQUENAME = 1, - DISPID_TUNER_TS_FRIENDLYNAME = 2, - DISPID_TUNER_TS_CLSID = 3, - DISPID_TUNER_TS_NETWORKTYPE = 4, - DISPID_TUNER_TS__NETWORKTYPE = 5, - DISPID_TUNER_TS_CREATETUNEREQUEST = 6, - DISPID_TUNER_TS_ENUMCATEGORYGUIDS = 7, - DISPID_TUNER_TS_ENUMDEVICEMONIKERS = 8, - DISPID_TUNER_TS_DEFAULTPREFERREDCOMPONENTTYPES = 9, - DISPID_TUNER_TS_FREQMAP = 10, - DISPID_TUNER_TS_DEFLOCATOR = 11, - DISPID_TUNER_TS_CLONE = 12, - DISPID_TUNER_TR_TUNINGSPACE = 1, - DISPID_TUNER_TR_COMPONENTS = 2, - DISPID_TUNER_TR_CLONE = 3, - DISPID_TUNER_TR_LOCATOR = 4, - DISPID_TUNER_CT_CATEGORY = 1, - DISPID_TUNER_CT_MEDIAMAJORTYPE = 2, - DISPID_TUNER_CT__MEDIAMAJORTYPE = 3, - DISPID_TUNER_CT_MEDIASUBTYPE = 4, - DISPID_TUNER_CT__MEDIASUBTYPE = 5, - DISPID_TUNER_CT_MEDIAFORMATTYPE = 6, - DISPID_TUNER_CT__MEDIAFORMATTYPE = 7, - DISPID_TUNER_CT_MEDIATYPE = 8, - DISPID_TUNER_CT_CLONE = 9, - DISPID_TUNER_LCT_LANGID = 100, - DISPID_TUNER_MP2CT_TYPE = 200, - DISPID_TUNER_ATSCCT_FLAGS = 300, - DISPID_TUNER_L_CARRFREQ = 1, - DISPID_TUNER_L_INNERFECMETHOD = 2, - DISPID_TUNER_L_INNERFECRATE = 3, - DISPID_TUNER_L_OUTERFECMETHOD = 4, - DISPID_TUNER_L_OUTERFECRATE = 5, - DISPID_TUNER_L_MOD = 6, - DISPID_TUNER_L_SYMRATE = 7, - DISPID_TUNER_L_CLONE = 8, - DISPID_TUNER_L_ATSC_PHYS_CHANNEL = 201, - DISPID_TUNER_L_ATSC_TSID = 202, - DISPID_TUNER_L_DVBT_BANDWIDTH = 301, - DISPID_TUNER_L_DVBT_LPINNERFECMETHOD = 302, - DISPID_TUNER_L_DVBT_LPINNERFECRATE = 303, - DISPID_TUNER_L_DVBT_GUARDINTERVAL = 304, - DISPID_TUNER_L_DVBT_HALPHA = 305, - DISPID_TUNER_L_DVBT_TRANSMISSIONMODE = 306, - DISPID_TUNER_L_DVBT_INUSE = 307, - DISPID_TUNER_L_DVBS_POLARISATION = 401, - DISPID_TUNER_L_DVBS_WEST = 402, - DISPID_TUNER_L_DVBS_ORBITAL = 403, - DISPID_TUNER_L_DVBS_AZIMUTH = 404, - DISPID_TUNER_L_DVBS_ELEVATION = 405, - DISPID_TUNER_C_TYPE = 1, - DISPID_TUNER_C_STATUS = 2, - DISPID_TUNER_C_LANGID = 3, - DISPID_TUNER_C_DESCRIPTION = 4, - DISPID_TUNER_C_CLONE = 5, - DISPID_TUNER_C_MP2_PID = 101, - DISPID_TUNER_C_MP2_PCRPID = 102, - DISPID_TUNER_C_MP2_PROGNO = 103, - DISPID_TUNER_TS_DVB_SYSTEMTYPE = 101, - DISPID_TUNER_TS_DVB2_NETWORK_ID = 102, - DISPID_TUNER_TS_DVBS_LOW_OSC_FREQ = 1001, - DISPID_TUNER_TS_DVBS_HI_OSC_FREQ = 1002, - DISPID_TUNER_TS_DVBS_LNB_SWITCH_FREQ = 1003, - DISPID_TUNER_TS_DVBS_INPUT_RANGE = 1004, - DISPID_TUNER_TS_DVBS_SPECTRAL_INVERSION = 1005, - DISPID_TUNER_TS_AR_MINFREQUENCY = 101, - DISPID_TUNER_TS_AR_MAXFREQUENCY = 102, - DISPID_TUNER_TS_AR_STEP = 103, - DISPID_TUNER_TS_ATV_MINCHANNEL = 101, - DISPID_TUNER_TS_ATV_MAXCHANNEL = 102, - DISPID_TUNER_TS_ATV_INPUTTYPE = 103, - DISPID_TUNER_TS_ATV_COUNTRYCODE = 104, - DISPID_TUNER_TS_ATSC_MINMINORCHANNEL = 201, - DISPID_TUNER_TS_ATSC_MAXMINORCHANNEL = 202, - DISPID_TUNER_TS_ATSC_MINPHYSCHANNEL = 203, - DISPID_TUNER_TS_ATSC_MAXPHYSCHANNEL = 204, - DISPID_CHTUNER_ATVAC_CHANNEL = 101, - DISPID_CHTUNER_ATVDC_SYSTEM = 101, - DISPID_CHTUNER_ATVDC_CONTENT = 102, - DISPID_CHTUNER_CTR_CHANNEL = 101, - DISPID_CHTUNER_ACTR_MINOR_CHANNEL = 201, - DISPID_DVBTUNER_DVBC_ATTRIBUTESVALID = 101, - DISPID_DVBTUNER_DVBC_PID = 102, - DISPID_DVBTUNER_DVBC_TAG = 103, - DISPID_DVBTUNER_DVBC_COMPONENTTYPE = 104, - DISPID_DVBTUNER_ONID = 101, - DISPID_DVBTUNER_TSID = 102, - DISPID_DVBTUNER_SID = 103, - DISPID_MP2TUNER_TSID = 101, - DISPID_MP2TUNER_PROGNO = 102, - DISPID_MP2TUNERFACTORY_CREATETUNEREQUEST = 1 - } ; - - -extern RPC_IF_HANDLE __MIDL_itf_tuner_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_tuner_0000_v0_0_s_ifspec; - -#ifndef __ITuningSpaces_INTERFACE_DEFINED__ -#define __ITuningSpaces_INTERFACE_DEFINED__ - -/* interface ITuningSpaces */ -/* [unique][helpstring][nonextensible][oleautomation][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITuningSpaces; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("901284E4-33FE-4b69-8D63-634A596F3756") - ITuningSpaces : public IDispatch - { - public: - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *Count) = 0; - - virtual /* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IEnumVARIANT **NewEnum) = 0; - - virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT varIndex, - /* [retval][out] */ ITuningSpace **TuningSpace) = 0; - - virtual /* [helpstring][restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_EnumTuningSpaces( - /* [retval][out] */ IEnumTuningSpaces **NewEnum) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITuningSpacesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITuningSpaces * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITuningSpaces * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITuningSpaces * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITuningSpaces * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITuningSpaces * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITuningSpaces * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITuningSpaces * 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); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ITuningSpaces * This, - /* [retval][out] */ long *Count); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ITuningSpaces * This, - /* [retval][out] */ IEnumVARIANT **NewEnum); - - /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ITuningSpaces * This, - /* [in] */ VARIANT varIndex, - /* [retval][out] */ ITuningSpace **TuningSpace); - - /* [helpstring][restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumTuningSpaces )( - ITuningSpaces * This, - /* [retval][out] */ IEnumTuningSpaces **NewEnum); - - END_INTERFACE - } ITuningSpacesVtbl; - - interface ITuningSpaces - { - CONST_VTBL struct ITuningSpacesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITuningSpaces_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITuningSpaces_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITuningSpaces_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITuningSpaces_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITuningSpaces_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITuningSpaces_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITuningSpaces_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITuningSpaces_get_Count(This,Count) \ - (This)->lpVtbl -> get_Count(This,Count) - -#define ITuningSpaces_get__NewEnum(This,NewEnum) \ - (This)->lpVtbl -> get__NewEnum(This,NewEnum) - -#define ITuningSpaces_get_Item(This,varIndex,TuningSpace) \ - (This)->lpVtbl -> get_Item(This,varIndex,TuningSpace) - -#define ITuningSpaces_get_EnumTuningSpaces(This,NewEnum) \ - (This)->lpVtbl -> get_EnumTuningSpaces(This,NewEnum) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpaces_get_Count_Proxy( - ITuningSpaces * This, - /* [retval][out] */ long *Count); - - -void __RPC_STUB ITuningSpaces_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpaces_get__NewEnum_Proxy( - ITuningSpaces * This, - /* [retval][out] */ IEnumVARIANT **NewEnum); - - -void __RPC_STUB ITuningSpaces_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ITuningSpaces_get_Item_Proxy( - ITuningSpaces * This, - /* [in] */ VARIANT varIndex, - /* [retval][out] */ ITuningSpace **TuningSpace); - - -void __RPC_STUB ITuningSpaces_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpaces_get_EnumTuningSpaces_Proxy( - ITuningSpaces * This, - /* [retval][out] */ IEnumTuningSpaces **NewEnum); - - -void __RPC_STUB ITuningSpaces_get_EnumTuningSpaces_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITuningSpaces_INTERFACE_DEFINED__ */ - - -#ifndef __ITuningSpaceContainer_INTERFACE_DEFINED__ -#define __ITuningSpaceContainer_INTERFACE_DEFINED__ - -/* interface ITuningSpaceContainer */ -/* [unique][helpstring][nonextensible][hidden][oleautomation][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITuningSpaceContainer; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("5B692E84-E2F1-11d2-9493-00C04F72D980") - ITuningSpaceContainer : public IDispatch - { - public: - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *Count) = 0; - - virtual /* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IEnumVARIANT **NewEnum) = 0; - - virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT varIndex, - /* [retval][out] */ ITuningSpace **TuningSpace) = 0; - - virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Item( - /* [in] */ VARIANT varIndex, - /* [in] */ ITuningSpace *TuningSpace) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE TuningSpacesForCLSID( - /* [in] */ BSTR SpaceCLSID, - /* [retval][out] */ ITuningSpaces **NewColl) = 0; - - virtual /* [helpstring][restricted][hidden] */ HRESULT STDMETHODCALLTYPE _TuningSpacesForCLSID( - /* [in] */ REFCLSID SpaceCLSID, - /* [retval][out] */ ITuningSpaces **NewColl) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE TuningSpacesForName( - /* [in] */ BSTR Name, - /* [retval][out] */ ITuningSpaces **NewColl) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE FindID( - /* [in] */ ITuningSpace *TuningSpace, - /* [retval][out] */ long *ID) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ ITuningSpace *TuningSpace, - /* [retval][out] */ VARIANT *NewIndex) = 0; - - virtual /* [helpstring][restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_EnumTuningSpaces( - /* [retval][out] */ IEnumTuningSpaces **ppEnum) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT Index) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_MaxCount( - /* [retval][out] */ long *MaxCount) = 0; - - virtual /* [helpstring][restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_MaxCount( - /* [in] */ long MaxCount) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITuningSpaceContainerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITuningSpaceContainer * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITuningSpaceContainer * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITuningSpaceContainer * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITuningSpaceContainer * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITuningSpaceContainer * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITuningSpaceContainer * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITuningSpaceContainer * 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); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - ITuningSpaceContainer * This, - /* [retval][out] */ long *Count); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - ITuningSpaceContainer * This, - /* [retval][out] */ IEnumVARIANT **NewEnum); - - /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - ITuningSpaceContainer * This, - /* [in] */ VARIANT varIndex, - /* [retval][out] */ ITuningSpace **TuningSpace); - - /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Item )( - ITuningSpaceContainer * This, - /* [in] */ VARIANT varIndex, - /* [in] */ ITuningSpace *TuningSpace); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *TuningSpacesForCLSID )( - ITuningSpaceContainer * This, - /* [in] */ BSTR SpaceCLSID, - /* [retval][out] */ ITuningSpaces **NewColl); - - /* [helpstring][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *_TuningSpacesForCLSID )( - ITuningSpaceContainer * This, - /* [in] */ REFCLSID SpaceCLSID, - /* [retval][out] */ ITuningSpaces **NewColl); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *TuningSpacesForName )( - ITuningSpaceContainer * This, - /* [in] */ BSTR Name, - /* [retval][out] */ ITuningSpaces **NewColl); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *FindID )( - ITuningSpaceContainer * This, - /* [in] */ ITuningSpace *TuningSpace, - /* [retval][out] */ long *ID); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - ITuningSpaceContainer * This, - /* [in] */ ITuningSpace *TuningSpace, - /* [retval][out] */ VARIANT *NewIndex); - - /* [helpstring][restricted][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumTuningSpaces )( - ITuningSpaceContainer * This, - /* [retval][out] */ IEnumTuningSpaces **ppEnum); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - ITuningSpaceContainer * This, - /* [in] */ VARIANT Index); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxCount )( - ITuningSpaceContainer * This, - /* [retval][out] */ long *MaxCount); - - /* [helpstring][restricted][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxCount )( - ITuningSpaceContainer * This, - /* [in] */ long MaxCount); - - END_INTERFACE - } ITuningSpaceContainerVtbl; - - interface ITuningSpaceContainer - { - CONST_VTBL struct ITuningSpaceContainerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITuningSpaceContainer_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITuningSpaceContainer_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITuningSpaceContainer_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITuningSpaceContainer_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITuningSpaceContainer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITuningSpaceContainer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITuningSpaceContainer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITuningSpaceContainer_get_Count(This,Count) \ - (This)->lpVtbl -> get_Count(This,Count) - -#define ITuningSpaceContainer_get__NewEnum(This,NewEnum) \ - (This)->lpVtbl -> get__NewEnum(This,NewEnum) - -#define ITuningSpaceContainer_get_Item(This,varIndex,TuningSpace) \ - (This)->lpVtbl -> get_Item(This,varIndex,TuningSpace) - -#define ITuningSpaceContainer_put_Item(This,varIndex,TuningSpace) \ - (This)->lpVtbl -> put_Item(This,varIndex,TuningSpace) - -#define ITuningSpaceContainer_TuningSpacesForCLSID(This,SpaceCLSID,NewColl) \ - (This)->lpVtbl -> TuningSpacesForCLSID(This,SpaceCLSID,NewColl) - -#define ITuningSpaceContainer__TuningSpacesForCLSID(This,SpaceCLSID,NewColl) \ - (This)->lpVtbl -> _TuningSpacesForCLSID(This,SpaceCLSID,NewColl) - -#define ITuningSpaceContainer_TuningSpacesForName(This,Name,NewColl) \ - (This)->lpVtbl -> TuningSpacesForName(This,Name,NewColl) - -#define ITuningSpaceContainer_FindID(This,TuningSpace,ID) \ - (This)->lpVtbl -> FindID(This,TuningSpace,ID) - -#define ITuningSpaceContainer_Add(This,TuningSpace,NewIndex) \ - (This)->lpVtbl -> Add(This,TuningSpace,NewIndex) - -#define ITuningSpaceContainer_get_EnumTuningSpaces(This,ppEnum) \ - (This)->lpVtbl -> get_EnumTuningSpaces(This,ppEnum) - -#define ITuningSpaceContainer_Remove(This,Index) \ - (This)->lpVtbl -> Remove(This,Index) - -#define ITuningSpaceContainer_get_MaxCount(This,MaxCount) \ - (This)->lpVtbl -> get_MaxCount(This,MaxCount) - -#define ITuningSpaceContainer_put_MaxCount(This,MaxCount) \ - (This)->lpVtbl -> put_MaxCount(This,MaxCount) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer_get_Count_Proxy( - ITuningSpaceContainer * This, - /* [retval][out] */ long *Count); - - -void __RPC_STUB ITuningSpaceContainer_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer_get__NewEnum_Proxy( - ITuningSpaceContainer * This, - /* [retval][out] */ IEnumVARIANT **NewEnum); - - -void __RPC_STUB ITuningSpaceContainer_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer_get_Item_Proxy( - ITuningSpaceContainer * This, - /* [in] */ VARIANT varIndex, - /* [retval][out] */ ITuningSpace **TuningSpace); - - -void __RPC_STUB ITuningSpaceContainer_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer_put_Item_Proxy( - ITuningSpaceContainer * This, - /* [in] */ VARIANT varIndex, - /* [in] */ ITuningSpace *TuningSpace); - - -void __RPC_STUB ITuningSpaceContainer_put_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer_TuningSpacesForCLSID_Proxy( - ITuningSpaceContainer * This, - /* [in] */ BSTR SpaceCLSID, - /* [retval][out] */ ITuningSpaces **NewColl); - - -void __RPC_STUB ITuningSpaceContainer_TuningSpacesForCLSID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][hidden] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer__TuningSpacesForCLSID_Proxy( - ITuningSpaceContainer * This, - /* [in] */ REFCLSID SpaceCLSID, - /* [retval][out] */ ITuningSpaces **NewColl); - - -void __RPC_STUB ITuningSpaceContainer__TuningSpacesForCLSID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer_TuningSpacesForName_Proxy( - ITuningSpaceContainer * This, - /* [in] */ BSTR Name, - /* [retval][out] */ ITuningSpaces **NewColl); - - -void __RPC_STUB ITuningSpaceContainer_TuningSpacesForName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer_FindID_Proxy( - ITuningSpaceContainer * This, - /* [in] */ ITuningSpace *TuningSpace, - /* [retval][out] */ long *ID); - - -void __RPC_STUB ITuningSpaceContainer_FindID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer_Add_Proxy( - ITuningSpaceContainer * This, - /* [in] */ ITuningSpace *TuningSpace, - /* [retval][out] */ VARIANT *NewIndex); - - -void __RPC_STUB ITuningSpaceContainer_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][hidden][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer_get_EnumTuningSpaces_Proxy( - ITuningSpaceContainer * This, - /* [retval][out] */ IEnumTuningSpaces **ppEnum); - - -void __RPC_STUB ITuningSpaceContainer_get_EnumTuningSpaces_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer_Remove_Proxy( - ITuningSpaceContainer * This, - /* [in] */ VARIANT Index); - - -void __RPC_STUB ITuningSpaceContainer_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer_get_MaxCount_Proxy( - ITuningSpaceContainer * This, - /* [retval][out] */ long *MaxCount); - - -void __RPC_STUB ITuningSpaceContainer_get_MaxCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][hidden][propput] */ HRESULT STDMETHODCALLTYPE ITuningSpaceContainer_put_MaxCount_Proxy( - ITuningSpaceContainer * This, - /* [in] */ long MaxCount); - - -void __RPC_STUB ITuningSpaceContainer_put_MaxCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITuningSpaceContainer_INTERFACE_DEFINED__ */ - - -#ifndef __ITuningSpace_INTERFACE_DEFINED__ -#define __ITuningSpace_INTERFACE_DEFINED__ - -/* interface ITuningSpace */ -/* [unique][helpstring][nonextensible][oleautomation][dual][uuid][object] */ - - -EXTERN_C const IID IID_ITuningSpace; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("061C6E30-E622-11d2-9493-00C04F72D980") - ITuningSpace : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UniqueName( - /* [retval][out] */ BSTR *Name) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UniqueName( - /* [in] */ BSTR Name) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FriendlyName( - /* [retval][out] */ BSTR *Name) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FriendlyName( - /* [in] */ BSTR Name) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CLSID( - /* [retval][out] */ BSTR *SpaceCLSID) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NetworkType( - /* [retval][out] */ BSTR *NetworkTypeGuid) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_NetworkType( - /* [in] */ BSTR NetworkTypeGuid) = 0; - - virtual /* [restricted][hidden][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NetworkType( - /* [retval][out] */ GUID *NetworkTypeGuid) = 0; - - virtual /* [restricted][hidden][helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put__NetworkType( - /* [in] */ REFCLSID NetworkTypeGuid) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateTuneRequest( - /* [retval][out] */ ITuneRequest **TuneRequest) = 0; - - virtual /* [restricted][hidden][id] */ HRESULT STDMETHODCALLTYPE EnumCategoryGUIDs( - /* [retval][out] */ IEnumGUID **ppEnum) = 0; - - virtual /* [restricted][hidden][id] */ HRESULT STDMETHODCALLTYPE EnumDeviceMonikers( - /* [retval][out] */ IEnumMoniker **ppEnum) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultPreferredComponentTypes( - /* [retval][out] */ IComponentTypes **ComponentTypes) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DefaultPreferredComponentTypes( - /* [in] */ IComponentTypes *NewComponentTypes) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FrequencyMapping( - /* [retval][out] */ BSTR *pMapping) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_FrequencyMapping( - BSTR Mapping) = 0; - - virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultLocator( - /* [retval][out] */ ILocator **LocatorVal) = 0; - - virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DefaultLocator( - /* [in] */ ILocator *LocatorVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [retval][out] */ ITuningSpace **NewTS) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITuningSpaceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITuningSpace * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITuningSpace * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITuningSpace * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITuningSpace * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITuningSpace * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITuningSpace * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITuningSpace * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( - ITuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UniqueName )( - ITuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( - ITuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FriendlyName )( - ITuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CLSID )( - ITuningSpace * This, - /* [retval][out] */ BSTR *SpaceCLSID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkType )( - ITuningSpace * This, - /* [retval][out] */ BSTR *NetworkTypeGuid); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkType )( - ITuningSpace * This, - /* [in] */ BSTR NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NetworkType )( - ITuningSpace * This, - /* [retval][out] */ GUID *NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__NetworkType )( - ITuningSpace * This, - /* [in] */ REFCLSID NetworkTypeGuid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTuneRequest )( - ITuningSpace * This, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumCategoryGUIDs )( - ITuningSpace * This, - /* [retval][out] */ IEnumGUID **ppEnum); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumDeviceMonikers )( - ITuningSpace * This, - /* [retval][out] */ IEnumMoniker **ppEnum); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultPreferredComponentTypes )( - ITuningSpace * This, - /* [retval][out] */ IComponentTypes **ComponentTypes); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultPreferredComponentTypes )( - ITuningSpace * This, - /* [in] */ IComponentTypes *NewComponentTypes); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FrequencyMapping )( - ITuningSpace * This, - /* [retval][out] */ BSTR *pMapping); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FrequencyMapping )( - ITuningSpace * This, - BSTR Mapping); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultLocator )( - ITuningSpace * This, - /* [retval][out] */ ILocator **LocatorVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultLocator )( - ITuningSpace * This, - /* [in] */ ILocator *LocatorVal); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - ITuningSpace * This, - /* [retval][out] */ ITuningSpace **NewTS); - - END_INTERFACE - } ITuningSpaceVtbl; - - interface ITuningSpace - { - CONST_VTBL struct ITuningSpaceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITuningSpace_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITuningSpace_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITuningSpace_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITuningSpace_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITuningSpace_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITuningSpace_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITuningSpace_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITuningSpace_get_UniqueName(This,Name) \ - (This)->lpVtbl -> get_UniqueName(This,Name) - -#define ITuningSpace_put_UniqueName(This,Name) \ - (This)->lpVtbl -> put_UniqueName(This,Name) - -#define ITuningSpace_get_FriendlyName(This,Name) \ - (This)->lpVtbl -> get_FriendlyName(This,Name) - -#define ITuningSpace_put_FriendlyName(This,Name) \ - (This)->lpVtbl -> put_FriendlyName(This,Name) - -#define ITuningSpace_get_CLSID(This,SpaceCLSID) \ - (This)->lpVtbl -> get_CLSID(This,SpaceCLSID) - -#define ITuningSpace_get_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get_NetworkType(This,NetworkTypeGuid) - -#define ITuningSpace_put_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put_NetworkType(This,NetworkTypeGuid) - -#define ITuningSpace_get__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get__NetworkType(This,NetworkTypeGuid) - -#define ITuningSpace_put__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put__NetworkType(This,NetworkTypeGuid) - -#define ITuningSpace_CreateTuneRequest(This,TuneRequest) \ - (This)->lpVtbl -> CreateTuneRequest(This,TuneRequest) - -#define ITuningSpace_EnumCategoryGUIDs(This,ppEnum) \ - (This)->lpVtbl -> EnumCategoryGUIDs(This,ppEnum) - -#define ITuningSpace_EnumDeviceMonikers(This,ppEnum) \ - (This)->lpVtbl -> EnumDeviceMonikers(This,ppEnum) - -#define ITuningSpace_get_DefaultPreferredComponentTypes(This,ComponentTypes) \ - (This)->lpVtbl -> get_DefaultPreferredComponentTypes(This,ComponentTypes) - -#define ITuningSpace_put_DefaultPreferredComponentTypes(This,NewComponentTypes) \ - (This)->lpVtbl -> put_DefaultPreferredComponentTypes(This,NewComponentTypes) - -#define ITuningSpace_get_FrequencyMapping(This,pMapping) \ - (This)->lpVtbl -> get_FrequencyMapping(This,pMapping) - -#define ITuningSpace_put_FrequencyMapping(This,Mapping) \ - (This)->lpVtbl -> put_FrequencyMapping(This,Mapping) - -#define ITuningSpace_get_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> get_DefaultLocator(This,LocatorVal) - -#define ITuningSpace_put_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> put_DefaultLocator(This,LocatorVal) - -#define ITuningSpace_Clone(This,NewTS) \ - (This)->lpVtbl -> Clone(This,NewTS) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpace_get_UniqueName_Proxy( - ITuningSpace * This, - /* [retval][out] */ BSTR *Name); - - -void __RPC_STUB ITuningSpace_get_UniqueName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITuningSpace_put_UniqueName_Proxy( - ITuningSpace * This, - /* [in] */ BSTR Name); - - -void __RPC_STUB ITuningSpace_put_UniqueName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpace_get_FriendlyName_Proxy( - ITuningSpace * This, - /* [retval][out] */ BSTR *Name); - - -void __RPC_STUB ITuningSpace_get_FriendlyName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITuningSpace_put_FriendlyName_Proxy( - ITuningSpace * This, - /* [in] */ BSTR Name); - - -void __RPC_STUB ITuningSpace_put_FriendlyName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpace_get_CLSID_Proxy( - ITuningSpace * This, - /* [retval][out] */ BSTR *SpaceCLSID); - - -void __RPC_STUB ITuningSpace_get_CLSID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpace_get_NetworkType_Proxy( - ITuningSpace * This, - /* [retval][out] */ BSTR *NetworkTypeGuid); - - -void __RPC_STUB ITuningSpace_get_NetworkType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITuningSpace_put_NetworkType_Proxy( - ITuningSpace * This, - /* [in] */ BSTR NetworkTypeGuid); - - -void __RPC_STUB ITuningSpace_put_NetworkType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpace_get__NetworkType_Proxy( - ITuningSpace * This, - /* [retval][out] */ GUID *NetworkTypeGuid); - - -void __RPC_STUB ITuningSpace_get__NetworkType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITuningSpace_put__NetworkType_Proxy( - ITuningSpace * This, - /* [in] */ REFCLSID NetworkTypeGuid); - - -void __RPC_STUB ITuningSpace_put__NetworkType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITuningSpace_CreateTuneRequest_Proxy( - ITuningSpace * This, - /* [retval][out] */ ITuneRequest **TuneRequest); - - -void __RPC_STUB ITuningSpace_CreateTuneRequest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id] */ HRESULT STDMETHODCALLTYPE ITuningSpace_EnumCategoryGUIDs_Proxy( - ITuningSpace * This, - /* [retval][out] */ IEnumGUID **ppEnum); - - -void __RPC_STUB ITuningSpace_EnumCategoryGUIDs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id] */ HRESULT STDMETHODCALLTYPE ITuningSpace_EnumDeviceMonikers_Proxy( - ITuningSpace * This, - /* [retval][out] */ IEnumMoniker **ppEnum); - - -void __RPC_STUB ITuningSpace_EnumDeviceMonikers_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpace_get_DefaultPreferredComponentTypes_Proxy( - ITuningSpace * This, - /* [retval][out] */ IComponentTypes **ComponentTypes); - - -void __RPC_STUB ITuningSpace_get_DefaultPreferredComponentTypes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ITuningSpace_put_DefaultPreferredComponentTypes_Proxy( - ITuningSpace * This, - /* [in] */ IComponentTypes *NewComponentTypes); - - -void __RPC_STUB ITuningSpace_put_DefaultPreferredComponentTypes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpace_get_FrequencyMapping_Proxy( - ITuningSpace * This, - /* [retval][out] */ BSTR *pMapping); - - -void __RPC_STUB ITuningSpace_get_FrequencyMapping_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ITuningSpace_put_FrequencyMapping_Proxy( - ITuningSpace * This, - BSTR Mapping); - - -void __RPC_STUB ITuningSpace_put_FrequencyMapping_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propget] */ HRESULT STDMETHODCALLTYPE ITuningSpace_get_DefaultLocator_Proxy( - ITuningSpace * This, - /* [retval][out] */ ILocator **LocatorVal); - - -void __RPC_STUB ITuningSpace_get_DefaultLocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [id][propput] */ HRESULT STDMETHODCALLTYPE ITuningSpace_put_DefaultLocator_Proxy( - ITuningSpace * This, - /* [in] */ ILocator *LocatorVal); - - -void __RPC_STUB ITuningSpace_put_DefaultLocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ITuningSpace_Clone_Proxy( - ITuningSpace * This, - /* [retval][out] */ ITuningSpace **NewTS); - - -void __RPC_STUB ITuningSpace_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITuningSpace_INTERFACE_DEFINED__ */ - - -#ifndef __IEnumTuningSpaces_INTERFACE_DEFINED__ -#define __IEnumTuningSpaces_INTERFACE_DEFINED__ - -/* interface IEnumTuningSpaces */ -/* [unique][uuid][object][restricted][hidden] */ - - -EXTERN_C const IID IID_IEnumTuningSpaces; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("8B8EB248-FC2B-11d2-9D8C-00C04F72D980") - IEnumTuningSpaces : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Next( - /* [in] */ ULONG celt, - /* [length_is][size_is][out] */ ITuningSpace **rgelt, - /* [out] */ ULONG *pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - /* [in] */ ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IEnumTuningSpaces **ppEnum) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumTuningSpacesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumTuningSpaces * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumTuningSpaces * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumTuningSpaces * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumTuningSpaces * This, - /* [in] */ ULONG celt, - /* [length_is][size_is][out] */ ITuningSpace **rgelt, - /* [out] */ ULONG *pceltFetched); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumTuningSpaces * This, - /* [in] */ ULONG celt); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumTuningSpaces * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumTuningSpaces * This, - /* [out] */ IEnumTuningSpaces **ppEnum); - - END_INTERFACE - } IEnumTuningSpacesVtbl; - - interface IEnumTuningSpaces - { - CONST_VTBL struct IEnumTuningSpacesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEnumTuningSpaces_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEnumTuningSpaces_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEnumTuningSpaces_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEnumTuningSpaces_Next(This,celt,rgelt,pceltFetched) \ - (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) - -#define IEnumTuningSpaces_Skip(This,celt) \ - (This)->lpVtbl -> Skip(This,celt) - -#define IEnumTuningSpaces_Reset(This) \ - (This)->lpVtbl -> Reset(This) - -#define IEnumTuningSpaces_Clone(This,ppEnum) \ - (This)->lpVtbl -> Clone(This,ppEnum) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IEnumTuningSpaces_Next_Proxy( - IEnumTuningSpaces * This, - /* [in] */ ULONG celt, - /* [length_is][size_is][out] */ ITuningSpace **rgelt, - /* [out] */ ULONG *pceltFetched); - - -void __RPC_STUB IEnumTuningSpaces_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumTuningSpaces_Skip_Proxy( - IEnumTuningSpaces * This, - /* [in] */ ULONG celt); - - -void __RPC_STUB IEnumTuningSpaces_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumTuningSpaces_Reset_Proxy( - IEnumTuningSpaces * This); - - -void __RPC_STUB IEnumTuningSpaces_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumTuningSpaces_Clone_Proxy( - IEnumTuningSpaces * This, - /* [out] */ IEnumTuningSpaces **ppEnum); - - -void __RPC_STUB IEnumTuningSpaces_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEnumTuningSpaces_INTERFACE_DEFINED__ */ - - -#ifndef __IDVBTuningSpace_INTERFACE_DEFINED__ -#define __IDVBTuningSpace_INTERFACE_DEFINED__ - -/* interface IDVBTuningSpace */ -/* [unique][uuid][nonextensible][oleautomation][dual][hidden][object] */ - - -EXTERN_C const IID IID_IDVBTuningSpace; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("ADA0B268-3B19-4e5b-ACC4-49F852BE13BA") - IDVBTuningSpace : public ITuningSpace - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SystemType( - /* [retval][out] */ DVBSystemType *SysType) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SystemType( - /* [in] */ DVBSystemType SysType) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDVBTuningSpaceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDVBTuningSpace * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDVBTuningSpace * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDVBTuningSpace * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDVBTuningSpace * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDVBTuningSpace * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDVBTuningSpace * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDVBTuningSpace * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( - IDVBTuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UniqueName )( - IDVBTuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( - IDVBTuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FriendlyName )( - IDVBTuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CLSID )( - IDVBTuningSpace * This, - /* [retval][out] */ BSTR *SpaceCLSID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkType )( - IDVBTuningSpace * This, - /* [retval][out] */ BSTR *NetworkTypeGuid); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkType )( - IDVBTuningSpace * This, - /* [in] */ BSTR NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NetworkType )( - IDVBTuningSpace * This, - /* [retval][out] */ GUID *NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__NetworkType )( - IDVBTuningSpace * This, - /* [in] */ REFCLSID NetworkTypeGuid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTuneRequest )( - IDVBTuningSpace * This, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumCategoryGUIDs )( - IDVBTuningSpace * This, - /* [retval][out] */ IEnumGUID **ppEnum); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumDeviceMonikers )( - IDVBTuningSpace * This, - /* [retval][out] */ IEnumMoniker **ppEnum); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultPreferredComponentTypes )( - IDVBTuningSpace * This, - /* [retval][out] */ IComponentTypes **ComponentTypes); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultPreferredComponentTypes )( - IDVBTuningSpace * This, - /* [in] */ IComponentTypes *NewComponentTypes); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FrequencyMapping )( - IDVBTuningSpace * This, - /* [retval][out] */ BSTR *pMapping); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FrequencyMapping )( - IDVBTuningSpace * This, - BSTR Mapping); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultLocator )( - IDVBTuningSpace * This, - /* [retval][out] */ ILocator **LocatorVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultLocator )( - IDVBTuningSpace * This, - /* [in] */ ILocator *LocatorVal); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IDVBTuningSpace * This, - /* [retval][out] */ ITuningSpace **NewTS); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SystemType )( - IDVBTuningSpace * This, - /* [retval][out] */ DVBSystemType *SysType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SystemType )( - IDVBTuningSpace * This, - /* [in] */ DVBSystemType SysType); - - END_INTERFACE - } IDVBTuningSpaceVtbl; - - interface IDVBTuningSpace - { - CONST_VTBL struct IDVBTuningSpaceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDVBTuningSpace_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDVBTuningSpace_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDVBTuningSpace_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDVBTuningSpace_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDVBTuningSpace_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDVBTuningSpace_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDVBTuningSpace_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDVBTuningSpace_get_UniqueName(This,Name) \ - (This)->lpVtbl -> get_UniqueName(This,Name) - -#define IDVBTuningSpace_put_UniqueName(This,Name) \ - (This)->lpVtbl -> put_UniqueName(This,Name) - -#define IDVBTuningSpace_get_FriendlyName(This,Name) \ - (This)->lpVtbl -> get_FriendlyName(This,Name) - -#define IDVBTuningSpace_put_FriendlyName(This,Name) \ - (This)->lpVtbl -> put_FriendlyName(This,Name) - -#define IDVBTuningSpace_get_CLSID(This,SpaceCLSID) \ - (This)->lpVtbl -> get_CLSID(This,SpaceCLSID) - -#define IDVBTuningSpace_get_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get_NetworkType(This,NetworkTypeGuid) - -#define IDVBTuningSpace_put_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put_NetworkType(This,NetworkTypeGuid) - -#define IDVBTuningSpace_get__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get__NetworkType(This,NetworkTypeGuid) - -#define IDVBTuningSpace_put__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put__NetworkType(This,NetworkTypeGuid) - -#define IDVBTuningSpace_CreateTuneRequest(This,TuneRequest) \ - (This)->lpVtbl -> CreateTuneRequest(This,TuneRequest) - -#define IDVBTuningSpace_EnumCategoryGUIDs(This,ppEnum) \ - (This)->lpVtbl -> EnumCategoryGUIDs(This,ppEnum) - -#define IDVBTuningSpace_EnumDeviceMonikers(This,ppEnum) \ - (This)->lpVtbl -> EnumDeviceMonikers(This,ppEnum) - -#define IDVBTuningSpace_get_DefaultPreferredComponentTypes(This,ComponentTypes) \ - (This)->lpVtbl -> get_DefaultPreferredComponentTypes(This,ComponentTypes) - -#define IDVBTuningSpace_put_DefaultPreferredComponentTypes(This,NewComponentTypes) \ - (This)->lpVtbl -> put_DefaultPreferredComponentTypes(This,NewComponentTypes) - -#define IDVBTuningSpace_get_FrequencyMapping(This,pMapping) \ - (This)->lpVtbl -> get_FrequencyMapping(This,pMapping) - -#define IDVBTuningSpace_put_FrequencyMapping(This,Mapping) \ - (This)->lpVtbl -> put_FrequencyMapping(This,Mapping) - -#define IDVBTuningSpace_get_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> get_DefaultLocator(This,LocatorVal) - -#define IDVBTuningSpace_put_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> put_DefaultLocator(This,LocatorVal) - -#define IDVBTuningSpace_Clone(This,NewTS) \ - (This)->lpVtbl -> Clone(This,NewTS) - - -#define IDVBTuningSpace_get_SystemType(This,SysType) \ - (This)->lpVtbl -> get_SystemType(This,SysType) - -#define IDVBTuningSpace_put_SystemType(This,SysType) \ - (This)->lpVtbl -> put_SystemType(This,SysType) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBTuningSpace_get_SystemType_Proxy( - IDVBTuningSpace * This, - /* [retval][out] */ DVBSystemType *SysType); - - -void __RPC_STUB IDVBTuningSpace_get_SystemType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBTuningSpace_put_SystemType_Proxy( - IDVBTuningSpace * This, - /* [in] */ DVBSystemType SysType); - - -void __RPC_STUB IDVBTuningSpace_put_SystemType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDVBTuningSpace_INTERFACE_DEFINED__ */ - - -#ifndef __IDVBTuningSpace2_INTERFACE_DEFINED__ -#define __IDVBTuningSpace2_INTERFACE_DEFINED__ - -/* interface IDVBTuningSpace2 */ -/* [unique][uuid][nonextensible][oleautomation][dual][hidden][object] */ - - -EXTERN_C const IID IID_IDVBTuningSpace2; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("843188B4-CE62-43db-966B-8145A094E040") - IDVBTuningSpace2 : public IDVBTuningSpace - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NetworkID( - /* [retval][out] */ long *NetworkID) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_NetworkID( - /* [in] */ long NetworkID) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDVBTuningSpace2Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDVBTuningSpace2 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDVBTuningSpace2 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDVBTuningSpace2 * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDVBTuningSpace2 * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDVBTuningSpace2 * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDVBTuningSpace2 * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDVBTuningSpace2 * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( - IDVBTuningSpace2 * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UniqueName )( - IDVBTuningSpace2 * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( - IDVBTuningSpace2 * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FriendlyName )( - IDVBTuningSpace2 * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CLSID )( - IDVBTuningSpace2 * This, - /* [retval][out] */ BSTR *SpaceCLSID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkType )( - IDVBTuningSpace2 * This, - /* [retval][out] */ BSTR *NetworkTypeGuid); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkType )( - IDVBTuningSpace2 * This, - /* [in] */ BSTR NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NetworkType )( - IDVBTuningSpace2 * This, - /* [retval][out] */ GUID *NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__NetworkType )( - IDVBTuningSpace2 * This, - /* [in] */ REFCLSID NetworkTypeGuid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTuneRequest )( - IDVBTuningSpace2 * This, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumCategoryGUIDs )( - IDVBTuningSpace2 * This, - /* [retval][out] */ IEnumGUID **ppEnum); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumDeviceMonikers )( - IDVBTuningSpace2 * This, - /* [retval][out] */ IEnumMoniker **ppEnum); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultPreferredComponentTypes )( - IDVBTuningSpace2 * This, - /* [retval][out] */ IComponentTypes **ComponentTypes); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultPreferredComponentTypes )( - IDVBTuningSpace2 * This, - /* [in] */ IComponentTypes *NewComponentTypes); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FrequencyMapping )( - IDVBTuningSpace2 * This, - /* [retval][out] */ BSTR *pMapping); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FrequencyMapping )( - IDVBTuningSpace2 * This, - BSTR Mapping); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultLocator )( - IDVBTuningSpace2 * This, - /* [retval][out] */ ILocator **LocatorVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultLocator )( - IDVBTuningSpace2 * This, - /* [in] */ ILocator *LocatorVal); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IDVBTuningSpace2 * This, - /* [retval][out] */ ITuningSpace **NewTS); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SystemType )( - IDVBTuningSpace2 * This, - /* [retval][out] */ DVBSystemType *SysType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SystemType )( - IDVBTuningSpace2 * This, - /* [in] */ DVBSystemType SysType); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkID )( - IDVBTuningSpace2 * This, - /* [retval][out] */ long *NetworkID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkID )( - IDVBTuningSpace2 * This, - /* [in] */ long NetworkID); - - END_INTERFACE - } IDVBTuningSpace2Vtbl; - - interface IDVBTuningSpace2 - { - CONST_VTBL struct IDVBTuningSpace2Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDVBTuningSpace2_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDVBTuningSpace2_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDVBTuningSpace2_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDVBTuningSpace2_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDVBTuningSpace2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDVBTuningSpace2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDVBTuningSpace2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDVBTuningSpace2_get_UniqueName(This,Name) \ - (This)->lpVtbl -> get_UniqueName(This,Name) - -#define IDVBTuningSpace2_put_UniqueName(This,Name) \ - (This)->lpVtbl -> put_UniqueName(This,Name) - -#define IDVBTuningSpace2_get_FriendlyName(This,Name) \ - (This)->lpVtbl -> get_FriendlyName(This,Name) - -#define IDVBTuningSpace2_put_FriendlyName(This,Name) \ - (This)->lpVtbl -> put_FriendlyName(This,Name) - -#define IDVBTuningSpace2_get_CLSID(This,SpaceCLSID) \ - (This)->lpVtbl -> get_CLSID(This,SpaceCLSID) - -#define IDVBTuningSpace2_get_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get_NetworkType(This,NetworkTypeGuid) - -#define IDVBTuningSpace2_put_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put_NetworkType(This,NetworkTypeGuid) - -#define IDVBTuningSpace2_get__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get__NetworkType(This,NetworkTypeGuid) - -#define IDVBTuningSpace2_put__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put__NetworkType(This,NetworkTypeGuid) - -#define IDVBTuningSpace2_CreateTuneRequest(This,TuneRequest) \ - (This)->lpVtbl -> CreateTuneRequest(This,TuneRequest) - -#define IDVBTuningSpace2_EnumCategoryGUIDs(This,ppEnum) \ - (This)->lpVtbl -> EnumCategoryGUIDs(This,ppEnum) - -#define IDVBTuningSpace2_EnumDeviceMonikers(This,ppEnum) \ - (This)->lpVtbl -> EnumDeviceMonikers(This,ppEnum) - -#define IDVBTuningSpace2_get_DefaultPreferredComponentTypes(This,ComponentTypes) \ - (This)->lpVtbl -> get_DefaultPreferredComponentTypes(This,ComponentTypes) - -#define IDVBTuningSpace2_put_DefaultPreferredComponentTypes(This,NewComponentTypes) \ - (This)->lpVtbl -> put_DefaultPreferredComponentTypes(This,NewComponentTypes) - -#define IDVBTuningSpace2_get_FrequencyMapping(This,pMapping) \ - (This)->lpVtbl -> get_FrequencyMapping(This,pMapping) - -#define IDVBTuningSpace2_put_FrequencyMapping(This,Mapping) \ - (This)->lpVtbl -> put_FrequencyMapping(This,Mapping) - -#define IDVBTuningSpace2_get_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> get_DefaultLocator(This,LocatorVal) - -#define IDVBTuningSpace2_put_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> put_DefaultLocator(This,LocatorVal) - -#define IDVBTuningSpace2_Clone(This,NewTS) \ - (This)->lpVtbl -> Clone(This,NewTS) - - -#define IDVBTuningSpace2_get_SystemType(This,SysType) \ - (This)->lpVtbl -> get_SystemType(This,SysType) - -#define IDVBTuningSpace2_put_SystemType(This,SysType) \ - (This)->lpVtbl -> put_SystemType(This,SysType) - - -#define IDVBTuningSpace2_get_NetworkID(This,NetworkID) \ - (This)->lpVtbl -> get_NetworkID(This,NetworkID) - -#define IDVBTuningSpace2_put_NetworkID(This,NetworkID) \ - (This)->lpVtbl -> put_NetworkID(This,NetworkID) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBTuningSpace2_get_NetworkID_Proxy( - IDVBTuningSpace2 * This, - /* [retval][out] */ long *NetworkID); - - -void __RPC_STUB IDVBTuningSpace2_get_NetworkID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBTuningSpace2_put_NetworkID_Proxy( - IDVBTuningSpace2 * This, - /* [in] */ long NetworkID); - - -void __RPC_STUB IDVBTuningSpace2_put_NetworkID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDVBTuningSpace2_INTERFACE_DEFINED__ */ - - -#ifndef __IDVBSTuningSpace_INTERFACE_DEFINED__ -#define __IDVBSTuningSpace_INTERFACE_DEFINED__ - -/* interface IDVBSTuningSpace */ -/* [unique][uuid][nonextensible][oleautomation][dual][hidden][object] */ - - -EXTERN_C const IID IID_IDVBSTuningSpace; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("CDF7BE60-D954-42fd-A972-78971958E470") - IDVBSTuningSpace : public IDVBTuningSpace2 - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LowOscillator( - /* [retval][out] */ long *LowOscillator) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LowOscillator( - /* [in] */ long LowOscillator) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HighOscillator( - /* [retval][out] */ long *HighOscillator) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_HighOscillator( - /* [in] */ long HighOscillator) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LNBSwitch( - /* [retval][out] */ long *LNBSwitch) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LNBSwitch( - /* [in] */ long LNBSwitch) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InputRange( - /* [retval][out] */ BSTR *InputRange) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InputRange( - /* [in] */ BSTR InputRange) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SpectralInversion( - /* [retval][out] */ SpectralInversion *SpectralInversionVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SpectralInversion( - /* [in] */ SpectralInversion SpectralInversionVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDVBSTuningSpaceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDVBSTuningSpace * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDVBSTuningSpace * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDVBSTuningSpace * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDVBSTuningSpace * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDVBSTuningSpace * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDVBSTuningSpace * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDVBSTuningSpace * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( - IDVBSTuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UniqueName )( - IDVBSTuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( - IDVBSTuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FriendlyName )( - IDVBSTuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CLSID )( - IDVBSTuningSpace * This, - /* [retval][out] */ BSTR *SpaceCLSID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkType )( - IDVBSTuningSpace * This, - /* [retval][out] */ BSTR *NetworkTypeGuid); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkType )( - IDVBSTuningSpace * This, - /* [in] */ BSTR NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NetworkType )( - IDVBSTuningSpace * This, - /* [retval][out] */ GUID *NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__NetworkType )( - IDVBSTuningSpace * This, - /* [in] */ REFCLSID NetworkTypeGuid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTuneRequest )( - IDVBSTuningSpace * This, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumCategoryGUIDs )( - IDVBSTuningSpace * This, - /* [retval][out] */ IEnumGUID **ppEnum); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumDeviceMonikers )( - IDVBSTuningSpace * This, - /* [retval][out] */ IEnumMoniker **ppEnum); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultPreferredComponentTypes )( - IDVBSTuningSpace * This, - /* [retval][out] */ IComponentTypes **ComponentTypes); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultPreferredComponentTypes )( - IDVBSTuningSpace * This, - /* [in] */ IComponentTypes *NewComponentTypes); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FrequencyMapping )( - IDVBSTuningSpace * This, - /* [retval][out] */ BSTR *pMapping); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FrequencyMapping )( - IDVBSTuningSpace * This, - BSTR Mapping); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultLocator )( - IDVBSTuningSpace * This, - /* [retval][out] */ ILocator **LocatorVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultLocator )( - IDVBSTuningSpace * This, - /* [in] */ ILocator *LocatorVal); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IDVBSTuningSpace * This, - /* [retval][out] */ ITuningSpace **NewTS); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SystemType )( - IDVBSTuningSpace * This, - /* [retval][out] */ DVBSystemType *SysType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SystemType )( - IDVBSTuningSpace * This, - /* [in] */ DVBSystemType SysType); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkID )( - IDVBSTuningSpace * This, - /* [retval][out] */ long *NetworkID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkID )( - IDVBSTuningSpace * This, - /* [in] */ long NetworkID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LowOscillator )( - IDVBSTuningSpace * This, - /* [retval][out] */ long *LowOscillator); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LowOscillator )( - IDVBSTuningSpace * This, - /* [in] */ long LowOscillator); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HighOscillator )( - IDVBSTuningSpace * This, - /* [retval][out] */ long *HighOscillator); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HighOscillator )( - IDVBSTuningSpace * This, - /* [in] */ long HighOscillator); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LNBSwitch )( - IDVBSTuningSpace * This, - /* [retval][out] */ long *LNBSwitch); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LNBSwitch )( - IDVBSTuningSpace * This, - /* [in] */ long LNBSwitch); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputRange )( - IDVBSTuningSpace * This, - /* [retval][out] */ BSTR *InputRange); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InputRange )( - IDVBSTuningSpace * This, - /* [in] */ BSTR InputRange); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SpectralInversion )( - IDVBSTuningSpace * This, - /* [retval][out] */ SpectralInversion *SpectralInversionVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SpectralInversion )( - IDVBSTuningSpace * This, - /* [in] */ SpectralInversion SpectralInversionVal); - - END_INTERFACE - } IDVBSTuningSpaceVtbl; - - interface IDVBSTuningSpace - { - CONST_VTBL struct IDVBSTuningSpaceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDVBSTuningSpace_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDVBSTuningSpace_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDVBSTuningSpace_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDVBSTuningSpace_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDVBSTuningSpace_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDVBSTuningSpace_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDVBSTuningSpace_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDVBSTuningSpace_get_UniqueName(This,Name) \ - (This)->lpVtbl -> get_UniqueName(This,Name) - -#define IDVBSTuningSpace_put_UniqueName(This,Name) \ - (This)->lpVtbl -> put_UniqueName(This,Name) - -#define IDVBSTuningSpace_get_FriendlyName(This,Name) \ - (This)->lpVtbl -> get_FriendlyName(This,Name) - -#define IDVBSTuningSpace_put_FriendlyName(This,Name) \ - (This)->lpVtbl -> put_FriendlyName(This,Name) - -#define IDVBSTuningSpace_get_CLSID(This,SpaceCLSID) \ - (This)->lpVtbl -> get_CLSID(This,SpaceCLSID) - -#define IDVBSTuningSpace_get_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get_NetworkType(This,NetworkTypeGuid) - -#define IDVBSTuningSpace_put_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put_NetworkType(This,NetworkTypeGuid) - -#define IDVBSTuningSpace_get__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get__NetworkType(This,NetworkTypeGuid) - -#define IDVBSTuningSpace_put__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put__NetworkType(This,NetworkTypeGuid) - -#define IDVBSTuningSpace_CreateTuneRequest(This,TuneRequest) \ - (This)->lpVtbl -> CreateTuneRequest(This,TuneRequest) - -#define IDVBSTuningSpace_EnumCategoryGUIDs(This,ppEnum) \ - (This)->lpVtbl -> EnumCategoryGUIDs(This,ppEnum) - -#define IDVBSTuningSpace_EnumDeviceMonikers(This,ppEnum) \ - (This)->lpVtbl -> EnumDeviceMonikers(This,ppEnum) - -#define IDVBSTuningSpace_get_DefaultPreferredComponentTypes(This,ComponentTypes) \ - (This)->lpVtbl -> get_DefaultPreferredComponentTypes(This,ComponentTypes) - -#define IDVBSTuningSpace_put_DefaultPreferredComponentTypes(This,NewComponentTypes) \ - (This)->lpVtbl -> put_DefaultPreferredComponentTypes(This,NewComponentTypes) - -#define IDVBSTuningSpace_get_FrequencyMapping(This,pMapping) \ - (This)->lpVtbl -> get_FrequencyMapping(This,pMapping) - -#define IDVBSTuningSpace_put_FrequencyMapping(This,Mapping) \ - (This)->lpVtbl -> put_FrequencyMapping(This,Mapping) - -#define IDVBSTuningSpace_get_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> get_DefaultLocator(This,LocatorVal) - -#define IDVBSTuningSpace_put_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> put_DefaultLocator(This,LocatorVal) - -#define IDVBSTuningSpace_Clone(This,NewTS) \ - (This)->lpVtbl -> Clone(This,NewTS) - - -#define IDVBSTuningSpace_get_SystemType(This,SysType) \ - (This)->lpVtbl -> get_SystemType(This,SysType) - -#define IDVBSTuningSpace_put_SystemType(This,SysType) \ - (This)->lpVtbl -> put_SystemType(This,SysType) - - -#define IDVBSTuningSpace_get_NetworkID(This,NetworkID) \ - (This)->lpVtbl -> get_NetworkID(This,NetworkID) - -#define IDVBSTuningSpace_put_NetworkID(This,NetworkID) \ - (This)->lpVtbl -> put_NetworkID(This,NetworkID) - - -#define IDVBSTuningSpace_get_LowOscillator(This,LowOscillator) \ - (This)->lpVtbl -> get_LowOscillator(This,LowOscillator) - -#define IDVBSTuningSpace_put_LowOscillator(This,LowOscillator) \ - (This)->lpVtbl -> put_LowOscillator(This,LowOscillator) - -#define IDVBSTuningSpace_get_HighOscillator(This,HighOscillator) \ - (This)->lpVtbl -> get_HighOscillator(This,HighOscillator) - -#define IDVBSTuningSpace_put_HighOscillator(This,HighOscillator) \ - (This)->lpVtbl -> put_HighOscillator(This,HighOscillator) - -#define IDVBSTuningSpace_get_LNBSwitch(This,LNBSwitch) \ - (This)->lpVtbl -> get_LNBSwitch(This,LNBSwitch) - -#define IDVBSTuningSpace_put_LNBSwitch(This,LNBSwitch) \ - (This)->lpVtbl -> put_LNBSwitch(This,LNBSwitch) - -#define IDVBSTuningSpace_get_InputRange(This,InputRange) \ - (This)->lpVtbl -> get_InputRange(This,InputRange) - -#define IDVBSTuningSpace_put_InputRange(This,InputRange) \ - (This)->lpVtbl -> put_InputRange(This,InputRange) - -#define IDVBSTuningSpace_get_SpectralInversion(This,SpectralInversionVal) \ - (This)->lpVtbl -> get_SpectralInversion(This,SpectralInversionVal) - -#define IDVBSTuningSpace_put_SpectralInversion(This,SpectralInversionVal) \ - (This)->lpVtbl -> put_SpectralInversion(This,SpectralInversionVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBSTuningSpace_get_LowOscillator_Proxy( - IDVBSTuningSpace * This, - /* [retval][out] */ long *LowOscillator); - - -void __RPC_STUB IDVBSTuningSpace_get_LowOscillator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBSTuningSpace_put_LowOscillator_Proxy( - IDVBSTuningSpace * This, - /* [in] */ long LowOscillator); - - -void __RPC_STUB IDVBSTuningSpace_put_LowOscillator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBSTuningSpace_get_HighOscillator_Proxy( - IDVBSTuningSpace * This, - /* [retval][out] */ long *HighOscillator); - - -void __RPC_STUB IDVBSTuningSpace_get_HighOscillator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBSTuningSpace_put_HighOscillator_Proxy( - IDVBSTuningSpace * This, - /* [in] */ long HighOscillator); - - -void __RPC_STUB IDVBSTuningSpace_put_HighOscillator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBSTuningSpace_get_LNBSwitch_Proxy( - IDVBSTuningSpace * This, - /* [retval][out] */ long *LNBSwitch); - - -void __RPC_STUB IDVBSTuningSpace_get_LNBSwitch_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBSTuningSpace_put_LNBSwitch_Proxy( - IDVBSTuningSpace * This, - /* [in] */ long LNBSwitch); - - -void __RPC_STUB IDVBSTuningSpace_put_LNBSwitch_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBSTuningSpace_get_InputRange_Proxy( - IDVBSTuningSpace * This, - /* [retval][out] */ BSTR *InputRange); - - -void __RPC_STUB IDVBSTuningSpace_get_InputRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBSTuningSpace_put_InputRange_Proxy( - IDVBSTuningSpace * This, - /* [in] */ BSTR InputRange); - - -void __RPC_STUB IDVBSTuningSpace_put_InputRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBSTuningSpace_get_SpectralInversion_Proxy( - IDVBSTuningSpace * This, - /* [retval][out] */ SpectralInversion *SpectralInversionVal); - - -void __RPC_STUB IDVBSTuningSpace_get_SpectralInversion_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBSTuningSpace_put_SpectralInversion_Proxy( - IDVBSTuningSpace * This, - /* [in] */ SpectralInversion SpectralInversionVal); - - -void __RPC_STUB IDVBSTuningSpace_put_SpectralInversion_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDVBSTuningSpace_INTERFACE_DEFINED__ */ - - -#ifndef __IAuxInTuningSpace_INTERFACE_DEFINED__ -#define __IAuxInTuningSpace_INTERFACE_DEFINED__ - -/* interface IAuxInTuningSpace */ -/* [unique][uuid][nonextensible][oleautomation][dual][hidden][object] */ - - -EXTERN_C const IID IID_IAuxInTuningSpace; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("E48244B8-7E17-4f76-A763-5090FF1E2F30") - IAuxInTuningSpace : public ITuningSpace - { - public: - }; - -#else /* C style interface */ - - typedef struct IAuxInTuningSpaceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAuxInTuningSpace * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAuxInTuningSpace * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAuxInTuningSpace * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IAuxInTuningSpace * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IAuxInTuningSpace * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IAuxInTuningSpace * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IAuxInTuningSpace * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( - IAuxInTuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UniqueName )( - IAuxInTuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( - IAuxInTuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FriendlyName )( - IAuxInTuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CLSID )( - IAuxInTuningSpace * This, - /* [retval][out] */ BSTR *SpaceCLSID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkType )( - IAuxInTuningSpace * This, - /* [retval][out] */ BSTR *NetworkTypeGuid); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkType )( - IAuxInTuningSpace * This, - /* [in] */ BSTR NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NetworkType )( - IAuxInTuningSpace * This, - /* [retval][out] */ GUID *NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__NetworkType )( - IAuxInTuningSpace * This, - /* [in] */ REFCLSID NetworkTypeGuid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTuneRequest )( - IAuxInTuningSpace * This, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumCategoryGUIDs )( - IAuxInTuningSpace * This, - /* [retval][out] */ IEnumGUID **ppEnum); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumDeviceMonikers )( - IAuxInTuningSpace * This, - /* [retval][out] */ IEnumMoniker **ppEnum); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultPreferredComponentTypes )( - IAuxInTuningSpace * This, - /* [retval][out] */ IComponentTypes **ComponentTypes); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultPreferredComponentTypes )( - IAuxInTuningSpace * This, - /* [in] */ IComponentTypes *NewComponentTypes); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FrequencyMapping )( - IAuxInTuningSpace * This, - /* [retval][out] */ BSTR *pMapping); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FrequencyMapping )( - IAuxInTuningSpace * This, - BSTR Mapping); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultLocator )( - IAuxInTuningSpace * This, - /* [retval][out] */ ILocator **LocatorVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultLocator )( - IAuxInTuningSpace * This, - /* [in] */ ILocator *LocatorVal); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IAuxInTuningSpace * This, - /* [retval][out] */ ITuningSpace **NewTS); - - END_INTERFACE - } IAuxInTuningSpaceVtbl; - - interface IAuxInTuningSpace - { - CONST_VTBL struct IAuxInTuningSpaceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAuxInTuningSpace_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAuxInTuningSpace_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAuxInTuningSpace_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAuxInTuningSpace_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IAuxInTuningSpace_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IAuxInTuningSpace_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IAuxInTuningSpace_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IAuxInTuningSpace_get_UniqueName(This,Name) \ - (This)->lpVtbl -> get_UniqueName(This,Name) - -#define IAuxInTuningSpace_put_UniqueName(This,Name) \ - (This)->lpVtbl -> put_UniqueName(This,Name) - -#define IAuxInTuningSpace_get_FriendlyName(This,Name) \ - (This)->lpVtbl -> get_FriendlyName(This,Name) - -#define IAuxInTuningSpace_put_FriendlyName(This,Name) \ - (This)->lpVtbl -> put_FriendlyName(This,Name) - -#define IAuxInTuningSpace_get_CLSID(This,SpaceCLSID) \ - (This)->lpVtbl -> get_CLSID(This,SpaceCLSID) - -#define IAuxInTuningSpace_get_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get_NetworkType(This,NetworkTypeGuid) - -#define IAuxInTuningSpace_put_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put_NetworkType(This,NetworkTypeGuid) - -#define IAuxInTuningSpace_get__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get__NetworkType(This,NetworkTypeGuid) - -#define IAuxInTuningSpace_put__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put__NetworkType(This,NetworkTypeGuid) - -#define IAuxInTuningSpace_CreateTuneRequest(This,TuneRequest) \ - (This)->lpVtbl -> CreateTuneRequest(This,TuneRequest) - -#define IAuxInTuningSpace_EnumCategoryGUIDs(This,ppEnum) \ - (This)->lpVtbl -> EnumCategoryGUIDs(This,ppEnum) - -#define IAuxInTuningSpace_EnumDeviceMonikers(This,ppEnum) \ - (This)->lpVtbl -> EnumDeviceMonikers(This,ppEnum) - -#define IAuxInTuningSpace_get_DefaultPreferredComponentTypes(This,ComponentTypes) \ - (This)->lpVtbl -> get_DefaultPreferredComponentTypes(This,ComponentTypes) - -#define IAuxInTuningSpace_put_DefaultPreferredComponentTypes(This,NewComponentTypes) \ - (This)->lpVtbl -> put_DefaultPreferredComponentTypes(This,NewComponentTypes) - -#define IAuxInTuningSpace_get_FrequencyMapping(This,pMapping) \ - (This)->lpVtbl -> get_FrequencyMapping(This,pMapping) - -#define IAuxInTuningSpace_put_FrequencyMapping(This,Mapping) \ - (This)->lpVtbl -> put_FrequencyMapping(This,Mapping) - -#define IAuxInTuningSpace_get_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> get_DefaultLocator(This,LocatorVal) - -#define IAuxInTuningSpace_put_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> put_DefaultLocator(This,LocatorVal) - -#define IAuxInTuningSpace_Clone(This,NewTS) \ - (This)->lpVtbl -> Clone(This,NewTS) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IAuxInTuningSpace_INTERFACE_DEFINED__ */ - - -#ifndef __IAnalogTVTuningSpace_INTERFACE_DEFINED__ -#define __IAnalogTVTuningSpace_INTERFACE_DEFINED__ - -/* interface IAnalogTVTuningSpace */ -/* [unique][uuid][nonextensible][oleautomation][dual][hidden][object] */ - - -EXTERN_C const IID IID_IAnalogTVTuningSpace; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("2A6E293C-2595-11d3-B64C-00C04F79498E") - IAnalogTVTuningSpace : public ITuningSpace - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinChannel( - /* [retval][out] */ long *MinChannelVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MinChannel( - /* [in] */ long NewMinChannelVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MaxChannel( - /* [retval][out] */ long *MaxChannelVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MaxChannel( - /* [in] */ long NewMaxChannelVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InputType( - /* [retval][out] */ TunerInputType *InputTypeVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InputType( - /* [in] */ TunerInputType NewInputTypeVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CountryCode( - /* [retval][out] */ long *CountryCodeVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CountryCode( - /* [in] */ long NewCountryCodeVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAnalogTVTuningSpaceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAnalogTVTuningSpace * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAnalogTVTuningSpace * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAnalogTVTuningSpace * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IAnalogTVTuningSpace * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IAnalogTVTuningSpace * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IAnalogTVTuningSpace * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IAnalogTVTuningSpace * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UniqueName )( - IAnalogTVTuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FriendlyName )( - IAnalogTVTuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CLSID )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ BSTR *SpaceCLSID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkType )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ BSTR *NetworkTypeGuid); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkType )( - IAnalogTVTuningSpace * This, - /* [in] */ BSTR NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NetworkType )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ GUID *NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__NetworkType )( - IAnalogTVTuningSpace * This, - /* [in] */ REFCLSID NetworkTypeGuid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTuneRequest )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumCategoryGUIDs )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ IEnumGUID **ppEnum); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumDeviceMonikers )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ IEnumMoniker **ppEnum); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultPreferredComponentTypes )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ IComponentTypes **ComponentTypes); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultPreferredComponentTypes )( - IAnalogTVTuningSpace * This, - /* [in] */ IComponentTypes *NewComponentTypes); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FrequencyMapping )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ BSTR *pMapping); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FrequencyMapping )( - IAnalogTVTuningSpace * This, - BSTR Mapping); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultLocator )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ ILocator **LocatorVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultLocator )( - IAnalogTVTuningSpace * This, - /* [in] */ ILocator *LocatorVal); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ ITuningSpace **NewTS); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinChannel )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ long *MinChannelVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MinChannel )( - IAnalogTVTuningSpace * This, - /* [in] */ long NewMinChannelVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxChannel )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ long *MaxChannelVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxChannel )( - IAnalogTVTuningSpace * This, - /* [in] */ long NewMaxChannelVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputType )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ TunerInputType *InputTypeVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InputType )( - IAnalogTVTuningSpace * This, - /* [in] */ TunerInputType NewInputTypeVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CountryCode )( - IAnalogTVTuningSpace * This, - /* [retval][out] */ long *CountryCodeVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CountryCode )( - IAnalogTVTuningSpace * This, - /* [in] */ long NewCountryCodeVal); - - END_INTERFACE - } IAnalogTVTuningSpaceVtbl; - - interface IAnalogTVTuningSpace - { - CONST_VTBL struct IAnalogTVTuningSpaceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAnalogTVTuningSpace_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAnalogTVTuningSpace_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAnalogTVTuningSpace_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAnalogTVTuningSpace_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IAnalogTVTuningSpace_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IAnalogTVTuningSpace_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IAnalogTVTuningSpace_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IAnalogTVTuningSpace_get_UniqueName(This,Name) \ - (This)->lpVtbl -> get_UniqueName(This,Name) - -#define IAnalogTVTuningSpace_put_UniqueName(This,Name) \ - (This)->lpVtbl -> put_UniqueName(This,Name) - -#define IAnalogTVTuningSpace_get_FriendlyName(This,Name) \ - (This)->lpVtbl -> get_FriendlyName(This,Name) - -#define IAnalogTVTuningSpace_put_FriendlyName(This,Name) \ - (This)->lpVtbl -> put_FriendlyName(This,Name) - -#define IAnalogTVTuningSpace_get_CLSID(This,SpaceCLSID) \ - (This)->lpVtbl -> get_CLSID(This,SpaceCLSID) - -#define IAnalogTVTuningSpace_get_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get_NetworkType(This,NetworkTypeGuid) - -#define IAnalogTVTuningSpace_put_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put_NetworkType(This,NetworkTypeGuid) - -#define IAnalogTVTuningSpace_get__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get__NetworkType(This,NetworkTypeGuid) - -#define IAnalogTVTuningSpace_put__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put__NetworkType(This,NetworkTypeGuid) - -#define IAnalogTVTuningSpace_CreateTuneRequest(This,TuneRequest) \ - (This)->lpVtbl -> CreateTuneRequest(This,TuneRequest) - -#define IAnalogTVTuningSpace_EnumCategoryGUIDs(This,ppEnum) \ - (This)->lpVtbl -> EnumCategoryGUIDs(This,ppEnum) - -#define IAnalogTVTuningSpace_EnumDeviceMonikers(This,ppEnum) \ - (This)->lpVtbl -> EnumDeviceMonikers(This,ppEnum) - -#define IAnalogTVTuningSpace_get_DefaultPreferredComponentTypes(This,ComponentTypes) \ - (This)->lpVtbl -> get_DefaultPreferredComponentTypes(This,ComponentTypes) - -#define IAnalogTVTuningSpace_put_DefaultPreferredComponentTypes(This,NewComponentTypes) \ - (This)->lpVtbl -> put_DefaultPreferredComponentTypes(This,NewComponentTypes) - -#define IAnalogTVTuningSpace_get_FrequencyMapping(This,pMapping) \ - (This)->lpVtbl -> get_FrequencyMapping(This,pMapping) - -#define IAnalogTVTuningSpace_put_FrequencyMapping(This,Mapping) \ - (This)->lpVtbl -> put_FrequencyMapping(This,Mapping) - -#define IAnalogTVTuningSpace_get_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> get_DefaultLocator(This,LocatorVal) - -#define IAnalogTVTuningSpace_put_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> put_DefaultLocator(This,LocatorVal) - -#define IAnalogTVTuningSpace_Clone(This,NewTS) \ - (This)->lpVtbl -> Clone(This,NewTS) - - -#define IAnalogTVTuningSpace_get_MinChannel(This,MinChannelVal) \ - (This)->lpVtbl -> get_MinChannel(This,MinChannelVal) - -#define IAnalogTVTuningSpace_put_MinChannel(This,NewMinChannelVal) \ - (This)->lpVtbl -> put_MinChannel(This,NewMinChannelVal) - -#define IAnalogTVTuningSpace_get_MaxChannel(This,MaxChannelVal) \ - (This)->lpVtbl -> get_MaxChannel(This,MaxChannelVal) - -#define IAnalogTVTuningSpace_put_MaxChannel(This,NewMaxChannelVal) \ - (This)->lpVtbl -> put_MaxChannel(This,NewMaxChannelVal) - -#define IAnalogTVTuningSpace_get_InputType(This,InputTypeVal) \ - (This)->lpVtbl -> get_InputType(This,InputTypeVal) - -#define IAnalogTVTuningSpace_put_InputType(This,NewInputTypeVal) \ - (This)->lpVtbl -> put_InputType(This,NewInputTypeVal) - -#define IAnalogTVTuningSpace_get_CountryCode(This,CountryCodeVal) \ - (This)->lpVtbl -> get_CountryCode(This,CountryCodeVal) - -#define IAnalogTVTuningSpace_put_CountryCode(This,NewCountryCodeVal) \ - (This)->lpVtbl -> put_CountryCode(This,NewCountryCodeVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IAnalogTVTuningSpace_get_MinChannel_Proxy( - IAnalogTVTuningSpace * This, - /* [retval][out] */ long *MinChannelVal); - - -void __RPC_STUB IAnalogTVTuningSpace_get_MinChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IAnalogTVTuningSpace_put_MinChannel_Proxy( - IAnalogTVTuningSpace * This, - /* [in] */ long NewMinChannelVal); - - -void __RPC_STUB IAnalogTVTuningSpace_put_MinChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IAnalogTVTuningSpace_get_MaxChannel_Proxy( - IAnalogTVTuningSpace * This, - /* [retval][out] */ long *MaxChannelVal); - - -void __RPC_STUB IAnalogTVTuningSpace_get_MaxChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IAnalogTVTuningSpace_put_MaxChannel_Proxy( - IAnalogTVTuningSpace * This, - /* [in] */ long NewMaxChannelVal); - - -void __RPC_STUB IAnalogTVTuningSpace_put_MaxChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IAnalogTVTuningSpace_get_InputType_Proxy( - IAnalogTVTuningSpace * This, - /* [retval][out] */ TunerInputType *InputTypeVal); - - -void __RPC_STUB IAnalogTVTuningSpace_get_InputType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IAnalogTVTuningSpace_put_InputType_Proxy( - IAnalogTVTuningSpace * This, - /* [in] */ TunerInputType NewInputTypeVal); - - -void __RPC_STUB IAnalogTVTuningSpace_put_InputType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IAnalogTVTuningSpace_get_CountryCode_Proxy( - IAnalogTVTuningSpace * This, - /* [retval][out] */ long *CountryCodeVal); - - -void __RPC_STUB IAnalogTVTuningSpace_get_CountryCode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IAnalogTVTuningSpace_put_CountryCode_Proxy( - IAnalogTVTuningSpace * This, - /* [in] */ long NewCountryCodeVal); - - -void __RPC_STUB IAnalogTVTuningSpace_put_CountryCode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAnalogTVTuningSpace_INTERFACE_DEFINED__ */ - - -#ifndef __IATSCTuningSpace_INTERFACE_DEFINED__ -#define __IATSCTuningSpace_INTERFACE_DEFINED__ - -/* interface IATSCTuningSpace */ -/* [unique][uuid][nonextensible][oleautomation][dual][hidden][object] */ - - -EXTERN_C const IID IID_IATSCTuningSpace; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("0369B4E2-45B6-11d3-B650-00C04F79498E") - IATSCTuningSpace : public IAnalogTVTuningSpace - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinMinorChannel( - /* [retval][out] */ long *MinMinorChannelVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MinMinorChannel( - /* [in] */ long NewMinMinorChannelVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MaxMinorChannel( - /* [retval][out] */ long *MaxMinorChannelVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MaxMinorChannel( - /* [in] */ long NewMaxMinorChannelVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinPhysicalChannel( - /* [retval][out] */ long *MinPhysicalChannelVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MinPhysicalChannel( - /* [in] */ long NewMinPhysicalChannelVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MaxPhysicalChannel( - /* [retval][out] */ long *MaxPhysicalChannelVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MaxPhysicalChannel( - /* [in] */ long NewMaxPhysicalChannelVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IATSCTuningSpaceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IATSCTuningSpace * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IATSCTuningSpace * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IATSCTuningSpace * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IATSCTuningSpace * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IATSCTuningSpace * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IATSCTuningSpace * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IATSCTuningSpace * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( - IATSCTuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UniqueName )( - IATSCTuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( - IATSCTuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FriendlyName )( - IATSCTuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CLSID )( - IATSCTuningSpace * This, - /* [retval][out] */ BSTR *SpaceCLSID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkType )( - IATSCTuningSpace * This, - /* [retval][out] */ BSTR *NetworkTypeGuid); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkType )( - IATSCTuningSpace * This, - /* [in] */ BSTR NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NetworkType )( - IATSCTuningSpace * This, - /* [retval][out] */ GUID *NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__NetworkType )( - IATSCTuningSpace * This, - /* [in] */ REFCLSID NetworkTypeGuid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTuneRequest )( - IATSCTuningSpace * This, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumCategoryGUIDs )( - IATSCTuningSpace * This, - /* [retval][out] */ IEnumGUID **ppEnum); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumDeviceMonikers )( - IATSCTuningSpace * This, - /* [retval][out] */ IEnumMoniker **ppEnum); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultPreferredComponentTypes )( - IATSCTuningSpace * This, - /* [retval][out] */ IComponentTypes **ComponentTypes); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultPreferredComponentTypes )( - IATSCTuningSpace * This, - /* [in] */ IComponentTypes *NewComponentTypes); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FrequencyMapping )( - IATSCTuningSpace * This, - /* [retval][out] */ BSTR *pMapping); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FrequencyMapping )( - IATSCTuningSpace * This, - BSTR Mapping); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultLocator )( - IATSCTuningSpace * This, - /* [retval][out] */ ILocator **LocatorVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultLocator )( - IATSCTuningSpace * This, - /* [in] */ ILocator *LocatorVal); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IATSCTuningSpace * This, - /* [retval][out] */ ITuningSpace **NewTS); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinChannel )( - IATSCTuningSpace * This, - /* [retval][out] */ long *MinChannelVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MinChannel )( - IATSCTuningSpace * This, - /* [in] */ long NewMinChannelVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxChannel )( - IATSCTuningSpace * This, - /* [retval][out] */ long *MaxChannelVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxChannel )( - IATSCTuningSpace * This, - /* [in] */ long NewMaxChannelVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputType )( - IATSCTuningSpace * This, - /* [retval][out] */ TunerInputType *InputTypeVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InputType )( - IATSCTuningSpace * This, - /* [in] */ TunerInputType NewInputTypeVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CountryCode )( - IATSCTuningSpace * This, - /* [retval][out] */ long *CountryCodeVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CountryCode )( - IATSCTuningSpace * This, - /* [in] */ long NewCountryCodeVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinMinorChannel )( - IATSCTuningSpace * This, - /* [retval][out] */ long *MinMinorChannelVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MinMinorChannel )( - IATSCTuningSpace * This, - /* [in] */ long NewMinMinorChannelVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxMinorChannel )( - IATSCTuningSpace * This, - /* [retval][out] */ long *MaxMinorChannelVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxMinorChannel )( - IATSCTuningSpace * This, - /* [in] */ long NewMaxMinorChannelVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinPhysicalChannel )( - IATSCTuningSpace * This, - /* [retval][out] */ long *MinPhysicalChannelVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MinPhysicalChannel )( - IATSCTuningSpace * This, - /* [in] */ long NewMinPhysicalChannelVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxPhysicalChannel )( - IATSCTuningSpace * This, - /* [retval][out] */ long *MaxPhysicalChannelVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxPhysicalChannel )( - IATSCTuningSpace * This, - /* [in] */ long NewMaxPhysicalChannelVal); - - END_INTERFACE - } IATSCTuningSpaceVtbl; - - interface IATSCTuningSpace - { - CONST_VTBL struct IATSCTuningSpaceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IATSCTuningSpace_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IATSCTuningSpace_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IATSCTuningSpace_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IATSCTuningSpace_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IATSCTuningSpace_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IATSCTuningSpace_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IATSCTuningSpace_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IATSCTuningSpace_get_UniqueName(This,Name) \ - (This)->lpVtbl -> get_UniqueName(This,Name) - -#define IATSCTuningSpace_put_UniqueName(This,Name) \ - (This)->lpVtbl -> put_UniqueName(This,Name) - -#define IATSCTuningSpace_get_FriendlyName(This,Name) \ - (This)->lpVtbl -> get_FriendlyName(This,Name) - -#define IATSCTuningSpace_put_FriendlyName(This,Name) \ - (This)->lpVtbl -> put_FriendlyName(This,Name) - -#define IATSCTuningSpace_get_CLSID(This,SpaceCLSID) \ - (This)->lpVtbl -> get_CLSID(This,SpaceCLSID) - -#define IATSCTuningSpace_get_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get_NetworkType(This,NetworkTypeGuid) - -#define IATSCTuningSpace_put_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put_NetworkType(This,NetworkTypeGuid) - -#define IATSCTuningSpace_get__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get__NetworkType(This,NetworkTypeGuid) - -#define IATSCTuningSpace_put__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put__NetworkType(This,NetworkTypeGuid) - -#define IATSCTuningSpace_CreateTuneRequest(This,TuneRequest) \ - (This)->lpVtbl -> CreateTuneRequest(This,TuneRequest) - -#define IATSCTuningSpace_EnumCategoryGUIDs(This,ppEnum) \ - (This)->lpVtbl -> EnumCategoryGUIDs(This,ppEnum) - -#define IATSCTuningSpace_EnumDeviceMonikers(This,ppEnum) \ - (This)->lpVtbl -> EnumDeviceMonikers(This,ppEnum) - -#define IATSCTuningSpace_get_DefaultPreferredComponentTypes(This,ComponentTypes) \ - (This)->lpVtbl -> get_DefaultPreferredComponentTypes(This,ComponentTypes) - -#define IATSCTuningSpace_put_DefaultPreferredComponentTypes(This,NewComponentTypes) \ - (This)->lpVtbl -> put_DefaultPreferredComponentTypes(This,NewComponentTypes) - -#define IATSCTuningSpace_get_FrequencyMapping(This,pMapping) \ - (This)->lpVtbl -> get_FrequencyMapping(This,pMapping) - -#define IATSCTuningSpace_put_FrequencyMapping(This,Mapping) \ - (This)->lpVtbl -> put_FrequencyMapping(This,Mapping) - -#define IATSCTuningSpace_get_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> get_DefaultLocator(This,LocatorVal) - -#define IATSCTuningSpace_put_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> put_DefaultLocator(This,LocatorVal) - -#define IATSCTuningSpace_Clone(This,NewTS) \ - (This)->lpVtbl -> Clone(This,NewTS) - - -#define IATSCTuningSpace_get_MinChannel(This,MinChannelVal) \ - (This)->lpVtbl -> get_MinChannel(This,MinChannelVal) - -#define IATSCTuningSpace_put_MinChannel(This,NewMinChannelVal) \ - (This)->lpVtbl -> put_MinChannel(This,NewMinChannelVal) - -#define IATSCTuningSpace_get_MaxChannel(This,MaxChannelVal) \ - (This)->lpVtbl -> get_MaxChannel(This,MaxChannelVal) - -#define IATSCTuningSpace_put_MaxChannel(This,NewMaxChannelVal) \ - (This)->lpVtbl -> put_MaxChannel(This,NewMaxChannelVal) - -#define IATSCTuningSpace_get_InputType(This,InputTypeVal) \ - (This)->lpVtbl -> get_InputType(This,InputTypeVal) - -#define IATSCTuningSpace_put_InputType(This,NewInputTypeVal) \ - (This)->lpVtbl -> put_InputType(This,NewInputTypeVal) - -#define IATSCTuningSpace_get_CountryCode(This,CountryCodeVal) \ - (This)->lpVtbl -> get_CountryCode(This,CountryCodeVal) - -#define IATSCTuningSpace_put_CountryCode(This,NewCountryCodeVal) \ - (This)->lpVtbl -> put_CountryCode(This,NewCountryCodeVal) - - -#define IATSCTuningSpace_get_MinMinorChannel(This,MinMinorChannelVal) \ - (This)->lpVtbl -> get_MinMinorChannel(This,MinMinorChannelVal) - -#define IATSCTuningSpace_put_MinMinorChannel(This,NewMinMinorChannelVal) \ - (This)->lpVtbl -> put_MinMinorChannel(This,NewMinMinorChannelVal) - -#define IATSCTuningSpace_get_MaxMinorChannel(This,MaxMinorChannelVal) \ - (This)->lpVtbl -> get_MaxMinorChannel(This,MaxMinorChannelVal) - -#define IATSCTuningSpace_put_MaxMinorChannel(This,NewMaxMinorChannelVal) \ - (This)->lpVtbl -> put_MaxMinorChannel(This,NewMaxMinorChannelVal) - -#define IATSCTuningSpace_get_MinPhysicalChannel(This,MinPhysicalChannelVal) \ - (This)->lpVtbl -> get_MinPhysicalChannel(This,MinPhysicalChannelVal) - -#define IATSCTuningSpace_put_MinPhysicalChannel(This,NewMinPhysicalChannelVal) \ - (This)->lpVtbl -> put_MinPhysicalChannel(This,NewMinPhysicalChannelVal) - -#define IATSCTuningSpace_get_MaxPhysicalChannel(This,MaxPhysicalChannelVal) \ - (This)->lpVtbl -> get_MaxPhysicalChannel(This,MaxPhysicalChannelVal) - -#define IATSCTuningSpace_put_MaxPhysicalChannel(This,NewMaxPhysicalChannelVal) \ - (This)->lpVtbl -> put_MaxPhysicalChannel(This,NewMaxPhysicalChannelVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IATSCTuningSpace_get_MinMinorChannel_Proxy( - IATSCTuningSpace * This, - /* [retval][out] */ long *MinMinorChannelVal); - - -void __RPC_STUB IATSCTuningSpace_get_MinMinorChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IATSCTuningSpace_put_MinMinorChannel_Proxy( - IATSCTuningSpace * This, - /* [in] */ long NewMinMinorChannelVal); - - -void __RPC_STUB IATSCTuningSpace_put_MinMinorChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IATSCTuningSpace_get_MaxMinorChannel_Proxy( - IATSCTuningSpace * This, - /* [retval][out] */ long *MaxMinorChannelVal); - - -void __RPC_STUB IATSCTuningSpace_get_MaxMinorChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IATSCTuningSpace_put_MaxMinorChannel_Proxy( - IATSCTuningSpace * This, - /* [in] */ long NewMaxMinorChannelVal); - - -void __RPC_STUB IATSCTuningSpace_put_MaxMinorChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IATSCTuningSpace_get_MinPhysicalChannel_Proxy( - IATSCTuningSpace * This, - /* [retval][out] */ long *MinPhysicalChannelVal); - - -void __RPC_STUB IATSCTuningSpace_get_MinPhysicalChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IATSCTuningSpace_put_MinPhysicalChannel_Proxy( - IATSCTuningSpace * This, - /* [in] */ long NewMinPhysicalChannelVal); - - -void __RPC_STUB IATSCTuningSpace_put_MinPhysicalChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IATSCTuningSpace_get_MaxPhysicalChannel_Proxy( - IATSCTuningSpace * This, - /* [retval][out] */ long *MaxPhysicalChannelVal); - - -void __RPC_STUB IATSCTuningSpace_get_MaxPhysicalChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IATSCTuningSpace_put_MaxPhysicalChannel_Proxy( - IATSCTuningSpace * This, - /* [in] */ long NewMaxPhysicalChannelVal); - - -void __RPC_STUB IATSCTuningSpace_put_MaxPhysicalChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IATSCTuningSpace_INTERFACE_DEFINED__ */ - - -#ifndef __IAnalogRadioTuningSpace_INTERFACE_DEFINED__ -#define __IAnalogRadioTuningSpace_INTERFACE_DEFINED__ - -/* interface IAnalogRadioTuningSpace */ -/* [unique][uuid][nonextensible][oleautomation][dual][hidden][object] */ - - -EXTERN_C const IID IID_IAnalogRadioTuningSpace; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("2A6E293B-2595-11d3-B64C-00C04F79498E") - IAnalogRadioTuningSpace : public ITuningSpace - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinFrequency( - /* [retval][out] */ long *MinFrequencyVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MinFrequency( - /* [in] */ long NewMinFrequencyVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MaxFrequency( - /* [retval][out] */ long *MaxFrequencyVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MaxFrequency( - /* [in] */ long NewMaxFrequencyVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Step( - /* [retval][out] */ long *StepVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Step( - /* [in] */ long NewStepVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAnalogRadioTuningSpaceVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAnalogRadioTuningSpace * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAnalogRadioTuningSpace * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAnalogRadioTuningSpace * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IAnalogRadioTuningSpace * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IAnalogRadioTuningSpace * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IAnalogRadioTuningSpace * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IAnalogRadioTuningSpace * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UniqueName )( - IAnalogRadioTuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ BSTR *Name); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FriendlyName )( - IAnalogRadioTuningSpace * This, - /* [in] */ BSTR Name); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CLSID )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ BSTR *SpaceCLSID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkType )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ BSTR *NetworkTypeGuid); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkType )( - IAnalogRadioTuningSpace * This, - /* [in] */ BSTR NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NetworkType )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ GUID *NetworkTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__NetworkType )( - IAnalogRadioTuningSpace * This, - /* [in] */ REFCLSID NetworkTypeGuid); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTuneRequest )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumCategoryGUIDs )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ IEnumGUID **ppEnum); - - /* [restricted][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumDeviceMonikers )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ IEnumMoniker **ppEnum); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultPreferredComponentTypes )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ IComponentTypes **ComponentTypes); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultPreferredComponentTypes )( - IAnalogRadioTuningSpace * This, - /* [in] */ IComponentTypes *NewComponentTypes); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FrequencyMapping )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ BSTR *pMapping); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FrequencyMapping )( - IAnalogRadioTuningSpace * This, - BSTR Mapping); - - /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultLocator )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ ILocator **LocatorVal); - - /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultLocator )( - IAnalogRadioTuningSpace * This, - /* [in] */ ILocator *LocatorVal); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ ITuningSpace **NewTS); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinFrequency )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ long *MinFrequencyVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MinFrequency )( - IAnalogRadioTuningSpace * This, - /* [in] */ long NewMinFrequencyVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxFrequency )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ long *MaxFrequencyVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxFrequency )( - IAnalogRadioTuningSpace * This, - /* [in] */ long NewMaxFrequencyVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Step )( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ long *StepVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Step )( - IAnalogRadioTuningSpace * This, - /* [in] */ long NewStepVal); - - END_INTERFACE - } IAnalogRadioTuningSpaceVtbl; - - interface IAnalogRadioTuningSpace - { - CONST_VTBL struct IAnalogRadioTuningSpaceVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAnalogRadioTuningSpace_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAnalogRadioTuningSpace_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAnalogRadioTuningSpace_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAnalogRadioTuningSpace_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IAnalogRadioTuningSpace_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IAnalogRadioTuningSpace_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IAnalogRadioTuningSpace_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IAnalogRadioTuningSpace_get_UniqueName(This,Name) \ - (This)->lpVtbl -> get_UniqueName(This,Name) - -#define IAnalogRadioTuningSpace_put_UniqueName(This,Name) \ - (This)->lpVtbl -> put_UniqueName(This,Name) - -#define IAnalogRadioTuningSpace_get_FriendlyName(This,Name) \ - (This)->lpVtbl -> get_FriendlyName(This,Name) - -#define IAnalogRadioTuningSpace_put_FriendlyName(This,Name) \ - (This)->lpVtbl -> put_FriendlyName(This,Name) - -#define IAnalogRadioTuningSpace_get_CLSID(This,SpaceCLSID) \ - (This)->lpVtbl -> get_CLSID(This,SpaceCLSID) - -#define IAnalogRadioTuningSpace_get_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get_NetworkType(This,NetworkTypeGuid) - -#define IAnalogRadioTuningSpace_put_NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put_NetworkType(This,NetworkTypeGuid) - -#define IAnalogRadioTuningSpace_get__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> get__NetworkType(This,NetworkTypeGuid) - -#define IAnalogRadioTuningSpace_put__NetworkType(This,NetworkTypeGuid) \ - (This)->lpVtbl -> put__NetworkType(This,NetworkTypeGuid) - -#define IAnalogRadioTuningSpace_CreateTuneRequest(This,TuneRequest) \ - (This)->lpVtbl -> CreateTuneRequest(This,TuneRequest) - -#define IAnalogRadioTuningSpace_EnumCategoryGUIDs(This,ppEnum) \ - (This)->lpVtbl -> EnumCategoryGUIDs(This,ppEnum) - -#define IAnalogRadioTuningSpace_EnumDeviceMonikers(This,ppEnum) \ - (This)->lpVtbl -> EnumDeviceMonikers(This,ppEnum) - -#define IAnalogRadioTuningSpace_get_DefaultPreferredComponentTypes(This,ComponentTypes) \ - (This)->lpVtbl -> get_DefaultPreferredComponentTypes(This,ComponentTypes) - -#define IAnalogRadioTuningSpace_put_DefaultPreferredComponentTypes(This,NewComponentTypes) \ - (This)->lpVtbl -> put_DefaultPreferredComponentTypes(This,NewComponentTypes) - -#define IAnalogRadioTuningSpace_get_FrequencyMapping(This,pMapping) \ - (This)->lpVtbl -> get_FrequencyMapping(This,pMapping) - -#define IAnalogRadioTuningSpace_put_FrequencyMapping(This,Mapping) \ - (This)->lpVtbl -> put_FrequencyMapping(This,Mapping) - -#define IAnalogRadioTuningSpace_get_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> get_DefaultLocator(This,LocatorVal) - -#define IAnalogRadioTuningSpace_put_DefaultLocator(This,LocatorVal) \ - (This)->lpVtbl -> put_DefaultLocator(This,LocatorVal) - -#define IAnalogRadioTuningSpace_Clone(This,NewTS) \ - (This)->lpVtbl -> Clone(This,NewTS) - - -#define IAnalogRadioTuningSpace_get_MinFrequency(This,MinFrequencyVal) \ - (This)->lpVtbl -> get_MinFrequency(This,MinFrequencyVal) - -#define IAnalogRadioTuningSpace_put_MinFrequency(This,NewMinFrequencyVal) \ - (This)->lpVtbl -> put_MinFrequency(This,NewMinFrequencyVal) - -#define IAnalogRadioTuningSpace_get_MaxFrequency(This,MaxFrequencyVal) \ - (This)->lpVtbl -> get_MaxFrequency(This,MaxFrequencyVal) - -#define IAnalogRadioTuningSpace_put_MaxFrequency(This,NewMaxFrequencyVal) \ - (This)->lpVtbl -> put_MaxFrequency(This,NewMaxFrequencyVal) - -#define IAnalogRadioTuningSpace_get_Step(This,StepVal) \ - (This)->lpVtbl -> get_Step(This,StepVal) - -#define IAnalogRadioTuningSpace_put_Step(This,NewStepVal) \ - (This)->lpVtbl -> put_Step(This,NewStepVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IAnalogRadioTuningSpace_get_MinFrequency_Proxy( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ long *MinFrequencyVal); - - -void __RPC_STUB IAnalogRadioTuningSpace_get_MinFrequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IAnalogRadioTuningSpace_put_MinFrequency_Proxy( - IAnalogRadioTuningSpace * This, - /* [in] */ long NewMinFrequencyVal); - - -void __RPC_STUB IAnalogRadioTuningSpace_put_MinFrequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IAnalogRadioTuningSpace_get_MaxFrequency_Proxy( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ long *MaxFrequencyVal); - - -void __RPC_STUB IAnalogRadioTuningSpace_get_MaxFrequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IAnalogRadioTuningSpace_put_MaxFrequency_Proxy( - IAnalogRadioTuningSpace * This, - /* [in] */ long NewMaxFrequencyVal); - - -void __RPC_STUB IAnalogRadioTuningSpace_put_MaxFrequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IAnalogRadioTuningSpace_get_Step_Proxy( - IAnalogRadioTuningSpace * This, - /* [retval][out] */ long *StepVal); - - -void __RPC_STUB IAnalogRadioTuningSpace_get_Step_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IAnalogRadioTuningSpace_put_Step_Proxy( - IAnalogRadioTuningSpace * This, - /* [in] */ long NewStepVal); - - -void __RPC_STUB IAnalogRadioTuningSpace_put_Step_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAnalogRadioTuningSpace_INTERFACE_DEFINED__ */ - - -#ifndef __ITuneRequest_INTERFACE_DEFINED__ -#define __ITuneRequest_INTERFACE_DEFINED__ - -/* interface ITuneRequest */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][object] */ - - -EXTERN_C const IID IID_ITuneRequest; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("07DDC146-FC3D-11d2-9D8C-00C04F72D980") - ITuneRequest : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TuningSpace( - /* [retval][out] */ ITuningSpace **TuningSpace) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Components( - /* [retval][out] */ IComponents **Components) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clone( - /* [retval][out] */ ITuneRequest **NewTuneRequest) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Locator( - /* [retval][out] */ ILocator **Locator) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Locator( - /* [in] */ ILocator *Locator) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITuneRequestVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITuneRequest * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITuneRequest * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITuneRequest * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ITuneRequest * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ITuneRequest * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ITuneRequest * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ITuneRequest * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TuningSpace )( - ITuneRequest * This, - /* [retval][out] */ ITuningSpace **TuningSpace); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Components )( - ITuneRequest * This, - /* [retval][out] */ IComponents **Components); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - ITuneRequest * This, - /* [retval][out] */ ITuneRequest **NewTuneRequest); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Locator )( - ITuneRequest * This, - /* [retval][out] */ ILocator **Locator); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Locator )( - ITuneRequest * This, - /* [in] */ ILocator *Locator); - - END_INTERFACE - } ITuneRequestVtbl; - - interface ITuneRequest - { - CONST_VTBL struct ITuneRequestVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITuneRequest_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITuneRequest_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITuneRequest_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITuneRequest_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ITuneRequest_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ITuneRequest_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ITuneRequest_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ITuneRequest_get_TuningSpace(This,TuningSpace) \ - (This)->lpVtbl -> get_TuningSpace(This,TuningSpace) - -#define ITuneRequest_get_Components(This,Components) \ - (This)->lpVtbl -> get_Components(This,Components) - -#define ITuneRequest_Clone(This,NewTuneRequest) \ - (This)->lpVtbl -> Clone(This,NewTuneRequest) - -#define ITuneRequest_get_Locator(This,Locator) \ - (This)->lpVtbl -> get_Locator(This,Locator) - -#define ITuneRequest_put_Locator(This,Locator) \ - (This)->lpVtbl -> put_Locator(This,Locator) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITuneRequest_get_TuningSpace_Proxy( - ITuneRequest * This, - /* [retval][out] */ ITuningSpace **TuningSpace); - - -void __RPC_STUB ITuneRequest_get_TuningSpace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITuneRequest_get_Components_Proxy( - ITuneRequest * This, - /* [retval][out] */ IComponents **Components); - - -void __RPC_STUB ITuneRequest_get_Components_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITuneRequest_Clone_Proxy( - ITuneRequest * This, - /* [retval][out] */ ITuneRequest **NewTuneRequest); - - -void __RPC_STUB ITuneRequest_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITuneRequest_get_Locator_Proxy( - ITuneRequest * This, - /* [retval][out] */ ILocator **Locator); - - -void __RPC_STUB ITuneRequest_get_Locator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITuneRequest_put_Locator_Proxy( - ITuneRequest * This, - /* [in] */ ILocator *Locator); - - -void __RPC_STUB ITuneRequest_put_Locator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITuneRequest_INTERFACE_DEFINED__ */ - - -#ifndef __IChannelTuneRequest_INTERFACE_DEFINED__ -#define __IChannelTuneRequest_INTERFACE_DEFINED__ - -/* interface IChannelTuneRequest */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][object] */ - - -EXTERN_C const IID IID_IChannelTuneRequest; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("0369B4E0-45B6-11d3-B650-00C04F79498E") - IChannelTuneRequest : public ITuneRequest - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Channel( - /* [retval][out] */ long *Channel) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Channel( - /* [in] */ long Channel) = 0; - - }; - -#else /* C style interface */ - - typedef struct IChannelTuneRequestVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IChannelTuneRequest * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IChannelTuneRequest * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IChannelTuneRequest * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IChannelTuneRequest * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IChannelTuneRequest * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IChannelTuneRequest * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IChannelTuneRequest * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TuningSpace )( - IChannelTuneRequest * This, - /* [retval][out] */ ITuningSpace **TuningSpace); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Components )( - IChannelTuneRequest * This, - /* [retval][out] */ IComponents **Components); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IChannelTuneRequest * This, - /* [retval][out] */ ITuneRequest **NewTuneRequest); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Locator )( - IChannelTuneRequest * This, - /* [retval][out] */ ILocator **Locator); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Locator )( - IChannelTuneRequest * This, - /* [in] */ ILocator *Locator); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Channel )( - IChannelTuneRequest * This, - /* [retval][out] */ long *Channel); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Channel )( - IChannelTuneRequest * This, - /* [in] */ long Channel); - - END_INTERFACE - } IChannelTuneRequestVtbl; - - interface IChannelTuneRequest - { - CONST_VTBL struct IChannelTuneRequestVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IChannelTuneRequest_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IChannelTuneRequest_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IChannelTuneRequest_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IChannelTuneRequest_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IChannelTuneRequest_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IChannelTuneRequest_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IChannelTuneRequest_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IChannelTuneRequest_get_TuningSpace(This,TuningSpace) \ - (This)->lpVtbl -> get_TuningSpace(This,TuningSpace) - -#define IChannelTuneRequest_get_Components(This,Components) \ - (This)->lpVtbl -> get_Components(This,Components) - -#define IChannelTuneRequest_Clone(This,NewTuneRequest) \ - (This)->lpVtbl -> Clone(This,NewTuneRequest) - -#define IChannelTuneRequest_get_Locator(This,Locator) \ - (This)->lpVtbl -> get_Locator(This,Locator) - -#define IChannelTuneRequest_put_Locator(This,Locator) \ - (This)->lpVtbl -> put_Locator(This,Locator) - - -#define IChannelTuneRequest_get_Channel(This,Channel) \ - (This)->lpVtbl -> get_Channel(This,Channel) - -#define IChannelTuneRequest_put_Channel(This,Channel) \ - (This)->lpVtbl -> put_Channel(This,Channel) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IChannelTuneRequest_get_Channel_Proxy( - IChannelTuneRequest * This, - /* [retval][out] */ long *Channel); - - -void __RPC_STUB IChannelTuneRequest_get_Channel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IChannelTuneRequest_put_Channel_Proxy( - IChannelTuneRequest * This, - /* [in] */ long Channel); - - -void __RPC_STUB IChannelTuneRequest_put_Channel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IChannelTuneRequest_INTERFACE_DEFINED__ */ - - -#ifndef __IATSCChannelTuneRequest_INTERFACE_DEFINED__ -#define __IATSCChannelTuneRequest_INTERFACE_DEFINED__ - -/* interface IATSCChannelTuneRequest */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][object] */ - - -EXTERN_C const IID IID_IATSCChannelTuneRequest; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("0369B4E1-45B6-11d3-B650-00C04F79498E") - IATSCChannelTuneRequest : public IChannelTuneRequest - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinorChannel( - /* [retval][out] */ long *MinorChannel) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MinorChannel( - /* [in] */ long MinorChannel) = 0; - - }; - -#else /* C style interface */ - - typedef struct IATSCChannelTuneRequestVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IATSCChannelTuneRequest * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IATSCChannelTuneRequest * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IATSCChannelTuneRequest * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IATSCChannelTuneRequest * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IATSCChannelTuneRequest * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IATSCChannelTuneRequest * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IATSCChannelTuneRequest * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TuningSpace )( - IATSCChannelTuneRequest * This, - /* [retval][out] */ ITuningSpace **TuningSpace); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Components )( - IATSCChannelTuneRequest * This, - /* [retval][out] */ IComponents **Components); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IATSCChannelTuneRequest * This, - /* [retval][out] */ ITuneRequest **NewTuneRequest); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Locator )( - IATSCChannelTuneRequest * This, - /* [retval][out] */ ILocator **Locator); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Locator )( - IATSCChannelTuneRequest * This, - /* [in] */ ILocator *Locator); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Channel )( - IATSCChannelTuneRequest * This, - /* [retval][out] */ long *Channel); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Channel )( - IATSCChannelTuneRequest * This, - /* [in] */ long Channel); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinorChannel )( - IATSCChannelTuneRequest * This, - /* [retval][out] */ long *MinorChannel); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MinorChannel )( - IATSCChannelTuneRequest * This, - /* [in] */ long MinorChannel); - - END_INTERFACE - } IATSCChannelTuneRequestVtbl; - - interface IATSCChannelTuneRequest - { - CONST_VTBL struct IATSCChannelTuneRequestVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IATSCChannelTuneRequest_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IATSCChannelTuneRequest_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IATSCChannelTuneRequest_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IATSCChannelTuneRequest_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IATSCChannelTuneRequest_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IATSCChannelTuneRequest_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IATSCChannelTuneRequest_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IATSCChannelTuneRequest_get_TuningSpace(This,TuningSpace) \ - (This)->lpVtbl -> get_TuningSpace(This,TuningSpace) - -#define IATSCChannelTuneRequest_get_Components(This,Components) \ - (This)->lpVtbl -> get_Components(This,Components) - -#define IATSCChannelTuneRequest_Clone(This,NewTuneRequest) \ - (This)->lpVtbl -> Clone(This,NewTuneRequest) - -#define IATSCChannelTuneRequest_get_Locator(This,Locator) \ - (This)->lpVtbl -> get_Locator(This,Locator) - -#define IATSCChannelTuneRequest_put_Locator(This,Locator) \ - (This)->lpVtbl -> put_Locator(This,Locator) - - -#define IATSCChannelTuneRequest_get_Channel(This,Channel) \ - (This)->lpVtbl -> get_Channel(This,Channel) - -#define IATSCChannelTuneRequest_put_Channel(This,Channel) \ - (This)->lpVtbl -> put_Channel(This,Channel) - - -#define IATSCChannelTuneRequest_get_MinorChannel(This,MinorChannel) \ - (This)->lpVtbl -> get_MinorChannel(This,MinorChannel) - -#define IATSCChannelTuneRequest_put_MinorChannel(This,MinorChannel) \ - (This)->lpVtbl -> put_MinorChannel(This,MinorChannel) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IATSCChannelTuneRequest_get_MinorChannel_Proxy( - IATSCChannelTuneRequest * This, - /* [retval][out] */ long *MinorChannel); - - -void __RPC_STUB IATSCChannelTuneRequest_get_MinorChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IATSCChannelTuneRequest_put_MinorChannel_Proxy( - IATSCChannelTuneRequest * This, - /* [in] */ long MinorChannel); - - -void __RPC_STUB IATSCChannelTuneRequest_put_MinorChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IATSCChannelTuneRequest_INTERFACE_DEFINED__ */ - - -#ifndef __IDVBTuneRequest_INTERFACE_DEFINED__ -#define __IDVBTuneRequest_INTERFACE_DEFINED__ - -/* interface IDVBTuneRequest */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][object] */ - - -EXTERN_C const IID IID_IDVBTuneRequest; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("0D6F567E-A636-42bb-83BA-CE4C1704AFA2") - IDVBTuneRequest : public ITuneRequest - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ONID( - /* [retval][out] */ long *ONID) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ONID( - /* [in] */ long ONID) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TSID( - /* [retval][out] */ long *TSID) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_TSID( - /* [in] */ long TSID) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SID( - /* [retval][out] */ long *SID) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SID( - /* [in] */ long SID) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDVBTuneRequestVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDVBTuneRequest * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDVBTuneRequest * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDVBTuneRequest * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDVBTuneRequest * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDVBTuneRequest * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDVBTuneRequest * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDVBTuneRequest * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TuningSpace )( - IDVBTuneRequest * This, - /* [retval][out] */ ITuningSpace **TuningSpace); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Components )( - IDVBTuneRequest * This, - /* [retval][out] */ IComponents **Components); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IDVBTuneRequest * This, - /* [retval][out] */ ITuneRequest **NewTuneRequest); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Locator )( - IDVBTuneRequest * This, - /* [retval][out] */ ILocator **Locator); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Locator )( - IDVBTuneRequest * This, - /* [in] */ ILocator *Locator); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ONID )( - IDVBTuneRequest * This, - /* [retval][out] */ long *ONID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ONID )( - IDVBTuneRequest * This, - /* [in] */ long ONID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( - IDVBTuneRequest * This, - /* [retval][out] */ long *TSID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TSID )( - IDVBTuneRequest * This, - /* [in] */ long TSID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SID )( - IDVBTuneRequest * This, - /* [retval][out] */ long *SID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SID )( - IDVBTuneRequest * This, - /* [in] */ long SID); - - END_INTERFACE - } IDVBTuneRequestVtbl; - - interface IDVBTuneRequest - { - CONST_VTBL struct IDVBTuneRequestVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDVBTuneRequest_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDVBTuneRequest_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDVBTuneRequest_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDVBTuneRequest_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDVBTuneRequest_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDVBTuneRequest_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDVBTuneRequest_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDVBTuneRequest_get_TuningSpace(This,TuningSpace) \ - (This)->lpVtbl -> get_TuningSpace(This,TuningSpace) - -#define IDVBTuneRequest_get_Components(This,Components) \ - (This)->lpVtbl -> get_Components(This,Components) - -#define IDVBTuneRequest_Clone(This,NewTuneRequest) \ - (This)->lpVtbl -> Clone(This,NewTuneRequest) - -#define IDVBTuneRequest_get_Locator(This,Locator) \ - (This)->lpVtbl -> get_Locator(This,Locator) - -#define IDVBTuneRequest_put_Locator(This,Locator) \ - (This)->lpVtbl -> put_Locator(This,Locator) - - -#define IDVBTuneRequest_get_ONID(This,ONID) \ - (This)->lpVtbl -> get_ONID(This,ONID) - -#define IDVBTuneRequest_put_ONID(This,ONID) \ - (This)->lpVtbl -> put_ONID(This,ONID) - -#define IDVBTuneRequest_get_TSID(This,TSID) \ - (This)->lpVtbl -> get_TSID(This,TSID) - -#define IDVBTuneRequest_put_TSID(This,TSID) \ - (This)->lpVtbl -> put_TSID(This,TSID) - -#define IDVBTuneRequest_get_SID(This,SID) \ - (This)->lpVtbl -> get_SID(This,SID) - -#define IDVBTuneRequest_put_SID(This,SID) \ - (This)->lpVtbl -> put_SID(This,SID) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBTuneRequest_get_ONID_Proxy( - IDVBTuneRequest * This, - /* [retval][out] */ long *ONID); - - -void __RPC_STUB IDVBTuneRequest_get_ONID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBTuneRequest_put_ONID_Proxy( - IDVBTuneRequest * This, - /* [in] */ long ONID); - - -void __RPC_STUB IDVBTuneRequest_put_ONID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBTuneRequest_get_TSID_Proxy( - IDVBTuneRequest * This, - /* [retval][out] */ long *TSID); - - -void __RPC_STUB IDVBTuneRequest_get_TSID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBTuneRequest_put_TSID_Proxy( - IDVBTuneRequest * This, - /* [in] */ long TSID); - - -void __RPC_STUB IDVBTuneRequest_put_TSID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBTuneRequest_get_SID_Proxy( - IDVBTuneRequest * This, - /* [retval][out] */ long *SID); - - -void __RPC_STUB IDVBTuneRequest_get_SID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBTuneRequest_put_SID_Proxy( - IDVBTuneRequest * This, - /* [in] */ long SID); - - -void __RPC_STUB IDVBTuneRequest_put_SID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDVBTuneRequest_INTERFACE_DEFINED__ */ - - -#ifndef __IMPEG2TuneRequest_INTERFACE_DEFINED__ -#define __IMPEG2TuneRequest_INTERFACE_DEFINED__ - -/* interface IMPEG2TuneRequest */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][object] */ - - -EXTERN_C const IID IID_IMPEG2TuneRequest; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("EB7D987F-8A01-42ad-B8AE-574DEEE44D1A") - IMPEG2TuneRequest : public ITuneRequest - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TSID( - /* [retval][out] */ long *TSID) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_TSID( - /* [in] */ long TSID) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProgNo( - /* [retval][out] */ long *ProgNo) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ProgNo( - /* [in] */ long ProgNo) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMPEG2TuneRequestVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMPEG2TuneRequest * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMPEG2TuneRequest * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMPEG2TuneRequest * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMPEG2TuneRequest * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMPEG2TuneRequest * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMPEG2TuneRequest * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMPEG2TuneRequest * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TuningSpace )( - IMPEG2TuneRequest * This, - /* [retval][out] */ ITuningSpace **TuningSpace); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Components )( - IMPEG2TuneRequest * This, - /* [retval][out] */ IComponents **Components); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IMPEG2TuneRequest * This, - /* [retval][out] */ ITuneRequest **NewTuneRequest); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Locator )( - IMPEG2TuneRequest * This, - /* [retval][out] */ ILocator **Locator); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Locator )( - IMPEG2TuneRequest * This, - /* [in] */ ILocator *Locator); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( - IMPEG2TuneRequest * This, - /* [retval][out] */ long *TSID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TSID )( - IMPEG2TuneRequest * This, - /* [in] */ long TSID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgNo )( - IMPEG2TuneRequest * This, - /* [retval][out] */ long *ProgNo); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ProgNo )( - IMPEG2TuneRequest * This, - /* [in] */ long ProgNo); - - END_INTERFACE - } IMPEG2TuneRequestVtbl; - - interface IMPEG2TuneRequest - { - CONST_VTBL struct IMPEG2TuneRequestVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMPEG2TuneRequest_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMPEG2TuneRequest_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMPEG2TuneRequest_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMPEG2TuneRequest_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMPEG2TuneRequest_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMPEG2TuneRequest_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMPEG2TuneRequest_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMPEG2TuneRequest_get_TuningSpace(This,TuningSpace) \ - (This)->lpVtbl -> get_TuningSpace(This,TuningSpace) - -#define IMPEG2TuneRequest_get_Components(This,Components) \ - (This)->lpVtbl -> get_Components(This,Components) - -#define IMPEG2TuneRequest_Clone(This,NewTuneRequest) \ - (This)->lpVtbl -> Clone(This,NewTuneRequest) - -#define IMPEG2TuneRequest_get_Locator(This,Locator) \ - (This)->lpVtbl -> get_Locator(This,Locator) - -#define IMPEG2TuneRequest_put_Locator(This,Locator) \ - (This)->lpVtbl -> put_Locator(This,Locator) - - -#define IMPEG2TuneRequest_get_TSID(This,TSID) \ - (This)->lpVtbl -> get_TSID(This,TSID) - -#define IMPEG2TuneRequest_put_TSID(This,TSID) \ - (This)->lpVtbl -> put_TSID(This,TSID) - -#define IMPEG2TuneRequest_get_ProgNo(This,ProgNo) \ - (This)->lpVtbl -> get_ProgNo(This,ProgNo) - -#define IMPEG2TuneRequest_put_ProgNo(This,ProgNo) \ - (This)->lpVtbl -> put_ProgNo(This,ProgNo) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMPEG2TuneRequest_get_TSID_Proxy( - IMPEG2TuneRequest * This, - /* [retval][out] */ long *TSID); - - -void __RPC_STUB IMPEG2TuneRequest_get_TSID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMPEG2TuneRequest_put_TSID_Proxy( - IMPEG2TuneRequest * This, - /* [in] */ long TSID); - - -void __RPC_STUB IMPEG2TuneRequest_put_TSID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMPEG2TuneRequest_get_ProgNo_Proxy( - IMPEG2TuneRequest * This, - /* [retval][out] */ long *ProgNo); - - -void __RPC_STUB IMPEG2TuneRequest_get_ProgNo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMPEG2TuneRequest_put_ProgNo_Proxy( - IMPEG2TuneRequest * This, - /* [in] */ long ProgNo); - - -void __RPC_STUB IMPEG2TuneRequest_put_ProgNo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMPEG2TuneRequest_INTERFACE_DEFINED__ */ - - -#ifndef __IMPEG2TuneRequestFactory_INTERFACE_DEFINED__ -#define __IMPEG2TuneRequestFactory_INTERFACE_DEFINED__ - -/* interface IMPEG2TuneRequestFactory */ -/* [unique][helpstring][oleautomation][dual][uuid][hidden][nonextensible][object] */ - - -EXTERN_C const IID IID_IMPEG2TuneRequestFactory; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("14E11ABD-EE37-4893-9EA1-6964DE933E39") - IMPEG2TuneRequestFactory : public IDispatch - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateTuneRequest( - /* [in] */ ITuningSpace *TuningSpace, - /* [retval][out] */ IMPEG2TuneRequest **TuneRequest) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMPEG2TuneRequestFactoryVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMPEG2TuneRequestFactory * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMPEG2TuneRequestFactory * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMPEG2TuneRequestFactory * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMPEG2TuneRequestFactory * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMPEG2TuneRequestFactory * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMPEG2TuneRequestFactory * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMPEG2TuneRequestFactory * 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); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTuneRequest )( - IMPEG2TuneRequestFactory * This, - /* [in] */ ITuningSpace *TuningSpace, - /* [retval][out] */ IMPEG2TuneRequest **TuneRequest); - - END_INTERFACE - } IMPEG2TuneRequestFactoryVtbl; - - interface IMPEG2TuneRequestFactory - { - CONST_VTBL struct IMPEG2TuneRequestFactoryVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMPEG2TuneRequestFactory_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMPEG2TuneRequestFactory_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMPEG2TuneRequestFactory_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMPEG2TuneRequestFactory_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMPEG2TuneRequestFactory_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMPEG2TuneRequestFactory_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMPEG2TuneRequestFactory_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMPEG2TuneRequestFactory_CreateTuneRequest(This,TuningSpace,TuneRequest) \ - (This)->lpVtbl -> CreateTuneRequest(This,TuningSpace,TuneRequest) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMPEG2TuneRequestFactory_CreateTuneRequest_Proxy( - IMPEG2TuneRequestFactory * This, - /* [in] */ ITuningSpace *TuningSpace, - /* [retval][out] */ IMPEG2TuneRequest **TuneRequest); - - -void __RPC_STUB IMPEG2TuneRequestFactory_CreateTuneRequest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMPEG2TuneRequestFactory_INTERFACE_DEFINED__ */ - - -#ifndef __IMPEG2TuneRequestSupport_INTERFACE_DEFINED__ -#define __IMPEG2TuneRequestSupport_INTERFACE_DEFINED__ - -/* interface IMPEG2TuneRequestSupport */ -/* [unique][helpstring][uuid][nonextensible][restricted][hidden][object] */ - - -EXTERN_C const IID IID_IMPEG2TuneRequestSupport; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1B9D5FC3-5BBC-4b6c-BB18-B9D10E3EEEBF") - IMPEG2TuneRequestSupport : public IUnknown - { - public: - }; - -#else /* C style interface */ - - typedef struct IMPEG2TuneRequestSupportVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMPEG2TuneRequestSupport * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMPEG2TuneRequestSupport * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMPEG2TuneRequestSupport * This); - - END_INTERFACE - } IMPEG2TuneRequestSupportVtbl; - - interface IMPEG2TuneRequestSupport - { - CONST_VTBL struct IMPEG2TuneRequestSupportVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMPEG2TuneRequestSupport_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMPEG2TuneRequestSupport_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMPEG2TuneRequestSupport_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IMPEG2TuneRequestSupport_INTERFACE_DEFINED__ */ - - -#ifndef __ITuner_INTERFACE_DEFINED__ -#define __ITuner_INTERFACE_DEFINED__ - -/* interface ITuner */ -/* [unique][helpstring][uuid][nonextensible][hidden][object] */ - - -EXTERN_C const IID IID_ITuner; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("28C52640-018A-11d3-9D8E-00C04F72D980") - ITuner : public IUnknown - { - public: - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_TuningSpace( - /* [retval][out] */ ITuningSpace **TuningSpace) = 0; - - virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_TuningSpace( - /* [in] */ ITuningSpace *TuningSpace) = 0; - - virtual /* [helpstring][restricted][hidden] */ HRESULT STDMETHODCALLTYPE EnumTuningSpaces( - /* [retval][out] */ IEnumTuningSpaces **ppEnum) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_TuneRequest( - /* [retval][out] */ ITuneRequest **TuneRequest) = 0; - - virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_TuneRequest( - /* [in] */ ITuneRequest *TuneRequest) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Validate( - /* [in] */ ITuneRequest *TuneRequest) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PreferredComponentTypes( - /* [retval][out] */ IComponentTypes **ComponentTypes) = 0; - - virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_PreferredComponentTypes( - /* [in] */ IComponentTypes *ComponentTypes) = 0; - - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SignalStrength( - /* [retval][out] */ long *Strength) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE TriggerSignalEvents( - /* [in] */ long Interval) = 0; - - }; - -#else /* C style interface */ - - typedef struct ITunerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ITuner * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ITuner * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ITuner * This); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TuningSpace )( - ITuner * This, - /* [retval][out] */ ITuningSpace **TuningSpace); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TuningSpace )( - ITuner * This, - /* [in] */ ITuningSpace *TuningSpace); - - /* [helpstring][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *EnumTuningSpaces )( - ITuner * This, - /* [retval][out] */ IEnumTuningSpaces **ppEnum); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TuneRequest )( - ITuner * This, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TuneRequest )( - ITuner * This, - /* [in] */ ITuneRequest *TuneRequest); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Validate )( - ITuner * This, - /* [in] */ ITuneRequest *TuneRequest); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PreferredComponentTypes )( - ITuner * This, - /* [retval][out] */ IComponentTypes **ComponentTypes); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PreferredComponentTypes )( - ITuner * This, - /* [in] */ IComponentTypes *ComponentTypes); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignalStrength )( - ITuner * This, - /* [retval][out] */ long *Strength); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *TriggerSignalEvents )( - ITuner * This, - /* [in] */ long Interval); - - END_INTERFACE - } ITunerVtbl; - - interface ITuner - { - CONST_VTBL struct ITunerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ITuner_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ITuner_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ITuner_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ITuner_get_TuningSpace(This,TuningSpace) \ - (This)->lpVtbl -> get_TuningSpace(This,TuningSpace) - -#define ITuner_put_TuningSpace(This,TuningSpace) \ - (This)->lpVtbl -> put_TuningSpace(This,TuningSpace) - -#define ITuner_EnumTuningSpaces(This,ppEnum) \ - (This)->lpVtbl -> EnumTuningSpaces(This,ppEnum) - -#define ITuner_get_TuneRequest(This,TuneRequest) \ - (This)->lpVtbl -> get_TuneRequest(This,TuneRequest) - -#define ITuner_put_TuneRequest(This,TuneRequest) \ - (This)->lpVtbl -> put_TuneRequest(This,TuneRequest) - -#define ITuner_Validate(This,TuneRequest) \ - (This)->lpVtbl -> Validate(This,TuneRequest) - -#define ITuner_get_PreferredComponentTypes(This,ComponentTypes) \ - (This)->lpVtbl -> get_PreferredComponentTypes(This,ComponentTypes) - -#define ITuner_put_PreferredComponentTypes(This,ComponentTypes) \ - (This)->lpVtbl -> put_PreferredComponentTypes(This,ComponentTypes) - -#define ITuner_get_SignalStrength(This,Strength) \ - (This)->lpVtbl -> get_SignalStrength(This,Strength) - -#define ITuner_TriggerSignalEvents(This,Interval) \ - (This)->lpVtbl -> TriggerSignalEvents(This,Interval) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE ITuner_get_TuningSpace_Proxy( - ITuner * This, - /* [retval][out] */ ITuningSpace **TuningSpace); - - -void __RPC_STUB ITuner_get_TuningSpace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE ITuner_put_TuningSpace_Proxy( - ITuner * This, - /* [in] */ ITuningSpace *TuningSpace); - - -void __RPC_STUB ITuner_put_TuningSpace_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][hidden] */ HRESULT STDMETHODCALLTYPE ITuner_EnumTuningSpaces_Proxy( - ITuner * This, - /* [retval][out] */ IEnumTuningSpaces **ppEnum); - - -void __RPC_STUB ITuner_EnumTuningSpaces_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE ITuner_get_TuneRequest_Proxy( - ITuner * This, - /* [retval][out] */ ITuneRequest **TuneRequest); - - -void __RPC_STUB ITuner_get_TuneRequest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE ITuner_put_TuneRequest_Proxy( - ITuner * This, - /* [in] */ ITuneRequest *TuneRequest); - - -void __RPC_STUB ITuner_put_TuneRequest_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE ITuner_Validate_Proxy( - ITuner * This, - /* [in] */ ITuneRequest *TuneRequest); - - -void __RPC_STUB ITuner_Validate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE ITuner_get_PreferredComponentTypes_Proxy( - ITuner * This, - /* [retval][out] */ IComponentTypes **ComponentTypes); - - -void __RPC_STUB ITuner_get_PreferredComponentTypes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE ITuner_put_PreferredComponentTypes_Proxy( - ITuner * This, - /* [in] */ IComponentTypes *ComponentTypes); - - -void __RPC_STUB ITuner_put_PreferredComponentTypes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE ITuner_get_SignalStrength_Proxy( - ITuner * This, - /* [retval][out] */ long *Strength); - - -void __RPC_STUB ITuner_get_SignalStrength_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE ITuner_TriggerSignalEvents_Proxy( - ITuner * This, - /* [in] */ long Interval); - - -void __RPC_STUB ITuner_TriggerSignalEvents_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ITuner_INTERFACE_DEFINED__ */ - - -#ifndef __IScanningTuner_INTERFACE_DEFINED__ -#define __IScanningTuner_INTERFACE_DEFINED__ - -/* interface IScanningTuner */ -/* [unique][helpstring][uuid][nonextensible][hidden][object] */ - - -EXTERN_C const IID IID_IScanningTuner; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1DFD0A5C-0284-11d3-9D8E-00C04F72D980") - IScanningTuner : public ITuner - { - public: - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SeekUp( void) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SeekDown( void) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ScanUp( - /* [in] */ long MillisecondsPause) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ScanDown( - /* [in] */ long MillisecondsPause) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AutoProgram( void) = 0; - - }; - -#else /* C style interface */ - - typedef struct IScanningTunerVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IScanningTuner * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IScanningTuner * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IScanningTuner * This); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TuningSpace )( - IScanningTuner * This, - /* [retval][out] */ ITuningSpace **TuningSpace); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TuningSpace )( - IScanningTuner * This, - /* [in] */ ITuningSpace *TuningSpace); - - /* [helpstring][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *EnumTuningSpaces )( - IScanningTuner * This, - /* [retval][out] */ IEnumTuningSpaces **ppEnum); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TuneRequest )( - IScanningTuner * This, - /* [retval][out] */ ITuneRequest **TuneRequest); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TuneRequest )( - IScanningTuner * This, - /* [in] */ ITuneRequest *TuneRequest); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Validate )( - IScanningTuner * This, - /* [in] */ ITuneRequest *TuneRequest); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PreferredComponentTypes )( - IScanningTuner * This, - /* [retval][out] */ IComponentTypes **ComponentTypes); - - /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PreferredComponentTypes )( - IScanningTuner * This, - /* [in] */ IComponentTypes *ComponentTypes); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignalStrength )( - IScanningTuner * This, - /* [retval][out] */ long *Strength); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *TriggerSignalEvents )( - IScanningTuner * This, - /* [in] */ long Interval); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SeekUp )( - IScanningTuner * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SeekDown )( - IScanningTuner * This); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ScanUp )( - IScanningTuner * This, - /* [in] */ long MillisecondsPause); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ScanDown )( - IScanningTuner * This, - /* [in] */ long MillisecondsPause); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AutoProgram )( - IScanningTuner * This); - - END_INTERFACE - } IScanningTunerVtbl; - - interface IScanningTuner - { - CONST_VTBL struct IScanningTunerVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IScanningTuner_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IScanningTuner_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IScanningTuner_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IScanningTuner_get_TuningSpace(This,TuningSpace) \ - (This)->lpVtbl -> get_TuningSpace(This,TuningSpace) - -#define IScanningTuner_put_TuningSpace(This,TuningSpace) \ - (This)->lpVtbl -> put_TuningSpace(This,TuningSpace) - -#define IScanningTuner_EnumTuningSpaces(This,ppEnum) \ - (This)->lpVtbl -> EnumTuningSpaces(This,ppEnum) - -#define IScanningTuner_get_TuneRequest(This,TuneRequest) \ - (This)->lpVtbl -> get_TuneRequest(This,TuneRequest) - -#define IScanningTuner_put_TuneRequest(This,TuneRequest) \ - (This)->lpVtbl -> put_TuneRequest(This,TuneRequest) - -#define IScanningTuner_Validate(This,TuneRequest) \ - (This)->lpVtbl -> Validate(This,TuneRequest) - -#define IScanningTuner_get_PreferredComponentTypes(This,ComponentTypes) \ - (This)->lpVtbl -> get_PreferredComponentTypes(This,ComponentTypes) - -#define IScanningTuner_put_PreferredComponentTypes(This,ComponentTypes) \ - (This)->lpVtbl -> put_PreferredComponentTypes(This,ComponentTypes) - -#define IScanningTuner_get_SignalStrength(This,Strength) \ - (This)->lpVtbl -> get_SignalStrength(This,Strength) - -#define IScanningTuner_TriggerSignalEvents(This,Interval) \ - (This)->lpVtbl -> TriggerSignalEvents(This,Interval) - - -#define IScanningTuner_SeekUp(This) \ - (This)->lpVtbl -> SeekUp(This) - -#define IScanningTuner_SeekDown(This) \ - (This)->lpVtbl -> SeekDown(This) - -#define IScanningTuner_ScanUp(This,MillisecondsPause) \ - (This)->lpVtbl -> ScanUp(This,MillisecondsPause) - -#define IScanningTuner_ScanDown(This,MillisecondsPause) \ - (This)->lpVtbl -> ScanDown(This,MillisecondsPause) - -#define IScanningTuner_AutoProgram(This) \ - (This)->lpVtbl -> AutoProgram(This) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IScanningTuner_SeekUp_Proxy( - IScanningTuner * This); - - -void __RPC_STUB IScanningTuner_SeekUp_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IScanningTuner_SeekDown_Proxy( - IScanningTuner * This); - - -void __RPC_STUB IScanningTuner_SeekDown_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IScanningTuner_ScanUp_Proxy( - IScanningTuner * This, - /* [in] */ long MillisecondsPause); - - -void __RPC_STUB IScanningTuner_ScanUp_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IScanningTuner_ScanDown_Proxy( - IScanningTuner * This, - /* [in] */ long MillisecondsPause); - - -void __RPC_STUB IScanningTuner_ScanDown_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IScanningTuner_AutoProgram_Proxy( - IScanningTuner * This); - - -void __RPC_STUB IScanningTuner_AutoProgram_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IScanningTuner_INTERFACE_DEFINED__ */ - - -#ifndef __IComponentType_INTERFACE_DEFINED__ -#define __IComponentType_INTERFACE_DEFINED__ - -/* interface IComponentType */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][hidden][object] */ - - -EXTERN_C const IID IID_IComponentType; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("6A340DC0-0311-11d3-9D8E-00C04F72D980") - IComponentType : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Category( - /* [retval][out] */ ComponentCategory *Category) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Category( - /* [in] */ ComponentCategory Category) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MediaMajorType( - /* [retval][out] */ BSTR *MediaMajorType) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MediaMajorType( - /* [in] */ BSTR MediaMajorType) = 0; - - virtual /* [restricted][hidden][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__MediaMajorType( - /* [retval][out] */ GUID *MediaMajorTypeGuid) = 0; - - virtual /* [restricted][hidden][helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put__MediaMajorType( - /* [in] */ REFCLSID MediaMajorTypeGuid) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MediaSubType( - /* [retval][out] */ BSTR *MediaSubType) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MediaSubType( - /* [in] */ BSTR MediaSubType) = 0; - - virtual /* [restricted][hidden][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__MediaSubType( - /* [retval][out] */ GUID *MediaSubTypeGuid) = 0; - - virtual /* [restricted][hidden][helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put__MediaSubType( - /* [in] */ REFCLSID MediaSubTypeGuid) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MediaFormatType( - /* [retval][out] */ BSTR *MediaFormatType) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MediaFormatType( - /* [in] */ BSTR MediaFormatType) = 0; - - virtual /* [restricted][hidden][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__MediaFormatType( - /* [retval][out] */ GUID *MediaFormatTypeGuid) = 0; - - virtual /* [restricted][hidden][helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put__MediaFormatType( - /* [in] */ REFCLSID MediaFormatTypeGuid) = 0; - - virtual /* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_MediaType( - /* [retval][out] */ AM_MEDIA_TYPE *MediaType) = 0; - - virtual /* [helpstring][restricted][hidden][id][propput] */ HRESULT STDMETHODCALLTYPE put_MediaType( - /* [in] */ AM_MEDIA_TYPE *MediaType) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clone( - /* [retval][out] */ IComponentType **NewCT) = 0; - - }; - -#else /* C style interface */ - - typedef struct IComponentTypeVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IComponentType * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IComponentType * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IComponentType * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IComponentType * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IComponentType * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IComponentType * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IComponentType * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IComponentType * This, - /* [retval][out] */ ComponentCategory *Category); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Category )( - IComponentType * This, - /* [in] */ ComponentCategory Category); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaMajorType )( - IComponentType * This, - /* [retval][out] */ BSTR *MediaMajorType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaMajorType )( - IComponentType * This, - /* [in] */ BSTR MediaMajorType); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MediaMajorType )( - IComponentType * This, - /* [retval][out] */ GUID *MediaMajorTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MediaMajorType )( - IComponentType * This, - /* [in] */ REFCLSID MediaMajorTypeGuid); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaSubType )( - IComponentType * This, - /* [retval][out] */ BSTR *MediaSubType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaSubType )( - IComponentType * This, - /* [in] */ BSTR MediaSubType); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MediaSubType )( - IComponentType * This, - /* [retval][out] */ GUID *MediaSubTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MediaSubType )( - IComponentType * This, - /* [in] */ REFCLSID MediaSubTypeGuid); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaFormatType )( - IComponentType * This, - /* [retval][out] */ BSTR *MediaFormatType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaFormatType )( - IComponentType * This, - /* [in] */ BSTR MediaFormatType); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MediaFormatType )( - IComponentType * This, - /* [retval][out] */ GUID *MediaFormatTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MediaFormatType )( - IComponentType * This, - /* [in] */ REFCLSID MediaFormatTypeGuid); - - /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaType )( - IComponentType * This, - /* [retval][out] */ AM_MEDIA_TYPE *MediaType); - - /* [helpstring][restricted][hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaType )( - IComponentType * This, - /* [in] */ AM_MEDIA_TYPE *MediaType); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IComponentType * This, - /* [retval][out] */ IComponentType **NewCT); - - END_INTERFACE - } IComponentTypeVtbl; - - interface IComponentType - { - CONST_VTBL struct IComponentTypeVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IComponentType_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IComponentType_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IComponentType_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IComponentType_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IComponentType_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IComponentType_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IComponentType_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IComponentType_get_Category(This,Category) \ - (This)->lpVtbl -> get_Category(This,Category) - -#define IComponentType_put_Category(This,Category) \ - (This)->lpVtbl -> put_Category(This,Category) - -#define IComponentType_get_MediaMajorType(This,MediaMajorType) \ - (This)->lpVtbl -> get_MediaMajorType(This,MediaMajorType) - -#define IComponentType_put_MediaMajorType(This,MediaMajorType) \ - (This)->lpVtbl -> put_MediaMajorType(This,MediaMajorType) - -#define IComponentType_get__MediaMajorType(This,MediaMajorTypeGuid) \ - (This)->lpVtbl -> get__MediaMajorType(This,MediaMajorTypeGuid) - -#define IComponentType_put__MediaMajorType(This,MediaMajorTypeGuid) \ - (This)->lpVtbl -> put__MediaMajorType(This,MediaMajorTypeGuid) - -#define IComponentType_get_MediaSubType(This,MediaSubType) \ - (This)->lpVtbl -> get_MediaSubType(This,MediaSubType) - -#define IComponentType_put_MediaSubType(This,MediaSubType) \ - (This)->lpVtbl -> put_MediaSubType(This,MediaSubType) - -#define IComponentType_get__MediaSubType(This,MediaSubTypeGuid) \ - (This)->lpVtbl -> get__MediaSubType(This,MediaSubTypeGuid) - -#define IComponentType_put__MediaSubType(This,MediaSubTypeGuid) \ - (This)->lpVtbl -> put__MediaSubType(This,MediaSubTypeGuid) - -#define IComponentType_get_MediaFormatType(This,MediaFormatType) \ - (This)->lpVtbl -> get_MediaFormatType(This,MediaFormatType) - -#define IComponentType_put_MediaFormatType(This,MediaFormatType) \ - (This)->lpVtbl -> put_MediaFormatType(This,MediaFormatType) - -#define IComponentType_get__MediaFormatType(This,MediaFormatTypeGuid) \ - (This)->lpVtbl -> get__MediaFormatType(This,MediaFormatTypeGuid) - -#define IComponentType_put__MediaFormatType(This,MediaFormatTypeGuid) \ - (This)->lpVtbl -> put__MediaFormatType(This,MediaFormatTypeGuid) - -#define IComponentType_get_MediaType(This,MediaType) \ - (This)->lpVtbl -> get_MediaType(This,MediaType) - -#define IComponentType_put_MediaType(This,MediaType) \ - (This)->lpVtbl -> put_MediaType(This,MediaType) - -#define IComponentType_Clone(This,NewCT) \ - (This)->lpVtbl -> Clone(This,NewCT) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IComponentType_get_Category_Proxy( - IComponentType * This, - /* [retval][out] */ ComponentCategory *Category); - - -void __RPC_STUB IComponentType_get_Category_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IComponentType_put_Category_Proxy( - IComponentType * This, - /* [in] */ ComponentCategory Category); - - -void __RPC_STUB IComponentType_put_Category_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IComponentType_get_MediaMajorType_Proxy( - IComponentType * This, - /* [retval][out] */ BSTR *MediaMajorType); - - -void __RPC_STUB IComponentType_get_MediaMajorType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IComponentType_put_MediaMajorType_Proxy( - IComponentType * This, - /* [in] */ BSTR MediaMajorType); - - -void __RPC_STUB IComponentType_put_MediaMajorType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IComponentType_get__MediaMajorType_Proxy( - IComponentType * This, - /* [retval][out] */ GUID *MediaMajorTypeGuid); - - -void __RPC_STUB IComponentType_get__MediaMajorType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IComponentType_put__MediaMajorType_Proxy( - IComponentType * This, - /* [in] */ REFCLSID MediaMajorTypeGuid); - - -void __RPC_STUB IComponentType_put__MediaMajorType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IComponentType_get_MediaSubType_Proxy( - IComponentType * This, - /* [retval][out] */ BSTR *MediaSubType); - - -void __RPC_STUB IComponentType_get_MediaSubType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IComponentType_put_MediaSubType_Proxy( - IComponentType * This, - /* [in] */ BSTR MediaSubType); - - -void __RPC_STUB IComponentType_put_MediaSubType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IComponentType_get__MediaSubType_Proxy( - IComponentType * This, - /* [retval][out] */ GUID *MediaSubTypeGuid); - - -void __RPC_STUB IComponentType_get__MediaSubType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IComponentType_put__MediaSubType_Proxy( - IComponentType * This, - /* [in] */ REFCLSID MediaSubTypeGuid); - - -void __RPC_STUB IComponentType_put__MediaSubType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IComponentType_get_MediaFormatType_Proxy( - IComponentType * This, - /* [retval][out] */ BSTR *MediaFormatType); - - -void __RPC_STUB IComponentType_get_MediaFormatType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IComponentType_put_MediaFormatType_Proxy( - IComponentType * This, - /* [in] */ BSTR MediaFormatType); - - -void __RPC_STUB IComponentType_put_MediaFormatType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IComponentType_get__MediaFormatType_Proxy( - IComponentType * This, - /* [retval][out] */ GUID *MediaFormatTypeGuid); - - -void __RPC_STUB IComponentType_get__MediaFormatType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IComponentType_put__MediaFormatType_Proxy( - IComponentType * This, - /* [in] */ REFCLSID MediaFormatTypeGuid); - - -void __RPC_STUB IComponentType_put__MediaFormatType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IComponentType_get_MediaType_Proxy( - IComponentType * This, - /* [retval][out] */ AM_MEDIA_TYPE *MediaType); - - -void __RPC_STUB IComponentType_get_MediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][hidden][id][propput] */ HRESULT STDMETHODCALLTYPE IComponentType_put_MediaType_Proxy( - IComponentType * This, - /* [in] */ AM_MEDIA_TYPE *MediaType); - - -void __RPC_STUB IComponentType_put_MediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IComponentType_Clone_Proxy( - IComponentType * This, - /* [retval][out] */ IComponentType **NewCT); - - -void __RPC_STUB IComponentType_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IComponentType_INTERFACE_DEFINED__ */ - - -#ifndef __ILanguageComponentType_INTERFACE_DEFINED__ -#define __ILanguageComponentType_INTERFACE_DEFINED__ - -/* interface ILanguageComponentType */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][hidden][object] */ - - -EXTERN_C const IID IID_ILanguageComponentType; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("B874C8BA-0FA2-11d3-9D8E-00C04F72D980") - ILanguageComponentType : public IComponentType - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LangID( - /* [retval][out] */ long *LangID) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LangID( - /* [in] */ long LangID) = 0; - - }; - -#else /* C style interface */ - - typedef struct ILanguageComponentTypeVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ILanguageComponentType * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ILanguageComponentType * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ILanguageComponentType * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ILanguageComponentType * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ILanguageComponentType * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ILanguageComponentType * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ILanguageComponentType * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - ILanguageComponentType * This, - /* [retval][out] */ ComponentCategory *Category); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Category )( - ILanguageComponentType * This, - /* [in] */ ComponentCategory Category); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaMajorType )( - ILanguageComponentType * This, - /* [retval][out] */ BSTR *MediaMajorType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaMajorType )( - ILanguageComponentType * This, - /* [in] */ BSTR MediaMajorType); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MediaMajorType )( - ILanguageComponentType * This, - /* [retval][out] */ GUID *MediaMajorTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MediaMajorType )( - ILanguageComponentType * This, - /* [in] */ REFCLSID MediaMajorTypeGuid); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaSubType )( - ILanguageComponentType * This, - /* [retval][out] */ BSTR *MediaSubType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaSubType )( - ILanguageComponentType * This, - /* [in] */ BSTR MediaSubType); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MediaSubType )( - ILanguageComponentType * This, - /* [retval][out] */ GUID *MediaSubTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MediaSubType )( - ILanguageComponentType * This, - /* [in] */ REFCLSID MediaSubTypeGuid); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaFormatType )( - ILanguageComponentType * This, - /* [retval][out] */ BSTR *MediaFormatType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaFormatType )( - ILanguageComponentType * This, - /* [in] */ BSTR MediaFormatType); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MediaFormatType )( - ILanguageComponentType * This, - /* [retval][out] */ GUID *MediaFormatTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MediaFormatType )( - ILanguageComponentType * This, - /* [in] */ REFCLSID MediaFormatTypeGuid); - - /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaType )( - ILanguageComponentType * This, - /* [retval][out] */ AM_MEDIA_TYPE *MediaType); - - /* [helpstring][restricted][hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaType )( - ILanguageComponentType * This, - /* [in] */ AM_MEDIA_TYPE *MediaType); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - ILanguageComponentType * This, - /* [retval][out] */ IComponentType **NewCT); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LangID )( - ILanguageComponentType * This, - /* [retval][out] */ long *LangID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LangID )( - ILanguageComponentType * This, - /* [in] */ long LangID); - - END_INTERFACE - } ILanguageComponentTypeVtbl; - - interface ILanguageComponentType - { - CONST_VTBL struct ILanguageComponentTypeVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ILanguageComponentType_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ILanguageComponentType_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ILanguageComponentType_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ILanguageComponentType_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ILanguageComponentType_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ILanguageComponentType_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ILanguageComponentType_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ILanguageComponentType_get_Category(This,Category) \ - (This)->lpVtbl -> get_Category(This,Category) - -#define ILanguageComponentType_put_Category(This,Category) \ - (This)->lpVtbl -> put_Category(This,Category) - -#define ILanguageComponentType_get_MediaMajorType(This,MediaMajorType) \ - (This)->lpVtbl -> get_MediaMajorType(This,MediaMajorType) - -#define ILanguageComponentType_put_MediaMajorType(This,MediaMajorType) \ - (This)->lpVtbl -> put_MediaMajorType(This,MediaMajorType) - -#define ILanguageComponentType_get__MediaMajorType(This,MediaMajorTypeGuid) \ - (This)->lpVtbl -> get__MediaMajorType(This,MediaMajorTypeGuid) - -#define ILanguageComponentType_put__MediaMajorType(This,MediaMajorTypeGuid) \ - (This)->lpVtbl -> put__MediaMajorType(This,MediaMajorTypeGuid) - -#define ILanguageComponentType_get_MediaSubType(This,MediaSubType) \ - (This)->lpVtbl -> get_MediaSubType(This,MediaSubType) - -#define ILanguageComponentType_put_MediaSubType(This,MediaSubType) \ - (This)->lpVtbl -> put_MediaSubType(This,MediaSubType) - -#define ILanguageComponentType_get__MediaSubType(This,MediaSubTypeGuid) \ - (This)->lpVtbl -> get__MediaSubType(This,MediaSubTypeGuid) - -#define ILanguageComponentType_put__MediaSubType(This,MediaSubTypeGuid) \ - (This)->lpVtbl -> put__MediaSubType(This,MediaSubTypeGuid) - -#define ILanguageComponentType_get_MediaFormatType(This,MediaFormatType) \ - (This)->lpVtbl -> get_MediaFormatType(This,MediaFormatType) - -#define ILanguageComponentType_put_MediaFormatType(This,MediaFormatType) \ - (This)->lpVtbl -> put_MediaFormatType(This,MediaFormatType) - -#define ILanguageComponentType_get__MediaFormatType(This,MediaFormatTypeGuid) \ - (This)->lpVtbl -> get__MediaFormatType(This,MediaFormatTypeGuid) - -#define ILanguageComponentType_put__MediaFormatType(This,MediaFormatTypeGuid) \ - (This)->lpVtbl -> put__MediaFormatType(This,MediaFormatTypeGuid) - -#define ILanguageComponentType_get_MediaType(This,MediaType) \ - (This)->lpVtbl -> get_MediaType(This,MediaType) - -#define ILanguageComponentType_put_MediaType(This,MediaType) \ - (This)->lpVtbl -> put_MediaType(This,MediaType) - -#define ILanguageComponentType_Clone(This,NewCT) \ - (This)->lpVtbl -> Clone(This,NewCT) - - -#define ILanguageComponentType_get_LangID(This,LangID) \ - (This)->lpVtbl -> get_LangID(This,LangID) - -#define ILanguageComponentType_put_LangID(This,LangID) \ - (This)->lpVtbl -> put_LangID(This,LangID) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ILanguageComponentType_get_LangID_Proxy( - ILanguageComponentType * This, - /* [retval][out] */ long *LangID); - - -void __RPC_STUB ILanguageComponentType_get_LangID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ILanguageComponentType_put_LangID_Proxy( - ILanguageComponentType * This, - /* [in] */ long LangID); - - -void __RPC_STUB ILanguageComponentType_put_LangID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ILanguageComponentType_INTERFACE_DEFINED__ */ - - -#ifndef __IMPEG2ComponentType_INTERFACE_DEFINED__ -#define __IMPEG2ComponentType_INTERFACE_DEFINED__ - -/* interface IMPEG2ComponentType */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][hidden][object] */ - - -EXTERN_C const IID IID_IMPEG2ComponentType; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("2C073D84-B51C-48c9-AA9F-68971E1F6E38") - IMPEG2ComponentType : public ILanguageComponentType - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StreamType( - /* [retval][out] */ MPEG2StreamType *MP2StreamType) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_StreamType( - /* [in] */ MPEG2StreamType MP2StreamType) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMPEG2ComponentTypeVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMPEG2ComponentType * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMPEG2ComponentType * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMPEG2ComponentType * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMPEG2ComponentType * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMPEG2ComponentType * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMPEG2ComponentType * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMPEG2ComponentType * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IMPEG2ComponentType * This, - /* [retval][out] */ ComponentCategory *Category); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Category )( - IMPEG2ComponentType * This, - /* [in] */ ComponentCategory Category); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaMajorType )( - IMPEG2ComponentType * This, - /* [retval][out] */ BSTR *MediaMajorType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaMajorType )( - IMPEG2ComponentType * This, - /* [in] */ BSTR MediaMajorType); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MediaMajorType )( - IMPEG2ComponentType * This, - /* [retval][out] */ GUID *MediaMajorTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MediaMajorType )( - IMPEG2ComponentType * This, - /* [in] */ REFCLSID MediaMajorTypeGuid); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaSubType )( - IMPEG2ComponentType * This, - /* [retval][out] */ BSTR *MediaSubType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaSubType )( - IMPEG2ComponentType * This, - /* [in] */ BSTR MediaSubType); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MediaSubType )( - IMPEG2ComponentType * This, - /* [retval][out] */ GUID *MediaSubTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MediaSubType )( - IMPEG2ComponentType * This, - /* [in] */ REFCLSID MediaSubTypeGuid); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaFormatType )( - IMPEG2ComponentType * This, - /* [retval][out] */ BSTR *MediaFormatType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaFormatType )( - IMPEG2ComponentType * This, - /* [in] */ BSTR MediaFormatType); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MediaFormatType )( - IMPEG2ComponentType * This, - /* [retval][out] */ GUID *MediaFormatTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MediaFormatType )( - IMPEG2ComponentType * This, - /* [in] */ REFCLSID MediaFormatTypeGuid); - - /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaType )( - IMPEG2ComponentType * This, - /* [retval][out] */ AM_MEDIA_TYPE *MediaType); - - /* [helpstring][restricted][hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaType )( - IMPEG2ComponentType * This, - /* [in] */ AM_MEDIA_TYPE *MediaType); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IMPEG2ComponentType * This, - /* [retval][out] */ IComponentType **NewCT); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LangID )( - IMPEG2ComponentType * This, - /* [retval][out] */ long *LangID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LangID )( - IMPEG2ComponentType * This, - /* [in] */ long LangID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StreamType )( - IMPEG2ComponentType * This, - /* [retval][out] */ MPEG2StreamType *MP2StreamType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StreamType )( - IMPEG2ComponentType * This, - /* [in] */ MPEG2StreamType MP2StreamType); - - END_INTERFACE - } IMPEG2ComponentTypeVtbl; - - interface IMPEG2ComponentType - { - CONST_VTBL struct IMPEG2ComponentTypeVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMPEG2ComponentType_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMPEG2ComponentType_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMPEG2ComponentType_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMPEG2ComponentType_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMPEG2ComponentType_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMPEG2ComponentType_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMPEG2ComponentType_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMPEG2ComponentType_get_Category(This,Category) \ - (This)->lpVtbl -> get_Category(This,Category) - -#define IMPEG2ComponentType_put_Category(This,Category) \ - (This)->lpVtbl -> put_Category(This,Category) - -#define IMPEG2ComponentType_get_MediaMajorType(This,MediaMajorType) \ - (This)->lpVtbl -> get_MediaMajorType(This,MediaMajorType) - -#define IMPEG2ComponentType_put_MediaMajorType(This,MediaMajorType) \ - (This)->lpVtbl -> put_MediaMajorType(This,MediaMajorType) - -#define IMPEG2ComponentType_get__MediaMajorType(This,MediaMajorTypeGuid) \ - (This)->lpVtbl -> get__MediaMajorType(This,MediaMajorTypeGuid) - -#define IMPEG2ComponentType_put__MediaMajorType(This,MediaMajorTypeGuid) \ - (This)->lpVtbl -> put__MediaMajorType(This,MediaMajorTypeGuid) - -#define IMPEG2ComponentType_get_MediaSubType(This,MediaSubType) \ - (This)->lpVtbl -> get_MediaSubType(This,MediaSubType) - -#define IMPEG2ComponentType_put_MediaSubType(This,MediaSubType) \ - (This)->lpVtbl -> put_MediaSubType(This,MediaSubType) - -#define IMPEG2ComponentType_get__MediaSubType(This,MediaSubTypeGuid) \ - (This)->lpVtbl -> get__MediaSubType(This,MediaSubTypeGuid) - -#define IMPEG2ComponentType_put__MediaSubType(This,MediaSubTypeGuid) \ - (This)->lpVtbl -> put__MediaSubType(This,MediaSubTypeGuid) - -#define IMPEG2ComponentType_get_MediaFormatType(This,MediaFormatType) \ - (This)->lpVtbl -> get_MediaFormatType(This,MediaFormatType) - -#define IMPEG2ComponentType_put_MediaFormatType(This,MediaFormatType) \ - (This)->lpVtbl -> put_MediaFormatType(This,MediaFormatType) - -#define IMPEG2ComponentType_get__MediaFormatType(This,MediaFormatTypeGuid) \ - (This)->lpVtbl -> get__MediaFormatType(This,MediaFormatTypeGuid) - -#define IMPEG2ComponentType_put__MediaFormatType(This,MediaFormatTypeGuid) \ - (This)->lpVtbl -> put__MediaFormatType(This,MediaFormatTypeGuid) - -#define IMPEG2ComponentType_get_MediaType(This,MediaType) \ - (This)->lpVtbl -> get_MediaType(This,MediaType) - -#define IMPEG2ComponentType_put_MediaType(This,MediaType) \ - (This)->lpVtbl -> put_MediaType(This,MediaType) - -#define IMPEG2ComponentType_Clone(This,NewCT) \ - (This)->lpVtbl -> Clone(This,NewCT) - - -#define IMPEG2ComponentType_get_LangID(This,LangID) \ - (This)->lpVtbl -> get_LangID(This,LangID) - -#define IMPEG2ComponentType_put_LangID(This,LangID) \ - (This)->lpVtbl -> put_LangID(This,LangID) - - -#define IMPEG2ComponentType_get_StreamType(This,MP2StreamType) \ - (This)->lpVtbl -> get_StreamType(This,MP2StreamType) - -#define IMPEG2ComponentType_put_StreamType(This,MP2StreamType) \ - (This)->lpVtbl -> put_StreamType(This,MP2StreamType) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMPEG2ComponentType_get_StreamType_Proxy( - IMPEG2ComponentType * This, - /* [retval][out] */ MPEG2StreamType *MP2StreamType); - - -void __RPC_STUB IMPEG2ComponentType_get_StreamType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMPEG2ComponentType_put_StreamType_Proxy( - IMPEG2ComponentType * This, - /* [in] */ MPEG2StreamType MP2StreamType); - - -void __RPC_STUB IMPEG2ComponentType_put_StreamType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMPEG2ComponentType_INTERFACE_DEFINED__ */ - - -#ifndef __IATSCComponentType_INTERFACE_DEFINED__ -#define __IATSCComponentType_INTERFACE_DEFINED__ - -/* interface IATSCComponentType */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][hidden][object] */ - - -EXTERN_C const IID IID_IATSCComponentType; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("FC189E4D-7BD4-4125-B3B3-3A76A332CC96") - IATSCComponentType : public IMPEG2ComponentType - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Flags( - /* [retval][out] */ long *Flags) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Flags( - /* [in] */ long flags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IATSCComponentTypeVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IATSCComponentType * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IATSCComponentType * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IATSCComponentType * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IATSCComponentType * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IATSCComponentType * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IATSCComponentType * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IATSCComponentType * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( - IATSCComponentType * This, - /* [retval][out] */ ComponentCategory *Category); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Category )( - IATSCComponentType * This, - /* [in] */ ComponentCategory Category); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaMajorType )( - IATSCComponentType * This, - /* [retval][out] */ BSTR *MediaMajorType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaMajorType )( - IATSCComponentType * This, - /* [in] */ BSTR MediaMajorType); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MediaMajorType )( - IATSCComponentType * This, - /* [retval][out] */ GUID *MediaMajorTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MediaMajorType )( - IATSCComponentType * This, - /* [in] */ REFCLSID MediaMajorTypeGuid); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaSubType )( - IATSCComponentType * This, - /* [retval][out] */ BSTR *MediaSubType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaSubType )( - IATSCComponentType * This, - /* [in] */ BSTR MediaSubType); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MediaSubType )( - IATSCComponentType * This, - /* [retval][out] */ GUID *MediaSubTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MediaSubType )( - IATSCComponentType * This, - /* [in] */ REFCLSID MediaSubTypeGuid); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaFormatType )( - IATSCComponentType * This, - /* [retval][out] */ BSTR *MediaFormatType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaFormatType )( - IATSCComponentType * This, - /* [in] */ BSTR MediaFormatType); - - /* [restricted][hidden][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__MediaFormatType )( - IATSCComponentType * This, - /* [retval][out] */ GUID *MediaFormatTypeGuid); - - /* [restricted][hidden][helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put__MediaFormatType )( - IATSCComponentType * This, - /* [in] */ REFCLSID MediaFormatTypeGuid); - - /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaType )( - IATSCComponentType * This, - /* [retval][out] */ AM_MEDIA_TYPE *MediaType); - - /* [helpstring][restricted][hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaType )( - IATSCComponentType * This, - /* [in] */ AM_MEDIA_TYPE *MediaType); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IATSCComponentType * This, - /* [retval][out] */ IComponentType **NewCT); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LangID )( - IATSCComponentType * This, - /* [retval][out] */ long *LangID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LangID )( - IATSCComponentType * This, - /* [in] */ long LangID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StreamType )( - IATSCComponentType * This, - /* [retval][out] */ MPEG2StreamType *MP2StreamType); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StreamType )( - IATSCComponentType * This, - /* [in] */ MPEG2StreamType MP2StreamType); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Flags )( - IATSCComponentType * This, - /* [retval][out] */ long *Flags); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Flags )( - IATSCComponentType * This, - /* [in] */ long flags); - - END_INTERFACE - } IATSCComponentTypeVtbl; - - interface IATSCComponentType - { - CONST_VTBL struct IATSCComponentTypeVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IATSCComponentType_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IATSCComponentType_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IATSCComponentType_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IATSCComponentType_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IATSCComponentType_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IATSCComponentType_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IATSCComponentType_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IATSCComponentType_get_Category(This,Category) \ - (This)->lpVtbl -> get_Category(This,Category) - -#define IATSCComponentType_put_Category(This,Category) \ - (This)->lpVtbl -> put_Category(This,Category) - -#define IATSCComponentType_get_MediaMajorType(This,MediaMajorType) \ - (This)->lpVtbl -> get_MediaMajorType(This,MediaMajorType) - -#define IATSCComponentType_put_MediaMajorType(This,MediaMajorType) \ - (This)->lpVtbl -> put_MediaMajorType(This,MediaMajorType) - -#define IATSCComponentType_get__MediaMajorType(This,MediaMajorTypeGuid) \ - (This)->lpVtbl -> get__MediaMajorType(This,MediaMajorTypeGuid) - -#define IATSCComponentType_put__MediaMajorType(This,MediaMajorTypeGuid) \ - (This)->lpVtbl -> put__MediaMajorType(This,MediaMajorTypeGuid) - -#define IATSCComponentType_get_MediaSubType(This,MediaSubType) \ - (This)->lpVtbl -> get_MediaSubType(This,MediaSubType) - -#define IATSCComponentType_put_MediaSubType(This,MediaSubType) \ - (This)->lpVtbl -> put_MediaSubType(This,MediaSubType) - -#define IATSCComponentType_get__MediaSubType(This,MediaSubTypeGuid) \ - (This)->lpVtbl -> get__MediaSubType(This,MediaSubTypeGuid) - -#define IATSCComponentType_put__MediaSubType(This,MediaSubTypeGuid) \ - (This)->lpVtbl -> put__MediaSubType(This,MediaSubTypeGuid) - -#define IATSCComponentType_get_MediaFormatType(This,MediaFormatType) \ - (This)->lpVtbl -> get_MediaFormatType(This,MediaFormatType) - -#define IATSCComponentType_put_MediaFormatType(This,MediaFormatType) \ - (This)->lpVtbl -> put_MediaFormatType(This,MediaFormatType) - -#define IATSCComponentType_get__MediaFormatType(This,MediaFormatTypeGuid) \ - (This)->lpVtbl -> get__MediaFormatType(This,MediaFormatTypeGuid) - -#define IATSCComponentType_put__MediaFormatType(This,MediaFormatTypeGuid) \ - (This)->lpVtbl -> put__MediaFormatType(This,MediaFormatTypeGuid) - -#define IATSCComponentType_get_MediaType(This,MediaType) \ - (This)->lpVtbl -> get_MediaType(This,MediaType) - -#define IATSCComponentType_put_MediaType(This,MediaType) \ - (This)->lpVtbl -> put_MediaType(This,MediaType) - -#define IATSCComponentType_Clone(This,NewCT) \ - (This)->lpVtbl -> Clone(This,NewCT) - - -#define IATSCComponentType_get_LangID(This,LangID) \ - (This)->lpVtbl -> get_LangID(This,LangID) - -#define IATSCComponentType_put_LangID(This,LangID) \ - (This)->lpVtbl -> put_LangID(This,LangID) - - -#define IATSCComponentType_get_StreamType(This,MP2StreamType) \ - (This)->lpVtbl -> get_StreamType(This,MP2StreamType) - -#define IATSCComponentType_put_StreamType(This,MP2StreamType) \ - (This)->lpVtbl -> put_StreamType(This,MP2StreamType) - - -#define IATSCComponentType_get_Flags(This,Flags) \ - (This)->lpVtbl -> get_Flags(This,Flags) - -#define IATSCComponentType_put_Flags(This,flags) \ - (This)->lpVtbl -> put_Flags(This,flags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IATSCComponentType_get_Flags_Proxy( - IATSCComponentType * This, - /* [retval][out] */ long *Flags); - - -void __RPC_STUB IATSCComponentType_get_Flags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IATSCComponentType_put_Flags_Proxy( - IATSCComponentType * This, - /* [in] */ long flags); - - -void __RPC_STUB IATSCComponentType_put_Flags_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IATSCComponentType_INTERFACE_DEFINED__ */ - - -#ifndef __IEnumComponentTypes_INTERFACE_DEFINED__ -#define __IEnumComponentTypes_INTERFACE_DEFINED__ - -/* interface IEnumComponentTypes */ -/* [unique][uuid][object][restricted][hidden] */ - - -EXTERN_C const IID IID_IEnumComponentTypes; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("8A674B4A-1F63-11d3-B64C-00C04F79498E") - IEnumComponentTypes : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Next( - /* [in] */ ULONG celt, - /* [length_is][size_is][out] */ IComponentType **rgelt, - /* [out] */ ULONG *pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - /* [in] */ ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IEnumComponentTypes **ppEnum) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumComponentTypesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumComponentTypes * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumComponentTypes * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumComponentTypes * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumComponentTypes * This, - /* [in] */ ULONG celt, - /* [length_is][size_is][out] */ IComponentType **rgelt, - /* [out] */ ULONG *pceltFetched); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumComponentTypes * This, - /* [in] */ ULONG celt); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumComponentTypes * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumComponentTypes * This, - /* [out] */ IEnumComponentTypes **ppEnum); - - END_INTERFACE - } IEnumComponentTypesVtbl; - - interface IEnumComponentTypes - { - CONST_VTBL struct IEnumComponentTypesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEnumComponentTypes_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEnumComponentTypes_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEnumComponentTypes_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEnumComponentTypes_Next(This,celt,rgelt,pceltFetched) \ - (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) - -#define IEnumComponentTypes_Skip(This,celt) \ - (This)->lpVtbl -> Skip(This,celt) - -#define IEnumComponentTypes_Reset(This) \ - (This)->lpVtbl -> Reset(This) - -#define IEnumComponentTypes_Clone(This,ppEnum) \ - (This)->lpVtbl -> Clone(This,ppEnum) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IEnumComponentTypes_Next_Proxy( - IEnumComponentTypes * This, - /* [in] */ ULONG celt, - /* [length_is][size_is][out] */ IComponentType **rgelt, - /* [out] */ ULONG *pceltFetched); - - -void __RPC_STUB IEnumComponentTypes_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumComponentTypes_Skip_Proxy( - IEnumComponentTypes * This, - /* [in] */ ULONG celt); - - -void __RPC_STUB IEnumComponentTypes_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumComponentTypes_Reset_Proxy( - IEnumComponentTypes * This); - - -void __RPC_STUB IEnumComponentTypes_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumComponentTypes_Clone_Proxy( - IEnumComponentTypes * This, - /* [out] */ IEnumComponentTypes **ppEnum); - - -void __RPC_STUB IEnumComponentTypes_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEnumComponentTypes_INTERFACE_DEFINED__ */ - - -#ifndef __IComponentTypes_INTERFACE_DEFINED__ -#define __IComponentTypes_INTERFACE_DEFINED__ - -/* interface IComponentTypes */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][hidden][object] */ - - -EXTERN_C const IID IID_IComponentTypes; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("0DC13D4A-0313-11d3-9D8E-00C04F72D980") - IComponentTypes : public IDispatch - { - public: - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *Count) = 0; - - virtual /* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IEnumVARIANT **ppNewEnum) = 0; - - virtual /* [helpstring][restricted][hidden] */ HRESULT STDMETHODCALLTYPE EnumComponentTypes( - /* [retval][out] */ IEnumComponentTypes **ppNewEnum) = 0; - - virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT Index, - /* [retval][out] */ IComponentType **ComponentType) = 0; - - virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Item( - /* [in] */ VARIANT Index, - /* [in] */ IComponentType *ComponentType) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ IComponentType *ComponentType, - /* [retval][out] */ VARIANT *NewIndex) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT Index) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Clone( - /* [retval][out] */ IComponentTypes **NewList) = 0; - - }; - -#else /* C style interface */ - - typedef struct IComponentTypesVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IComponentTypes * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IComponentTypes * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IComponentTypes * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IComponentTypes * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IComponentTypes * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IComponentTypes * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IComponentTypes * 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); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - IComponentTypes * This, - /* [retval][out] */ long *Count); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - IComponentTypes * This, - /* [retval][out] */ IEnumVARIANT **ppNewEnum); - - /* [helpstring][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *EnumComponentTypes )( - IComponentTypes * This, - /* [retval][out] */ IEnumComponentTypes **ppNewEnum); - - /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - IComponentTypes * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ IComponentType **ComponentType); - - /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Item )( - IComponentTypes * This, - /* [in] */ VARIANT Index, - /* [in] */ IComponentType *ComponentType); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - IComponentTypes * This, - /* [in] */ IComponentType *ComponentType, - /* [retval][out] */ VARIANT *NewIndex); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - IComponentTypes * This, - /* [in] */ VARIANT Index); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IComponentTypes * This, - /* [retval][out] */ IComponentTypes **NewList); - - END_INTERFACE - } IComponentTypesVtbl; - - interface IComponentTypes - { - CONST_VTBL struct IComponentTypesVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IComponentTypes_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IComponentTypes_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IComponentTypes_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IComponentTypes_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IComponentTypes_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IComponentTypes_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IComponentTypes_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IComponentTypes_get_Count(This,Count) \ - (This)->lpVtbl -> get_Count(This,Count) - -#define IComponentTypes_get__NewEnum(This,ppNewEnum) \ - (This)->lpVtbl -> get__NewEnum(This,ppNewEnum) - -#define IComponentTypes_EnumComponentTypes(This,ppNewEnum) \ - (This)->lpVtbl -> EnumComponentTypes(This,ppNewEnum) - -#define IComponentTypes_get_Item(This,Index,ComponentType) \ - (This)->lpVtbl -> get_Item(This,Index,ComponentType) - -#define IComponentTypes_put_Item(This,Index,ComponentType) \ - (This)->lpVtbl -> put_Item(This,Index,ComponentType) - -#define IComponentTypes_Add(This,ComponentType,NewIndex) \ - (This)->lpVtbl -> Add(This,ComponentType,NewIndex) - -#define IComponentTypes_Remove(This,Index) \ - (This)->lpVtbl -> Remove(This,Index) - -#define IComponentTypes_Clone(This,NewList) \ - (This)->lpVtbl -> Clone(This,NewList) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IComponentTypes_get_Count_Proxy( - IComponentTypes * This, - /* [retval][out] */ long *Count); - - -void __RPC_STUB IComponentTypes_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IComponentTypes_get__NewEnum_Proxy( - IComponentTypes * This, - /* [retval][out] */ IEnumVARIANT **ppNewEnum); - - -void __RPC_STUB IComponentTypes_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][hidden] */ HRESULT STDMETHODCALLTYPE IComponentTypes_EnumComponentTypes_Proxy( - IComponentTypes * This, - /* [retval][out] */ IEnumComponentTypes **ppNewEnum); - - -void __RPC_STUB IComponentTypes_EnumComponentTypes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE IComponentTypes_get_Item_Proxy( - IComponentTypes * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ IComponentType **ComponentType); - - -void __RPC_STUB IComponentTypes_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE IComponentTypes_put_Item_Proxy( - IComponentTypes * This, - /* [in] */ VARIANT Index, - /* [in] */ IComponentType *ComponentType); - - -void __RPC_STUB IComponentTypes_put_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IComponentTypes_Add_Proxy( - IComponentTypes * This, - /* [in] */ IComponentType *ComponentType, - /* [retval][out] */ VARIANT *NewIndex); - - -void __RPC_STUB IComponentTypes_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IComponentTypes_Remove_Proxy( - IComponentTypes * This, - /* [in] */ VARIANT Index); - - -void __RPC_STUB IComponentTypes_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IComponentTypes_Clone_Proxy( - IComponentTypes * This, - /* [retval][out] */ IComponentTypes **NewList); - - -void __RPC_STUB IComponentTypes_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IComponentTypes_INTERFACE_DEFINED__ */ - - -#ifndef __IComponent_INTERFACE_DEFINED__ -#define __IComponent_INTERFACE_DEFINED__ - -/* interface IComponent */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][object] */ - - -EXTERN_C const IID IID_IComponent; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1A5576FC-0E19-11d3-9D8E-00C04F72D980") - IComponent : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( - /* [retval][out] */ IComponentType **CT) = 0; - - virtual /* [helpstring][id][propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE put_Type( - /* [in] */ IComponentType *CT) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DescLangID( - /* [retval][out] */ long *LangID) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DescLangID( - /* [in] */ long LangID) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( - /* [retval][out] */ ComponentStatus *Status) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Status( - /* [in] */ ComponentStatus Status) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( - /* [retval][out] */ BSTR *Description) = 0; - - virtual /* [helpstring][id][propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE put_Description( - /* [in] */ BSTR Description) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clone( - /* [retval][out] */ IComponent **NewComponent) = 0; - - }; - -#else /* C style interface */ - - typedef struct IComponentVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IComponent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IComponent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IComponent * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IComponent * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IComponent * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IComponent * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IComponent * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( - IComponent * This, - /* [retval][out] */ IComponentType **CT); - - /* [helpstring][id][propput][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( - IComponent * This, - /* [in] */ IComponentType *CT); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DescLangID )( - IComponent * This, - /* [retval][out] */ long *LangID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DescLangID )( - IComponent * This, - /* [in] */ long LangID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IComponent * This, - /* [retval][out] */ ComponentStatus *Status); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Status )( - IComponent * This, - /* [in] */ ComponentStatus Status); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - IComponent * This, - /* [retval][out] */ BSTR *Description); - - /* [helpstring][id][propput][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( - IComponent * This, - /* [in] */ BSTR Description); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IComponent * This, - /* [retval][out] */ IComponent **NewComponent); - - END_INTERFACE - } IComponentVtbl; - - interface IComponent - { - CONST_VTBL struct IComponentVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IComponent_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IComponent_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IComponent_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IComponent_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IComponent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IComponent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IComponent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IComponent_get_Type(This,CT) \ - (This)->lpVtbl -> get_Type(This,CT) - -#define IComponent_put_Type(This,CT) \ - (This)->lpVtbl -> put_Type(This,CT) - -#define IComponent_get_DescLangID(This,LangID) \ - (This)->lpVtbl -> get_DescLangID(This,LangID) - -#define IComponent_put_DescLangID(This,LangID) \ - (This)->lpVtbl -> put_DescLangID(This,LangID) - -#define IComponent_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IComponent_put_Status(This,Status) \ - (This)->lpVtbl -> put_Status(This,Status) - -#define IComponent_get_Description(This,Description) \ - (This)->lpVtbl -> get_Description(This,Description) - -#define IComponent_put_Description(This,Description) \ - (This)->lpVtbl -> put_Description(This,Description) - -#define IComponent_Clone(This,NewComponent) \ - (This)->lpVtbl -> Clone(This,NewComponent) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IComponent_get_Type_Proxy( - IComponent * This, - /* [retval][out] */ IComponentType **CT); - - -void __RPC_STUB IComponent_get_Type_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE IComponent_put_Type_Proxy( - IComponent * This, - /* [in] */ IComponentType *CT); - - -void __RPC_STUB IComponent_put_Type_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IComponent_get_DescLangID_Proxy( - IComponent * This, - /* [retval][out] */ long *LangID); - - -void __RPC_STUB IComponent_get_DescLangID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IComponent_put_DescLangID_Proxy( - IComponent * This, - /* [in] */ long LangID); - - -void __RPC_STUB IComponent_put_DescLangID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IComponent_get_Status_Proxy( - IComponent * This, - /* [retval][out] */ ComponentStatus *Status); - - -void __RPC_STUB IComponent_get_Status_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IComponent_put_Status_Proxy( - IComponent * This, - /* [in] */ ComponentStatus Status); - - -void __RPC_STUB IComponent_put_Status_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IComponent_get_Description_Proxy( - IComponent * This, - /* [retval][out] */ BSTR *Description); - - -void __RPC_STUB IComponent_get_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput][restricted][hidden] */ HRESULT STDMETHODCALLTYPE IComponent_put_Description_Proxy( - IComponent * This, - /* [in] */ BSTR Description); - - -void __RPC_STUB IComponent_put_Description_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IComponent_Clone_Proxy( - IComponent * This, - /* [retval][out] */ IComponent **NewComponent); - - -void __RPC_STUB IComponent_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IComponent_INTERFACE_DEFINED__ */ - - -#ifndef __IMPEG2Component_INTERFACE_DEFINED__ -#define __IMPEG2Component_INTERFACE_DEFINED__ - -/* interface IMPEG2Component */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][object] */ - - -EXTERN_C const IID IID_IMPEG2Component; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1493E353-1EB6-473c-802D-8E6B8EC9D2A9") - IMPEG2Component : public IComponent - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PID( - /* [retval][out] */ long *PID) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PID( - /* [in] */ long PID) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PCRPID( - /* [retval][out] */ long *PCRPID) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PCRPID( - /* [in] */ long PCRPID) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProgramNumber( - /* [retval][out] */ long *ProgramNumber) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ProgramNumber( - /* [in] */ long ProgramNumber) = 0; - - }; - -#else /* C style interface */ - - typedef struct IMPEG2ComponentVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IMPEG2Component * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IMPEG2Component * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IMPEG2Component * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IMPEG2Component * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IMPEG2Component * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IMPEG2Component * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IMPEG2Component * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( - IMPEG2Component * This, - /* [retval][out] */ IComponentType **CT); - - /* [helpstring][id][propput][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( - IMPEG2Component * This, - /* [in] */ IComponentType *CT); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DescLangID )( - IMPEG2Component * This, - /* [retval][out] */ long *LangID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DescLangID )( - IMPEG2Component * This, - /* [in] */ long LangID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( - IMPEG2Component * This, - /* [retval][out] */ ComponentStatus *Status); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Status )( - IMPEG2Component * This, - /* [in] */ ComponentStatus Status); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( - IMPEG2Component * This, - /* [retval][out] */ BSTR *Description); - - /* [helpstring][id][propput][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( - IMPEG2Component * This, - /* [in] */ BSTR Description); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IMPEG2Component * This, - /* [retval][out] */ IComponent **NewComponent); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PID )( - IMPEG2Component * This, - /* [retval][out] */ long *PID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PID )( - IMPEG2Component * This, - /* [in] */ long PID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PCRPID )( - IMPEG2Component * This, - /* [retval][out] */ long *PCRPID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PCRPID )( - IMPEG2Component * This, - /* [in] */ long PCRPID); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgramNumber )( - IMPEG2Component * This, - /* [retval][out] */ long *ProgramNumber); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ProgramNumber )( - IMPEG2Component * This, - /* [in] */ long ProgramNumber); - - END_INTERFACE - } IMPEG2ComponentVtbl; - - interface IMPEG2Component - { - CONST_VTBL struct IMPEG2ComponentVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IMPEG2Component_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IMPEG2Component_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IMPEG2Component_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IMPEG2Component_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IMPEG2Component_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IMPEG2Component_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IMPEG2Component_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IMPEG2Component_get_Type(This,CT) \ - (This)->lpVtbl -> get_Type(This,CT) - -#define IMPEG2Component_put_Type(This,CT) \ - (This)->lpVtbl -> put_Type(This,CT) - -#define IMPEG2Component_get_DescLangID(This,LangID) \ - (This)->lpVtbl -> get_DescLangID(This,LangID) - -#define IMPEG2Component_put_DescLangID(This,LangID) \ - (This)->lpVtbl -> put_DescLangID(This,LangID) - -#define IMPEG2Component_get_Status(This,Status) \ - (This)->lpVtbl -> get_Status(This,Status) - -#define IMPEG2Component_put_Status(This,Status) \ - (This)->lpVtbl -> put_Status(This,Status) - -#define IMPEG2Component_get_Description(This,Description) \ - (This)->lpVtbl -> get_Description(This,Description) - -#define IMPEG2Component_put_Description(This,Description) \ - (This)->lpVtbl -> put_Description(This,Description) - -#define IMPEG2Component_Clone(This,NewComponent) \ - (This)->lpVtbl -> Clone(This,NewComponent) - - -#define IMPEG2Component_get_PID(This,PID) \ - (This)->lpVtbl -> get_PID(This,PID) - -#define IMPEG2Component_put_PID(This,PID) \ - (This)->lpVtbl -> put_PID(This,PID) - -#define IMPEG2Component_get_PCRPID(This,PCRPID) \ - (This)->lpVtbl -> get_PCRPID(This,PCRPID) - -#define IMPEG2Component_put_PCRPID(This,PCRPID) \ - (This)->lpVtbl -> put_PCRPID(This,PCRPID) - -#define IMPEG2Component_get_ProgramNumber(This,ProgramNumber) \ - (This)->lpVtbl -> get_ProgramNumber(This,ProgramNumber) - -#define IMPEG2Component_put_ProgramNumber(This,ProgramNumber) \ - (This)->lpVtbl -> put_ProgramNumber(This,ProgramNumber) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMPEG2Component_get_PID_Proxy( - IMPEG2Component * This, - /* [retval][out] */ long *PID); - - -void __RPC_STUB IMPEG2Component_get_PID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMPEG2Component_put_PID_Proxy( - IMPEG2Component * This, - /* [in] */ long PID); - - -void __RPC_STUB IMPEG2Component_put_PID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMPEG2Component_get_PCRPID_Proxy( - IMPEG2Component * This, - /* [retval][out] */ long *PCRPID); - - -void __RPC_STUB IMPEG2Component_get_PCRPID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMPEG2Component_put_PCRPID_Proxy( - IMPEG2Component * This, - /* [in] */ long PCRPID); - - -void __RPC_STUB IMPEG2Component_put_PCRPID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IMPEG2Component_get_ProgramNumber_Proxy( - IMPEG2Component * This, - /* [retval][out] */ long *ProgramNumber); - - -void __RPC_STUB IMPEG2Component_get_ProgramNumber_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IMPEG2Component_put_ProgramNumber_Proxy( - IMPEG2Component * This, - /* [in] */ long ProgramNumber); - - -void __RPC_STUB IMPEG2Component_put_ProgramNumber_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IMPEG2Component_INTERFACE_DEFINED__ */ - - -#ifndef __IEnumComponents_INTERFACE_DEFINED__ -#define __IEnumComponents_INTERFACE_DEFINED__ - -/* interface IEnumComponents */ -/* [unique][uuid][object][restricted][hidden] */ - - -EXTERN_C const IID IID_IEnumComponents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("2A6E2939-2595-11d3-B64C-00C04F79498E") - IEnumComponents : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE Next( - /* [in] */ ULONG celt, - /* [length_is][size_is][out] */ IComponent **rgelt, - /* [out] */ ULONG *pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - /* [in] */ ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - /* [out] */ IEnumComponents **ppEnum) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEnumComponentsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEnumComponents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEnumComponents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEnumComponents * This); - - HRESULT ( STDMETHODCALLTYPE *Next )( - IEnumComponents * This, - /* [in] */ ULONG celt, - /* [length_is][size_is][out] */ IComponent **rgelt, - /* [out] */ ULONG *pceltFetched); - - HRESULT ( STDMETHODCALLTYPE *Skip )( - IEnumComponents * This, - /* [in] */ ULONG celt); - - HRESULT ( STDMETHODCALLTYPE *Reset )( - IEnumComponents * This); - - HRESULT ( STDMETHODCALLTYPE *Clone )( - IEnumComponents * This, - /* [out] */ IEnumComponents **ppEnum); - - END_INTERFACE - } IEnumComponentsVtbl; - - interface IEnumComponents - { - CONST_VTBL struct IEnumComponentsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEnumComponents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEnumComponents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEnumComponents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEnumComponents_Next(This,celt,rgelt,pceltFetched) \ - (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) - -#define IEnumComponents_Skip(This,celt) \ - (This)->lpVtbl -> Skip(This,celt) - -#define IEnumComponents_Reset(This) \ - (This)->lpVtbl -> Reset(This) - -#define IEnumComponents_Clone(This,ppEnum) \ - (This)->lpVtbl -> Clone(This,ppEnum) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IEnumComponents_Next_Proxy( - IEnumComponents * This, - /* [in] */ ULONG celt, - /* [length_is][size_is][out] */ IComponent **rgelt, - /* [out] */ ULONG *pceltFetched); - - -void __RPC_STUB IEnumComponents_Next_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumComponents_Skip_Proxy( - IEnumComponents * This, - /* [in] */ ULONG celt); - - -void __RPC_STUB IEnumComponents_Skip_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumComponents_Reset_Proxy( - IEnumComponents * This); - - -void __RPC_STUB IEnumComponents_Reset_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IEnumComponents_Clone_Proxy( - IEnumComponents * This, - /* [out] */ IEnumComponents **ppEnum); - - -void __RPC_STUB IEnumComponents_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEnumComponents_INTERFACE_DEFINED__ */ - - -#ifndef __IComponents_INTERFACE_DEFINED__ -#define __IComponents_INTERFACE_DEFINED__ - -/* interface IComponents */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][object] */ - - -EXTERN_C const IID IID_IComponents; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("FCD01846-0E19-11d3-9D8E-00C04F72D980") - IComponents : public IDispatch - { - public: - virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count( - /* [retval][out] */ long *Count) = 0; - - virtual /* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( - /* [retval][out] */ IEnumVARIANT **ppNewEnum) = 0; - - virtual /* [helpstring][restricted][hidden] */ HRESULT STDMETHODCALLTYPE EnumComponents( - /* [retval][out] */ IEnumComponents **ppNewEnum) = 0; - - virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( - /* [in] */ VARIANT Index, - /* [retval][out] */ IComponent **ppComponent) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( - /* [in] */ IComponent *Component, - /* [retval][out] */ VARIANT *NewIndex) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( - /* [in] */ VARIANT Index) = 0; - - virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Clone( - /* [retval][out] */ IComponents **NewList) = 0; - - }; - -#else /* C style interface */ - - typedef struct IComponentsVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IComponents * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IComponents * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IComponents * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IComponents * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IComponents * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IComponents * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IComponents * 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); - - /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( - IComponents * This, - /* [retval][out] */ long *Count); - - /* [restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( - IComponents * This, - /* [retval][out] */ IEnumVARIANT **ppNewEnum); - - /* [helpstring][restricted][hidden] */ HRESULT ( STDMETHODCALLTYPE *EnumComponents )( - IComponents * This, - /* [retval][out] */ IEnumComponents **ppNewEnum); - - /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( - IComponents * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ IComponent **ppComponent); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( - IComponents * This, - /* [in] */ IComponent *Component, - /* [retval][out] */ VARIANT *NewIndex); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( - IComponents * This, - /* [in] */ VARIANT Index); - - /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IComponents * This, - /* [retval][out] */ IComponents **NewList); - - END_INTERFACE - } IComponentsVtbl; - - interface IComponents - { - CONST_VTBL struct IComponentsVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IComponents_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IComponents_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IComponents_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IComponents_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IComponents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IComponents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IComponents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IComponents_get_Count(This,Count) \ - (This)->lpVtbl -> get_Count(This,Count) - -#define IComponents_get__NewEnum(This,ppNewEnum) \ - (This)->lpVtbl -> get__NewEnum(This,ppNewEnum) - -#define IComponents_EnumComponents(This,ppNewEnum) \ - (This)->lpVtbl -> EnumComponents(This,ppNewEnum) - -#define IComponents_get_Item(This,Index,ppComponent) \ - (This)->lpVtbl -> get_Item(This,Index,ppComponent) - -#define IComponents_Add(This,Component,NewIndex) \ - (This)->lpVtbl -> Add(This,Component,NewIndex) - -#define IComponents_Remove(This,Index) \ - (This)->lpVtbl -> Remove(This,Index) - -#define IComponents_Clone(This,NewList) \ - (This)->lpVtbl -> Clone(This,NewList) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IComponents_get_Count_Proxy( - IComponents * This, - /* [retval][out] */ long *Count); - - -void __RPC_STUB IComponents_get_Count_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE IComponents_get__NewEnum_Proxy( - IComponents * This, - /* [retval][out] */ IEnumVARIANT **ppNewEnum); - - -void __RPC_STUB IComponents_get__NewEnum_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][restricted][hidden] */ HRESULT STDMETHODCALLTYPE IComponents_EnumComponents_Proxy( - IComponents * This, - /* [retval][out] */ IEnumComponents **ppNewEnum); - - -void __RPC_STUB IComponents_EnumComponents_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE IComponents_get_Item_Proxy( - IComponents * This, - /* [in] */ VARIANT Index, - /* [retval][out] */ IComponent **ppComponent); - - -void __RPC_STUB IComponents_get_Item_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IComponents_Add_Proxy( - IComponents * This, - /* [in] */ IComponent *Component, - /* [retval][out] */ VARIANT *NewIndex); - - -void __RPC_STUB IComponents_Add_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IComponents_Remove_Proxy( - IComponents * This, - /* [in] */ VARIANT Index); - - -void __RPC_STUB IComponents_Remove_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring] */ HRESULT STDMETHODCALLTYPE IComponents_Clone_Proxy( - IComponents * This, - /* [retval][out] */ IComponents **NewList); - - -void __RPC_STUB IComponents_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IComponents_INTERFACE_DEFINED__ */ - - -#ifndef __ILocator_INTERFACE_DEFINED__ -#define __ILocator_INTERFACE_DEFINED__ - -/* interface ILocator */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][object] */ - - -EXTERN_C const IID IID_ILocator; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("286D7F89-760C-4F89-80C4-66841D2507AA") - ILocator : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CarrierFrequency( - /* [retval][out] */ long *Frequency) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CarrierFrequency( - /* [in] */ long Frequency) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InnerFEC( - /* [retval][out] */ FECMethod *FEC) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InnerFEC( - /* [in] */ FECMethod FEC) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InnerFECRate( - /* [retval][out] */ BinaryConvolutionCodeRate *FEC) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InnerFECRate( - /* [in] */ BinaryConvolutionCodeRate FEC) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OuterFEC( - /* [retval][out] */ FECMethod *FEC) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OuterFEC( - /* [in] */ FECMethod FEC) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OuterFECRate( - /* [retval][out] */ BinaryConvolutionCodeRate *FEC) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OuterFECRate( - /* [in] */ BinaryConvolutionCodeRate FEC) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Modulation( - /* [retval][out] */ ModulationType *Modulation) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Modulation( - /* [in] */ ModulationType Modulation) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SymbolRate( - /* [retval][out] */ long *Rate) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SymbolRate( - /* [in] */ long Rate) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clone( - /* [retval][out] */ ILocator **NewLocator) = 0; - - }; - -#else /* C style interface */ - - typedef struct ILocatorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ILocator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ILocator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ILocator * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - ILocator * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - ILocator * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - ILocator * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - ILocator * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CarrierFrequency )( - ILocator * This, - /* [retval][out] */ long *Frequency); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CarrierFrequency )( - ILocator * This, - /* [in] */ long Frequency); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InnerFEC )( - ILocator * This, - /* [retval][out] */ FECMethod *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InnerFEC )( - ILocator * This, - /* [in] */ FECMethod FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InnerFECRate )( - ILocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InnerFECRate )( - ILocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OuterFEC )( - ILocator * This, - /* [retval][out] */ FECMethod *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OuterFEC )( - ILocator * This, - /* [in] */ FECMethod FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OuterFECRate )( - ILocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OuterFECRate )( - ILocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Modulation )( - ILocator * This, - /* [retval][out] */ ModulationType *Modulation); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Modulation )( - ILocator * This, - /* [in] */ ModulationType Modulation); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SymbolRate )( - ILocator * This, - /* [retval][out] */ long *Rate); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SymbolRate )( - ILocator * This, - /* [in] */ long Rate); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - ILocator * This, - /* [retval][out] */ ILocator **NewLocator); - - END_INTERFACE - } ILocatorVtbl; - - interface ILocator - { - CONST_VTBL struct ILocatorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ILocator_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ILocator_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ILocator_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ILocator_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define ILocator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define ILocator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define ILocator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define ILocator_get_CarrierFrequency(This,Frequency) \ - (This)->lpVtbl -> get_CarrierFrequency(This,Frequency) - -#define ILocator_put_CarrierFrequency(This,Frequency) \ - (This)->lpVtbl -> put_CarrierFrequency(This,Frequency) - -#define ILocator_get_InnerFEC(This,FEC) \ - (This)->lpVtbl -> get_InnerFEC(This,FEC) - -#define ILocator_put_InnerFEC(This,FEC) \ - (This)->lpVtbl -> put_InnerFEC(This,FEC) - -#define ILocator_get_InnerFECRate(This,FEC) \ - (This)->lpVtbl -> get_InnerFECRate(This,FEC) - -#define ILocator_put_InnerFECRate(This,FEC) \ - (This)->lpVtbl -> put_InnerFECRate(This,FEC) - -#define ILocator_get_OuterFEC(This,FEC) \ - (This)->lpVtbl -> get_OuterFEC(This,FEC) - -#define ILocator_put_OuterFEC(This,FEC) \ - (This)->lpVtbl -> put_OuterFEC(This,FEC) - -#define ILocator_get_OuterFECRate(This,FEC) \ - (This)->lpVtbl -> get_OuterFECRate(This,FEC) - -#define ILocator_put_OuterFECRate(This,FEC) \ - (This)->lpVtbl -> put_OuterFECRate(This,FEC) - -#define ILocator_get_Modulation(This,Modulation) \ - (This)->lpVtbl -> get_Modulation(This,Modulation) - -#define ILocator_put_Modulation(This,Modulation) \ - (This)->lpVtbl -> put_Modulation(This,Modulation) - -#define ILocator_get_SymbolRate(This,Rate) \ - (This)->lpVtbl -> get_SymbolRate(This,Rate) - -#define ILocator_put_SymbolRate(This,Rate) \ - (This)->lpVtbl -> put_SymbolRate(This,Rate) - -#define ILocator_Clone(This,NewLocator) \ - (This)->lpVtbl -> Clone(This,NewLocator) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ILocator_get_CarrierFrequency_Proxy( - ILocator * This, - /* [retval][out] */ long *Frequency); - - -void __RPC_STUB ILocator_get_CarrierFrequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ILocator_put_CarrierFrequency_Proxy( - ILocator * This, - /* [in] */ long Frequency); - - -void __RPC_STUB ILocator_put_CarrierFrequency_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ILocator_get_InnerFEC_Proxy( - ILocator * This, - /* [retval][out] */ FECMethod *FEC); - - -void __RPC_STUB ILocator_get_InnerFEC_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ILocator_put_InnerFEC_Proxy( - ILocator * This, - /* [in] */ FECMethod FEC); - - -void __RPC_STUB ILocator_put_InnerFEC_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ILocator_get_InnerFECRate_Proxy( - ILocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - -void __RPC_STUB ILocator_get_InnerFECRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ILocator_put_InnerFECRate_Proxy( - ILocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - -void __RPC_STUB ILocator_put_InnerFECRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ILocator_get_OuterFEC_Proxy( - ILocator * This, - /* [retval][out] */ FECMethod *FEC); - - -void __RPC_STUB ILocator_get_OuterFEC_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ILocator_put_OuterFEC_Proxy( - ILocator * This, - /* [in] */ FECMethod FEC); - - -void __RPC_STUB ILocator_put_OuterFEC_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ILocator_get_OuterFECRate_Proxy( - ILocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - -void __RPC_STUB ILocator_get_OuterFECRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ILocator_put_OuterFECRate_Proxy( - ILocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - -void __RPC_STUB ILocator_put_OuterFECRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ILocator_get_Modulation_Proxy( - ILocator * This, - /* [retval][out] */ ModulationType *Modulation); - - -void __RPC_STUB ILocator_get_Modulation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ILocator_put_Modulation_Proxy( - ILocator * This, - /* [in] */ ModulationType Modulation); - - -void __RPC_STUB ILocator_put_Modulation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ILocator_get_SymbolRate_Proxy( - ILocator * This, - /* [retval][out] */ long *Rate); - - -void __RPC_STUB ILocator_get_SymbolRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ILocator_put_SymbolRate_Proxy( - ILocator * This, - /* [in] */ long Rate); - - -void __RPC_STUB ILocator_put_SymbolRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ILocator_Clone_Proxy( - ILocator * This, - /* [retval][out] */ ILocator **NewLocator); - - -void __RPC_STUB ILocator_Clone_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ILocator_INTERFACE_DEFINED__ */ - - -#ifndef __IATSCLocator_INTERFACE_DEFINED__ -#define __IATSCLocator_INTERFACE_DEFINED__ - -/* interface IATSCLocator */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][hidden][object] */ - - -EXTERN_C const IID IID_IATSCLocator; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("BF8D986F-8C2B-4131-94D7-4D3D9FCC21EF") - IATSCLocator : public ILocator - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PhysicalChannel( - /* [retval][out] */ long *PhysicalChannel) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PhysicalChannel( - /* [in] */ long PhysicalChannel) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TSID( - /* [retval][out] */ long *TSID) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_TSID( - /* [in] */ long TSID) = 0; - - }; - -#else /* C style interface */ - - typedef struct IATSCLocatorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IATSCLocator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IATSCLocator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IATSCLocator * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IATSCLocator * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IATSCLocator * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IATSCLocator * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IATSCLocator * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CarrierFrequency )( - IATSCLocator * This, - /* [retval][out] */ long *Frequency); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CarrierFrequency )( - IATSCLocator * This, - /* [in] */ long Frequency); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InnerFEC )( - IATSCLocator * This, - /* [retval][out] */ FECMethod *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InnerFEC )( - IATSCLocator * This, - /* [in] */ FECMethod FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InnerFECRate )( - IATSCLocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InnerFECRate )( - IATSCLocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OuterFEC )( - IATSCLocator * This, - /* [retval][out] */ FECMethod *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OuterFEC )( - IATSCLocator * This, - /* [in] */ FECMethod FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OuterFECRate )( - IATSCLocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OuterFECRate )( - IATSCLocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Modulation )( - IATSCLocator * This, - /* [retval][out] */ ModulationType *Modulation); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Modulation )( - IATSCLocator * This, - /* [in] */ ModulationType Modulation); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SymbolRate )( - IATSCLocator * This, - /* [retval][out] */ long *Rate); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SymbolRate )( - IATSCLocator * This, - /* [in] */ long Rate); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IATSCLocator * This, - /* [retval][out] */ ILocator **NewLocator); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PhysicalChannel )( - IATSCLocator * This, - /* [retval][out] */ long *PhysicalChannel); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PhysicalChannel )( - IATSCLocator * This, - /* [in] */ long PhysicalChannel); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( - IATSCLocator * This, - /* [retval][out] */ long *TSID); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TSID )( - IATSCLocator * This, - /* [in] */ long TSID); - - END_INTERFACE - } IATSCLocatorVtbl; - - interface IATSCLocator - { - CONST_VTBL struct IATSCLocatorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IATSCLocator_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IATSCLocator_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IATSCLocator_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IATSCLocator_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IATSCLocator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IATSCLocator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IATSCLocator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IATSCLocator_get_CarrierFrequency(This,Frequency) \ - (This)->lpVtbl -> get_CarrierFrequency(This,Frequency) - -#define IATSCLocator_put_CarrierFrequency(This,Frequency) \ - (This)->lpVtbl -> put_CarrierFrequency(This,Frequency) - -#define IATSCLocator_get_InnerFEC(This,FEC) \ - (This)->lpVtbl -> get_InnerFEC(This,FEC) - -#define IATSCLocator_put_InnerFEC(This,FEC) \ - (This)->lpVtbl -> put_InnerFEC(This,FEC) - -#define IATSCLocator_get_InnerFECRate(This,FEC) \ - (This)->lpVtbl -> get_InnerFECRate(This,FEC) - -#define IATSCLocator_put_InnerFECRate(This,FEC) \ - (This)->lpVtbl -> put_InnerFECRate(This,FEC) - -#define IATSCLocator_get_OuterFEC(This,FEC) \ - (This)->lpVtbl -> get_OuterFEC(This,FEC) - -#define IATSCLocator_put_OuterFEC(This,FEC) \ - (This)->lpVtbl -> put_OuterFEC(This,FEC) - -#define IATSCLocator_get_OuterFECRate(This,FEC) \ - (This)->lpVtbl -> get_OuterFECRate(This,FEC) - -#define IATSCLocator_put_OuterFECRate(This,FEC) \ - (This)->lpVtbl -> put_OuterFECRate(This,FEC) - -#define IATSCLocator_get_Modulation(This,Modulation) \ - (This)->lpVtbl -> get_Modulation(This,Modulation) - -#define IATSCLocator_put_Modulation(This,Modulation) \ - (This)->lpVtbl -> put_Modulation(This,Modulation) - -#define IATSCLocator_get_SymbolRate(This,Rate) \ - (This)->lpVtbl -> get_SymbolRate(This,Rate) - -#define IATSCLocator_put_SymbolRate(This,Rate) \ - (This)->lpVtbl -> put_SymbolRate(This,Rate) - -#define IATSCLocator_Clone(This,NewLocator) \ - (This)->lpVtbl -> Clone(This,NewLocator) - - -#define IATSCLocator_get_PhysicalChannel(This,PhysicalChannel) \ - (This)->lpVtbl -> get_PhysicalChannel(This,PhysicalChannel) - -#define IATSCLocator_put_PhysicalChannel(This,PhysicalChannel) \ - (This)->lpVtbl -> put_PhysicalChannel(This,PhysicalChannel) - -#define IATSCLocator_get_TSID(This,TSID) \ - (This)->lpVtbl -> get_TSID(This,TSID) - -#define IATSCLocator_put_TSID(This,TSID) \ - (This)->lpVtbl -> put_TSID(This,TSID) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IATSCLocator_get_PhysicalChannel_Proxy( - IATSCLocator * This, - /* [retval][out] */ long *PhysicalChannel); - - -void __RPC_STUB IATSCLocator_get_PhysicalChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IATSCLocator_put_PhysicalChannel_Proxy( - IATSCLocator * This, - /* [in] */ long PhysicalChannel); - - -void __RPC_STUB IATSCLocator_put_PhysicalChannel_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IATSCLocator_get_TSID_Proxy( - IATSCLocator * This, - /* [retval][out] */ long *TSID); - - -void __RPC_STUB IATSCLocator_get_TSID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IATSCLocator_put_TSID_Proxy( - IATSCLocator * This, - /* [in] */ long TSID); - - -void __RPC_STUB IATSCLocator_put_TSID_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IATSCLocator_INTERFACE_DEFINED__ */ - - -#ifndef __IDVBTLocator_INTERFACE_DEFINED__ -#define __IDVBTLocator_INTERFACE_DEFINED__ - -/* interface IDVBTLocator */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][hidden][object] */ - - -EXTERN_C const IID IID_IDVBTLocator; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("8664DA16-DDA2-42ac-926A-C18F9127C302") - IDVBTLocator : public ILocator - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Bandwidth( - /* [retval][out] */ long *BandWidthVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Bandwidth( - /* [in] */ long BandwidthVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LPInnerFEC( - /* [retval][out] */ FECMethod *FEC) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LPInnerFEC( - /* [in] */ FECMethod FEC) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LPInnerFECRate( - /* [retval][out] */ BinaryConvolutionCodeRate *FEC) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LPInnerFECRate( - /* [in] */ BinaryConvolutionCodeRate FEC) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HAlpha( - /* [retval][out] */ HierarchyAlpha *Alpha) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_HAlpha( - /* [in] */ HierarchyAlpha Alpha) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Guard( - /* [retval][out] */ GuardInterval *GI) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Guard( - /* [in] */ GuardInterval GI) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Mode( - /* [retval][out] */ TransmissionMode *mode) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Mode( - /* [in] */ TransmissionMode mode) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OtherFrequencyInUse( - /* [retval][out] */ VARIANT_BOOL *OtherFrequencyInUseVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OtherFrequencyInUse( - /* [in] */ VARIANT_BOOL OtherFrequencyInUseVal) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDVBTLocatorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDVBTLocator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDVBTLocator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDVBTLocator * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDVBTLocator * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDVBTLocator * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDVBTLocator * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDVBTLocator * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CarrierFrequency )( - IDVBTLocator * This, - /* [retval][out] */ long *Frequency); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CarrierFrequency )( - IDVBTLocator * This, - /* [in] */ long Frequency); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InnerFEC )( - IDVBTLocator * This, - /* [retval][out] */ FECMethod *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InnerFEC )( - IDVBTLocator * This, - /* [in] */ FECMethod FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InnerFECRate )( - IDVBTLocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InnerFECRate )( - IDVBTLocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OuterFEC )( - IDVBTLocator * This, - /* [retval][out] */ FECMethod *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OuterFEC )( - IDVBTLocator * This, - /* [in] */ FECMethod FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OuterFECRate )( - IDVBTLocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OuterFECRate )( - IDVBTLocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Modulation )( - IDVBTLocator * This, - /* [retval][out] */ ModulationType *Modulation); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Modulation )( - IDVBTLocator * This, - /* [in] */ ModulationType Modulation); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SymbolRate )( - IDVBTLocator * This, - /* [retval][out] */ long *Rate); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SymbolRate )( - IDVBTLocator * This, - /* [in] */ long Rate); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IDVBTLocator * This, - /* [retval][out] */ ILocator **NewLocator); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Bandwidth )( - IDVBTLocator * This, - /* [retval][out] */ long *BandWidthVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Bandwidth )( - IDVBTLocator * This, - /* [in] */ long BandwidthVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LPInnerFEC )( - IDVBTLocator * This, - /* [retval][out] */ FECMethod *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LPInnerFEC )( - IDVBTLocator * This, - /* [in] */ FECMethod FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LPInnerFECRate )( - IDVBTLocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LPInnerFECRate )( - IDVBTLocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HAlpha )( - IDVBTLocator * This, - /* [retval][out] */ HierarchyAlpha *Alpha); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HAlpha )( - IDVBTLocator * This, - /* [in] */ HierarchyAlpha Alpha); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Guard )( - IDVBTLocator * This, - /* [retval][out] */ GuardInterval *GI); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Guard )( - IDVBTLocator * This, - /* [in] */ GuardInterval GI); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Mode )( - IDVBTLocator * This, - /* [retval][out] */ TransmissionMode *mode); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Mode )( - IDVBTLocator * This, - /* [in] */ TransmissionMode mode); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OtherFrequencyInUse )( - IDVBTLocator * This, - /* [retval][out] */ VARIANT_BOOL *OtherFrequencyInUseVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OtherFrequencyInUse )( - IDVBTLocator * This, - /* [in] */ VARIANT_BOOL OtherFrequencyInUseVal); - - END_INTERFACE - } IDVBTLocatorVtbl; - - interface IDVBTLocator - { - CONST_VTBL struct IDVBTLocatorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDVBTLocator_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDVBTLocator_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDVBTLocator_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDVBTLocator_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDVBTLocator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDVBTLocator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDVBTLocator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDVBTLocator_get_CarrierFrequency(This,Frequency) \ - (This)->lpVtbl -> get_CarrierFrequency(This,Frequency) - -#define IDVBTLocator_put_CarrierFrequency(This,Frequency) \ - (This)->lpVtbl -> put_CarrierFrequency(This,Frequency) - -#define IDVBTLocator_get_InnerFEC(This,FEC) \ - (This)->lpVtbl -> get_InnerFEC(This,FEC) - -#define IDVBTLocator_put_InnerFEC(This,FEC) \ - (This)->lpVtbl -> put_InnerFEC(This,FEC) - -#define IDVBTLocator_get_InnerFECRate(This,FEC) \ - (This)->lpVtbl -> get_InnerFECRate(This,FEC) - -#define IDVBTLocator_put_InnerFECRate(This,FEC) \ - (This)->lpVtbl -> put_InnerFECRate(This,FEC) - -#define IDVBTLocator_get_OuterFEC(This,FEC) \ - (This)->lpVtbl -> get_OuterFEC(This,FEC) - -#define IDVBTLocator_put_OuterFEC(This,FEC) \ - (This)->lpVtbl -> put_OuterFEC(This,FEC) - -#define IDVBTLocator_get_OuterFECRate(This,FEC) \ - (This)->lpVtbl -> get_OuterFECRate(This,FEC) - -#define IDVBTLocator_put_OuterFECRate(This,FEC) \ - (This)->lpVtbl -> put_OuterFECRate(This,FEC) - -#define IDVBTLocator_get_Modulation(This,Modulation) \ - (This)->lpVtbl -> get_Modulation(This,Modulation) - -#define IDVBTLocator_put_Modulation(This,Modulation) \ - (This)->lpVtbl -> put_Modulation(This,Modulation) - -#define IDVBTLocator_get_SymbolRate(This,Rate) \ - (This)->lpVtbl -> get_SymbolRate(This,Rate) - -#define IDVBTLocator_put_SymbolRate(This,Rate) \ - (This)->lpVtbl -> put_SymbolRate(This,Rate) - -#define IDVBTLocator_Clone(This,NewLocator) \ - (This)->lpVtbl -> Clone(This,NewLocator) - - -#define IDVBTLocator_get_Bandwidth(This,BandWidthVal) \ - (This)->lpVtbl -> get_Bandwidth(This,BandWidthVal) - -#define IDVBTLocator_put_Bandwidth(This,BandwidthVal) \ - (This)->lpVtbl -> put_Bandwidth(This,BandwidthVal) - -#define IDVBTLocator_get_LPInnerFEC(This,FEC) \ - (This)->lpVtbl -> get_LPInnerFEC(This,FEC) - -#define IDVBTLocator_put_LPInnerFEC(This,FEC) \ - (This)->lpVtbl -> put_LPInnerFEC(This,FEC) - -#define IDVBTLocator_get_LPInnerFECRate(This,FEC) \ - (This)->lpVtbl -> get_LPInnerFECRate(This,FEC) - -#define IDVBTLocator_put_LPInnerFECRate(This,FEC) \ - (This)->lpVtbl -> put_LPInnerFECRate(This,FEC) - -#define IDVBTLocator_get_HAlpha(This,Alpha) \ - (This)->lpVtbl -> get_HAlpha(This,Alpha) - -#define IDVBTLocator_put_HAlpha(This,Alpha) \ - (This)->lpVtbl -> put_HAlpha(This,Alpha) - -#define IDVBTLocator_get_Guard(This,GI) \ - (This)->lpVtbl -> get_Guard(This,GI) - -#define IDVBTLocator_put_Guard(This,GI) \ - (This)->lpVtbl -> put_Guard(This,GI) - -#define IDVBTLocator_get_Mode(This,mode) \ - (This)->lpVtbl -> get_Mode(This,mode) - -#define IDVBTLocator_put_Mode(This,mode) \ - (This)->lpVtbl -> put_Mode(This,mode) - -#define IDVBTLocator_get_OtherFrequencyInUse(This,OtherFrequencyInUseVal) \ - (This)->lpVtbl -> get_OtherFrequencyInUse(This,OtherFrequencyInUseVal) - -#define IDVBTLocator_put_OtherFrequencyInUse(This,OtherFrequencyInUseVal) \ - (This)->lpVtbl -> put_OtherFrequencyInUse(This,OtherFrequencyInUseVal) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_get_Bandwidth_Proxy( - IDVBTLocator * This, - /* [retval][out] */ long *BandWidthVal); - - -void __RPC_STUB IDVBTLocator_get_Bandwidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_put_Bandwidth_Proxy( - IDVBTLocator * This, - /* [in] */ long BandwidthVal); - - -void __RPC_STUB IDVBTLocator_put_Bandwidth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_get_LPInnerFEC_Proxy( - IDVBTLocator * This, - /* [retval][out] */ FECMethod *FEC); - - -void __RPC_STUB IDVBTLocator_get_LPInnerFEC_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_put_LPInnerFEC_Proxy( - IDVBTLocator * This, - /* [in] */ FECMethod FEC); - - -void __RPC_STUB IDVBTLocator_put_LPInnerFEC_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_get_LPInnerFECRate_Proxy( - IDVBTLocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - -void __RPC_STUB IDVBTLocator_get_LPInnerFECRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_put_LPInnerFECRate_Proxy( - IDVBTLocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - -void __RPC_STUB IDVBTLocator_put_LPInnerFECRate_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_get_HAlpha_Proxy( - IDVBTLocator * This, - /* [retval][out] */ HierarchyAlpha *Alpha); - - -void __RPC_STUB IDVBTLocator_get_HAlpha_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_put_HAlpha_Proxy( - IDVBTLocator * This, - /* [in] */ HierarchyAlpha Alpha); - - -void __RPC_STUB IDVBTLocator_put_HAlpha_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_get_Guard_Proxy( - IDVBTLocator * This, - /* [retval][out] */ GuardInterval *GI); - - -void __RPC_STUB IDVBTLocator_get_Guard_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_put_Guard_Proxy( - IDVBTLocator * This, - /* [in] */ GuardInterval GI); - - -void __RPC_STUB IDVBTLocator_put_Guard_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_get_Mode_Proxy( - IDVBTLocator * This, - /* [retval][out] */ TransmissionMode *mode); - - -void __RPC_STUB IDVBTLocator_get_Mode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_put_Mode_Proxy( - IDVBTLocator * This, - /* [in] */ TransmissionMode mode); - - -void __RPC_STUB IDVBTLocator_put_Mode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_get_OtherFrequencyInUse_Proxy( - IDVBTLocator * This, - /* [retval][out] */ VARIANT_BOOL *OtherFrequencyInUseVal); - - -void __RPC_STUB IDVBTLocator_get_OtherFrequencyInUse_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBTLocator_put_OtherFrequencyInUse_Proxy( - IDVBTLocator * This, - /* [in] */ VARIANT_BOOL OtherFrequencyInUseVal); - - -void __RPC_STUB IDVBTLocator_put_OtherFrequencyInUse_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDVBTLocator_INTERFACE_DEFINED__ */ - - -#ifndef __IDVBSLocator_INTERFACE_DEFINED__ -#define __IDVBSLocator_INTERFACE_DEFINED__ - -/* interface IDVBSLocator */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][hidden][object] */ - - -EXTERN_C const IID IID_IDVBSLocator; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("3D7C353C-0D04-45f1-A742-F97CC1188DC8") - IDVBSLocator : public ILocator - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SignalPolarisation( - /* [retval][out] */ Polarisation *PolarisationVal) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SignalPolarisation( - /* [in] */ Polarisation PolarisationVal) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_WestPosition( - /* [retval][out] */ VARIANT_BOOL *WestLongitude) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_WestPosition( - /* [in] */ VARIANT_BOOL WestLongitude) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OrbitalPosition( - /* [retval][out] */ long *longitude) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OrbitalPosition( - /* [in] */ long longitude) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Azimuth( - /* [retval][out] */ long *Azimuth) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Azimuth( - /* [in] */ long Azimuth) = 0; - - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Elevation( - /* [retval][out] */ long *Elevation) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Elevation( - /* [in] */ long Elevation) = 0; - - }; - -#else /* C style interface */ - - typedef struct IDVBSLocatorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDVBSLocator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDVBSLocator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDVBSLocator * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDVBSLocator * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDVBSLocator * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDVBSLocator * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDVBSLocator * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CarrierFrequency )( - IDVBSLocator * This, - /* [retval][out] */ long *Frequency); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CarrierFrequency )( - IDVBSLocator * This, - /* [in] */ long Frequency); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InnerFEC )( - IDVBSLocator * This, - /* [retval][out] */ FECMethod *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InnerFEC )( - IDVBSLocator * This, - /* [in] */ FECMethod FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InnerFECRate )( - IDVBSLocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InnerFECRate )( - IDVBSLocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OuterFEC )( - IDVBSLocator * This, - /* [retval][out] */ FECMethod *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OuterFEC )( - IDVBSLocator * This, - /* [in] */ FECMethod FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OuterFECRate )( - IDVBSLocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OuterFECRate )( - IDVBSLocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Modulation )( - IDVBSLocator * This, - /* [retval][out] */ ModulationType *Modulation); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Modulation )( - IDVBSLocator * This, - /* [in] */ ModulationType Modulation); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SymbolRate )( - IDVBSLocator * This, - /* [retval][out] */ long *Rate); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SymbolRate )( - IDVBSLocator * This, - /* [in] */ long Rate); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IDVBSLocator * This, - /* [retval][out] */ ILocator **NewLocator); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignalPolarisation )( - IDVBSLocator * This, - /* [retval][out] */ Polarisation *PolarisationVal); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SignalPolarisation )( - IDVBSLocator * This, - /* [in] */ Polarisation PolarisationVal); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WestPosition )( - IDVBSLocator * This, - /* [retval][out] */ VARIANT_BOOL *WestLongitude); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_WestPosition )( - IDVBSLocator * This, - /* [in] */ VARIANT_BOOL WestLongitude); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OrbitalPosition )( - IDVBSLocator * This, - /* [retval][out] */ long *longitude); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OrbitalPosition )( - IDVBSLocator * This, - /* [in] */ long longitude); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Azimuth )( - IDVBSLocator * This, - /* [retval][out] */ long *Azimuth); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Azimuth )( - IDVBSLocator * This, - /* [in] */ long Azimuth); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Elevation )( - IDVBSLocator * This, - /* [retval][out] */ long *Elevation); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Elevation )( - IDVBSLocator * This, - /* [in] */ long Elevation); - - END_INTERFACE - } IDVBSLocatorVtbl; - - interface IDVBSLocator - { - CONST_VTBL struct IDVBSLocatorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDVBSLocator_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDVBSLocator_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDVBSLocator_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDVBSLocator_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDVBSLocator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDVBSLocator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDVBSLocator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDVBSLocator_get_CarrierFrequency(This,Frequency) \ - (This)->lpVtbl -> get_CarrierFrequency(This,Frequency) - -#define IDVBSLocator_put_CarrierFrequency(This,Frequency) \ - (This)->lpVtbl -> put_CarrierFrequency(This,Frequency) - -#define IDVBSLocator_get_InnerFEC(This,FEC) \ - (This)->lpVtbl -> get_InnerFEC(This,FEC) - -#define IDVBSLocator_put_InnerFEC(This,FEC) \ - (This)->lpVtbl -> put_InnerFEC(This,FEC) - -#define IDVBSLocator_get_InnerFECRate(This,FEC) \ - (This)->lpVtbl -> get_InnerFECRate(This,FEC) - -#define IDVBSLocator_put_InnerFECRate(This,FEC) \ - (This)->lpVtbl -> put_InnerFECRate(This,FEC) - -#define IDVBSLocator_get_OuterFEC(This,FEC) \ - (This)->lpVtbl -> get_OuterFEC(This,FEC) - -#define IDVBSLocator_put_OuterFEC(This,FEC) \ - (This)->lpVtbl -> put_OuterFEC(This,FEC) - -#define IDVBSLocator_get_OuterFECRate(This,FEC) \ - (This)->lpVtbl -> get_OuterFECRate(This,FEC) - -#define IDVBSLocator_put_OuterFECRate(This,FEC) \ - (This)->lpVtbl -> put_OuterFECRate(This,FEC) - -#define IDVBSLocator_get_Modulation(This,Modulation) \ - (This)->lpVtbl -> get_Modulation(This,Modulation) - -#define IDVBSLocator_put_Modulation(This,Modulation) \ - (This)->lpVtbl -> put_Modulation(This,Modulation) - -#define IDVBSLocator_get_SymbolRate(This,Rate) \ - (This)->lpVtbl -> get_SymbolRate(This,Rate) - -#define IDVBSLocator_put_SymbolRate(This,Rate) \ - (This)->lpVtbl -> put_SymbolRate(This,Rate) - -#define IDVBSLocator_Clone(This,NewLocator) \ - (This)->lpVtbl -> Clone(This,NewLocator) - - -#define IDVBSLocator_get_SignalPolarisation(This,PolarisationVal) \ - (This)->lpVtbl -> get_SignalPolarisation(This,PolarisationVal) - -#define IDVBSLocator_put_SignalPolarisation(This,PolarisationVal) \ - (This)->lpVtbl -> put_SignalPolarisation(This,PolarisationVal) - -#define IDVBSLocator_get_WestPosition(This,WestLongitude) \ - (This)->lpVtbl -> get_WestPosition(This,WestLongitude) - -#define IDVBSLocator_put_WestPosition(This,WestLongitude) \ - (This)->lpVtbl -> put_WestPosition(This,WestLongitude) - -#define IDVBSLocator_get_OrbitalPosition(This,longitude) \ - (This)->lpVtbl -> get_OrbitalPosition(This,longitude) - -#define IDVBSLocator_put_OrbitalPosition(This,longitude) \ - (This)->lpVtbl -> put_OrbitalPosition(This,longitude) - -#define IDVBSLocator_get_Azimuth(This,Azimuth) \ - (This)->lpVtbl -> get_Azimuth(This,Azimuth) - -#define IDVBSLocator_put_Azimuth(This,Azimuth) \ - (This)->lpVtbl -> put_Azimuth(This,Azimuth) - -#define IDVBSLocator_get_Elevation(This,Elevation) \ - (This)->lpVtbl -> get_Elevation(This,Elevation) - -#define IDVBSLocator_put_Elevation(This,Elevation) \ - (This)->lpVtbl -> put_Elevation(This,Elevation) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBSLocator_get_SignalPolarisation_Proxy( - IDVBSLocator * This, - /* [retval][out] */ Polarisation *PolarisationVal); - - -void __RPC_STUB IDVBSLocator_get_SignalPolarisation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBSLocator_put_SignalPolarisation_Proxy( - IDVBSLocator * This, - /* [in] */ Polarisation PolarisationVal); - - -void __RPC_STUB IDVBSLocator_put_SignalPolarisation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBSLocator_get_WestPosition_Proxy( - IDVBSLocator * This, - /* [retval][out] */ VARIANT_BOOL *WestLongitude); - - -void __RPC_STUB IDVBSLocator_get_WestPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBSLocator_put_WestPosition_Proxy( - IDVBSLocator * This, - /* [in] */ VARIANT_BOOL WestLongitude); - - -void __RPC_STUB IDVBSLocator_put_WestPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBSLocator_get_OrbitalPosition_Proxy( - IDVBSLocator * This, - /* [retval][out] */ long *longitude); - - -void __RPC_STUB IDVBSLocator_get_OrbitalPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBSLocator_put_OrbitalPosition_Proxy( - IDVBSLocator * This, - /* [in] */ long longitude); - - -void __RPC_STUB IDVBSLocator_put_OrbitalPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBSLocator_get_Azimuth_Proxy( - IDVBSLocator * This, - /* [retval][out] */ long *Azimuth); - - -void __RPC_STUB IDVBSLocator_get_Azimuth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBSLocator_put_Azimuth_Proxy( - IDVBSLocator * This, - /* [in] */ long Azimuth); - - -void __RPC_STUB IDVBSLocator_put_Azimuth_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IDVBSLocator_get_Elevation_Proxy( - IDVBSLocator * This, - /* [retval][out] */ long *Elevation); - - -void __RPC_STUB IDVBSLocator_get_Elevation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IDVBSLocator_put_Elevation_Proxy( - IDVBSLocator * This, - /* [in] */ long Elevation); - - -void __RPC_STUB IDVBSLocator_put_Elevation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IDVBSLocator_INTERFACE_DEFINED__ */ - - -#ifndef __IDVBCLocator_INTERFACE_DEFINED__ -#define __IDVBCLocator_INTERFACE_DEFINED__ - -/* interface IDVBCLocator */ -/* [unique][helpstring][oleautomation][dual][uuid][nonextensible][hidden][object] */ - - -EXTERN_C const IID IID_IDVBCLocator; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("6E42F36E-1DD2-43c4-9F78-69D25AE39034") - IDVBCLocator : public ILocator - { - public: - }; - -#else /* C style interface */ - - typedef struct IDVBCLocatorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IDVBCLocator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IDVBCLocator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IDVBCLocator * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IDVBCLocator * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IDVBCLocator * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IDVBCLocator * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IDVBCLocator * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CarrierFrequency )( - IDVBCLocator * This, - /* [retval][out] */ long *Frequency); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CarrierFrequency )( - IDVBCLocator * This, - /* [in] */ long Frequency); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InnerFEC )( - IDVBCLocator * This, - /* [retval][out] */ FECMethod *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InnerFEC )( - IDVBCLocator * This, - /* [in] */ FECMethod FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InnerFECRate )( - IDVBCLocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InnerFECRate )( - IDVBCLocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OuterFEC )( - IDVBCLocator * This, - /* [retval][out] */ FECMethod *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OuterFEC )( - IDVBCLocator * This, - /* [in] */ FECMethod FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OuterFECRate )( - IDVBCLocator * This, - /* [retval][out] */ BinaryConvolutionCodeRate *FEC); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OuterFECRate )( - IDVBCLocator * This, - /* [in] */ BinaryConvolutionCodeRate FEC); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Modulation )( - IDVBCLocator * This, - /* [retval][out] */ ModulationType *Modulation); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Modulation )( - IDVBCLocator * This, - /* [in] */ ModulationType Modulation); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SymbolRate )( - IDVBCLocator * This, - /* [retval][out] */ long *Rate); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SymbolRate )( - IDVBCLocator * This, - /* [in] */ long Rate); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( - IDVBCLocator * This, - /* [retval][out] */ ILocator **NewLocator); - - END_INTERFACE - } IDVBCLocatorVtbl; - - interface IDVBCLocator - { - CONST_VTBL struct IDVBCLocatorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IDVBCLocator_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IDVBCLocator_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IDVBCLocator_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IDVBCLocator_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IDVBCLocator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IDVBCLocator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IDVBCLocator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IDVBCLocator_get_CarrierFrequency(This,Frequency) \ - (This)->lpVtbl -> get_CarrierFrequency(This,Frequency) - -#define IDVBCLocator_put_CarrierFrequency(This,Frequency) \ - (This)->lpVtbl -> put_CarrierFrequency(This,Frequency) - -#define IDVBCLocator_get_InnerFEC(This,FEC) \ - (This)->lpVtbl -> get_InnerFEC(This,FEC) - -#define IDVBCLocator_put_InnerFEC(This,FEC) \ - (This)->lpVtbl -> put_InnerFEC(This,FEC) - -#define IDVBCLocator_get_InnerFECRate(This,FEC) \ - (This)->lpVtbl -> get_InnerFECRate(This,FEC) - -#define IDVBCLocator_put_InnerFECRate(This,FEC) \ - (This)->lpVtbl -> put_InnerFECRate(This,FEC) - -#define IDVBCLocator_get_OuterFEC(This,FEC) \ - (This)->lpVtbl -> get_OuterFEC(This,FEC) - -#define IDVBCLocator_put_OuterFEC(This,FEC) \ - (This)->lpVtbl -> put_OuterFEC(This,FEC) - -#define IDVBCLocator_get_OuterFECRate(This,FEC) \ - (This)->lpVtbl -> get_OuterFECRate(This,FEC) - -#define IDVBCLocator_put_OuterFECRate(This,FEC) \ - (This)->lpVtbl -> put_OuterFECRate(This,FEC) - -#define IDVBCLocator_get_Modulation(This,Modulation) \ - (This)->lpVtbl -> get_Modulation(This,Modulation) - -#define IDVBCLocator_put_Modulation(This,Modulation) \ - (This)->lpVtbl -> put_Modulation(This,Modulation) - -#define IDVBCLocator_get_SymbolRate(This,Rate) \ - (This)->lpVtbl -> get_SymbolRate(This,Rate) - -#define IDVBCLocator_put_SymbolRate(This,Rate) \ - (This)->lpVtbl -> put_SymbolRate(This,Rate) - -#define IDVBCLocator_Clone(This,NewLocator) \ - (This)->lpVtbl -> Clone(This,NewLocator) - - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - - -#endif /* __IDVBCLocator_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( - GUID EventID) = 0; - - }; - -#else /* C style interface */ - - typedef struct IBroadcastEventVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IBroadcastEvent * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IBroadcastEvent * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IBroadcastEvent * This); - - HRESULT ( STDMETHODCALLTYPE *Fire )( - IBroadcastEvent * This, - 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 */ - - - -HRESULT STDMETHODCALLTYPE IBroadcastEvent_Fire_Proxy( - IBroadcastEvent * This, - GUID EventID); - - -void __RPC_STUB IBroadcastEvent_Fire_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IBroadcastEvent_INTERFACE_DEFINED__ */ - - - -#ifndef __TunerLib_LIBRARY_DEFINED__ -#define __TunerLib_LIBRARY_DEFINED__ - -/* library TunerLib */ -/* [helpstring][version][uuid] */ - -#define SID_SBroadcastEventService CLSID_BroadcastEventService - -EXTERN_C const IID LIBID_TunerLib; - -EXTERN_C const CLSID CLSID_SystemTuningSpaces; - -#ifdef __cplusplus - -class DECLSPEC_UUID("D02AAC50-027E-11d3-9D8E-00C04F72D980") -SystemTuningSpaces; -#endif - -EXTERN_C const CLSID CLSID_TuningSpace; - -#ifdef __cplusplus - -class DECLSPEC_UUID("5FFDC5E6-B83A-4b55-B6E8-C69E765FE9DB") -TuningSpace; -#endif - -EXTERN_C const CLSID CLSID_ATSCTuningSpace; - -#ifdef __cplusplus - -class DECLSPEC_UUID("A2E30750-6C3D-11d3-B653-00C04F79498E") -ATSCTuningSpace; -#endif - -EXTERN_C const CLSID CLSID_AnalogRadioTuningSpace; - -#ifdef __cplusplus - -class DECLSPEC_UUID("8A674B4C-1F63-11d3-B64C-00C04F79498E") -AnalogRadioTuningSpace; -#endif - -EXTERN_C const CLSID CLSID_AuxInTuningSpace; - -#ifdef __cplusplus - -class DECLSPEC_UUID("F9769A06-7ACA-4e39-9CFB-97BB35F0E77E") -AuxInTuningSpace; -#endif - -EXTERN_C const CLSID CLSID_AnalogTVTuningSpace; - -#ifdef __cplusplus - -class DECLSPEC_UUID("8A674B4D-1F63-11d3-B64C-00C04F79498E") -AnalogTVTuningSpace; -#endif - -EXTERN_C const CLSID CLSID_DVBTuningSpace; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C6B14B32-76AA-4a86-A7AC-5C79AAF58DA7") -DVBTuningSpace; -#endif - -EXTERN_C const CLSID CLSID_DVBSTuningSpace; - -#ifdef __cplusplus - -class DECLSPEC_UUID("B64016F3-C9A2-4066-96F0-BD9563314726") -DVBSTuningSpace; -#endif - -EXTERN_C const CLSID CLSID_ComponentTypes; - -#ifdef __cplusplus - -class DECLSPEC_UUID("A1A2B1C4-0E3A-11d3-9D8E-00C04F72D980") -ComponentTypes; -#endif - -EXTERN_C const CLSID CLSID_ComponentType; - -#ifdef __cplusplus - -class DECLSPEC_UUID("823535A0-0318-11d3-9D8E-00C04F72D980") -ComponentType; -#endif - -EXTERN_C const CLSID CLSID_LanguageComponentType; - -#ifdef __cplusplus - -class DECLSPEC_UUID("1BE49F30-0E1B-11d3-9D8E-00C04F72D980") -LanguageComponentType; -#endif - -EXTERN_C const CLSID CLSID_MPEG2ComponentType; - -#ifdef __cplusplus - -class DECLSPEC_UUID("418008F3-CF67-4668-9628-10DC52BE1D08") -MPEG2ComponentType; -#endif - -EXTERN_C const CLSID CLSID_ATSCComponentType; - -#ifdef __cplusplus - -class DECLSPEC_UUID("A8DCF3D5-0780-4ef4-8A83-2CFFAACB8ACE") -ATSCComponentType; -#endif - -EXTERN_C const CLSID CLSID_Components; - -#ifdef __cplusplus - -class DECLSPEC_UUID("809B6661-94C4-49e6-B6EC-3F0F862215AA") -Components; -#endif - -EXTERN_C const CLSID CLSID_Component; - -#ifdef __cplusplus - -class DECLSPEC_UUID("59DC47A8-116C-11d3-9D8E-00C04F72D980") -Component; -#endif - -EXTERN_C const CLSID CLSID_MPEG2Component; - -#ifdef __cplusplus - -class DECLSPEC_UUID("055CB2D7-2969-45cd-914B-76890722F112") -MPEG2Component; -#endif - -EXTERN_C const CLSID CLSID_TuneRequest; - -#ifdef __cplusplus - -class DECLSPEC_UUID("B46E0D38-AB35-4a06-A137-70576B01B39F") -TuneRequest; -#endif - -EXTERN_C const CLSID CLSID_ChannelTuneRequest; - -#ifdef __cplusplus - -class DECLSPEC_UUID("0369B4E5-45B6-11d3-B650-00C04F79498E") -ChannelTuneRequest; -#endif - -EXTERN_C const CLSID CLSID_ATSCChannelTuneRequest; - -#ifdef __cplusplus - -class DECLSPEC_UUID("0369B4E6-45B6-11d3-B650-00C04F79498E") -ATSCChannelTuneRequest; -#endif - -EXTERN_C const CLSID CLSID_MPEG2TuneRequest; - -#ifdef __cplusplus - -class DECLSPEC_UUID("0955AC62-BF2E-4cba-A2B9-A63F772D46CF") -MPEG2TuneRequest; -#endif - -EXTERN_C const CLSID CLSID_MPEG2TuneRequestFactory; - -#ifdef __cplusplus - -class DECLSPEC_UUID("2C63E4EB-4CEA-41b8-919C-E947EA19A77C") -MPEG2TuneRequestFactory; -#endif - -EXTERN_C const CLSID CLSID_Locator; - -#ifdef __cplusplus - -class DECLSPEC_UUID("0888C883-AC4F-4943-B516-2C38D9B34562") -Locator; -#endif - -EXTERN_C const CLSID CLSID_ATSCLocator; - -#ifdef __cplusplus - -class DECLSPEC_UUID("8872FF1B-98FA-4d7a-8D93-C9F1055F85BB") -ATSCLocator; -#endif - -EXTERN_C const CLSID CLSID_DVBTLocator; - -#ifdef __cplusplus - -class DECLSPEC_UUID("9CD64701-BDF3-4d14-8E03-F12983D86664") -DVBTLocator; -#endif - -EXTERN_C const CLSID CLSID_DVBSLocator; - -#ifdef __cplusplus - -class DECLSPEC_UUID("1DF7D126-4050-47f0-A7CF-4C4CA9241333") -DVBSLocator; -#endif - -EXTERN_C const CLSID CLSID_DVBCLocator; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C531D9FD-9685-4028-8B68-6E1232079F1E") -DVBCLocator; -#endif - -EXTERN_C const CLSID CLSID_DVBTuneRequest; - -#ifdef __cplusplus - -class DECLSPEC_UUID("15D6504A-5494-499c-886C-973C9E53B9F1") -DVBTuneRequest; -#endif - -EXTERN_C const CLSID CLSID_CreatePropBagOnRegKey; - -#ifdef __cplusplus - -class DECLSPEC_UUID("8A674B49-1F63-11d3-B64C-00C04F79498E") -CreatePropBagOnRegKey; -#endif - -EXTERN_C const CLSID CLSID_BroadcastEventService; - -#ifdef __cplusplus - -class DECLSPEC_UUID("0B3FFB92-0919-4934-9D5B-619C719D0202") -BroadcastEventService; -#endif -#endif /* __TunerLib_LIBRARY_DEFINED__ */ - -/* 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 VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * ); -unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); -void __RPC_USER VARIANT_UserFree( unsigned long *, VARIANT * ); - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/tvratings.h b/sdk/dx8sdk/Include/tvratings.h deleted file mode 100644 index 53e6cfea..00000000 --- a/sdk/dx8sdk/Include/tvratings.h +++ /dev/null @@ -1,702 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for tvratings.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __tvratings_h__ -#define __tvratings_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IXDSToRat_FWD_DEFINED__ -#define __IXDSToRat_FWD_DEFINED__ -typedef interface IXDSToRat IXDSToRat; -#endif /* __IXDSToRat_FWD_DEFINED__ */ - - -#ifndef __IEvalRat_FWD_DEFINED__ -#define __IEvalRat_FWD_DEFINED__ -typedef interface IEvalRat IEvalRat; -#endif /* __IEvalRat_FWD_DEFINED__ */ - - -#ifndef __XDSToRat_FWD_DEFINED__ -#define __XDSToRat_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class XDSToRat XDSToRat; -#else -typedef struct XDSToRat XDSToRat; -#endif /* __cplusplus */ - -#endif /* __XDSToRat_FWD_DEFINED__ */ - - -#ifndef __EvalRat_FWD_DEFINED__ -#define __EvalRat_FWD_DEFINED__ - -#ifdef __cplusplus -typedef class EvalRat EvalRat; -#else -typedef struct EvalRat EvalRat; -#endif /* __cplusplus */ - -#endif /* __EvalRat_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "oaidl.h" -#include "ocidl.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_tvratings_0000 */ -/* [local] */ - -typedef /* [public][public][public][public][public][public][public][public] */ -enum __MIDL___MIDL_itf_tvratings_0000_0001 - { MPAA = 0, - US_TV = 1, - Canadian_English = 2, - Canadian_French = 3, - Reserved4 = 4, - System5 = 5, - System6 = 6, - Reserved7 = 7, - TvRat_kSystems = 8, - TvRat_SystemDontKnow = 255 - } EnTvRat_System; - -typedef /* [public][public][public][public][public][public][public][public] */ -enum __MIDL___MIDL_itf_tvratings_0000_0002 - { 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_kLevels = 8, - TvRat_LevelDontKnow = 255 - } EnTvRat_GenericLevel; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_tvratings_0000_0003 - { 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 /* [public] */ -enum __MIDL___MIDL_itf_tvratings_0000_0004 - { 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 /* [public] */ -enum __MIDL___MIDL_itf_tvratings_0000_0005 - { 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 /* [public] */ -enum __MIDL___MIDL_itf_tvratings_0000_0006 - { 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 /* [public] */ -enum __MIDL___MIDL_itf_tvratings_0000_0007 - { 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 /* [public] */ -enum __MIDL___MIDL_itf_tvratings_0000_0008 - { 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 /* [public] */ -enum __MIDL___MIDL_itf_tvratings_0000_0009 - { MPAA_IsBlocked = BfIsBlocked, - MPAA_ValidAttrSubmask = 1 - } BfEnTvRat_Attributes_MPAA; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_tvratings_0000_0010 - { CAE_IsBlocked = BfIsBlocked, - CAE_ValidAttrSubmask = 1 - } BfEnTvRat_Attributes_CAE_TV; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_tvratings_0000_0011 - { CAF_IsBlocked = BfIsBlocked, - CAF_ValidAttrSubmask = 1 - } BfEnTvRat_Attributes_CAF_TV; - - - -extern RPC_IF_HANDLE __MIDL_itf_tvratings_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_tvratings_0000_v0_0_s_ifspec; - -#ifndef __IXDSToRat_INTERFACE_DEFINED__ -#define __IXDSToRat_INTERFACE_DEFINED__ - -/* interface IXDSToRat */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_IXDSToRat; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C5C5C5B0-3ABC-11D6-B25B-00C04FA0C026") - IXDSToRat : public IDispatch - { - public: - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Init( void) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ParseXDSBytePair( - /* [in] */ BYTE byte1, - /* [in] */ BYTE byte2, - /* [out] */ EnTvRat_System *pEnSystem, - /* [out] */ EnTvRat_GenericLevel *pEnLevel, - /* [out] */ LONG *plBfEnAttributes) = 0; - - }; - -#else /* C style interface */ - - typedef struct IXDSToRatVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IXDSToRat * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IXDSToRat * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IXDSToRat * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IXDSToRat * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IXDSToRat * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IXDSToRat * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IXDSToRat * 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); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Init )( - IXDSToRat * This); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ParseXDSBytePair )( - IXDSToRat * This, - /* [in] */ BYTE byte1, - /* [in] */ BYTE byte2, - /* [out] */ EnTvRat_System *pEnSystem, - /* [out] */ EnTvRat_GenericLevel *pEnLevel, - /* [out] */ LONG *plBfEnAttributes); - - END_INTERFACE - } IXDSToRatVtbl; - - interface IXDSToRat - { - CONST_VTBL struct IXDSToRatVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IXDSToRat_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IXDSToRat_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IXDSToRat_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IXDSToRat_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IXDSToRat_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IXDSToRat_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IXDSToRat_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IXDSToRat_Init(This) \ - (This)->lpVtbl -> Init(This) - -#define IXDSToRat_ParseXDSBytePair(This,byte1,byte2,pEnSystem,pEnLevel,plBfEnAttributes) \ - (This)->lpVtbl -> ParseXDSBytePair(This,byte1,byte2,pEnSystem,pEnLevel,plBfEnAttributes) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXDSToRat_Init_Proxy( - IXDSToRat * This); - - -void __RPC_STUB IXDSToRat_Init_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IXDSToRat_ParseXDSBytePair_Proxy( - IXDSToRat * This, - /* [in] */ BYTE byte1, - /* [in] */ BYTE byte2, - /* [out] */ EnTvRat_System *pEnSystem, - /* [out] */ EnTvRat_GenericLevel *pEnLevel, - /* [out] */ LONG *plBfEnAttributes); - - -void __RPC_STUB IXDSToRat_ParseXDSBytePair_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IXDSToRat_INTERFACE_DEFINED__ */ - - -#ifndef __IEvalRat_INTERFACE_DEFINED__ -#define __IEvalRat_INTERFACE_DEFINED__ - -/* interface IEvalRat */ -/* [unique][helpstring][dual][uuid][object] */ - - -EXTERN_C const IID IID_IEvalRat; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("C5C5C5B1-3ABC-11D6-B25B-00C04FA0C026") - IEvalRat : public IDispatch - { - public: - virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BlockedRatingAttributes( - /* [in] */ EnTvRat_System enSystem, - /* [in] */ EnTvRat_GenericLevel enLevel, - /* [retval][out] */ LONG *plbfAttrs) = 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] */ BOOL *pfBlockUnRatedShows) = 0; - - virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BlockUnRated( - /* [in] */ BOOL fBlockUnRatedShows) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MostRestrictiveRating( - /* [in] */ EnTvRat_System enSystem1, - /* [in] */ EnTvRat_GenericLevel enEnLevel1, - /* [in] */ LONG lbfEnAttr1, - /* [in] */ EnTvRat_System enSystem2, - /* [in] */ EnTvRat_GenericLevel enEnLevel2, - /* [in] */ LONG lbfEnAttr2, - /* [out] */ EnTvRat_System *penSystem, - /* [out] */ EnTvRat_GenericLevel *penEnLevel, - /* [out] */ LONG *plbfEnAttr) = 0; - - virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE TestRating( - /* [in] */ EnTvRat_System enShowSystem, - /* [in] */ EnTvRat_GenericLevel enShowLevel, - /* [in] */ LONG lbfEnShowAttributes) = 0; - - }; - -#else /* C style interface */ - - typedef struct IEvalRatVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IEvalRat * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IEvalRat * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IEvalRat * This); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( - IEvalRat * This, - /* [out] */ UINT *pctinfo); - - HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( - IEvalRat * This, - /* [in] */ UINT iTInfo, - /* [in] */ LCID lcid, - /* [out] */ ITypeInfo **ppTInfo); - - HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( - IEvalRat * This, - /* [in] */ REFIID riid, - /* [size_is][in] */ LPOLESTR *rgszNames, - /* [in] */ UINT cNames, - /* [in] */ LCID lcid, - /* [size_is][out] */ DISPID *rgDispId); - - /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( - IEvalRat * 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); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockedRatingAttributes )( - IEvalRat * This, - /* [in] */ EnTvRat_System enSystem, - /* [in] */ EnTvRat_GenericLevel enLevel, - /* [retval][out] */ LONG *plbfAttrs); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockedRatingAttributes )( - IEvalRat * This, - /* [in] */ EnTvRat_System enSystem, - /* [in] */ EnTvRat_GenericLevel enLevel, - /* [in] */ LONG lbfAttrs); - - /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRated )( - IEvalRat * This, - /* [retval][out] */ BOOL *pfBlockUnRatedShows); - - /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRated )( - IEvalRat * This, - /* [in] */ BOOL fBlockUnRatedShows); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MostRestrictiveRating )( - IEvalRat * This, - /* [in] */ EnTvRat_System enSystem1, - /* [in] */ EnTvRat_GenericLevel enEnLevel1, - /* [in] */ LONG lbfEnAttr1, - /* [in] */ EnTvRat_System enSystem2, - /* [in] */ EnTvRat_GenericLevel enEnLevel2, - /* [in] */ LONG lbfEnAttr2, - /* [out] */ EnTvRat_System *penSystem, - /* [out] */ EnTvRat_GenericLevel *penEnLevel, - /* [out] */ LONG *plbfEnAttr); - - /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *TestRating )( - IEvalRat * This, - /* [in] */ EnTvRat_System enShowSystem, - /* [in] */ EnTvRat_GenericLevel enShowLevel, - /* [in] */ LONG lbfEnShowAttributes); - - END_INTERFACE - } IEvalRatVtbl; - - interface IEvalRat - { - CONST_VTBL struct IEvalRatVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IEvalRat_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IEvalRat_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IEvalRat_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IEvalRat_GetTypeInfoCount(This,pctinfo) \ - (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) - -#define IEvalRat_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ - (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) - -#define IEvalRat_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ - (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) - -#define IEvalRat_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ - (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) - - -#define IEvalRat_get_BlockedRatingAttributes(This,enSystem,enLevel,plbfAttrs) \ - (This)->lpVtbl -> get_BlockedRatingAttributes(This,enSystem,enLevel,plbfAttrs) - -#define IEvalRat_put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) \ - (This)->lpVtbl -> put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) - -#define IEvalRat_get_BlockUnRated(This,pfBlockUnRatedShows) \ - (This)->lpVtbl -> get_BlockUnRated(This,pfBlockUnRatedShows) - -#define IEvalRat_put_BlockUnRated(This,fBlockUnRatedShows) \ - (This)->lpVtbl -> put_BlockUnRated(This,fBlockUnRatedShows) - -#define IEvalRat_MostRestrictiveRating(This,enSystem1,enEnLevel1,lbfEnAttr1,enSystem2,enEnLevel2,lbfEnAttr2,penSystem,penEnLevel,plbfEnAttr) \ - (This)->lpVtbl -> MostRestrictiveRating(This,enSystem1,enEnLevel1,lbfEnAttr1,enSystem2,enEnLevel2,lbfEnAttr2,penSystem,penEnLevel,plbfEnAttr) - -#define IEvalRat_TestRating(This,enShowSystem,enShowLevel,lbfEnShowAttributes) \ - (This)->lpVtbl -> TestRating(This,enShowSystem,enShowLevel,lbfEnShowAttributes) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IEvalRat_get_BlockedRatingAttributes_Proxy( - IEvalRat * This, - /* [in] */ EnTvRat_System enSystem, - /* [in] */ EnTvRat_GenericLevel enLevel, - /* [retval][out] */ LONG *plbfAttrs); - - -void __RPC_STUB IEvalRat_get_BlockedRatingAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IEvalRat_put_BlockedRatingAttributes_Proxy( - IEvalRat * This, - /* [in] */ EnTvRat_System enSystem, - /* [in] */ EnTvRat_GenericLevel enLevel, - /* [in] */ LONG lbfAttrs); - - -void __RPC_STUB IEvalRat_put_BlockedRatingAttributes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IEvalRat_get_BlockUnRated_Proxy( - IEvalRat * This, - /* [retval][out] */ BOOL *pfBlockUnRatedShows); - - -void __RPC_STUB IEvalRat_get_BlockUnRated_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IEvalRat_put_BlockUnRated_Proxy( - IEvalRat * This, - /* [in] */ BOOL fBlockUnRatedShows); - - -void __RPC_STUB IEvalRat_put_BlockUnRated_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IEvalRat_MostRestrictiveRating_Proxy( - IEvalRat * This, - /* [in] */ EnTvRat_System enSystem1, - /* [in] */ EnTvRat_GenericLevel enEnLevel1, - /* [in] */ LONG lbfEnAttr1, - /* [in] */ EnTvRat_System enSystem2, - /* [in] */ EnTvRat_GenericLevel enEnLevel2, - /* [in] */ LONG lbfEnAttr2, - /* [out] */ EnTvRat_System *penSystem, - /* [out] */ EnTvRat_GenericLevel *penEnLevel, - /* [out] */ LONG *plbfEnAttr); - - -void __RPC_STUB IEvalRat_MostRestrictiveRating_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IEvalRat_TestRating_Proxy( - IEvalRat * This, - /* [in] */ EnTvRat_System enShowSystem, - /* [in] */ EnTvRat_GenericLevel enShowLevel, - /* [in] */ LONG lbfEnShowAttributes); - - -void __RPC_STUB IEvalRat_TestRating_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IEvalRat_INTERFACE_DEFINED__ */ - - - -#ifndef __TVRATINGSLib_LIBRARY_DEFINED__ -#define __TVRATINGSLib_LIBRARY_DEFINED__ - -/* library TVRATINGSLib */ -/* [helpstring][version][uuid] */ - - -EXTERN_C const IID LIBID_TVRATINGSLib; - -EXTERN_C const CLSID CLSID_XDSToRat; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C5C5C5F0-3ABC-11D6-B25B-00C04FA0C026") -XDSToRat; -#endif - -EXTERN_C const CLSID CLSID_EvalRat; - -#ifdef __cplusplus - -class DECLSPEC_UUID("C5C5C5F1-3ABC-11D6-B25B-00C04FA0C026") -EvalRat; -#endif -#endif /* __TVRATINGSLib_LIBRARY_DEFINED__ */ - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/uuids.h b/sdk/dx8sdk/Include/uuids.h deleted file mode 100644 index c713d0df..00000000 --- a/sdk/dx8sdk/Include/uuids.h +++ /dev/null @@ -1,1527 +0,0 @@ -//------------------------------------------------------------------------------ -// 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. -// - -#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) - -// F72A76E1-EB0A-11D0-ACE4-0000C0CC16BA MEDIATYPE_VBI -OUR_GUID_ENTRY(MEDIATYPE_VBI, -0xf72a76e1, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 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) - -// 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) - -// 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) - -// F72A76E3-EB0A-11D0-ACE4-0000C0CC16BA MEDIASUBTYPE_TELETEXT -OUR_GUID_ENTRY(MEDIASUBTYPE_TELETEXT, -0xf72a76e3, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) - -// 2791D576-8E7A-466F-9E90-5D3F3083738B MEDIASUBTYPE_WSS -OUR_GUID_ENTRY(MEDIASUBTYPE_WSS, -0x2791D576, 0x8E7A, 0x466F, 0x9E, 0x90, 0x5D, 0x3F, 0x30, 0x83, 0x73, 0x8B) - -// 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) - -// 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) - -// {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) - -// {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) - -// {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) - -// {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) - -// {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) - -// -- 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) - - -// -- 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) - -// -// 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) - - - - -// ------------------------------------------------------------------------- -// BDA Network Provider GUIDS -// ------------------------------------------------------------------------- - -// {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) - - - - -// ------------------------------------------------------------------------- -// 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) - -// 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 ) - -#endif // __ENCODER_API_GUIDS__ - -#undef OUR_GUID_ENTRY diff --git a/sdk/dx8sdk/Include/vfwmsgs.h b/sdk/dx8sdk/Include/vfwmsgs.h deleted file mode 100644 index 57852e9f..00000000 --- a/sdk/dx8sdk/Include/vfwmsgs.h +++ /dev/null @@ -1,1365 +0,0 @@ - // no longer used - but might get - // our own facility in the future? - // FacilityNames=(FACILITY_VFW=0x4) - // To add a message: - // - // The MessageId is the number of the message. - // Accepted severities are 'Success' and 'Warning'. - // - // Facility should be FACILITY_ITF (was FACILITY_VFW). - // - // The SymbolicName is the name used in the code to identify the message. - // The text of a message starts the line after 'Language=' and - // ends before a line with only a '.' in column one. -// -// 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 the severity codes -// - - -// -// MessageId: VFW_E_INVALIDMEDIATYPE -// -// MessageText: -// -// An invalid media type was specified.%0 -// -#define VFW_E_INVALIDMEDIATYPE ((HRESULT)0x80040200L) - -// -// MessageId: VFW_E_INVALIDSUBTYPE -// -// MessageText: -// -// An invalid media subtype was specified.%0 -// -#define VFW_E_INVALIDSUBTYPE ((HRESULT)0x80040201L) - -// -// MessageId: VFW_E_NEED_OWNER -// -// MessageText: -// -// This object can only be created as an aggregated object.%0 -// -#define VFW_E_NEED_OWNER ((HRESULT)0x80040202L) - -// -// MessageId: VFW_E_ENUM_OUT_OF_SYNC -// -// MessageText: -// -// The enumerator has become invalid.%0 -// -#define VFW_E_ENUM_OUT_OF_SYNC ((HRESULT)0x80040203L) - -// -// MessageId: VFW_E_ALREADY_CONNECTED -// -// MessageText: -// -// At least one of the pins involved in the operation is already connected.%0 -// -#define VFW_E_ALREADY_CONNECTED ((HRESULT)0x80040204L) - -// -// MessageId: VFW_E_FILTER_ACTIVE -// -// MessageText: -// -// This operation cannot be performed because the filter is active.%0 -// -#define VFW_E_FILTER_ACTIVE ((HRESULT)0x80040205L) - -// -// MessageId: VFW_E_NO_TYPES -// -// MessageText: -// -// One of the specified pins supports no media types.%0 -// -#define VFW_E_NO_TYPES ((HRESULT)0x80040206L) - -// -// MessageId: VFW_E_NO_ACCEPTABLE_TYPES -// -// MessageText: -// -// There is no common media type between these pins.%0 -// -#define VFW_E_NO_ACCEPTABLE_TYPES ((HRESULT)0x80040207L) - -// -// MessageId: VFW_E_INVALID_DIRECTION -// -// MessageText: -// -// Two pins of the same direction cannot be connected together.%0 -// -#define VFW_E_INVALID_DIRECTION ((HRESULT)0x80040208L) - -// -// MessageId: VFW_E_NOT_CONNECTED -// -// MessageText: -// -// The operation cannot be performed because the pins are not connected.%0 -// -#define VFW_E_NOT_CONNECTED ((HRESULT)0x80040209L) - -// -// MessageId: VFW_E_NO_ALLOCATOR -// -// MessageText: -// -// No sample buffer allocator is available.%0 -// -#define VFW_E_NO_ALLOCATOR ((HRESULT)0x8004020AL) - -// -// MessageId: VFW_E_RUNTIME_ERROR -// -// MessageText: -// -// A run-time error occurred.%0 -// -#define VFW_E_RUNTIME_ERROR ((HRESULT)0x8004020BL) - -// -// MessageId: VFW_E_BUFFER_NOTSET -// -// MessageText: -// -// No buffer space has been set.%0 -// -#define VFW_E_BUFFER_NOTSET ((HRESULT)0x8004020CL) - -// -// MessageId: VFW_E_BUFFER_OVERFLOW -// -// MessageText: -// -// The buffer is not big enough.%0 -// -#define VFW_E_BUFFER_OVERFLOW ((HRESULT)0x8004020DL) - -// -// MessageId: VFW_E_BADALIGN -// -// MessageText: -// -// An invalid alignment was specified.%0 -// -#define VFW_E_BADALIGN ((HRESULT)0x8004020EL) - -// -// MessageId: VFW_E_ALREADY_COMMITTED -// -// MessageText: -// -// Cannot change allocated memory while the filter is active.%0 -// -#define VFW_E_ALREADY_COMMITTED ((HRESULT)0x8004020FL) - -// -// MessageId: VFW_E_BUFFERS_OUTSTANDING -// -// MessageText: -// -// One or more buffers are still active.%0 -// -#define VFW_E_BUFFERS_OUTSTANDING ((HRESULT)0x80040210L) - -// -// MessageId: VFW_E_NOT_COMMITTED -// -// MessageText: -// -// Cannot allocate a sample when the allocator is not active.%0 -// -#define VFW_E_NOT_COMMITTED ((HRESULT)0x80040211L) - -// -// MessageId: VFW_E_SIZENOTSET -// -// MessageText: -// -// Cannot allocate memory because no size has been set.%0 -// -#define VFW_E_SIZENOTSET ((HRESULT)0x80040212L) - -// -// MessageId: VFW_E_NO_CLOCK -// -// MessageText: -// -// Cannot lock for synchronization because no clock has been defined.%0 -// -#define VFW_E_NO_CLOCK ((HRESULT)0x80040213L) - -// -// MessageId: VFW_E_NO_SINK -// -// MessageText: -// -// Quality messages could not be sent because no quality sink has been defined.%0 -// -#define VFW_E_NO_SINK ((HRESULT)0x80040214L) - -// -// MessageId: VFW_E_NO_INTERFACE -// -// MessageText: -// -// A required interface has not been implemented.%0 -// -#define VFW_E_NO_INTERFACE ((HRESULT)0x80040215L) - -// -// MessageId: VFW_E_NOT_FOUND -// -// MessageText: -// -// An object or name was not found.%0 -// -#define VFW_E_NOT_FOUND ((HRESULT)0x80040216L) - -// -// MessageId: VFW_E_CANNOT_CONNECT -// -// MessageText: -// -// No combination of intermediate filters could be found to make the connection.%0 -// -#define VFW_E_CANNOT_CONNECT ((HRESULT)0x80040217L) - -// -// MessageId: VFW_E_CANNOT_RENDER -// -// MessageText: -// -// No combination of filters could be found to render the stream.%0 -// -#define VFW_E_CANNOT_RENDER ((HRESULT)0x80040218L) - -// -// MessageId: VFW_E_CHANGING_FORMAT -// -// MessageText: -// -// Could not change formats dynamically.%0 -// -#define VFW_E_CHANGING_FORMAT ((HRESULT)0x80040219L) - -// -// MessageId: VFW_E_NO_COLOR_KEY_SET -// -// MessageText: -// -// No color key has been set.%0 -// -#define VFW_E_NO_COLOR_KEY_SET ((HRESULT)0x8004021AL) - -// -// MessageId: VFW_E_NOT_OVERLAY_CONNECTION -// -// MessageText: -// -// Current pin connection is not using the IOverlay transport.%0 -// -#define VFW_E_NOT_OVERLAY_CONNECTION ((HRESULT)0x8004021BL) - -// -// MessageId: VFW_E_NOT_SAMPLE_CONNECTION -// -// MessageText: -// -// Current pin connection is not using the IMemInputPin transport.%0 -// -#define VFW_E_NOT_SAMPLE_CONNECTION ((HRESULT)0x8004021CL) - -// -// MessageId: VFW_E_PALETTE_SET -// -// MessageText: -// -// Setting a color key would conflict with the palette already set.%0 -// -#define VFW_E_PALETTE_SET ((HRESULT)0x8004021DL) - -// -// MessageId: VFW_E_COLOR_KEY_SET -// -// MessageText: -// -// Setting a palette would conflict with the color key already set.%0 -// -#define VFW_E_COLOR_KEY_SET ((HRESULT)0x8004021EL) - -// -// MessageId: VFW_E_NO_COLOR_KEY_FOUND -// -// MessageText: -// -// No matching color key is available.%0 -// -#define VFW_E_NO_COLOR_KEY_FOUND ((HRESULT)0x8004021FL) - -// -// MessageId: VFW_E_NO_PALETTE_AVAILABLE -// -// MessageText: -// -// No palette is available.%0 -// -#define VFW_E_NO_PALETTE_AVAILABLE ((HRESULT)0x80040220L) - -// -// MessageId: VFW_E_NO_DISPLAY_PALETTE -// -// MessageText: -// -// Display does not use a palette.%0 -// -#define VFW_E_NO_DISPLAY_PALETTE ((HRESULT)0x80040221L) - -// -// MessageId: VFW_E_TOO_MANY_COLORS -// -// MessageText: -// -// Too many colors for the current display settings.%0 -// -#define VFW_E_TOO_MANY_COLORS ((HRESULT)0x80040222L) - -// -// MessageId: VFW_E_STATE_CHANGED -// -// MessageText: -// -// The state changed while waiting to process the sample.%0 -// -#define VFW_E_STATE_CHANGED ((HRESULT)0x80040223L) - -// -// MessageId: VFW_E_NOT_STOPPED -// -// MessageText: -// -// The operation could not be performed because the filter is not stopped.%0 -// -#define VFW_E_NOT_STOPPED ((HRESULT)0x80040224L) - -// -// MessageId: VFW_E_NOT_PAUSED -// -// MessageText: -// -// The operation could not be performed because the filter is not paused.%0 -// -#define VFW_E_NOT_PAUSED ((HRESULT)0x80040225L) - -// -// MessageId: VFW_E_NOT_RUNNING -// -// MessageText: -// -// The operation could not be performed because the filter is not running.%0 -// -#define VFW_E_NOT_RUNNING ((HRESULT)0x80040226L) - -// -// MessageId: VFW_E_WRONG_STATE -// -// MessageText: -// -// The operation could not be performed because the filter is in the wrong state.%0 -// -#define VFW_E_WRONG_STATE ((HRESULT)0x80040227L) - -// -// MessageId: VFW_E_START_TIME_AFTER_END -// -// MessageText: -// -// The sample start time is after the sample end time.%0 -// -#define VFW_E_START_TIME_AFTER_END ((HRESULT)0x80040228L) - -// -// MessageId: VFW_E_INVALID_RECT -// -// MessageText: -// -// The supplied rectangle is invalid.%0 -// -#define VFW_E_INVALID_RECT ((HRESULT)0x80040229L) - -// -// MessageId: VFW_E_TYPE_NOT_ACCEPTED -// -// MessageText: -// -// This pin cannot use the supplied media type.%0 -// -#define VFW_E_TYPE_NOT_ACCEPTED ((HRESULT)0x8004022AL) - -// -// MessageId: VFW_E_SAMPLE_REJECTED -// -// MessageText: -// -// This sample cannot be rendered.%0 -// -#define VFW_E_SAMPLE_REJECTED ((HRESULT)0x8004022BL) - -// -// MessageId: VFW_E_SAMPLE_REJECTED_EOS -// -// MessageText: -// -// This sample cannot be rendered because the end of the stream has been reached.%0 -// -#define VFW_E_SAMPLE_REJECTED_EOS ((HRESULT)0x8004022CL) - -// -// MessageId: VFW_E_DUPLICATE_NAME -// -// MessageText: -// -// An attempt to add a filter with a duplicate name failed.%0 -// -#define VFW_E_DUPLICATE_NAME ((HRESULT)0x8004022DL) - -// -// MessageId: VFW_S_DUPLICATE_NAME -// -// MessageText: -// -// An attempt to add a filter with a duplicate name succeeded with a modified name.%0 -// -#define VFW_S_DUPLICATE_NAME ((HRESULT)0x0004022DL) - -// -// MessageId: VFW_E_TIMEOUT -// -// MessageText: -// -// A time-out has expired.%0 -// -#define VFW_E_TIMEOUT ((HRESULT)0x8004022EL) - -// -// MessageId: VFW_E_INVALID_FILE_FORMAT -// -// MessageText: -// -// The file format is invalid.%0 -// -#define VFW_E_INVALID_FILE_FORMAT ((HRESULT)0x8004022FL) - -// -// MessageId: VFW_E_ENUM_OUT_OF_RANGE -// -// MessageText: -// -// The list has already been exhausted.%0 -// -#define VFW_E_ENUM_OUT_OF_RANGE ((HRESULT)0x80040230L) - -// -// MessageId: VFW_E_CIRCULAR_GRAPH -// -// MessageText: -// -// The filter graph is circular.%0 -// -#define VFW_E_CIRCULAR_GRAPH ((HRESULT)0x80040231L) - -// -// MessageId: VFW_E_NOT_ALLOWED_TO_SAVE -// -// MessageText: -// -// Updates are not allowed in this state.%0 -// -#define VFW_E_NOT_ALLOWED_TO_SAVE ((HRESULT)0x80040232L) - -// -// MessageId: VFW_E_TIME_ALREADY_PASSED -// -// MessageText: -// -// An attempt was made to queue a command for a time in the past.%0 -// -#define VFW_E_TIME_ALREADY_PASSED ((HRESULT)0x80040233L) - -// -// MessageId: VFW_E_ALREADY_CANCELLED -// -// MessageText: -// -// The queued command has already been canceled.%0 -// -#define VFW_E_ALREADY_CANCELLED ((HRESULT)0x80040234L) - -// -// MessageId: VFW_E_CORRUPT_GRAPH_FILE -// -// MessageText: -// -// Cannot render the file because it is corrupt.%0 -// -#define VFW_E_CORRUPT_GRAPH_FILE ((HRESULT)0x80040235L) - -// -// MessageId: VFW_E_ADVISE_ALREADY_SET -// -// MessageText: -// -// An overlay advise link already exists.%0 -// -#define VFW_E_ADVISE_ALREADY_SET ((HRESULT)0x80040236L) - -// -// MessageId: VFW_S_STATE_INTERMEDIATE -// -// MessageText: -// -// The state transition has not completed.%0 -// -#define VFW_S_STATE_INTERMEDIATE ((HRESULT)0x00040237L) - -// -// MessageId: VFW_E_NO_MODEX_AVAILABLE -// -// MessageText: -// -// No full-screen modes are available.%0 -// -#define VFW_E_NO_MODEX_AVAILABLE ((HRESULT)0x80040238L) - -// -// MessageId: VFW_E_NO_ADVISE_SET -// -// MessageText: -// -// This Advise cannot be canceled because it was not successfully set.%0 -// -#define VFW_E_NO_ADVISE_SET ((HRESULT)0x80040239L) - -// -// MessageId: VFW_E_NO_FULLSCREEN -// -// MessageText: -// -// A full-screen mode is not available.%0 -// -#define VFW_E_NO_FULLSCREEN ((HRESULT)0x8004023AL) - -// -// MessageId: VFW_E_IN_FULLSCREEN_MODE -// -// MessageText: -// -// Cannot call IVideoWindow methods while in full-screen mode.%0 -// -#define VFW_E_IN_FULLSCREEN_MODE ((HRESULT)0x8004023BL) - -// -// MessageId: VFW_E_UNKNOWN_FILE_TYPE -// -// MessageText: -// -// The media type of this file is not recognized.%0 -// -#define VFW_E_UNKNOWN_FILE_TYPE ((HRESULT)0x80040240L) - -// -// MessageId: VFW_E_CANNOT_LOAD_SOURCE_FILTER -// -// MessageText: -// -// The source filter for this file could not be loaded.%0 -// -#define VFW_E_CANNOT_LOAD_SOURCE_FILTER ((HRESULT)0x80040241L) - -// -// MessageId: VFW_S_PARTIAL_RENDER -// -// MessageText: -// -// Some of the streams in this movie are in an unsupported format.%0 -// -#define VFW_S_PARTIAL_RENDER ((HRESULT)0x00040242L) - -// -// MessageId: VFW_E_FILE_TOO_SHORT -// -// MessageText: -// -// A file appeared to be incomplete.%0 -// -#define VFW_E_FILE_TOO_SHORT ((HRESULT)0x80040243L) - -// -// MessageId: VFW_E_INVALID_FILE_VERSION -// -// MessageText: -// -// The version number of the file is invalid.%0 -// -#define VFW_E_INVALID_FILE_VERSION ((HRESULT)0x80040244L) - -// -// MessageId: VFW_S_SOME_DATA_IGNORED -// -// MessageText: -// -// The file contained some property settings that were not used.%0 -// -#define VFW_S_SOME_DATA_IGNORED ((HRESULT)0x00040245L) - -// -// MessageId: VFW_S_CONNECTIONS_DEFERRED -// -// MessageText: -// -// Some connections have failed and have been deferred.%0 -// -#define VFW_S_CONNECTIONS_DEFERRED ((HRESULT)0x00040246L) - -// -// MessageId: VFW_E_INVALID_CLSID -// -// MessageText: -// -// This file is corrupt: it contains an invalid class identifier.%0 -// -#define VFW_E_INVALID_CLSID ((HRESULT)0x80040247L) - -// -// MessageId: VFW_E_INVALID_MEDIA_TYPE -// -// MessageText: -// -// This file is corrupt: it contains an invalid media type.%0 -// -#define VFW_E_INVALID_MEDIA_TYPE ((HRESULT)0x80040248L) - - // Message id from WINWarning.H -// -// MessageId: VFW_E_BAD_KEY -// -// MessageText: -// -// A registry entry is corrupt.%0 -// -#define VFW_E_BAD_KEY ((HRESULT)0x800403F2L) - - // Message id from WINWarning.H -// -// MessageId: VFW_S_NO_MORE_ITEMS -// -// MessageText: -// -// The end of the list has been reached.%0 -// -#define VFW_S_NO_MORE_ITEMS ((HRESULT)0x00040103L) - -// -// MessageId: VFW_E_SAMPLE_TIME_NOT_SET -// -// MessageText: -// -// No time stamp has been set for this sample.%0 -// -#define VFW_E_SAMPLE_TIME_NOT_SET ((HRESULT)0x80040249L) - -// -// MessageId: VFW_S_RESOURCE_NOT_NEEDED -// -// MessageText: -// -// The resource specified is no longer needed.%0 -// -#define VFW_S_RESOURCE_NOT_NEEDED ((HRESULT)0x00040250L) - -// -// MessageId: VFW_E_MEDIA_TIME_NOT_SET -// -// MessageText: -// -// No media time stamp has been set for this sample.%0 -// -#define VFW_E_MEDIA_TIME_NOT_SET ((HRESULT)0x80040251L) - -// -// MessageId: VFW_E_NO_TIME_FORMAT_SET -// -// MessageText: -// -// No media time format has been selected.%0 -// -#define VFW_E_NO_TIME_FORMAT_SET ((HRESULT)0x80040252L) - -// -// MessageId: VFW_E_MONO_AUDIO_HW -// -// MessageText: -// -// Cannot change balance because audio device is mono only.%0 -// -#define VFW_E_MONO_AUDIO_HW ((HRESULT)0x80040253L) - -// -// MessageId: VFW_S_MEDIA_TYPE_IGNORED -// -// MessageText: -// -// A connection could not be made with the media type in the persistent graph,%0 -// but has been made with a negotiated media type.%0 -// -#define VFW_S_MEDIA_TYPE_IGNORED ((HRESULT)0x00040254L) - -// -// MessageId: VFW_E_NO_DECOMPRESSOR -// -// MessageText: -// -// Cannot play back the video stream: no suitable decompressor could be found.%0 -// -#define VFW_E_NO_DECOMPRESSOR ((HRESULT)0x80040255L) - -// -// MessageId: VFW_E_NO_AUDIO_HARDWARE -// -// MessageText: -// -// Cannot play back the audio stream: no audio hardware is available, or the hardware is not responding.%0 -// -#define VFW_E_NO_AUDIO_HARDWARE ((HRESULT)0x80040256L) - -// -// MessageId: VFW_S_VIDEO_NOT_RENDERED -// -// MessageText: -// -// Cannot play back the video stream: no suitable decompressor could be found.%0 -// -#define VFW_S_VIDEO_NOT_RENDERED ((HRESULT)0x00040257L) - -// -// MessageId: VFW_S_AUDIO_NOT_RENDERED -// -// MessageText: -// -// Cannot play back the audio stream: no audio hardware is available.%0 -// -#define VFW_S_AUDIO_NOT_RENDERED ((HRESULT)0x00040258L) - -// -// MessageId: VFW_E_RPZA -// -// MessageText: -// -// Cannot play back the video stream: format 'RPZA' is not supported.%0 -// -#define VFW_E_RPZA ((HRESULT)0x80040259L) - -// -// MessageId: VFW_S_RPZA -// -// MessageText: -// -// Cannot play back the video stream: format 'RPZA' is not supported.%0 -// -#define VFW_S_RPZA ((HRESULT)0x0004025AL) - -// -// MessageId: VFW_E_PROCESSOR_NOT_SUITABLE -// -// MessageText: -// -// ActiveMovie cannot play MPEG movies on this processor.%0 -// -#define VFW_E_PROCESSOR_NOT_SUITABLE ((HRESULT)0x8004025BL) - -// -// MessageId: VFW_E_UNSUPPORTED_AUDIO -// -// MessageText: -// -// Cannot play back the audio stream: the audio format is not supported.%0 -// -#define VFW_E_UNSUPPORTED_AUDIO ((HRESULT)0x8004025CL) - -// -// MessageId: VFW_E_UNSUPPORTED_VIDEO -// -// MessageText: -// -// Cannot play back the video stream: the video format is not supported.%0 -// -#define VFW_E_UNSUPPORTED_VIDEO ((HRESULT)0x8004025DL) - -// -// MessageId: VFW_E_MPEG_NOT_CONSTRAINED -// -// MessageText: -// -// ActiveMovie cannot play this video stream because it falls outside the constrained standard.%0 -// -#define VFW_E_MPEG_NOT_CONSTRAINED ((HRESULT)0x8004025EL) - -// -// MessageId: VFW_E_NOT_IN_GRAPH -// -// MessageText: -// -// Cannot perform the requested function on an object that is not in the filter graph.%0 -// -#define VFW_E_NOT_IN_GRAPH ((HRESULT)0x8004025FL) - -// -// MessageId: VFW_S_ESTIMATED -// -// MessageText: -// -// The value returned had to be estimated. It's accuracy can not be guaranteed.%0 -// -#define VFW_S_ESTIMATED ((HRESULT)0x00040260L) - -// -// MessageId: VFW_E_NO_TIME_FORMAT -// -// MessageText: -// -// Cannot get or set time related information on an object that is using a time format of TIME_FORMAT_NONE.%0 -// -#define VFW_E_NO_TIME_FORMAT ((HRESULT)0x80040261L) - -// -// MessageId: VFW_E_READ_ONLY -// -// MessageText: -// -// The connection cannot be made because the stream is read only and the filter alters the data.%0 -// -#define VFW_E_READ_ONLY ((HRESULT)0x80040262L) - -// -// MessageId: VFW_S_RESERVED -// -// MessageText: -// -// This success code is reserved for internal purposes within ActiveMovie.%0 -// -#define VFW_S_RESERVED ((HRESULT)0x00040263L) - -// -// MessageId: VFW_E_BUFFER_UNDERFLOW -// -// MessageText: -// -// The buffer is not full enough.%0 -// -#define VFW_E_BUFFER_UNDERFLOW ((HRESULT)0x80040264L) - -// -// MessageId: VFW_E_UNSUPPORTED_STREAM -// -// MessageText: -// -// Cannot play back the file. The format is not supported.%0 -// -#define VFW_E_UNSUPPORTED_STREAM ((HRESULT)0x80040265L) - -// -// MessageId: VFW_E_NO_TRANSPORT -// -// MessageText: -// -// Pins cannot connect due to not supporting the same transport.%0 -// -#define VFW_E_NO_TRANSPORT ((HRESULT)0x80040266L) - -// -// MessageId: VFW_S_STREAM_OFF -// -// MessageText: -// -// The stream has been turned off.%0 -// -#define VFW_S_STREAM_OFF ((HRESULT)0x00040267L) - -// -// MessageId: VFW_S_CANT_CUE -// -// MessageText: -// -// The graph can't be cued because of lack of or corrupt data.%0 -// -#define VFW_S_CANT_CUE ((HRESULT)0x00040268L) - -// -// MessageId: VFW_E_BAD_VIDEOCD -// -// MessageText: -// -// The Video CD can't be read correctly by the device or is the data is corrupt.%0 -// -#define VFW_E_BAD_VIDEOCD ((HRESULT)0x80040269L) - -// -// MessageId: VFW_S_NO_STOP_TIME -// -// MessageText: -// -// The stop time for the sample was not set.%0 -// -#define VFW_S_NO_STOP_TIME ((HRESULT)0x00040270L) - -// -// MessageId: VFW_E_OUT_OF_VIDEO_MEMORY -// -// MessageText: -// -// There is not enough Video Memory at this display resolution and number of colors. Reducing resolution might help.%0 -// -#define VFW_E_OUT_OF_VIDEO_MEMORY ((HRESULT)0x80040271L) - -// -// MessageId: VFW_E_VP_NEGOTIATION_FAILED -// -// MessageText: -// -// The VideoPort connection negotiation process has failed.%0 -// -#define VFW_E_VP_NEGOTIATION_FAILED ((HRESULT)0x80040272L) - -// -// MessageId: VFW_E_DDRAW_CAPS_NOT_SUITABLE -// -// MessageText: -// -// Either DirectDraw has not been installed or the Video Card capabilities are not suitable. Make sure the display is not in 16 color mode.%0 -// -#define VFW_E_DDRAW_CAPS_NOT_SUITABLE ((HRESULT)0x80040273L) - -// -// MessageId: VFW_E_NO_VP_HARDWARE -// -// MessageText: -// -// No VideoPort hardware is available, or the hardware is not responding.%0 -// -#define VFW_E_NO_VP_HARDWARE ((HRESULT)0x80040274L) - -// -// MessageId: VFW_E_NO_CAPTURE_HARDWARE -// -// MessageText: -// -// No Capture hardware is available, or the hardware is not responding.%0 -// -#define VFW_E_NO_CAPTURE_HARDWARE ((HRESULT)0x80040275L) - -// -// MessageId: VFW_E_DVD_OPERATION_INHIBITED -// -// MessageText: -// -// This User Operation is inhibited by DVD Content at this time.%0 -// -#define VFW_E_DVD_OPERATION_INHIBITED ((HRESULT)0x80040276L) - -// -// MessageId: VFW_E_DVD_INVALIDDOMAIN -// -// MessageText: -// -// This Operation is not permitted in the current domain.%0 -// -#define VFW_E_DVD_INVALIDDOMAIN ((HRESULT)0x80040277L) - -// -// MessageId: VFW_E_DVD_NO_BUTTON -// -// MessageText: -// -// The specified button is invalid or is not present at the current time, or there is no button present at the specified location.%0 -// -#define VFW_E_DVD_NO_BUTTON ((HRESULT)0x80040278L) - -// -// MessageId: VFW_E_DVD_GRAPHNOTREADY -// -// MessageText: -// -// DVD-Video playback graph has not been built yet.%0 -// -#define VFW_E_DVD_GRAPHNOTREADY ((HRESULT)0x80040279L) - -// -// MessageId: VFW_E_DVD_RENDERFAIL -// -// MessageText: -// -// DVD-Video playback graph building failed.%0 -// -#define VFW_E_DVD_RENDERFAIL ((HRESULT)0x8004027AL) - -// -// MessageId: VFW_E_DVD_DECNOTENOUGH -// -// MessageText: -// -// DVD-Video playback graph could not be built due to insufficient decoders.%0 -// -#define VFW_E_DVD_DECNOTENOUGH ((HRESULT)0x8004027BL) - -// -// MessageId: VFW_E_DDRAW_VERSION_NOT_SUITABLE -// -// MessageText: -// -// Version number of DirectDraw not suitable. Make sure to install dx5 or higher version.%0 -// -#define VFW_E_DDRAW_VERSION_NOT_SUITABLE ((HRESULT)0x8004027CL) - -// -// MessageId: VFW_E_COPYPROT_FAILED -// -// MessageText: -// -// Copy protection cannot be enabled. Please make sure any other copy protected content is not being shown now.%0 -// -#define VFW_E_COPYPROT_FAILED ((HRESULT)0x8004027DL) - -// -// MessageId: VFW_S_NOPREVIEWPIN -// -// MessageText: -// -// There was no preview pin available, so the capture pin output is being split to provide both capture and preview.%0 -// -#define VFW_S_NOPREVIEWPIN ((HRESULT)0x0004027EL) - -// -// MessageId: VFW_E_TIME_EXPIRED -// -// MessageText: -// -// This object cannot be used anymore as its time has expired.%0 -// -#define VFW_E_TIME_EXPIRED ((HRESULT)0x8004027FL) - -// -// MessageId: VFW_S_DVD_NON_ONE_SEQUENTIAL -// -// MessageText: -// -// The current title was not a sequential set of chapters (PGC), and the returned timing information might not be continuous.%0 -// -#define VFW_S_DVD_NON_ONE_SEQUENTIAL ((HRESULT)0x00040280L) - -// -// MessageId: VFW_E_DVD_WRONG_SPEED -// -// MessageText: -// -// The operation cannot be performed at the current playback speed.%0 -// -#define VFW_E_DVD_WRONG_SPEED ((HRESULT)0x80040281L) - -// -// MessageId: VFW_E_DVD_MENU_DOES_NOT_EXIST -// -// MessageText: -// -// The specified menu doesn't exist.%0 -// -#define VFW_E_DVD_MENU_DOES_NOT_EXIST ((HRESULT)0x80040282L) - -// -// MessageId: VFW_E_DVD_CMD_CANCELLED -// -// MessageText: -// -// The specified command was either cancelled or no longer exists.%0 -// -#define VFW_E_DVD_CMD_CANCELLED ((HRESULT)0x80040283L) - -// -// MessageId: VFW_E_DVD_STATE_WRONG_VERSION -// -// MessageText: -// -// The data did not contain a recognized version.%0 -// -#define VFW_E_DVD_STATE_WRONG_VERSION ((HRESULT)0x80040284L) - -// -// MessageId: VFW_E_DVD_STATE_CORRUPT -// -// MessageText: -// -// The state data was corrupt.%0 -// -#define VFW_E_DVD_STATE_CORRUPT ((HRESULT)0x80040285L) - -// -// MessageId: VFW_E_DVD_STATE_WRONG_DISC -// -// MessageText: -// -// The state data is from a different disc.%0 -// -#define VFW_E_DVD_STATE_WRONG_DISC ((HRESULT)0x80040286L) - -// -// MessageId: VFW_E_DVD_INCOMPATIBLE_REGION -// -// MessageText: -// -// The region was not compatible with the current drive.%0 -// -#define VFW_E_DVD_INCOMPATIBLE_REGION ((HRESULT)0x80040287L) - -// -// MessageId: VFW_E_DVD_NO_ATTRIBUTES -// -// MessageText: -// -// The requested DVD stream attribute does not exist.%0 -// -#define VFW_E_DVD_NO_ATTRIBUTES ((HRESULT)0x80040288L) - -// -// MessageId: VFW_E_DVD_NO_GOUP_PGC -// -// MessageText: -// -// Currently there is no GoUp (Annex J user function) program chain (PGC).%0 -// -#define VFW_E_DVD_NO_GOUP_PGC ((HRESULT)0x80040289L) - -// -// MessageId: VFW_E_DVD_LOW_PARENTAL_LEVEL -// -// MessageText: -// -// The current parental level was too low.%0 -// -#define VFW_E_DVD_LOW_PARENTAL_LEVEL ((HRESULT)0x8004028AL) - -// -// MessageId: VFW_E_DVD_NOT_IN_KARAOKE_MODE -// -// MessageText: -// -// The current audio is not karaoke content.%0 -// -#define VFW_E_DVD_NOT_IN_KARAOKE_MODE ((HRESULT)0x8004028BL) - -// -// MessageId: VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE -// -// MessageText: -// -// The audio stream did not contain sufficient information to determine the contents of each channel.%0 -// -#define VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE ((HRESULT)0x0004028CL) - -// -// MessageId: VFW_S_DVD_NOT_ACCURATE -// -// MessageText: -// -// The seek into the movie was not frame accurate.%0 -// -#define VFW_S_DVD_NOT_ACCURATE ((HRESULT)0x0004028DL) - -// -// MessageId: VFW_E_FRAME_STEP_UNSUPPORTED -// -// MessageText: -// -// Frame step is not supported on this configuration.%0 -// -#define VFW_E_FRAME_STEP_UNSUPPORTED ((HRESULT)0x8004028EL) - -// -// MessageId: VFW_E_DVD_STREAM_DISABLED -// -// MessageText: -// -// The specified stream is disabled and cannot be selected.%0 -// -#define VFW_E_DVD_STREAM_DISABLED ((HRESULT)0x8004028FL) - -// -// MessageId: VFW_E_DVD_TITLE_UNKNOWN -// -// MessageText: -// -// The operation depends on the current title number, however the navigator has not yet entered the VTSM or the title domains, -// so the 'current' title index is unknown.%0 -// -#define VFW_E_DVD_TITLE_UNKNOWN ((HRESULT)0x80040290L) - -// -// MessageId: VFW_E_DVD_INVALID_DISC -// -// MessageText: -// -// The specified path does not point to a valid DVD disc.%0 -// -#define VFW_E_DVD_INVALID_DISC ((HRESULT)0x80040291L) - -// -// MessageId: VFW_E_DVD_NO_RESUME_INFORMATION -// -// MessageText: -// -// There is currently no resume information.%0 -// -#define VFW_E_DVD_NO_RESUME_INFORMATION ((HRESULT)0x80040292L) - -// -// MessageId: VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD -// -// MessageText: -// -// This thread has already blocked this output pin. There is no need to call IPinFlowControl::Block() again.%0 -// -#define VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD ((HRESULT)0x80040293L) - -// -// MessageId: VFW_E_PIN_ALREADY_BLOCKED -// -// MessageText: -// -// IPinFlowControl::Block() has been called on another thread. The current thread cannot make any assumptions about this pin's block state.%0 -// -#define VFW_E_PIN_ALREADY_BLOCKED ((HRESULT)0x80040294L) - -// -// MessageId: VFW_E_CERTIFICATION_FAILURE -// -// MessageText: -// -// An operation failed due to a certification failure.%0 -// -#define VFW_E_CERTIFICATION_FAILURE ((HRESULT)0x80040295L) - -// -// MessageId: VFW_E_VMR_NOT_IN_MIXER_MODE -// -// MessageText: -// -// The VMR has not yet created a mixing component. That is, IVMRFilterConfig::SetNumberofStreams has not yet been called.%0 -// -#define VFW_E_VMR_NOT_IN_MIXER_MODE ((HRESULT)0x80040296L) - -// -// MessageId: VFW_E_VMR_NO_AP_SUPPLIED -// -// MessageText: -// -// The application has not yet provided the VMR filter with a valid allocator-presenter object.%0 -// -#define VFW_E_VMR_NO_AP_SUPPLIED ((HRESULT)0x80040297L) -// -// MessageId: VFW_E_VMR_NO_DEINTERLACE_HW -// -// MessageText: -// -// The VMR could not find any de-interlacing hardware on the current display device.%0 -// -#define VFW_E_VMR_NO_DEINTERLACE_HW ((HRESULT)0x80040298L) -// -// MessageId: VFW_E_VMR_NO_PROCAMP_HW -// -// MessageText: -// -// The VMR could not find any ProcAmp hardware on the current display device.%0 -// -#define VFW_E_VMR_NO_PROCAMP_HW ((HRESULT)0x80040299L) -// -// MessageId: VFW_E_DVD_VMR9_INCOMPATIBLEDEC -// -// MessageText: -// -// VMR9 does not work with VPE-based hardware decoders.%0 -// -#define VFW_E_DVD_VMR9_INCOMPATIBLEDEC ((HRESULT)0x8004029AL) -// -// MessageId: VFW_E_NO_COPP_HW -// -// MessageText: -// -// The current display device does not support Content Output Protection Protocol (COPP) H/W.%0 -// -#define VFW_E_NO_COPP_HW ((HRESULT)0x8004029BL) -// -// -// E_PROP_SET_UNSUPPORTED and E_PROP_ID_UNSUPPORTED are added here using -// HRESULT_FROM_WIN32() because VC5 doesn't have WinNT's new error codes -// from winerror.h, and because it is more convienent to have them already -// formed as HRESULTs. These should correspond to: -// HRESULT_FROM_WIN32(ERROR_NOT_FOUND) == E_PROP_ID_UNSUPPORTED -// HRESULT_FROM_WIN32(ERROR_SET_NOT_FOUND) == E_PROP_SET_UNSUPPORTED -#if !defined(E_PROP_SET_UNSUPPORTED) -// -// MessageId: E_PROP_SET_UNSUPPORTED -// -// MessageText: -// -// The Specified property set is not supported.%0 -// -#define E_PROP_SET_UNSUPPORTED ((HRESULT)0x80070492L) - -#endif //!defined(E_PROP_SET_UNSUPPORTED) -#if !defined(E_PROP_ID_UNSUPPORTED) -// -// MessageId: E_PROP_ID_UNSUPPORTED -// -// MessageText: -// -// The specified property ID is not supported for the specified property set.%0 -// -#define E_PROP_ID_UNSUPPORTED ((HRESULT)0x80070490L) - -#endif //!defined(E_PROP_ID_UNSUPPORTED) diff --git a/sdk/dx8sdk/Include/vidcap.h b/sdk/dx8sdk/Include/vidcap.h deleted file mode 100644 index 23d810bb..00000000 --- a/sdk/dx8sdk/Include/vidcap.h +++ /dev/null @@ -1,619 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0347 */ -/* Compiler settings for vidcap.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __vidcap_h__ -#define __vidcap_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IKsTopologyInfo_FWD_DEFINED__ -#define __IKsTopologyInfo_FWD_DEFINED__ -typedef interface IKsTopologyInfo IKsTopologyInfo; -#endif /* __IKsTopologyInfo_FWD_DEFINED__ */ - - -#ifndef __ISelector_FWD_DEFINED__ -#define __ISelector_FWD_DEFINED__ -typedef interface ISelector ISelector; -#endif /* __ISelector_FWD_DEFINED__ */ - - -#ifndef __IKsNodeControl_FWD_DEFINED__ -#define __IKsNodeControl_FWD_DEFINED__ -typedef interface IKsNodeControl IKsNodeControl; -#endif /* __IKsNodeControl_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "unknwn.h" -#include "strmif.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_vidcap_0000 */ -/* [local] */ - -#include "ks.h" -#ifndef _KS_ -typedef /* [public][public] */ struct __MIDL___MIDL_itf_vidcap_0000_0001 - { - ULONG FromNode; - ULONG FromNodePin; - ULONG ToNode; - ULONG ToNodePin; - } KSTOPOLOGY_CONNECTION; - -typedef struct __MIDL___MIDL_itf_vidcap_0000_0001 *PKSTOPOLOGY_CONNECTION; - -#endif - - -extern RPC_IF_HANDLE __MIDL_itf_vidcap_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_vidcap_0000_v0_0_s_ifspec; - -#ifndef __IKsTopologyInfo_INTERFACE_DEFINED__ -#define __IKsTopologyInfo_INTERFACE_DEFINED__ - -/* interface IKsTopologyInfo */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IKsTopologyInfo; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("720D4AC0-7533-11D0-A5D6-28DB04C10000") - IKsTopologyInfo : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE get_NumCategories( - /* [out] */ DWORD *pdwNumCategories) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Category( - /* [in] */ DWORD dwIndex, - /* [out] */ GUID *pCategory) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_NumConnections( - /* [out] */ DWORD *pdwNumConnections) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_ConnectionInfo( - /* [in] */ DWORD dwIndex, - /* [out] */ KSTOPOLOGY_CONNECTION *pConnectionInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_NodeName( - /* [in] */ DWORD dwNodeId, - /* [out] */ WCHAR *pwchNodeName, - /* [in] */ DWORD dwBufSize, - /* [out] */ DWORD *pdwNameLen) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_NumNodes( - /* [out] */ DWORD *pdwNumNodes) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_NodeType( - /* [in] */ DWORD dwNodeId, - /* [out] */ GUID *pNodeType) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateNodeInstance( - /* [in] */ DWORD dwNodeId, - /* [in] */ REFIID iid, - /* [out] */ void **ppvObject) = 0; - - }; - -#else /* C style interface */ - - typedef struct IKsTopologyInfoVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IKsTopologyInfo * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IKsTopologyInfo * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IKsTopologyInfo * This); - - HRESULT ( STDMETHODCALLTYPE *get_NumCategories )( - IKsTopologyInfo * This, - /* [out] */ DWORD *pdwNumCategories); - - HRESULT ( STDMETHODCALLTYPE *get_Category )( - IKsTopologyInfo * This, - /* [in] */ DWORD dwIndex, - /* [out] */ GUID *pCategory); - - HRESULT ( STDMETHODCALLTYPE *get_NumConnections )( - IKsTopologyInfo * This, - /* [out] */ DWORD *pdwNumConnections); - - HRESULT ( STDMETHODCALLTYPE *get_ConnectionInfo )( - IKsTopologyInfo * This, - /* [in] */ DWORD dwIndex, - /* [out] */ KSTOPOLOGY_CONNECTION *pConnectionInfo); - - HRESULT ( STDMETHODCALLTYPE *get_NodeName )( - IKsTopologyInfo * This, - /* [in] */ DWORD dwNodeId, - /* [out] */ WCHAR *pwchNodeName, - /* [in] */ DWORD dwBufSize, - /* [out] */ DWORD *pdwNameLen); - - HRESULT ( STDMETHODCALLTYPE *get_NumNodes )( - IKsTopologyInfo * This, - /* [out] */ DWORD *pdwNumNodes); - - HRESULT ( STDMETHODCALLTYPE *get_NodeType )( - IKsTopologyInfo * This, - /* [in] */ DWORD dwNodeId, - /* [out] */ GUID *pNodeType); - - HRESULT ( STDMETHODCALLTYPE *CreateNodeInstance )( - IKsTopologyInfo * This, - /* [in] */ DWORD dwNodeId, - /* [in] */ REFIID iid, - /* [out] */ void **ppvObject); - - END_INTERFACE - } IKsTopologyInfoVtbl; - - interface IKsTopologyInfo - { - CONST_VTBL struct IKsTopologyInfoVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IKsTopologyInfo_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IKsTopologyInfo_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IKsTopologyInfo_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IKsTopologyInfo_get_NumCategories(This,pdwNumCategories) \ - (This)->lpVtbl -> get_NumCategories(This,pdwNumCategories) - -#define IKsTopologyInfo_get_Category(This,dwIndex,pCategory) \ - (This)->lpVtbl -> get_Category(This,dwIndex,pCategory) - -#define IKsTopologyInfo_get_NumConnections(This,pdwNumConnections) \ - (This)->lpVtbl -> get_NumConnections(This,pdwNumConnections) - -#define IKsTopologyInfo_get_ConnectionInfo(This,dwIndex,pConnectionInfo) \ - (This)->lpVtbl -> get_ConnectionInfo(This,dwIndex,pConnectionInfo) - -#define IKsTopologyInfo_get_NodeName(This,dwNodeId,pwchNodeName,dwBufSize,pdwNameLen) \ - (This)->lpVtbl -> get_NodeName(This,dwNodeId,pwchNodeName,dwBufSize,pdwNameLen) - -#define IKsTopologyInfo_get_NumNodes(This,pdwNumNodes) \ - (This)->lpVtbl -> get_NumNodes(This,pdwNumNodes) - -#define IKsTopologyInfo_get_NodeType(This,dwNodeId,pNodeType) \ - (This)->lpVtbl -> get_NodeType(This,dwNodeId,pNodeType) - -#define IKsTopologyInfo_CreateNodeInstance(This,dwNodeId,iid,ppvObject) \ - (This)->lpVtbl -> CreateNodeInstance(This,dwNodeId,iid,ppvObject) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IKsTopologyInfo_get_NumCategories_Proxy( - IKsTopologyInfo * This, - /* [out] */ DWORD *pdwNumCategories); - - -void __RPC_STUB IKsTopologyInfo_get_NumCategories_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IKsTopologyInfo_get_Category_Proxy( - IKsTopologyInfo * This, - /* [in] */ DWORD dwIndex, - /* [out] */ GUID *pCategory); - - -void __RPC_STUB IKsTopologyInfo_get_Category_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IKsTopologyInfo_get_NumConnections_Proxy( - IKsTopologyInfo * This, - /* [out] */ DWORD *pdwNumConnections); - - -void __RPC_STUB IKsTopologyInfo_get_NumConnections_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IKsTopologyInfo_get_ConnectionInfo_Proxy( - IKsTopologyInfo * This, - /* [in] */ DWORD dwIndex, - /* [out] */ KSTOPOLOGY_CONNECTION *pConnectionInfo); - - -void __RPC_STUB IKsTopologyInfo_get_ConnectionInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IKsTopologyInfo_get_NodeName_Proxy( - IKsTopologyInfo * This, - /* [in] */ DWORD dwNodeId, - /* [out] */ WCHAR *pwchNodeName, - /* [in] */ DWORD dwBufSize, - /* [out] */ DWORD *pdwNameLen); - - -void __RPC_STUB IKsTopologyInfo_get_NodeName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IKsTopologyInfo_get_NumNodes_Proxy( - IKsTopologyInfo * This, - /* [out] */ DWORD *pdwNumNodes); - - -void __RPC_STUB IKsTopologyInfo_get_NumNodes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IKsTopologyInfo_get_NodeType_Proxy( - IKsTopologyInfo * This, - /* [in] */ DWORD dwNodeId, - /* [out] */ GUID *pNodeType); - - -void __RPC_STUB IKsTopologyInfo_get_NodeType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IKsTopologyInfo_CreateNodeInstance_Proxy( - IKsTopologyInfo * This, - /* [in] */ DWORD dwNodeId, - /* [in] */ REFIID iid, - /* [out] */ void **ppvObject); - - -void __RPC_STUB IKsTopologyInfo_CreateNodeInstance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IKsTopologyInfo_INTERFACE_DEFINED__ */ - - -#ifndef __ISelector_INTERFACE_DEFINED__ -#define __ISelector_INTERFACE_DEFINED__ - -/* interface ISelector */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_ISelector; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1ABDAECA-68B6-4F83-9371-B413907C7B9F") - ISelector : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE get_NumSources( - /* [out] */ DWORD *pdwNumSources) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_SourceNodeId( - /* [out] */ DWORD *pdwPinId) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_SourceNodeId( - /* [in] */ DWORD dwPinId) = 0; - - }; - -#else /* C style interface */ - - typedef struct ISelectorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - ISelector * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - ISelector * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - ISelector * This); - - HRESULT ( STDMETHODCALLTYPE *get_NumSources )( - ISelector * This, - /* [out] */ DWORD *pdwNumSources); - - HRESULT ( STDMETHODCALLTYPE *get_SourceNodeId )( - ISelector * This, - /* [out] */ DWORD *pdwPinId); - - HRESULT ( STDMETHODCALLTYPE *put_SourceNodeId )( - ISelector * This, - /* [in] */ DWORD dwPinId); - - END_INTERFACE - } ISelectorVtbl; - - interface ISelector - { - CONST_VTBL struct ISelectorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define ISelector_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define ISelector_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define ISelector_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define ISelector_get_NumSources(This,pdwNumSources) \ - (This)->lpVtbl -> get_NumSources(This,pdwNumSources) - -#define ISelector_get_SourceNodeId(This,pdwPinId) \ - (This)->lpVtbl -> get_SourceNodeId(This,pdwPinId) - -#define ISelector_put_SourceNodeId(This,dwPinId) \ - (This)->lpVtbl -> put_SourceNodeId(This,dwPinId) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE ISelector_get_NumSources_Proxy( - ISelector * This, - /* [out] */ DWORD *pdwNumSources); - - -void __RPC_STUB ISelector_get_NumSources_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISelector_get_SourceNodeId_Proxy( - ISelector * This, - /* [out] */ DWORD *pdwPinId); - - -void __RPC_STUB ISelector_get_SourceNodeId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE ISelector_put_SourceNodeId_Proxy( - ISelector * This, - /* [in] */ DWORD dwPinId); - - -void __RPC_STUB ISelector_put_SourceNodeId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __ISelector_INTERFACE_DEFINED__ */ - - -#ifndef __IKsNodeControl_INTERFACE_DEFINED__ -#define __IKsNodeControl_INTERFACE_DEFINED__ - -/* interface IKsNodeControl */ -/* [unique][uuid][local][object] */ - - -EXTERN_C const IID IID_IKsNodeControl; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("11737C14-24A7-4bb5-81A0-0D003813B0C4") - IKsNodeControl : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE put_NodeId( - /* [in] */ DWORD dwNodeId) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_KsControl( - /* [in] */ PVOID pKsControl) = 0; - - }; - -#else /* C style interface */ - - typedef struct IKsNodeControlVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IKsNodeControl * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IKsNodeControl * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IKsNodeControl * This); - - HRESULT ( STDMETHODCALLTYPE *put_NodeId )( - IKsNodeControl * This, - /* [in] */ DWORD dwNodeId); - - HRESULT ( STDMETHODCALLTYPE *put_KsControl )( - IKsNodeControl * This, - /* [in] */ PVOID pKsControl); - - END_INTERFACE - } IKsNodeControlVtbl; - - interface IKsNodeControl - { - CONST_VTBL struct IKsNodeControlVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IKsNodeControl_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IKsNodeControl_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IKsNodeControl_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IKsNodeControl_put_NodeId(This,dwNodeId) \ - (This)->lpVtbl -> put_NodeId(This,dwNodeId) - -#define IKsNodeControl_put_KsControl(This,pKsControl) \ - (This)->lpVtbl -> put_KsControl(This,pKsControl) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IKsNodeControl_put_NodeId_Proxy( - IKsNodeControl * This, - /* [in] */ DWORD dwNodeId); - - -void __RPC_STUB IKsNodeControl_put_NodeId_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IKsNodeControl_put_KsControl_Proxy( - IKsNodeControl * This, - /* [in] */ PVOID pKsControl); - - -void __RPC_STUB IKsNodeControl_put_KsControl_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IKsNodeControl_INTERFACE_DEFINED__ */ - - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/videoacc.h b/sdk/dx8sdk/Include/videoacc.h deleted file mode 100644 index 7121ff46..00000000 --- a/sdk/dx8sdk/Include/videoacc.h +++ /dev/null @@ -1,661 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for videoacc.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __videoacc_h__ -#define __videoacc_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IAMVideoAcceleratorNotify_FWD_DEFINED__ -#define __IAMVideoAcceleratorNotify_FWD_DEFINED__ -typedef interface IAMVideoAcceleratorNotify IAMVideoAcceleratorNotify; -#endif /* __IAMVideoAcceleratorNotify_FWD_DEFINED__ */ - - -#ifndef __IAMVideoAccelerator_FWD_DEFINED__ -#define __IAMVideoAccelerator_FWD_DEFINED__ -typedef interface IAMVideoAccelerator IAMVideoAccelerator; -#endif /* __IAMVideoAccelerator_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "unknwn.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_videoacc_0000 */ -/* [local] */ - -// -// The following declarations within the 'if 0' block are dummy typedefs used to make -// the motncomp.idl file build. The actual definitions are contained in ddraw.h and amva.h -// -#if 0 -typedef void *LPVOID; - -typedef void *LPGUID; - -typedef void *LPDIRECTDRAWSURFACE; - -typedef void *LPDDPIXELFORMAT; - -typedef void *LPAMVAInternalMemInfo; - -typedef void AMVAUncompDataInfo; - -typedef void *LPAMVACompBufferInfo; - -typedef void AMVABUFFERINFO; - -typedef void AMVAEndFrameInfo; - -typedef void *LPAMVAUncompBufferInfo; - -typedef void AMVABeginFrameInfo; - -typedef IUnknown *IMediaSample; - -#endif -#include -#include - - -extern RPC_IF_HANDLE __MIDL_itf_videoacc_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_videoacc_0000_v0_0_s_ifspec; - -#ifndef __IAMVideoAcceleratorNotify_INTERFACE_DEFINED__ -#define __IAMVideoAcceleratorNotify_INTERFACE_DEFINED__ - -/* interface IAMVideoAcceleratorNotify */ -/* [unique][helpstring][uuid][object][local] */ - - -EXTERN_C const IID IID_IAMVideoAcceleratorNotify; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("256A6A21-FBAD-11d1-82BF-00A0C9696C8F") - IAMVideoAcceleratorNotify : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetUncompSurfacesInfo( - /* [in] */ const GUID *pGuid, - /* [out][in] */ LPAMVAUncompBufferInfo pUncompBufferInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetUncompSurfacesInfo( - /* [in] */ DWORD dwActualUncompSurfacesAllocated) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCreateVideoAcceleratorData( - /* [in] */ const GUID *pGuid, - /* [out] */ LPDWORD pdwSizeMiscData, - /* [out] */ LPVOID *ppMiscData) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMVideoAcceleratorNotifyVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMVideoAcceleratorNotify * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMVideoAcceleratorNotify * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMVideoAcceleratorNotify * This); - - HRESULT ( STDMETHODCALLTYPE *GetUncompSurfacesInfo )( - IAMVideoAcceleratorNotify * This, - /* [in] */ const GUID *pGuid, - /* [out][in] */ LPAMVAUncompBufferInfo pUncompBufferInfo); - - HRESULT ( STDMETHODCALLTYPE *SetUncompSurfacesInfo )( - IAMVideoAcceleratorNotify * This, - /* [in] */ DWORD dwActualUncompSurfacesAllocated); - - HRESULT ( STDMETHODCALLTYPE *GetCreateVideoAcceleratorData )( - IAMVideoAcceleratorNotify * This, - /* [in] */ const GUID *pGuid, - /* [out] */ LPDWORD pdwSizeMiscData, - /* [out] */ LPVOID *ppMiscData); - - END_INTERFACE - } IAMVideoAcceleratorNotifyVtbl; - - interface IAMVideoAcceleratorNotify - { - CONST_VTBL struct IAMVideoAcceleratorNotifyVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMVideoAcceleratorNotify_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMVideoAcceleratorNotify_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMVideoAcceleratorNotify_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMVideoAcceleratorNotify_GetUncompSurfacesInfo(This,pGuid,pUncompBufferInfo) \ - (This)->lpVtbl -> GetUncompSurfacesInfo(This,pGuid,pUncompBufferInfo) - -#define IAMVideoAcceleratorNotify_SetUncompSurfacesInfo(This,dwActualUncompSurfacesAllocated) \ - (This)->lpVtbl -> SetUncompSurfacesInfo(This,dwActualUncompSurfacesAllocated) - -#define IAMVideoAcceleratorNotify_GetCreateVideoAcceleratorData(This,pGuid,pdwSizeMiscData,ppMiscData) \ - (This)->lpVtbl -> GetCreateVideoAcceleratorData(This,pGuid,pdwSizeMiscData,ppMiscData) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMVideoAcceleratorNotify_GetUncompSurfacesInfo_Proxy( - IAMVideoAcceleratorNotify * This, - /* [in] */ const GUID *pGuid, - /* [out][in] */ LPAMVAUncompBufferInfo pUncompBufferInfo); - - -void __RPC_STUB IAMVideoAcceleratorNotify_GetUncompSurfacesInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAcceleratorNotify_SetUncompSurfacesInfo_Proxy( - IAMVideoAcceleratorNotify * This, - /* [in] */ DWORD dwActualUncompSurfacesAllocated); - - -void __RPC_STUB IAMVideoAcceleratorNotify_SetUncompSurfacesInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAcceleratorNotify_GetCreateVideoAcceleratorData_Proxy( - IAMVideoAcceleratorNotify * This, - /* [in] */ const GUID *pGuid, - /* [out] */ LPDWORD pdwSizeMiscData, - /* [out] */ LPVOID *ppMiscData); - - -void __RPC_STUB IAMVideoAcceleratorNotify_GetCreateVideoAcceleratorData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMVideoAcceleratorNotify_INTERFACE_DEFINED__ */ - - -#ifndef __IAMVideoAccelerator_INTERFACE_DEFINED__ -#define __IAMVideoAccelerator_INTERFACE_DEFINED__ - -/* interface IAMVideoAccelerator */ -/* [unique][helpstring][uuid][object][local] */ - - -EXTERN_C const IID IID_IAMVideoAccelerator; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("256A6A22-FBAD-11d1-82BF-00A0C9696C8F") - IAMVideoAccelerator : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetVideoAcceleratorGUIDs( - /* [out][in] */ LPDWORD pdwNumGuidsSupported, - /* [out][in] */ LPGUID pGuidsSupported) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetUncompFormatsSupported( - /* [in] */ const GUID *pGuid, - /* [out][in] */ LPDWORD pdwNumFormatsSupported, - /* [out][in] */ LPDDPIXELFORMAT pFormatsSupported) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInternalMemInfo( - /* [in] */ const GUID *pGuid, - /* [in] */ const AMVAUncompDataInfo *pamvaUncompDataInfo, - /* [out][in] */ LPAMVAInternalMemInfo pamvaInternalMemInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCompBufferInfo( - /* [in] */ const GUID *pGuid, - /* [in] */ const AMVAUncompDataInfo *pamvaUncompDataInfo, - /* [out][in] */ LPDWORD pdwNumTypesCompBuffers, - /* [out] */ LPAMVACompBufferInfo pamvaCompBufferInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInternalCompBufferInfo( - /* [out][in] */ LPDWORD pdwNumTypesCompBuffers, - /* [out] */ LPAMVACompBufferInfo pamvaCompBufferInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE BeginFrame( - /* [in] */ const AMVABeginFrameInfo *amvaBeginFrameInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE EndFrame( - /* [in] */ const AMVAEndFrameInfo *pEndFrameInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBuffer( - /* [in] */ DWORD dwTypeIndex, - /* [in] */ DWORD dwBufferIndex, - /* [in] */ BOOL bReadOnly, - /* [out] */ LPVOID *ppBuffer, - /* [out] */ LONG *lpStride) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer( - /* [in] */ DWORD dwTypeIndex, - /* [in] */ DWORD dwBufferIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE Execute( - /* [in] */ DWORD dwFunction, - /* [in] */ LPVOID lpPrivateInputData, - /* [in] */ DWORD cbPrivateInputData, - /* [in] */ LPVOID lpPrivateOutputDat, - /* [in] */ DWORD cbPrivateOutputData, - /* [in] */ DWORD dwNumBuffers, - /* [in] */ const AMVABUFFERINFO *pamvaBufferInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryRenderStatus( - /* [in] */ DWORD dwTypeIndex, - /* [in] */ DWORD dwBufferIndex, - /* [in] */ DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE DisplayFrame( - /* [in] */ DWORD dwFlipToIndex, - /* [in] */ IMediaSample *pMediaSample) = 0; - - }; - -#else /* C style interface */ - - typedef struct IAMVideoAcceleratorVtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IAMVideoAccelerator * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IAMVideoAccelerator * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IAMVideoAccelerator * This); - - HRESULT ( STDMETHODCALLTYPE *GetVideoAcceleratorGUIDs )( - IAMVideoAccelerator * This, - /* [out][in] */ LPDWORD pdwNumGuidsSupported, - /* [out][in] */ LPGUID pGuidsSupported); - - HRESULT ( STDMETHODCALLTYPE *GetUncompFormatsSupported )( - IAMVideoAccelerator * This, - /* [in] */ const GUID *pGuid, - /* [out][in] */ LPDWORD pdwNumFormatsSupported, - /* [out][in] */ LPDDPIXELFORMAT pFormatsSupported); - - HRESULT ( STDMETHODCALLTYPE *GetInternalMemInfo )( - IAMVideoAccelerator * This, - /* [in] */ const GUID *pGuid, - /* [in] */ const AMVAUncompDataInfo *pamvaUncompDataInfo, - /* [out][in] */ LPAMVAInternalMemInfo pamvaInternalMemInfo); - - HRESULT ( STDMETHODCALLTYPE *GetCompBufferInfo )( - IAMVideoAccelerator * This, - /* [in] */ const GUID *pGuid, - /* [in] */ const AMVAUncompDataInfo *pamvaUncompDataInfo, - /* [out][in] */ LPDWORD pdwNumTypesCompBuffers, - /* [out] */ LPAMVACompBufferInfo pamvaCompBufferInfo); - - HRESULT ( STDMETHODCALLTYPE *GetInternalCompBufferInfo )( - IAMVideoAccelerator * This, - /* [out][in] */ LPDWORD pdwNumTypesCompBuffers, - /* [out] */ LPAMVACompBufferInfo pamvaCompBufferInfo); - - HRESULT ( STDMETHODCALLTYPE *BeginFrame )( - IAMVideoAccelerator * This, - /* [in] */ const AMVABeginFrameInfo *amvaBeginFrameInfo); - - HRESULT ( STDMETHODCALLTYPE *EndFrame )( - IAMVideoAccelerator * This, - /* [in] */ const AMVAEndFrameInfo *pEndFrameInfo); - - HRESULT ( STDMETHODCALLTYPE *GetBuffer )( - IAMVideoAccelerator * This, - /* [in] */ DWORD dwTypeIndex, - /* [in] */ DWORD dwBufferIndex, - /* [in] */ BOOL bReadOnly, - /* [out] */ LPVOID *ppBuffer, - /* [out] */ LONG *lpStride); - - HRESULT ( STDMETHODCALLTYPE *ReleaseBuffer )( - IAMVideoAccelerator * This, - /* [in] */ DWORD dwTypeIndex, - /* [in] */ DWORD dwBufferIndex); - - HRESULT ( STDMETHODCALLTYPE *Execute )( - IAMVideoAccelerator * This, - /* [in] */ DWORD dwFunction, - /* [in] */ LPVOID lpPrivateInputData, - /* [in] */ DWORD cbPrivateInputData, - /* [in] */ LPVOID lpPrivateOutputDat, - /* [in] */ DWORD cbPrivateOutputData, - /* [in] */ DWORD dwNumBuffers, - /* [in] */ const AMVABUFFERINFO *pamvaBufferInfo); - - HRESULT ( STDMETHODCALLTYPE *QueryRenderStatus )( - IAMVideoAccelerator * This, - /* [in] */ DWORD dwTypeIndex, - /* [in] */ DWORD dwBufferIndex, - /* [in] */ DWORD dwFlags); - - HRESULT ( STDMETHODCALLTYPE *DisplayFrame )( - IAMVideoAccelerator * This, - /* [in] */ DWORD dwFlipToIndex, - /* [in] */ IMediaSample *pMediaSample); - - END_INTERFACE - } IAMVideoAcceleratorVtbl; - - interface IAMVideoAccelerator - { - CONST_VTBL struct IAMVideoAcceleratorVtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IAMVideoAccelerator_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IAMVideoAccelerator_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IAMVideoAccelerator_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IAMVideoAccelerator_GetVideoAcceleratorGUIDs(This,pdwNumGuidsSupported,pGuidsSupported) \ - (This)->lpVtbl -> GetVideoAcceleratorGUIDs(This,pdwNumGuidsSupported,pGuidsSupported) - -#define IAMVideoAccelerator_GetUncompFormatsSupported(This,pGuid,pdwNumFormatsSupported,pFormatsSupported) \ - (This)->lpVtbl -> GetUncompFormatsSupported(This,pGuid,pdwNumFormatsSupported,pFormatsSupported) - -#define IAMVideoAccelerator_GetInternalMemInfo(This,pGuid,pamvaUncompDataInfo,pamvaInternalMemInfo) \ - (This)->lpVtbl -> GetInternalMemInfo(This,pGuid,pamvaUncompDataInfo,pamvaInternalMemInfo) - -#define IAMVideoAccelerator_GetCompBufferInfo(This,pGuid,pamvaUncompDataInfo,pdwNumTypesCompBuffers,pamvaCompBufferInfo) \ - (This)->lpVtbl -> GetCompBufferInfo(This,pGuid,pamvaUncompDataInfo,pdwNumTypesCompBuffers,pamvaCompBufferInfo) - -#define IAMVideoAccelerator_GetInternalCompBufferInfo(This,pdwNumTypesCompBuffers,pamvaCompBufferInfo) \ - (This)->lpVtbl -> GetInternalCompBufferInfo(This,pdwNumTypesCompBuffers,pamvaCompBufferInfo) - -#define IAMVideoAccelerator_BeginFrame(This,amvaBeginFrameInfo) \ - (This)->lpVtbl -> BeginFrame(This,amvaBeginFrameInfo) - -#define IAMVideoAccelerator_EndFrame(This,pEndFrameInfo) \ - (This)->lpVtbl -> EndFrame(This,pEndFrameInfo) - -#define IAMVideoAccelerator_GetBuffer(This,dwTypeIndex,dwBufferIndex,bReadOnly,ppBuffer,lpStride) \ - (This)->lpVtbl -> GetBuffer(This,dwTypeIndex,dwBufferIndex,bReadOnly,ppBuffer,lpStride) - -#define IAMVideoAccelerator_ReleaseBuffer(This,dwTypeIndex,dwBufferIndex) \ - (This)->lpVtbl -> ReleaseBuffer(This,dwTypeIndex,dwBufferIndex) - -#define IAMVideoAccelerator_Execute(This,dwFunction,lpPrivateInputData,cbPrivateInputData,lpPrivateOutputDat,cbPrivateOutputData,dwNumBuffers,pamvaBufferInfo) \ - (This)->lpVtbl -> Execute(This,dwFunction,lpPrivateInputData,cbPrivateInputData,lpPrivateOutputDat,cbPrivateOutputData,dwNumBuffers,pamvaBufferInfo) - -#define IAMVideoAccelerator_QueryRenderStatus(This,dwTypeIndex,dwBufferIndex,dwFlags) \ - (This)->lpVtbl -> QueryRenderStatus(This,dwTypeIndex,dwBufferIndex,dwFlags) - -#define IAMVideoAccelerator_DisplayFrame(This,dwFlipToIndex,pMediaSample) \ - (This)->lpVtbl -> DisplayFrame(This,dwFlipToIndex,pMediaSample) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IAMVideoAccelerator_GetVideoAcceleratorGUIDs_Proxy( - IAMVideoAccelerator * This, - /* [out][in] */ LPDWORD pdwNumGuidsSupported, - /* [out][in] */ LPGUID pGuidsSupported); - - -void __RPC_STUB IAMVideoAccelerator_GetVideoAcceleratorGUIDs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAccelerator_GetUncompFormatsSupported_Proxy( - IAMVideoAccelerator * This, - /* [in] */ const GUID *pGuid, - /* [out][in] */ LPDWORD pdwNumFormatsSupported, - /* [out][in] */ LPDDPIXELFORMAT pFormatsSupported); - - -void __RPC_STUB IAMVideoAccelerator_GetUncompFormatsSupported_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAccelerator_GetInternalMemInfo_Proxy( - IAMVideoAccelerator * This, - /* [in] */ const GUID *pGuid, - /* [in] */ const AMVAUncompDataInfo *pamvaUncompDataInfo, - /* [out][in] */ LPAMVAInternalMemInfo pamvaInternalMemInfo); - - -void __RPC_STUB IAMVideoAccelerator_GetInternalMemInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAccelerator_GetCompBufferInfo_Proxy( - IAMVideoAccelerator * This, - /* [in] */ const GUID *pGuid, - /* [in] */ const AMVAUncompDataInfo *pamvaUncompDataInfo, - /* [out][in] */ LPDWORD pdwNumTypesCompBuffers, - /* [out] */ LPAMVACompBufferInfo pamvaCompBufferInfo); - - -void __RPC_STUB IAMVideoAccelerator_GetCompBufferInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAccelerator_GetInternalCompBufferInfo_Proxy( - IAMVideoAccelerator * This, - /* [out][in] */ LPDWORD pdwNumTypesCompBuffers, - /* [out] */ LPAMVACompBufferInfo pamvaCompBufferInfo); - - -void __RPC_STUB IAMVideoAccelerator_GetInternalCompBufferInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAccelerator_BeginFrame_Proxy( - IAMVideoAccelerator * This, - /* [in] */ const AMVABeginFrameInfo *amvaBeginFrameInfo); - - -void __RPC_STUB IAMVideoAccelerator_BeginFrame_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAccelerator_EndFrame_Proxy( - IAMVideoAccelerator * This, - /* [in] */ const AMVAEndFrameInfo *pEndFrameInfo); - - -void __RPC_STUB IAMVideoAccelerator_EndFrame_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAccelerator_GetBuffer_Proxy( - IAMVideoAccelerator * This, - /* [in] */ DWORD dwTypeIndex, - /* [in] */ DWORD dwBufferIndex, - /* [in] */ BOOL bReadOnly, - /* [out] */ LPVOID *ppBuffer, - /* [out] */ LONG *lpStride); - - -void __RPC_STUB IAMVideoAccelerator_GetBuffer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAccelerator_ReleaseBuffer_Proxy( - IAMVideoAccelerator * This, - /* [in] */ DWORD dwTypeIndex, - /* [in] */ DWORD dwBufferIndex); - - -void __RPC_STUB IAMVideoAccelerator_ReleaseBuffer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAccelerator_Execute_Proxy( - IAMVideoAccelerator * This, - /* [in] */ DWORD dwFunction, - /* [in] */ LPVOID lpPrivateInputData, - /* [in] */ DWORD cbPrivateInputData, - /* [in] */ LPVOID lpPrivateOutputDat, - /* [in] */ DWORD cbPrivateOutputData, - /* [in] */ DWORD dwNumBuffers, - /* [in] */ const AMVABUFFERINFO *pamvaBufferInfo); - - -void __RPC_STUB IAMVideoAccelerator_Execute_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAccelerator_QueryRenderStatus_Proxy( - IAMVideoAccelerator * This, - /* [in] */ DWORD dwTypeIndex, - /* [in] */ DWORD dwBufferIndex, - /* [in] */ DWORD dwFlags); - - -void __RPC_STUB IAMVideoAccelerator_QueryRenderStatus_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IAMVideoAccelerator_DisplayFrame_Proxy( - IAMVideoAccelerator * This, - /* [in] */ DWORD dwFlipToIndex, - /* [in] */ IMediaSample *pMediaSample); - - -void __RPC_STUB IAMVideoAccelerator_DisplayFrame_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IAMVideoAccelerator_INTERFACE_DEFINED__ */ - - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/vmr9.h b/sdk/dx8sdk/Include/vmr9.h deleted file mode 100644 index 0a4e1fe4..00000000 --- a/sdk/dx8sdk/Include/vmr9.h +++ /dev/null @@ -1,3203 +0,0 @@ - -#pragma warning( disable: 4049 ) /* more than 64k source lines */ - -/* this ALWAYS GENERATED file contains the definitions for the interfaces */ - - - /* File created by MIDL compiler version 6.00.0357 */ -/* Compiler settings for vmr9.idl: - Oicf, W1, Zp8, env=Win32 (32b run) - protocol : dce , ms_ext, c_ext, robust - error checks: allocation ref bounds_check enum stub_data - VC __declspec() decoration level: - __declspec(uuid()), __declspec(selectany), __declspec(novtable) - DECLSPEC_UUID(), MIDL_INTERFACE() -*/ -//@@MIDL_FILE_HEADING( ) - - -/* 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 __vmr9_h__ -#define __vmr9_h__ - -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -#pragma once -#endif - -/* Forward Declarations */ - -#ifndef __IVMRImagePresenter9_FWD_DEFINED__ -#define __IVMRImagePresenter9_FWD_DEFINED__ -typedef interface IVMRImagePresenter9 IVMRImagePresenter9; -#endif /* __IVMRImagePresenter9_FWD_DEFINED__ */ - - -#ifndef __IVMRSurfaceAllocator9_FWD_DEFINED__ -#define __IVMRSurfaceAllocator9_FWD_DEFINED__ -typedef interface IVMRSurfaceAllocator9 IVMRSurfaceAllocator9; -#endif /* __IVMRSurfaceAllocator9_FWD_DEFINED__ */ - - -#ifndef __IVMRSurfaceAllocatorNotify9_FWD_DEFINED__ -#define __IVMRSurfaceAllocatorNotify9_FWD_DEFINED__ -typedef interface IVMRSurfaceAllocatorNotify9 IVMRSurfaceAllocatorNotify9; -#endif /* __IVMRSurfaceAllocatorNotify9_FWD_DEFINED__ */ - - -#ifndef __IVMRWindowlessControl9_FWD_DEFINED__ -#define __IVMRWindowlessControl9_FWD_DEFINED__ -typedef interface IVMRWindowlessControl9 IVMRWindowlessControl9; -#endif /* __IVMRWindowlessControl9_FWD_DEFINED__ */ - - -#ifndef __IVMRMixerControl9_FWD_DEFINED__ -#define __IVMRMixerControl9_FWD_DEFINED__ -typedef interface IVMRMixerControl9 IVMRMixerControl9; -#endif /* __IVMRMixerControl9_FWD_DEFINED__ */ - - -#ifndef __IVMRMixerBitmap9_FWD_DEFINED__ -#define __IVMRMixerBitmap9_FWD_DEFINED__ -typedef interface IVMRMixerBitmap9 IVMRMixerBitmap9; -#endif /* __IVMRMixerBitmap9_FWD_DEFINED__ */ - - -#ifndef __IVMRSurface9_FWD_DEFINED__ -#define __IVMRSurface9_FWD_DEFINED__ -typedef interface IVMRSurface9 IVMRSurface9; -#endif /* __IVMRSurface9_FWD_DEFINED__ */ - - -#ifndef __IVMRImagePresenterConfig9_FWD_DEFINED__ -#define __IVMRImagePresenterConfig9_FWD_DEFINED__ -typedef interface IVMRImagePresenterConfig9 IVMRImagePresenterConfig9; -#endif /* __IVMRImagePresenterConfig9_FWD_DEFINED__ */ - - -#ifndef __IVMRVideoStreamControl9_FWD_DEFINED__ -#define __IVMRVideoStreamControl9_FWD_DEFINED__ -typedef interface IVMRVideoStreamControl9 IVMRVideoStreamControl9; -#endif /* __IVMRVideoStreamControl9_FWD_DEFINED__ */ - - -#ifndef __IVMRFilterConfig9_FWD_DEFINED__ -#define __IVMRFilterConfig9_FWD_DEFINED__ -typedef interface IVMRFilterConfig9 IVMRFilterConfig9; -#endif /* __IVMRFilterConfig9_FWD_DEFINED__ */ - - -#ifndef __IVMRAspectRatioControl9_FWD_DEFINED__ -#define __IVMRAspectRatioControl9_FWD_DEFINED__ -typedef interface IVMRAspectRatioControl9 IVMRAspectRatioControl9; -#endif /* __IVMRAspectRatioControl9_FWD_DEFINED__ */ - - -#ifndef __IVMRMonitorConfig9_FWD_DEFINED__ -#define __IVMRMonitorConfig9_FWD_DEFINED__ -typedef interface IVMRMonitorConfig9 IVMRMonitorConfig9; -#endif /* __IVMRMonitorConfig9_FWD_DEFINED__ */ - - -#ifndef __IVMRDeinterlaceControl9_FWD_DEFINED__ -#define __IVMRDeinterlaceControl9_FWD_DEFINED__ -typedef interface IVMRDeinterlaceControl9 IVMRDeinterlaceControl9; -#endif /* __IVMRDeinterlaceControl9_FWD_DEFINED__ */ - - -#ifndef __IVMRImageCompositor9_FWD_DEFINED__ -#define __IVMRImageCompositor9_FWD_DEFINED__ -typedef interface IVMRImageCompositor9 IVMRImageCompositor9; -#endif /* __IVMRImageCompositor9_FWD_DEFINED__ */ - - -/* header files for imported files */ -#include "unknwn.h" - -#ifdef __cplusplus -extern "C"{ -#endif - -void * __RPC_USER MIDL_user_allocate(size_t); -void __RPC_USER MIDL_user_free( void * ); - -/* interface __MIDL_itf_vmr9_0000 */ -/* [local] */ - -#if 0 -typedef DWORD IDirect3DDevice9; - -typedef DWORD IDirect3DSurface9; - -typedef DWORD D3DFORMAT; - -typedef DWORD D3DCOLOR; - -typedef DWORD D3DPOOL; - -typedef LONGLONG REFERENCE_TIME; - -typedef DWORD *HMONITOR; - -typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_vmr9_0000_0001 - { - DWORD dw1; - DWORD dw2; - } AM_MEDIA_TYPE; - -#endif - - - - - - - - - - - - - -typedef /* [public] */ -enum __MIDL___MIDL_itf_vmr9_0000_0002 - { VMR9Sample_SyncPoint = 0x1, - VMR9Sample_Preroll = 0x2, - VMR9Sample_Discontinuity = 0x4, - VMR9Sample_TimeValid = 0x8 - } VMR9PresentationFlags; - -typedef struct _VMR9PresentationInfo - { - DWORD dwFlags; - IDirect3DSurface9 *lpSurf; - REFERENCE_TIME rtStart; - REFERENCE_TIME rtEnd; - SIZE szAspectRatio; - RECT rcSrc; - RECT rcDst; - DWORD dwReserved1; - DWORD dwReserved2; - } VMR9PresentationInfo; - - - -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0000_v0_0_s_ifspec; - -#ifndef __IVMRImagePresenter9_INTERFACE_DEFINED__ -#define __IVMRImagePresenter9_INTERFACE_DEFINED__ - -/* interface IVMRImagePresenter9 */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRImagePresenter9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("69188c61-12a3-40f0-8ffc-342e7b433fd7") - IVMRImagePresenter9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE StartPresenting( - /* [in] */ DWORD_PTR dwUserID) = 0; - - virtual HRESULT STDMETHODCALLTYPE StopPresenting( - /* [in] */ DWORD_PTR dwUserID) = 0; - - virtual HRESULT STDMETHODCALLTYPE PresentImage( - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ VMR9PresentationInfo *lpPresInfo) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRImagePresenter9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRImagePresenter9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRImagePresenter9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRImagePresenter9 * This); - - HRESULT ( STDMETHODCALLTYPE *StartPresenting )( - IVMRImagePresenter9 * This, - /* [in] */ DWORD_PTR dwUserID); - - HRESULT ( STDMETHODCALLTYPE *StopPresenting )( - IVMRImagePresenter9 * This, - /* [in] */ DWORD_PTR dwUserID); - - HRESULT ( STDMETHODCALLTYPE *PresentImage )( - IVMRImagePresenter9 * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ VMR9PresentationInfo *lpPresInfo); - - END_INTERFACE - } IVMRImagePresenter9Vtbl; - - interface IVMRImagePresenter9 - { - CONST_VTBL struct IVMRImagePresenter9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRImagePresenter9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRImagePresenter9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRImagePresenter9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRImagePresenter9_StartPresenting(This,dwUserID) \ - (This)->lpVtbl -> StartPresenting(This,dwUserID) - -#define IVMRImagePresenter9_StopPresenting(This,dwUserID) \ - (This)->lpVtbl -> StopPresenting(This,dwUserID) - -#define IVMRImagePresenter9_PresentImage(This,dwUserID,lpPresInfo) \ - (This)->lpVtbl -> PresentImage(This,dwUserID,lpPresInfo) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRImagePresenter9_StartPresenting_Proxy( - IVMRImagePresenter9 * This, - /* [in] */ DWORD_PTR dwUserID); - - -void __RPC_STUB IVMRImagePresenter9_StartPresenting_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImagePresenter9_StopPresenting_Proxy( - IVMRImagePresenter9 * This, - /* [in] */ DWORD_PTR dwUserID); - - -void __RPC_STUB IVMRImagePresenter9_StopPresenting_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImagePresenter9_PresentImage_Proxy( - IVMRImagePresenter9 * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ VMR9PresentationInfo *lpPresInfo); - - -void __RPC_STUB IVMRImagePresenter9_PresentImage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRImagePresenter9_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_vmr9_0009 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_vmr9_0009_0001 - { VMR9AllocFlag_3DRenderTarget = 0x1, - VMR9AllocFlag_DXVATarget = 0x2, - VMR9AllocFlag_TextureSurface = 0x4, - VMR9AllocFlag_OffscreenSurface = 0x8, - VMR9AllocFlag_UsageReserved = 0xf0, - VMR9AllocFlag_UsageMask = 0xff - } VMR9SurfaceAllocationFlags; - -typedef struct _VMR9AllocationInfo - { - DWORD dwFlags; - DWORD dwWidth; - DWORD dwHeight; - D3DFORMAT Format; - D3DPOOL Pool; - DWORD MinBuffers; - SIZE szAspectRatio; - SIZE szNativeSize; - } VMR9AllocationInfo; - - - -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0009_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0009_v0_0_s_ifspec; - -#ifndef __IVMRSurfaceAllocator9_INTERFACE_DEFINED__ -#define __IVMRSurfaceAllocator9_INTERFACE_DEFINED__ - -/* interface IVMRSurfaceAllocator9 */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRSurfaceAllocator9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("8d5148ea-3f5d-46cf-9df1-d1b896eedb1f") - IVMRSurfaceAllocator9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE InitializeDevice( - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ VMR9AllocationInfo *lpAllocInfo, - /* [out][in] */ DWORD *lpNumBuffers) = 0; - - virtual HRESULT STDMETHODCALLTYPE TerminateDevice( - /* [in] */ DWORD_PTR dwID) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSurface( - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ DWORD SurfaceIndex, - /* [in] */ DWORD SurfaceFlags, - /* [out] */ IDirect3DSurface9 **lplpSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE AdviseNotify( - /* [in] */ IVMRSurfaceAllocatorNotify9 *lpIVMRSurfAllocNotify) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRSurfaceAllocator9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRSurfaceAllocator9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRSurfaceAllocator9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRSurfaceAllocator9 * This); - - HRESULT ( STDMETHODCALLTYPE *InitializeDevice )( - IVMRSurfaceAllocator9 * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ VMR9AllocationInfo *lpAllocInfo, - /* [out][in] */ DWORD *lpNumBuffers); - - HRESULT ( STDMETHODCALLTYPE *TerminateDevice )( - IVMRSurfaceAllocator9 * This, - /* [in] */ DWORD_PTR dwID); - - HRESULT ( STDMETHODCALLTYPE *GetSurface )( - IVMRSurfaceAllocator9 * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ DWORD SurfaceIndex, - /* [in] */ DWORD SurfaceFlags, - /* [out] */ IDirect3DSurface9 **lplpSurface); - - HRESULT ( STDMETHODCALLTYPE *AdviseNotify )( - IVMRSurfaceAllocator9 * This, - /* [in] */ IVMRSurfaceAllocatorNotify9 *lpIVMRSurfAllocNotify); - - END_INTERFACE - } IVMRSurfaceAllocator9Vtbl; - - interface IVMRSurfaceAllocator9 - { - CONST_VTBL struct IVMRSurfaceAllocator9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRSurfaceAllocator9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRSurfaceAllocator9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRSurfaceAllocator9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRSurfaceAllocator9_InitializeDevice(This,dwUserID,lpAllocInfo,lpNumBuffers) \ - (This)->lpVtbl -> InitializeDevice(This,dwUserID,lpAllocInfo,lpNumBuffers) - -#define IVMRSurfaceAllocator9_TerminateDevice(This,dwID) \ - (This)->lpVtbl -> TerminateDevice(This,dwID) - -#define IVMRSurfaceAllocator9_GetSurface(This,dwUserID,SurfaceIndex,SurfaceFlags,lplpSurface) \ - (This)->lpVtbl -> GetSurface(This,dwUserID,SurfaceIndex,SurfaceFlags,lplpSurface) - -#define IVMRSurfaceAllocator9_AdviseNotify(This,lpIVMRSurfAllocNotify) \ - (This)->lpVtbl -> AdviseNotify(This,lpIVMRSurfAllocNotify) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocator9_InitializeDevice_Proxy( - IVMRSurfaceAllocator9 * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ VMR9AllocationInfo *lpAllocInfo, - /* [out][in] */ DWORD *lpNumBuffers); - - -void __RPC_STUB IVMRSurfaceAllocator9_InitializeDevice_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocator9_TerminateDevice_Proxy( - IVMRSurfaceAllocator9 * This, - /* [in] */ DWORD_PTR dwID); - - -void __RPC_STUB IVMRSurfaceAllocator9_TerminateDevice_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocator9_GetSurface_Proxy( - IVMRSurfaceAllocator9 * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ DWORD SurfaceIndex, - /* [in] */ DWORD SurfaceFlags, - /* [out] */ IDirect3DSurface9 **lplpSurface); - - -void __RPC_STUB IVMRSurfaceAllocator9_GetSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocator9_AdviseNotify_Proxy( - IVMRSurfaceAllocator9 * This, - /* [in] */ IVMRSurfaceAllocatorNotify9 *lpIVMRSurfAllocNotify); - - -void __RPC_STUB IVMRSurfaceAllocator9_AdviseNotify_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRSurfaceAllocator9_INTERFACE_DEFINED__ */ - - -#ifndef __IVMRSurfaceAllocatorNotify9_INTERFACE_DEFINED__ -#define __IVMRSurfaceAllocatorNotify9_INTERFACE_DEFINED__ - -/* interface IVMRSurfaceAllocatorNotify9 */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRSurfaceAllocatorNotify9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("dca3f5df-bb3a-4d03-bd81-84614bfbfa0c") - IVMRSurfaceAllocatorNotify9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE AdviseSurfaceAllocator( - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ IVMRSurfaceAllocator9 *lpIVRMSurfaceAllocator) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetD3DDevice( - /* [in] */ IDirect3DDevice9 *lpD3DDevice, - /* [in] */ HMONITOR hMonitor) = 0; - - virtual HRESULT STDMETHODCALLTYPE ChangeD3DDevice( - /* [in] */ IDirect3DDevice9 *lpD3DDevice, - /* [in] */ HMONITOR hMonitor) = 0; - - virtual HRESULT STDMETHODCALLTYPE AllocateSurfaceHelper( - /* [in] */ VMR9AllocationInfo *lpAllocInfo, - /* [out][in] */ DWORD *lpNumBuffers, - /* [out] */ IDirect3DSurface9 **lplpSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE NotifyEvent( - /* [in] */ LONG EventCode, - /* [in] */ LONG_PTR Param1, - /* [in] */ LONG_PTR Param2) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRSurfaceAllocatorNotify9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRSurfaceAllocatorNotify9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRSurfaceAllocatorNotify9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRSurfaceAllocatorNotify9 * This); - - HRESULT ( STDMETHODCALLTYPE *AdviseSurfaceAllocator )( - IVMRSurfaceAllocatorNotify9 * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ IVMRSurfaceAllocator9 *lpIVRMSurfaceAllocator); - - HRESULT ( STDMETHODCALLTYPE *SetD3DDevice )( - IVMRSurfaceAllocatorNotify9 * This, - /* [in] */ IDirect3DDevice9 *lpD3DDevice, - /* [in] */ HMONITOR hMonitor); - - HRESULT ( STDMETHODCALLTYPE *ChangeD3DDevice )( - IVMRSurfaceAllocatorNotify9 * This, - /* [in] */ IDirect3DDevice9 *lpD3DDevice, - /* [in] */ HMONITOR hMonitor); - - HRESULT ( STDMETHODCALLTYPE *AllocateSurfaceHelper )( - IVMRSurfaceAllocatorNotify9 * This, - /* [in] */ VMR9AllocationInfo *lpAllocInfo, - /* [out][in] */ DWORD *lpNumBuffers, - /* [out] */ IDirect3DSurface9 **lplpSurface); - - HRESULT ( STDMETHODCALLTYPE *NotifyEvent )( - IVMRSurfaceAllocatorNotify9 * This, - /* [in] */ LONG EventCode, - /* [in] */ LONG_PTR Param1, - /* [in] */ LONG_PTR Param2); - - END_INTERFACE - } IVMRSurfaceAllocatorNotify9Vtbl; - - interface IVMRSurfaceAllocatorNotify9 - { - CONST_VTBL struct IVMRSurfaceAllocatorNotify9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRSurfaceAllocatorNotify9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRSurfaceAllocatorNotify9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRSurfaceAllocatorNotify9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRSurfaceAllocatorNotify9_AdviseSurfaceAllocator(This,dwUserID,lpIVRMSurfaceAllocator) \ - (This)->lpVtbl -> AdviseSurfaceAllocator(This,dwUserID,lpIVRMSurfaceAllocator) - -#define IVMRSurfaceAllocatorNotify9_SetD3DDevice(This,lpD3DDevice,hMonitor) \ - (This)->lpVtbl -> SetD3DDevice(This,lpD3DDevice,hMonitor) - -#define IVMRSurfaceAllocatorNotify9_ChangeD3DDevice(This,lpD3DDevice,hMonitor) \ - (This)->lpVtbl -> ChangeD3DDevice(This,lpD3DDevice,hMonitor) - -#define IVMRSurfaceAllocatorNotify9_AllocateSurfaceHelper(This,lpAllocInfo,lpNumBuffers,lplpSurface) \ - (This)->lpVtbl -> AllocateSurfaceHelper(This,lpAllocInfo,lpNumBuffers,lplpSurface) - -#define IVMRSurfaceAllocatorNotify9_NotifyEvent(This,EventCode,Param1,Param2) \ - (This)->lpVtbl -> NotifyEvent(This,EventCode,Param1,Param2) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify9_AdviseSurfaceAllocator_Proxy( - IVMRSurfaceAllocatorNotify9 * This, - /* [in] */ DWORD_PTR dwUserID, - /* [in] */ IVMRSurfaceAllocator9 *lpIVRMSurfaceAllocator); - - -void __RPC_STUB IVMRSurfaceAllocatorNotify9_AdviseSurfaceAllocator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify9_SetD3DDevice_Proxy( - IVMRSurfaceAllocatorNotify9 * This, - /* [in] */ IDirect3DDevice9 *lpD3DDevice, - /* [in] */ HMONITOR hMonitor); - - -void __RPC_STUB IVMRSurfaceAllocatorNotify9_SetD3DDevice_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify9_ChangeD3DDevice_Proxy( - IVMRSurfaceAllocatorNotify9 * This, - /* [in] */ IDirect3DDevice9 *lpD3DDevice, - /* [in] */ HMONITOR hMonitor); - - -void __RPC_STUB IVMRSurfaceAllocatorNotify9_ChangeD3DDevice_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify9_AllocateSurfaceHelper_Proxy( - IVMRSurfaceAllocatorNotify9 * This, - /* [in] */ VMR9AllocationInfo *lpAllocInfo, - /* [out][in] */ DWORD *lpNumBuffers, - /* [out] */ IDirect3DSurface9 **lplpSurface); - - -void __RPC_STUB IVMRSurfaceAllocatorNotify9_AllocateSurfaceHelper_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurfaceAllocatorNotify9_NotifyEvent_Proxy( - IVMRSurfaceAllocatorNotify9 * This, - /* [in] */ LONG EventCode, - /* [in] */ LONG_PTR Param1, - /* [in] */ LONG_PTR Param2); - - -void __RPC_STUB IVMRSurfaceAllocatorNotify9_NotifyEvent_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRSurfaceAllocatorNotify9_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_vmr9_0011 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_vmr9_0011_0001 - { VMR9ARMode_None = 0, - VMR9ARMode_LetterBox = VMR9ARMode_None + 1 - } VMR9AspectRatioMode; - - - -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0011_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0011_v0_0_s_ifspec; - -#ifndef __IVMRWindowlessControl9_INTERFACE_DEFINED__ -#define __IVMRWindowlessControl9_INTERFACE_DEFINED__ - -/* interface IVMRWindowlessControl9 */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRWindowlessControl9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("8f537d09-f85e-4414-b23b-502e54c79927") - IVMRWindowlessControl9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetNativeVideoSize( - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight, - /* [out] */ LONG *lpARWidth, - /* [out] */ LONG *lpARHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMinIdealVideoSize( - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMaxIdealVideoSize( - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetVideoPosition( - /* [in] */ const LPRECT lpSRCRect, - /* [in] */ const LPRECT lpDSTRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVideoPosition( - /* [out] */ LPRECT lpSRCRect, - /* [out] */ LPRECT lpDSTRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAspectRatioMode( - /* [out] */ DWORD *lpAspectRatioMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetAspectRatioMode( - /* [in] */ DWORD AspectRatioMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetVideoClippingWindow( - /* [in] */ HWND hwnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE RepaintVideo( - /* [in] */ HWND hwnd, - /* [in] */ HDC hdc) = 0; - - virtual HRESULT STDMETHODCALLTYPE DisplayModeChanged( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentImage( - /* [out] */ BYTE **lpDib) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBorderColor( - /* [in] */ COLORREF Clr) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBorderColor( - /* [out] */ COLORREF *lpClr) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRWindowlessControl9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRWindowlessControl9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRWindowlessControl9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRWindowlessControl9 * This); - - HRESULT ( STDMETHODCALLTYPE *GetNativeVideoSize )( - IVMRWindowlessControl9 * This, - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight, - /* [out] */ LONG *lpARWidth, - /* [out] */ LONG *lpARHeight); - - HRESULT ( STDMETHODCALLTYPE *GetMinIdealVideoSize )( - IVMRWindowlessControl9 * This, - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight); - - HRESULT ( STDMETHODCALLTYPE *GetMaxIdealVideoSize )( - IVMRWindowlessControl9 * This, - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight); - - HRESULT ( STDMETHODCALLTYPE *SetVideoPosition )( - IVMRWindowlessControl9 * This, - /* [in] */ const LPRECT lpSRCRect, - /* [in] */ const LPRECT lpDSTRect); - - HRESULT ( STDMETHODCALLTYPE *GetVideoPosition )( - IVMRWindowlessControl9 * This, - /* [out] */ LPRECT lpSRCRect, - /* [out] */ LPRECT lpDSTRect); - - HRESULT ( STDMETHODCALLTYPE *GetAspectRatioMode )( - IVMRWindowlessControl9 * This, - /* [out] */ DWORD *lpAspectRatioMode); - - HRESULT ( STDMETHODCALLTYPE *SetAspectRatioMode )( - IVMRWindowlessControl9 * This, - /* [in] */ DWORD AspectRatioMode); - - HRESULT ( STDMETHODCALLTYPE *SetVideoClippingWindow )( - IVMRWindowlessControl9 * This, - /* [in] */ HWND hwnd); - - HRESULT ( STDMETHODCALLTYPE *RepaintVideo )( - IVMRWindowlessControl9 * This, - /* [in] */ HWND hwnd, - /* [in] */ HDC hdc); - - HRESULT ( STDMETHODCALLTYPE *DisplayModeChanged )( - IVMRWindowlessControl9 * This); - - HRESULT ( STDMETHODCALLTYPE *GetCurrentImage )( - IVMRWindowlessControl9 * This, - /* [out] */ BYTE **lpDib); - - HRESULT ( STDMETHODCALLTYPE *SetBorderColor )( - IVMRWindowlessControl9 * This, - /* [in] */ COLORREF Clr); - - HRESULT ( STDMETHODCALLTYPE *GetBorderColor )( - IVMRWindowlessControl9 * This, - /* [out] */ COLORREF *lpClr); - - END_INTERFACE - } IVMRWindowlessControl9Vtbl; - - interface IVMRWindowlessControl9 - { - CONST_VTBL struct IVMRWindowlessControl9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRWindowlessControl9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRWindowlessControl9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRWindowlessControl9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRWindowlessControl9_GetNativeVideoSize(This,lpWidth,lpHeight,lpARWidth,lpARHeight) \ - (This)->lpVtbl -> GetNativeVideoSize(This,lpWidth,lpHeight,lpARWidth,lpARHeight) - -#define IVMRWindowlessControl9_GetMinIdealVideoSize(This,lpWidth,lpHeight) \ - (This)->lpVtbl -> GetMinIdealVideoSize(This,lpWidth,lpHeight) - -#define IVMRWindowlessControl9_GetMaxIdealVideoSize(This,lpWidth,lpHeight) \ - (This)->lpVtbl -> GetMaxIdealVideoSize(This,lpWidth,lpHeight) - -#define IVMRWindowlessControl9_SetVideoPosition(This,lpSRCRect,lpDSTRect) \ - (This)->lpVtbl -> SetVideoPosition(This,lpSRCRect,lpDSTRect) - -#define IVMRWindowlessControl9_GetVideoPosition(This,lpSRCRect,lpDSTRect) \ - (This)->lpVtbl -> GetVideoPosition(This,lpSRCRect,lpDSTRect) - -#define IVMRWindowlessControl9_GetAspectRatioMode(This,lpAspectRatioMode) \ - (This)->lpVtbl -> GetAspectRatioMode(This,lpAspectRatioMode) - -#define IVMRWindowlessControl9_SetAspectRatioMode(This,AspectRatioMode) \ - (This)->lpVtbl -> SetAspectRatioMode(This,AspectRatioMode) - -#define IVMRWindowlessControl9_SetVideoClippingWindow(This,hwnd) \ - (This)->lpVtbl -> SetVideoClippingWindow(This,hwnd) - -#define IVMRWindowlessControl9_RepaintVideo(This,hwnd,hdc) \ - (This)->lpVtbl -> RepaintVideo(This,hwnd,hdc) - -#define IVMRWindowlessControl9_DisplayModeChanged(This) \ - (This)->lpVtbl -> DisplayModeChanged(This) - -#define IVMRWindowlessControl9_GetCurrentImage(This,lpDib) \ - (This)->lpVtbl -> GetCurrentImage(This,lpDib) - -#define IVMRWindowlessControl9_SetBorderColor(This,Clr) \ - (This)->lpVtbl -> SetBorderColor(This,Clr) - -#define IVMRWindowlessControl9_GetBorderColor(This,lpClr) \ - (This)->lpVtbl -> GetBorderColor(This,lpClr) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_GetNativeVideoSize_Proxy( - IVMRWindowlessControl9 * This, - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight, - /* [out] */ LONG *lpARWidth, - /* [out] */ LONG *lpARHeight); - - -void __RPC_STUB IVMRWindowlessControl9_GetNativeVideoSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_GetMinIdealVideoSize_Proxy( - IVMRWindowlessControl9 * This, - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight); - - -void __RPC_STUB IVMRWindowlessControl9_GetMinIdealVideoSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_GetMaxIdealVideoSize_Proxy( - IVMRWindowlessControl9 * This, - /* [out] */ LONG *lpWidth, - /* [out] */ LONG *lpHeight); - - -void __RPC_STUB IVMRWindowlessControl9_GetMaxIdealVideoSize_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_SetVideoPosition_Proxy( - IVMRWindowlessControl9 * This, - /* [in] */ const LPRECT lpSRCRect, - /* [in] */ const LPRECT lpDSTRect); - - -void __RPC_STUB IVMRWindowlessControl9_SetVideoPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_GetVideoPosition_Proxy( - IVMRWindowlessControl9 * This, - /* [out] */ LPRECT lpSRCRect, - /* [out] */ LPRECT lpDSTRect); - - -void __RPC_STUB IVMRWindowlessControl9_GetVideoPosition_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_GetAspectRatioMode_Proxy( - IVMRWindowlessControl9 * This, - /* [out] */ DWORD *lpAspectRatioMode); - - -void __RPC_STUB IVMRWindowlessControl9_GetAspectRatioMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_SetAspectRatioMode_Proxy( - IVMRWindowlessControl9 * This, - /* [in] */ DWORD AspectRatioMode); - - -void __RPC_STUB IVMRWindowlessControl9_SetAspectRatioMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_SetVideoClippingWindow_Proxy( - IVMRWindowlessControl9 * This, - /* [in] */ HWND hwnd); - - -void __RPC_STUB IVMRWindowlessControl9_SetVideoClippingWindow_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_RepaintVideo_Proxy( - IVMRWindowlessControl9 * This, - /* [in] */ HWND hwnd, - /* [in] */ HDC hdc); - - -void __RPC_STUB IVMRWindowlessControl9_RepaintVideo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_DisplayModeChanged_Proxy( - IVMRWindowlessControl9 * This); - - -void __RPC_STUB IVMRWindowlessControl9_DisplayModeChanged_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_GetCurrentImage_Proxy( - IVMRWindowlessControl9 * This, - /* [out] */ BYTE **lpDib); - - -void __RPC_STUB IVMRWindowlessControl9_GetCurrentImage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_SetBorderColor_Proxy( - IVMRWindowlessControl9 * This, - /* [in] */ COLORREF Clr); - - -void __RPC_STUB IVMRWindowlessControl9_SetBorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRWindowlessControl9_GetBorderColor_Proxy( - IVMRWindowlessControl9 * This, - /* [out] */ COLORREF *lpClr); - - -void __RPC_STUB IVMRWindowlessControl9_GetBorderColor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRWindowlessControl9_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_vmr9_0012 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_vmr9_0012_0001 - { MixerPref9_NoDecimation = 0x1, - MixerPref9_DecimateOutput = 0x2, - MixerPref9_DecimationReserved = 0xc, - MixerPref9_DecimateMask = 0xf, - MixerPref9_BiLinearFiltering = 0x10, - MixerPref9_PointFiltering = 0x20, - MixerPref9_AnisotropicFiltering = 0x40, - MixerPref9_PyramidalQuadFiltering = 0x80, - MixerPref9_GaussianQuadFiltering = 0x100, - MixerPref9_FilteringReserved = 0xe00, - MixerPref9_FilteringMask = 0xff0, - MixerPref9_RenderTargetRGB = 0x1000, - MixerPref9_RenderTargetReserved = 0xfe000, - MixerPref9_RenderTargetMask = 0xff000 - } VMR9MixerPrefs; - -typedef struct _VMR9NormalizedRect - { - float left; - float top; - float right; - float bottom; - } VMR9NormalizedRect; - -typedef /* [public][public][public] */ -enum __MIDL___MIDL_itf_vmr9_0012_0002 - { ProcAmpControl9_Brightness = 0x1, - ProcAmpControl9_Contrast = 0x2, - ProcAmpControl9_Hue = 0x4, - ProcAmpControl9_Saturation = 0x8, - ProcAmpControl9_Mask = 0xf - } VMR9ProcAmpControlFlags; - -typedef struct _VMR9ProcAmpControl - { - DWORD dwSize; - DWORD dwFlags; - float Brightness; - float Contrast; - float Hue; - float Saturation; - } VMR9ProcAmpControl; - -typedef struct _VMR9ProcAmpControlRange - { - DWORD dwSize; - VMR9ProcAmpControlFlags dwProperty; - float MinValue; - float MaxValue; - float DefaultValue; - float StepSize; - } VMR9ProcAmpControlRange; - - - -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0012_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0012_v0_0_s_ifspec; - -#ifndef __IVMRMixerControl9_INTERFACE_DEFINED__ -#define __IVMRMixerControl9_INTERFACE_DEFINED__ - -/* interface IVMRMixerControl9 */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRMixerControl9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("1a777eaa-47c8-4930-b2c9-8fee1c1b0f3b") - IVMRMixerControl9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetAlpha( - /* [in] */ DWORD dwStreamID, - /* [in] */ float Alpha) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAlpha( - /* [in] */ DWORD dwStreamID, - /* [out] */ float *pAlpha) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetZOrder( - /* [in] */ DWORD dwStreamID, - /* [in] */ DWORD dwZ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetZOrder( - /* [in] */ DWORD dwStreamID, - /* [out] */ DWORD *pZ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOutputRect( - /* [in] */ DWORD dwStreamID, - /* [in] */ const VMR9NormalizedRect *pRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetOutputRect( - /* [in] */ DWORD dwStreamID, - /* [out] */ VMR9NormalizedRect *pRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBackgroundClr( - /* [in] */ COLORREF ClrBkg) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBackgroundClr( - /* [in] */ COLORREF *lpClrBkg) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMixingPrefs( - /* [in] */ DWORD dwMixerPrefs) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMixingPrefs( - /* [out] */ DWORD *pdwMixerPrefs) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetProcAmpControl( - /* [in] */ DWORD dwStreamID, - /* [in] */ VMR9ProcAmpControl *lpClrControl) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetProcAmpControl( - /* [in] */ DWORD dwStreamID, - /* [out][in] */ VMR9ProcAmpControl *lpClrControl) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetProcAmpControlRange( - /* [in] */ DWORD dwStreamID, - /* [out][in] */ VMR9ProcAmpControlRange *lpClrControl) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRMixerControl9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRMixerControl9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRMixerControl9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRMixerControl9 * This); - - HRESULT ( STDMETHODCALLTYPE *SetAlpha )( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ float Alpha); - - HRESULT ( STDMETHODCALLTYPE *GetAlpha )( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ float *pAlpha); - - HRESULT ( STDMETHODCALLTYPE *SetZOrder )( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ DWORD dwZ); - - HRESULT ( STDMETHODCALLTYPE *GetZOrder )( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ DWORD *pZ); - - HRESULT ( STDMETHODCALLTYPE *SetOutputRect )( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ const VMR9NormalizedRect *pRect); - - HRESULT ( STDMETHODCALLTYPE *GetOutputRect )( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ VMR9NormalizedRect *pRect); - - HRESULT ( STDMETHODCALLTYPE *SetBackgroundClr )( - IVMRMixerControl9 * This, - /* [in] */ COLORREF ClrBkg); - - HRESULT ( STDMETHODCALLTYPE *GetBackgroundClr )( - IVMRMixerControl9 * This, - /* [in] */ COLORREF *lpClrBkg); - - HRESULT ( STDMETHODCALLTYPE *SetMixingPrefs )( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwMixerPrefs); - - HRESULT ( STDMETHODCALLTYPE *GetMixingPrefs )( - IVMRMixerControl9 * This, - /* [out] */ DWORD *pdwMixerPrefs); - - HRESULT ( STDMETHODCALLTYPE *SetProcAmpControl )( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ VMR9ProcAmpControl *lpClrControl); - - HRESULT ( STDMETHODCALLTYPE *GetProcAmpControl )( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out][in] */ VMR9ProcAmpControl *lpClrControl); - - HRESULT ( STDMETHODCALLTYPE *GetProcAmpControlRange )( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out][in] */ VMR9ProcAmpControlRange *lpClrControl); - - END_INTERFACE - } IVMRMixerControl9Vtbl; - - interface IVMRMixerControl9 - { - CONST_VTBL struct IVMRMixerControl9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRMixerControl9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRMixerControl9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRMixerControl9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRMixerControl9_SetAlpha(This,dwStreamID,Alpha) \ - (This)->lpVtbl -> SetAlpha(This,dwStreamID,Alpha) - -#define IVMRMixerControl9_GetAlpha(This,dwStreamID,pAlpha) \ - (This)->lpVtbl -> GetAlpha(This,dwStreamID,pAlpha) - -#define IVMRMixerControl9_SetZOrder(This,dwStreamID,dwZ) \ - (This)->lpVtbl -> SetZOrder(This,dwStreamID,dwZ) - -#define IVMRMixerControl9_GetZOrder(This,dwStreamID,pZ) \ - (This)->lpVtbl -> GetZOrder(This,dwStreamID,pZ) - -#define IVMRMixerControl9_SetOutputRect(This,dwStreamID,pRect) \ - (This)->lpVtbl -> SetOutputRect(This,dwStreamID,pRect) - -#define IVMRMixerControl9_GetOutputRect(This,dwStreamID,pRect) \ - (This)->lpVtbl -> GetOutputRect(This,dwStreamID,pRect) - -#define IVMRMixerControl9_SetBackgroundClr(This,ClrBkg) \ - (This)->lpVtbl -> SetBackgroundClr(This,ClrBkg) - -#define IVMRMixerControl9_GetBackgroundClr(This,lpClrBkg) \ - (This)->lpVtbl -> GetBackgroundClr(This,lpClrBkg) - -#define IVMRMixerControl9_SetMixingPrefs(This,dwMixerPrefs) \ - (This)->lpVtbl -> SetMixingPrefs(This,dwMixerPrefs) - -#define IVMRMixerControl9_GetMixingPrefs(This,pdwMixerPrefs) \ - (This)->lpVtbl -> GetMixingPrefs(This,pdwMixerPrefs) - -#define IVMRMixerControl9_SetProcAmpControl(This,dwStreamID,lpClrControl) \ - (This)->lpVtbl -> SetProcAmpControl(This,dwStreamID,lpClrControl) - -#define IVMRMixerControl9_GetProcAmpControl(This,dwStreamID,lpClrControl) \ - (This)->lpVtbl -> GetProcAmpControl(This,dwStreamID,lpClrControl) - -#define IVMRMixerControl9_GetProcAmpControlRange(This,dwStreamID,lpClrControl) \ - (This)->lpVtbl -> GetProcAmpControlRange(This,dwStreamID,lpClrControl) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_SetAlpha_Proxy( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ float Alpha); - - -void __RPC_STUB IVMRMixerControl9_SetAlpha_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_GetAlpha_Proxy( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ float *pAlpha); - - -void __RPC_STUB IVMRMixerControl9_GetAlpha_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_SetZOrder_Proxy( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ DWORD dwZ); - - -void __RPC_STUB IVMRMixerControl9_SetZOrder_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_GetZOrder_Proxy( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ DWORD *pZ); - - -void __RPC_STUB IVMRMixerControl9_GetZOrder_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_SetOutputRect_Proxy( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ const VMR9NormalizedRect *pRect); - - -void __RPC_STUB IVMRMixerControl9_SetOutputRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_GetOutputRect_Proxy( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ VMR9NormalizedRect *pRect); - - -void __RPC_STUB IVMRMixerControl9_GetOutputRect_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_SetBackgroundClr_Proxy( - IVMRMixerControl9 * This, - /* [in] */ COLORREF ClrBkg); - - -void __RPC_STUB IVMRMixerControl9_SetBackgroundClr_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_GetBackgroundClr_Proxy( - IVMRMixerControl9 * This, - /* [in] */ COLORREF *lpClrBkg); - - -void __RPC_STUB IVMRMixerControl9_GetBackgroundClr_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_SetMixingPrefs_Proxy( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwMixerPrefs); - - -void __RPC_STUB IVMRMixerControl9_SetMixingPrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_GetMixingPrefs_Proxy( - IVMRMixerControl9 * This, - /* [out] */ DWORD *pdwMixerPrefs); - - -void __RPC_STUB IVMRMixerControl9_GetMixingPrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_SetProcAmpControl_Proxy( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ VMR9ProcAmpControl *lpClrControl); - - -void __RPC_STUB IVMRMixerControl9_SetProcAmpControl_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_GetProcAmpControl_Proxy( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out][in] */ VMR9ProcAmpControl *lpClrControl); - - -void __RPC_STUB IVMRMixerControl9_GetProcAmpControl_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerControl9_GetProcAmpControlRange_Proxy( - IVMRMixerControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out][in] */ VMR9ProcAmpControlRange *lpClrControl); - - -void __RPC_STUB IVMRMixerControl9_GetProcAmpControlRange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRMixerControl9_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_vmr9_0013 */ -/* [local] */ - -typedef struct _VMR9AlphaBitmap - { - DWORD dwFlags; - HDC hdc; - IDirect3DSurface9 *pDDS; - RECT rSrc; - VMR9NormalizedRect rDest; - FLOAT fAlpha; - COLORREF clrSrcKey; - DWORD dwFilterMode; - } VMR9AlphaBitmap; - -typedef /* [public] */ -enum __MIDL___MIDL_itf_vmr9_0013_0001 - { VMR9AlphaBitmap_Disable = 0x1, - VMR9AlphaBitmap_hDC = 0x2, - VMR9AlphaBitmap_EntireDDS = 0x4, - VMR9AlphaBitmap_SrcColorKey = 0x8, - VMR9AlphaBitmap_SrcRect = 0x10, - VMR9AlphaBitmap_FilterMode = 0x20 - } VMR9AlphaBitmapFlags; - - - -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0013_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0013_v0_0_s_ifspec; - -#ifndef __IVMRMixerBitmap9_INTERFACE_DEFINED__ -#define __IVMRMixerBitmap9_INTERFACE_DEFINED__ - -/* interface IVMRMixerBitmap9 */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IVMRMixerBitmap9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("ced175e5-1935-4820-81bd-ff6ad00c9108") - IVMRMixerBitmap9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetAlphaBitmap( - /* [in] */ const VMR9AlphaBitmap *pBmpParms) = 0; - - virtual HRESULT STDMETHODCALLTYPE UpdateAlphaBitmapParameters( - /* [in] */ const VMR9AlphaBitmap *pBmpParms) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAlphaBitmapParameters( - /* [out] */ VMR9AlphaBitmap *pBmpParms) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRMixerBitmap9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRMixerBitmap9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRMixerBitmap9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRMixerBitmap9 * This); - - HRESULT ( STDMETHODCALLTYPE *SetAlphaBitmap )( - IVMRMixerBitmap9 * This, - /* [in] */ const VMR9AlphaBitmap *pBmpParms); - - HRESULT ( STDMETHODCALLTYPE *UpdateAlphaBitmapParameters )( - IVMRMixerBitmap9 * This, - /* [in] */ const VMR9AlphaBitmap *pBmpParms); - - HRESULT ( STDMETHODCALLTYPE *GetAlphaBitmapParameters )( - IVMRMixerBitmap9 * This, - /* [out] */ VMR9AlphaBitmap *pBmpParms); - - END_INTERFACE - } IVMRMixerBitmap9Vtbl; - - interface IVMRMixerBitmap9 - { - CONST_VTBL struct IVMRMixerBitmap9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRMixerBitmap9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRMixerBitmap9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRMixerBitmap9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRMixerBitmap9_SetAlphaBitmap(This,pBmpParms) \ - (This)->lpVtbl -> SetAlphaBitmap(This,pBmpParms) - -#define IVMRMixerBitmap9_UpdateAlphaBitmapParameters(This,pBmpParms) \ - (This)->lpVtbl -> UpdateAlphaBitmapParameters(This,pBmpParms) - -#define IVMRMixerBitmap9_GetAlphaBitmapParameters(This,pBmpParms) \ - (This)->lpVtbl -> GetAlphaBitmapParameters(This,pBmpParms) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRMixerBitmap9_SetAlphaBitmap_Proxy( - IVMRMixerBitmap9 * This, - /* [in] */ const VMR9AlphaBitmap *pBmpParms); - - -void __RPC_STUB IVMRMixerBitmap9_SetAlphaBitmap_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerBitmap9_UpdateAlphaBitmapParameters_Proxy( - IVMRMixerBitmap9 * This, - /* [in] */ const VMR9AlphaBitmap *pBmpParms); - - -void __RPC_STUB IVMRMixerBitmap9_UpdateAlphaBitmapParameters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMixerBitmap9_GetAlphaBitmapParameters_Proxy( - IVMRMixerBitmap9 * This, - /* [out] */ VMR9AlphaBitmap *pBmpParms); - - -void __RPC_STUB IVMRMixerBitmap9_GetAlphaBitmapParameters_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRMixerBitmap9_INTERFACE_DEFINED__ */ - - -#ifndef __IVMRSurface9_INTERFACE_DEFINED__ -#define __IVMRSurface9_INTERFACE_DEFINED__ - -/* interface IVMRSurface9 */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRSurface9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("dfc581a1-6e1f-4c3a-8d0a-5e9792ea2afc") - IVMRSurface9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE IsSurfaceLocked( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE LockSurface( - /* [out] */ BYTE **lpSurface) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnlockSurface( void) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSurface( - /* [out] */ IDirect3DSurface9 **lplpSurface) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRSurface9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRSurface9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRSurface9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRSurface9 * This); - - HRESULT ( STDMETHODCALLTYPE *IsSurfaceLocked )( - IVMRSurface9 * This); - - HRESULT ( STDMETHODCALLTYPE *LockSurface )( - IVMRSurface9 * This, - /* [out] */ BYTE **lpSurface); - - HRESULT ( STDMETHODCALLTYPE *UnlockSurface )( - IVMRSurface9 * This); - - HRESULT ( STDMETHODCALLTYPE *GetSurface )( - IVMRSurface9 * This, - /* [out] */ IDirect3DSurface9 **lplpSurface); - - END_INTERFACE - } IVMRSurface9Vtbl; - - interface IVMRSurface9 - { - CONST_VTBL struct IVMRSurface9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRSurface9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRSurface9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRSurface9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRSurface9_IsSurfaceLocked(This) \ - (This)->lpVtbl -> IsSurfaceLocked(This) - -#define IVMRSurface9_LockSurface(This,lpSurface) \ - (This)->lpVtbl -> LockSurface(This,lpSurface) - -#define IVMRSurface9_UnlockSurface(This) \ - (This)->lpVtbl -> UnlockSurface(This) - -#define IVMRSurface9_GetSurface(This,lplpSurface) \ - (This)->lpVtbl -> GetSurface(This,lplpSurface) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRSurface9_IsSurfaceLocked_Proxy( - IVMRSurface9 * This); - - -void __RPC_STUB IVMRSurface9_IsSurfaceLocked_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurface9_LockSurface_Proxy( - IVMRSurface9 * This, - /* [out] */ BYTE **lpSurface); - - -void __RPC_STUB IVMRSurface9_LockSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurface9_UnlockSurface_Proxy( - IVMRSurface9 * This); - - -void __RPC_STUB IVMRSurface9_UnlockSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRSurface9_GetSurface_Proxy( - IVMRSurface9 * This, - /* [out] */ IDirect3DSurface9 **lplpSurface); - - -void __RPC_STUB IVMRSurface9_GetSurface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRSurface9_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_vmr9_0015 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_vmr9_0015_0001 - { RenderPrefs9_DoNotRenderBorder = 0x1, - RenderPrefs9_Mask = 0x1 - } VMR9RenderPrefs; - - - -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0015_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0015_v0_0_s_ifspec; - -#ifndef __IVMRImagePresenterConfig9_INTERFACE_DEFINED__ -#define __IVMRImagePresenterConfig9_INTERFACE_DEFINED__ - -/* interface IVMRImagePresenterConfig9 */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRImagePresenterConfig9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("45c15cab-6e22-420a-8043-ae1f0ac02c7d") - IVMRImagePresenterConfig9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetRenderingPrefs( - /* [in] */ DWORD dwRenderFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRenderingPrefs( - /* [out] */ DWORD *dwRenderFlags) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRImagePresenterConfig9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRImagePresenterConfig9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRImagePresenterConfig9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRImagePresenterConfig9 * This); - - HRESULT ( STDMETHODCALLTYPE *SetRenderingPrefs )( - IVMRImagePresenterConfig9 * This, - /* [in] */ DWORD dwRenderFlags); - - HRESULT ( STDMETHODCALLTYPE *GetRenderingPrefs )( - IVMRImagePresenterConfig9 * This, - /* [out] */ DWORD *dwRenderFlags); - - END_INTERFACE - } IVMRImagePresenterConfig9Vtbl; - - interface IVMRImagePresenterConfig9 - { - CONST_VTBL struct IVMRImagePresenterConfig9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRImagePresenterConfig9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRImagePresenterConfig9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRImagePresenterConfig9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRImagePresenterConfig9_SetRenderingPrefs(This,dwRenderFlags) \ - (This)->lpVtbl -> SetRenderingPrefs(This,dwRenderFlags) - -#define IVMRImagePresenterConfig9_GetRenderingPrefs(This,dwRenderFlags) \ - (This)->lpVtbl -> GetRenderingPrefs(This,dwRenderFlags) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRImagePresenterConfig9_SetRenderingPrefs_Proxy( - IVMRImagePresenterConfig9 * This, - /* [in] */ DWORD dwRenderFlags); - - -void __RPC_STUB IVMRImagePresenterConfig9_SetRenderingPrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImagePresenterConfig9_GetRenderingPrefs_Proxy( - IVMRImagePresenterConfig9 * This, - /* [out] */ DWORD *dwRenderFlags); - - -void __RPC_STUB IVMRImagePresenterConfig9_GetRenderingPrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRImagePresenterConfig9_INTERFACE_DEFINED__ */ - - -#ifndef __IVMRVideoStreamControl9_INTERFACE_DEFINED__ -#define __IVMRVideoStreamControl9_INTERFACE_DEFINED__ - -/* interface IVMRVideoStreamControl9 */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IVMRVideoStreamControl9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("d0cfe38b-93e7-4772-8957-0400c49a4485") - IVMRVideoStreamControl9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetStreamActiveState( - /* [in] */ BOOL fActive) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStreamActiveState( - /* [out] */ BOOL *lpfActive) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRVideoStreamControl9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRVideoStreamControl9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRVideoStreamControl9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRVideoStreamControl9 * This); - - HRESULT ( STDMETHODCALLTYPE *SetStreamActiveState )( - IVMRVideoStreamControl9 * This, - /* [in] */ BOOL fActive); - - HRESULT ( STDMETHODCALLTYPE *GetStreamActiveState )( - IVMRVideoStreamControl9 * This, - /* [out] */ BOOL *lpfActive); - - END_INTERFACE - } IVMRVideoStreamControl9Vtbl; - - interface IVMRVideoStreamControl9 - { - CONST_VTBL struct IVMRVideoStreamControl9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRVideoStreamControl9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRVideoStreamControl9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRVideoStreamControl9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRVideoStreamControl9_SetStreamActiveState(This,fActive) \ - (This)->lpVtbl -> SetStreamActiveState(This,fActive) - -#define IVMRVideoStreamControl9_GetStreamActiveState(This,lpfActive) \ - (This)->lpVtbl -> GetStreamActiveState(This,lpfActive) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRVideoStreamControl9_SetStreamActiveState_Proxy( - IVMRVideoStreamControl9 * This, - /* [in] */ BOOL fActive); - - -void __RPC_STUB IVMRVideoStreamControl9_SetStreamActiveState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRVideoStreamControl9_GetStreamActiveState_Proxy( - IVMRVideoStreamControl9 * This, - /* [out] */ BOOL *lpfActive); - - -void __RPC_STUB IVMRVideoStreamControl9_GetStreamActiveState_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRVideoStreamControl9_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_vmr9_0017 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_vmr9_0017_0001 - { VMR9Mode_Windowed = 0x1, - VMR9Mode_Windowless = 0x2, - VMR9Mode_Renderless = 0x4, - VMR9Mode_Mask = 0x7 - } VMR9Mode; - - - -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0017_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0017_v0_0_s_ifspec; - -#ifndef __IVMRFilterConfig9_INTERFACE_DEFINED__ -#define __IVMRFilterConfig9_INTERFACE_DEFINED__ - -/* interface IVMRFilterConfig9 */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IVMRFilterConfig9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("5a804648-4f66-4867-9c43-4f5c822cf1b8") - IVMRFilterConfig9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetImageCompositor( - /* [in] */ IVMRImageCompositor9 *lpVMRImgCompositor) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetNumberOfStreams( - /* [in] */ DWORD dwMaxStreams) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNumberOfStreams( - /* [out] */ DWORD *pdwMaxStreams) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRenderingPrefs( - /* [in] */ DWORD dwRenderFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRenderingPrefs( - /* [out] */ DWORD *pdwRenderFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRenderingMode( - /* [in] */ DWORD Mode) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRenderingMode( - /* [out] */ DWORD *pMode) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRFilterConfig9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRFilterConfig9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRFilterConfig9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRFilterConfig9 * This); - - HRESULT ( STDMETHODCALLTYPE *SetImageCompositor )( - IVMRFilterConfig9 * This, - /* [in] */ IVMRImageCompositor9 *lpVMRImgCompositor); - - HRESULT ( STDMETHODCALLTYPE *SetNumberOfStreams )( - IVMRFilterConfig9 * This, - /* [in] */ DWORD dwMaxStreams); - - HRESULT ( STDMETHODCALLTYPE *GetNumberOfStreams )( - IVMRFilterConfig9 * This, - /* [out] */ DWORD *pdwMaxStreams); - - HRESULT ( STDMETHODCALLTYPE *SetRenderingPrefs )( - IVMRFilterConfig9 * This, - /* [in] */ DWORD dwRenderFlags); - - HRESULT ( STDMETHODCALLTYPE *GetRenderingPrefs )( - IVMRFilterConfig9 * This, - /* [out] */ DWORD *pdwRenderFlags); - - HRESULT ( STDMETHODCALLTYPE *SetRenderingMode )( - IVMRFilterConfig9 * This, - /* [in] */ DWORD Mode); - - HRESULT ( STDMETHODCALLTYPE *GetRenderingMode )( - IVMRFilterConfig9 * This, - /* [out] */ DWORD *pMode); - - END_INTERFACE - } IVMRFilterConfig9Vtbl; - - interface IVMRFilterConfig9 - { - CONST_VTBL struct IVMRFilterConfig9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRFilterConfig9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRFilterConfig9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRFilterConfig9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRFilterConfig9_SetImageCompositor(This,lpVMRImgCompositor) \ - (This)->lpVtbl -> SetImageCompositor(This,lpVMRImgCompositor) - -#define IVMRFilterConfig9_SetNumberOfStreams(This,dwMaxStreams) \ - (This)->lpVtbl -> SetNumberOfStreams(This,dwMaxStreams) - -#define IVMRFilterConfig9_GetNumberOfStreams(This,pdwMaxStreams) \ - (This)->lpVtbl -> GetNumberOfStreams(This,pdwMaxStreams) - -#define IVMRFilterConfig9_SetRenderingPrefs(This,dwRenderFlags) \ - (This)->lpVtbl -> SetRenderingPrefs(This,dwRenderFlags) - -#define IVMRFilterConfig9_GetRenderingPrefs(This,pdwRenderFlags) \ - (This)->lpVtbl -> GetRenderingPrefs(This,pdwRenderFlags) - -#define IVMRFilterConfig9_SetRenderingMode(This,Mode) \ - (This)->lpVtbl -> SetRenderingMode(This,Mode) - -#define IVMRFilterConfig9_GetRenderingMode(This,pMode) \ - (This)->lpVtbl -> GetRenderingMode(This,pMode) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig9_SetImageCompositor_Proxy( - IVMRFilterConfig9 * This, - /* [in] */ IVMRImageCompositor9 *lpVMRImgCompositor); - - -void __RPC_STUB IVMRFilterConfig9_SetImageCompositor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig9_SetNumberOfStreams_Proxy( - IVMRFilterConfig9 * This, - /* [in] */ DWORD dwMaxStreams); - - -void __RPC_STUB IVMRFilterConfig9_SetNumberOfStreams_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig9_GetNumberOfStreams_Proxy( - IVMRFilterConfig9 * This, - /* [out] */ DWORD *pdwMaxStreams); - - -void __RPC_STUB IVMRFilterConfig9_GetNumberOfStreams_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig9_SetRenderingPrefs_Proxy( - IVMRFilterConfig9 * This, - /* [in] */ DWORD dwRenderFlags); - - -void __RPC_STUB IVMRFilterConfig9_SetRenderingPrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig9_GetRenderingPrefs_Proxy( - IVMRFilterConfig9 * This, - /* [out] */ DWORD *pdwRenderFlags); - - -void __RPC_STUB IVMRFilterConfig9_GetRenderingPrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig9_SetRenderingMode_Proxy( - IVMRFilterConfig9 * This, - /* [in] */ DWORD Mode); - - -void __RPC_STUB IVMRFilterConfig9_SetRenderingMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRFilterConfig9_GetRenderingMode_Proxy( - IVMRFilterConfig9 * This, - /* [out] */ DWORD *pMode); - - -void __RPC_STUB IVMRFilterConfig9_GetRenderingMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRFilterConfig9_INTERFACE_DEFINED__ */ - - -#ifndef __IVMRAspectRatioControl9_INTERFACE_DEFINED__ -#define __IVMRAspectRatioControl9_INTERFACE_DEFINED__ - -/* interface IVMRAspectRatioControl9 */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IVMRAspectRatioControl9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("00d96c29-bbde-4efc-9901-bb5036392146") - IVMRAspectRatioControl9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetAspectRatioMode( - /* [out] */ LPDWORD lpdwARMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetAspectRatioMode( - /* [in] */ DWORD dwARMode) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRAspectRatioControl9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRAspectRatioControl9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRAspectRatioControl9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRAspectRatioControl9 * This); - - HRESULT ( STDMETHODCALLTYPE *GetAspectRatioMode )( - IVMRAspectRatioControl9 * This, - /* [out] */ LPDWORD lpdwARMode); - - HRESULT ( STDMETHODCALLTYPE *SetAspectRatioMode )( - IVMRAspectRatioControl9 * This, - /* [in] */ DWORD dwARMode); - - END_INTERFACE - } IVMRAspectRatioControl9Vtbl; - - interface IVMRAspectRatioControl9 - { - CONST_VTBL struct IVMRAspectRatioControl9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRAspectRatioControl9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRAspectRatioControl9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRAspectRatioControl9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRAspectRatioControl9_GetAspectRatioMode(This,lpdwARMode) \ - (This)->lpVtbl -> GetAspectRatioMode(This,lpdwARMode) - -#define IVMRAspectRatioControl9_SetAspectRatioMode(This,dwARMode) \ - (This)->lpVtbl -> SetAspectRatioMode(This,dwARMode) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRAspectRatioControl9_GetAspectRatioMode_Proxy( - IVMRAspectRatioControl9 * This, - /* [out] */ LPDWORD lpdwARMode); - - -void __RPC_STUB IVMRAspectRatioControl9_GetAspectRatioMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRAspectRatioControl9_SetAspectRatioMode_Proxy( - IVMRAspectRatioControl9 * This, - /* [in] */ DWORD dwARMode); - - -void __RPC_STUB IVMRAspectRatioControl9_SetAspectRatioMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRAspectRatioControl9_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_vmr9_0019 */ -/* [local] */ - -typedef struct _VMR9MonitorInfo - { - UINT uDevID; - RECT rcMonitor; - HMONITOR hMon; - DWORD dwFlags; - wchar_t szDevice[ 32 ]; - wchar_t szDescription[ 512 ]; - LARGE_INTEGER liDriverVersion; - DWORD dwVendorId; - DWORD dwDeviceId; - DWORD dwSubSysId; - DWORD dwRevision; - } VMR9MonitorInfo; - - - -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0019_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0019_v0_0_s_ifspec; - -#ifndef __IVMRMonitorConfig9_INTERFACE_DEFINED__ -#define __IVMRMonitorConfig9_INTERFACE_DEFINED__ - -/* interface IVMRMonitorConfig9 */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IVMRMonitorConfig9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("46c2e457-8ba0-4eef-b80b-0680f0978749") - IVMRMonitorConfig9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE SetMonitor( - /* [in] */ UINT uDev) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMonitor( - /* [out] */ UINT *puDev) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDefaultMonitor( - /* [in] */ UINT uDev) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultMonitor( - /* [out] */ UINT *puDev) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAvailableMonitors( - /* [size_is][out] */ VMR9MonitorInfo *pInfo, - /* [in] */ DWORD dwMaxInfoArraySize, - /* [out] */ DWORD *pdwNumDevices) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRMonitorConfig9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRMonitorConfig9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRMonitorConfig9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRMonitorConfig9 * This); - - HRESULT ( STDMETHODCALLTYPE *SetMonitor )( - IVMRMonitorConfig9 * This, - /* [in] */ UINT uDev); - - HRESULT ( STDMETHODCALLTYPE *GetMonitor )( - IVMRMonitorConfig9 * This, - /* [out] */ UINT *puDev); - - HRESULT ( STDMETHODCALLTYPE *SetDefaultMonitor )( - IVMRMonitorConfig9 * This, - /* [in] */ UINT uDev); - - HRESULT ( STDMETHODCALLTYPE *GetDefaultMonitor )( - IVMRMonitorConfig9 * This, - /* [out] */ UINT *puDev); - - HRESULT ( STDMETHODCALLTYPE *GetAvailableMonitors )( - IVMRMonitorConfig9 * This, - /* [size_is][out] */ VMR9MonitorInfo *pInfo, - /* [in] */ DWORD dwMaxInfoArraySize, - /* [out] */ DWORD *pdwNumDevices); - - END_INTERFACE - } IVMRMonitorConfig9Vtbl; - - interface IVMRMonitorConfig9 - { - CONST_VTBL struct IVMRMonitorConfig9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRMonitorConfig9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRMonitorConfig9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRMonitorConfig9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRMonitorConfig9_SetMonitor(This,uDev) \ - (This)->lpVtbl -> SetMonitor(This,uDev) - -#define IVMRMonitorConfig9_GetMonitor(This,puDev) \ - (This)->lpVtbl -> GetMonitor(This,puDev) - -#define IVMRMonitorConfig9_SetDefaultMonitor(This,uDev) \ - (This)->lpVtbl -> SetDefaultMonitor(This,uDev) - -#define IVMRMonitorConfig9_GetDefaultMonitor(This,puDev) \ - (This)->lpVtbl -> GetDefaultMonitor(This,puDev) - -#define IVMRMonitorConfig9_GetAvailableMonitors(This,pInfo,dwMaxInfoArraySize,pdwNumDevices) \ - (This)->lpVtbl -> GetAvailableMonitors(This,pInfo,dwMaxInfoArraySize,pdwNumDevices) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRMonitorConfig9_SetMonitor_Proxy( - IVMRMonitorConfig9 * This, - /* [in] */ UINT uDev); - - -void __RPC_STUB IVMRMonitorConfig9_SetMonitor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMonitorConfig9_GetMonitor_Proxy( - IVMRMonitorConfig9 * This, - /* [out] */ UINT *puDev); - - -void __RPC_STUB IVMRMonitorConfig9_GetMonitor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMonitorConfig9_SetDefaultMonitor_Proxy( - IVMRMonitorConfig9 * This, - /* [in] */ UINT uDev); - - -void __RPC_STUB IVMRMonitorConfig9_SetDefaultMonitor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMonitorConfig9_GetDefaultMonitor_Proxy( - IVMRMonitorConfig9 * This, - /* [out] */ UINT *puDev); - - -void __RPC_STUB IVMRMonitorConfig9_GetDefaultMonitor_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRMonitorConfig9_GetAvailableMonitors_Proxy( - IVMRMonitorConfig9 * This, - /* [size_is][out] */ VMR9MonitorInfo *pInfo, - /* [in] */ DWORD dwMaxInfoArraySize, - /* [out] */ DWORD *pdwNumDevices); - - -void __RPC_STUB IVMRMonitorConfig9_GetAvailableMonitors_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRMonitorConfig9_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_vmr9_0020 */ -/* [local] */ - -typedef /* [public] */ -enum __MIDL___MIDL_itf_vmr9_0020_0001 - { DeinterlacePref9_NextBest = 0x1, - DeinterlacePref9_BOB = 0x2, - DeinterlacePref9_Weave = 0x4, - DeinterlacePref9_Mask = 0x7 - } VMR9DeinterlacePrefs; - -typedef /* [public][public][public] */ -enum __MIDL___MIDL_itf_vmr9_0020_0002 - { DeinterlaceTech9_Unknown = 0, - DeinterlaceTech9_BOBLineReplicate = 0x1, - DeinterlaceTech9_BOBVerticalStretch = 0x2, - DeinterlaceTech9_MedianFiltering = 0x4, - DeinterlaceTech9_EdgeFiltering = 0x10, - DeinterlaceTech9_FieldAdaptive = 0x20, - DeinterlaceTech9_PixelAdaptive = 0x40, - DeinterlaceTech9_MotionVectorSteered = 0x80 - } VMR9DeinterlaceTech; - -typedef struct _VMR9Frequency - { - DWORD dwNumerator; - DWORD dwDenominator; - } VMR9Frequency; - -typedef -enum _VMR9_SampleFormat - { VMR9_SampleReserved = 1, - VMR9_SampleProgressiveFrame = 2, - VMR9_SampleFieldInterleavedEvenFirst = 3, - VMR9_SampleFieldInterleavedOddFirst = 4, - VMR9_SampleFieldSingleEven = 5, - VMR9_SampleFieldSingleOdd = 6 - } VMR9_SampleFormat; - -typedef struct _VMR9VideoDesc - { - DWORD dwSize; - DWORD dwSampleWidth; - DWORD dwSampleHeight; - VMR9_SampleFormat SampleFormat; - DWORD dwFourCC; - VMR9Frequency InputSampleFreq; - VMR9Frequency OutputFrameFreq; - } VMR9VideoDesc; - -typedef struct _VMR9DeinterlaceCaps - { - DWORD dwSize; - DWORD dwNumPreviousOutputFrames; - DWORD dwNumForwardRefSamples; - DWORD dwNumBackwardRefSamples; - VMR9DeinterlaceTech DeinterlaceTechnology; - } VMR9DeinterlaceCaps; - - - -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0020_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0020_v0_0_s_ifspec; - -#ifndef __IVMRDeinterlaceControl9_INTERFACE_DEFINED__ -#define __IVMRDeinterlaceControl9_INTERFACE_DEFINED__ - -/* interface IVMRDeinterlaceControl9 */ -/* [unique][helpstring][uuid][local][object] */ - - -EXTERN_C const IID IID_IVMRDeinterlaceControl9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("a215fb8d-13c2-4f7f-993c-003d6271a459") - IVMRDeinterlaceControl9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE GetNumberOfDeinterlaceModes( - /* [in] */ VMR9VideoDesc *lpVideoDescription, - /* [out][in] */ LPDWORD lpdwNumDeinterlaceModes, - /* [out] */ LPGUID lpDeinterlaceModes) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDeinterlaceModeCaps( - /* [in] */ LPGUID lpDeinterlaceMode, - /* [in] */ VMR9VideoDesc *lpVideoDescription, - /* [out] */ VMR9DeinterlaceCaps *lpDeinterlaceCaps) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDeinterlaceMode( - /* [in] */ DWORD dwStreamID, - /* [out] */ LPGUID lpDeinterlaceMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDeinterlaceMode( - /* [in] */ DWORD dwStreamID, - /* [in] */ LPGUID lpDeinterlaceMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDeinterlacePrefs( - /* [out] */ LPDWORD lpdwDeinterlacePrefs) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDeinterlacePrefs( - /* [in] */ DWORD dwDeinterlacePrefs) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetActualDeinterlaceMode( - /* [in] */ DWORD dwStreamID, - /* [out] */ LPGUID lpDeinterlaceMode) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRDeinterlaceControl9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRDeinterlaceControl9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRDeinterlaceControl9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRDeinterlaceControl9 * This); - - HRESULT ( STDMETHODCALLTYPE *GetNumberOfDeinterlaceModes )( - IVMRDeinterlaceControl9 * This, - /* [in] */ VMR9VideoDesc *lpVideoDescription, - /* [out][in] */ LPDWORD lpdwNumDeinterlaceModes, - /* [out] */ LPGUID lpDeinterlaceModes); - - HRESULT ( STDMETHODCALLTYPE *GetDeinterlaceModeCaps )( - IVMRDeinterlaceControl9 * This, - /* [in] */ LPGUID lpDeinterlaceMode, - /* [in] */ VMR9VideoDesc *lpVideoDescription, - /* [out] */ VMR9DeinterlaceCaps *lpDeinterlaceCaps); - - HRESULT ( STDMETHODCALLTYPE *GetDeinterlaceMode )( - IVMRDeinterlaceControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ LPGUID lpDeinterlaceMode); - - HRESULT ( STDMETHODCALLTYPE *SetDeinterlaceMode )( - IVMRDeinterlaceControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ LPGUID lpDeinterlaceMode); - - HRESULT ( STDMETHODCALLTYPE *GetDeinterlacePrefs )( - IVMRDeinterlaceControl9 * This, - /* [out] */ LPDWORD lpdwDeinterlacePrefs); - - HRESULT ( STDMETHODCALLTYPE *SetDeinterlacePrefs )( - IVMRDeinterlaceControl9 * This, - /* [in] */ DWORD dwDeinterlacePrefs); - - HRESULT ( STDMETHODCALLTYPE *GetActualDeinterlaceMode )( - IVMRDeinterlaceControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ LPGUID lpDeinterlaceMode); - - END_INTERFACE - } IVMRDeinterlaceControl9Vtbl; - - interface IVMRDeinterlaceControl9 - { - CONST_VTBL struct IVMRDeinterlaceControl9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRDeinterlaceControl9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRDeinterlaceControl9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRDeinterlaceControl9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRDeinterlaceControl9_GetNumberOfDeinterlaceModes(This,lpVideoDescription,lpdwNumDeinterlaceModes,lpDeinterlaceModes) \ - (This)->lpVtbl -> GetNumberOfDeinterlaceModes(This,lpVideoDescription,lpdwNumDeinterlaceModes,lpDeinterlaceModes) - -#define IVMRDeinterlaceControl9_GetDeinterlaceModeCaps(This,lpDeinterlaceMode,lpVideoDescription,lpDeinterlaceCaps) \ - (This)->lpVtbl -> GetDeinterlaceModeCaps(This,lpDeinterlaceMode,lpVideoDescription,lpDeinterlaceCaps) - -#define IVMRDeinterlaceControl9_GetDeinterlaceMode(This,dwStreamID,lpDeinterlaceMode) \ - (This)->lpVtbl -> GetDeinterlaceMode(This,dwStreamID,lpDeinterlaceMode) - -#define IVMRDeinterlaceControl9_SetDeinterlaceMode(This,dwStreamID,lpDeinterlaceMode) \ - (This)->lpVtbl -> SetDeinterlaceMode(This,dwStreamID,lpDeinterlaceMode) - -#define IVMRDeinterlaceControl9_GetDeinterlacePrefs(This,lpdwDeinterlacePrefs) \ - (This)->lpVtbl -> GetDeinterlacePrefs(This,lpdwDeinterlacePrefs) - -#define IVMRDeinterlaceControl9_SetDeinterlacePrefs(This,dwDeinterlacePrefs) \ - (This)->lpVtbl -> SetDeinterlacePrefs(This,dwDeinterlacePrefs) - -#define IVMRDeinterlaceControl9_GetActualDeinterlaceMode(This,dwStreamID,lpDeinterlaceMode) \ - (This)->lpVtbl -> GetActualDeinterlaceMode(This,dwStreamID,lpDeinterlaceMode) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl9_GetNumberOfDeinterlaceModes_Proxy( - IVMRDeinterlaceControl9 * This, - /* [in] */ VMR9VideoDesc *lpVideoDescription, - /* [out][in] */ LPDWORD lpdwNumDeinterlaceModes, - /* [out] */ LPGUID lpDeinterlaceModes); - - -void __RPC_STUB IVMRDeinterlaceControl9_GetNumberOfDeinterlaceModes_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl9_GetDeinterlaceModeCaps_Proxy( - IVMRDeinterlaceControl9 * This, - /* [in] */ LPGUID lpDeinterlaceMode, - /* [in] */ VMR9VideoDesc *lpVideoDescription, - /* [out] */ VMR9DeinterlaceCaps *lpDeinterlaceCaps); - - -void __RPC_STUB IVMRDeinterlaceControl9_GetDeinterlaceModeCaps_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl9_GetDeinterlaceMode_Proxy( - IVMRDeinterlaceControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ LPGUID lpDeinterlaceMode); - - -void __RPC_STUB IVMRDeinterlaceControl9_GetDeinterlaceMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl9_SetDeinterlaceMode_Proxy( - IVMRDeinterlaceControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [in] */ LPGUID lpDeinterlaceMode); - - -void __RPC_STUB IVMRDeinterlaceControl9_SetDeinterlaceMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl9_GetDeinterlacePrefs_Proxy( - IVMRDeinterlaceControl9 * This, - /* [out] */ LPDWORD lpdwDeinterlacePrefs); - - -void __RPC_STUB IVMRDeinterlaceControl9_GetDeinterlacePrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl9_SetDeinterlacePrefs_Proxy( - IVMRDeinterlaceControl9 * This, - /* [in] */ DWORD dwDeinterlacePrefs); - - -void __RPC_STUB IVMRDeinterlaceControl9_SetDeinterlacePrefs_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRDeinterlaceControl9_GetActualDeinterlaceMode_Proxy( - IVMRDeinterlaceControl9 * This, - /* [in] */ DWORD dwStreamID, - /* [out] */ LPGUID lpDeinterlaceMode); - - -void __RPC_STUB IVMRDeinterlaceControl9_GetActualDeinterlaceMode_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRDeinterlaceControl9_INTERFACE_DEFINED__ */ - - -/* interface __MIDL_itf_vmr9_0021 */ -/* [local] */ - -typedef struct _VMR9VideoStreamInfo - { - IDirect3DSurface9 *pddsVideoSurface; - DWORD dwWidth; - DWORD dwHeight; - DWORD dwStrmID; - FLOAT fAlpha; - VMR9NormalizedRect rNormal; - REFERENCE_TIME rtStart; - REFERENCE_TIME rtEnd; - VMR9_SampleFormat SampleFormat; - } VMR9VideoStreamInfo; - - - -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0021_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_vmr9_0021_v0_0_s_ifspec; - -#ifndef __IVMRImageCompositor9_INTERFACE_DEFINED__ -#define __IVMRImageCompositor9_INTERFACE_DEFINED__ - -/* interface IVMRImageCompositor9 */ -/* [unique][helpstring][uuid][local][object][local] */ - - -EXTERN_C const IID IID_IVMRImageCompositor9; - -#if defined(__cplusplus) && !defined(CINTERFACE) - - MIDL_INTERFACE("4a5c89eb-df51-4654-ac2a-e48e02bbabf6") - IVMRImageCompositor9 : public IUnknown - { - public: - virtual HRESULT STDMETHODCALLTYPE InitCompositionDevice( - /* [in] */ IUnknown *pD3DDevice) = 0; - - virtual HRESULT STDMETHODCALLTYPE TermCompositionDevice( - /* [in] */ IUnknown *pD3DDevice) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetStreamMediaType( - /* [in] */ DWORD dwStrmID, - /* [in] */ AM_MEDIA_TYPE *pmt, - /* [in] */ BOOL fTexture) = 0; - - virtual HRESULT STDMETHODCALLTYPE CompositeImage( - /* [in] */ IUnknown *pD3DDevice, - /* [in] */ IDirect3DSurface9 *pddsRenderTarget, - /* [in] */ AM_MEDIA_TYPE *pmtRenderTarget, - /* [in] */ REFERENCE_TIME rtStart, - /* [in] */ REFERENCE_TIME rtEnd, - /* [in] */ D3DCOLOR dwClrBkGnd, - /* [in] */ VMR9VideoStreamInfo *pVideoStreamInfo, - /* [in] */ UINT cStreams) = 0; - - }; - -#else /* C style interface */ - - typedef struct IVMRImageCompositor9Vtbl - { - BEGIN_INTERFACE - - HRESULT ( STDMETHODCALLTYPE *QueryInterface )( - IVMRImageCompositor9 * This, - /* [in] */ REFIID riid, - /* [iid_is][out] */ void **ppvObject); - - ULONG ( STDMETHODCALLTYPE *AddRef )( - IVMRImageCompositor9 * This); - - ULONG ( STDMETHODCALLTYPE *Release )( - IVMRImageCompositor9 * This); - - HRESULT ( STDMETHODCALLTYPE *InitCompositionDevice )( - IVMRImageCompositor9 * This, - /* [in] */ IUnknown *pD3DDevice); - - HRESULT ( STDMETHODCALLTYPE *TermCompositionDevice )( - IVMRImageCompositor9 * This, - /* [in] */ IUnknown *pD3DDevice); - - HRESULT ( STDMETHODCALLTYPE *SetStreamMediaType )( - IVMRImageCompositor9 * This, - /* [in] */ DWORD dwStrmID, - /* [in] */ AM_MEDIA_TYPE *pmt, - /* [in] */ BOOL fTexture); - - HRESULT ( STDMETHODCALLTYPE *CompositeImage )( - IVMRImageCompositor9 * This, - /* [in] */ IUnknown *pD3DDevice, - /* [in] */ IDirect3DSurface9 *pddsRenderTarget, - /* [in] */ AM_MEDIA_TYPE *pmtRenderTarget, - /* [in] */ REFERENCE_TIME rtStart, - /* [in] */ REFERENCE_TIME rtEnd, - /* [in] */ D3DCOLOR dwClrBkGnd, - /* [in] */ VMR9VideoStreamInfo *pVideoStreamInfo, - /* [in] */ UINT cStreams); - - END_INTERFACE - } IVMRImageCompositor9Vtbl; - - interface IVMRImageCompositor9 - { - CONST_VTBL struct IVMRImageCompositor9Vtbl *lpVtbl; - }; - - - -#ifdef COBJMACROS - - -#define IVMRImageCompositor9_QueryInterface(This,riid,ppvObject) \ - (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) - -#define IVMRImageCompositor9_AddRef(This) \ - (This)->lpVtbl -> AddRef(This) - -#define IVMRImageCompositor9_Release(This) \ - (This)->lpVtbl -> Release(This) - - -#define IVMRImageCompositor9_InitCompositionDevice(This,pD3DDevice) \ - (This)->lpVtbl -> InitCompositionDevice(This,pD3DDevice) - -#define IVMRImageCompositor9_TermCompositionDevice(This,pD3DDevice) \ - (This)->lpVtbl -> TermCompositionDevice(This,pD3DDevice) - -#define IVMRImageCompositor9_SetStreamMediaType(This,dwStrmID,pmt,fTexture) \ - (This)->lpVtbl -> SetStreamMediaType(This,dwStrmID,pmt,fTexture) - -#define IVMRImageCompositor9_CompositeImage(This,pD3DDevice,pddsRenderTarget,pmtRenderTarget,rtStart,rtEnd,dwClrBkGnd,pVideoStreamInfo,cStreams) \ - (This)->lpVtbl -> CompositeImage(This,pD3DDevice,pddsRenderTarget,pmtRenderTarget,rtStart,rtEnd,dwClrBkGnd,pVideoStreamInfo,cStreams) - -#endif /* COBJMACROS */ - - -#endif /* C style interface */ - - - -HRESULT STDMETHODCALLTYPE IVMRImageCompositor9_InitCompositionDevice_Proxy( - IVMRImageCompositor9 * This, - /* [in] */ IUnknown *pD3DDevice); - - -void __RPC_STUB IVMRImageCompositor9_InitCompositionDevice_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImageCompositor9_TermCompositionDevice_Proxy( - IVMRImageCompositor9 * This, - /* [in] */ IUnknown *pD3DDevice); - - -void __RPC_STUB IVMRImageCompositor9_TermCompositionDevice_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImageCompositor9_SetStreamMediaType_Proxy( - IVMRImageCompositor9 * This, - /* [in] */ DWORD dwStrmID, - /* [in] */ AM_MEDIA_TYPE *pmt, - /* [in] */ BOOL fTexture); - - -void __RPC_STUB IVMRImageCompositor9_SetStreamMediaType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -HRESULT STDMETHODCALLTYPE IVMRImageCompositor9_CompositeImage_Proxy( - IVMRImageCompositor9 * This, - /* [in] */ IUnknown *pD3DDevice, - /* [in] */ IDirect3DSurface9 *pddsRenderTarget, - /* [in] */ AM_MEDIA_TYPE *pmtRenderTarget, - /* [in] */ REFERENCE_TIME rtStart, - /* [in] */ REFERENCE_TIME rtEnd, - /* [in] */ D3DCOLOR dwClrBkGnd, - /* [in] */ VMR9VideoStreamInfo *pVideoStreamInfo, - /* [in] */ UINT cStreams); - - -void __RPC_STUB IVMRImageCompositor9_CompositeImage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - -#endif /* __IVMRImageCompositor9_INTERFACE_DEFINED__ */ - - -/* Additional Prototypes for ALL interfaces */ - -/* end of Additional Prototypes */ - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/sdk/dx8sdk/Include/vpconfig.h b/sdk/dx8sdk/Include/vpconfig.h deleted file mode 100644 index 776d99f5..00000000 --- a/sdk/dx8sdk/Include/vpconfig.h +++ /dev/null @@ -1,135 +0,0 @@ -//------------------------------------------------------------------------------ -// File: VPConfig.h -// -// Desc: An interface exposed by the decoder to help it and the filter -// configuring the videoport to communicate. -// -// Copyright (c) 1992-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef __IVPConfig__ -#define __IVPConfig__ - -#ifdef __cplusplus -extern "C" { -#endif - -// IVPBaseConfig -DECLARE_INTERFACE_(IVPBaseConfig, IUnknown) -{ -public: - - // gets the various connection information structures (guid, portwidth) - // in an array of structures. If the pointer to the array is NULL, first - // parameter returns the total number of formats supported. - STDMETHOD (GetConnectInfo)(THIS_ - IN OUT LPDWORD pdwNumConnectInfo, - IN OUT LPDDVIDEOPORTCONNECT pddVPConnectInfo - ) PURE; - - // sets the connection entry chosen (0, 1, .. ,(dwNumProposedEntries-1)) - STDMETHOD (SetConnectInfo)(THIS_ - IN DWORD dwChosenEntry - ) PURE; - - // gets various data parameters, includes dimensionnal info - STDMETHOD (GetVPDataInfo)(THIS_ - IN OUT LPAMVPDATAINFO pamvpDataInfo - ) PURE; - - // retrives maximum pixels per second rate expected for a given - // format and a given scaling factor. If decoder does not support - // those scaling factors, then it gives the rate and the nearest - // scaling factors. - STDMETHOD (GetMaxPixelRate)(THIS_ - IN OUT LPAMVPSIZE pamvpSize, - OUT LPDWORD pdwMaxPixelsPerSecond - ) PURE; - - // informs the callee of the videoformats supported by the videoport - STDMETHOD (InformVPInputFormats)(THIS_ - IN DWORD dwNumFormats, - IN LPDDPIXELFORMAT pDDPixelFormats - ) PURE; - - // gets the various formats supported by the decoder in an array - // of structures. If the pointer to the array is NULL, first parameter - // returns the total number of formats supported. - STDMETHOD (GetVideoFormats)(THIS_ - IN OUT LPDWORD pdwNumFormats, - IN OUT LPDDPIXELFORMAT pddPixelFormats - ) PURE; - - // sets the format entry chosen (0, 1, .. ,(dwNumProposedEntries-1)) - STDMETHOD (SetVideoFormat)(THIS_ - IN DWORD dwChosenEntry - ) PURE; - - // asks the decoder to treat even fields like odd fields and visa versa - STDMETHOD (SetInvertPolarity)(THIS_ - ) PURE; - - // the mixer uses this function to determine if the callee wants - // the vpmixer to use its overlay surface and if so to get a pointer to it - STDMETHOD (GetOverlaySurface)(THIS_ - OUT LPDIRECTDRAWSURFACE* ppddOverlaySurface - ) PURE; - - // sets the direct draw kernel handle - STDMETHOD (SetDirectDrawKernelHandle)(THIS_ - IN ULONG_PTR dwDDKernelHandle - ) PURE; - - // sets the video port id - STDMETHOD (SetVideoPortID)(THIS_ - IN DWORD dwVideoPortID - ) PURE; - - // sets the direct draw surface kernel handle - STDMETHOD (SetDDSurfaceKernelHandles)(THIS_ - IN DWORD cHandles, - IN ULONG_PTR *rgDDKernelHandles - ) PURE; - - // Tells driver about surface created on its behalf by ovmixer/vbisurf and - // returned from videoport/ddraw. Should always return NOERROR or E_NOIMPL. - // dwPitch is the pitch of the surface (distance in pixels between the start - // pixels of two consecutive lines of the surface). (dwXOrigin, dwYOrigin) - // are the (X, Y) coordinates of the pixel at which valid data starts. - STDMETHOD (SetSurfaceParameters)(THIS_ - IN DWORD dwPitch, - IN DWORD dwXOrigin, - IN DWORD dwYOrigin - ) PURE; -}; - -// IVPConfig -DECLARE_INTERFACE_(IVPConfig, IVPBaseConfig) -{ -public: - // the mixer uses this function to determine if the callee wants - // the mixer to decimate VIDEO data at its own descrition - STDMETHOD (IsVPDecimationAllowed)(THIS_ - OUT LPBOOL pbIsDecimationAllowed - ) PURE; - - // sets the scaling factors. If decoder does not support these, - // then it sets the values to the nearest factors it can support - STDMETHOD (SetScalingFactors)(THIS_ - IN LPAMVPSIZE pamvpSize - ) PURE; -}; - -// IVPVBIConfig -DECLARE_INTERFACE_(IVPVBIConfig, IVPBaseConfig) -{ -public: -}; - -#ifdef __cplusplus -} -#endif - - -#endif // __IVPConfig__ diff --git a/sdk/dx8sdk/Include/vpnotify.h b/sdk/dx8sdk/Include/vpnotify.h deleted file mode 100644 index 2e1d1b6b..00000000 --- a/sdk/dx8sdk/Include/vpnotify.h +++ /dev/null @@ -1,92 +0,0 @@ -//------------------------------------------------------------------------------ -// File: VPNotify.h -// -// Desc: -// -// Copyright (c) 1997-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef __IVPNotify__ -#define __IVPNotify__ - -#ifdef __cplusplus -extern "C" { -#endif - -// interface IVPBaseNotify -DECLARE_INTERFACE_(IVPBaseNotify, IUnknown) -{ -public: - // this function initializes the reconnection to the decoder. - STDMETHOD (RenegotiateVPParameters)(THIS_ - ) PURE; - -}; - -// interface IVPNotify -DECLARE_INTERFACE_(IVPNotify, IVPBaseNotify) -{ -public: - // function to set the mode (bob, weave etc) - STDMETHOD (SetDeinterlaceMode)(THIS_ - IN AMVP_MODE mode - ) PURE; - - // function to get the mode (bob, weave etc) - STDMETHOD (GetDeinterlaceMode)(THIS_ - OUT AMVP_MODE *pMode - ) PURE; -}; - -// interface IVPNotify -DECLARE_INTERFACE_(IVPNotify2, IVPNotify) -{ -public: -// function to set the mode (bob, weave etc) - STDMETHOD (SetVPSyncMaster)(THIS_ - IN BOOL bVPSyncMaster - ) PURE; - - // function to get the mode (bob, weave etc) - STDMETHOD (GetVPSyncMaster)(THIS_ - OUT BOOL *pbVPSyncMaster - ) PURE; - - /* - // this function sets the directdraw surface that the mixer is supposed to use. - STDMETHOD (SetDirectDrawSurface)(THIS_ - IN LPDIRECTDRAWSURFACE pDirectDrawSurface - ) PURE; - - // this function gets the directdraw surface that the mixer is using - STDMETHOD (GetDirectDrawSurface)(THIS_ - OUT LPDIRECTDRAWSURFACE *ppDirectDrawSurface - ) PURE; - - // this functions sets the color-controls, if the chip supports it. - STDMETHOD (SetVPColorControls)(THIS_ - IN LPDDCOLORCONTROL pColorControl - ) PURE; - - // this functions also returns the capability of the hardware in the dwFlags - // value of the struct. - STDMETHOD (GetVPColorControls)(THIS_ - OUT LPDDCOLORCONTROL *ppColorControl - ) PURE; - */ -}; - - -// interface IVPVBINotify -DECLARE_INTERFACE_(IVPVBINotify, IVPBaseNotify) -{ -public: -}; - -#ifdef __cplusplus -} -#endif - - -#endif // __IVPNotify__ diff --git a/sdk/dx8sdk/Include/vptype.h b/sdk/dx8sdk/Include/vptype.h deleted file mode 100644 index b03baae6..00000000 --- a/sdk/dx8sdk/Include/vptype.h +++ /dev/null @@ -1,78 +0,0 @@ -//------------------------------------------------------------------------------ -// File: VPType.h -// -// Desc: This file includes all the data structures defined for the IVPConfig -// interface. -// -// Copyright (c) 1997-2001, Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ - - -#ifndef __IVPType__ -#define __IVPType__ - -#ifdef __cplusplus -extern "C" { -#endif - - // enum to specify the criterion, which the vpmixer is supposed to use - // in order to select the video format - typedef enum _AMVP_SELECT_FORMAT_BY - { - AMVP_DO_NOT_CARE, - AMVP_BEST_BANDWIDTH, - AMVP_INPUT_SAME_AS_OUTPUT - } AMVP_SELECT_FORMAT_BY; - - // enum to specify the various mode - typedef enum _AMVP_MODE - { - AMVP_MODE_WEAVE, - AMVP_MODE_BOBINTERLEAVED, - AMVP_MODE_BOBNONINTERLEAVED, - AMVP_MODE_SKIPEVEN, - AMVP_MODE_SKIPODD - } AMVP_MODE; - - // struct to specify the width and height. The context could be anything - // such as scaling cropping etc. - typedef struct _AMVPSIZE - { - DWORD dwWidth; // the width - DWORD dwHeight; // the height - } AMVPSIZE, *LPAMVPSIZE; - - // struct to specify the dimensional characteristics of the input stream - typedef struct _AMVPDIMINFO - { - DWORD dwFieldWidth; // Field height of the data - DWORD dwFieldHeight; // Field width of the data - DWORD dwVBIWidth; // Width of the VBI data - DWORD dwVBIHeight; // Height of the VBI data - RECT rcValidRegion; // The vaild rectangle, used for cropping - } AMVPDIMINFO, *LPAMVPDIMINFO; - - // struct to specify the various data specific characteristics of the input stream - typedef struct _AMVPDATAINFO - { - DWORD dwSize; // Size of the struct - DWORD dwMicrosecondsPerField; // Time taken by each field - AMVPDIMINFO amvpDimInfo; // Dimensional Information - DWORD dwPictAspectRatioX; // X dimension of Picture Aspect Ratio - DWORD dwPictAspectRatioY; // Y dimension of Picture Aspect Ratio - BOOL bEnableDoubleClock; // Videoport should enable double clocking - BOOL bEnableVACT; // Videoport should use an external VACT signal - BOOL bDataIsInterlaced; // Indicates that the signal is interlaced - LONG lHalfLinesOdd; // number of halflines in the odd field - BOOL bFieldPolarityInverted; // Device inverts the polarity by default - DWORD dwNumLinesInVREF; // Number of lines of data in VREF - LONG lHalfLinesEven; // number of halflines in the even field - DWORD dwReserved1; // Reserved for future use - } AMVPDATAINFO, *LPAMVPDATAINFO; - - -#ifdef __cplusplus -} -#endif - -#endif // __IVPType__ diff --git a/sdk/dx8sdk/Include/xprtdefs.h b/sdk/dx8sdk/Include/xprtdefs.h deleted file mode 100644 index 7bdde244..00000000 --- a/sdk/dx8sdk/Include/xprtdefs.h +++ /dev/null @@ -1,742 +0,0 @@ -//=========================================================================== -// -// 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) Microsoft Corporation. All rights reserved. -// -//=========================================================================== -// -// filename XPrtDefs.h (Derived from edevdefs.h) -// -// External Device (like a VCR) control interface parameter and value definitions -// -// Note:new constants added: ED_BASE+800L -> ED_BASE+811L -// -// 1-30-98: -// New constant added for DVCR: ED_BASE+900L -> ED_BASE+1000L -// 7-15-03: -// Add new constants for device transports and device types: -// ED_BASE+1001L..ED_BASE+1037L -// - -#ifndef __XPRTDEFS__ -#define __XPRTDEFS__ - - -#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_POWER_DEVICE_DEPENDENT ED_BASE+1033L // Power is on with limited functions - -#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 // Forward playback at normal speed -#define ED_MODE_STOP ED_BASE+201L -#define ED_MODE_FREEZE ED_BASE+202L // Forward pause -#define ED_MODE_THAW ED_BASE+203L -#define ED_MODE_FF ED_BASE+204L // Fast forward -#define ED_MODE_REW ED_BASE+205L // Fast rewind -#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 - next frame -#define ED_MODE_STEP_REV ED_BASE+809L // Previous frame -#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_MEDIA_NEO ED_BASE+531L // Mini digital tape for MPEG2TS signal -#define ED_MEDIA_MICROMV ED_MEDIA_NEO - -#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 - - - - - - -// ************************************************** -// -// New constants -// -// ************************************************** - - -// -// Additional Device type -// -#define ED_DEVTYPE_CAMERA ED_BASE+900L - -#define ED_DEVTYPE_TUNER ED_BASE+901L - -#define ED_DEVTYPE_DVHS ED_BASE+902L // Digital VHS - -#define ED_DEVTYPE_UNKNOWN ED_BASE+903L // Driver cannot determine the device type - -#define ED_DEVTYPE_CAMERA_STORAGE ED_BASE+1034L // Storage for digital still images, short video files, etc. - -#define ED_DEVTYPE_DTV ED_BASE+1035L // DTV with serial bus interface - -#define ED_DEVTYPE_PC_VIRTUAL ED_BASE+1036L // Emulated device (virtual) on a PC - - - -// -// Unknownn capability -// Instead of return E_NOTIMPL, or S_OK with OAFALSE, it may return S_OK with _UNKNOWN -// -#define ED_CAPABILITY_UNKNOWN ED_BASE+910L - - -// -// Send raw 1394/AVC extenal device command via GetTransportBasicParameters() -// This is specifically for a 1394 AVC device connected with DEV_PORT_1394. -// -#define ED_RAW_EXT_DEV_CMD ED_BASE+920L - - -// -// MEDIUM INFO -// -#define ED_MEDIA_VHSC ED_BASE+925L // New media type -#define ED_MEDIA_UNKNOWN ED_BASE+926L // Unknown media -#define ED_MEDIA_NOT_PRESENT ED_BASE+927L - - -// -// Device Control command that can result in pending state. -// -#define ED_CONTROL_HEVENT_GET ED_BASE+928L // To get a sychronous event handle -#define ED_CONTROL_HEVENT_RELEASE ED_BASE+929L // To release sychronous event handle must match what it got - -#define ED_DEV_REMOVED_HEVENT_GET ED_BASE+960L // To be a notify event and will be signal if device is removed. -#define ED_DEV_REMOVED_HEVENT_RELEASE ED_BASE+961L // Release this event handle - - -// -// TRANSPORT STATE -// -#define ED_NOTIFY_HEVENT_GET ED_BASE+930L // To get a sychronous event handle -#define ED_NOTIFY_HEVENT_RELEASE ED_BASE+931L // To release sychronous event handle must match what it got -#define ED_MODE_CHANGE_NOTIFY ED_BASE+932L // This is asynchronous operation, wait for event. - -#define ED_MODE_PLAY_FASTEST_FWD ED_BASE+933L -#define ED_MODE_PLAY_SLOWEST_FWD ED_BASE+934L -#define ED_MODE_PLAY_FASTEST_REV ED_BASE+935L -#define ED_MODE_PLAY_SLOWEST_REV ED_BASE+936L - -#define ED_MODE_WIND ED_BASE+937L -#define ED_MODE_REW_FASTEST ED_BASE+938L // High speed rewind - -#define ED_MODE_REV_PLAY ED_BASE+939L // x1 speed reverse play - -// -// Additional play modes (added post Windows XP) -// - -#define ED_MODE_PLAY_SLOW_FWD_6 ED_BASE+1001L // Slow forward -#define ED_MODE_PLAY_SLOW_FWD_5 ED_BASE+1002L -#define ED_MODE_PLAY_SLOW_FWD_4 ED_BASE+1003L -#define ED_MODE_PLAY_SLOW_FWD_3 ED_BASE+1004L -#define ED_MODE_PLAY_SLOW_FWD_2 ED_BASE+1005L -#define ED_MODE_PLAY_SLOW_FWD_1 ED_BASE+1006L - -#define ED_MODE_PLAY_FAST_FWD_1 ED_BASE+1007L // Fast forward -#define ED_MODE_PLAY_FAST_FWD_2 ED_BASE+1008L -#define ED_MODE_PLAY_FAST_FWD_3 ED_BASE+1009L -#define ED_MODE_PLAY_FAST_FWD_4 ED_BASE+1010L -#define ED_MODE_PLAY_FAST_FWD_5 ED_BASE+1011L -#define ED_MODE_PLAY_FAST_FWD_6 ED_BASE+1012L - -#define ED_MODE_PLAY_SLOW_REV_6 ED_BASE+1013L // Slow reverse -#define ED_MODE_PLAY_SLOW_REV_5 ED_BASE+1014L -#define ED_MODE_PLAY_SLOW_REV_4 ED_BASE+1015L -#define ED_MODE_PLAY_SLOW_REV_3 ED_BASE+1016L -#define ED_MODE_PLAY_SLOW_REV_2 ED_BASE+1017L -#define ED_MODE_PLAY_SLOW_REV_1 ED_BASE+1018L - -#define ED_MODE_PLAY_FAST_REV_1 ED_BASE+1019L // Fast reverse -#define ED_MODE_PLAY_FAST_REV_2 ED_BASE+1020L -#define ED_MODE_PLAY_FAST_REV_3 ED_BASE+1021L -#define ED_MODE_PLAY_FAST_REV_4 ED_BASE+1022L -#define ED_MODE_PLAY_FAST_REV_5 ED_BASE+1023L -#define ED_MODE_PLAY_FAST_REV_6 ED_BASE+1024L - -#define ED_MODE_REVERSE ED_MODE_REV_PLAY // Same as Reverse playback -#define ED_MODE_REVERSE_FREEZE ED_BASE+1025L // Pause at reverse playback - -#define ED_MODE_PLAY_SLOW_FWD_X ED_BASE+1026L // Possible response for a trick play -#define ED_MODE_PLAY_FAST_FWD_X ED_BASE+1027L // Possible response for a trick play -#define ED_MODE_PLAY_SLOW_REV_X ED_BASE+1028L // Possible response for a trick play -#define ED_MODE_PLAY_FAST_REV_X ED_BASE+1029L // Possible response for a trick play - -#define ED_MODE_STOP_START ED_BASE+1030L // Indicate stopping at the begin of a tape -#define ED_MODE_STOP_END ED_BASE+1031L // Indicate stopping at the end of a tape -#define ED_MODE_STOP_EMERGENCY ED_BASE+1032L // Indicate stopping due to an emergency - -// -// TRANSPOSRTBASIC: input and output signal -// -#define ED_TRANSBASIC_INPUT_SIGNAL ED_BASE+940L -#define ED_TRANSBASIC_OUTPUT_SIGNAL ED_BASE+941L - -#define ED_TRANSBASIC_SIGNAL_525_60_SD ED_BASE+942L -#define ED_TRANSBASIC_SIGNAL_525_60_SDL ED_BASE+943L -#define ED_TRANSBASIC_SIGNAL_625_50_SD ED_BASE+944L -#define ED_TRANSBASIC_SIGNAL_625_50_SDL ED_BASE+945L - -#define ED_TRANSBASIC_SIGNAL_625_60_HD ED_BASE+947L -#define ED_TRANSBASIC_SIGNAL_625_50_HD ED_BASE+948L - -#define ED_TRANSBASIC_SIGNAL_MPEG2TS ED_BASE+946L - -#define ED_TRANSBASIC_SIGNAL_2500_60_MPEG ED_BASE+980L -#define ED_TRANSBASIC_SIGNAL_1250_60_MPEG ED_BASE+981L -#define ED_TRANSBASIC_SIGNAL_0625_60_MPEG ED_BASE+982L - -#define ED_TRANSBASIC_SIGNAL_2500_50_MPEG ED_BASE+985L -#define ED_TRANSBASIC_SIGNAL_1250_50_MPEG ED_BASE+986L -#define ED_TRANSBASIC_SIGNAL_0625_50_MPEG ED_BASE+987L - -#define ED_TRANSBASIC_SIGNAL_UNKNOWN ED_BASE+990L - -#define ED_TRANSBASIC_SIGNAL_525_60_DV25 ED_BASE+991L -#define ED_TRANSBASIC_SIGNAL_625_50_DV25 ED_BASE+992L - -#define ED_TRANSBASIC_SIGNAL_525_60_DV50 ED_BASE+993L -#define ED_TRANSBASIC_SIGNAL_625_50_DV50 ED_BASE+994L - -#define ED_TRANSBASIC_SIGNAL_HD_60_DVH1 ED_BASE+995L // DVCPRO 100: 1080i or 720p -#define ED_TRANSBASIC_SIGNAL_HD_50_DVH1 ED_BASE+996L // DVCPRO 100: 1080i only - - - -// -// TIMECODE/AbsoluteTrackNumber/RealTimeCounter read/seek/write -// -#define ED_DEVCAP_TIMECODE_SEEK ED_BASE+950L - -#define ED_DEVCAP_ATN_READ ED_BASE+951L -#define ED_DEVCAP_ATN_SEEK ED_BASE+952L -#define ED_DEVCAP_ATN_WRITE ED_BASE+953L - -#define ED_DEVCAP_RTC_READ ED_BASE+954L -#define ED_DEVCAP_RTC_SEEK ED_BASE+955L -#define ED_DEVCAP_RTC_WRITE ED_BASE+956L - -// -// Basic parameter -// -#define ED_TIMEREF_ATN ED_BASE+958L - - -// -// GUID used to identify a class driver -// - -#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 - -// 8C0F6AF2-0EDB-44c1-8AEB-59040BD830ED MSTapeDeviceGUID -OUR_GUID_ENTRY(MSTapeDeviceGUID, -0x8C0F6AF2, 0x0EDB, 0x44c1, 0x8A, 0xEB, 0x59, 0x04, 0x0B, 0xD8, 0x30, 0xED) - -#endif // __XPRTDEFS__ - -// eof XPrtDefs.h -- cgit v1.2.3